/* ═══════════════════════════════════════════════════════════════
   HERO CTA BUTTON
═══════════════════════════════════════════════════════════════ */
.hero-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.8rem;
    background: var(--orange);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 20px var(--orange-glow);
    transition: background 0.18s, transform 0.15s, box-shadow 0.18s;
}
.hero-cta-btn:hover {
    background: var(--orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 28px var(--orange-glow);
}
.hero-cta-btn:active { transform: translateY(0); }

/* ═══════════════════════════════════════════════════════════════
   HEADER NAV TABS
═══════════════════════════════════════════════════════════════ */
.header-nav-tabs {
    display: flex;
    gap: 0.25rem;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 3px;
}
.nav-tab-btn {
    padding: 0.4rem 0.9rem;
    border: none;
    border-radius: 7px;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}
.nav-tab-btn.active {
    background: var(--orange);
    color: #fff;
}
.nav-tab-btn:not(.active):hover {
    background: var(--bg-card-hover);
    color: var(--text);
}

/* ═══════════════════════════════════════════════════════════════
   RFQ SELLER LOCK OVERLAY
═══════════════════════════════════════════════════════════════ */
.rfq-seller-lock-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    background: rgba(7, 11, 20, 0.82);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
}
.rfq-lock-card {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem 2.5rem;
    max-width: 380px;
    text-align: center;
}
.rfq-lock-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.rfq-lock-card h3 { font-size: 1.1rem; font-weight: 800; color: var(--text); margin-bottom: 0.5rem; }
.rfq-lock-card p  { font-size: 0.85rem; color: var(--text-muted); line-height: 1.55; }

/* ═══════════════════════════════════════════════════════════════
   DESIGN TOKENS — Dark Premium Theme
═══════════════════════════════════════════════════════════════ */
:root {
    --bg:            #070B14;
    --bg-2:          #0D1220;
    --bg-card:       rgba(255,255,255,0.04);
    --bg-card-hover: rgba(255,255,255,0.07);
    --bg-input:      rgba(255,255,255,0.05);
    --navy:          #0D1220;
    --navy-deep:     #050810;

    --orange:        #FF6B00;
    --orange-2:      #FF8C38;
    --orange-hover:  #E05A00;
    --orange-light:  rgba(255,107,0,0.10);
    --orange-border: rgba(255,107,0,0.25);
    --orange-glow:   rgba(255,107,0,0.35);

    --indigo:        #6366F1;
    --indigo-light:  rgba(99,102,241,0.12);
    --cyan:          #06B6D4;

    --text:          #F0F6FF;
    --text-muted:    #8B9EC5;
    --text-light:    #5A6F95;
    --border:        rgba(255,255,255,0.08);
    --border-hover:  rgba(255,255,255,0.15);

    --success:       #22C55E;
    --success-bg:    rgba(34,197,94,0.10);
    --error:         #EF4444;
    --error-bg:      rgba(239,68,68,0.10);

    --font:          'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --radius:        14px;
    --radius-sm:     10px;
    --radius-xs:     7px;
    --glass:         rgba(255,255,255,0.04);
    --glass-border:  rgba(255,255,255,0.09);
    --shadow-card:   0 4px 24px rgba(0,0,0,0.35), 0 1px 4px rgba(0,0,0,0.2);
    --shadow-btn:    0 4px 20px rgba(255,107,0,0.40);
    --shadow-glow:   0 0 40px rgba(255,107,0,0.15);
    --transition:    all 0.22s cubic-bezier(0.4, 0, 0.2, 1);

    /* Dynamic subtle overlays and backgrounds */
    --bg-subtle:     rgba(255,255,255,0.03);
    --bg-subtle-2:   rgba(255,255,255,0.02);
    --overlay-bg:    rgba(7, 11, 20, 0.85);
}

:root[data-theme="light"] {
    --bg:            #F8FAFC;
    --bg-2:          #FFFFFF;
    --bg-card:       rgba(0,0,0,0.02);
    --bg-card-hover: rgba(0,0,0,0.04);
    --bg-input:      #FFFFFF;
    --navy:          #F1F5F9;
    --navy-deep:     #E2E8F0;

    --orange:        #FF6B00;
    --orange-2:      #FF8C38;
    --orange-hover:  #E05A00;
    --orange-light:  rgba(255,107,0,0.06);
    --orange-border: rgba(255,107,0,0.18);
    --orange-glow:   rgba(255,107,0,0.15);

    --indigo:        #4F46E5;
    --indigo-light:  rgba(79,70,229,0.08);
    --cyan:          #0891B2;

    --text:          #0F172A;
    --text-muted:    #475569;
    --text-light:    #64748B;
    --border:        rgba(0,0,0,0.08);
    --border-hover:  rgba(0,0,0,0.14);

    --success:       #16A34A;
    --success-bg:    rgba(22,163,74,0.08);
    --error:         #DC2626;
    --error-bg:      rgba(220,38,38,0.08);

    --glass:         rgba(255,255,255,0.7);
    --glass-border:  rgba(0,0,0,0.08);
    --shadow-card:   0 10px 30px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.02);
    --shadow-btn:    0 4px 14px rgba(255,107,0,0.30);
    --shadow-glow:   0 0 40px rgba(255,107,0,0.05);

    /* Dynamic subtle overlays and backgrounds - Light Mode overrides */
    --bg-subtle:     rgba(0,0,0,0.02);
    --bg-subtle-2:   rgba(0,0,0,0.01);
    --overlay-bg:    rgba(248, 250, 252, 0.85);
}


/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ═══════════════════════════════════════════════════════════════
   SMART PRICE TICKER — Kayan Fiyat Bandı
═══════════════════════════════════════════════════════════════ */

@keyframes ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.smart-price-ticker {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    height: 36px;
    background: linear-gradient(90deg,
        rgba(255,107,0,0.92) 0%,
        rgba(255,80,0,0.88) 40%,
        rgba(220,60,0,0.92) 100%);
    border-bottom: 1px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(255,107,0,0.35);
}

.ticker-content-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.ticker-title {
    flex-shrink: 0;
    padding: 0 14px 0 16px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #fff;
    white-space: nowrap;
    background: rgba(0,0,0,0.18);
    height: 100%;
    display: flex;
    align-items: center;
    border-right: 1px solid rgba(255,255,255,0.20);
    text-transform: uppercase;
}

.ticker-scroll {
    flex: 1;
    overflow: hidden;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
}

/* The moving inner track — duplicated so it loops seamlessly */
.ticker-track {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: ticker-scroll 28s linear infinite;
    will-change: transform;
}

.ticker-track:hover {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 22px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.ticker-item .ticker-label {
    opacity: 0.85;
    font-weight: 500;
    font-size: 11px;
}

.ticker-item .ticker-price {
    font-weight: 700;
    color: #fff;
}

.ticker-item .ticker-change {
    font-size: 10.5px;
    font-weight: 600;
    padding: 1px 5px;
    border-radius: 4px;
}

.ticker-item .ticker-change.up {
    background: rgba(34,197,94,0.28);
    color: #86efac;
}

.ticker-item .ticker-change.down {
    background: rgba(239,68,68,0.28);
    color: #fca5a5;
}

.ticker-item .ticker-change.flat {
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.75);
}

/* Separator bullet between items */
.ticker-sep {
    color: rgba(255,255,255,0.35);
    font-size: 14px;
    flex-shrink: 0;
}

/* Fade edges */
.ticker-scroll::before,
.ticker-scroll::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 32px;
    z-index: 2;
    pointer-events: none;
}
.ticker-scroll::before {
    left: 0;
    background: linear-gradient(to right, rgba(255,80,0,0.9), transparent);
}
.ticker-scroll::after {
    right: 0;
    background: linear-gradient(to left, rgba(220,60,0,0.9), transparent);
}

/* Light mode adjustments */
:root[data-theme="light"] .smart-price-ticker {
    background: linear-gradient(90deg,
        rgba(224,90,0,0.95) 0%,
        rgba(200,70,0,0.92) 100%);
    box-shadow: 0 2px 12px rgba(255,107,0,0.25);
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Animated gradient bg */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 10% 0%,   rgba(99,102,241,0.10) 0%, transparent 55%),
        radial-gradient(ellipse 60% 50% at 90% 100%, rgba(255,107,0,0.08) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 50% 50%,  rgba(6,182,212,0.04) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* ── Animations ─────────────────────────────────────────── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-14px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes blink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.4; transform: scale(0.85); }
}

@keyframes skeleton-loading {
    0%   { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position:  200% 0; }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 12px rgba(255,107,0,0.25); }
    50%       { box-shadow: 0 0 28px rgba(255,107,0,0.50); }
}

@keyframes heroIn {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-6px); }
}

/* ── Page Wrapper ──────────────────────────────────────── */
.page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.75rem;
    position: relative;
    z-index: 1;
}

/* Desktop Grid — hero + calculator only */
@media (min-width: 961px) {
    .main-layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(420px, 1.15fr);
        grid-template-areas: "hero calculator";
        gap: 0 3rem;
        align-items: start;
        padding: 1rem 0 3rem;
    }
    .hero-section     { grid-area: hero; min-width: 0; }
    .calculator-panel { grid-area: calculator; align-self: start; min-width: 420px; }
}

@media (min-width: 961px) and (min-height: 700px) {
    .calculator-panel { position: sticky; top: 7.5rem; }
}

@media (max-width: 960px) {
    .main-layout {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        padding-bottom: 3rem;
    }
}

/* ── Smart Price Ticker ────────────────────────────────── */
.smart-price-ticker {
    background: linear-gradient(90deg, #0A0E1A 0%, #111827 50%, #0A0E1A 100%);
    border-bottom: 1px solid var(--orange-border);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 500;
    padding: 0.55rem 1.75rem;
    display: flex;
    justify-content: center;
    z-index: 200;
    position: relative;
    overflow: hidden;
}

.smart-price-ticker::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,107,0,0.03) 50%, transparent 100%);
    animation: shimmer 4s linear infinite;
    background-size: 200% 100%;
}

.ticker-content-wrapper {
    max-width: 1200px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.ticker-title {
    font-weight: 700;
    color: var(--orange);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
    font-size: 0.72rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.ticker-scroll {
    flex: 1;
    overflow: hidden;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    white-space: nowrap;
}
.ticker-scroll::-webkit-scrollbar { display: none; }

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: rgba(255,255,255,0.7);
}
.ticker-item strong { color: #fff; }
.ticker-badge-up   { color: var(--success); font-weight: 700; }
.ticker-badge-down { color: var(--error); font-weight: 700; }

/* ── Header ──────────────────────────────────────────── */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.75rem;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(6, 9, 19, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-left: -1.75rem;
    margin-right: -1.75rem;
}

:root[data-theme="light"] .site-header {
    background: rgba(241, 245, 249, 0.82);
    border-bottom-color: rgba(0, 0, 0, 0.05);
}

.logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 0.35rem 0.9rem 0.35rem 0.45rem;
    border-radius: 12px;
    background: #FFFFFF;
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: 0 2px 12px rgba(0,0,0,0.25);
    transition: var(--transition);
}

.logo-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.32), 0 0 0 2px rgba(212,80,10,0.35);
}

