:root {
    --primary-blue: #1e3a8a; --secondary-blue: #3b82f6; --accent-blue: #60a5fa;
    --light-blue: #dbeafe; --pale-blue: #eff6ff; --dark-blue: #0f172a;
    --white: #ffffff; --off-white: #f8fafc; --gray: #64748b; --light-gray: #e2e8f0;
    --success: #10b981; --warning: #f59e0b; --danger: #ef4444;
    --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.05); --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1),0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1),0 4px 6px -2px rgba(0,0,0,0.05); --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1),0 10px 10px -5px rgba(0,0,0,0.04);
    --shadow-glow: 0 0 20px rgba(59,130,246,0.3); --radius-sm: 8px; --radius-md: 12px; --radius-lg: 16px; --radius-xl: 24px;
    --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI',system-ui,-apple-system,sans-serif; background: var(--off-white); color: var(--dark-blue); line-height: 1.6; overflow-x: hidden; }

.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #fff;
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.35);
    z-index: 9999;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-size: 1.9rem;
}
.whatsapp-float:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 18px 38px rgba(37, 211, 102, 0.45);
}
.whatsapp-float:focus-visible {
    outline: 3px solid var(--secondary-blue);
    outline-offset: 4px;
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 54px;
        height: 54px;
        right: 16px;
        bottom: 16px;
        font-size: 1.6rem;
    }
}

