/* ==========================================================================
   ISLAMI COMICS - MY STORE (CREATOR SELLER CENTER) STYLESHEET
   Matching Mockup Image 12 Pixel-Perfect Design
   ========================================================================== */

.store-page-body {
  background-color: #f5f8f6;
}

.store-main-stage {
  padding-bottom: 40px;
}

/* Header Top CTA Button */
.btn-visit-store-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: all 0.2s;
}

.btn-visit-store-cta:hover {
  background: #f8faf9;
  border-color: var(--emerald);
  color: var(--emerald-dark);
}

/* ==========================================================================
   0. HORIZONTAL SUB-TABS ROW
   ========================================================================== */
.store-nav-tabs-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  border-bottom: 1px solid var(--card-border);
  margin-bottom: 20px;
  padding-bottom: 2px;
}

.store-nav-tabs-bar::-webkit-scrollbar {
  display: none;
}

.store-nav-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 8px 12px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-sub);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  flex-shrink: 0;
}

.store-nav-tab:hover {
  color: var(--text-main);
}

.store-nav-tab.active {
  color: var(--emerald-dark);
  border-bottom-color: var(--emerald);
  font-weight: 800;
}

/* ==========================================================================
   1. TOP 5 METRIC SUMMARY CARDS (5-GRID)
   ========================================================================== */
.store-metrics-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 20px;
}

.store-metric-card {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 12px 10px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.metric-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.card-icon-box {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

.icon-gray { background: #f1f5f9; color: #475569; }

.card-meta-wrap {
  min-width: 0;
  flex: 1;
}

.card-label-small {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.card-val-row {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.status-active-bold {
  font-size: 14px;
  font-weight: 900;
  color: #047857;
}

.status-val-bold {
  font-size: 15px;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: -0.3px;
}

.badge-published-pill {
  font-size: 9.5px;
  font-weight: 700;
  color: #059669;
  background: #ecfdf5;
  padding: 1px 6px;
  border-radius: 99px;
}

.card-sub-description {
  font-size: 10.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-growth-text {
  font-size: 10.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}

.growth-up {
  color: #10b981;
}

.growth-up i {
  font-size: 9px;
}

/* ==========================================================================
   2. MAIN 3-COLUMN MULTI-CARD LAYOUT
   ========================================================================== */
.store-main-layout-grid {
  display: grid;
  grid-template-columns: 270px 1fr 280px;
  gap: 14px;
  align-items: start;
}

.store-col-left, .store-col-center, .store-col-right {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
  min-width: 0;
}

.card-title-header {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-main);
}

/* ==========================================================================
   3. COLUMN 1: STORE PROFILE & SETUP CHECKLIST
   ========================================================================== */

/* Profile Card */
.store-profile-card {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--card-shadow);
}

.profile-avatar-center-wrap {
  display: flex;
  justify-content: center;
  margin: 14px 0;
}

.store-avatar-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #f0fdf4;
  border: 2px solid #bbf7d0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.store-avatar-icon {
  font-size: 28px;
  color: #047857;
}

.btn-avatar-camera {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #047857;
  color: #ffffff;
  border: 2px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  cursor: pointer;
  transition: transform 0.2s;
}

.btn-avatar-camera:hover {
  transform: scale(1.1);
}

.profile-info-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-field-group .field-label {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.info-field-group .field-value-bold {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-main);
}

.info-field-group .field-username {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-sub);
}

.store-url-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--emerald-dark);
  text-decoration: none;
  margin-top: 2px;
}

.store-url-link:hover {
  text-decoration: underline;
}

.field-desc-text {
  font-size: 11.5px;
  color: var(--text-main);
  line-height: 1.45;
  margin: 0;
}

.info-meta-badges-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid #f1f5f3;
}

.meta-label {
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.badge-cat-pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: #047857;
  background: #ecfdf5;
  padding: 2px 7px;
  border-radius: 4px;
}

.badge-lang-text {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-main);
}

.btn-edit-profile-outline {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 7px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  margin-top: 4px;
  transition: all 0.2s;
}

.btn-edit-profile-outline:hover {
  border-color: var(--emerald);
  background: #f8faf9;
  color: var(--emerald-dark);
}

/* Checklist Card */
.store-checklist-card {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--card-shadow);
}

.checklist-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.checklist-count-badge {
  font-size: 10.5px;
  font-weight: 800;
  color: #047857;
  background: #ecfdf5;
  padding: 2px 8px;
  border-radius: 99px;
}

.checklist-items-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checklist-item-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 6px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}

.checklist-item-row:hover {
  background: #f8faf9;
}

.check-icon-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #047857;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  flex-shrink: 0;
}

.check-icon-circle.uncompleted {
  background: none;
  color: #94a3b8;
  font-size: 16px;
}

.check-text-content {
  flex: 1;
  min-width: 0;
}

.check-title {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-main);
}

.check-sub {
  font-size: 10px;
  color: var(--text-muted);
}

.badge-status-completed {
  font-size: 9.5px;
  font-weight: 700;
  color: #059669;
  background: #ecfdf5;
  padding: 2px 6px;
  border-radius: 4px;
}