.header-logo {
    height: clamp(40px, 5vw, 56px);
    width: auto;
    display: block;
    transition: var(--transition);
    filter: none;
}

.logo-fallback {
    font-size: 1.55rem;
    font-weight: 900;
    color: var(--text);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    padding: 0 0.5rem;
}
.logo-fallback span { color: var(--orange); }

.header-right-group {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.header-badge {
    background: var(--orange-light);
    border: 1px solid var(--orange-border);
    color: var(--orange);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    animation: pulse-glow 3s ease-in-out infinite;
}

.header-nav-tabs {
    display: flex;
    gap: 0.35rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 0.3rem;
    backdrop-filter: blur(10px);
}

.nav-tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.45rem 0.9rem;
    border-radius: 9px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font);
    white-space: nowrap;
}
.nav-tab-btn.active, .nav-tab-btn:hover {
    background: var(--orange);
    color: #fff;
    box-shadow: 0 2px 12px rgba(255,107,0,0.35);
}

@media (max-width: 640px) {
    .site-header { align-items: flex-start; padding: 1rem 0 1.75rem; }
    .logo-link { padding: 0.4rem 0.55rem 0.4rem 0.4rem; border-radius: 14px; }
    .header-logo { max-height: 48px; width: auto; }
    .header-badge { padding: 0.35rem 0.65rem; font-size: 0.74rem; }
}

/* ── Auth Widget ─────────────────────────────────────── */
.auth-sub-container { display: flex; align-items: center; }

.auth-trigger-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--text);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-size: 0.83rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font);
    backdrop-filter: blur(10px);
}
.auth-trigger-btn:hover {
    background: var(--orange);
    border-color: var(--orange);
    color: #fff;
    box-shadow: var(--shadow-btn);
}

.profile-card {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 0.5rem 0.75rem;
    backdrop-filter: blur(10px);
}

.profile-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--orange), var(--orange-2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.profile-info { display: flex; flex-direction: column; }

.profile-header {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.1rem;
}

.profile-role-badge {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--orange);
    background: var(--orange-light);
    border: 1px solid var(--orange-border);
    padding: 0.1rem 0.45rem;
    border-radius: 4px;
}

.profile-info h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text);
}

.profile-details {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.profile-logout-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    width: 30px;
    height: 30px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}
.profile-logout-btn:hover {
    background: var(--error-bg);
    border-color: var(--error);
    color: var(--error);
}

/* ── Hero Section ──────────────────────────────────── */
.hero-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-top: 1.5rem;
}

.hero-title {
    font-size: clamp(2.4rem, 4vw, 3.2rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -2px;
    color: var(--text);
    animation: heroIn 0.7s ease both;
}

.hero-highlight {
    background: linear-gradient(135deg, var(--orange), var(--orange-2), #FFB347);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    filter: drop-shadow(0 2px 12px rgba(255,107,0,0.3));
}

/* Feature Badges */
.feature-badges {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    animation: heroIn 0.7s 0.1s ease both;
}

.feature-badge {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xs);
    padding: 0.6rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.35;
    backdrop-filter: blur(12px);
    transition: var(--transition);
}
.feature-badge:hover {
    border-color: var(--orange-border);
    background: var(--orange-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.badge-icon {
    width: 32px;
    height: 32px;
    background: var(--orange-light);
    border: 1px solid var(--orange-border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--orange);
    flex-shrink: 0;
}

.hero-desc {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 420px;
    line-height: 1.72;
    animation: heroIn 0.7s 0.15s ease both;
}

/* ── Hero Social Proof ── */
.hero-social-proof {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    animation: heroIn 0.7s 0.2s ease both;
}

.social-proof-avatars {
    display: flex;
}

.sp-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    margin-left: -8px;
}
.sp-avatar:first-child { margin-left: 0; }

.social-proof-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.social-proof-text strong {
    color: var(--text);
    font-weight: 700;
}

.sp-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
    flex-shrink: 0;
    animation: blink 2s ease-in-out infinite;
}

/* ── Hero CTA Button ── */
.hero-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--orange);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    padding: 0.9rem 1.75rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    box-shadow: var(--shadow-btn);
    transition: var(--transition);
    animation: heroIn 0.7s 0.25s ease both;
    align-self: flex-start;
    letter-spacing: 0.01em;
}
.hero-cta-btn:hover {
    background: var(--orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212,80,10,0.38);
}
.hero-cta-btn:active {
    transform: translateY(0);
}

.trust-row {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    animation: heroIn 0.7s 0.2s ease both;
}

.trust-item { display: flex; flex-direction: column; gap: 0.1rem; }

.trust-num {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.5px;
}

.trust-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
}

.trust-divider {
    width: 1px;
    height: 38px;
    background: var(--border);
}

/* ── Calculator Panel ──────────────────────────────── */
.calculator-panel { display: flex; justify-content: stretch; }

.calc-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 22px;
    box-shadow: var(--shadow-card);
    width: 100%;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    overflow: hidden;
    animation: heroIn 0.7s 0.05s ease both;
    position: relative;
}

/* Subtle top glow on card */
.calc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--orange-border), transparent);
}

.calc-card-header { padding: 2rem 2.25rem 0; }

.calc-card-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.3rem;
    letter-spacing: -0.5px;
}

.calc-card-sub {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 1.4rem;
}

.calc-form {
    padding: 1.5rem 2.25rem 2.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

/* Form Groups */
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }

.form-group label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 0.75rem;
}

/* Select */
.select-wrapper { position: relative; }

.form-select {
    width: 100%;
    background: var(--bg-input);
    border: 1.5px solid var(--border);
    color: var(--text);
    padding: 0.88rem 2.8rem 0.88rem 1.1rem;
    border-radius: var(--radius-xs);
    font-size: 0.95rem;
    font-family: var(--font);
    font-weight: 500;
    appearance: none;
    cursor: pointer;
    transition: var(--transition);
    outline: none;
}

.form-select:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px var(--orange-light), 0 0 16px rgba(255,107,0,0.15);
    background: rgba(255,107,0,0.05);
}

.form-select:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.form-select option {
    background: #1A2035;
    color: var(--text);
}

.select-chevron {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    pointer-events: none;
}

/* Input */
.input-wrapper { position: relative; display: flex; align-items: center; }

.form-input {
    width: 100%;
    background: var(--bg-input);
    border: 1.5px solid var(--border);
    color: var(--text);
    padding: 0.88rem 2.8rem 0.88rem 1.1rem;
    border-radius: var(--radius-xs);
    font-size: 0.95rem;
    font-family: var(--font);
    font-weight: 500;
    transition: var(--transition);
    outline: none;
}

.form-input:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px var(--orange-light), 0 0 16px rgba(255,107,0,0.15);
    background: rgba(255,107,0,0.05);
}

.input-suffix {
    position: absolute;
    right: 0.75rem;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--text-muted);
    pointer-events: none;
}

/* CTA Button */
.calc-btn {
    background: linear-gradient(135deg, var(--orange), var(--orange-2));
    color: #fff;
    border: none;
    padding: 1.15rem 1.5rem;
    border-radius: var(--radius-xs);
    font-size: 1.05rem;
    font-weight: 700;
    font-family: var(--font);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    transition: var(--transition);
    width: 100%;
    margin-top: 0.5rem;
    box-shadow: var(--shadow-btn);
    letter-spacing: -0.2px;
    position: relative;
    overflow: hidden;
}

.calc-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
    opacity: 0;
    transition: opacity 0.2s;
}

.calc-btn:hover::after { opacity: 1; }

.calc-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(255,107,0,0.55);
}

.calc-btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-btn);
}

/* ── Route Sections ─────────────────────────────────── */
.route-section { display: flex; flex-direction: column; gap: 0.55rem; }

.route-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.73rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.from-label { color: var(--orange); }
.to-label   { color: var(--text-muted); }

.route-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.from-dot {
    background: var(--orange);
    box-shadow: 0 0 0 3px rgba(255,107,0,0.20);
    animation: pulse-glow 2.5s ease-in-out infinite;
}

.to-dot {
    background: var(--indigo);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}

.route-connector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 0.1rem;
    position: relative;
}

.connector-line {
    flex: 1;
    height: 1px;
    background-image: repeating-linear-gradient(
        90deg,
        var(--border) 0,
        var(--border) 5px,
        transparent 5px,
        transparent 11px
    );
}

.connector-arrow {
    width: 28px;
    height: 28px;
    background: var(--orange-light);
    border: 1px solid var(--orange-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--orange);
    flex-shrink: 0;
}

.distance-chip {
    position: absolute;
    right: 0;
    top: -14px;
    background: linear-gradient(135deg, var(--orange), var(--orange-2));
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.2rem 0.65rem;
    border-radius: 50px;
    white-space: nowrap;
    animation: fadeInUp 0.3s ease forwards;
    box-shadow: 0 2px 8px rgba(255,107,0,0.4);
}

.factory-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    padding: 0.5rem 0.8rem;
    background: var(--orange-light);
    border-left: 3px solid var(--orange);
    border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
    line-height: 1.4;
    animation: fadeInUp 0.25s ease forwards;
}

/* ── Result Panel ──────────────────────────────────── */
.result-panel {
    border-top: 1px solid var(--border);
    padding: 1.5rem 1.75rem;
    animation: slideDown 0.45s cubic-bezier(0.34, 1.2, 0.64, 1) forwards;
    background: rgba(255,107,0,0.02);
}

.result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.4rem;
}

.result-label {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: var(--text-muted);
}

.result-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.22rem 0.65rem;
    border-radius: 50px;
    background: var(--orange-light);
    color: var(--orange);
    border: 1px solid var(--orange-border);
}

.result-title {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.result-amount-row {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 1.25rem;
}

.result-currency {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--orange);
    margin-bottom: 0.1rem;
}

.result-amount {
    font-size: 2.6rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--orange), var(--orange-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -2px;
    line-height: 1;
}

.result-breakdown {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    padding: 0.9rem 1rem;
    margin-bottom: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.breakdown-item span:last-child { font-weight: 600; color: var(--text); }

.breakdown-total {
    border-top: 1px dashed var(--border);
    padding-top: 0.5rem;
    margin-top: 0.2rem;
    font-weight: 700 !important;
}

.breakdown-total span:first-child { font-weight: 700; color: var(--text); }
.breakdown-total span:last-child  { color: var(--orange) !important; font-size: 0.92rem; }

.result-note {
    font-size: 0.73rem;
    color: var(--text-light);
    line-height: 1.55;
    margin-bottom: 0.5rem;
}

/* ── Logistics Card ─────────────────────────────────── */
.logistics-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    padding: 1rem;
    margin-bottom: 0.9rem;
}

