/* Smart Scale Management - Luxury Corporate Black, Gold & White Mobile-First Theme */
:root {
  --bg-primary: #08080A;
  --bg-secondary: #111115;
  --bg-card: #16161B;
  --bg-elevated: #1E1E25;
  --gold: #D4AF37;
  --gold-light: #F3D574;
  --gold-dark: #A8821B;
  --gold-gradient: linear-gradient(135deg, #F3D574 0%, #D4AF37 52%, #A8821B 100%);
  --text-white: #FFFFFF;
  --text-light: #E8E8ED;
  --text-muted: #9E9EA8;
  --border: rgba(255, 255, 255, 0.09);
  --border-gold: rgba(212, 175, 55, 0.35);
  --success: #22C55E;
  --warning: #F59E0B;
  --danger: #EF4444;
  --info: #3B82F6;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold-light); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--text-white); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { color: var(--text-white); font-weight: 700; line-height: 1.22; letter-spacing: -0.02em; }
h1 { font-size: clamp(1.85rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.45rem, 3.8vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.4rem); }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 18px; }
.section { padding: 56px 0; }
.section-alt { background: var(--bg-secondary); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.text-gold { color: var(--gold-light); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.text-left { text-align: left; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 36px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gap-2 { gap: 12px; }
.gap-3 { gap: 20px; }

/* Header & Navigation */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(8, 8, 10, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-gold);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 70px; gap: 12px;
}
.brand-link { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 48px; height: 48px; border-radius: 10px; object-fit: contain; border: 1px solid var(--border-gold); background: #000; }
.brand-text { display: flex; flex-direction: column; }
.brand-title { font-size: 1.02rem; font-weight: 800; color: var(--text-white); letter-spacing: 0.04em; line-height: 1.08; }
.brand-sub { font-size: 0.88rem; font-weight: 800; color: var(--gold-light); letter-spacing: 0.07em; text-transform: uppercase; line-height: 1.1; margin-top: 2px; text-shadow: 0 0 12px rgba(212, 175, 55, 0.28); }

.nav-desktop { display: none; align-items: center; gap: 20px; }
.nav-desktop a { color: var(--text-light); font-size: 0.92rem; font-weight: 500; padding: 6px 2px; }
.nav-desktop a:hover, .nav-desktop a.active { color: var(--gold-light); }
.nav-desktop .nav-login-btn {
  background: var(--gold-gradient); color: #08080A !important;
  font-weight: 700; padding: 10px 18px; border-radius: 999px;
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.35);
}

.mobile-actions { display: flex; align-items: center; gap: 8px; }
.mobile-login-pill {
  background: var(--gold-gradient); color: #08080A; font-weight: 700;
  font-size: 0.82rem; padding: 8px 13px; border-radius: 999px; white-space: nowrap;
}
.menu-toggle {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--bg-card); border: 1px solid var(--border-gold);
  color: var(--gold-light); display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1.35rem;
}

/* Mobile Slide Drawer */
.mobile-drawer {
  position: fixed; inset: 0; z-index: 1100; display: none;
}
.mobile-drawer.open { display: block; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(4px); }
.drawer-panel {
  position: absolute; top: 0; right: 0; width: min(84vw, 330px); height: 100%;
  background: var(--bg-secondary); border-left: 1px solid var(--border-gold);
  padding: 20px; display: flex; flex-direction: column; overflow-y: auto;
}
.drawer-header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.drawer-close {
  width: 40px; height: 40px; border-radius: 10px; background: var(--bg-card);
  border: 1px solid var(--border); color: var(--text-white); font-size: 1.2rem; cursor: pointer;
}
.drawer-nav { display: flex; flex-direction: column; gap: 6px; margin-top: 18px; }
.drawer-nav a {
  padding: 13px 14px; border-radius: 10px; color: var(--text-light); font-weight: 500;
  background: rgba(255,255,255,0.02); border: 1px solid transparent;
}
.drawer-nav a:hover, .drawer-nav a.active {
  background: rgba(212, 175, 55, 0.12); border-color: var(--border-gold); color: var(--gold-light);
}
.drawer-nav .drawer-login {
  margin-top: 10px; text-align: center; background: var(--gold-gradient);
  color: #08080A !important; font-weight: 700;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 11px 22px; border-radius: 10px;
  font-weight: 600; font-size: 0.95rem; cursor: pointer; border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-align: center;
}
.btn:active { transform: scale(0.98); }
.btn-lg { min-height: 52px; padding: 13px 26px; font-size: 1rem; }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: 0.84rem; border-radius: 8px; }
.btn-block { width: 100%; }
.btn-gold {
  background: var(--gold-gradient); color: #08080A !important; font-weight: 700;
  box-shadow: 0 6px 22px rgba(212, 175, 55, 0.28);
}
.btn-gold:hover { filter: brightness(1.06); box-shadow: 0 8px 28px rgba(212, 175, 55, 0.42); }
.btn-outline {
  background: transparent; border-color: var(--border-gold); color: var(--gold-light) !important;
}
.btn-outline:hover { background: rgba(212, 175, 55, 0.12); color: var(--text-white) !important; }
.btn-dark { background: var(--bg-elevated); border-color: var(--border); color: var(--text-white) !important; }
.btn-danger { background: rgba(239, 68, 68, 0.16); border-color: rgba(239, 68, 68, 0.45); color: #FCA5A5 !important; }
.btn-success { background: rgba(34, 197, 94, 0.16); border-color: rgba(34, 197, 94, 0.45); color: #86EFAC !important; }

/* Hero */
.hero {
  position: relative; padding: 54px 0 60px;
  background: radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.16) 0%, rgba(8, 8, 10, 0) 62%);
  border-bottom: 1px solid var(--border);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(212, 175, 55, 0.12); border: 1px solid var(--border-gold);
  color: var(--gold-light); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero-lead { max-width: 720px; margin: 16px auto 0; font-size: 1.04rem; color: var(--text-muted); }
.hero-cta { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; align-items: stretch; }
.hero-trust-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 34px;
}
.trust-pill {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 14px; text-align: center;
}
.trust-pill strong { display: block; color: var(--gold-light); font-size: 1.15rem; }
.trust-pill span { font-size: 0.8rem; color: var(--text-muted); }

/* Cards & Grids */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }

.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
}
.card-gold { border-color: var(--border-gold); background: linear-gradient(180deg, rgba(212,175,55,0.06) 0%, var(--bg-card) 42%); }

.sector-card { display: flex; flex-direction: column; justify-content: space-between; transition: transform 0.2s ease, border-color 0.2s ease; }
.sector-card:hover { transform: translateY(-3px); border-color: var(--border-gold); }
.sector-icon {
  width: 50px; height: 50px; border-radius: 12px;
  background: rgba(212, 175, 55, 0.14); border: 1px solid var(--border-gold);
  color: var(--gold-light); display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.sector-icon svg { width: 26px; height: 26px; }

.check-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.check-list li { position: relative; padding-left: 26px; font-size: 0.94rem; color: var(--text-light); }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--gold-light); font-weight: 800;
}

.pill-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pill {
  font-size: 0.78rem; padding: 5px 11px; border-radius: 999px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border); color: var(--text-light);
}

/* Badges & Alerts */
.badge {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase;
}
.badge-gold { background: rgba(212,175,55,0.18); color: var(--gold-light); border: 1px solid var(--border-gold); }
.badge-success { background: rgba(34,197,94,0.16); color: #86EFAC; border: 1px solid rgba(34,197,94,0.35); }
.badge-warning { background: rgba(245,158,11,0.16); color: #FCD34D; border: 1px solid rgba(245,158,11,0.35); }
.badge-danger { background: rgba(239,68,68,0.16); color: #FCA5A5; border: 1px solid rgba(239,68,68,0.35); }
.badge-info { background: rgba(59,130,246,0.16); color: #93C5FD; border: 1px solid rgba(59,130,246,0.35); }

.alert {
  padding: 14px 16px; border-radius: var(--radius-sm); font-size: 0.92rem; margin-bottom: 18px;
  border: 1px solid var(--border);
}
.alert-success { background: rgba(34,197,94,0.12); border-color: rgba(34,197,94,0.4); color: #BBF7D0; }
.alert-error, .alert-danger { background: rgba(239,68,68,0.12); border-color: rgba(239,68,68,0.4); color: #FECACA; }
.alert-warning { background: rgba(245,158,11,0.12); border-color: rgba(245,158,11,0.4); color: #FDE68A; }
.alert-info { background: rgba(59,130,246,0.12); border-color: rgba(59,130,246,0.4); color: #BFDBFE; }

/* Forms */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--text-light); margin-bottom: 6px; }
.form-control, select.form-control, textarea.form-control {
  width: 100%; min-height: 46px; padding: 11px 14px;
  background: #0D0D10; border: 1px solid rgba(255,255,255,0.16);
  border-radius: 10px; color: var(--text-white); font-size: 0.96rem; font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-control:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18); }
textarea.form-control { min-height: 110px; resize: vertical; }
.form-check { display: flex; align-items: flex-start; gap: 10px; font-size: 0.88rem; color: var(--text-muted); cursor: pointer; }
.form-check input { width: 18px; height: 18px; accent-color: var(--gold); margin-top: 2px; flex-shrink: 0; }

/* Pricing & Receipt Boxes */
.price-tag { font-size: 2rem; font-weight: 800; color: var(--gold-light); line-height: 1.1; }
.receipt-box { background: #0D0D10; border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.receipt-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
.receipt-row:last-child { border-bottom: none; }
.status-icon {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center; font-size: 1.8rem; font-weight: 800;
}
.status-icon.success { background: rgba(34,197,94,0.18); color: #4ADE80; border: 2px solid #22C55E; }
.status-icon.danger { background: rgba(239,68,68,0.18); color: #F87171; border: 2px solid #EF4444; }
.status-icon.warning { background: rgba(245,158,11,0.18); color: #FBBF24; border: 2px solid #F59E0B; }

/* FAQ Accordion */
.faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; color: var(--text-white);
  padding: 16px 18px; font-size: 0.98rem; font-weight: 600; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-a { display: none; padding: 0 18px 16px; color: var(--text-muted); font-size: 0.93rem; border-top: 1px solid var(--border); padding-top: 12px; }
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-icon { transform: rotate(45deg); color: var(--gold-light); }

/* Tables */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 12px; border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; min-width: 620px; font-size: 0.88rem; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: #101014; color: var(--gold-light); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; }
tr:hover td { background: rgba(255,255,255,0.02); }

/* Dashboards (Partner & Admin) */
.dash-shell { display: flex; flex-direction: column; min-height: 100vh; }
.dash-topbar {
  position: sticky; top: 0; z-index: 900; background: #0C0C0F;
  border-bottom: 1px solid var(--border-gold); padding: 12px 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.dash-body { display: flex; flex: 1; }
.dash-sidebar {
  display: none; width: 255px; flex-shrink: 0; background: var(--bg-secondary);
  border-right: 1px solid var(--border); padding: 18px 12px;
}
.dash-nav { display: flex; flex-direction: column; gap: 4px; }
.dash-nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 13px; border-radius: 9px; color: var(--text-light); font-size: 0.88rem; font-weight: 500;
}
.dash-nav a:hover, .dash-nav a.active {
  background: rgba(212, 175, 55, 0.14); color: var(--gold-light); font-weight: 600;
}
.dash-mobile-tabs {
  display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px;
  background: var(--bg-secondary); border-bottom: 1px solid var(--border);
  -webkit-overflow-scrolling: touch;
}
.dash-mobile-tabs a {
  white-space: nowrap; padding: 8px 13px; border-radius: 999px; font-size: 0.82rem;
  background: var(--bg-card); border: 1px solid var(--border); color: var(--text-light);
}
.dash-mobile-tabs a.active { background: var(--gold-gradient); color: #08080A; font-weight: 700; border-color: transparent; }
.dash-main { flex: 1; padding: 20px 16px 48px; min-width: 0; }
.kpi-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.kpi-label { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.kpi-value { font-size: 1.5rem; font-weight: 800; color: var(--text-white); margin-top: 6px; }
.kpi-value.gold { color: var(--gold-light); }

/* Footer */
.site-footer { background: #050507; border-top: 1px solid var(--border-gold); padding: 48px 0 26px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 9px; margin-top: 12px; }
.footer-links a { color: var(--text-muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--gold-light); }
.footer-bottom {
  margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border);
  font-size: 0.82rem; color: var(--text-muted); text-align: center;
}

/* Responsive Breakpoints */
@media (min-width: 640px) {
  .hero-cta { flex-direction: row; justify-content: center; }
  .hero-trust-grid { grid-template-columns: repeat(4, 1fr); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .nav-desktop { display: flex; }
  .mobile-actions { display: none; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
  .dash-sidebar { display: block; }
  .dash-mobile-tabs { display: none; }
  .dash-main { padding: 28px 32px 56px; }
}

/* Refined Normal Action Buttons with Sharp Gold Outline */
.btn-outline-gold {
  background: rgba(212, 175, 55, 0.06);
  border: 1.5px solid var(--gold);
  color: var(--gold-light) !important;
  font-weight: 600;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: 9px;
}
.btn-outline-gold:hover {
  background: var(--gold-gradient);
  color: #08080A !important;
  border-color: var(--gold-light);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}
.btn-outline-white {
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: var(--text-white) !important;
  font-weight: 600;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: 9px;
}
.btn-outline-white:hover {
  border-color: var(--gold);
  color: var(--gold-light) !important;
  background: rgba(212, 175, 55, 0.08);
}
.progress-bar-track {
  width: 100%; height: 8px; background: rgba(255,255,255,0.08);
  border-radius: 999px; overflow: hidden; margin-top: 8px;
}
.progress-bar-fill {
  height: 100%; background: var(--gold-gradient); border-radius: 999px;
}
.level-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(212, 175, 55, 0.16); border: 1px solid var(--gold);
  color: var(--gold-light); font-size: 0.78rem; font-weight: 700;
}

/* Subtle Homepage Highlight for Become Our Partner */
.btn-partner-highlight {
  background: linear-gradient(135deg, rgba(243, 213, 116, 0.24) 0%, rgba(212, 175, 55, 0.16) 100%);
  border: 1.8px solid var(--gold-light);
  color: #FFF7D6 !important;
  font-weight: 700;
  min-height: 44px;
  padding: 10px 24px;
  border-radius: 9px;
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.btn-partner-highlight:hover {
  background: var(--gold-gradient);
  color: #08080A !important;
  border-color: var(--gold-light);
  box-shadow: 0 6px 24px rgba(212, 175, 55, 0.42);
}
