/* ─── CF Network Global Dark Theme ──────────────────────────── */

/* Containers */
.discover-container, .library-container, .drops-container,
.account-container, .store-container, .screen-container,
.activation-container, .products-container {
  background: #050507;
  min-height: 100%;
  color: #ffffff;
}

/* Headers */
.screen-header, .page-header, .discover-header, .library-header,
.drops-header, .account-header, .store-header, .content-header {
  padding: 14px 16px 10px;
  background: rgba(5,5,7,0.92);
  backdrop-filter: blur(12px);
}

.screen-title, .page-title, .discover-title, .library-title,
.drops-title, .account-title, .store-title {
  font-size: 22px;
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 2px;
}

.screen-subtitle, .page-subtitle, .discover-subtitle,
.library-subtitle, .section-subtitle { font-size: 11px; color: #64748b; margin: 0; }

/* ─── Category pills ──────────────────────────────────────── */
.category-filter, .filter-pills {
  display: flex; gap: 6px; overflow-x: auto;
  padding: 0 16px 12px; scrollbar-width: none;
}
.category-filter::-webkit-scrollbar { display: none; }

.filter-button, .pill-button, .category-pill {
  flex-shrink: 0; padding: 6px 14px; border-radius: 999px;
  font-size: 11px; font-weight: 600; border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05); color: #94a3b8;
  cursor: pointer; text-decoration: none; white-space: nowrap; transition: all 0.15s;
}
.filter-button.active, .filter-button:hover, .pill-button.active, .category-pill.active {
  background: #FF6B35; border-color: #FF6B35; color: #ffffff;
}

/* ─── Sections ────────────────────────────────────────────── */
.section, .discover-section, .library-section { margin-bottom: 24px; }

.section-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; margin-bottom: 10px;
}

.section-title {
  font-size: 11px; font-weight: 700; color: #94a3b8;
  text-transform: uppercase; letter-spacing: 0.08em; margin: 0;
}

.section-link, .see-all-link {
  font-size: 11px; font-weight: 600; color: #FF6B35; text-decoration: none;
}

/* ─── Horizontal scroll rows ──────────────────────────────── */
.scroll-row, .products-scroll, .creators-scroll, .drops-scroll {
  display: flex; gap: 10px; overflow-x: auto; padding: 0 16px 4px; scrollbar-width: none;
}
.scroll-row::-webkit-scrollbar, .products-scroll::-webkit-scrollbar { display: none; }

.scroll-card, .scroll-item {
  flex-shrink: 0; width: 148px; background: #1a1a1e;
  border: 1px solid rgba(255,255,255,0.06); border-radius: 16px;
  overflow: hidden; text-decoration: none; display: block;
}
.scroll-card:active { transform: scale(0.97); }