.logistics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.85rem;
}

.logistics-title {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text);
}

.logistics-traffic-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.65rem;
    border-radius: 50px;
    background: var(--orange-light);
    color: var(--orange);
    border: 1px solid var(--orange-border);
}

.logistics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
    margin-bottom: 0.75rem;
}

.logistics-stat { display: flex; flex-direction: column; gap: 0.2rem; }

.ls-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: var(--text-light);
}

.ls-value {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text);
}

.logistics-breakdown {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.logi-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.55rem 0.85rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    gap: 0.5rem;
}

.logi-row:last-child { border-bottom: none; }

.logi-row span:first-child {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.logi-row span:last-child { font-weight: 600; color: var(--text); white-space: nowrap; }

.logi-total-row {
    background: var(--orange-light);
    font-weight: 700 !important;
    color: var(--text) !important;
}

.logi-total-row span:last-child { color: var(--orange) !important; }

.logistics-note {
    font-size: 0.68rem;
    color: var(--text-light);
    margin-top: 0.65rem;
    line-height: 1.5;
}

/* ── Email Report Section ───────────────────────────── */
.email-report-section { margin-top: 0.5rem; }

.email-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1rem 0 0.9rem;
}

.email-divider::before,
.email-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.email-divider span {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.email-form { display: flex; flex-direction: column; gap: 0.6rem; }

.privacy-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 0.65rem 0.75rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.76rem;
    line-height: 1.45;
    color: var(--text-muted);
    transition: var(--transition);
    cursor: pointer;
}

.privacy-consent input {
    width: 16px;
    height: 16px;
    margin-top: 0.1rem;
    accent-color: var(--orange);
    flex-shrink: 0;
}

.privacy-consent a { color: var(--orange); font-weight: 700; text-decoration: none; }
.privacy-consent a:hover { text-decoration: underline; }

.privacy-consent.consent-error {
    border-color: var(--error);
    background: var(--error-bg);
    box-shadow: 0 0 0 3px rgba(239,68,68,0.12);
}

.email-input { padding: 0.72rem 0.95rem !important; font-size: 0.88rem !important; }

.email-report-btn {
    background: rgba(255,255,255,0.06);
    color: var(--text);
    border: 1px solid var(--glass-border);
    padding: 0.8rem 1.25rem;
    border-radius: var(--radius-xs);
    font-size: 0.88rem;
    font-weight: 700;
    font-family: var(--font);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition);
    width: 100%;
}

.email-report-btn:hover {
    background: var(--indigo);
    border-color: var(--indigo);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99,102,241,0.35);
}

.email-report-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ── AI Spinner ─────────────────────────────────────── */
.ai-spinner {
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255,107,0,0.2);
    border-top-color: var(--orange);
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}

/* ── Quick Calc Modal ─────────────────────────────── */
.quick-calc-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    animation: fadeInUp 0.2s ease both;
}

.quick-calc-modal {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 24px 64px rgba(0,0,0,0.45);
    width: 100%;
    max-width: 480px;
    overflow: hidden;
    animation: slideDown 0.25s cubic-bezier(0.34,1.56,0.64,1) both;
}

.qc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    background: var(--navy);
}

.qc-header-left {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.qc-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--orange-light);
    border: 1px solid var(--orange-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--orange);
    flex-shrink: 0;
}

.qc-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.qc-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0.1rem 0 0;
}

.qc-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-xs);
    transition: var(--transition);
}
.qc-close:hover {
    background: var(--bg-card-hover);
    color: var(--text);
}

.qc-form {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.qc-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

.qc-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: var(--orange);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    padding: 0.9rem 1.5rem;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    box-shadow: var(--shadow-btn);
    transition: var(--transition);
    width: 100%;
    margin-top: 0.25rem;
}
.qc-submit-btn:hover {
    background: var(--orange-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(212,80,10,0.38);
}
.qc-submit-btn:active { transform: translateY(0); }

.qc-note {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.74rem;
    color: var(--text-light);
    justify-content: center;
}

/* ── Modals ────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.modal-open { opacity: 1; }
.modal-overlay.modal-open .modal-box { transform: translateY(0) scale(1); opacity: 1; }

.modal-box {
    background: #0F1525;
    border: 1px solid var(--glass-border);
    border-radius: 22px;
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 0 1px var(--glass-border);
    transform: translateY(20px) scale(0.97);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-box::-webkit-scrollbar { width: 5px; }
.modal-box::-webkit-scrollbar-track { background: transparent; }
.modal-box::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.legal-modal-box { max-width: 760px; }

.legal-body {
    padding: 1.6rem 1.75rem 1.85rem;
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.68;
}

.legal-body h3 { margin: 1.15rem 0 0.35rem; color: var(--text); font-size: 0.98rem; }
.legal-body p  { margin-bottom: 0.65rem; }
.legal-body ul { margin: 0.4rem 0 0.75rem 1.15rem; }
.legal-body li { margin-bottom: 0.32rem; }
.legal-body a  { color: var(--orange); font-weight: 700; text-decoration: none; }
.legal-body a:hover { text-decoration: underline; }

.legal-updated {
    padding: 0.65rem 0.85rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.legal-warning {
    margin-top: 1.2rem;
    padding: 0.9rem 1rem;
    background: rgba(255,107,0,0.06);
    border: 1px solid var(--orange-border);
    border-left: 4px solid var(--orange);
    border-radius: 8px;
    color: var(--text);
    font-size: 0.82rem;
    line-height: 1.6;
}

.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1.75rem 1.75rem 1.25rem;
    border-bottom: 1px solid var(--border);
}

.modal-badge {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--orange);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.35rem;
}

.modal-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.4px;
}

.modal-close {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    color: var(--text-muted);
    width: 34px;
    height: 34px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
    margin-left: 1rem;
}

.modal-close:hover {
    background: var(--error-bg);
    border-color: var(--error);
    color: var(--error);
}

.modal-subject-bar {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    padding: 0.85rem 1.75rem;
    background: rgba(255,107,0,0.05);
    border-bottom: 1px solid var(--orange-border);
}

.modal-subject-label {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--orange);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    flex-shrink: 0;
}

.modal-subject-text { font-size: 0.86rem; font-weight: 600; color: var(--text); }

.modal-report-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.report-to-line {
    font-size: 0.83rem;
    color: var(--text-muted);
    padding: 0.6rem 0.9rem;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.report-greeting { font-size: 0.95rem; color: var(--text); font-weight: 500; }
.report-highlight { color: var(--orange); font-weight: 700; }
.report-intro { font-size: 0.88rem; color: var(--text-muted); line-height: 1.65; }

.report-table-section {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    overflow: hidden;
}

.report-table-title {
    padding: 0.85rem 1.2rem;
    font-size: 0.83rem;
    font-weight: 700;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,0.03);
}

.report-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }

.report-table thead th {
    background: rgba(255,107,0,0.05);
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 0.72rem 1.2rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.report-table thead th:last-child,
.report-table tbody td:last-child { text-align: right; }

.report-table tbody td {
    padding: 0.85rem 1.2rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.report-table tbody td small { display: block; font-size: 0.72rem; color: var(--text-light); margin-top: 0.15rem; }
.report-table tbody tr:last-child td { border-bottom: none; }
.report-table .amount { font-weight: 600; color: var(--text); white-space: nowrap; }

.report-table .total-row td { background: rgba(255,107,0,0.05); border-top: 1px solid var(--orange-border); }
.report-table .grand-total { color: var(--orange) !important; font-size: 1rem; }

.report-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
}

.report-detail-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.62rem 0.82rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.8rem;
}

.detail-icon { font-size: 0.9rem; }
.detail-label { color: var(--text-muted); flex: 1; }
.detail-value { font-weight: 700; color: var(--text); font-size: 0.78rem; }
.iron-note-item { grid-column: 1 / -1; }

.report-sector-note {
    display: flex;
    gap: 0.7rem;
    padding: 0.95rem 1.05rem;
    background: rgba(255,107,0,0.06);
    border: 1px solid var(--orange-border);
    border-radius: var(--radius-xs);
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.sector-note-icon { font-size: 0.95rem; flex-shrink: 0; margin-top: 0.1rem; }

.report-warning {
    display: flex;
    gap: 0.7rem;
    padding: 0.95rem 1.05rem;
    background: var(--error-bg);
    border: 1px solid rgba(239,68,68,0.2);
    border-radius: var(--radius-xs);
    font-size: 0.79rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.report-warning-icon { font-size: 0.95rem; flex-shrink: 0; margin-top: 0.1rem; }

.report-footer-brand {
    text-align: center;
    font-size: 0.79rem;
    color: var(--text-light);
    border-top: 1px dashed var(--border);
    padding-top: 1rem;
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
    padding: 1.2rem 1.75rem 1.75rem;
    border-top: 1px solid var(--border);
}

.modal-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.82rem 1.2rem;
    border-radius: var(--radius-xs);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-family: var(--font);
}

.copy-btn {
    background: linear-gradient(135deg, var(--orange), var(--orange-2));
    color: #fff;
    box-shadow: 0 4px 16px rgba(255,107,0,0.30);
}
.copy-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,107,0,0.45); }
.copy-btn.copied { background: var(--success); box-shadow: 0 4px 16px rgba(34,197,94,0.3); }

.mailto-btn {
    background: rgba(255,255,255,0.06);
    color: var(--text);
    border: 1px solid var(--glass-border);
}
.mailto-btn:hover { background: var(--indigo); color: #fff; border-color: var(--indigo); transform: translateY(-2px); }

/* ── Market Section ─────────────────────────────────── */
.market-section {
    padding: 3rem 0 2rem;
    border-top: 1px solid var(--border);
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: var(--orange);
    margin-bottom: 0.75rem;
}

.section-kicker::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--orange);
    border-radius: 50%;
    animation: blink 1.4s ease-in-out infinite;
    box-shadow: 0 0 6px var(--orange);
}

.market-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
}

.market-section-meta { flex: 1; min-width: 0; }

.market-section-header h2 {
    font-size: 1.65rem;
    font-weight: 900;
    color: var(--text);
    letter-spacing: -0.7px;
    margin-bottom: 0.3rem;
}

.market-section-header p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.market-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.market-updated {
    flex-shrink: 0;
    text-align: right;
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 0.65rem 0.85rem;
    backdrop-filter: blur(10px);
}

