/* Kingly Brands - Premium Brand Marketplace */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --gold: #EFB10A;
  --gold-light: #F5C842;
  --gold-dark: #C8920A;
  --black: #0A0A0A;
  --dark: #111111;
  --dark-2: #1A1A1A;
  --dark-3: #222222;
  --gray: #888888;
  --gray-light: #CCCCCC;
  --white: #FFFFFF;
  --white-off: #F8F6F0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  min-height: 100vh;
}

/* ===== TYPOGRAPHY ===== */
.font-display { font-family: 'Playfair Display', serif; }
h1, h2, h3 { font-family: 'Playfair Display', serif; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 3px; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(239,177,10,0.15);
  padding: 0 2rem;
  height: 72px;
  display: flex; align-items: center; justify-content: space-between;
}
.navbar-brand { display: flex; align-items: center; gap: 0; text-decoration: none; }
.navbar-brand img { height: 56px; width: auto; }
.navbar-brand .brand-text { display: none; }
.navbar-brand .brand-sub { display: none; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { color: var(--gray-light); text-decoration: none; font-size: 0.875rem; font-weight: 500; letter-spacing: 0.5px; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-actions { display: flex; align-items: center; gap: 1rem; }
.nav-mobile-toggle { display: none; background: none; border: none; color: var(--white); cursor: pointer; font-size: 1.5rem; }
.mobile-menu { display: none; position: fixed; top: 72px; left: 0; right: 0; bottom: 0; background: var(--dark); z-index: 999; padding: 2rem; flex-direction: column; gap: 1.5rem; overflow-y: auto; }
.mobile-menu.open { display: flex; }
.mobile-menu a { color: var(--white); text-decoration: none; font-size: 1.1rem; padding: 0.75rem 0; border-bottom: 1px solid var(--dark-3); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0.75rem 1.75rem; border-radius: 6px; font-weight: 600;
  font-size: 0.875rem; letter-spacing: 0.5px; cursor: pointer;
  transition: all 0.25s; border: none; text-decoration: none; white-space: nowrap;
}
.btn-gold { background: var(--gold); color: var(--black); }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(239,177,10,0.35); }
.btn-outline { background: transparent; color: var(--gold); border: 1.5px solid var(--gold); }
.btn-outline:hover { background: var(--gold); color: var(--black); }
.btn-dark { background: var(--dark-3); color: var(--white); border: 1px solid rgba(255,255,255,0.1); }
.btn-dark:hover { background: var(--dark-2); border-color: var(--gold); }
.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.8rem; }
.btn-lg { padding: 1rem 2.5rem; font-size: 1rem; }
.btn-xl { padding: 1.2rem 3rem; font-size: 1.05rem; letter-spacing: 1px; }
.btn-full { width: 100%; }
.btn-danger { background: #dc2626; color: white; }
.btn-danger:hover { background: #b91c1c; }
.btn-success { background: #16a34a; color: white; }
.btn-success:hover { background: #15803d; }

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; position: relative; overflow: hidden;
  padding: 120px 2rem 80px;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(239,177,10,0.12) 0%, transparent 70%),
              linear-gradient(180deg, var(--dark) 0%, var(--black) 100%);
}
.hero::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23EFB10A' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(239,177,10,0.1); border: 1px solid rgba(239,177,10,0.3);
  padding: 0.4rem 1.25rem; border-radius: 50px; font-size: 0.78rem;
  color: var(--gold); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 2rem;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 800;
  line-height: 1.1; margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--white) 0%, var(--gold-light) 50%, var(--gold) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero p { font-size: clamp(1rem, 2vw, 1.2rem); color: var(--gray-light); max-width: 600px; margin: 0 auto 2.5rem; line-height: 1.8; }
.hero-search {
  display: flex; max-width: 620px; margin: 0 auto 3rem;
  background: rgba(255,255,255,0.05); border: 1.5px solid rgba(239,177,10,0.3);
  border-radius: 50px; overflow: hidden; backdrop-filter: blur(10px);
}
.hero-search input {
  flex: 1; background: none; border: none; outline: none; color: var(--white);
  padding: 1.1rem 1.5rem; font-size: 1rem; font-family: inherit;
}
.hero-search input::placeholder { color: var(--gray); }
.hero-search button {
  background: var(--gold); color: var(--black); border: none; padding: 0 2rem;
  font-weight: 700; font-size: 0.9rem; cursor: pointer; transition: background 0.2s; white-space: nowrap;
}
.hero-search button:hover { background: var(--gold-light); }
.hero-stats {
  display: flex; gap: 3rem; justify-content: center; flex-wrap: wrap;
  padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.08);
  max-width: 640px; margin: 0 auto; display: none !important;
}
.hero-stat { text-align: center; }
.hero-stat .num { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; color: var(--gold); display: block; }
.hero-stat .label { font-size: 0.75rem; color: var(--gray); letter-spacing: 1px; text-transform: uppercase; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3rem; }

