/* ==========================================================
   TradeConnect — design tokens
   Premium, light, navy/sapphire palette with a brass accent.
   Deliberately not a generic SaaS card kit: hairline dividers,
   directory-style listings, restrained motion.
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --navy-950: #0B1F3A;
    --navy-900: #0F2A4A;
    --blue-700: #1E4DB7;
    --blue-600: #2C5FD1;
    --blue-500: #4472DE;
    --sky-50:   #F5F8FC;
    --sand-100: #EDF1F8;
    --gold-500: #B8862E;
    --gold-600: #9A6F22;
    --slate-600:#5B6B85;
    --slate-400:#8C9AB3;
    --line:     #DCE3EE;
    --line-strong: #C4CEE0;
    --white:    #FFFFFF;
    --success:  #1E7F4F;
    --danger:   #B23B3B;

    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --radius-sm: 6px;
    --radius-md: 10px;
    --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--navy-950);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; margin: 0; color: var(--navy-950); }
p { margin: 0; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---- Buttons ---- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px; padding: 12px 22px; border-radius: var(--radius-sm);
    font-family: var(--font-body); font-weight: 600; font-size: 14.5px;
    border: 1px solid transparent; cursor: pointer; transition: background .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--blue-700); color: var(--white); }
.btn-primary:hover { background: var(--navy-900); }
.btn-outline { background: transparent; border-color: var(--line-strong); color: var(--navy-950); }
.btn-outline:hover { border-color: var(--blue-700); color: var(--blue-700); }
.btn-gold { background: var(--gold-500); color: var(--white); }
.btn-gold:hover { background: var(--gold-600); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 13.5px; }

/* ---- Header ---- */
.site-header { border-bottom: 1px solid var(--line); background: var(--white); position: sticky; top: 0; z-index: 40; }
.site-header .row { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--navy-950); display: flex; align-items: baseline; gap: 6px; }
.logo span { color: var(--blue-700); }
.main-nav { display: flex; gap: 32px; }
.main-nav a { font-size: 14.5px; font-weight: 500; color: var(--slate-600); }
.main-nav a:hover, .main-nav a.active { color: var(--navy-950); }
.header-actions { display: flex; align-items: center; gap: 12px; }

/* ---- Hero ---- */
.hero { background: var(--sky-50); border-bottom: 1px solid var(--line); }
.hero .row { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 64px; align-items: center; padding: 72px 0; }
.hero-eyebrow { font-size: 13.5px; color: var(--gold-600); font-weight: 600; margin-bottom: 18px; }
.hero h1 { font-size: 46px; line-height: 1.15; letter-spacing: -0.01em; }
.hero h1 em { font-style: normal; color: var(--blue-700); }
.hero p.lead { margin-top: 20px; font-size: 17px; color: var(--slate-600); max-width: 480px; }

/* Search bar styled like a trade-directory lookup, not a generic pill */
.search-panel { margin-top: 32px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 6px; display: flex; gap: 0; }
.search-panel select, .search-panel input {
    border: none; background: transparent; font-family: var(--font-body); font-size: 14.5px;
    padding: 14px 16px; color: var(--navy-950); outline: none;
}
.search-panel select { border-right: 1px solid var(--line); width: 170px; }
.search-panel input { flex: 1; }
.search-panel button { border-radius: 6px; }

.hero-stats { display: flex; gap: 36px; margin-top: 40px; }
.hero-stats .stat b { display: block; font-family: var(--font-display); font-size: 28px; color: var(--navy-950); }
.hero-stats .stat span { font-size: 13px; color: var(--slate-600); }

/* Live activity ticker card, right side of hero */
.ticker-card { background: var(--navy-950); border-radius: var(--radius-md); padding: 28px; color: var(--white); }
.ticker-card h4 { color: var(--white); font-size: 15px; font-weight: 500; margin-bottom: 18px; opacity: .85; }
.ticker-item { display: flex; align-items: flex-start; gap: 12px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.12); }
.ticker-item:first-of-type { border-top: none; }
.ticker-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-500); margin-top: 6px; flex-shrink: 0; }
.ticker-item b { display: block; font-size: 14px; font-weight: 500; }
.ticker-item span { font-size: 12.5px; color: rgba(255,255,255,.55); }

/* ---- Section headings ---- */
.section { padding: 72px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 36px; border-bottom: 1px solid var(--line); padding-bottom: 20px; }
.section-head h2 { font-size: 28px; }
.section-head p { color: var(--slate-600); margin-top: 6px; font-size: 14.5px; }