.market-updated span {
    display: block;
    color: var(--text-light);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.market-updated strong { color: var(--text); font-size: 0.88rem; }

/* View Toggle */
.view-toggle-group {
    display: flex;
    gap: 0.3rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 0.3rem;
}

.view-toggle-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.42rem 0.8rem;
    border-radius: 7px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font);
}

.view-toggle-btn.active,
.view-toggle-btn:hover {
    background: var(--orange);
    color: #fff;
    box-shadow: 0 2px 10px rgba(255,107,0,0.35);
}

/* ── Market Cards Grid ───────────────────────────────── */
.market-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.75rem;
}

@media (max-width: 1100px) {
    .market-cards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .market-cards-grid { grid-template-columns: 1fr; }
}

/* Factory Card */
.market-factory-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    backdrop-filter: blur(16px);
    overflow: hidden;
    transition: border-color 0.18s, box-shadow 0.18s;
    cursor: pointer;
}

.market-factory-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 4px 20px rgba(0,0,0,0.18);
}

.market-factory-card.active-factory-card {
    border-color: var(--orange-border);
    box-shadow: 0 0 0 1px var(--orange-border), 0 4px 24px rgba(255,107,0,0.12);
}

/* Card Header */
.mfc-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.1rem 0.85rem;
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,0.025);
}

.mfc-emoji { font-size: 1.4rem; flex-shrink: 0; line-height: 1; }

.mfc-factory-info { flex: 1; min-width: 0; }

.mfc-name {
    display: block;
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mfc-sub {
    display: block;
    font-size: 0.71rem;
    color: var(--text-light);
    margin-top: 0.08rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mfc-select-btn {
    flex-shrink: 0;
    font-size: 0.7rem;
    font-weight: 700;
    font-family: var(--font);
    color: var(--orange);
    background: var(--orange-light);
    border: 1px solid var(--orange-border);
    border-radius: 6px;
    padding: 0.28rem 0.55rem;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.mfc-select-btn:hover,
.active-factory-card .mfc-select-btn {
    background: var(--orange);
    color: #fff;
    border-color: var(--orange);
}

/* Price Rows */
.mfc-prices { padding: 0.5rem 0; }

.mfc-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.48rem 1.1rem;
    transition: background 0.12s;
    cursor: pointer;
}

.mfc-price-row:hover { background: rgba(255,255,255,0.03); }

.mfc-price-row.active-price {
    background: rgba(255,107,0,0.06);
}

.mfc-type-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mfc-price-row.active-price .mfc-type-label { color: var(--orange); font-weight: 600; }

.mfc-price-right {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
}

.mfc-price-val {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

.mfc-price-row.active-price .mfc-price-val { color: var(--orange); }

/* Trend Badges */
.trend-badge {
    display: inline-block;
    font-size: 0.67rem;
    font-weight: 700;
    padding: 0.04rem 0.38rem;
    border-radius: 4px;
    white-space: nowrap;
}

.trend-up   { background: var(--success-bg); color: var(--success); border: 1px solid rgba(34,197,94,0.25); }
.trend-down { background: var(--error-bg);   color: var(--error);   border: 1px solid rgba(239,68,68,0.25); }
.trend-flat { background: rgba(255,255,255,0.06); color: var(--text-light); border: 1px solid var(--border); }

/* Skeleton Card */
.market-factory-card.skeleton-card { pointer-events: none; }

.skeleton-line {
    height: 13px;
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 37%, rgba(255,255,255,0.04) 63%);
    background-size: 400% 100%;
    animation: skeleton-loading 1.4s ease infinite;
    border-radius: 4px;
    width: 80%;
}

/* Formula bar */
.market-formula {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1.25rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    border-radius: var(--radius-xs);
    font-size: 0.82rem;
    line-height: 1.5;
    flex-wrap: wrap;
    backdrop-filter: blur(10px);
}

.market-formula strong { color: var(--orange); }

/* ── Chart Styles ──────────────────────────────────── */
.market-chart-container {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(16px);
}

.chart-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.chart-timeframes { display: flex; gap: 0.35rem; }

.timeframe-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 0.38rem 0.8rem;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font);
}

.timeframe-btn.active,
.timeframe-btn:hover {
    background: var(--orange);
    border-color: var(--orange);
    color: #fff;
}

.chart-selectors { display: flex; gap: 0.5rem; }
.select-xs { max-width: 180px; }

.form-select.select-xs {
    padding: 0.4rem 2rem 0.4rem 0.7rem;
    font-size: 0.82rem;
}

.chart-wrapper { position: relative; height: 280px; }

/* ── RFQ Section ────────────────────────────────────── */
.rfq-section { padding: 2.25rem 0 1rem; }

/* ── RFQ Teaser Card ───────────────────────────────── */
.rfq-teaser-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: linear-gradient(135deg,
        rgba(255,107,0,0.06) 0%,
        rgba(99,102,241,0.05) 50%,
        rgba(6,182,212,0.04) 100%);
    border: 1px solid var(--orange-border);
    border-radius: 20px;
    padding: 2.25rem 2.5rem;
    box-shadow: var(--shadow-card), 0 0 60px rgba(255,107,0,0.06);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.rfq-teaser-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--orange), var(--indigo), transparent);
    opacity: 0.6;
}

.rfq-teaser-card:hover {
    border-color: rgba(255,107,0,0.4);
    box-shadow: var(--shadow-card), 0 0 80px rgba(255,107,0,0.10);
}

.rfq-teaser-left {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    flex: 1;
    min-width: 0;
}

.rfq-teaser-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    background: linear-gradient(135deg, var(--orange-light), rgba(99,102,241,0.12));
    border: 1px solid var(--orange-border);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--orange);
}

.rfq-teaser-content { flex: 1; min-width: 0; }

.rfq-teaser-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--orange);
    background: var(--orange-light);
    border: 1px solid var(--orange-border);
    padding: 0.18rem 0.65rem;
    border-radius: 50px;
    margin-bottom: 0.65rem;
}

.rfq-teaser-title {
    font-size: 1.55rem;
    font-weight: 900;
    color: var(--text);
    letter-spacing: -0.6px;
    line-height: 1.2;
    margin-bottom: 0.55rem;
}

.rfq-teaser-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 1.25rem;
    max-width: 480px;
}

.rfq-teaser-stats {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.rfq-stat-item { display: flex; flex-direction: column; gap: 0.1rem; }

.rfq-stat-num {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--text);
    letter-spacing: -0.5px;
    line-height: 1;
}

.rfq-stat-label {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
}

.rfq-teaser-divider {
    width: 1px;
    height: 32px;
    background: var(--border);
}

.rfq-teaser-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1.25rem;
    flex-shrink: 0;
}

.rfq-teaser-features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rfq-feature-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
}

.rfq-feature-item svg { color: var(--success); flex-shrink: 0; }

.rfq-open-modal-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, var(--orange), var(--orange-2));
    color: #fff;
    border: none;
    padding: 0.9rem 1.75rem;
    border-radius: var(--radius-xs);
    font-size: 0.95rem;
    font-weight: 700;
    font-family: var(--font);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-btn);
    white-space: nowrap;
    letter-spacing: -0.2px;
}

.rfq-open-modal-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 36px rgba(255,107,0,0.55);
}

@media (max-width: 900px) {
    .rfq-teaser-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        padding: 1.75rem;
    }
    .rfq-teaser-right { align-items: flex-start; width: 100%; }
    .rfq-open-modal-btn { width: 100%; justify-content: center; }
}

/* ── B2B Full-Screen Modal ─────────────────────────── */
.b2b-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(5, 8, 16, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: stretch;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
}

.b2b-modal-overlay.b2b-open {
    opacity: 1;
}

.b2b-modal-container {
    width: 100%;
    max-width: 1280px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transform: translateY(30px);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin: 0 auto;
}

.b2b-modal-overlay.b2b-open .b2b-modal-container {
    transform: translateY(0);
}

/* Modal Header */
.b2b-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1.5rem 2.5rem;
    background: rgba(10, 14, 26, 0.95);
    border-bottom: 1px solid rgba(255,107,0,0.15);
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(20px);
    gap: 1rem;
}

.b2b-modal-header-left { display: flex; flex-direction: column; gap: 0.6rem; flex: 1; min-width: 0; }

.b2b-modal-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.b2b-modal-brand-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: linear-gradient(135deg, var(--orange-light), rgba(99,102,241,0.12));
    border: 1px solid var(--orange-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--orange);
}

.b2b-modal-brand-tag {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 0.2rem;
}

.b2b-modal-title {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--text);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.b2b-modal-meta {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.b2b-meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--success);
    background: var(--success-bg);
    border: 1px solid rgba(34,197,94,0.25);
    padding: 0.18rem 0.6rem;
    border-radius: 50px;
}

.b2b-meta-sep { color: var(--text-light); font-size: 0.75rem; }

.b2b-meta-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.b2b-modal-header-right { flex-shrink: 0; }

.b2b-modal-close {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    color: var(--text-muted);
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.b2b-modal-close:hover {
    background: var(--error-bg);
    border-color: var(--error);
    color: var(--error);
}

/* Modal Body */
.b2b-modal-body {
    flex: 1;
    padding: 2rem 2.5rem;
    position: relative;
    background: var(--bg);
}

.b2b-modal-body .rfq-locked-overlay {
    border-radius: 0;
}

.b2b-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 800px) {
    .b2b-modal-grid { grid-template-columns: 1fr; }
    .b2b-modal-header { padding: 1.25rem 1.25rem; }
    .b2b-modal-body { padding: 1.25rem; }
}

/* RFQ Card header row */
.rfq-card-header-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.rfq-card-header-row h3 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.1rem;
    letter-spacing: -0.2px;
}

.rfq-card-sub { font-size: 0.75rem; color: var(--text-muted); }

.rfq-card-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rfq-icon-create {
    background: var(--orange-light);
    border: 1px solid var(--orange-border);
    color: var(--orange);
}

.rfq-icon-list {
    background: var(--indigo-light);
    border: 1px solid rgba(99,102,241,0.25);
    color: var(--indigo);
}

.rfq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

@media (max-width: 768px) { .rfq-grid { grid-template-columns: 1fr; } }

/* Locked Overlay */
.rfq-locked-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    background: rgba(7,11,20,0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.locked-card {
    text-align: center;
    max-width: 360px;
}

.locked-header-tag {
    display: inline-block;
    background: var(--orange-light);
    border: 1px solid var(--orange-border);
    color: var(--orange);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 0.25rem 0.8rem;
    border-radius: 50px;
    margin-bottom: 0.85rem;
}

.locked-card h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.65rem;
    letter-spacing: -0.3px;
}

.locked-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 1rem;
}

/* RFQ Cards */
.rfq-create-card,
.rfq-list-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(16px);
    position: relative;
    overflow: hidden;
}