/* ===== SECTIONS ===== */
.section { padding: 5rem 2rem; }
.section-dark { background: var(--dark); }
.section-darker { background: var(--dark-2); }
.container { max-width: 1280px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header .eyebrow { font-size: 0.75rem; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 1rem; display: block; }
.section-header h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; color: var(--white); margin-bottom: 1rem; }
.section-header p { color: var(--gray); font-size: 1.05rem; max-width: 560px; margin: 0 auto; line-height: 1.8; }
.section-header .divider { width: 60px; height: 3px; background: linear-gradient(90deg, var(--gold), transparent); margin: 1.5rem auto 0; border-radius: 2px; }

/* ===== BRAND CARDS ===== */
.brands-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem;
}
.brand-card {
  background: var(--dark-2); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px; overflow: hidden; transition: all 0.3s; position: relative; cursor: pointer;
}
.brand-card:hover { transform: translateY(-4px); border-color: rgba(239,177,10,0.4); box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(239,177,10,0.1); }
.brand-card-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--gold); color: var(--black); font-size: 0.65rem; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; padding: 3px 10px; border-radius: 50px;
}
.brand-card-badge.new { background: #16a34a; color: white; }
.brand-card-badge.sold { background: #374151; color: #9ca3af; }
.brand-card-fav {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s; color: var(--gray);
}
.brand-card-fav:hover, .brand-card-fav.active { background: rgba(239,177,10,0.2); border-color: var(--gold); color: var(--gold); }
.brand-card-logo {
  height: 140px; background: linear-gradient(135deg, var(--dark-3), rgba(239,177,10,0.05));
  display: flex; align-items: center; justify-content: center; position: relative;
  overflow: hidden;
}
.brand-card-logo img { max-height: 80px; max-width: 80%; object-fit: contain; }
.brand-logo-placeholder {
  width: 80px; height: 80px; border-radius: 16px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 800; color: var(--black);
}
.brand-card-body { padding: 1.25rem; }
.brand-card-name { font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 700; color: var(--white); margin-bottom: 0.25rem; }
.brand-card-domain { font-size: 0.8rem; color: var(--gold); letter-spacing: 0.5px; margin-bottom: 0.6rem; }
.brand-card-tagline { font-size: 0.85rem; color: var(--gray); line-height: 1.5; margin-bottom: 1rem; }
.brand-card-meta { display: flex; align-items: center; justify-content: space-between; }
.brand-card-price { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 700; color: var(--gold); }
.brand-card-category { font-size: 0.72rem; background: rgba(239,177,10,0.1); color: var(--gold); padding: 3px 10px; border-radius: 50px; letter-spacing: 0.5px; }

/* ===== CATEGORY CARDS ===== */
.categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }
.category-card {
  background: var(--dark-3); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px; padding: 1.5rem 1rem; text-align: center;
  text-decoration: none; transition: all 0.3s; cursor: pointer;
}
.category-card:hover { background: rgba(239,177,10,0.08); border-color: rgba(239,177,10,0.35); transform: translateY(-2px); }
.category-icon { font-size: 2rem; margin-bottom: 0.75rem; display: block; }
.category-name { color: var(--white); font-size: 0.9rem; font-weight: 600; margin-bottom: 0.25rem; }
.category-count { color: var(--gray); font-size: 0.75rem; }

/* ===== WHY KINGLY ===== */
.why-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.why-card {
  background: var(--dark-3); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px; padding: 2rem;
}
.why-icon { width: 52px; height: 52px; background: rgba(239,177,10,0.1); border: 1px solid rgba(239,177,10,0.2); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; color: var(--gold); font-size: 1.4rem; }
.why-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--white); margin-bottom: 0.6rem; }
.why-card p { font-size: 0.875rem; color: var(--gray); line-height: 1.7; }