.scroll-card-hero {
  height: 80px; display: flex; align-items: center; justify-content: center;
  font-size: 32px; background: rgba(255,107,53,0.12);
}
.scroll-card-body { padding: 10px; }
.scroll-card-title { font-size: 10px; font-weight: 700; color: #ffffff; line-height: 1.3; margin: 0 0 3px; }
.scroll-card-sub { font-size: 9px; color: #64748b; margin: 0 0 6px; }
.scroll-card-price { font-size: 10px; font-weight: 900; color: #FF6B35; }

/* ─── Cards ───────────────────────────────────────────────── */
.card, .store-card, .library-item {
  background: #1a1a1e; border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px; padding: 14px; color: #ffffff;
  text-decoration: none; display: block; transition: transform 0.15s;
}
.card:active { transform: scale(0.98); }

.card-title {
  font-size: 13px; font-weight: 700; color: #ffffff; margin: 0 0 4px; line-height: 1.3;
}
.card-subtitle, .product-store, .product-seller, .drop-store {
  font-size: 11px; color: #64748b; margin: 0 0 8px;
}
.card-price, .product-price {
  font-size: 14px; font-weight: 900; color: #FF6B35;
}
.card-badge, .type-badge {
  display: inline-flex; align-items: center; padding: 2px 8px;
  border-radius: 999px; font-size: 9px; font-weight: 700;
  background: rgba(255,107,53,0.15); color: #FF6B35; margin-bottom: 6px;
}

/* Products grid */
.products-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 0 16px;
}

/* ─── Buttons ─────────────────────────────────────────────── */
.btn-primary, .cta-button, .buy-button, .claim-button {
  background: #FF6B35; color: #ffffff; font-weight: 700; border-radius: 14px;
  padding: 14px 20px; font-size: 15px; border: none; cursor: pointer; width: 100%;
  transition: all 0.15s; text-align: center; display: block; text-decoration: none;
}
.btn-primary:active { transform: scale(0.97); background: #e85a24; }

.btn-secondary, .outline-button {
  background: rgba(255,255,255,0.06); color: #ffffff; font-weight: 600;
  border-radius: 14px; padding: 12px 20px; font-size: 14px;
  border: 1px solid rgba(255,255,255,0.1); cursor: pointer; width: 100%;
  text-align: center; display: block; text-decoration: none;
}

/* ─── Form inputs ─────────────────────────────────────────── */
.input-field, input[type="text"], input[type="email"], input[type="password"],
input[type="number"], textarea, select {
  background: #1a1a1e; border: 1px solid rgba(255,255,255,0.1); border-radius: 12px;
  padding: 12px 14px; font-size: 15px; color: #ffffff; outline: none;
}
.input-field:focus, input:focus, textarea:focus { border-color: #FF6B35; }
.input-field::placeholder, input::placeholder { color: #64748b; }
label { display: block; font-size: 11px; font-weight: 700; color: #94a3b8;
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }

/* ─── Stats ───────────────────────────────────────────────── */
.stats-row, .metrics-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  padding: 0 16px; margin-bottom: 16px;
}
.stat-card, .metric-card {
  background: #1a1a1e; border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px; padding: 12px; text-align: center;
}
.stat-value, .metric-value { font-size: 18px; font-weight: 900; color: #FF6B35; display: block; }
.stat-label, .metric-label {
  font-size: 9px; font-weight: 600; color: #64748b; text-transform: uppercase;
  letter-spacing: 0.06em; margin-top: 2px; display: block;
}

/* ─── Seller/Avatar ───────────────────────────────────────── */
.seller-avatar, .avatar {
  width: 36px; height: 36px; border-radius: 10px; display: flex;
  align-items: center; justify-content: center; font-size: 12px;
  font-weight: 900; color: #ffffff; flex-shrink: 0; background: #FF6B35;
}
.seller-name { font-size: 12px; font-weight: 600; color: #ffffff; }
.seller-handle { font-size: 10px; color: #64748b; }

/* ─── Drops / Live ────────────────────────────────────────── */
.countdown, .timer {
  font-size: 13px; font-weight: 800; color: #FF6B35; font-variant-numeric: tabular-nums;
}
.live-badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px;
  border-radius: 999px; font-size: 9px; font-weight: 700;
  background: rgba(239,68,68,0.15); color: #ef4444;
}

.progress-bar-track { height: 4px; background: rgba(255,255,255,0.08); border-radius: 999px; overflow: hidden; }
.progress-bar-fill { height: 100%; background: #FF6B35; border-radius: 999px; }

/* ─── CF Pass promo ───────────────────────────────────────── */
.pass-promo, .cf-pass-card {
  background: rgba(168,85,247,0.08); border: 1px solid rgba(168,85,247,0.2);
  border-radius: 16px; padding: 14px; margin: 16px; display: flex; align-items: center; gap: 12px;
}
.pass-promo-text { font-size: 12px; font-weight: 700; color: #a855f7; }
.pass-promo-sub { font-size: 10px; color: #64748b; margin-top: 2px; }

/* ─── Product Detail ──────────────────────────────────────── */
.product-hero { padding: 56px 16px 20px; position: relative; background: #050507; }
.product-emoji-box {
  width: 72px; height: 72px; border-radius: 20px; display: flex;
  align-items: center; justify-content: center; font-size: 40px; margin-bottom: 12px;
  background: rgba(255,107,53,0.15); border: 2px solid rgba(255,107,53,0.3);
}
.section-tabs { display: flex; gap: 6px; padding: 0 16px; margin-bottom: 16px; }
.section-tab {
  flex: 1; padding: 8px 4px; font-size: 11px; font-weight: 700; text-align: center;
  border-radius: 10px; cursor: pointer; border: 1px solid rgba(255,255,255,0.08);
  background: #1a1a1e; color: #64748b; transition: all 0.15s;
}
.section-tab.active { background: #FF6B35; color: #ffffff; border-color: #FF6B35; }

/* ─── Store dashboard ─────────────────────────────────────── */
.quick-actions {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
  padding: 0 16px; margin-bottom: 20px;
}
.action-card {
  background: #1a1a1e; border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px; padding: 14px; text-align: center; cursor: pointer;
  text-decoration: none; display: block; transition: transform 0.15s;
}
.action-card:active { transform: scale(0.97); }
.action-card-icon { font-size: 22px; margin-bottom: 6px; }
.action-card-label { font-size: 11px; font-weight: 600; color: #94a3b8; }

/* ─── Activation screen ───────────────────────────────────── */
.activation-screen {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; min-height: 100%; padding: 40px 24px;
  text-align: center; background: #050507;
}
.activation-title { font-size: 28px; font-weight: 900; color: #ffffff; margin: 0 0 8px; }
.activation-subtitle {
  font-size: 14px; color: #64748b; margin: 0 0 36px; line-height: 1.5;
}

/* ─── Back button ─────────────────────────────────────────── */
.back-button, .product-back-btn {
  position: absolute; top: 12px; left: 12px; width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center; border-radius: 10px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08);
  color: #94a3b8; cursor: pointer; text-decoration: none; z-index: 10; font-size: 16px;
}

/* ─── Empty state ─────────────────────────────────────────── */
.empty-state { text-align: center; padding: 48px 24px; color: #64748b; }
.empty-title { font-size: 16px; font-weight: 700; color: #ffffff; margin-bottom: 8px; }
.empty-description { font-size: 13px; color: #64748b; }
.empty-icon { margin: 0 auto 16px; color: #374151; display: block; }

/* ─── Global link / text resets ──────────────────────────── */
a { color: inherit; }
h1, h2, h3, h4, h5 { color: #ffffff; }
p { color: #94a3b8; margin: 0; }

/* ─── Library Screen (Task 1) ────────────────────────────── */
.lib-screen { display: flex; flex-direction: column; height: 100%; background: #050507; }
.lib-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 8px; }
.lib-title { font-size: 26px; font-weight: 900; color: #fff; margin: 0; }
.search-btn { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.08); border: none; color: #aaa; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.filter-row { display: flex; gap: 8px; padding: 0 16px 12px; overflow-x: auto; scrollbar-width: none; }
.filter-row::-webkit-scrollbar { display: none; }
.pill { flex-shrink: 0; padding: 6px 14px; border-radius: 999px; font-size: 11px; font-weight: 600; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.05); color: #94a3b8; text-decoration: none; white-space: nowrap; }
.pill-active { background: #FF6B35; border-color: #FF6B35; color: #fff; }
.lib-content { flex: 1; overflow-y: auto; padding: 0 16px 80px; scrollbar-width: none; }
.lib-content::-webkit-scrollbar { display: none; }
.continue-banner { background: linear-gradient(135deg, rgba(255,107,53,0.12), rgba(255,107,53,0.05)); border: 1px solid rgba(255,107,53,0.2); border-radius: 16px; padding: 14px; margin-bottom: 20px; display: flex; align-items: center; gap: 12px; cursor: pointer; text-decoration: none; }
.seller-group { margin-bottom: 24px; }
.seller-group-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.seller-avatar-sm { width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 8px; font-weight: 900; color: #fff; flex-shrink: 0; }
.seller-group-name { font-size: 12px; font-weight: 700; color: #fff; }
.verified-badge { font-size: 10px; color: #3b82f6; }
.item-count { margin-left: auto; font-size: 10px; color: #64748b; }
.product-row { display: flex; align-items: flex-start; gap: 12px; padding: 10px 4px; border-bottom: 1px solid rgba(255,255,255,0.04); cursor: pointer; text-decoration: none; }
.product-row:last-child { border-bottom: none; }
.product-thumb { width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 26px; flex-shrink: 0; background: rgba(255,107,53,0.1); position: relative; }
.product-info { flex: 1; min-width: 0; }
.product-name { font-size: 13px; font-weight: 600; color: #fff; line-height: 1.3; margin-bottom: 4px; }
.product-seller-line { display: flex; align-items: center; gap: 4px; margin-bottom: 6px; }
.seller-dot { width: 14px; height: 14px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 7px; font-weight: 900; color: #fff; flex-shrink: 0; }
.seller-tiny-name { font-size: 10px; color: #64748b; }
.progress-track { height: 4px; background: rgba(255,255,255,0.08); border-radius: 999px; overflow: hidden; margin-bottom: 3px; }
.progress-fill { height: 100%; background: #FF6B35; border-radius: 999px; }
.progress-label { font-size: 10px; color: #64748b; }

/* ─── Discover Screen (Task 2) ───────────────────────────── */
.discover-screen { display: flex; flex-direction: column; height: 100%; background: #050507; }
.discover-header { padding: 16px 16px 8px; }
.discover-title { font-size: 26px; font-weight: 900; color: #fff; margin: 0 0 2px; }
.discover-subtitle { font-size: 12px; color: #64748b; margin: 0 0 12px; }
.discover-content { flex: 1; overflow-y: auto; scrollbar-width: none; padding-bottom: 80px; }
.discover-content::-webkit-scrollbar { display: none; }
.discover-section { margin-bottom: 24px; }
.section-head { display: flex; align-items: center; justify-content: space-between; padding: 0 16px; margin-bottom: 10px; }
.section-head-title { font-size: 11px; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.08em; }
.section-head-link { font-size: 11px; color: #FF6B35; text-decoration: none; font-weight: 600; }
.cards-row { display: flex; gap: 10px; padding: 0 16px; overflow-x: auto; scrollbar-width: none; }
.cards-row::-webkit-scrollbar { display: none; }
.discover-card { flex-shrink: 0; width: 160px; background: #1a1a1e; border: 1px solid rgba(255,255,255,0.06); border-radius: 16px; overflow: hidden; text-decoration: none; display: flex; flex-direction: column; transition: transform 0.15s; }
.discover-card:active { transform: scale(0.97); }
.discover-card-hero { height: 96px; position: relative; display: flex; align-items: center; justify-content: center; }
.discover-card-emoji { font-size: 36px; }
.discover-card-type { position: absolute; top: 6px; right: 6px; padding: 2px 6px; border-radius: 6px; font-size: 9px; font-weight: 700; background: rgba(255,107,53,0.25); color: #FF6B35; }
.discover-card-hot { position: absolute; top: 6px; left: 6px; padding: 2px 6px; border-radius: 6px; font-size: 9px; font-weight: 700; background: #FF6B35; color: #fff; }
.discover-card-new { position: absolute; top: 6px; left: 6px; padding: 2px 6px; border-radius: 6px; font-size: 9px; font-weight: 700; background: #8b5cf6; color: #fff; }
.discover-card-seller-dot { position: absolute; bottom: 6px; left: 6px; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 8px; font-weight: 900; color: #fff; border: 1px solid rgba(255,255,255,0.2); }
.discover-card-body { padding: 10px; display: flex; flex-direction: column; flex: 1; }
.discover-card-title { font-size: 11px; font-weight: 700; color: #fff; line-height: 1.3; margin-bottom: 3px; }
.discover-card-seller { font-size: 9px; color: #64748b; margin-bottom: 4px; }
.discover-card-following-badge { display: inline-block; margin-left: 4px; padding: 1px 4px; border-radius: 4px; font-size: 7px; font-weight: 700; background: rgba(139, 92, 246, 0.2); color: #a78bfa; vertical-align: middle; }
.discover-card-meta { font-size: 9px; color: #94a3b8; margin-bottom: 6px; }
.discover-card-price { font-size: 13px; font-weight: 900; color: #FF6B35; margin-top: auto; }
.discover-card-price.free { color: #22c55e; }
.discover-featured-card { display: block; background: #1a1a1e; border: 1px solid rgba(255,255,255,0.06); border-radius: 20px; overflow: hidden; text-decoration: none; margin: 0 16px 20px; }
.discover-featured-hero { height: 140px; position: relative; display: flex; align-items: center; justify-content: center; }

/* ─── Drops Screen (Task 3) ──────────────────────────────── */
.drops-screen { display: flex; flex-direction: column; height: 100%; background: #050507; }
.drops-header { padding: 16px 16px 0; }
.drops-title-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.drops-title { font-size: 26px; font-weight: 900; color: #fff; margin: 0; }
.drops-notify-btn { display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(255,107,53,0.1); border: 1px solid rgba(255,107,53,0.2); color: #FF6B35; font-size: 10px; font-weight: 700; cursor: pointer; }
.drops-subtitle { font-size: 12px; color: #64748b; margin: 0 0 12px; }
.drops-sort-row { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 12px; scrollbar-width: none; }
.drops-sort-row::-webkit-scrollbar { display: none; }
.sort-pill { flex-shrink: 0; padding: 6px 12px; border-radius: 999px; font-size: 11px; font-weight: 700; background: #1a1a1e; border: 1px solid rgba(255,255,255,0.08); color: #64748b; text-decoration: none; display: flex; align-items: center; gap: 4px; }
.sort-pill.active { background: #FF6B35; border-color: #FF6B35; color: #fff; }
.drops-content { flex: 1; overflow-y: auto; padding: 0 16px 80px; scrollbar-width: none; }
.drops-content::-webkit-scrollbar { display: none; }
.drops-explainer { background: linear-gradient(135deg, rgba(255,107,53,0.08), rgba(168,85,247,0.06)); border: 1px solid rgba(255,107,53,0.2); border-radius: 16px; padding: 16px; margin-bottom: 16px; display: flex; align-items: flex-start; gap: 12px; }
.drops-live-row { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.live-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #64748b; }
.drop-card { display: block; margin-bottom: 16px; background: #1a1a1e; border: 1px solid rgba(255,255,255,0.06); border-radius: 20px; overflow: hidden; text-decoration: none; transition: transform 0.15s; }
.drop-card:active { transform: scale(0.99); }
.drop-color-strip { height: 4px; }
.drop-card-inner { padding: 16px; }
.drop-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.drop-tag { padding: 3px 8px; border-radius: 999px; font-size: 9px; font-weight: 700; }
.drop-tag-exclusive { background: rgba(255,107,53,0.12); color: #FF6B35; border: 1px solid rgba(255,107,53,0.25); }
.drop-tag-trending { background: rgba(251,146,60,0.15); color: #fb923c; border: 1px solid rgba(251,146,60,0.3); }
.drop-tag-urgent { background: rgba(220,38,38,0.12); color: #f87171; }
.drop-hero-row { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.drop-emoji-box { width: 48px; height: 48px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 28px; flex-shrink: 0; }
.drop-hero-info { flex: 1; min-width: 0; }
.drop-title { font-size: 14px; font-weight: 900; color: #fff; line-height: 1.3; margin-bottom: 6px; }
.drop-seller-row { display: flex; align-items: center; gap: 6px; }
.drop-seller-dot { width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 7px; font-weight: 900; color: #fff; flex-shrink: 0; }
.drop-seller-name { font-size: 10px; color: #64748b; }
.drop-exclusive-box { background: rgba(255,107,53,0.06); border: 1px solid rgba(255,107,53,0.15); border-radius: 10px; padding: 8px 12px; margin-bottom: 10px; font-size: 10px; color: #FF6B35; display: flex; align-items: center; gap: 6px; }
.drop-description { font-size: 12px; color: #94a3b8; line-height: 1.5; margin: 0 0 12px; }
.drop-countdown { background: #242428; border: 1px solid rgba(255,255,255,0.06); border-radius: 14px; padding: 12px; margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; }
.countdown-label { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #64748b; }
.countdown-digits { display: flex; align-items: center; gap: 4px; }
.cd-block { display: flex; flex-direction: column; align-items: center; }
.cd-num { font-size: 22px; font-weight: 900; color: #fff; font-variant-numeric: tabular-nums; line-height: 1; }
.cd-unit { font-size: 8px; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: 0.06em; }
.cd-sep { font-size: 20px; font-weight: 900; color: #64748b; align-self: flex-start; margin-top: 2px; }
.drop-spots-row { display: flex; justify-content: space-between; font-size: 9px; color: #64748b; margin-bottom: 4px; }
.spots-left { font-weight: 700; }
.spots-track { height: 6px; background: #242428; border-radius: 999px; overflow: hidden; margin-bottom: 12px; }
.spots-fill { height: 100%; background: #FF6B35; border-radius: 999px; }
.drop-price-block { display: flex; align-items: center; justify-content: space-between; background: #242428; border: 1px solid rgba(255,255,255,0.06); border-radius: 14px; padding: 12px; }
.drop-price-label { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #64748b; margin-bottom: 4px; }
.drop-price-row { display: flex; align-items: center; gap: 8px; }
.drop-price { font-size: 20px; font-weight: 900; color: #fff; }
.drop-strike { font-size: 12px; color: #64748b; text-decoration: line-through; }
.drop-save { font-size: 10px; font-weight: 700; color: #22c55e; }
.drop-claim-btn { background: #FF6B35; color: #fff; font-weight: 700; border: none; border-radius: 12px; padding: 10px 18px; font-size: 13px; cursor: pointer; }

/* ─── Drop Detail Screen ────────────────────────────────── */
.drop-detail-screen { display: flex; flex-direction: column; height: 100%; background: #050507; }
.back-btn { font-size: 12px; font-weight: 700; color: #FF6B35; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }

/* ─── Dark Form Override ─────────────────────────────────────────────────────── */
/* Applies to all create/edit forms: products, store, drops, customize, push */

.product-form-container,
.store-form-container,
.drop-form-container {
  max-width: 540px;
  margin: 0 auto;
  padding: 0 0 80px;
}

.product-form-title,
.product-form-subtitle,
.store-form-title,
.store-form-subtitle {
  color: #ffffff !important;
}
.product-form-subtitle, .store-form-subtitle { color: #64748b !important; }

.product-form-wrapper,
.store-form-wrapper,
.drop-form-wrapper {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

.form-section {
  background: #1a1a1e;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
}

.form-section-title {
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b !important;
  margin: 0 0 14px !important;
}

.form-group { margin-bottom: 14px; }
.form-group:last-child { margin-bottom: 0; }

.form-row { display: flex; gap: 10px; }
.form-col { flex: 1; min-width: 0; }

.form-label {
  display: block;
  font-size: 10px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b !important;
  margin-bottom: 6px;
}
.form-label.required::after { content: ' *'; color: #FF6B35; }

.form-input,
.form-select,
.form-textarea,
select.form-input,
textarea.form-input,
input[class*="form-input"],
select[class*="form-input"] {
  width: 100% !important;
  background: #242428 !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  border-radius: 12px !important;
  padding: 11px 14px !important;
  color: #ffffff !important;
  font-size: 14px !important;
  outline: none !important;
  box-sizing: border-box !important;
  -webkit-appearance: none !important;
  transition: border-color 0.15s !important;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: rgba(255,107,53,0.4) !important;
}
.form-input::placeholder,
.form-textarea::placeholder { color: #4b5563 !important; }

.form-hint {
  font-size: 10px !important;
  color: #4b5563 !important;
  margin-top: 4px;
  line-height: 1.4;
}

.form-checkbox-group { display: flex; align-items: center; gap: 10px; }
.form-checkbox { width: 16px; height: 16px; accent-color: #FF6B35; }
.form-checkbox-label { font-size: 13px !important; color: #94a3b8 !important; }

.form-actions {
  display: flex !important;
  gap: 10px !important;
  margin-top: 16px !important;
  padding-top: 0 !important;
  border-top: none !important;
}

.btn-primary {
  background: #FF6B35 !important;
  color: #fff !important;
  font-weight: 700 !important;
  border: none !important;
  border-radius: 14px !important;
  padding: 14px 20px !important;
  font-size: 14px !important;
  cursor: pointer !important;
  flex: 1 !important;
  text-align: center !important;
  text-decoration: none !important;
  display: block !important;
}
.btn-secondary {
  background: rgba(255,255,255,0.06) !important;
  color: #94a3b8 !important;
  font-weight: 600 !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 14px !important;
  padding: 14px 20px !important;
  font-size: 14px !important;
  cursor: pointer !important;
  text-align: center !important;
  text-decoration: none !important;
  display: block !important;
}

/* Error messages */
.error-messages {
  background: rgba(239,68,68,0.08) !important;
  border: 1px solid rgba(239,68,68,0.25) !important;
  border-radius: 12px !important;
  padding: 12px 16px !important;
  margin-bottom: 12px !important;
}
.error-title { font-size: 12px !important; font-weight: 700 !important; color: #f87171 !important; margin: 0 0 8px !important; }
.error-item { font-size: 12px !important; color: #fca5a5 !important; }

/* ─── Leaderboard ────────────────────────────────────────── */
.leaderboard-card { margin: 0 16px; background: #1a1a1e; border: 1px solid rgba(255,255,255,0.06); border-radius: 16px; overflow: hidden; }
.leaderboard-row { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,0.04); }
.leaderboard-row:last-child { border-bottom: none; }
.leaderboard-row-you { background: rgba(255,107,53,0.06); }
.leaderboard-rank { width: 22px; font-size: 13px; font-weight: 900; color: #64748b; text-align: center; flex-shrink: 0; }
.leaderboard-row:nth-child(1) .leaderboard-rank { color: #fbbf24; }
.leaderboard-row:nth-child(2) .leaderboard-rank { color: #94a3b8; }
.leaderboard-row:nth-child(3) .leaderboard-rank { color: #cd7f32; }
.leaderboard-avatar { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 900; color: #fff; flex-shrink: 0; }
.leaderboard-name { flex: 1; font-size: 13px; font-weight: 600; color: #fff; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leaderboard-level { font-size: 10px; font-weight: 700; color: #FF6B35; margin-left: 6px; }
.leaderboard-pts { font-size: 12px; font-weight: 800; color: #FF6B35; flex-shrink: 0; }
.leaderboard-divider { height: 1px; background: rgba(255,107,53,0.2); margin: 0 14px; }

/* Override any hardcoded light colors in inline styles */
.product-form-container .product-form-header h1,
.product-form-container .product-form-header p { color: inherit; }