.rfq-create-card h3,
.rfq-list-card h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.2rem;
    letter-spacing: -0.3px;
}

.rfq-list-sub { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 1rem; line-height: 1.5; }

.rfq-form { display: flex; flex-direction: column; gap: 0.9rem; margin-top: 1rem; }

.rfq-actions {
    display: flex;
    gap: 0.65rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

/* RFQ Buttons */
.rfq-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.25rem;
    border-radius: var(--radius-xs);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-family: var(--font);
    white-space: nowrap;
}

.rfq-btn-send {
    background: linear-gradient(135deg, var(--orange), var(--orange-2));
    color: #fff;
    box-shadow: 0 4px 18px rgba(255,107,0,0.35);
    flex: 1;
}
.rfq-btn-send:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(255,107,0,0.5); }

.rfq-btn-download {
    background: rgba(255,255,255,0.06);
    color: var(--text);
    border: 1px solid var(--glass-border);
}
.rfq-btn-download:hover { background: rgba(255,255,255,0.1); border-color: var(--border-hover); transform: translateY(-1px); }

/* Overlay lock */
.rfq-overlay-lock {
    position: absolute;
    inset: 0;
    z-index: 5;
    background: rgba(7,11,20,0.85);
    backdrop-filter: blur(8px);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.lock-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.rfq-overlay-lock h4 { font-size: 1rem; font-weight: 800; color: var(--text); margin-bottom: 0.4rem; }
.rfq-overlay-lock p  { font-size: 0.85rem; color: var(--text-muted); line-height: 1.55; }

/* RFQ List */
.rfq-list-wrapper { display: flex; flex-direction: column; gap: 0.75rem; }

.rfq-empty-state {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--text-muted);
}

.empty-icon { font-size: 2.5rem; margin-bottom: 0.75rem; opacity: 0.5; }
.rfq-empty-state p { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.35rem; color: var(--text); }
.rfq-empty-state span { font-size: 0.82rem; }

/* RFQ Item cards */
.rfq-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    transition: var(--transition);
}
.rfq-item:hover { border-color: var(--border-hover); background: rgba(255,255,255,0.05); }

.rfq-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.65rem;
    gap: 0.5rem;
}

.rfq-item-title { font-size: 0.9rem; font-weight: 700; color: var(--text); }
.rfq-item-meta  { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.15rem; }

.rfq-status-badge {
    font-size: 0.68rem;
    font-weight: 800;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    white-space: nowrap;
    flex-shrink: 0;
}

.status-pending   { background: rgba(251,191,36,0.15); color: #FBBF24; border: 1px solid rgba(251,191,36,0.3); }
.status-responded { background: var(--success-bg); color: var(--success); border: 1px solid rgba(34,197,94,0.3); }
.status-accepted  { background: var(--indigo-light); color: var(--indigo); border: 1px solid rgba(99,102,241,0.3); }

.rfq-item-body {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.rfq-detail-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.2rem 0.55rem;
}

.rfq-item-actions { display: flex; gap: 0.5rem; }

.rfq-action-btn {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 7px;
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font);
}

.rfq-action-btn.primary {
    background: var(--orange-light);
    border-color: var(--orange-border);
    color: var(--orange);
}
.rfq-action-btn.primary:hover { background: var(--orange); color: #fff; }
.rfq-action-btn:hover { border-color: var(--border-hover); color: var(--text); }

/* ── Seller Modal ───────────────────────────────────── */
.seller-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.seller-modal-content {
    background: #0F1525;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}

.seller-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid var(--border);
}

.seller-modal-header h4 { font-size: 1rem; font-weight: 800; color: var(--text); }

.seller-modal-body { padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.seller-modal-desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }

.rfq-details-summary {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.9rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    font-size: 0.84rem;
    color: var(--text-muted);
}

.rfq-details-summary strong { color: var(--text); }

.sm-computed-total {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--orange);
    letter-spacing: -0.5px;
    padding: 0.5rem 0;
}

/* ── Seller Active Banner ────────────────────────────── */
.seller-active-banner {
    background: linear-gradient(90deg, rgba(255,107,0,0.12), rgba(255,107,0,0.06));
    border-bottom: 1px solid var(--orange-border);
    padding: 0.8rem 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: sticky;
    top: 0;
    z-index: 500;
}

.banner-content { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }

.banner-badge {
    background: var(--orange);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 0.25rem 0.7rem;
    border-radius: 50px;
    white-space: nowrap;
}

.banner-text { font-size: 0.84rem; color: var(--text); }

.banner-close {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    width: 28px;
    height: 28px;
    border-radius: 7px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 1rem;
    flex-shrink: 0;
}
.banner-close:hover { background: var(--error-bg); border-color: var(--error); color: var(--error); }

/* ── Auth Modal ────────────────────────────────────── */
.auth-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.auth-modal-box {
    background: #0D1525;
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    width: 100%;
    max-width: 560px;
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: 0 30px 80px rgba(0,0,0,0.65), 0 0 0 1px var(--glass-border);
    position: relative;
    animation: fadeInUp 0.35s ease both;
}

@media (min-width: 700px) {
    .auth-modal-box {
        max-width: 600px;
    }
}

@media (min-width: 1024px) {
    .auth-modal-box {
        max-width: 640px;
    }
}

.auth-modal-box .modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 10;
}

.auth-modal-brand {
    padding: 2rem 2rem 1.25rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.auth-brand-logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text);
    margin-bottom: 0.35rem;
}

.auth-brand-logo span { color: var(--orange); }

.auth-brand-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.2rem;
}

.auth-brand-subtitle { font-size: 0.84rem; color: var(--text-muted); }

.auth-tabs {
    display: flex;
    gap: 0.35rem;
    padding: 1rem 2rem 0;
}

.auth-tab-btn {
    flex: 1;
    padding: 0.55rem 1rem;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font);
}

.auth-tab-btn.active,
.auth-tab-btn:hover {
    background: var(--orange);
    border-color: var(--orange);
    color: #fff;
    box-shadow: 0 4px 16px rgba(255,107,0,0.35);
}

.auth-content { padding: 1rem 2rem 1.75rem; }

.auth-register-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.75rem 0.9rem;
    background: rgba(255,255,255,0.03);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 0.79rem;
    line-height: 1.5;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    margin-top: 0.15rem;
}

.auth-register-consent:has(input:checked) {
    border-color: var(--orange-border);
    background: var(--orange-light);
}

.auth-register-consent input {
    width: 16px;
    height: 16px;
    margin-top: 0.1rem;
    accent-color: var(--orange);
    flex-shrink: 0;
    cursor: pointer;
}

.auth-register-consent a {
    color: var(--orange);
    font-weight: 700;
    text-decoration: none;
}

.auth-register-consent a:hover { text-decoration: underline; }

.auth-register-consent.consent-error {
    border-color: var(--error);
    background: var(--error-bg);
    box-shadow: 0 0 0 3px rgba(239,68,68,0.10);
}

.auth-panel { display: none; }
.auth-panel.active { display: flex; flex-direction: column; gap: 0.85rem; }

.form-group-auth { display: flex; flex-direction: column; gap: 0.4rem; }

.form-group-auth label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.form-row-auth {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.auth-input {
    width: 100%;
    background: var(--bg-input);
    border: 1.5px solid var(--border);
    color: var(--text);
    padding: 0.72rem 1rem;
    border-radius: var(--radius-xs);
    font-size: 0.9rem;
    font-family: var(--font);
    transition: var(--transition);
    outline: none;
}

.auth-input:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px var(--orange-light);
    background: rgba(255,107,0,0.04);
}

.auth-select {
    width: 100%;
    background: var(--bg-input);
    border: 1.5px solid var(--border);
    color: var(--text);
    padding: 0.72rem 2rem 0.72rem 1rem;
    border-radius: var(--radius-xs);
    font-size: 0.9rem;
    font-family: var(--font);
    appearance: none;
    cursor: pointer;
    outline: none;
    transition: var(--transition);
}

.auth-select:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px var(--orange-light);
}

.auth-select option { background: #1A2035; color: var(--text); }

.password-input-wrapper { position: relative; }

.btn-toggle-pwd {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-muted);
    padding: 0;
    display: flex;
    align-items: center;
}

.auth-action-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.auth-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition);
}
.auth-link:hover { color: var(--orange); }

.auth-submit-btn {
    background: linear-gradient(135deg, var(--orange), var(--orange-2));
    color: #fff;
    border: none;
    padding: 0.78rem 1.75rem;
    border-radius: var(--radius-xs);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font);
    box-shadow: 0 4px 18px rgba(255,107,0,0.35);
}

.auth-submit-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(255,107,0,0.5); }
.auth-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.25rem 0;
}

.auth-divider::before,
.auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-divider span { font-size: 0.72rem; color: var(--text-light); font-weight: 600; }

.auth-error-msg {
    padding: 0.7rem 1rem;
    background: var(--error-bg);
    border: 1px solid rgba(239,68,68,0.2);
    border-radius: var(--radius-xs);
    font-size: 0.82rem;
    color: var(--error);
    font-weight: 600;
}

.auth-success-msg {
    padding: 0.7rem 1rem;
    background: var(--success-bg);
    border: 1px solid rgba(34,197,94,0.2);
    border-radius: var(--radius-xs);
    font-size: 0.82rem;
    color: var(--success);
    font-weight: 600;
}

/* ── Footer ───────────────────────────────────────── */
.site-footer {
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.84rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

.site-footer a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}
.site-footer a:hover { color: var(--orange); }

/* ── Scrollbar ─────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.12);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 640px) {
    .rfq-grid { grid-template-columns: 1fr; }
    .report-details-grid { grid-template-columns: 1fr; }
    .form-row-auth { grid-template-columns: 1fr; }
    .market-section-header { flex-direction: column; align-items: flex-start; }
    .site-footer { flex-direction: column; gap: 0.75rem; text-align: center; }
    .hero-title { font-size: 2rem; letter-spacing: -1px; }
    .auth-tabs { padding: 1rem 1.25rem 0; }
    .auth-content { padding: 1rem 1.25rem 1.5rem; }
    .auth-modal-brand { padding: 1.5rem 1.25rem 1rem; }
    .auth-modal-box { max-width: 100%; margin: 0; border-radius: 18px; }
    .auth-modal-overlay { padding: 1rem; }
}

/* ── Theme Switcher & Light Mode Component Overrides ── */

.theme-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--text);
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    flex-shrink: 0;
}

.theme-toggle-btn:hover {
    border-color: var(--orange-border);
    color: var(--orange);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--orange-glow);
}

