/* ArtVerse — Seller Center (ชุดแรก)
   ไฟล์นี้เป็นส่วนหนึ่งของ css/parts/*.css โหลดตามลำดับเลขหน้าไฟล์ (ลำดับมีผล: ไฟล์หลังทับไฟล์ก่อน) */

/* =========================================================
   Artist Portal Redesign
   ========================================================= */
.artist-portal-shell{
  display:grid;
  grid-template-columns:280px minmax(0,1fr);
  gap:24px;
  align-items:start;
}
.artist-portal-sidebar{
  position:sticky;
  top:110px;
  padding:22px;
}
.artist-side-head h2{
  margin:6px 0 8px;
  font-size:26px;
}
.artist-side-head p{
  color:var(--muted);
  font-size:14px;
  line-height:1.6;
}
.artist-side-kicker{
  display:inline-flex;
  padding:5px 10px;
  border-radius:999px;
  background:#fff5db;
  color:#b7791f;
  font-weight:700;
  font-size:12px;
}
.artist-nav-group{
  display:grid;
  gap:8px;
  margin-top:18px;
}
.artist-nav-title{
  font-size:12px;
  color:var(--muted);
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
  margin-bottom:2px;
}
.artist-nav-link{
  border:1px solid rgba(51,65,85,.08);
  background:#fff;
  border-radius:16px;
  padding:12px 14px;
  display:flex;
  align-items:center;
  gap:12px;
  font-weight:700;
  color:var(--text);
  transition:.2s ease;
}
.artist-nav-link:hover,
.artist-nav-link.active{
  border-color:rgba(128,90,213,.22);
  background:linear-gradient(180deg,#ffffff,#f5f0ff);
  color:#5b37c9;
  box-shadow:0 12px 26px rgba(128,90,213,.12);
}
.artist-nav-icon{
  width:30px;
  height:30px;
  border-radius:10px;
  display:grid;
  place-items:center;
  background:#f8fafc;
  color:#6b7280;
}
.artist-nav-link.active .artist-nav-icon{
  background:#ede6ff;
  color:#6b3df0;
}
.artist-portal-main{display:grid;gap:20px}
.artist-section-block{display:grid;gap:18px}
.artist-section-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
}
.artist-section-head h2{
  margin:0;
  font-size:34px;
  line-height:1.15;
}
.artist-section-head p{
  margin:4px 0 0;
  color:var(--muted);
}
.artist-section-head.sticky-line{
  align-items:center;
}
.soft-card{
  background:#fff;
  border:1px solid rgba(51,65,85,.1);
  box-shadow:0 14px 36px rgba(68,84,111,.08);
}
.artist-banner{
  border-radius:18px;
  border:1px solid rgba(59,130,246,.18);
  background:#f3f8ff;
  padding:16px 18px;
  display:grid;
  gap:6px;
}
.artist-banner.warning{
  background:#fff8ef;
  border-color:rgba(245,158,11,.25);
}
.artist-store-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}
.artist-store-profile{
  display:flex;
  align-items:center;
  gap:16px;
}
.artist-store-avatar{
  width:64px;height:64px;border-radius:18px;
  display:grid;place-items:center;
  background:linear-gradient(135deg,#ffd76a,#f59e0b);
  font-size:26px;
}
.artist-store-profile h3{margin:0;font-size:28px}
.artist-store-profile p{margin:4px 0;color:var(--muted)}
.artist-store-profile small{color:#98a2b3}
.artist-hero-banner{
  overflow:hidden;
  border-radius:22px;
  background:linear-gradient(90deg,#ffe173 0%,#fff 45%,#fff 100%);
  display:grid;
  grid-template-columns:280px minmax(0,1fr);
  align-items:center;
  min-height:220px;
}
.artist-hero-thumb{height:100%}
.artist-hero-thumb img{width:100%;height:100%;object-fit:cover}
.artist-hero-copy{padding:28px 32px}
.artist-hero-logo{font-size:15px;font-weight:700;color:#111827;margin-bottom:10px}
.artist-hero-copy h3{margin:0;font-size:42px;line-height:1.02;color:#ef8b00;text-transform:lowercase}
.artist-hero-copy p{margin:14px 0 0;color:#6b7280;max-width:580px}
.artist-stats-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
}
.artist-mini-stat{
  background:#fff;
  border:1px solid rgba(51,65,85,.1);
  border-radius:18px;
  padding:18px;
  box-shadow:0 12px 28px rgba(68,84,111,.06);
}
.artist-mini-stat span,
.artist-insight-card span{display:block;color:var(--muted);font-weight:600}
.artist-mini-stat strong,
.artist-insight-card strong{display:block;margin-top:8px;font-size:30px;line-height:1.1}
.artist-mini-stat small,
.artist-insight-card small{display:block;margin-top:8px;color:#94a3b8}
.artist-mini-stat.lilac{background:#f7f1ff}
.artist-mini-stat.mint{background:#eefaf4}
.artist-mini-stat.gold{background:#fff8e8}
.artist-insight-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
}
.artist-insight-card{
  border-radius:18px;
  border:1px solid rgba(51,65,85,.08);
  background:#fff;
  padding:18px;
}
.artist-insight-card.success{background:#f3fbf7}
.artist-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  white-space:nowrap;
}
.artist-pill.gold{background:#fff1cc;color:#b7791f}
.artist-pill.blue{background:#e5efff;color:#2563eb}
.artist-pill.mint{background:#dff7eb;color:#15803d}
.artist-pill.red{background:#fde4e4;color:#c24141}
.artist-pill.gray{background:#f1f5f9;color:#64748b}
.artist-art-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}
.artist-art-card{
  background:#fff;
  border-radius:20px;
  border:1px solid rgba(51,65,85,.1);
  box-shadow:0 12px 28px rgba(68,84,111,.08);
  overflow:hidden;
}
.artist-art-thumb{position:relative;height:200px}
.artist-art-thumb img{width:100%;height:100%;object-fit:cover}
.artist-art-thumb .artist-pill{position:absolute;left:12px;top:12px}
.artist-art-body{padding:14px 14px 16px;display:grid;gap:12px}
.artist-art-body h3{margin:0;font-size:18px}
.artist-art-meta{display:flex;justify-content:space-between;gap:10px;color:#64748b}
.artist-art-meta strong{font-size:18px;color:#f08b00}
.artist-art-controls{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:10px;align-items:center}
.artist-select,
.artist-profile-form input,
.artist-profile-form textarea,
.artist-upload-form input,
.artist-upload-form textarea,
.artist-withdraw-form input,
.artist-withdraw-form textarea,
.artist-modal-card input{
  width:100%;
  border:1px solid rgba(148,163,184,.35);
  border-radius:14px;
  background:#faf7f0;
  padding:12px 14px;
  font:inherit;
  color:var(--text);
}
.artist-select.compact{padding:10px 12px}
.artist-upload-layout{display:grid;grid-template-columns:320px minmax(0,1fr);gap:22px}
.artist-upload-preview,.artist-upload-form,.artist-profile-form,.artist-withdraw-form{padding:22px}
.artist-dropzone{
  border:2px dashed rgba(148,163,184,.3);
  border-radius:20px;
  min-height:100%;
  display:grid;
  gap:12px;
  place-items:center;
  padding:20px;
  text-align:center;
  color:var(--muted);
}
.artist-dropzone-preview{width:100%;height:240px;border-radius:18px;overflow:hidden;background:#f8fafc}
.artist-dropzone-preview img{width:100%;height:100%;object-fit:cover}
.artist-two-col{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.artist-radio-row{display:flex;gap:10px;flex-wrap:wrap}
.artist-radio{
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid rgba(148,163,184,.35);
  background:#fff;
  font-weight:700;
}
.artist-radio input{accent-color:#7c3aed}
.artist-radio.active,
.artist-radio:has(input:checked){background:#6d33dd;color:#fff;border-color:#6d33dd}
.artist-upload-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:8px}
.icon-btn{
  width:40px;height:40px;border-radius:12px;border:1px solid rgba(148,163,184,.32);background:#fff;font-size:16px;
}
.icon-btn.danger{color:#dc5b64}
.artist-order-stack,
.artist-review-stack{display:grid;gap:14px}
.artist-order-card{
  display:grid;
  grid-template-columns:minmax(0,1.4fr) auto auto auto;
  gap:18px;
  align-items:center;
  border-radius:18px;
  background:#fff;
  border:1px solid rgba(51,65,85,.1);
  box-shadow:0 12px 26px rgba(68,84,111,.06);
  padding:18px;
}
.artist-order-card.compact{grid-template-columns:minmax(0,1fr) auto auto}
.artist-order-main h3{margin:0 0 4px;font-size:18px}
.artist-order-main p,.artist-order-main small{color:var(--muted)}
.artist-order-main p{margin:0}
.artist-order-amount{display:grid;gap:4px;text-align:right}
.artist-order-amount strong{font-size:18px;color:#f08b00}
.artist-order-amount small{color:#16a34a}
.artist-order-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.artist-tracking-code{font-size:12px;color:#64748b;background:#f8fafc;padding:8px 10px;border-radius:999px}
.artist-review-card{
  border-radius:20px;
  border:1px solid rgba(51,65,85,.1);
  background:#fff;
  padding:18px 20px;
  box-shadow:0 12px 26px rgba(68,84,111,.06);
}
.artist-review-top{display:grid;grid-template-columns:auto 1fr auto;gap:14px;align-items:start}
.artist-review-avatar{width:40px;height:40px;border-radius:999px;background:#efe4ff;color:#7c3aed;display:grid;place-items:center;font-weight:800}
.artist-review-top h3{margin:0 0 4px}
.artist-stars{color:#f4b400}
.artist-review-date{color:var(--muted);font-size:14px}
.artist-review-card p{margin:12px 0 0}
.artist-review-reply{margin-top:12px;padding:12px;border-radius:14px;background:#f7f1ff}
.link-btn{background:none;border:none;color:#6d33dd;font-weight:700;padding:0;margin-top:12px}
.artist-report-panel,.artist-top-products{padding:20px}
.artist-report-panel h3,.artist-top-products h3,.artist-withdraw-form h3{margin:0 0 14px}
.artist-bar-chart{
  display:grid;
  grid-template-columns:repeat(7,minmax(0,1fr));
  gap:16px;
  align-items:end;
  min-height:260px;
}
.artist-bar-item{display:grid;gap:10px;justify-items:center}
.artist-bar-value{font-size:12px;color:#6b7280}
.artist-bar-rail{
  width:100%;
  height:200px;
  border-radius:16px 16px 8px 8px;
  background:repeating-linear-gradient(to top, rgba(148,163,184,.14) 0 1px, transparent 1px 40px);
  display:flex;
  align-items:flex-end;
  overflow:hidden;
}
.artist-bar-rail i{
  display:block;
  width:100%;
  border-radius:14px 14px 0 0;
  background:linear-gradient(180deg,#7c3aed,#6228d7);
}
.artist-top-product-row{
  display:grid;
  grid-template-columns:32px minmax(0,1fr) auto;
  gap:14px;
  align-items:center;
  padding:12px 0;
  border-top:1px solid rgba(148,163,184,.18);
}
.artist-top-product-row:first-of-type{border-top:none;padding-top:0}
.artist-top-product-info{display:flex;gap:12px;align-items:center}
.artist-top-product-info img{width:42px;height:42px;border-radius:999px;object-fit:cover}
.artist-top-product-info strong{display:block}
.artist-top-product-row b{color:#f08b00}
.artist-table-wrap{overflow:auto}
.artist-table{width:100%;border-collapse:collapse}
.artist-table th,.artist-table td{padding:12px 10px;border-bottom:1px solid rgba(148,163,184,.18);text-align:left}
.artist-table td.up{color:#16a34a;font-weight:700}
.artist-table td.down{color:#dc2626;font-weight:700}
.artist-finance-layout{display:grid;grid-template-columns:340px minmax(0,1fr);gap:18px}
.artist-balance-big{font-size:42px;font-weight:800;color:#6d33dd;margin:8px 0}
.artist-chat-layout{display:grid;grid-template-columns:280px minmax(0,1fr);gap:18px}
.artist-chat-list{display:grid;gap:10px;padding:18px}
.artist-chat-user{border:1px solid rgba(148,163,184,.18);background:#fff;border-radius:16px;padding:12px 14px;text-align:left;display:grid;gap:4px}
.artist-chat-user.active{border-color:#c4b5fd;background:#f8f4ff}
.artist-chat-user small{color:var(--muted)}
.artist-chat-window{padding:0;overflow:hidden}
.artist-chat-header{padding:16px 18px;border-bottom:1px solid rgba(148,163,184,.16);display:flex;justify-content:space-between;align-items:center}
.artist-chat-messages{padding:18px;display:grid;gap:12px;min-height:240px;background:#fcfdff}
.artist-msg{padding:12px 14px;border-radius:18px;max-width:70%}
.bubble-left{background:#f1f5f9}
.bubble-right{background:#ede6ff;justify-self:end}
.artist-chat-action{padding:0 18px 18px}
.artist-modal{
  position:fixed;inset:0;z-index:40;
  display:grid;place-items:center;
}
.artist-modal-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.4)}
.artist-modal-card{
  position:relative;z-index:1;
  width:min(92vw,440px);
  border-radius:22px;
  background:#fff;
  padding:24px;
  box-shadow:0 24px 58px rgba(15,23,42,.22);
  display:grid;gap:14px;
}
.artist-modal-card h3{margin:0;font-size:28px}
.artist-modal-card p,.artist-modal-card small{color:var(--muted)}
.artist-modal-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.artist-profile-form .field,
.artist-upload-form .field,
.artist-withdraw-form .field,
.artist-modal-card .field{display:grid;gap:8px}
.artist-profile-form textarea,
.artist-upload-form textarea{min-height:120px;resize:vertical}
.artist-order-stack.compact .artist-order-card{padding:14px}
@media(max-width:1180px){.artist-portal-shell,.artist-upload-layout,.artist-finance-layout,.artist-chat-layout{grid-template-columns:1fr}
.artist-portal-sidebar{position:static}
.artist-hero-banner{grid-template-columns:1fr}
.artist-hero-thumb{height:220px}
.artist-stats-grid,.artist-insight-grid,.artist-art-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.artist-order-card{grid-template-columns:1fr}
.artist-order-amount{text-align:left}
.artist-order-actions{justify-content:flex-start}}
@media(max-width:720px){.artist-section-head{flex-direction:column}
.artist-section-head h2{font-size:26px}
.artist-stats-grid,.artist-insight-grid,.artist-art-grid,.artist-two-col,.artist-upload-actions{grid-template-columns:1fr}
.artist-review-top{grid-template-columns:auto 1fr}
.artist-review-date{grid-column:2}
.artist-bar-chart{grid-template-columns:repeat(4,minmax(0,1fr));min-height:auto}
.artist-bar-rail{height:150px}
.artist-store-card{flex-direction:column;align-items:flex-start}}