/* ===== HOW IT WORKS ===== */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 2rem; position: relative; }
.step-card { text-align: center; position: relative; }
.step-num { width: 56px; height: 56px; background: linear-gradient(135deg, var(--gold-dark), var(--gold)); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.25rem; font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 800; color: var(--black); }
.step-card h3 { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 0.5rem; }
.step-card p { font-size: 0.85rem; color: var(--gray); line-height: 1.7; }

/* ===== FILTERS SIDEBAR ===== */
.marketplace-layout { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; align-items: start; }
.filters-panel {
  background: var(--dark-2); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px; padding: 1.5rem; position: sticky; top: 90px;
}
.filter-section { margin-bottom: 1.75rem; }
.filter-section:last-child { margin-bottom: 0; }
.filter-title { font-size: 0.75rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.filter-options { display: flex; flex-direction: column; gap: 0.5rem; }
.filter-option { display: flex; align-items: center; gap: 0.75rem; cursor: pointer; }
.filter-option input[type="checkbox"] { accent-color: var(--gold); width: 15px; height: 15px; }
.filter-option label { font-size: 0.875rem; color: var(--gray-light); cursor: pointer; }
.filter-option:hover label { color: var(--white); }
.price-range { display: flex; gap: 0.75rem; }
.price-range input { flex: 1; background: var(--dark-3); border: 1px solid rgba(255,255,255,0.1); border-radius: 6px; padding: 0.5rem 0.75rem; color: var(--white); font-size: 0.85rem; outline: none; width: 100%; }
.price-range input:focus { border-color: var(--gold); }
.filter-search { width: 100%; background: var(--dark-3); border: 1px solid rgba(255,255,255,0.1); border-radius: 6px; padding: 0.6rem 0.75rem; color: var(--white); font-size: 0.875rem; outline: none; font-family: inherit; }
.filter-search:focus { border-color: var(--gold); }
.sort-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem; }
.sort-bar .results-count { font-size: 0.875rem; color: var(--gray); }
.sort-select { background: var(--dark-2); border: 1px solid rgba(255,255,255,0.1); color: var(--white); padding: 0.5rem 1rem; border-radius: 6px; font-size: 0.875rem; outline: none; cursor: pointer; }
.sort-select:focus { border-color: var(--gold); }

/* ===== BRAND DETAIL ===== */
.detail-layout { display: grid; grid-template-columns: 1fr 380px; gap: 2.5rem; align-items: start; }
.detail-logo-area {
  background: linear-gradient(135deg, var(--dark-3), rgba(239,177,10,0.05));
  border: 1px solid rgba(239,177,10,0.15); border-radius: 16px;
  padding: 3rem; text-align: center; margin-bottom: 2rem;
}
.detail-logo-area img { max-height: 160px; max-width: 100%; object-fit: contain; }
.detail-brand-name { font-family: 'Playfair Display', serif; font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; color: var(--white); margin-bottom: 0.5rem; }
.detail-domain { font-size: 1.1rem; color: var(--gold); letter-spacing: 1px; margin-bottom: 1.5rem; }
.detail-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.tag { background: var(--dark-3); border: 1px solid rgba(255,255,255,0.08); padding: 4px 14px; border-radius: 50px; font-size: 0.78rem; color: var(--gray-light); }
.detail-section { margin-bottom: 2rem; }
.detail-section h3 { font-size: 0.75rem; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 1rem; }
.detail-section p { color: var(--gray-light); line-height: 1.8; }
.included-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.included-list li { display: flex; align-items: center; gap: 0.75rem; font-size: 0.9rem; color: var(--gray-light); }
.included-list li::before { content: '✓'; color: var(--gold); font-weight: 700; }
.purchase-box {
  background: var(--dark-2); border: 1px solid rgba(239,177,10,0.2);
  border-radius: 16px; padding: 2rem; position: sticky; top: 90px;
}
.purchase-box .price-big { font-family: 'Playfair Display', serif; font-size: 2.8rem; font-weight: 800; color: var(--gold); margin-bottom: 0.25rem; }
.purchase-box .price-label { font-size: 0.78rem; color: var(--gray); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 1.5rem; }
.trust-badges { display: flex; flex-direction: column; gap: 0.75rem; padding: 1.25rem 0; border-top: 1px solid rgba(255,255,255,0.07); margin-top: 1.25rem; }
.trust-badge { display: flex; align-items: center; gap: 0.75rem; font-size: 0.8rem; color: var(--gray); }
.trust-badge-icon { color: var(--gold); font-size: 1rem; }