.theme-toggle-btn svg {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle-btn:hover svg {
    transform: rotate(15deg);
}

/* Light Theme overrides for hardcoded overlays/cards */
:root[data-theme="light"] body::before {
    background:
        radial-gradient(ellipse 80% 60% at 10% 0%,   rgba(99,102,241,0.05) 0%, transparent 55%),
        radial-gradient(ellipse 60% 50% at 90% 100%, rgba(255,107,0,0.04) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 50% 50%,  rgba(6,182,212,0.02) 0%, transparent 60%);
}

:root[data-theme="light"] .smart-price-ticker {
    background: linear-gradient(90deg, #FFFFFF 0%, #F8FAFC 50%, #FFFFFF 100%);
    color: var(--text);
}

:root[data-theme="light"] .ticker-item {
    color: rgba(15, 23, 42, 0.7);
}

:root[data-theme="light"] .ticker-item strong {
    color: var(--text);
}

:root[data-theme="light"] .result-panel {
    background: rgba(255,107,0,0.01);
}

:root[data-theme="light"] .result-breakdown,
:root[data-theme="light"] .logistics-card,
:root[data-theme="light"] .privacy-consent,
:root[data-theme="light"] .legal-updated,
:root[data-theme="light"] .report-to-line,
:root[data-theme="light"] .report-table-section,
:root[data-theme="light"] .report-table-title,
:root[data-theme="light"] .report-detail-item,
:root[data-theme="light"] .rfq-details-summary,
:root[data-theme="light"] .rfq-item {
    background: var(--bg-subtle);
}

:root[data-theme="light"] .logistics-breakdown {
    background: var(--bg-subtle-2);
}

:root[data-theme="light"] .rfq-detail-chip {
    background: var(--bg-card);
}

:root[data-theme="light"] .modal-box,
:root[data-theme="light"] .seller-modal-content,
:root[data-theme="light"] .auth-modal-box {
    background: var(--bg-2);
}

:root[data-theme="light"] .auth-register-consent {
    background: rgba(0,0,0,0.02);
}

:root[data-theme="light"] .form-select option,
:root[data-theme="light"] .auth-select option {
    background: var(--bg-2);
    color: var(--text);
}

:root[data-theme="light"] ::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.12);
}

:root[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.22);
}

:root[data-theme="light"] .antd-table thead th {
    background: rgba(0, 0, 0, 0.02);
}

:root[data-theme="light"] .antd-table tbody tr:hover {
    background: rgba(0, 0, 0, 0.01);
}

:root[data-theme="light"] .trend-flat {
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-light);
    border-color: rgba(0, 0, 0, 0.08);
}

:root[data-theme="light"] .skeleton-line {
    background: linear-gradient(90deg, rgba(0,0,0,0.03) 25%, rgba(0,0,0,0.06) 37%, rgba(0,0,0,0.03) 63%);
}

/* ==========================================================================
   ── Corporate Dashboard CSS ──
   ========================================================================== */

.dash-root {
    display: flex;
    width: 100%;
    height: 100vh;
    background: #060913;
    color: #e2e8f0;
    overflow: hidden;
    font-family: var(--font);
}

.dash-sidebar {
    width: 250px;
    background: #03050a;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.dash-sidebar-brand {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dash-brand-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--orange), var(--orange-2));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.dash-brand-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.dash-brand-sub {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.dash-nav {
    flex: 1;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    overflow-y: auto;
}

.dash-nav-section-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.8px;
    margin-bottom: 0.5rem;
    padding-left: 0.75rem;
    text-transform: uppercase;
}

.dash-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.85rem;
    color: #94a3b8;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.dash-nav-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
}

.dash-nav-item.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.15), rgba(255, 107, 0, 0.05));
    border-left: 3px solid var(--orange);
    padding-left: calc(0.85rem - 3px);
}

.dash-nav-item svg {
    flex-shrink: 0;
    opacity: 0.75;
}

.dash-nav-item.active svg {
    color: var(--orange);
    opacity: 1;
}

.dash-nav-badge {
    margin-left: auto;
    font-size: 0.6rem;
    font-weight: 800;
    background: var(--orange);
    color: #fff;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.dash-nav-count {
    margin-left: auto;
    font-size: 0.7rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    padding: 0.1rem 0.45rem;
    border-radius: 20px;
}

.dash-sidebar-footer {
    padding: 1.25rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.dash-user-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.dash-user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.dash-user-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.dash-user-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-user-role {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.dash-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.65rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #f87171;
    font-weight: 700;
    font-size: 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dash-close-btn:hover {
    background: rgba(239, 68, 68, 0.25);
    color: #fff;
}

.dash-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #060913;
}

.dash-topbar {
    height: 70px;
    background: #03050a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    flex-shrink: 0;
}

.dash-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.dash-breadcrumb svg {
    opacity: 0.5;
}

.dash-page-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}

.dash-topbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dash-topbar-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.04);
    padding: 0.4rem 0.8rem;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.dash-status-dot {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
}

.dash-status-text {
    font-size: 0.72rem;
    font-weight: 700;
    color: #cbd5e1;
}

.dash-btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    padding: 0.5rem 1rem;
    font-weight: 700;
    font-size: 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
}

.dash-btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.dash-btn-primary {
    background: linear-gradient(135deg, var(--orange), var(--orange-2));
    border: none;
    color: #fff;
    padding: 0.5rem 1.1rem;
    font-weight: 700;
    font-size: 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 4px 14px rgba(255, 107, 0, 0.3);
    transition: all 0.2s ease;
}

.dash-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.5);
}

.dash-panel {
    display: none;
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

.dash-panel.active {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.dash-kpi-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

@media (max-width: 1200px) {
    .dash-kpi-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .dash-kpi-row {
        grid-template-columns: 1fr;
    }
}

.dash-kpi-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    backdrop-filter: blur(10px);
}

.dash-kpi-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dash-kpi-blue { background: rgba(59, 130, 246, 0.1); color: #3b82f6; border: 1px solid rgba(59, 130, 246, 0.2); }
.dash-kpi-yellow { background: rgba(245, 158, 11, 0.1); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.2); }
.dash-kpi-green { background: rgba(16, 185, 129, 0.1); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.2); }
.dash-kpi-orange { background: rgba(249, 115, 22, 0.1); color: #f97316; border: 1px solid rgba(249, 115, 22, 0.2); }

.dash-kpi-info {
    display: flex;
    flex-direction: column;
}

.dash-kpi-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dash-kpi-value {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    margin: 0.15rem 0;
}

.dash-kpi-delta {
    font-size: 0.68rem;
    color: var(--text-muted);
}

.dash-delta-up {
    color: #10b981;
    font-weight: 600;
}

.dash-table-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.dash-table-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.dash-table-title {
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
}

.dash-table-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.dash-table-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dash-search-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0.4rem 0.75rem;
    width: 220px;
    color: var(--text-muted);
}

.dash-search-input {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 0.8rem;
    width: 100%;
}

.dash-table-wrap {
    overflow-x: auto;
}

.dash-data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.82rem;
}

.dash-data-table th {
    background: rgba(0, 0, 0, 0.15);
    padding: 1rem 1.25rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.68rem;
    letter-spacing: 0.5px;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.08);
}

.dash-data-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: #cbd5e1;
    vertical-align: middle;
}

.dash-table-row {
    transition: background 0.2s ease;
}

.dash-table-row:hover {
    background: rgba(255, 255, 255, 0.01);
}

.dash-id-badge {
    font-family: monospace;
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.2rem 0.45rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.dash-prod-cell {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.dash-prod-label {
    font-weight: 700;
    color: #fff;
}

.dash-prod-ton {
    font-size: 0.75rem;
    color: var(--orange);
}

.dash-status-badge {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.dash-status-badge.status-awaiting_seller {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.dash-status-badge.status-seller_responded {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.dash-status-badge.status-accepted {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.dash-price-detail {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    margin-top: 0.3rem;
    font-size: 0.72rem;
}

.dash-detail-unit {
    color: var(--text-muted);
}

.dash-detail-total {
    color: #10b981;
    font-weight: 600;
}

.dash-action-btn {
    padding: 0.35rem 0.7rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: transparent;
    color: #cbd5e1;
    margin-left: 0.35rem;
}

.dash-action-btn:hover {
    border-color: #fff;
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.dash-btn-respond {
    background: var(--orange-light);
    border-color: var(--orange-border);
    color: var(--orange);
}

.dash-btn-respond:hover {
    background: var(--orange);
    color: #fff;
    border-color: var(--orange);
}

.dash-btn-accept {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.dash-btn-accept:hover {
    background: #10b981;
    color: #fff;
    border-color: #10b981;
}

.dash-btn-pdf {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.25);
    color: #818cf8;
}

.dash-btn-pdf:hover {
    background: #6366f1;
    color: #fff;
    border-color: #6366f1;
}

.dash-table-empty-row {
    background: transparent !important;
}

.dash-empty {
    padding: 3.5rem 2rem;
    text-align: center;
    color: var(--text-muted);
}

.dash-empty-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.3;
}

.dash-empty-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.25rem;
}

.dash-empty-sub {
    font-size: 0.8rem;
}

.dash-rfq-form-layout {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 900px) {
    .dash-rfq-form-layout {
        grid-template-columns: 1fr;
    }
}

.dash-form-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 1.5rem;
}

.dash-form-card-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1rem;
}

.dash-form-card-header h3 {
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
}

.dash-form-card-header p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0.15rem 0 0;
}

.dash-form-header-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 107, 0, 0.1);
    color: var(--orange);
    border: 1px solid rgba(255, 107, 0, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dash-form-section-label {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--orange);
    letter-spacing: 0.8px;
    margin: 1.25rem 0 0.85rem;
    text-transform: uppercase;
}

.dash-form-section-label:first-of-type {
    margin-top: 0;
}

.dash-info-panel {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.dash-info-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 1.5rem;
}

.dash-info-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
}

.dash-supplier-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.dash-supplier-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 10px;
}