.btn-go-policy {
  background: #047857;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.check-caret {
  font-size: 10px;
  color: #cbd5e1;
}

/* ==========================================================================
   4. COLUMN 2: PERFORMANCE & TOP SELLING COMICS
   ========================================================================== */

/* Performance Card */
.store-performance-card {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: var(--card-shadow);
}

.perf-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: nowrap;
  gap: 8px;
}

.perf-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  min-width: 0;
}

.perf-title-group .card-title-header {
  white-space: nowrap;
  font-size: 13.5px;
  font-weight: 800;
}

.perf-legend-row {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.leg-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-sub);
  white-space: nowrap;
}

.leg-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.dot-views { background: #10b981; }
.dot-sales { background: #2563eb; }
.dot-followers { background: #8b5cf6; }

.select-perf-period {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-main);
  outline: none;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.perf-canvas-container {
  position: relative;
  width: 100%;
  height: 200px;
  margin-bottom: 14px;
}

.perf-4stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f3;
}

.perf-stat-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.p-stat-label {
  font-size: 10px;
  color: var(--text-muted);
}

.p-stat-num {
  font-size: 15px;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: -0.3px;
}

.p-stat-growth {
  font-size: 9.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

/* Top Selling Card */
.top-selling-card {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: var(--card-shadow);
}

.top-selling-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.link-view-all-comics {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--emerald-dark);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.top-selling-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.top-sell-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #f8faf9;
  min-width: 0;
}

.sell-rank {
  font-size: 11px;
  font-weight: 900;
  color: #64748b;
  width: 14px;
  flex-shrink: 0;
}

.sell-thumb {
  width: 26px;
  height: 36px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

.sell-meta {
  flex: 1;
  min-width: 0;
  padding-right: 8px;
}

.sell-title {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sell-ep {
  font-size: 9.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sell-revenue {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--text-main);
  white-space: nowrap;
  flex-shrink: 0;
  text-align: right;
  margin-left: auto;
  padding-right: 8px;
}

.sell-count-badge {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-sub);
  text-align: right;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 55px;
}

.sell-count-badge strong {
  color: var(--text-main);
}

/* ==========================================================================
   5. COLUMN 3: STOREFRONT PREVIEW & TIPS
   ========================================================================== */

/* Preview Card */
.storefront-preview-card {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: var(--card-shadow);
}

.preview-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.btn-customize-storefront {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-customize-storefront:hover {
  border-color: var(--emerald);
  color: var(--emerald-dark);
}

.storefront-mini-widget {
  border: 1px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
}

.widget-banner-bg {
  height: 85px;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%), url('../assets/comics/banner-sample.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.banner-overlay-text {
  position: relative;
  z-index: 2;
  color: #ffffff;
}

.banner-store-name {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.banner-store-tag {
  font-size: 9.5px;
  opacity: 0.85;
}

.widget-profile-body {
  padding: 0 14px 14px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.widget-avatar-overlap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  margin-top: -22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #047857;
  font-size: 18px;
  position: relative;
  z-index: 3;
}

.widget-title-verified {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 4px;
}

.widget-title-verified i {
  color: #10b981;
  font-size: 11px;
}

.widget-tier-label {
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.widget-pills-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 12px;
}

.w-pill {
  font-size: 10px;
  color: var(--text-sub);
  background: #f8faf9;
  border: 1px solid #eef2f0;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.w-pill i {
  color: #64748b;
  font-size: 9.5px;
}

.dot-green-active {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #10b981;
}

.btn-view-full-store {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.2s;
}

.btn-view-full-store:hover {
  background: #f8faf9;
  border-color: var(--emerald);
  color: var(--emerald-dark);
}

/* Tips Card */
.grow-store-card {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
}

.grow-tips-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 12px 0 16px 0;
}

.tip-item-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.tip-icon-box {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
}

.icon-emerald { background: #ecfdf5; color: #047857; }

.tip-text-content {
  flex: 1;
  min-width: 0;
}

.tip-heading {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 1px;
}

.tip-desc {
  font-size: 9.5px;
  color: var(--text-sub);
  line-height: 1.35;
}

.grow-cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-learn-more-emerald {
  background: #047857;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s;
  box-shadow: 0 2px 4px rgba(4, 120, 87, 0.2);
}

.btn-learn-more-emerald:hover {
  background: #065f46;
  transform: translateY(-1px);
}

.floating-growth-rocket {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #dcfce7;
  color: #047857;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

/* ==========================================================================
   6. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1100px) {
  .store-metrics-grid-5 {
    grid-template-columns: repeat(3, 1fr);
  }

  .store-main-layout-grid {
    grid-template-columns: 260px 1fr;
  }

  .store-col-right {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
}

@media (max-width: 768px) {
  .store-metrics-grid-5 {
    grid-template-columns: repeat(2, 1fr);
  }

  .store-main-layout-grid {
    grid-template-columns: 1fr;
  }

  .store-col-right {
    grid-column: auto;
    display: flex;
    flex-direction: column;
  }

  .perf-4stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .store-metrics-grid-5 {
    grid-template-columns: 1fr;
  }
}