/* ---- Category directory (not cards — a structured list) ---- */
.category-list { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.category-item { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 24px; transition: background .15s ease; }
.category-item:hover { background: var(--sky-50); }
.category-item .n { font-size: 12.5px; color: var(--slate-400); font-weight: 600; }
.category-item h3 { font-size: 17px; margin-top: 10px; }
.category-item p { font-size: 13px; color: var(--slate-600); margin-top: 6px; }

/* ---- Product / listing cards (catalog style) ---- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.product-card { background: var(--white); padding: 20px; }
.product-thumb { aspect-ratio: 4/3; background: var(--sand-100); border-radius: var(--radius-sm); margin-bottom: 14px; display: flex; align-items: center; justify-content: center; color: var(--slate-400); font-size: 12px; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; padding: 4px 9px; border-radius: 4px; }
.badge-verified { background: #E6F1FB; color: var(--blue-700); }
.product-card h3 { font-size: 15px; margin-top: 12px; font-weight: 500; line-height: 1.4; }
.product-meta { font-size: 12.5px; color: var(--slate-600); margin-top: 8px; }
.product-price { font-family: var(--font-display); font-size: 17px; margin-top: 10px; color: var(--navy-950); }
.product-price small { font-size: 12px; color: var(--slate-600); font-family: var(--font-body); }

/* ---- Two-column process (buyer/seller paths) ---- */
.process-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.process-col h3 { font-size: 20px; margin-bottom: 24px; }
.process-step { display: flex; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.process-step:first-of-type { border-top: none; }
.process-step .num { font-family: var(--font-display); font-size: 20px; color: var(--blue-700); min-width: 28px; }
.process-step h4 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.process-step p { font-size: 13.5px; color: var(--slate-600); }

/* ---- CTA band ---- */
.cta-band { background: var(--navy-950); border-top: 3px solid var(--gold-500); padding: 64px 0; }
.cta-band .row { display: flex; align-items: center; justify-content: space-between; }
.cta-band h2 { color: var(--white); font-size: 28px; max-width: 480px; }
.cta-band p { color: rgba(255,255,255,.65); margin-top: 10px; font-size: 14.5px; }

/* ---- Footer ---- */
.site-footer { background: var(--sky-50); border-top: 1px solid var(--line); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--slate-400); margin-bottom: 16px; font-family: var(--font-body); font-weight: 600; }
.footer-grid a { display: block; font-size: 14px; color: var(--slate-600); padding: 6px 0; }
.footer-grid a:hover { color: var(--blue-700); }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; font-size: 13px; color: var(--slate-400); }

/* ---- Forms (auth pages, dashboards) ---- */
.form-card { max-width: 440px; margin: 64px auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 40px; }
.form-card h1 { font-size: 24px; margin-bottom: 6px; }
.form-card > p { color: var(--slate-600); font-size: 14px; margin-bottom: 28px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; color: var(--navy-950); }
.field input, .field select, .field textarea {
    width: 100%; padding: 11px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
    font-family: var(--font-body); font-size: 14.5px; color: var(--navy-950); outline: none; transition: border-color .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue-700); }