.dash-supplier-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dash-dot-green { background: #10b981; box-shadow: 0 0 8px #10b981; }
.dash-dot-yellow { background: #f59e0b; box-shadow: 0 0 8px #f59e0b; }

.dash-supplier-detail {
    flex: 1;
    min-width: 0;
}

.dash-supplier-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-supplier-sub {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.dash-supplier-badge {
    font-size: 0.65rem;
    font-weight: 800;
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    flex-shrink: 0;
}

.dash-supplier-badge.dash-badge-yellow {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

.dash-supplier-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

@media (max-width: 768px) {
    .dash-supplier-grid {
        grid-template-columns: 1fr;
    }
}

.dash-sup-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
}

.dash-sup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dash-sup-badge {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.dash-sup-badge.dash-badge-green { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.dash-sup-badge.dash-badge-yellow { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }

.dash-sup-score {
    font-size: 0.8rem;
    font-weight: 700;
    color: #f59e0b;
}

.dash-sup-name {
    font-size: 0.95rem;
    font-weight: 800;
    color: #fff;
    margin-top: 0.25rem;
}

.dash-sup-factory {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.dash-sup-specs {
    font-size: 0.72rem;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.dash-sup-meta {
    font-size: 0.7rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 0.6rem;
    margin-top: auto;
}

.dash-analytics-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 5rem 2rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.01);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    width: 100%;
}

.dash-analytics-empty svg {
    margin-bottom: 1.25rem;
    opacity: 0.4;
    color: var(--orange);
}

.dash-analytics-empty h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
}

.dash-analytics-empty p {
    font-size: 0.85rem;
    max-width: 440px;
    line-height: 1.6;
    margin: 0;
}

/* Modal Open Animation override */
.b2b-modal-overlay {
    transition: opacity 0.3s ease;
}

.b2b-modal-overlay.b2b-open {
    opacity: 1 !important;
}

/* Light Theme overrides for Corporate Dashboard */
:root[data-theme="light"] .dash-root {
    background: #f1f5f9;
    color: #334155;
}

:root[data-theme="light"] .dash-sidebar {
    background: #ffffff;
    border-right-color: rgba(0, 0, 0, 0.08);
}

:root[data-theme="light"] .dash-sidebar-brand {
    border-bottom-color: rgba(0, 0, 0, 0.05);
}

:root[data-theme="light"] .dash-brand-name {
    color: #0f172a;
}

:root[data-theme="light"] .dash-nav-item {
    color: #475569;
}

:root[data-theme="light"] .dash-nav-item:hover {
    color: #0f172a;
    background: rgba(0, 0, 0, 0.04);
}

:root[data-theme="light"] .dash-nav-item.active {
    color: var(--orange);
    background: rgba(255, 107, 0, 0.06);
}

:root[data-theme="light"] .dash-sidebar-footer {
    border-top-color: rgba(0, 0, 0, 0.05);
}

:root[data-theme="light"] .dash-user-card {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.05);
}

:root[data-theme="light"] .dash-user-name {
    color: #0f172a;
}

:root[data-theme="light"] .dash-topbar {
    background: #ffffff;
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

:root[data-theme="light"] .dash-page-title {
    color: #0f172a;
}

:root[data-theme="light"] .dash-topbar-status {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.05);
}

:root[data-theme="light"] .dash-status-text {
    color: #475569;
}

:root[data-theme="light"] .dash-btn-outline {
    border-color: rgba(0, 0, 0, 0.15);
    color: #475569;
}

:root[data-theme="light"] .dash-btn-outline:hover {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.3);
    color: #0f172a;
}

:root[data-theme="light"] .dash-kpi-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

:root[data-theme="light"] .dash-kpi-value {
    color: #0f172a;
}

:root[data-theme="light"] .dash-table-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

:root[data-theme="light"] .dash-table-header {
    border-bottom-color: rgba(0, 0, 0, 0.05);
}

:root[data-theme="light"] .dash-table-title {
    color: #0f172a;
}

:root[data-theme="light"] .dash-search-box {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
}

:root[data-theme="light"] .dash-search-input {
    color: #0f172a;
}

:root[data-theme="light"] .dash-data-table th {
    background: #f8fafc;
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

:root[data-theme="light"] .dash-data-table td {
    border-bottom-color: rgba(0, 0, 0, 0.05);
    color: #334155;
}

:root[data-theme="light"] .dash-table-row:hover {
    background: #f8fafc;
}

:root[data-theme="light"] .dash-id-badge {
    color: #475569;
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.04);
}

:root[data-theme="light"] .dash-prod-label {
    color: #0f172a;
}

:root[data-theme="light"] .dash-action-btn {
    border-color: rgba(0, 0, 0, 0.15);
    color: #475569;
}

:root[data-theme="light"] .dash-action-btn:hover {
    border-color: #0f172a;
    color: #0f172a;
    background: rgba(0, 0, 0, 0.04);
}

:root[data-theme="light"] .dash-empty-title {
    color: #0f172a;
}

:root[data-theme="light"] .dash-form-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

:root[data-theme="light"] .dash-form-card-header {
    border-bottom-color: rgba(0, 0, 0, 0.05);
}

:root[data-theme="light"] .dash-form-card-header h3 {
    color: #0f172a;
}

:root[data-theme="light"] .dash-info-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

:root[data-theme="light"] .dash-info-title {
    color: #0f172a;
}

:root[data-theme="light"] .dash-supplier-item {
    background: rgba(0, 0, 0, 0.01);
    border-color: rgba(0, 0, 0, 0.04);
}

:root[data-theme="light"] .dash-supplier-name {
    color: #0f172a;
}

:root[data-theme="light"] .dash-sup-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

:root[data-theme="light"] .dash-sup-name {
    color: #0f172a;
}

:root[data-theme="light"] .dash-sup-specs {
    color: #334155;
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.04);
}

:root[data-theme="light"] .dash-sup-meta {
    border-top-color: rgba(0, 0, 0, 0.05);
}

:root[data-theme="light"] .dash-analytics-empty {
    background: rgba(0, 0, 0, 0.01);
    border-color: rgba(0, 0, 0, 0.1);
}

:root[data-theme="light"] .dash-analytics-empty h3 {
    color: #0f172a;
}

/* ═══════════════════════════════════════════════════════════════
   TEST DATA DISCLAIMER BANNER
═══════════════════════════════════════════════════════════════ */
.test-data-disclaimer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(7, 11, 20, 0.82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-top: 1px solid rgba(255, 107, 0, 0.18);
    text-align: center;
    padding: 5px 16px;
    font-size: 10.5px;
    color: rgba(139, 158, 197, 0.75);
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.01em;
    pointer-events: none;
    user-select: none;
}

.test-data-disclaimer strong {
    color: rgba(255, 107, 0, 0.8);
    font-weight: 600;
}

:root[data-theme="light"] .test-data-disclaimer {
    background: rgba(248, 250, 255, 0.88);
    border-top-color: rgba(255, 107, 0, 0.22);
    color: rgba(90, 111, 149, 0.85);
}

/* ═══════════════════════════════════════════════════════════════
   CONTACT MODAL & FORM
═══════════════════════════════════════════════════════════════ */

/* Header butonu */
.contact-header-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: rgba(255, 107, 0, 0.10);
    border: 1px solid rgba(255, 107, 0, 0.28);
    border-radius: 20px;
    color: var(--orange-2);
    font-size: 12.5px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.15s ease;
    white-space: nowrap;
}
.contact-header-btn:hover {
    background: rgba(255, 107, 0, 0.18);
    border-color: rgba(255, 107, 0, 0.50);
    transform: translateY(-1px);
}
.contact-header-btn svg {
    flex-shrink: 0;
    opacity: 0.85;
}