/* ===== IMPORTER LEARNING HUB ===== */
.learning-page { background: #f8fafc; color: #17233d; min-height: 70vh; }
.learning-page .section-container, .learning-editor-page .section-container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.learning-hero { position: relative; overflow: hidden; padding: 108px 0 76px; color: #fff; background: radial-gradient(circle at 78% 42%, rgba(90, 155, 255, .43), transparent 30%), linear-gradient(128deg, #102858, #17438f 58%, #2260b9); }
.learning-hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 48px; min-height: 340px; position: relative; }
.learning-breadcrumb { display: flex; align-items: center; gap: 10px; color: #8290a6; font-size: .88rem; margin-bottom: 30px; }
.learning-hero .learning-breadcrumb { grid-column: 1 / -1; margin-bottom: -34px; color: rgba(255,255,255,.72); }
.learning-breadcrumb a { color: inherit; text-decoration: none; }
.learning-breadcrumb a:hover { text-decoration: underline; }
.learning-hero-copy { max-width: 650px; position: relative; z-index: 1; }
.learning-eyebrow { color: #3a70c8; display: inline-flex; align-items: center; gap: 8px; font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.learning-hero .learning-eyebrow { color: #c9ddff; }
.learning-hero-copy h1 { font-size: clamp(2.8rem, 5.1vw, 4.6rem); line-height: 1.04; letter-spacing: -.055em; margin: 18px 0; max-width: 700px; }
.learning-hero-copy h1 span { color: #a9cbff; }
.learning-hero-copy > p { max-width: 570px; color: rgba(255,255,255,.78); font-size: 1.08rem; line-height: 1.75; margin: 0 0 27px; }
.learning-hero-copy .btn { color: #14366e; }
.learning-text-link { display: inline-flex; align-items: center; gap: 9px; color: #e1edff; margin: 18px 0 0 18px; text-decoration: none; font-weight: 650; font-size: .92rem; }
.learning-text-link:hover { color: white; }
.learning-hero-art { min-height: 300px; position: relative; display: grid; place-items: center; }
.learning-art-orbit { width: 275px; height: 275px; position: absolute; border: 1px solid rgba(255,255,255,.24); border-radius: 50%; box-shadow: 0 0 0 34px rgba(255,255,255,.035), 0 0 0 69px rgba(255,255,255,.025); }
.learning-art-box { width: 150px; height: 150px; border-radius: 40px; display: grid; place-items: center; color: white; font-size: 4.2rem; transform: rotate(-8deg); background: linear-gradient(145deg, #67a4ff, #2959a8); box-shadow: 0 28px 60px rgba(4,20,54,.4), inset 0 1px 0 rgba(255,255,255,.3); }
.learning-art-tag { position: absolute; display: inline-flex; align-items: center; gap: 8px; background: #fff; color: #183869; border-radius: 30px; padding: 11px 16px; font-size: .85rem; font-weight: 750; box-shadow: 0 12px 32px rgba(5,20,50,.22); }
.learning-art-tag-one { top: 40px; left: 6%; }
.learning-art-tag-two { right: 0; bottom: 38px; }
.learning-art-tag-two i { color: #22a477; }
.learning-list { padding-top: 70px; padding-bottom: 86px; }
.learning-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.learning-section-heading h2, .learning-steps-bottom h2 { margin: 9px 0 8px; font-size: clamp(1.8rem, 3vw, 2.5rem); letter-spacing: -.045em; color: #152544; }
.learning-section-heading p, .learning-steps-bottom p { color: #69778d; margin: 0; line-height: 1.65; }
.learning-section-heading .btn { flex: 0 0 auto; }
.learning-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.learning-card { overflow: hidden; background: white; border-radius: 18px; border: 1px solid #e8edf5; box-shadow: 0 8px 28px rgba(20,43,79,.045); transition: transform .22s ease, box-shadow .22s ease; }
.learning-card:hover { transform: translateY(-4px); box-shadow: 0 18px 42px rgba(20,43,79,.1); }
.learning-card-art { height: 164px; position: relative; display: grid; place-items: center; overflow: hidden; color: #fff; font-size: 3.4rem; background: linear-gradient(135deg, #387bd6, #1e4d9c); }
.learning-card-art::after { content: ""; position: absolute; width: 180px; height: 180px; border: 1px solid rgba(255,255,255,.24); border-radius: 50%; right: -32px; top: -76px; box-shadow: 0 0 0 23px rgba(255,255,255,.045), 0 0 0 47px rgba(255,255,255,.035); }
.learning-card-art-1 { background: linear-gradient(135deg, #26867e, #155c66); }
.learning-card-art-2 { background: linear-gradient(135deg, #bc7840, #82502e); }
.learning-card-category { position: absolute; left: 17px; bottom: 15px; z-index: 1; border: 1px solid rgba(255,255,255,.35); background: rgba(13,34,68,.25); backdrop-filter: blur(8px); padding: 5px 10px; border-radius: 20px; font-size: .73rem; letter-spacing: .04em; font-weight: 700; }
.learning-card-body { padding: 21px 22px 20px; }
.learning-card-meta { display: flex; justify-content: space-between; color: #8995a8; font-size: .77rem; }
.learning-draft-badge { color: #8b5b07; background: #fff3d6; padding: 3px 8px; border-radius: 20px; font-weight: 750; }
.learning-card h3 { margin: 12px 0 9px; font-size: 1.2rem; letter-spacing: -.025em; line-height: 1.35; }
.learning-card h3 a { color: #172746; text-decoration: none; }
.learning-card h3 a:hover { color: #2863b4; }
.learning-card-body > p { margin: 0; min-height: 72px; color: #65738a; font-size: .91rem; line-height: 1.65; }
.learning-card-footer { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #eef1f6; margin-top: 18px; padding-top: 15px; }
.learning-read-link, .learning-edit-link { text-decoration: none; font-size: .88rem; font-weight: 750; color: #2863b4; }
.learning-read-link i, .learning-sidebar-how i { margin-left: 5px; transition: transform .2s ease; }
.learning-read-link:hover i, .learning-sidebar-how:hover i { transform: translateX(3px); }
.learning-edit-link { color: #69778d; }
.learning-empty { text-align: center; padding: 65px 20px; border: 1px dashed #ccd6e4; border-radius: 18px; color: #69778d; }
.learning-empty > i { color: #387bd6; font-size: 2rem; }
.learning-empty h3 { color: #172746; margin: 13px 0 5px; }
.learning-empty p { margin: 0; }
.learning-cta { margin-top: 66px; padding: 30px 34px; display: flex; align-items: center; gap: 22px; background: #edf4ff; border: 1px solid #dce9fc; border-radius: 20px; }
.learning-cta-icon { flex: 0 0 58px; width: 58px; height: 58px; display: grid; place-items: center; background: #d8e8ff; border-radius: 17px; color: #2a64b5; font-size: 1.4rem; }
.learning-cta > div:nth-child(2) { flex: 1; }
.learning-cta h2 { color: #172746; font-size: 1.35rem; margin: 5px 0; }
.learning-cta p { color: #69778d; margin: 0; font-size: .92rem; }
.learning-cta .btn, .learning-steps-bottom .btn, .learning-editor-actions .btn { flex: 0 0 auto; }
.btn-blue { background: linear-gradient(135deg, #1e3a8a, #3b82f6); color: white; box-shadow: 0 8px 20px rgba(30,58,138,.16); }
.learning-page .btn-blue:hover, .learning-editor-page .btn-blue:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(30,58,138,.22); }
.learning-flashes { margin-bottom: 22px; }
.learning-flash { border-radius: 10px; padding: 12px 15px; margin: 8px 0; }
.learning-flash-success { background: #e4f7ee; border: 1px solid #bce9d0; color: #166344; }
.learning-flash-error { background: #fff0ee; border: 1px solid #ffd2cb; color: #a63526; }

/* Article detail and owner editor */
.learning-article-hero { background: linear-gradient(135deg, #eef4fc, #f9fbff); padding: 96px 0 54px; border-bottom: 1px solid #e5ebf4; }
.learning-article-hero .learning-breadcrumb { margin-bottom: 32px; }
.learning-article-heading { max-width: 820px; margin: 0 auto; text-align: center; }
.learning-article-heading h1 { color: #152544; margin: 14px 0; font-size: clamp(2.3rem, 5vw, 3.8rem); line-height: 1.1; letter-spacing: -.05em; }
.learning-article-heading > p { color: #65738a; font-size: 1.08rem; line-height: 1.7; }
.learning-article-date { display: block; color: #8995a8; margin-top: 22px; font-size: .87rem; }
.learning-article { display: grid; grid-template-columns: minmax(0, 760px) 270px; justify-content: center; gap: 60px; padding-top: 55px; padding-bottom: 85px; }
.learning-article-content { min-width: 0; }
.learning-article-content > p { color: #39485f; font-size: 1.08rem; line-height: 1.9; margin: 0 0 1.45em; white-space: pre-line; }
.learning-article-end { display: flex; align-items: flex-start; gap: 15px; padding: 18px; margin-top: 35px; background: #edf4ff; border-radius: 14px; color: #2c5c9f; }
.learning-article-end > i { margin-top: 4px; font-size: 1.2rem; }
.learning-article-end p { margin: 0; line-height: 1.7; color: #435a7a; }
.learning-article-end a { color: #245ba9; font-weight: 700; }
.learning-article-sidebar { align-self: start; position: sticky; top: 100px; border: 1px solid #e4eaf3; background: white; border-radius: 16px; padding: 23px; }
.learning-article-sidebar h2 { color: #172746; font-size: 1.23rem; line-height: 1.35; margin: 10px 0; }
.learning-article-sidebar p { color: #69778d; font-size: .9rem; line-height: 1.65; margin: 0 0 18px; }
.learning-sidebar-how { display: block; border-top: 1px solid #edf0f5; margin-top: 17px; padding-top: 15px; color: #53647c; font-size: .87rem; font-weight: 700; text-decoration: none; }
.learning-article-admin { display: flex; gap: 10px; border-top: 1px solid #e8edf5; margin-top: 28px; padding-top: 20px; }
.learning-article-admin form { margin: 0; }
.learning-article-admin .btn { padding: .65rem 1rem; }
.learning-editor-page { min-height: 75vh; padding: 96px 0 78px; background: #f7f9fc; }
.learning-editor-wrap { max-width: 880px !important; }
.learning-editor-heading { margin: 25px 0 28px; }
.learning-editor-heading h1 { color: #172746; font-size: 2.4rem; margin: 9px 0; letter-spacing: -.045em; }
.learning-editor-heading p { color: #69778d; margin: 0; }
.learning-editor-form { padding: 30px; background: #fff; border: 1px solid #e5ebf3; border-radius: 18px; box-shadow: 0 8px 26px rgba(20,43,79,.045); }
.learning-editor-form .form-group { margin-bottom: 20px; }
.learning-editor-form .form-group label { color: #26364f; }
.learning-editor-form .form-group label span, .learning-editor-form small { color: #8290a4; font-weight: 400; }
.learning-editor-form .form-group input, .learning-editor-form .form-group textarea { background: #fbfcfe; border: 1px solid #dce3ed; padding: 13px 14px; font-size: .96rem; }
.learning-editor-form .form-group textarea { line-height: 1.65; }
.learning-content-input { min-height: 300px !important; }
.learning-editor-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.learning-publish-choice { display: flex; align-items: flex-start; gap: 12px; padding: 16px; background: #f4f8fe; border-radius: 12px; cursor: pointer; }
.learning-publish-choice input { width: 18px; height: 18px; margin-top: 3px; accent-color: #2863b4; }
.learning-publish-choice span, .learning-publish-choice small { display: block; }
.learning-publish-choice strong { color: #26364f; font-size: .93rem; }
.learning-publish-choice small { margin-top: 3px; color: #77859a; line-height: 1.5; }
.learning-editor-actions { display: flex; gap: 12px; align-items: center; border-top: 1px solid #edf0f5; padding-top: 22px; margin-top: 22px; }
.learning-cancel-btn { color: #56657a; text-decoration: none; padding: .9rem 1.2rem; }

/* How it works */
.learning-how-hero .learning-hero-inner { min-height: 370px; }
.learning-route-line { position: absolute; width: 290px; height: 160px; border-top: 3px dashed rgba(255,255,255,.58); border-radius: 50%; transform: rotate(-22deg); }
.learning-route-stop { position: absolute; display: grid; place-items: center; width: 68px; height: 68px; color: #fff; background: linear-gradient(145deg, #6daaff, #2b5ca8); border: 1px solid rgba(255,255,255,.38); border-radius: 22px; font-size: 1.6rem; box-shadow: 0 15px 30px rgba(4,20,54,.27); }
.learning-route-stop-one { left: 14%; top: 33%; transform: rotate(-10deg); }
.learning-route-stop-two { right: 34%; top: 8%; transform: rotate(8deg); background: linear-gradient(145deg, #f2b957, #c87932); }
.learning-route-stop-three { right: 8%; bottom: 22%; transform: rotate(9deg); background: linear-gradient(145deg, #4bc59b, #21856e); }
.learning-route-caption { position: absolute; bottom: 7%; color: rgba(255,255,255,.73); letter-spacing: .2em; font-weight: 750; font-size: .73rem; }
.learning-steps-section { padding-top: 72px; padding-bottom: 85px; }
.learning-steps-heading { margin-bottom: 38px; }
.learning-steps { max-width: 930px; margin: 0 auto; }
.learning-step { display: grid; grid-template-columns: 140px 1fr; gap: 27px; position: relative; padding-bottom: 30px; }
.learning-step:not(:last-child)::after { content: ""; position: absolute; top: 104px; bottom: -1px; left: 69px; width: 2px; background: #dbe4f1; }
.learning-step-visual { height: 115px; position: relative; display: grid; place-items: center; border-radius: 20px; color: #fff; font-size: 2.35rem; box-shadow: 0 12px 25px rgba(23,52,98,.13); }
.learning-step-blue { background: linear-gradient(145deg, #4f91e8, #2458a7); }
.learning-step-gold { background: linear-gradient(145deg, #e8b64d, #b77b2d); }
.learning-step-green { background: linear-gradient(145deg, #45b995, #23836e); }
.learning-step-violet { background: linear-gradient(145deg, #9877dc, #6149ad); }
.learning-step-coral { background: linear-gradient(145deg, #ed8971, #c75554); }
.learning-step-number { position: absolute; top: 9px; left: 12px; color: rgba(255,255,255,.73); font-size: .69rem; font-weight: 800; letter-spacing: .09em; }
.learning-step-copy { padding: 9px 0 22px; }
.learning-step-kicker { color: #3a70c8; font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; }
.learning-step-copy h3 { color: #172746; font-size: 1.4rem; letter-spacing: -.025em; margin: 7px 0; }
.learning-step-copy p { max-width: 680px; color: #69778d; line-height: 1.7; margin: 0 0 10px; }
.learning-step-copy a { color: #2863b4; font-weight: 700; font-size: .87rem; text-decoration: none; }
.learning-step-copy a i { margin-left: 4px; }
.learning-step-copy a:hover { text-decoration: underline; }
.learning-steps-bottom { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin: 25px auto 0; padding: 28px 32px; max-width: 930px; border: 1px solid #dce9fc; background: #edf4ff; border-radius: 18px; }
.learning-steps-bottom h2 { font-size: 1.45rem; }
.learning-steps-bottom p { font-size: .91rem; }

@media (max-width: 900px) {
    .learning-hero-inner { grid-template-columns: 1fr .75fr; gap: 22px; }
    .learning-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .learning-article { grid-template-columns: minmax(0, 1fr); gap: 30px; max-width: 820px; }
    .learning-article-sidebar { position: static; }
}
@media (max-width: 640px) {
    .learning-page .section-container, .learning-editor-page .section-container { width: min(100% - 30px, 1180px); }
    .learning-hero { padding: 92px 0 45px; }
    .learning-hero-inner { display: block; }
    .learning-hero .learning-breadcrumb { margin-bottom: 36px; }
    .learning-hero-copy h1 { font-size: 2.65rem; }
    .learning-hero-copy > p { font-size: 1rem; }
    .learning-hero-art { display: none; }
    .learning-text-link { margin-left: 0; display: flex; }
    .learning-list, .learning-steps-section { padding-top: 48px; padding-bottom: 55px; }
    .learning-section-heading { align-items: flex-start; flex-direction: column; }
    .learning-grid { grid-template-columns: 1fr; gap: 15px; }
    .learning-card-art { height: 145px; }
    .learning-card-body > p { min-height: 0; }
    .learning-cta, .learning-steps-bottom { align-items: flex-start; flex-direction: column; padding: 23px; }
    .learning-cta .btn, .learning-steps-bottom .btn { width: 100%; justify-content: center; }
    .learning-article-hero { padding: 88px 0 40px; }
    .learning-article-heading h1 { font-size: 2.25rem; }
    .learning-article { padding-top: 35px; padding-bottom: 55px; }
    .learning-article-content > p { font-size: 1rem; }
    .learning-editor-page { padding: 86px 0 55px; }
    .learning-editor-form { padding: 20px 16px; }
    .learning-editor-row { grid-template-columns: 1fr; gap: 0; }
    .learning-editor-heading h1 { font-size: 2rem; }
    .learning-step { grid-template-columns: 76px 1fr; gap: 17px; padding-bottom: 20px; }
    .learning-step-visual { height: 76px; border-radius: 17px; font-size: 1.55rem; }
    .learning-step-number { top: 5px; left: 7px; font-size: .58rem; }
    .learning-step:not(:last-child)::after { top: 72px; left: 37px; }
    .learning-step-copy { padding-top: 0; }
    .learning-step-copy h3 { font-size: 1.18rem; }
    .learning-step-copy p { font-size: .91rem; }
}

/* ===== ACCESSIBILITY - SKIP LINK ===== */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--dark-blue);
    color: white;
    padding: 8px 16px;
    z-index: 10000;
    text-decoration: none;
    font-weight: 600;
    border-radius: 0 0 var(--radius-md) 0;
}
.skip-link:focus {
    top: 0;
    outline: 3px solid var(--secondary-blue);
    outline-offset: 2px;
}

/* ===== ACCESSIBILITY - FOCUS STATES ===== */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 3px solid var(--secondary-blue);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== ACCESSIBILITY - SCREEN READER ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== ACCESSIBILITY - reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes float { 0%,100% { transform: translateY(0px); } 50% { transform: translateY(-20px); } }
@keyframes gradientShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes slideIn { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: translateX(0); } }

.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* ===== NAVBAR ===== */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: #eef2fa; border: none; border-radius: 0; box-shadow: 0 2px 12px rgba(15, 35, 76, 0.06); transition: var(--transition); padding: 0 2%; }
.navbar.scrolled { background: #eef2fa; box-shadow: 0 3px 14px rgba(15, 35, 76, 0.1); }
.nav-container { max-width: 1845px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; height: 65px; min-width: 0; }
.top-live-rates { display: flex; align-items: center; gap: 1.1rem; margin-left: auto; margin-right: 1.7rem; white-space: nowrap; color: #1d438d; font-size: 0.95rem; font-weight: 500; }
.top-live-rates span { display: inline-flex; align-items: center; gap: 0.2rem; }
.top-live-rates strong { font-size: 1rem; color: #173a80; }
.logo { display: flex; align-items: center; gap: 18px; font-size: 1.5rem; font-weight: 800; color: #1f4084; text-decoration: none; letter-spacing: -0.5px; }
.logo-icon { width: 34px; height: 34px; background: linear-gradient(135deg, #2854a3, #347fed); border: none; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: white; font-size: 0.85rem; box-shadow: none; }
.nav-links { display: flex; gap: 1.35rem; list-style: none; align-items: center; }
.nav-links a { text-decoration: none; color: #162038; font-weight: 600; font-size: 1rem; position: relative; padding: 0.5rem 0; transition: var(--transition); }
.nav-links a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: linear-gradient(90deg, var(--secondary-blue), var(--accent-blue)); transition: var(--transition); border-radius: 2px; }
.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: #347fed; }
.nav-cta { background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue)); color: white !important; padding: 0.6rem 1.2rem !important; border-radius: var(--radius-md); box-shadow: var(--shadow-md); transition: var(--transition); }
.nav-cta:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg), var(--shadow-glow); }
.nav-cta::after { display: none !important; }
.user-menu { display: flex; align-items: center; gap: 0.8rem; }
.user-avatar { width: 30px; height: 30px; background: linear-gradient(135deg, #347fed, #4d91f2); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; font-size: 0.78rem; cursor: pointer; overflow: hidden; }
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-name { font-size: 0.95rem; font-weight: 600; color: #162038; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.logout-btn { background: transparent; border: 1px solid #d9e0ed; padding: 0.55rem 0.85rem; border-radius: 12px; color: #64748b; cursor: pointer; font-size: 0.9rem; transition: var(--transition); }
.logout-btn:hover { background: var(--danger); color: white; border-color: var(--danger); }
.mobile-menu-btn { display: none; background: #347fed; border: none; border-radius: 12px; width: 42px; height: 42px; font-size: 1.5rem; color: white; cursor: pointer; }
@media (max-width: 1100px) { .top-live-rates { display: none; } }
@media (min-width: 1101px) and (max-width: 1400px) {
    .navbar { padding: 0 2%; }
    .nav-links { gap: 0.75rem; }
    .nav-links a { font-size: 0.8rem; }
    .user-menu { gap: 0.45rem; }
    .user-name { max-width: 72px; }
    .logout-btn { padding: 0.35rem 0.55rem; }
}

/* ===== HERO ===== */
.hero { min-height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden; background-image: linear-gradient(135deg, rgba(15, 55, 145, 0.9), rgba(59, 130, 246, 0.78)), url('/static/uploads/wait-get-background.png'); background-size: cover; background-position: center; background-repeat: no-repeat; }
.hero::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(90deg, rgba(15, 23, 42, 0.28), transparent 60%); opacity: 0.55; pointer-events: none; }
.hero-particles { position: absolute; width: 100%; height: 100%; overflow: hidden; }
.particle { position: absolute; background: rgba(255,255,255,0.1); border-radius: 50%; animation: float 6s ease-in-out infinite; }
.hero-content { max-width: 1400px; margin: 0 auto; padding: 0 5%; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; position: relative; z-index: 2; }
.hero-text { animation: fadeInUp 1s ease; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(255,255,255,0.15); backdrop-filter: blur(10px); padding: 0.5rem 1rem; border-radius: 50px; color: white; font-size: 0.9rem; margin-bottom: 1.5rem; border: 1px solid rgba(255,255,255,0.2); }
.hero-title { font-size: 3.5rem; font-weight: 800; color: white; line-height: 1.1; margin-bottom: 1.5rem; letter-spacing: -1px; }
.hero-title span { background: linear-gradient(135deg, #ffffff, var(--light-blue)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-subtitle { font-size: 1.2rem; color: rgba(255,255,255,0.85); margin-bottom: 2rem; max-width: 500px; line-height: 1.7; }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn { padding: 1rem 2rem; border-radius: var(--radius-md); font-weight: 600; font-size: 1rem; cursor: pointer; transition: var(--transition); text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem; border: none; outline: none; }
.btn-primary { background: white; color: var(--primary-blue); box-shadow: var(--shadow-lg); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--shadow-xl); }
.btn-outline { background: transparent; color: white; border: 2px solid rgba(255,255,255,0.5); }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: white; transform: translateY(-3px); }
.btn-blue { background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue)); color: white; box-shadow: var(--shadow-lg); }
.btn-blue:hover { transform: translateY(-3px); box-shadow: var(--shadow-xl), var(--shadow-glow); }
.btn-full { width: 100%; justify-content: center; }
.btn-green { background: linear-gradient(135deg, var(--success), #34d399); color: white; box-shadow: var(--shadow-lg); }
.btn-green:hover { transform: translateY(-3px); box-shadow: var(--shadow-xl); }
.btn-red { background: linear-gradient(135deg, var(--danger), #f87171); color: white; }
.btn-sm { padding: 0.6rem 1.2rem; font-size: 0.9rem; }
.hero-visual { position: relative; animation: fadeIn 1.2s ease 0.3s both; }
.hero-card { background: rgba(255,255,255,0.1); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.2); border-radius: var(--radius-xl); padding: 2rem; color: white; box-shadow: var(--shadow-xl); }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.5rem; }
.mini-stat { text-align: center; padding: 0.8rem; background: rgba(255,255,255,0.05); border-radius: var(--radius-md); }
.mini-stat-value { font-size: 1.3rem; font-weight: 700; }
.mini-stat-label { font-size: 0.75rem; opacity: 0.7; margin-top: 0.2rem; }

.rates-showcase { background: #f4f3f1; padding: 6rem 0 4rem; }
.rates-showcase-inner { max-width: 1200px; margin: 0 auto; }
.rates-section-label { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.2em; color: var(--primary-blue); text-transform: uppercase; margin-bottom: 1rem; }
.rates-section-title { font-size: clamp(2.5rem, 4vw, 5rem); line-height: 1.02; letter-spacing: -0.06em; font-weight: 800; color: #1d2433; margin-bottom: 2rem; }
.rates-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2rem; }
.rates-panel { background: rgba(255,255,255,0.96); border: 1px solid rgba(30,58,138,0.08); border-radius: 28px; padding: 2rem 1.75rem; box-shadow: 0 10px 20px rgba(15, 23, 42, 0.04); }
.exchange-panel { min-height: 320px; }
.rates-panel-label { color: var(--primary-blue); font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 800; margin-bottom: 1.5rem; }
.rate-line { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid rgba(148,163,184,0.35); font-size: 1.1rem; color: #1d2433; }
.rate-line:last-child { border-bottom: none; }
.rate-line strong { font-size: 1.1rem; color: var(--primary-blue); }
.rates-panel-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 0.75rem; }
.rate-nav { display: flex; align-items: center; gap: 0.5rem; }
.rate-nav button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(30,58,138,0.12); background: #ffffff; color: var(--primary-blue); font-size: 1.5rem; line-height: 1; cursor: pointer; transition: var(--transition); }
.rate-nav button:hover { background: var(--primary-blue); color: #ffffff; transform: translateY(-1px); }
.shipping-region { display: flex; align-items: center; gap: 0.55rem; font-size: 1.2rem; font-weight: 800; color: #0f172a; margin: 0 0 1.25rem; }
.shipping-region-flag { display: inline-block; width: 28px; height: 19px; border-radius: 3px; overflow: hidden; position: relative; flex: 0 0 auto; box-shadow: 0 1px 3px rgba(15,23,42,0.25); }
.shipping-region-flag.uploaded-flag {
    width: 28px;
    height: 19px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(15,23,42,0.25);
    background: #ffffff;
}
.flag-china { background: #de2910; }
.flag-china::before { content: '\2605'; position: absolute; top: -5px; left: 4px; color: #ffde00; font-size: 13px; }
.flag-europe { background: #164194; }
.flag-europe::before { content: '\2022  \2022  \2022'; position: absolute; top: 1px; left: 4px; color: #ffcc00; font-size: 7px; letter-spacing: 1px; transform: rotate(10deg); }
.flag-nigeria { background: linear-gradient(90deg, #008751 0 33.33%, #ffffff 33.33% 66.66%, #008751 66.66%); }
.flag-united-states { background: repeating-linear-gradient(to bottom, #b22234 0 1.45px, #ffffff 1.45px 2.9px); }
.flag-united-states::before { content: '\2605'; position: absolute; inset: 0 auto auto 0; width: 12px; height: 10px; color: #ffffff; background: #3c3b6e; font-size: 6px; line-height: 9px; text-align: center; }
.shipping-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.2rem 0; border-bottom: 1px solid rgba(148,163,184,0.35); }
.shipping-main { display: flex; align-items: center; gap: 0.9rem; min-width: 0; }
.shipping-icon { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: rgba(30,58,138,0.08); color: var(--primary-blue); font-size: 1.1rem; }
.shipping-icon.sensitive { background: rgba(59,130,246,0.12); }
.shipping-icon.sea { background: rgba(96,165,250,0.12); color: var(--secondary-blue); }
.shipping-name { font-weight: 700; color: #111827; }
.shipping-time { font-size: 0.82rem; color: #64748b; }
.shipping-costs { display: flex; gap: 1.5rem; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.shipping-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 0.15rem; }
.shipping-meta span { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: #64748b; font-weight: 700; }
.shipping-meta strong { font-size: 1rem; color: #0f172a; }
.shipping-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.25rem; }
.shipping-dots span { display: block; width: 8px; height: 8px; border-radius: 50%; background: rgba(30,58,138,0.2); }
.shipping-dots span.active { background: var(--primary-blue); }
.parcel-item-row .form-group label { display: block; margin-bottom: 0.35rem; font-size: 0.78rem; }
.procurement-item-row .form-group label { display: block; margin-bottom: 0.35rem; font-size: 0.78rem; }

@media (max-width: 760px) {
    .parcel-item-row { grid-template-columns: 1fr 1fr !important; }
    .parcel-item-row button { width: 100%; }
    .procurement-item-row { grid-template-columns: 1fr 1fr !important; }
    .procurement-item-row button { width: 100%; }
}

@media (max-width: 900px) {
    .rates-grid { grid-template-columns: 1fr; }
    .shipping-row { flex-direction: column; align-items: flex-start; }
    .shipping-costs { width: 100%; justify-content: space-between; }
}

@media (max-width: 900px) {
    .rates-grid { grid-template-columns: 1fr; }
    .shipping-row { flex-direction: column; align-items: flex-start; }
    .shipping-costs { width: 100%; justify-content: space-between; }
}

/* ===== AUTH ===== */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue)); padding: 2rem; }
.auth-container { background: white; border-radius: var(--radius-xl); padding: 3rem; width: 100%; max-width: 480px; box-shadow: var(--shadow-xl); animation: fadeInUp 0.6s ease; }
.auth-logo { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 1.8rem; font-weight: 800; color: var(--primary-blue); margin-bottom: 2rem; }
.auth-logo .logo-icon { width: 50px; height: 50px; font-size: 1.5rem; }
.auth-title { text-align: center; font-size: 1.5rem; font-weight: 700; color: var(--dark-blue); margin-bottom: 0.5rem; }
.auth-subtitle { text-align: center; color: var(--gray); font-size: 0.95rem; margin-bottom: 2rem; }
.google-btn { width: 100%; padding: 1rem; background: white; color: var(--dark-blue); border: 2px solid var(--light-gray); border-radius: var(--radius-md); font-size: 1rem; font-weight: 600; cursor: pointer; transition: var(--transition); display: flex; align-items: center; justify-content: center; gap: 0.8rem; text-decoration: none; margin-bottom: 1.5rem; }
.google-btn:hover { border-color: var(--secondary-blue); background: var(--pale-blue); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.google-btn img { width: 20px; height: 20px; }
.divider { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; color: var(--gray); font-size: 0.85rem; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--light-gray); }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-size: 0.9rem; font-weight: 600; color: var(--dark-blue); margin-bottom: 0.5rem; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 1rem; border: 2px solid var(--light-gray); border-radius: var(--radius-md); font-size: 1rem; outline: none; transition: var(--transition); background: var(--off-white); font-family: inherit; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--secondary-blue); box-shadow: 0 0 0 4px rgba(59,130,246,0.1); background: white; }
.form-group input::placeholder { color: var(--gray); }
.form-group textarea { resize: vertical; min-height: 100px; }
.auth-btn { width: 100%; padding: 1rem; background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue)); color: white; border: none; border-radius: var(--radius-lg); font-size: 1.1rem; font-weight: 700; cursor: pointer; transition: var(--transition); display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.auth-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg), var(--shadow-glow); }
.auth-btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }
.auth-footer { text-align: center; margin-top: 1.5rem; color: var(--gray); font-size: 0.95rem; }
.auth-footer a { color: var(--secondary-blue); font-weight: 600; text-decoration: none; }
.auth-footer a:hover { text-decoration: underline; }
.alert { padding: 1rem; border-radius: var(--radius-md); margin-bottom: 1.5rem; font-size: 0.95rem; display: none; }
.alert.active { display: block; animation: slideIn 0.3s ease; }
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert-info { background: var(--pale-blue); color: var(--primary-blue); border: 1px solid var(--light-blue); }

/* ===== INPUT WITH ICONS ===== */
.input-wrapper { position: relative; }
.input-wrapper input { padding-right: 2.5rem; }
.input-icon { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); color: var(--gray); pointer-events: none; transition: var(--transition); }
.input-wrapper input:focus ~ .input-icon { color: var(--secondary-blue); }

/* ===== PASSWORD TOGGLE ===== */
.password-toggle { position: absolute; right: 0.5rem; top: 50%; transform: translateY(-50%); background: none; border: none; padding: 0.5rem; cursor: pointer; color: var(--gray); transition: var(--transition); }
.password-toggle:hover { color: var(--secondary-blue); transform: translateY(-50%) scale(1.1); }
.password-toggle i { font-size: 1.1rem; }

/* ===== FORM OPTIONS ===== */
.form-options { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 0.5rem; }
.form-options .remember-me { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; font-size: 0.9rem; color: var(--gray); }
.form-options .remember-me input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--secondary-blue); cursor: pointer; }
.form-options .forgot-password { color: var(--secondary-blue); text-decoration: none; font-size: 0.9rem; font-weight: 600; transition: var(--transition); }
.form-options .forgot-password:hover { text-decoration: underline; }

/* ===== PASSWORD STRENGTH ===== */
.password-strength { margin-top: 0.5rem; }
.strength-bar-container { height: 4px; background: var(--light-gray); border-radius: 2px; overflow: hidden; margin-bottom: 0.25rem; }
.strength-bar { height: 100%; width: 0%; transition: all 0.3s ease; border-radius: 2px; }
.strength-text { font-size: 0.8rem; font-weight: 600; }
.strength-text.weak { color: var(--danger); }
.strength-text.medium { color: var(--warning); }
.strength-text.strong { color: var(--success); }

/* ===== AUTH HEADER ===== */
.auth-header { text-align: center; margin-bottom: 2rem; }
.auth-header .auth-logo { margin-bottom: 1rem; }
.auth-header .auth-title { font-size: 2rem; font-weight: 800; color: var(--dark-blue); }
.auth-header .auth-subtitle { color: var(--gray); }

/* ===== AUTH TRUST INDICATORS ===== */
.auth-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--light-gray); }
.trust-item { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; color: var(--gray); font-size: 0.85rem; transition: var(--transition); }
.trust-item:hover { color: var(--primary-blue); }
.trust-item i { font-size: 1.2rem; color: var(--secondary-blue); }
.trust-item span { line-height: 1.4; }

/* ===== SECURITY NOTE ===== */
.auth-security-note { display: flex; align-items: center; gap: 0.75rem; background: var(--pale-blue); padding: 1rem; border-radius: var(--radius-md); margin-top: 2rem; color: var(--primary-blue); font-size: 0.9rem; }
.auth-security-note i { font-size: 1.3rem; }
.auth-security-note p { margin: 0; }

/* ===== RESET PASSWORD CONTAINER ===== */
.reset-password-container { max-width: 500px; margin: 0 auto; }

/* ===== TERM LABEL ===== */
.terms-label { display: flex; align-items: flex-start; gap: 0.75rem; cursor: pointer; font-size: 0.9rem; color: var(--gray); line-height: 1.5; }
.terms-label input[type="checkbox"] { width: 18px; height: 18px; margin-top: 0.15rem; accent-color: var(--secondary-blue); cursor: pointer; }
.terms-label a { color: var(--secondary-blue); text-decoration: none; }
.terms-label a:hover { text-decoration: underline; }

/* ===== RESPONSIVE AUTH ===== */
@media (max-width: 600px) {
    .auth-container { padding: 2rem; }
    .auth-header .auth-title { font-size: 1.6rem; }
    .auth-trust { grid-template-columns: 1fr; }
    .google-btn { padding: 0.9rem; font-size: 0.95rem; }
}

/* ===== ORDER PAGE ===== */
.order-page { padding-top: 100px; min-height: 100vh; background: var(--off-white); padding-bottom: 4rem; }
.order-container { max-width: 900px; margin: 0 auto; padding: 0 2rem; }
.order-header { text-align: center; margin-bottom: 3rem; }
.order-header h1 { font-size: 2.5rem; font-weight: 800; color: var(--dark-blue); margin-bottom: 0.5rem; }
.order-header p { color: var(--gray); font-size: 1.1rem; }
.order-card { background: white; border-radius: var(--radius-xl); padding: 3rem; box-shadow: var(--shadow-lg); border: 1px solid var(--light-gray); }
.order-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.order-form .full-width { grid-column: 1 / -1; }
.parcel-upload-section { grid-column: 1 / -1; text-align: center; padding: 2rem; background: linear-gradient(135deg, var(--pale-blue), var(--light-blue)); border-radius: var(--radius-lg); border: 2px dashed var(--secondary-blue); }
.parcel-upload-section h3 { color: var(--primary-blue); margin-bottom: 1rem; font-size: 1.1rem; }
.parcel-upload-circle { width: 200px; height: 200px; border-radius: 50%; background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue)); display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; position: relative; cursor: pointer; transition: var(--transition); border: 4px dashed var(--accent-blue); overflow: hidden; }
.parcel-upload-circle:hover { transform: scale(1.05); box-shadow: var(--shadow-glow); }
.parcel-upload-circle img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.parcel-upload-circle .upload-icon { font-size: 3.5rem; color: white; }
.parcel-upload-circle .upload-text { position: absolute; bottom: 30px; font-size: 0.8rem; color: white; font-weight: 600; }
.parcel-upload-circle.has-image { border: 4px solid white; }
.parcel-upload-input { display: none; }

/* ===== EXCHANGE PAGE ===== */
.exchange-page { padding-top: 100px; min-height: 100vh; background: var(--off-white); padding-bottom: 4rem; }
.exchange-container { max-width: 800px; margin: 0 auto; padding: 0 2rem; }
.exchange-card { background: white; border-radius: var(--radius-xl); padding: 3rem; box-shadow: var(--shadow-lg); border: 1px solid var(--light-gray); text-align: center; }
.exchange-flag { font-size: 3rem; margin-bottom: 0.5rem; }
.exchange-input-group { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: center; margin: 2rem 0; }
.exchange-arrow { font-size: 1.5rem; color: var(--secondary-blue); }
.rate-display { background: var(--pale-blue); padding: 1rem; border-radius: var(--radius-md); margin-bottom: 2rem; }
.rate-display .rate { font-size: 1.5rem; font-weight: 700; color: var(--primary-blue); }
.rate-display .label { color: var(--gray); font-size: 0.9rem; }

/* ===== PROCUREMENT ===== */
.procurement-page { padding-top: 100px; min-height: 100vh; background: var(--off-white); padding-bottom: 4rem; }

/* ===== DASHBOARD ===== */
.dashboard-page { padding-top: 100px; min-height: 100vh; background: var(--off-white); padding-bottom: 4rem; }
.dashboard-container { max-width: 1400px; margin: 0 auto; padding: 0 2rem; }
.dashboard-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem; }
.dashboard-header h1 { font-size: 2rem; font-weight: 800; color: var(--dark-blue); }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-bottom: 2rem; }
.stat-box { background: white; border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-md); border: 1px solid var(--light-gray); text-align: center; }
.stat-box .icon { width: 50px; height: 50px; background: var(--pale-blue); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; color: var(--secondary-blue); font-size: 1.3rem; }
.stat-box .number { font-size: 2rem; font-weight: 800; color: var(--primary-blue); line-height: 1; }
.stat-box .label { font-size: 0.85rem; color: var(--gray); margin-top: 0.5rem; }
.table-container { background: white; border-radius: var(--radius-xl); padding: 2rem; box-shadow: var(--shadow-md); border: 1px solid var(--light-gray); overflow-x: auto; margin-bottom: 2rem; }
.table-container h2 { font-size: 1.3rem; font-weight: 700; color: var(--dark-blue); margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.5rem; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { text-align: left; padding: 1rem; font-size: 0.8rem; font-weight: 600; color: var(--gray); text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 2px solid var(--light-gray); }
.data-table td { padding: 1rem; font-size: 0.9rem; border-bottom: 1px solid var(--light-gray); vertical-align: middle; }
.data-table tr:hover { background: var(--pale-blue); }
.status-badge { padding: 0.3rem 0.8rem; border-radius: 50px; font-size: 0.75rem; font-weight: 600; display: inline-block; }
.status-pending { background: #fef3c7; color: #92400e; }
.status-priced { background: var(--light-blue); color: var(--primary-blue); }
.status-processing { background: #dbeafe; color: #1e40af; }
.status-shipped { background: #c7d2fe; color: #3730a3; }
.status-delivered { background: #d1fae5; color: #065f46; }
.status-cancelled { background: #fee2e2; color: #991b1b; }
.call-btn { padding: 0.5rem 1rem; background: linear-gradient(135deg, var(--success), #34d399); color: white; border: none; border-radius: var(--radius-sm); font-size: 0.85rem; cursor: pointer; transition: var(--transition); display: inline-flex; align-items: center; gap: 0.3rem; text-decoration: none; }
.call-btn:hover { transform: scale(1.05); box-shadow: var(--shadow-md); }
.price-btn { padding: 0.5rem 1rem; background: linear-gradient(135deg, var(--warning), #fbbf24); color: white; border: none; border-radius: var(--radius-sm); font-size: 0.85rem; cursor: pointer; transition: var(--transition); }
.price-btn:hover { transform: scale(1.05); }
.img-thumb { width: 50px; height: 50px; border-radius: var(--radius-sm); object-fit: cover; border: 2px solid var(--light-gray); cursor: pointer; transition: var(--transition); }
.img-thumb:hover { transform: scale(2); z-index: 100; box-shadow: var(--shadow-xl); }
.select-status { padding: 0.4rem 0.8rem; border: 1px solid var(--light-gray); border-radius: var(--radius-sm); font-size: 0.85rem; outline: none; cursor: pointer; }
.price-input { padding: 0.5rem; border: 1px solid var(--light-gray); border-radius: var(--radius-sm); font-size: 0.9rem; width: 100px; }

/* ===== MY ORDERS ===== */
.my-orders-page { padding-top: 100px; min-height: 100vh; background: var(--off-white); padding-bottom: 4rem; }
.my-orders-container { max-width: 1000px; margin: 0 auto; padding: 0 2rem; }
.orders-grid { display: grid; gap: 1.5rem; margin-top: 2rem; }
.order-card { background: white; border-radius: var(--radius-xl); padding: 2rem; box-shadow: var(--shadow-md); border: 1px solid var(--light-gray); transition: var(--transition); }
.order-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.order-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--light-gray); flex-wrap: wrap; gap: 1rem; }
.order-card-title { font-size: 1.1rem; font-weight: 700; color: var(--dark-blue); }
.order-card-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.order-card-meta-item { text-align: center; padding: 1rem; background: var(--off-white); border-radius: var(--radius-md); }
.order-card-meta-item .label { font-size: 0.75rem; color: var(--gray); margin-bottom: 0.3rem; }
.order-card-meta-item .value { font-size: 1.1rem; font-weight: 700; color: var(--primary-blue); }
.order-card-image { width: 100%; max-height: 200px; object-fit: cover; border-radius: var(--radius-md); margin-top: 1rem; }
.empty-state { text-align: center; padding: 4rem 2rem; }
.empty-state-icon { width: 80px; height: 80px; background: var(--pale-blue); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; color: var(--secondary-blue); font-size: 2rem; }
.empty-state h3 { font-size: 1.3rem; color: var(--dark-blue); margin-bottom: 0.5rem; }
.empty-state p { color: var(--gray); margin-bottom: 1.5rem; }

/* ===== SECTIONS ===== */
.section { padding: 5rem 5%; }
.section-white { background: white; }
.section-gray { background: var(--off-white); }
.section-container { max-width: 1400px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-tag { display: inline-block; background: var(--light-blue); color: var(--primary-blue); padding: 0.4rem 1rem; border-radius: 50px; font-size: 0.85rem; font-weight: 600; margin-bottom: 1rem; }
.section-title { font-size: 2.5rem; font-weight: 800; color: var(--dark-blue); margin-bottom: 1rem; letter-spacing: -0.5px; }
.section-subtitle { color: var(--gray); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* ===== SERVICES ===== */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; margin-top: 3rem; }
.service-card { background: white; border-radius: var(--radius-xl); padding: 2.5rem; box-shadow: var(--shadow-md); border: 1px solid var(--light-gray); transition: var(--transition); position: relative; overflow: hidden; cursor: pointer; }
.service-card-action { display: block; color: inherit; text-decoration: none; }
.service-card-action-link { display: inline-flex; align-items: center; gap: 6px; color: #2863b4; font-weight: 700; font-size: .9rem; }
.service-card-action-link i { transition: transform .2s ease; }
.service-card-action:hover .service-card-action-link i { transform: translateX(3px); }
.service-card-action:focus-visible { outline: 3px solid var(--secondary-blue); outline-offset: 4px; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--primary-blue), var(--secondary-blue)); transform: scaleX(0); transform-origin: left; transition: var(--transition); }
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); }
.service-icon { width: 60px; height: 60px; background: linear-gradient(135deg, var(--pale-blue), var(--light-blue)); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--secondary-blue); margin-bottom: 1.5rem; transition: var(--transition); }
.service-card:hover .service-icon { background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue)); color: white; transform: scale(1.1) rotate(5deg); }
.service-title { font-size: 1.3rem; font-weight: 700; color: var(--dark-blue); margin-bottom: 0.8rem; }
.service-desc { color: var(--gray); font-size: 0.95rem; line-height: 1.6; margin-bottom: 1.5rem; }

.how-it-works-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.how-it-works-grid .service-card {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 325px;
    text-align: left;
}

.how-it-works-grid .service-card::before {
    height: 0;
}

.how-it-works-grid .service-icon {
    width: 78px;
    height: 78px;
    position: relative;
    border-radius: 1.1rem;
    margin-bottom: 1.4rem;
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    box-shadow: 0 12px 24px rgba(59, 130, 246, 0.25);
}

.home-step-number {
    position: absolute;
    top: 6px;
    left: 8px;
    font-size: .55rem;
    line-height: 1;
    letter-spacing: .06em;
    font-weight: 800;
    opacity: .78;
}

.how-it-works-grid .service-card:hover .service-icon {
    transform: none;
    box-shadow: 0 14px 28px rgba(59, 130, 246, 0.3);
}

.how-it-works-grid .service-title {
    font-size: clamp(1.5rem, 2vw, 1.9rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: .7rem;
}

.how-it-works-grid .service-desc {
    font-size: 1rem;
    line-height: 1.55;
    max-width: none;
    color: rgba(15, 23, 42, 0.72);
    margin-bottom: 1rem;
}

.how-it-works-grid .service-card:nth-child(4) {
    grid-column: 2;
}

.how-it-works-grid .service-card:nth-child(5) {
    grid-column: 3;
}

.home-step-link {
    margin-top: auto;
    color: #2863b4;
    font-size: .85rem;
    font-weight: 700;
    text-decoration: none;
}

.home-step-link i {
    margin-left: 4px;
}

.home-step-link:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .how-it-works-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .how-it-works-grid .service-card {
        min-height: 300px;
    }

    .how-it-works-grid .service-card:nth-child(4) {
        grid-column: auto;
    }

    .how-it-works-grid .service-card:nth-child(5) {
        grid-column: 1 / -1;
        width: calc(50% - .75rem);
        justify-self: center;
    }
}

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

    .how-it-works-grid .service-card {
        min-height: 245px;
        padding: 1.25rem 1rem 1.4rem;
    }

    .how-it-works-grid .service-icon {
        width: 68px;
        height: 68px;
        border-radius: 1.1rem;
        margin-bottom: 1.1rem;
        font-size: 1.6rem;
    }

    .how-it-works-grid .service-title {
        font-size: clamp(1.55rem, 7vw, 2rem);
        margin-bottom: .65rem;
    }

    .how-it-works-grid .service-desc {
        font-size: 1rem;
        max-width: none;
    }

    .how-it-works-grid .service-card:nth-child(5) {
        grid-column: auto;
        width: auto;
    }
}

/* ===== CTA ===== */
.cta-section { padding: 5rem 5%; background: white; }
.cta-container { max-width: 1200px; margin: 0 auto; background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue)); border-radius: var(--radius-xl); padding: 4rem; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 3rem; position: relative; overflow: hidden; }
.cta-container::before { content: ''; position: absolute; top: -50%; right: -10%; width: 400px; height: 400px; background: rgba(255,255,255,0.05); border-radius: 50%; }
.cta-title { font-size: 2.5rem; font-weight: 800; color: white; margin-bottom: 1rem; line-height: 1.2; position: relative; z-index: 1; }
.cta-subtitle { color: rgba(255,255,255,0.85); font-size: 1.1rem; max-width: 500px; position: relative; z-index: 1; }
.cta-buttons { display: flex; gap: 1rem; position: relative; z-index: 1; }

/* ===== FOOTER ===== */
.footer { background: var(--dark-blue); color: white; padding: 4rem 5% 2rem; }
.footer-grid { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 3rem; margin-bottom: 3rem; }
.footer-brand { display: flex; align-items: center; gap: 0.8rem; font-size: 1.5rem; font-weight: 800; margin-bottom: 1rem; color: white; }
.footer-desc { color: rgba(255,255,255,0.6); font-size: 0.95rem; line-height: 1.7; margin-bottom: 1.5rem; }
.footer-social { display: flex; gap: 1rem; }
.footer-social a { width: 40px; height: 40px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; text-decoration: none; transition: var(--transition); }
.footer-social a:hover { background: var(--secondary-blue); transform: translateY(-3px); }
.footer-column h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 1.5rem; color: white; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.8rem; }
.footer-links a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.95rem; transition: var(--transition); display: flex; align-items: center; gap: 0.5rem; }
.footer-links a:hover { color: white; transform: translateX(5px); }
.footer-bottom { max-width: 1400px; margin: 0 auto; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { color: rgba(255,255,255,0.5); font-size: 0.9rem; }

/* ===== SPINNER ===== */
.spinner { width: 20px; height: 20px; border: 2px solid rgba(255,255,255,0.3); border-top-color: white; border-radius: 50%; animation: spin 0.8s linear infinite; display: inline-block; }
.spinner-dark { border: 2px solid var(--light-gray); border-top-color: var(--secondary-blue); }

/* ===== MODERN TRACKING STEPPER ===== */
.tracking-stepper-card {
    background: #ffffff;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.05), 0 8px 10px -6px rgba(15, 23, 42, 0.02);
    padding: 2.5rem 2rem 1.75rem;
    margin-bottom: 1.75rem;
    position: relative;
    overflow: hidden;
}

.stepper-track {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 2.2rem;
    position: relative;
}

.stepper-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    min-width: 66px;
    z-index: 2;
}

.step-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    border: 2px solid #e2e8f0;
    color: #94a3b8;
    position: relative;
}

/* Completed Step */
.stepper-step.completed .step-icon-wrap {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.3);
}

/* Active Step */
.stepper-step.active .step-icon-wrap {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
    box-shadow: 0 0 0 8px rgba(37, 99, 235, 0.15), 0 4px 14px rgba(37, 99, 235, 0.35);
    transform: scale(1.06);
}

/* Upcoming Step */
.stepper-step.upcoming .step-icon-wrap {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    color: #94a3b8;
}

.step-label {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    line-height: 1.3;
    text-transform: uppercase;
    margin-top: 0.85rem;
    color: #0f172a;
    transition: color 0.3s ease;
}

.stepper-step.upcoming .step-label {
    color: #94a3b8;
    font-weight: 600;
}

.stepper-step.active .step-label {
    color: #1e40af;
}

.step-active-badge {
    margin-top: 0.35rem;
    background: #eff6ff;
    color: #2563eb;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.65rem;
    border-radius: 9999px;
    border: 1px solid #bfdbfe;
    letter-spacing: 0.02em;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.1);
    font-family: inherit;
    animation: pulseActive 2s infinite ease-in-out;
}

@keyframes pulseActive {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.9; }
}

.stepper-line {
    flex: 1;
    height: 4px;
    background: #e2e8f0;
    border-radius: 4px;
    margin: 0 0.5rem;
    margin-bottom: 2rem;
    position: relative;
    transition: background 0.4s ease;
}

.stepper-line.completed {
    background: #2563eb;
}

.stepper-meta-bar {
    border-top: 1px solid #f1f5f9;
    padding-top: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.2rem;
    font-size: 0.9rem;
    color: #475569;
}

.stepper-meta-bar .meta-item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.stepper-meta-bar .meta-label {
    color: #64748b;
    font-size: 0.88rem;
}

.stepper-meta-bar .meta-value {
    color: #0f172a;
    font-weight: 700;
}

.stepper-meta-bar .meta-value.arrival-highlight {
    color: #1e40af;
    background: #eff6ff;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    border: 1px solid #dbeafe;
}

@media (max-width: 680px) {
    .tracking-stepper-card {
        padding: 1.5rem 1rem 1.25rem;
    }
    .stepper-track {
        gap: 0.2rem;
    }
    .step-icon-wrap {
        width: 34px;
        height: 34px;
        font-size: 0.85rem;
    }
    .step-label {
        font-size: 0.56rem;
        margin-top: 0.45rem;
    }
    .stepper-line {
        margin-bottom: 1.6rem;
    }
    .stepper-meta-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.65rem;
    }
}

/* ===== MODAL ===== */
.modal-overlay { display: none !important; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 10000; align-items: center; justify-content: center; }
.modal-overlay.active, .modal-overlay.show { display: flex !important; }

/* Terms modal specific - ensure it's above cookie banner */
#termsModal { z-index: 10001; }
.terms-modal { background: white; position: relative; z-index: 10001; }
.modal { background: white; border-radius: var(--radius-xl); padding: 2rem; max-width: 500px; width: 90%; max-height: 80vh; overflow-y: auto; box-shadow: var(--shadow-xl); animation: fadeInUp 0.3s ease; }
.modal h3 { font-size: 1.3rem; font-weight: 700; color: var(--dark-blue); margin-bottom: 1.5rem; }
.modal-close { position: absolute; top: 1rem; right: 1rem; background: none; border: none; font-size: 1.5rem; color: var(--gray); cursor: pointer; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-subtitle { margin: 0 auto 2rem; }
    .hero-buttons { justify-content: center; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .cta-container { grid-template-columns: 1fr; text-align: center; }
    .cta-buttons { justify-content: center; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .order-form { grid-template-columns: 1fr; }
    .exchange-input-group { grid-template-columns: 1fr; }
}
@media (max-width: 1100px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: flex; align-items: center; justify-content: center; }
    body.mobile-nav-open { overflow: hidden; }
    .nav-links.mobile-open { display: flex !important; position: fixed; top: 65px; bottom: 0; left: 0; right: 0; width: 100vw; height: calc(100vh - 65px); min-height: 0; z-index: 1001; isolation: isolate; flex-direction: column; align-items: stretch; gap: 0.25rem; padding: 1.25rem 5% 2rem; overflow-y: auto; background: #ffffff; opacity: 1 !important; box-shadow: var(--shadow-lg); border-top: 1px solid #e5e7eb; }
    .nav-links.mobile-open a { display: block; padding: 0.7rem 0; color: #0f172a; }
    .nav-links.mobile-open .user-menu { width: 100%; flex-direction: column; align-items: stretch; gap: 0.65rem; padding: 0.75rem 0 0; border-top: 1px solid var(--light-gray); }
    .nav-links.mobile-open .user-avatar { display: none; }
    .nav-links.mobile-open .user-name { max-width: none; white-space: normal; }
    .nav-links.mobile-open .logout-btn { width: 100%; text-align: left; padding: 0.7rem 0; border: 0; border-top: 1px solid var(--light-gray); border-radius: 0; font-size: 0.95rem; color: var(--dark-blue); }
    .hero-title { font-size: 2rem; }
    .section-title { font-size: 1.8rem; }
    .stats-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .order-card-meta { grid-template-columns: 1fr; }
    .dashboard-header { flex-direction: column; text-align: center; }
}

/* ===== COOKIE CONSENT ===== */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999; background: var(--dark-blue); color: white; padding: 1.5rem 5%; box-shadow: 0 -4px 20px rgba(0,0,0,0.2); transform: translateY(100%); transition: transform 0.5s cubic-bezier(0.4,0,0.2,1); }
.cookie-banner.show { transform: translateY(0); }
.cookie-inner { max-width: 1400px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cookie-text { flex: 1; min-width: 280px; }
.cookie-text h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.4rem; display: flex; align-items: center; gap: 0.5rem; }
.cookie-text p { font-size: 0.9rem; color: rgba(255,255,255,0.7); line-height: 1.5; }
.cookie-text a { color: var(--accent-blue); text-decoration: underline; }
.cookie-buttons { display: flex; gap: 0.8rem; flex-shrink: 0; }
.cookie-btn { padding: 0.7rem 1.5rem; border-radius: var(--radius-md); font-weight: 600; font-size: 0.9rem; cursor: pointer; border: none; transition: var(--transition); }
.cookie-btn-accept { background: linear-gradient(135deg, var(--success), #34d399); color: white; }
.cookie-btn-accept:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(16,185,129,0.4); }
.cookie-btn-decline { background: transparent; color: white; border: 1px solid rgba(255,255,255,0.3); }
.cookie-btn-decline:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.5); }
@media (max-width: 768px) {
    .cookie-inner { flex-direction: column; text-align: center; }
    .cookie-buttons { width: 100%; justify-content: center; }
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--off-white); }
::-webkit-scrollbar-thumb { background: var(--secondary-blue); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-blue); }

/* ===== TERMS OF SERVICE MODAL ===== */
.modal-overlay.show { display: flex; }
#termsModal { position: fixed !important; z-index: 10001 !important; }
.terms-modal { max-width: 600px; max-height: 70vh; overflow-y: auto; background: white; position: relative; z-index: 10001 !important; }
.terms-modal .modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--light-gray); }
.terms-modal .modal-header h3 { font-size: 1.3rem; font-weight: 700; color: var(--primary-blue); margin: 0; display: flex; align-items: center; gap: 0.6rem; }
.terms-modal .modal-close { background: none; border: none; font-size: 1.2rem; color: var(--gray); cursor: pointer; padding: 0.2rem; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.terms-modal .modal-close:hover { background: var(--light-gray); color: var(--dark-blue); }
.terms-modal .modal-body { margin-bottom: 2rem; }
.terms-preview { font-size: 0.9rem; line-height: 1.8; color: var(--dark-blue); max-height: 300px; overflow-y: auto; padding-right: 0.5rem; }
.terms-preview p { margin-bottom: 1rem; }
.terms-preview ul { margin-left: 1.5rem; margin-bottom: 1rem; }
.terms-preview ul li { margin-bottom: 0.4rem; }
.terms-preview strong { color: var(--primary-blue); font-weight: 600; }
.terms-modal .modal-footer { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; border-top: 1px solid var(--light-gray); padding-top: 1.5rem; }
.terms-decline { background: var(--light-gray); color: var(--gray); }
.terms-decline:hover { background: var(--gray); color: white; }
.terms-accept { background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue)); color: white; }
.terms-accept:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.terms-modal::-webkit-scrollbar { width: 6px; }
.terms-modal::-webkit-scrollbar-track { background: var(--off-white); }
.terms-modal::-webkit-scrollbar-thumb { background: var(--secondary-blue); border-radius: 3px; }
@media (max-width: 480px) {
    .terms-modal { max-height: 60vh; }
    .terms-modal .modal-header { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .terms-modal .modal-footer { flex-direction: column-reverse; }
    .terms-decline, .terms-accept { width: 100%; justify-content: center; }
}

/* ===== LOGISTICS SEGMENTED CONTROL (Procurement) ===== */
.logistics-segment-wrap { margin: 1.5rem 0 0.5rem; text-align: center; }
.logistics-segment {
    display: inline-flex;
    gap: 0.25rem;
    padding: 0.35rem;
    background: var(--pale-blue);
    border: 1px solid var(--light-blue);
    border-radius: 999px;
    max-width: 100%;
}
.logistics-segment-btn {
    appearance: none;
    border: none;
    background: transparent;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.7rem 1.6rem;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}
.logistics-segment-btn i { margin-right: 0.4rem; }
.logistics-segment-btn:hover { background: rgba(255, 255, 255, 0.6); }
.logistics-segment-btn.active {
    background: var(--secondary-blue);
    color: #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}
.logistics-segment-hint {
    margin: 0.85rem auto 0;
    max-width: 640px;
    color: var(--gray);
    font-size: 0.9rem;
}
@media (max-width: 520px) {
    .logistics-segment { display: flex; width: 100%; }
    .logistics-segment-btn { flex: 1; padding: 0.7rem 0.5rem; font-size: 0.85rem; }
}

.external-panel {
    padding: 1.25rem;
    background: var(--pale-blue);
    border: 1px dashed var(--secondary-blue);
    border-radius: var(--radius-md);
}
.external-panel-title {
    font-weight: 700;
    color: var(--primary-blue);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.external-panel-title span { font-weight: 400; font-size: 0.85rem; color: var(--gray); }

.logistics-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}
.logistics-badge.ours { background: rgba(37, 99, 235, 0.12); color: var(--primary-blue); }
.logistics-badge.external { background: rgba(245, 158, 11, 0.18); color: #92400e; }

/* ===== EDIT PROCUREMENT MODAL ===== */
.wg-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem 1rem;
    overflow-y: auto;
    z-index: 2000;
}
.wg-modal.open { display: flex; }
.wg-modal-card {
    background: #fff;
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 760px;
    padding: 1.75rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
}
.wg-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.wg-modal-head h3 { margin: 0; color: var(--primary-blue); font-size: 1.15rem; }
.wg-modal-close {
    border: none;
    background: transparent;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    color: var(--gray);
}

/* ===== CBM CALCULATOR ===== */
.cbm-calculator-container { max-width: 1100px; }
.cbm-calculator {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
    gap: 2rem;
    padding: 2rem;
    background: #fff;
    border: 1px solid var(--light-gray);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}
.cbm-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    align-content: center;
}
.cbm-field label {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--dark-blue);
    font-size: 0.9rem;
    font-weight: 650;
}
.cbm-field label span { color: var(--gray); font-weight: 400; }
.cbm-field input {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--light-gray);
    border-radius: var(--radius-md);
    background: var(--off-white);
    color: var(--dark-blue);
    font: inherit;
}
.cbm-field input:focus-visible {
    outline: 3px solid rgba(59, 130, 246, 0.25);
    border-color: var(--secondary-blue);
}
.cbm-hint {
    grid-column: 1 / -1;
    color: var(--gray);
    font-size: 0.86rem;
    line-height: 1.6;
}
.cbm-result {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 230px;
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(145deg, var(--primary-blue), #2563eb);
    color: #fff;
}
.cbm-result-label { display: flex; align-items: center; gap: 0.55rem; color: #dbeafe; font-weight: 650; }
.cbm-total { display: flex; align-items: baseline; gap: 0.45rem; margin: 0.5rem 0; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.cbm-total span { font-size: 1.2rem; font-weight: 600; }
.cbm-breakdown { color: #eff6ff; font-size: 0.92rem; line-height: 1.5; }
.cbm-disclaimer { margin-top: 1rem; color: #bfdbfe; font-size: 0.8rem; line-height: 1.5; }

@media (max-width: 700px) {
    .cbm-calculator { grid-template-columns: 1fr; gap: 1.5rem; padding: 1.25rem; }
    .cbm-fields { gap: 1rem; }
    .cbm-result { min-height: 190px; }
}