/* ===== DASHBOARD ===== */
.dashboard-layout { display: flex; min-height: calc(100vh - 72px); }
.sidebar {
  width: 260px; background: var(--dark); border-right: 1px solid rgba(255,255,255,0.07);
  padding: 2rem 1rem; position: sticky; top: 72px; height: calc(100vh - 72px);
  overflow-y: auto; flex-shrink: 0;
}
.sidebar-brand { padding: 0 0.5rem 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.07); margin-bottom: 1.5rem; }
.sidebar-brand .s-name { font-family: 'Playfair Display', serif; font-size: 1rem; color: var(--white); }
.sidebar-brand .s-role { font-size: 0.72rem; color: var(--gold); letter-spacing: 1px; text-transform: uppercase; }
.sidebar-nav { display: flex; flex-direction: column; gap: 0.25rem; }
.sidebar-item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 0.75rem; border-radius: 8px; color: var(--gray);
  font-size: 0.875rem; font-weight: 500; cursor: pointer; transition: all 0.2s;
  text-decoration: none; background: none; border: none; width: 100%; text-align: left;
}
.sidebar-item:hover { background: rgba(255,255,255,0.05); color: var(--white); }
.sidebar-item.active { background: rgba(239,177,10,0.1); color: var(--gold); }
.sidebar-item .sidebar-icon { font-size: 1rem; width: 20px; flex-shrink: 0; }
.sidebar-badge { margin-left: auto; background: var(--gold); color: var(--black); font-size: 0.65rem; font-weight: 700; padding: 2px 7px; border-radius: 50px; }
.sidebar-divider { border: none; border-top: 1px solid rgba(255,255,255,0.07); margin: 0.75rem 0; }
.dashboard-main { flex: 1; padding: 2rem; overflow-y: auto; min-width: 0; }
.dashboard-header { margin-bottom: 2rem; }
.dashboard-header h1 { font-size: 1.6rem; font-weight: 700; color: var(--white); margin-bottom: 0.25rem; }
.dashboard-header p { color: var(--gray); font-size: 0.9rem; }

/* ===== STATS GRID ===== */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.25rem; margin-bottom: 2rem; }
.stat-card {
  background: var(--dark-2); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px; padding: 1.5rem;
}
.stat-card .stat-label { font-size: 0.75rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gray); margin-bottom: 0.75rem; }
.stat-card .stat-value { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; color: var(--white); margin-bottom: 0.25rem; }
.stat-card .stat-value.gold { color: var(--gold); }
.stat-card .stat-sub { font-size: 0.78rem; color: var(--gray); }
.stat-card .stat-icon { float: right; font-size: 2rem; color: rgba(239,177,10,0.2); margin-top: -0.5rem; }

/* ===== TABLES ===== */
.table-container { background: var(--dark-2); border: 1px solid rgba(255,255,255,0.07); border-radius: 12px; overflow: hidden; }
.table-header { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.07); }
.table-header h3 { font-size: 1rem; font-weight: 700; color: var(--white); }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; padding: 0.9rem 1.25rem; font-size: 0.72rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gray); font-weight: 600; border-bottom: 1px solid rgba(255,255,255,0.06); }
td { padding: 1rem 1.25rem; font-size: 0.875rem; color: var(--gray-light); border-bottom: 1px solid rgba(255,255,255,0.04); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.02); }