/* Modal Overlay */
.contact-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(5, 8, 16, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.contact-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Card */
.contact-modal {
    background: var(--bg-2, #0D1220);
    border: 1px solid rgba(255, 107, 0, 0.22);
    border-radius: 18px;
    padding: 28px 28px 24px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255,255,255,0.04) inset;
    transform: translateY(18px) scale(0.97);
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}
.contact-modal-overlay.active .contact-modal {
    transform: translateY(0) scale(1);
}

/* Modal Header */
.contact-modal-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 22px;
}
.contact-modal-icon {
    width: 42px;
    height: 42px;
    background: rgba(255, 107, 0, 0.13);
    border: 1px solid rgba(255, 107, 0, 0.25);
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--orange-2);
    flex-shrink: 0;
}
.contact-modal-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text, #F0F6FF);
    margin: 0 0 3px;
    line-height: 1.2;
}
.contact-modal-subtitle {
    font-size: 12.5px;
    color: var(--text-muted, #8B9EC5);
    margin: 0;
}
.contact-modal-close {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--text-muted, #8B9EC5);
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: background 0.15s, color 0.15s;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.contact-modal-close:hover {
    background: rgba(255,255,255,0.07);
    color: var(--text, #F0F6FF);
}

/* Form Groups */
.contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
}
@media (max-width: 540px) {
    .contact-form-row { grid-template-columns: 1fr; }
}
.contact-form-group {
    margin-bottom: 16px;
}
.contact-form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted, #8B9EC5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}
.contact-form-input,
.contact-form-textarea {
    width: 100%;
    background: var(--bg-input, rgba(255,255,255,0.05));
    border: 1px solid var(--border, rgba(255,255,255,0.08));
    border-radius: 10px;
    color: var(--text, #F0F6FF);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    padding: 11px 14px;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
    box-sizing: border-box;
    resize: none;
}
.contact-form-input:focus,
.contact-form-textarea:focus {
    border-color: rgba(255, 107, 0, 0.55);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.10);
}
.contact-form-input::placeholder,
.contact-form-textarea::placeholder {
    color: var(--text-light, #5A6F95);
}
.contact-form-input.invalid,
.contact-form-textarea.invalid {
    border-color: rgba(239, 68, 68, 0.55);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08);
}

.contact-char-counter {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 5px;
}
.contact-char-count {
    font-size: 11px;
    color: var(--text-light, #5A6F95);
    flex-shrink: 0;
}
.contact-field-error {
    font-size: 11.5px;
    color: #f87171;
    min-height: 14px;
    display: block;
}

/* Honeypot field */
.contact-honeypot {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    tab-index: -1 !important;
}

/* Submit Button */
.contact-submit-btn {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, var(--orange, #FF6B00) 0%, var(--orange-2, #FF8C38) 100%);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
    transition: opacity 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease;
    box-shadow: 0 4px 16px rgba(255, 107, 0, 0.30);
}
.contact-submit-btn:hover:not(:disabled) {
    opacity: 0.92;
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(255, 107, 0, 0.40);
}
.contact-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Spinner animation */
@keyframes contact-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
.contact-spinner {
    animation: contact-spin 0.8s linear infinite;
}

/* ── Toast Notification ── */
.toast-notification {
    position: fixed;
    bottom: 30px;
    right: 24px;
    z-index: 11000;
    min-width: 220px;
    max-width: 360px;
    background: var(--bg-2, #0D1220);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    color: var(--text, #F0F6FF);
    box-shadow: 0 8px 30px rgba(0,0,0,0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}
.toast-notification.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.toast-notification.toast-success {
    border-color: rgba(34, 197, 94, 0.40);
    box-shadow: 0 8px 30px rgba(0,0,0,0.45), 0 0 0 1px rgba(34,197,94,0.08) inset;
}
.toast-notification.toast-error {
    border-color: rgba(239, 68, 68, 0.40);
    box-shadow: 0 8px 30px rgba(0,0,0,0.45), 0 0 0 1px rgba(239,68,68,0.08) inset;
}
.toast-icon {
    font-size: 17px;
    flex-shrink: 0;
}

/* ── Light theme overrides ── */
:root[data-theme="light"] .contact-header-btn {
    color: var(--orange, #FF6B00);
}
:root[data-theme="light"] .contact-modal {
    background: #fff;
    border-color: rgba(255, 107, 0, 0.20);
    box-shadow: 0 24px 60px rgba(0,0,0,0.15);
}
:root[data-theme="light"] .contact-modal-title {
    color: #0f172a;
}
:root[data-theme="light"] .contact-modal-subtitle {
    color: #64748b;
}
:root[data-theme="light"] .contact-form-input,
:root[data-theme="light"] .contact-form-textarea {
    background: #f8faff;
    border-color: rgba(0,0,0,0.10);
    color: #0f172a;
}
:root[data-theme="light"] .contact-form-input::placeholder,
:root[data-theme="light"] .contact-form-textarea::placeholder {
    color: #94a3b8;
}
:root[data-theme="light"] .contact-modal-close {
    color: #64748b;
}
:root[data-theme="light"] .contact-modal-close:hover {
    background: rgba(0,0,0,0.06);
    color: #0f172a;
}
:root[data-theme="light"] .toast-notification {
    background: #fff;
    color: #0f172a;
    border-color: rgba(0,0,0,0.10);
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .contact-modal {
        padding: 22px 18px 20px;
        border-radius: 14px;
    }
    .contact-header-btn span { display: none; }
    .contact-header-btn {
        padding: 7px 10px;
        min-width: 36px;
        justify-content: center;
    }
    .toast-notification {
        right: 12px;
        bottom: 20px;
        min-width: 180px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   ADMIN MESSAGES PANEL
═══════════════════════════════════════════════════════════════ */

/* Profil kartındaki admin butonu */
.admin-msg-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.30);
    border-radius: 8px;
    color: #818cf8;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, transform 0.15s;
    flex-shrink: 0;
}
.admin-msg-btn:hover {
    background: rgba(99, 102, 241, 0.25);
    border-color: rgba(99, 102, 241, 0.55);
    transform: translateY(-1px);
}

/* Admin Modal Overlay */
.admin-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10500;
    background: rgba(5, 8, 16, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.admin-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Admin Modal Card */
.admin-modal {
    background: var(--bg-2, #0D1220);
    border: 1px solid rgba(99, 102, 241, 0.22);
    border-radius: 18px;
    width: 100%;
    max-width: 640px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 60px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.04) inset;
    transform: translateY(18px) scale(0.97);
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}
.admin-modal-overlay.active .admin-modal {
    transform: translateY(0) scale(1);
}

/* Admin Modal Header */
.admin-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 24px 18px;
    border-bottom: 1px solid rgba(99, 102, 241, 0.15);
    flex-shrink: 0;
}
.admin-modal-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}
.admin-modal-icon {
    width: 38px;
    height: 38px;
    background: rgba(99, 102, 241, 0.13);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #818cf8;
    flex-shrink: 0;
}
.admin-modal-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text, #F0F6FF);
    margin: 0 0 2px;
}
.admin-modal-subtitle {
    font-size: 12px;
    color: var(--text-muted, #8B9EC5);
    margin: 0;
}
.admin-modal-close {
    background: none;
    border: none;
    color: var(--text-muted, #8B9EC5);
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: background 0.15s, color 0.15s;
    display: flex;
    align-items: center;
}
.admin-modal-close:hover {
    background: rgba(255,255,255,0.07);
    color: var(--text, #F0F6FF);
}

/* Message List */
.admin-msg-list {
    overflow-y: auto;
    flex: 1;
    padding: 16px 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.admin-msg-list::-webkit-scrollbar { width: 6px; }
.admin-msg-list::-webkit-scrollbar-track { background: transparent; }
.admin-msg-list::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.25);
    border-radius: 3px;
}

/* Message Card */
.admin-msg-card {
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.12);
    border-radius: 12px;
    padding: 14px 16px;
    transition: background 0.15s, border-color 0.15s;
}
.admin-msg-card:hover {
    background: rgba(99, 102, 241, 0.09);
    border-color: rgba(99, 102, 241, 0.22);
}
.admin-msg-card-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}
.admin-msg-subject {
    font-size: 14px;
    font-weight: 600;
    color: var(--text, #F0F6FF);
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.admin-msg-date {
    font-size: 11px;
    color: var(--text-muted, #8B9EC5);
    flex-shrink: 0;
    white-space: nowrap;
}
.admin-msg-body {
    font-size: 13px;
    color: var(--text-muted, #8B9EC5);
    line-height: 1.55;
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Loading & Empty */
.admin-msg-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-muted, #8B9EC5);
    font-size: 14px;
    padding: 32px 0;
}
.admin-msg-empty {
    text-align: center;
    color: var(--text-muted, #8B9EC5);
    font-size: 14px;
    padding: 32px 0;
}

/* Light theme */
:root[data-theme="light"] .admin-modal {
    background: #fff;
    border-color: rgba(99, 102, 241, 0.20);
}
:root[data-theme="light"] .admin-modal-title { color: #0f172a; }
:root[data-theme="light"] .admin-msg-card {
    background: rgba(99, 102, 241, 0.04);
    border-color: rgba(99, 102, 241, 0.12);
}
:root[data-theme="light"] .admin-msg-subject { color: #0f172a; }
:root[data-theme="light"] .admin-modal-header {
    border-bottom-color: rgba(99, 102, 241, 0.12);
}

/* Mobile */
@media (max-width: 480px) {
    .admin-modal { border-radius: 14px; }
    .admin-modal-header { padding: 18px 16px 14px; }
    .admin-msg-list { padding: 12px 16px 16px; }
    .admin-msg-card-header { flex-direction: column; gap: 3px; }
    .admin-msg-subject { white-space: normal; }
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE FIXES — Mobile / Tablet (ekran esnekliği + scroll düzeltmeleri)
═══════════════════════════════════════════════════════════════════ */

/* ── 1. Header yatay padding düzeltmesi (mobile'da 0 idi) ────── */
@media (max-width: 640px) {
    .site-header {
        padding: 0.75rem 1rem 1.25rem;
        margin-left: -1rem;
        margin-right: -1rem;
    }
    .page-wrapper {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    /* Header sağ grup: küçük ekranda sığsın */
    .header-right-group {
        gap: 0.5rem;
    }
    .header-badge {
        display: none; /* "Beta" badge'i gizle — yer açar */
    }
}

/* ── 2. Hesap formu satırı: dar ekranda alt alta ─────────────── */
@media (max-width: 540px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ── 3. Market tablosu: yatay kaydırma ───────────────────────── */
@media (max-width: 768px) {
    .market-table-wrap,
    .prices-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .market-table-wrap table,
    .prices-table-container table {
        min-width: 540px;
    }
}

/* ── 4. Dashboard / B2B Panel — kritik scroll düzeltmesi ─────── */
@media (max-width: 768px) {

    /* ① B2B overlay: kendi scroll'unu aç */
    .b2b-modal-overlay {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* ② dash-root: column layout, height: 100% (overlay zaten viewport dolduruyor) */
    .dash-root {
        flex-direction: column;
        height: 100%;
        overflow: hidden; /* child'lar scroll edecek */
    }

    /* ③ Sidebar → yatay nav şeridine dönüştür */
    .dash-sidebar {
        width: 100%;
        min-width: 0;
        height: auto;
        flex-direction: row;
        flex-shrink: 0;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0.4rem 0.75rem;
        border-right: none;
        border-bottom: 1px solid var(--border);
        gap: 0.25rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }
    .dash-sidebar::-webkit-scrollbar { display: none; } /* Chrome */
    /* Logo/brand alanını gizle — yatay nav şeridinde yer yok */
    .dash-sidebar-brand,
    .dash-sidebar-header { display: none; }
    .dash-sidebar-footer { display: none; }
    /* Nav'ı yatay yap */
    .dash-nav {
        flex-direction: row;
        align-items: center;
        overflow-x: auto;
        overflow-y: hidden;
        flex: 1;
        gap: 0.15rem;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .dash-nav::-webkit-scrollbar { display: none; }
    /* Bölüm başlıklarını gizle ("ANA MENÜ", "RAPORLAR" vb.) */
    .dash-nav-section-label { display: none; }
    .dash-nav-item {
        flex-shrink: 0;
        white-space: nowrap;
        padding: 0.4rem 0.7rem;
        border-radius: 8px;
        font-size: 0.82rem;
    }
    .dash-nav-icon { font-size: 0.9rem; }

    /* ④ dash-main: flex: 1, dikey scroll */
    .dash-main {
        flex: 1;
        overflow-y: auto;
        overflow-x: hidden;
        min-height: 0; /* flex bug: min-height: auto scroll'u engeller */
        -webkit-overflow-scrolling: touch;
    }

    /* ⑤ Topbar: sticky kalır, wrap edilebilir */
    .dash-topbar {
        position: sticky;
        top: 0;
        z-index: 5;
        height: auto;
        padding: 0.6rem 0.75rem;
        flex-wrap: wrap;
        gap: 0.5rem;
        flex-shrink: 0;
    }
    .dash-topbar-right {
        flex-wrap: wrap;
        gap: 0.4rem;
    }
    .dash-search-box {
        width: auto;
        flex: 1 1 120px;
        min-width: 100px;
    }

    /* ⑥ Panel içerik alanı: padding azalt */
    .dash-panel-content,
    .dash-panel-body,
    .dash-panel-inner {
        padding: 1rem;
    }

    /* ⑦ RFQ formu: dikey stack */
    .dash-rfq-form-layout {
        flex-direction: column;
    }

    /* ⑧ Tablo sarmalayıcıları: yatay scroll */
    .dash-table-wrapper,
    .dash-offers-table-wrap,
    .dash-offers-list {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .dash-table-wrapper table,
    .dash-offers-table-wrap table {
        min-width: 480px;
    }

    /* ⑨ İstatistik kartları: 2 sütun */
    .dash-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* ⑩ Seller modal: tam ekran mobile uyumlu */
    .seller-modal {
        width: 100%;
        max-width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
        margin: 0;
    }
}

/* ── 5. Çok dar ekranlar (< 420px) ───────────────────────────── */
@media (max-width: 420px) {
    .dash-stats-grid {
        grid-template-columns: 1fr;
    }
    .dash-topbar-right {
        width: 100%;
        justify-content: flex-start;
    }
    .dash-topbar-actions {
        flex-wrap: wrap;
        gap: 0.35rem;
    }
    /* Hero başlık: okunabilir boyut */
    .hero-title {
        font-size: clamp(1.6rem, 7vw, 2.4rem);
        line-height: 1.2;
    }
    .hero-subtitle {
        font-size: clamp(0.85rem, 3.5vw, 1rem);
    }
}