.field-hint { font-size: 12.5px; color: var(--slate-600); margin-top: 6px; }
.role-toggle { display: flex; gap: 10px; margin-bottom: 22px; }
.role-toggle a { flex: 1; text-align: center; padding: 10px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); font-size: 13.5px; font-weight: 600; color: var(--slate-600); }
.role-toggle a.active { border-color: var(--blue-700); color: var(--blue-700); background: #EEF3FC; }
.alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 13.5px; margin-bottom: 20px; }
.alert-error { background: #FBEAEA; color: var(--danger); border: 1px solid #F0CFCF; }
.alert-success { background: #EAF5EE; color: var(--success); border: 1px solid #CBE7D5; }

/* ---- Dashboard shell ---- */
.dash-shell { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - 76px); }
.dash-sidebar { background: var(--sky-50); border-right: 1px solid var(--line); padding: 28px 0; }
.dash-sidebar a { display: flex; align-items: center; gap: 10px; padding: 11px 24px; font-size: 14px; color: var(--slate-600); font-weight: 500; }
.dash-sidebar a:hover { color: var(--navy-950); background: var(--sand-100); }
.dash-sidebar a.active { color: var(--blue-700); background: #EEF3FC; border-right: 2px solid var(--blue-700); }
.dash-main { padding: 36px 40px; }
.dash-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.dash-header h1 { font-size: 24px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 32px; }
.stat-box { background: var(--white); padding: 20px; }
.stat-box .label { font-size: 12.5px; color: var(--slate-600); }
.stat-box .value { font-family: var(--font-display); font-size: 26px; margin-top: 6px; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--slate-400); font-weight: 600; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.data-table td { padding: 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.status-pill { font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 4px; }
.status-active, .status-verified, .status-approved { background: #E7F4EC; color: var(--success); }
.status-pending { background: #FCF3E3; color: #92660D; }
.status-rejected, .status-suspended { background: #FBEAEA; color: var(--danger); }

/* ==========================================================
   Admin app shell — sidebar + topbar + content
   Structural pattern follows a standard SaaS admin console
   (grouped icon nav, dark greeting hero, colored metric cards)
   rendered in the site's own navy/sapphire/brass palette.
   ========================================================== */
.app-shell { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; background: var(--sky-50); }

.app-sidebar { background: var(--white); border-right: 1px solid var(--line); padding: 24px 0; display: flex; flex-direction: column; }
.app-logo { font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--navy-950); padding: 0 24px 24px; display: block; }
.app-logo span { color: var(--blue-700); }
.nav-group { margin-bottom: 6px; }
.nav-group-title { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--slate-400); padding: 14px 24px 8px; }
.nav-link { display: flex; align-items: center; gap: 12px; padding: 10px 24px; font-size: 14px; font-weight: 500; color: var(--slate-600); }
.nav-icon { display: flex; color: var(--slate-400); }
.nav-link:hover { background: var(--sand-100); color: var(--navy-950); }
.nav-link.active { background: #EEF3FC; color: var(--blue-700); border-right: 2px solid var(--blue-700); }
.nav-link.active .nav-icon { color: var(--blue-700); }
.sidebar-footer { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }

.app-main { display: flex; flex-direction: column; min-width: 0; }
.app-topbar { height: 72px; background: var(--white); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 32px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--slate-600); }
.breadcrumb a { color: var(--slate-600); }
.breadcrumb strong { color: var(--navy-950); font-weight: 600; }
.breadcrumb .sep { display: flex; color: var(--slate-400); transform: rotate(-90deg); }
.topbar-actions { display: flex; align-items: center; gap: 16px; }
.icon-btn { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--white); color: var(--slate-600); cursor: pointer; }
.icon-btn:hover { background: var(--sand-100); }
.profile-chip { display: flex; align-items: center; gap: 10px; padding-right: 4px; }
.avatar-circle { width: 34px; height: 34px; border-radius: 50%; background: var(--blue-700); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; font-family: var(--font-display); }
.profile-text { display: flex; flex-direction: column; line-height: 1.3; }
.profile-text strong { font-size: 13.5px; color: var(--navy-950); }
.profile-text span { font-size: 12px; color: var(--slate-600); }

.app-content { padding: 32px; max-width: 1280px; }

/* Hero greeting card */
.hero-card { background: var(--navy-950); border-radius: var(--radius-md); padding: 30px 32px; display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 32px; align-items: center; margin-bottom: 24px; }
.hero-greeting { color: rgba(255,255,255,.6); font-size: 14px; }
.hero-card h1 { color: var(--white); font-size: 26px; margin-top: 4px; }
.hero-sub { color: rgba(255,255,255,.6); font-size: 13.5px; margin-top: 10px; }
.hero-stats-inline { display: flex; gap: 14px; }
.hero-stat { background: rgba(255,255,255,.06); border-radius: var(--radius-sm); padding: 14px 18px; min-width: 120px; }
.hero-stat.hero-stat-highlight { background: var(--gold-500); }
.hero-stat strong { display: block; color: var(--white); font-family: var(--font-display); font-size: 22px; }
.hero-stat span { font-size: 11.5px; color: rgba(255,255,255,.7); }
.hero-quicklinks { display: flex; flex-direction: column; gap: 10px; border-left: 1px solid rgba(255,255,255,.12); padding-left: 28px; }
.hero-quicklinks a { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.75); font-size: 13px; }
.hero-quicklinks a:hover { color: var(--white); }

/* Colored metric cards */
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.metric-card { border-radius: var(--radius-md); padding: 20px; position: relative; }
.metric-icon { width: 38px; height: 38px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.metric-label { font-size: 13px; font-weight: 600; }
.metric-value { font-family: var(--font-display); font-size: 24px; margin-top: 6px; color: var(--navy-950); }
.metric-caption { font-size: 12px; color: var(--slate-600); margin-top: 4px; }
.metric-mint { background: #E7F4EC; } .metric-mint .metric-icon { background: #CFE9D9; color: var(--success); } .metric-mint .metric-label { color: var(--success); }
.metric-sky { background: #E6F1FB; } .metric-sky .metric-icon { background: #CFE2F7; color: var(--blue-700); } .metric-sky .metric-label { color: var(--blue-700); }
.metric-rose { background: #FBEAEA; } .metric-rose .metric-icon { background: #F5D3D3; color: var(--danger); } .metric-rose .metric-label { color: var(--danger); }
.metric-violet { background: #F0ECFA; } .metric-violet .metric-icon { background: #E1D7F3; color: #6B46C1; } .metric-violet .metric-label { color: #6B46C1; }

/* Content panel wrapping a table */
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 24px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.panel-head h3 { font-size: 16px; }

@media (max-width: 1080px) {
    .hero-card { grid-template-columns: 1fr; }
    .hero-quicklinks { flex-direction: row; border-left: none; border-top: 1px solid rgba(255,255,255,.12); padding-left: 0; padding-top: 16px; }
    .metric-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
    .app-shell { grid-template-columns: 1fr; }
    .app-sidebar { display: none; }
}

/* ==========================================================
   Premium animation / 3D interaction layer
   ========================================================== */
@media (prefers-reduced-motion: no-preference) {
    .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
    .reveal.in-view { opacity: 1; transform: translateY(0); }
    .reveal-delay-1.in-view { transition-delay: .08s; }
    .reveal-delay-2.in-view { transition-delay: .16s; }
    .reveal-delay-3.in-view { transition-delay: .24s; }
}
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; }
}

.site-header { transition: box-shadow .25s ease; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(11,31,58,.06); }

.tilt-card { transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease; transform-style: preserve-3d; will-change: transform; }
.tilt-card:hover { box-shadow: 0 22px 40px rgba(11,31,58,.12); z-index: 2; }

.btn { position: relative; overflow: hidden; transition: background .15s ease, border-color .15s ease, transform .2s cubic-bezier(.2,.7,.2,1), box-shadow .2s ease; }
.btn-primary:hover, .btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(30,77,183,.25); }
.btn-gold:hover { box-shadow: 0 10px 24px rgba(184,134,46,.28); }
.btn-outline:hover { transform: translateY(-2px); }

.category-item { transition: background .2s ease, transform .3s cubic-bezier(.2,.7,.2,1); }
.category-item:hover { transform: translateY(-3px); }

/* Floating decorative shapes behind the hero — depth without imagery */
.hero { position: relative; overflow: hidden; }
.hero-shapes { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.float-shape { position: absolute; border-radius: 50%; transition: transform .3s ease-out; }
.float-shape-1 { width: 340px; height: 340px; top: -120px; right: -80px; background: radial-gradient(circle at 30% 30%, rgba(44,95,209,.10), rgba(44,95,209,0) 70%); }
.float-shape-2 { width: 220px; height: 220px; bottom: -60px; right: 220px; background: radial-gradient(circle at 30% 30%, rgba(184,134,46,.10), rgba(184,134,46,0) 70%); }
.float-shape-3 { width: 160px; height: 160px; top: 60%; left: -40px; background: radial-gradient(circle at 30% 30%, rgba(11,31,58,.06), rgba(11,31,58,0) 70%); }
.hero .row, .hero .container { position: relative; z-index: 1; }

.ticker-card { transition: transform .4s cubic-bezier(.2,.7,.2,1); transform-style: preserve-3d; }
.ticker-card:hover { transform: perspective(900px) rotateY(-4deg) rotateX(2deg); }

@keyframes pulseDot { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.ticker-dot { animation: pulseDot 2s ease-in-out infinite; }

.product-card, .product-thumb { transition: transform .3s ease; }
.product-card:hover .product-thumb { transform: scale(1.03); }

@media (max-width: 960px) {
    .float-shape { display: none; }
}

@media (max-width: 960px) {
    .hero .row { grid-template-columns: 1fr; padding: 48px 0; }
    .category-list, .product-grid { grid-template-columns: repeat(2, 1fr); }
    .process-cols { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .main-nav { display: none; }
    .dash-shell { grid-template-columns: 1fr; }
    .dash-sidebar { display: none; }
}