/* ===== FORMS ===== */
.form-card { background: var(--dark-2); border: 1px solid rgba(255,255,255,0.07); border-radius: 12px; padding: 2rem; }
.form-group { margin-bottom: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-label { display: block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.5px; color: var(--gray-light); margin-bottom: 0.5rem; text-transform: uppercase; }
.form-input, .form-textarea, .form-select {
  width: 100%; background: var(--dark-3); border: 1.5px solid rgba(255,255,255,0.08);
  border-radius: 8px; padding: 0.75rem 1rem; color: var(--white); font-size: 0.9rem;
  font-family: inherit; outline: none; transition: border-color 0.2s;
}
.form-input:focus, .form-textarea:focus, .form-select:focus { border-color: var(--gold); }
.form-input::placeholder, .form-textarea::placeholder { color: var(--gray); }
.form-textarea { resize: vertical; min-height: 100px; }
.form-select option { background: var(--dark-3); }
.form-hint { font-size: 0.78rem; color: var(--gray); margin-top: 0.35rem; }
.form-error { font-size: 0.78rem; color: #ef4444; margin-top: 0.35rem; }

/* ===== BADGES / STATUS ===== */
.status-badge { padding: 4px 12px; border-radius: 50px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; display: inline-block; }
.status-pending { background: rgba(245,158,11,0.15); color: #f59e0b; }
.status-approved { background: rgba(22,163,74,0.15); color: #22c55e; }
.status-rejected { background: rgba(239,68,68,0.15); color: #ef4444; }
.status-sold { background: rgba(139,92,246,0.15); color: #a78bfa; }
.status-draft { background: rgba(107,114,128,0.15); color: #9ca3af; }
.status-active { background: rgba(22,163,74,0.15); color: #22c55e; }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.85); backdrop-filter: blur(8px);
  z-index: 2000; display: flex; align-items: center; justify-content: center;
  padding: 2rem; opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--dark-2); border: 1px solid rgba(239,177,10,0.2); border-radius: 16px;
  padding: 2.5rem; max-width: 520px; width: 100%; transform: scale(0.95); transition: transform 0.25s;
  max-height: 90vh; overflow-y: auto;
}
.modal-overlay.open .modal { transform: scale(1); }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.75rem; }
.modal-header h2 { font-size: 1.4rem; font-weight: 700; color: var(--white); }
.modal-close { background: none; border: none; color: var(--gray); cursor: pointer; font-size: 1.5rem; transition: color 0.2s; }
.modal-close:hover { color: var(--white); }

/* ===== AUTH ===== */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem; background: radial-gradient(ellipse 60% 60% at 50% 0%, rgba(239,177,10,0.08) 0%, transparent 70%), var(--dark); }
.auth-card { background: var(--dark-2); border: 1px solid rgba(239,177,10,0.15); border-radius: 20px; padding: 2.5rem; width: 100%; max-width: 440px; }
.auth-logo { text-align: center; margin-bottom: 2rem; }
.auth-logo img { height: 80px; }
.auth-title { font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 700; text-align: center; color: var(--white); margin-bottom: 0.5rem; }
.auth-sub { text-align: center; color: var(--gray); font-size: 0.9rem; margin-bottom: 2rem; }
.auth-divider { display: flex; align-items: center; gap: 1rem; margin: 1.5rem 0; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,0.08); }
.auth-divider span { color: var(--gray); font-size: 0.8rem; }
.auth-switch { text-align: center; margin-top: 1.5rem; font-size: 0.875rem; color: var(--gray); }
.auth-switch a { color: var(--gold); text-decoration: none; font-weight: 600; }
.role-selector { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-bottom: 1.5rem; }
.role-option { border: 2px solid rgba(255,255,255,0.08); border-radius: 10px; padding: 1rem; text-align: center; cursor: pointer; transition: all 0.2s; }
.role-option:hover, .role-option.selected { border-color: var(--gold); background: rgba(239,177,10,0.05); }
.role-option .role-icon { font-size: 1.5rem; display: block; margin-bottom: 0.5rem; }
.role-option .role-name { font-size: 0.85rem; font-weight: 600; color: var(--white); }

/* ===== CHECKOUT ===== */
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 2rem; }
.checkout-steps { display: flex; gap: 0; margin-bottom: 2rem; }
.checkout-step { flex: 1; text-align: center; padding: 0.75rem; font-size: 0.8rem; border-bottom: 2px solid rgba(255,255,255,0.08); color: var(--gray); }
.checkout-step.active { border-color: var(--gold); color: var(--gold); font-weight: 600; }
.checkout-step.done { border-color: #22c55e; color: #22c55e; }
.order-summary { background: var(--dark-2); border: 1px solid rgba(255,255,255,0.07); border-radius: 12px; padding: 1.75rem; position: sticky; top: 90px; }
.order-summary h3 { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 1.5rem; }
.order-line { display: flex; justify-content: space-between; margin-bottom: 0.75rem; font-size: 0.875rem; }
.order-line .label { color: var(--gray); }
.order-line .value { color: var(--white); font-weight: 500; }
.order-total { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 1rem; margin-top: 0.5rem; }
.order-total .label { color: var(--white); font-weight: 700; }
.order-total .value { color: var(--gold); font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 800; }

/* ===== COMMISSION ===== */
.commission-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 2rem; }
.tier-card { background: var(--dark-3); border: 1px solid rgba(255,255,255,0.07); border-radius: 12px; padding: 1.5rem; text-align: center; }
.tier-card.active { border-color: var(--gold); background: rgba(239,177,10,0.05); }
.tier-name { font-size: 0.75rem; letter-spacing: 2px; text-transform: uppercase; color: var(--gray); margin-bottom: 0.5rem; }
.tier-rate { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 800; color: var(--white); margin-bottom: 0.25rem; }
.tier-rate.gold { color: var(--gold); }
.tier-sub { font-size: 0.78rem; color: var(--gray); }
.tier-badge-star { color: var(--gold); font-size: 1.2rem; }

/* ===== FEATURED BANNER ===== */
.featured-packages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.featured-pkg { border: 1.5px solid rgba(255,255,255,0.08); border-radius: 10px; padding: 1.25rem; text-align: center; cursor: pointer; transition: all 0.2s; position: relative; }
.featured-pkg:hover, .featured-pkg.selected { border-color: var(--gold); background: rgba(239,177,10,0.06); }
.featured-pkg .pkg-price { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 800; color: var(--gold); }
.featured-pkg .pkg-name { font-weight: 700; color: var(--white); font-size: 0.9rem; margin: 0.25rem 0; }
.featured-pkg .pkg-desc { font-size: 0.78rem; color: var(--gray); }
.featured-pkg .pkg-popular { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: var(--gold); color: var(--black); font-size: 0.65rem; font-weight: 700; padding: 2px 10px; border-radius: 50px; letter-spacing: 1px; white-space: nowrap; }

/* ===== TOAST ===== */
.toast-container { position: fixed; bottom: 2rem; right: 2rem; z-index: 9999; display: flex; flex-direction: column; gap: 0.75rem; }
.toast { background: var(--dark-2); border: 1px solid rgba(255,255,255,0.1); border-left: 3px solid var(--gold); border-radius: 8px; padding: 0.9rem 1.25rem; font-size: 0.875rem; color: var(--white); min-width: 280px; box-shadow: 0 8px 30px rgba(0,0,0,0.5); animation: slideIn 0.3s ease; display: flex; align-items: center; gap: 0.75rem; }
.toast.success { border-left-color: #22c55e; }
.toast.error { border-left-color: #ef4444; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ===== FOOTER ===== */
.footer { background: var(--dark); border-top: 1px solid rgba(255,255,255,0.06); padding: 4rem 2rem 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; max-width: 1280px; margin: 0 auto 3rem; }
.footer-brand img { height: 72px; width: auto; margin-bottom: 1rem; }
.footer-brand p { color: var(--gray); font-size: 0.875rem; line-height: 1.8; max-width: 280px; }
.footer-col h4 { font-size: 0.75rem; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 1.25rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.footer-col ul li a { color: var(--gray); text-decoration: none; font-size: 0.875rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom { max-width: 1280px; margin: 0 auto; border-top: 1px solid rgba(255,255,255,0.06); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { font-size: 0.8rem; color: var(--gray); }

/* ===== TABS ===== */
.tabs { display: flex; gap: 0; border-bottom: 1px solid rgba(255,255,255,0.07); margin-bottom: 2rem; }
.tab { padding: 0.85rem 1.5rem; font-size: 0.875rem; font-weight: 500; color: var(--gray); cursor: pointer; border-bottom: 2px solid transparent; transition: all 0.2s; background: none; border-left: none; border-right: none; border-top: none; white-space: nowrap; }
.tab:hover { color: var(--white); }
.tab.active { color: var(--gold); border-bottom-color: var(--gold); }

/* ===== BREADCRUMB ===== */
.breadcrumb { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; color: var(--gray); margin-bottom: 2rem; }
.breadcrumb a { color: var(--gray); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: var(--white); }

/* ===== EMPTY STATE ===== */
.empty-state { text-align: center; padding: 4rem 2rem; }
.empty-icon { font-size: 3rem; margin-bottom: 1rem; color: var(--gray); }
.empty-state h3 { font-size: 1.2rem; font-weight: 700; color: var(--white); margin-bottom: 0.5rem; }
.empty-state p { color: var(--gray); font-size: 0.9rem; }

/* ===== SIMILAR BRANDS ===== */
.similar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }

/* ===== ALERTS ===== */
.alert { padding: 1rem 1.25rem; border-radius: 8px; font-size: 0.875rem; margin-bottom: 1.5rem; display: flex; align-items: flex-start; gap: 0.75rem; }
.alert-warning { background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.3); color: #f59e0b; }
.alert-success { background: rgba(22,163,74,0.1); border: 1px solid rgba(22,163,74,0.3); color: #22c55e; }
.alert-info { background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.3); color: #60a5fa; }

/* ===== SELLER TIER BADGE ===== */
.seller-tier { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 50px; font-size: 0.72rem; font-weight: 700; }
.tier-standard { background: rgba(107,114,128,0.2); color: #9ca3af; }
.tier-verified { background: rgba(59,130,246,0.2); color: #60a5fa; }
.tier-elite { background: rgba(239,177,10,0.2); color: var(--gold); }

/* ===== PROGRESS ===== */
.progress-bar { height: 6px; background: var(--dark-3); border-radius: 3px; overflow: hidden; margin-top: 0.5rem; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--gold-dark), var(--gold)); border-radius: 3px; transition: width 0.5s; }

/* ===== PAGINATION ===== */
.pagination { display: flex; gap: 0.5rem; justify-content: center; margin-top: 2.5rem; flex-wrap: wrap; }
.page-btn { width: 38px; height: 38px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 0.875rem; font-weight: 500; cursor: pointer; background: var(--dark-2); border: 1px solid rgba(255,255,255,0.07); color: var(--gray); transition: all 0.2s; }
.page-btn:hover { border-color: var(--gold); color: var(--white); }
.page-btn.active { background: var(--gold); border-color: var(--gold); color: var(--black); font-weight: 700; }

/* ===== UPLOAD ZONE ===== */
.upload-zone {
  border: 2px dashed rgba(239,177,10,0.3); border-radius: 10px; padding: 2.5rem;
  text-align: center; cursor: pointer; transition: all 0.2s;
  background: rgba(239,177,10,0.02);
}
.upload-zone:hover { border-color: var(--gold); background: rgba(239,177,10,0.05); }
.upload-zone p { color: var(--gray); font-size: 0.875rem; margin-top: 0.5rem; }
.upload-zone .upload-icon { font-size: 2rem; color: var(--gold); margin-bottom: 0.5rem; }
.upload-zone input[type="file"] { display: none; }

/* ===== LOADING ===== */
.loading-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.8); z-index: 9999; display: flex; align-items: center; justify-content: center; }
.spinner { width: 48px; height: 48px; border: 3px solid rgba(239,177,10,0.2); border-top-color: var(--gold); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .marketplace-layout { grid-template-columns: 1fr; }
  .filters-panel { position: static; }
  .detail-layout { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  .purchase-box { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .commission-tiers { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .navbar { padding: 0 1rem; }
  .nav-links { display: none; }
  .nav-mobile-toggle { display: block; }
  .section { padding: 3.5rem 1rem; }
  .hero { padding: 100px 1rem 60px; }
  .brands-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .dashboard-layout { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: static; overflow: visible; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .featured-packages { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .hero-search { flex-direction: column; border-radius: 12px; }
  .hero-search button { padding: 1rem; border-radius: 0; }
  .hero-stats { gap: 1.5rem; }
  .brands-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; }
  .stats-grid { grid-template-columns: 1fr; }
}
