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

body {
    font-family: Arial, sans-serif;
    background-color: #f7f8fa;
    color: #111827;
}

header {
    height: 80px;
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 0 60px;
    background-color: white;
    border-bottom: 1px solid #e5e7eb;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    flex-shrink: 0;
}

nav {
    display: flex;
    gap: 35px;
    margin-left: auto;
}

nav a {
    position: relative;
    text-decoration: none;
    color: #374151;
    font-size: 15px;
}

nav a:hover {
    color: #111827;
}

.login-button {
    margin-left: 10px;
    padding: 10px 20px;
    border: 1px solid #d1d5db;
    background-color: white;
    border-radius: 6px;
    cursor: pointer;
}

.turkish-button,
.english-button {
    width: 45px;
    height: 35px;
    padding: 0;
    border: 1px solid #d1d5db;
    background-color: white;
    border-radius: 6px;
    cursor: pointer;
    overflow: hidden;
}

.turkish-button {
    margin-left: 4px;
}

.english-button {
    margin-left: -10px;
}

.turkish-button img,
.english-button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero {
    min-height: calc(100vh - 140px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
}

.hero h1 {
    font-size: 64px;
    line-height: 1.05;
    white-space: pre-line;
    margin-bottom: 25px;
}

.hero p {
    max-width: 600px;
    font-size: 20px;
    line-height: 1.6;
    color: #6b7280;
    margin-bottom: 35px;
}

.contact-page {
    min-height: calc(100vh - 140px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
}

.contact-page h1 {
    font-size: 52px;
    margin-bottom: 18px;
}

.contact-page > p {
    color: #6b7280;
    font-size: 18px;
    margin-bottom: 30px;
}

.contact-details {
    display: grid;
    gap: 18px;
    width: min(100%, 460px);
    padding: 28px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-align: left;
}

.contact-detail {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: #374151;
}

.contact-detail span {
    font-weight: bold;
}

.contact-detail a {
    margin-left: auto;
    color: #111827;
    text-decoration: none;
}

.contact-detail a:hover {
    text-decoration: underline;
}

.contact-back {
    margin-top: 30px;
    text-decoration: none;
}

.placeholder-page {
    min-height: calc(100vh - 140px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
}

.placeholder-page h1 {
    font-size: 52px;
    margin-bottom: 18px;
}

.placeholder-page p {
    max-width: 560px;
    color: #6b7280;
    font-size: 18px;
    line-height: 1.6;
}

.placeholder-page strong {
    margin-top: 28px;
    color: #111827;
    font-size: 16px;
}

.start-button {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    background-color: #111827;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

.start-button:hover {
    background-color: #374151;
}

footer {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border-top: 1px solid #e5e7eb;
    color: #6b7280;
}

.popup-overlay {
    display: none;

    position: fixed;
    inset: 0;

    background: rgba(0, 0, 0, 0.6);

    justify-content: center;
    align-items: center;

    z-index: 1000;
}

.popup {
    background: white;

    width: 90%;
    max-width: 500px;

    padding: 30px;

    border-radius: 12px;

    position: relative;
}

.close-button {
    position: absolute;

    top: 10px;
    right: 15px;

    border: none;
    background: none;

    font-size: 28px;

    cursor: pointer;
}

.product-url-inputs {
    display: grid;
    gap: 10px;
    margin: 15px 0 10px;
}

.product-url-row {
    display: flex;
    gap: 8px;
}

.product-url-row input {
    flex: 1;
    min-width: 0;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font: inherit;
}

.add-link-button,
.remove-link-button {
    width: 34px;
    height: 34px;
    border: 1px solid #d1d5db;
    border-radius: 50%;
    background: white;
    color: #111827;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.add-link-button {
    display: block;
    margin: 0 auto 18px;
}

.add-link-button:hover,
.remove-link-button:hover {
    background: #f3f4f6;
}

.form-page,
.confirmation-page {
    min-height: calc(100vh - 140px);
    width: min(100%, 620px);
    margin: 0 auto;
    padding: 60px 20px;
}

.form-page h1,
.confirmation-page h1 {
    font-size: 42px;
    margin-bottom: 15px;
}

.form-page > p,
.confirmation-page > p {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 22px;
}

.product-preview,
.confirmation-id {
    display: grid;
    gap: 8px;
    padding: 18px;
    margin-bottom: 24px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.product-preview a {
    display: block;
    overflow-wrap: anywhere;
    color: #374151;
}

.product-list {
    display: grid;
    gap: 12px;
    padding-left: 22px;
}

.product-list a {
    overflow-wrap: anywhere;
}

.product-name-input {
    display: block;
    width: min(100%, 420px);
    margin: 8px 0;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font: inherit;
}

.form-page form {
    display: grid;
    gap: 8px;
}

.form-page label {
    margin-top: 10px;
    font-weight: bold;
}

.form-page input,
.form-page textarea,
.admin-panel input,
.filters input,
.filters select,
.detail-grid select,
.detail-grid textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font: inherit;
}

.field-error,
.form-error {
    min-height: 18px;
    color: #b91c1c;
}

.phone-help-text {
    display: block;
    margin: -4px 0 2px;
    color: #b91c1c;
    font-size: 12px;
}
.phone-help-text[hidden] { display: none; }

.confirmation-page {
    text-align: center;
}

.payment-result {
    min-height: calc(100vh - 140px);
    width: min(100%, 620px);
    margin: 0 auto;
    padding: 70px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.payment-result-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin-bottom: 22px;
    border-radius: 50%;
    background: #047857;
    color: white;
    font-size: 34px;
    font-weight: bold;
}

.payment-result-cancelled .payment-result-icon {
    background: #b91c1c;
}

.payment-result .test-mode-banner {
    margin-bottom: 22px;
}

.payment-result h1 {
    margin-bottom: 16px;
    font-size: 42px;
}

.payment-result p {
    max-width: 540px;
    color: #4b5563;
    line-height: 1.6;
}

.payment-result-note {
    margin-top: 10px;
}

.payment-result .start-button {
    margin-top: 30px;
    text-decoration: none;
}

.confirmation-id {
    width: min(100%, 360px);
    margin: 30px auto 0;
    font-weight: bold;
}

.confirmation-id strong {
    font-size: 24px;
}

.admin-body {
    background: #f3f4f6;
}

.admin-login[hidden],
#adminApp[hidden],
.admin-view[hidden] {
    display: none;
}

.admin-login {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 20px;
}

.admin-panel {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 32px;
}

.admin-login-panel {
    width: min(100%, 420px);
}

.admin-login-panel h1 {
    margin-bottom: 24px;
}

.admin-login-panel form {
    display: grid;
    gap: 8px;
}

.admin-header {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    background: #111827;
    color: white;
}

.admin-header nav {
    align-items: center;
    gap: 22px;
}

.admin-header a,
.admin-link-button {
    color: white;
    background: none;
    border: 0;
    text-decoration: none;
    cursor: pointer;
    font: inherit;
}

.admin-main {
    width: min(100%, 1100px);
    margin: 0 auto;
    padding: 40px 20px;
}

.admin-view h1 {
    margin-bottom: 24px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
    margin-bottom: 36px;
}

.stat-card {
    display: grid;
    gap: 12px;
    padding: 18px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.stat-card span {
    color: #6b7280;
    font-size: 14px;
}

.stat-card strong {
    font-size: 28px;
}

.admin-title-row,
.filters {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 22px;
}

.filters input {
    flex: 1;
}

.secondary-button {
    padding: 10px 16px;
    border: 1px solid #9ca3af;
    border-radius: 6px;
    background: white;
    color: #111827;
    cursor: pointer;
}

.admin-table-wrap {
    overflow-x: auto;
    margin-bottom: 36px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th,
td {
    padding: 14px;
    border-bottom: 1px solid #e5e7eb;
    white-space: nowrap;
}

tbody tr {
    cursor: pointer;
}

tbody tr:hover {
    background: #f9fafb;
}

.status-pill {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 999px;
    background: #e5e7eb;
    font-size: 13px;
}

.url-cell {
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.empty-state {
    padding: 24px;
    color: #6b7280;
}

.detail-grid {
    display: grid;
    gap: 20px;
}

.detail-grid > div {
    padding: 22px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.detail-grid h2 {
    margin-bottom: 14px;
    font-size: 18px;
}

.detail-grid a {
    overflow-wrap: anywhere;
}

dl {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 10px;
}

dt {
    font-weight: bold;
}

dd {
    white-space: pre-wrap;
}

.success-message {
    min-height: 20px;
    color: #047857;
}

@media (max-width: 700px) {
    header {
        height: auto;
        flex-wrap: wrap;
        gap: 14px;
        padding: 18px 20px;
    }

    nav {
        order: 3;
        width: 100%;
        margin-left: 0;
        justify-content: center;
        gap: 16px;
        flex-wrap: wrap;
    }

    .hero h1 {
        font-size: 44px;
    }

    .admin-header {
        height: auto;
        flex-wrap: wrap;
        gap: 14px;
        padding: 18px 20px;
    }

    .admin-header nav {
        order: 0;
        width: auto;
    }

    .filters,
    .admin-title-row {
        align-items: stretch;
        flex-direction: column;
    }

    dl {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

/* South2North visual refresh: warm paper, evergreen, and editorial typography. */
:root {
    color-scheme: light;
    --paper: #f5f3ed;
    --surface: #fffefa;
    --ink: #202b25;
    --muted: #69746c;
    --line: #dce1d8;
    --green: #315f86;
    --green-deep: #193552;
    --green-soft: #e9f0f6;
    --rust: #bd6548;
    --gold: #e6bf70;
    --shadow-soft: 0 12px 30px rgba(30, 48, 38, .08);
}

html { background: var(--paper); scroll-behavior: smooth; }
body { min-width: 320px; background: var(--paper); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.55; -webkit-font-smoothing: antialiased; }

body > header:not(.admin-header) { position: relative; z-index: 5; min-height: 78px; height: auto; padding: 14px clamp(20px, 5vw, 76px); gap: clamp(12px, 2vw, 28px); background: rgba(255, 254, 250, .97); border-bottom: 1px solid var(--line); }
.logo { color: var(--green-deep); font-family: Georgia, "Times New Roman", serif; font-size: 26px; letter-spacing: -.7px; }
nav { gap: clamp(14px, 2vw, 30px); }
nav a { color: #526057; font-size: 13px; font-weight: 650; letter-spacing: .015em; transition: color .18s ease; }
nav a:hover, nav a:focus-visible { color: var(--rust); }

.login-button, .turkish-button, .english-button { border-color: var(--line); background: var(--surface); color: var(--ink); border-radius: 8px; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.login-button { min-height: 42px; margin-left: 2px; padding: 9px 16px; font-size: 13px; font-weight: 700; }
.login-button:hover, .turkish-button:hover, .english-button:hover { border-color: #aab8ac; background: #f4f6f1; transform: translateY(-1px); }
.turkish-button, .english-button { width: 38px; height: 30px; border-radius: 6px; }
.turkish-button img, .english-button img { border-radius: 5px; }

.hero { position: relative; isolation: isolate; min-height: min(760px, calc(100vh - 138px)); align-items: flex-start; justify-content: center; overflow: hidden; padding: clamp(70px, 11vh, 120px) clamp(24px, 11vw, 168px); background: var(--green-deep); color: #fffefa; text-align: left; }
.hero::before { content: "SOUTH2NORTH  /  CROSS-BORDER SHOPPING"; display: block; margin-bottom: 28px; color: #c8d7ca; font-size: 11px; font-weight: 700; letter-spacing: .17em; }
.hero::after { position: absolute; z-index: -1; top: 50%; right: clamp(-165px, 5vw, 90px); width: clamp(300px, 38vw, 560px); aspect-ratio: 1; border: 1px solid rgba(232, 239, 228, .22); border-radius: 50%; box-shadow: 0 0 0 36px rgba(232, 239, 228, .035), 0 0 0 82px rgba(232, 239, 228, .025); content: ""; transform: translateY(-50%); }
.hero h1 { max-width: 900px; margin-bottom: 24px; color: #fffefa; font-family: Georgia, "Times New Roman", serif; font-size: clamp(56px, 8.5vw, 112px); font-weight: 400; letter-spacing: -.065em; line-height: .96; }
.hero p { max-width: 490px; margin-bottom: 34px; color: #d4ded4; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.7; }

.start-button, .secondary-button, #continueQuote, .submit-request-button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; width: auto; padding: 12px 22px; border: 1px solid transparent; border-radius: 8px; font: inherit; font-size: 14px; font-weight: 750; line-height: 1.2; text-decoration: none; transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease; }
.start-button, #continueQuote, .submit-request-button { background: var(--green); color: #fffefa; }
.hero .start-button { min-height: 54px; padding-inline: 26px; background: var(--gold); color: #25372c; }
.start-button:hover, #continueQuote:hover, .submit-request-button:hover { background: #32654d; box-shadow: 0 8px 18px rgba(25, 57, 44, .15); transform: translateY(-2px); }
.hero .start-button:hover { background: #efd08e; }
.secondary-button { border-color: #cbd5cc; background: var(--surface); color: var(--green-deep); }
.secondary-button:hover { border-color: var(--green); background: var(--green-soft); }
button:disabled { cursor: wait; opacity: .62; transform: none !important; }
:focus-visible { outline: 3px solid rgba(189, 101, 72, .52); outline-offset: 3px; }
footer { min-height: 62px; height: auto; padding: 18px 20px; border-color: var(--line); background: var(--surface); color: var(--muted); font-size: 12px; letter-spacing: .03em; }

.contact-page, .placeholder-page, .form-page, .confirmation-page, .payment-result, .review-page, .portal-page { min-height: calc(100vh - 140px); padding-top: clamp(48px, 8vh, 88px); padding-bottom: clamp(48px, 8vh, 88px); }
.contact-page h1, .placeholder-page h1, .form-page h1, .confirmation-page h1, .payment-result h1, .review-page h1, .portal-page h1 { color: var(--green-deep); font-family: Georgia, "Times New Roman", serif; font-size: clamp(38px, 6vw, 62px); font-weight: 400; letter-spacing: -.045em; line-height: 1.02; }
.contact-page > p, .placeholder-page p, .form-page > p, .confirmation-page > p, .review-page > p { color: var(--muted); font-size: 16px; }
.contact-details, .product-preview, .confirmation-id, .review-product, .application-card, .admin-table-wrap, .stat-card, .detail-grid > div { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 4px 14px rgba(30, 48, 38, .035); }
.contact-details { gap: 0; padding: 8px 24px; }
.contact-detail { padding: 17px 0; border-bottom: 1px solid #edf0eb; }
.contact-detail:last-child { border-bottom: 0; }
.contact-detail a, .product-preview a, .product-list a, .portal-detail a { color: var(--green); }

.popup-overlay { padding: 18px; background: rgba(24, 39, 30, .58); backdrop-filter: blur(4px); }
.popup { width: min(100%, 520px); padding: 34px; border: 1px solid rgba(255,255,255,.8); border-radius: 16px; background: var(--surface); box-shadow: 0 28px 90px rgba(12, 27, 18, .24); }
.popup h2 { margin-bottom: 8px; color: var(--green-deep); font-family: Georgia, "Times New Roman", serif; font-size: 32px; font-weight: 400; letter-spacing: -.035em; }
.popup > p:not(.form-error) { color: var(--muted); }
.close-button { top: 15px; right: 18px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); }
.close-button:hover { background: var(--green-soft); color: var(--green-deep); }

.product-url-row input, .form-page input, .form-page textarea, .admin-panel input, .filters input, .filters select, .detail-grid select, .detail-grid textarea, .message-form textarea, #sellerMessage, #cancellationReason, .product-name-input { border-color: #d4ddd4; border-radius: 8px; background: #fffefa; color: var(--ink); }
.request-details-field { display: grid; gap: 7px; margin-top: 16px; }
.request-details-field label { color: var(--green-deep); font-size: 13px; font-weight: 750; }
.request-details-field textarea { width: 100%; min-height: 78px; padding: 10px 12px; border: 1px solid #d4ddd4; border-radius: 8px; background: #fffefa; color: var(--ink); font: inherit; resize: vertical; }
.request-details-field textarea:focus { border-color: var(--green); outline: 3px solid rgba(36, 79, 61, .12); }
.request-details-preview { margin: 18px 0; padding: 16px 18px; border-left: 3px solid var(--rust); background: var(--surface); }
.request-details-preview[hidden] { display: none; }
.request-details-preview h2 { margin-bottom: 5px; color: var(--green-deep); font-size: 15px; }
.request-details-preview p { color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.product-request-entry { display: grid; gap: 7px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.product-request-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 2px; }
.product-request-heading h3 { color: var(--green-deep); font-size: 15px; font-weight: 750; }
.product-request-heading .remove-link-button { flex: 0 0 32px; width: 32px; height: 32px; }
.product-request-entry > label { color: var(--green-deep); font-size: 13px; font-weight: 750; }
.product-details-input { width: 100%; min-height: 62px; padding: 10px 12px; border: 1px solid #d4ddd4; border-radius: 8px; background: #fffefa; color: var(--ink); font: inherit; resize: vertical; }
.product-details-input:focus { border-color: var(--green); outline: 3px solid rgba(36, 79, 61, .12); }
.product-preview-details, .review-product-details { margin-top: 8px; color: var(--muted); font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.customer-request-details { margin: 8px 0; padding: 10px 12px; border-left: 3px solid var(--rust); background: var(--green-soft); color: var(--ink); font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.customer-request-details strong { color: var(--ink); }
.admin-quote-calculator { display: grid; align-content: start; gap: 12px; }
.admin-quote-calculator > label { display: grid; gap: 6px; }
.item-price-field { display: grid; width: min(100%, 240px); gap: 5px; margin: 10px 0; color: var(--muted); font-size: 12px; font-weight: 700; }
.item-price-input { width: 100%; min-height: 42px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); font: inherit; }
.item-value-summary { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.item-value-summary output { color: var(--green-deep); font-weight: 800; font-variant-numeric: tabular-nums; }
.admin-quote-calculator .form-error[hidden] { display: none; }
.product-url-row input:focus, .form-page input:focus, .form-page textarea:focus, .admin-panel input:focus, .filters input:focus, .filters select:focus, .detail-grid select:focus, .detail-grid textarea:focus, .message-form textarea:focus { border-color: var(--green); outline: 3px solid rgba(36, 79, 61, .12); }
.add-link-button { width: 38px; height: 38px; border-color: #b9cbbd; background: var(--green-soft); color: var(--green-deep); font-size: 24px; }
.remove-link-button { border-color: #e5c9bd; color: #a04f37; }
.account-choice { padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: #f7f7f1; }
.account-choice p { margin-bottom: 4px; color: var(--green-deep); font-weight: 700; }

.form-page { max-width: 760px; }
.form-page form { padding: clamp(22px, 4vw, 36px); border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-soft); }
.form-page label { color: #39483e; font-size: 13px; font-weight: 750; }
.field-error, .form-error { color: #a34731; }
.review-products { margin: 28px 0; }
.review-product { padding: 20px 22px; }
.review-product strong { color: var(--green-deep); font-size: 14px; }
.review-product a { color: var(--muted); font-size: 13px; }
.submit-request-button { width: min(100%, 260px); margin-top: 10px; }

.confirmation-page, .payment-result { display: flex; flex-direction: column; align-items: center; justify-content: center; width: min(100%, 760px); text-align: center; }
.confirmation-page > p, .payment-result > p { max-width: 540px; }
.confirmation-id { min-width: min(100%, 340px); margin: 14px 0 4px; padding: 18px 28px; }
.confirmation-id span { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.confirmation-id strong { color: var(--green-deep); font-size: 26px; }
.payment-result { width: min(100% - 32px, 700px); min-height: 570px; margin: 30px auto; padding: clamp(34px, 7vw, 64px); border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-soft); }
.payment-result-icon { width: 66px; height: 66px; margin-bottom: 20px; background: var(--green); font-size: 30px; }
.payment-result-cancelled .payment-result-icon { background: var(--rust); }
.payment-result .test-mode-banner { display: inline-flex; margin: 0 0 20px; padding: 7px 11px; border: 1px solid #e5cf9f; border-radius: 999px; background: #fbf4e4; color: #785b22; font-size: 10px; letter-spacing: .11em; }
.payment-result h1 { margin-bottom: 14px; font-size: clamp(38px, 6vw, 54px); }
.payment-result-note { margin-top: 10px; }
.payment-result .start-button { margin-top: 28px; }

.portal-page { max-width: 1040px; }
.application-list { gap: 12px; }
.application-card { border-radius: 12px; box-shadow: 0 4px 14px rgba(30, 48, 38, .035); }
.application-summary { min-height: 76px; padding: 18px 22px; transition: background .18s ease; }
.application-summary:hover { background: #f9faf5; }
.application-summary strong { color: var(--green-deep); }
.application-expanded { padding: 8px 24px 26px; background: #fffefa; }
.customer-total, .payment-prompt { border-color: var(--line); border-radius: 10px; }
.payment-prompt { border-color: #bfd1c2; background: #f0f5ee; }
.message { border: 1px solid #e7e9e3; border-radius: 9px; background: #f8f8f4; }
.message.seller { border-color: #d7e3d8; background: #edf3ed; }

.admin-body { background: var(--paper); }
.admin-header { min-height: 72px; height: auto; padding: 14px clamp(20px, 5vw, 72px); background: var(--green-deep); }
.admin-header > strong { font-family: Georgia, "Times New Roman", serif; font-size: 19px; font-weight: 400; letter-spacing: .025em; }
.admin-header a, .admin-link-button { color: #e7eee7; font-size: 13px; font-weight: 650; }
.admin-main { width: min(100%, 1240px); padding: clamp(28px, 5vw, 56px) clamp(18px, 4vw, 38px); }
.admin-view h1 { color: var(--green-deep); font-family: Georgia, "Times New Roman", serif; font-size: clamp(36px, 5vw, 52px); font-weight: 400; letter-spacing: -.04em; }
.admin-view h2, .detail-grid h2 { color: var(--green-deep); font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.02em; }
.stats-grid { gap: 12px; }
.stat-card { min-height: 112px; border-radius: 12px; box-shadow: 0 4px 14px rgba(30, 48, 38, .035); }
.stat-card span { color: var(--muted); font-weight: 650; }
.stat-card strong { color: var(--green-deep); font-family: Georgia, "Times New Roman", serif; font-size: 32px; font-weight: 400; }
.admin-table-wrap { border-radius: 12px; box-shadow: var(--shadow-soft); }
th { background: #f2f4ee; color: #59675d; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
td { color: #344138; font-size: 13px; }
tbody tr:hover { background: #f5f7f1; }
.status-pill { padding: 6px 10px; background: var(--green-soft); color: var(--green-deep); font-size: 11px; font-weight: 750; }
.detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.detail-grid > div { border-radius: 12px; box-shadow: 0 4px 14px rgba(30, 48, 38, .035); }
.admin-login-panel { border-radius: 14px; box-shadow: var(--shadow-soft); }
.admin-notifications { border-radius: 8px; background: #fbf4e4; border-left-color: var(--rust); color: #755337; }

@media (max-width: 760px) {
    body > header:not(.admin-header) { padding: 12px 14px; gap: 8px; flex-wrap: wrap; }
    body > header:not(.admin-header) .logo { flex: 1 1 auto; min-width: 0; font-size: 21px; white-space: nowrap; }
    body > header:not(.admin-header) .login-button { min-height: 38px; margin: 0; padding: 8px 10px; font-size: 12px; }
    body > header:not(.admin-header) .turkish-button,
    body > header:not(.admin-header) .english-button { flex: 0 0 32px; width: 32px; height: 25px; margin: 0; }
    body > header:not(.admin-header) nav { flex: 0 0 100%; order: 3; width: 100%; margin-left: 0; justify-content: flex-start; flex-wrap: wrap; gap: 10px 18px; }
    body > header:not(.admin-header) nav a { font-size: 12px; }
    .hero { min-height: 620px; padding: 72px 26px; }
    .hero::after { top: auto; right: -130px; bottom: -150px; width: 340px; transform: none; }
    .popup { padding: 30px 22px 24px; }
    .detail-grid { grid-template-columns: 1fr; }
    .application-summary { grid-template-columns: 1fr 1fr; }
    .admin-header { gap: 12px; padding: 14px 18px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

.portal-page {
    min-height: calc(100vh - 140px);
    width: min(100%, 900px);
    margin: 0 auto;
    padding: 50px 20px;
}

.portal-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.email-preference {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 0 0 24px;
    padding: 16px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.email-preference h2 { margin: 0 0 4px; font-size: 18px; }
.email-preference p { margin: 0; color: var(--muted); font-size: 13px; }
.email-preference label { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.email-preference input { accent-color: var(--green-deep); }

.account-page { width: min(100%, 980px); }
.account-page .portal-title-row { margin-bottom: 18px; }
.account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; }
.account-section { padding: 22px 0; border-top: 1px solid var(--line); }
.account-section h2 { margin: 0 0 18px; color: var(--green-deep); font-family: Georgia, "Times New Roman", serif; font-size: 25px; font-weight: 400; }
.account-section h3 { margin: 18px 0 8px; color: var(--green-deep); font-size: 16px; }
.account-section p, .account-section small { color: var(--muted); font-size: 13px; line-height: 1.55; }
.account-form { display: grid; gap: 10px; max-width: 620px; }
.account-form label { color: var(--ink); font-size: 13px; font-weight: 700; }
.account-form input, .account-form textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); font: inherit; }
.account-form textarea { resize: vertical; }
.account-form input:focus, .account-form textarea:focus { border-color: var(--green); outline: 3px solid rgba(36, 79, 61, .12); }
.account-form input:disabled { opacity: .72; }
.account-form button { justify-self: start; margin-top: 8px; }
.account-form .account-message, .account-message { min-height: 1.4em; margin: 0; color: var(--muted); font-size: 13px; }
.account-setting { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-bottom: 20px; }
.account-setting p { margin: 0; }
.account-setting .account-message { margin-top: 6px; }
.account-toggle { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.account-toggle input { accent-color: var(--green-deep); }
.account-danger { margin-top: 28px; border-top-color: #d9b4a9; }
.account-danger h2 { color: var(--rust); }
.account-danger > p { max-width: 680px; }
.danger-button { min-height: 46px; padding: 11px 18px; border: 1px solid #a34731; border-radius: 6px; background: #a34731; color: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.danger-button:hover:not(:disabled) { background: #823824; }
.danger-button:disabled { opacity: .5; cursor: not-allowed; }

@media (max-width: 520px) {
    .email-preference { align-items: flex-start; flex-direction: column; }
    .account-grid { grid-template-columns: 1fr; gap: 0; }
    .account-setting { align-items: flex-start; flex-direction: column; }
}

.application-list {
    display: grid;
    gap: 16px;
}

.application-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.application-summary {
    width: 100%;
    display: grid;
    grid-template-columns: 1.2fr .6fr 1fr .9fr;
    gap: 16px;
    align-items: center;
    padding: 20px;
    border: 0;
    background: white;
    color: #111827;
    text-align: left;
    cursor: pointer;
    font: inherit;
}

.application-summary span {
    color: #4b5563;
}

.application-summary small {
    color: #6b7280;
}

.update-label {
    color: #b91c1c;
    font-size: 12px;
    font-weight: bold;
}

.application-expanded {
    padding: 0 20px 22px;
    border-top: 1px solid #e5e7eb;
}

.portal-detail h2 {
    margin: 20px 0 12px;
}

.portal-detail h3 {
    margin: 20px 0 10px;
}

.portal-detail ol {
    display: grid;
    gap: 8px;
    padding-left: 24px;
}

.portal-detail a {
    overflow-wrap: anywhere;
}

.portal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.portal-actions a {
    color: #111827;
    text-decoration: none;
}

.message-list {
    display: grid;
    gap: 10px;
}

.message {
    padding: 12px;
    border-radius: 6px;
    background: #f3f4f6;
}

.message.seller {
    background: #eef6ff;
}

.message small {
    display: block;
    margin-top: 4px;
    color: #6b7280;
}

.message p {
    white-space: pre-wrap;
    margin-top: 8px;
}

.message-form {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.message-form textarea,
#sellerMessage,
#cancellationReason {
    width: 100%;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font: inherit;
}

@media (max-width: 700px) {
    .portal-title-row {
        align-items: stretch;
        flex-direction: column;
    }

    .application-summary {
        grid-template-columns: 1fr 1fr;
    }
}

.account-choice {
    display: grid;
    gap: 10px;
    margin-top: 18px;
    text-align: center;
}

.account-choice[hidden] {
    display: none;
}

.notification-badge {
    position: absolute;
    top: -10px;
    right: -14px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #b91c1c;
    color: white;
    font-size: 11px;
    font-weight: bold;
}

.customer-total,
.payment-prompt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 18px;
    padding: 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #f9fafb;
}

.payment-prompt {
    flex-wrap: wrap;
    background: #eef6ff;
    border-color: #93c5fd;
}

.payment-prompt p {
    flex-basis: 100%;
    color: #374151;
}

.payment-disclaimer {
    font-size: 13px;
    color: #92400e !important;
}

.admin-notifications {
    margin-bottom: 24px;
    padding: 14px 18px;
    border-left: 4px solid #b91c1c;
    background: #fef2f2;
    color: #991b1b;
}

.quote-help {
    color: #6b7280;
    font-size: 14px;
}

.detail-grid label {
    display: grid;
    gap: 6px;
    margin: 10px 0;
    font-weight: bold;
}

.test-mode-banner {
    padding: 12px 16px;
    border: 1px solid #f59e0b;
    border-radius: 6px;
    background: #fffbeb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-weight: bold;
}

.purchase-summary {
    margin-bottom: 6px;
    gap: 12px;
    width: min(100%, 420px);
    font-size: 16px;
    line-height: 1.4;
    margin: 24px auto;
    padding: 22px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-align: left;
}

.theme-toggle {
    position: fixed;
    z-index: 1400;
    right: max(22px, env(safe-area-inset-right));
    bottom: max(22px, env(safe-area-inset-bottom));
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 50%;
    background: #193552;
    color: #fffefa;
    box-shadow: 0 8px 24px rgba(19, 40, 29, .24);
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.theme-toggle:hover {
    background: var(--green);
    box-shadow: 0 11px 28px rgba(19, 40, 29, .3);
    transform: translateY(-2px);
}

.theme-toggle svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

html[data-theme="dark"] {
    color-scheme: dark;
    --paper: #101722;
    --surface: #1a2635;
    --ink: #f0f4f9;
    --muted: #c0cbd8;
    --line: #3b4a5d;
    --green: #76a9d1;
    --green-deep: #dbe8f4;
    --green-soft: #27394d;
    --rust: #e29a7e;
    --gold: #edca7d;
    --shadow-soft: 0 14px 34px rgba(0, 0, 0, .34);
}

html[data-theme="dark"] body,
html[data-theme="dark"] .admin-body {
    background: var(--paper);
    color: var(--ink);
}

html[data-theme="dark"] body > header:not(.admin-header),
html[data-theme="dark"] footer {
    background: #151f2d;
    border-color: var(--line);
    color: var(--muted);
}

html[data-theme="dark"] .hero {
    background: #14243b;
    color: #f4f7fb;
}

html[data-theme="dark"] .hero h1 { color: #f7f9fc; }
html[data-theme="dark"] .hero p { color: #cfdae7; }
html[data-theme="dark"] .hero::before { color: #bed0e1; }

html[data-theme="dark"] .logo,
html[data-theme="dark"] nav a,
html[data-theme="dark"] .contact-page h1,
html[data-theme="dark"] .placeholder-page h1,
html[data-theme="dark"] .form-page h1,
html[data-theme="dark"] .confirmation-page h1,
html[data-theme="dark"] .review-page h1,
html[data-theme="dark"] .portal-page h1,
html[data-theme="dark"] .admin-view h1,
html[data-theme="dark"] .admin-view h2,
html[data-theme="dark"] .detail-grid h2,
html[data-theme="dark"] .stat-card strong,
html[data-theme="dark"] .confirmation-id strong {
    color: #d9e8dc;
}

html[data-theme="dark"] .login-button,
html[data-theme="dark"] .turkish-button,
html[data-theme="dark"] .english-button,
html[data-theme="dark"] .secondary-button {
    border-color: #4a5e77;
    background: #26364b;
    color: #e8f0fa;
}

html[data-theme="dark"] .login-button:hover,
html[data-theme="dark"] .turkish-button:hover,
html[data-theme="dark"] .english-button:hover,
html[data-theme="dark"] .secondary-button:hover {
    border-color: #728aa6;
    background: #31455d;
}

html[data-theme="dark"] .contact-details,
html[data-theme="dark"] .product-preview,
html[data-theme="dark"] .confirmation-id,
html[data-theme="dark"] .review-product,
html[data-theme="dark"] .contact-card,
html[data-theme="dark"] .application-card,
html[data-theme="dark"] .application-summary,
html[data-theme="dark"] .application-expanded,
html[data-theme="dark"] .admin-table-wrap,
html[data-theme="dark"] .stat-card,
html[data-theme="dark"] .detail-grid > div,
html[data-theme="dark"] .form-page form,
html[data-theme="dark"] .admin-panel,
html[data-theme="dark"] .popup,
html[data-theme="dark"] .payment-result,
html[data-theme="dark"] .purchase-summary {
    border-color: var(--line);
    background: var(--surface);
    color: var(--ink);
}

html[data-theme="dark"] .product-preview a,
html[data-theme="dark"] .product-list a,
html[data-theme="dark"] .portal-detail a,
html[data-theme="dark"] .contact-detail a {
    color: #a9cff0;
}

html[data-theme="dark"] .contact-detail,
html[data-theme="dark"] th,
html[data-theme="dark"] td {
    border-color: var(--line);
}

html[data-theme="dark"] th {
    background: #243348;
    color: #d6e0ec;
}

html[data-theme="dark"] td,
html[data-theme="dark"] .contact-detail,
html[data-theme="dark"] .contact-page > p,
html[data-theme="dark"] .placeholder-page p,
html[data-theme="dark"] .form-page > p,
html[data-theme="dark"] .confirmation-page > p,
html[data-theme="dark"] .review-page > p,
html[data-theme="dark"] .payment-result p,
html[data-theme="dark"] .application-summary span,
html[data-theme="dark"] .application-summary small,
html[data-theme="dark"] .quote-help {
    color: var(--muted);
}

html[data-theme="dark"] .application-summary:hover,
html[data-theme="dark"] tbody tr:hover {
    background: #243449;
}

html[data-theme="dark"] .product-url-row input,
html[data-theme="dark"] .form-page input,
html[data-theme="dark"] .form-page textarea,
html[data-theme="dark"] .admin-panel input,
html[data-theme="dark"] .filters input,
html[data-theme="dark"] .filters select,
html[data-theme="dark"] .detail-grid select,
html[data-theme="dark"] .detail-grid textarea,
html[data-theme="dark"] .message-form textarea,
html[data-theme="dark"] #sellerMessage,
html[data-theme="dark"] #cancellationReason,
html[data-theme="dark"] .product-name-input {
    border-color: #4b5e74;
    background: #121c29;
    color: var(--ink);
}

html[data-theme="dark"] .message,
html[data-theme="dark"] .customer-total {
    border-color: var(--line);
    background: #243246;
    color: var(--ink);
}

html[data-theme="dark"] .message.seller,
html[data-theme="dark"] .payment-prompt {
    border-color: #4c6881;
    background: #23364a;
}

html[data-theme="dark"] .payment-disclaimer,
html[data-theme="dark"] .test-mode-banner {
    border-color: #665733;
    background: #342e20;
    color: #eed18b !important;
}

html[data-theme="dark"] .status-pill {
    background: #2c4032;
    color: #c1dec6;
}

html[data-theme="dark"] .admin-notifications {
    border-color: #80533e;
    background: #34271f;
    color: #f0c3a6;
}

html[data-theme="dark"] .theme-toggle {
    border-color: #8298b2;
    background: #e6c77d;
    color: #172b42;
}

html[data-theme="dark"] .theme-toggle:hover {
    background: #f2d99a;
}

html[data-theme="dark"] .admin-header {
    background: #14243b;
    color: #f0f4f9;
}

html[data-theme="dark"] .admin-header a,
html[data-theme="dark"] .admin-link-button {
    color: #e2ebf5;
}

html[data-theme="dark"] .admin-link-button:hover { color: #a9cff0; }

html[data-theme="dark"] .account-choice {
    border-color: #465c77;
    background: #22334a;
}

html[data-theme="dark"] .account-choice p,
html[data-theme="dark"] .account-choice button { color: #edf3fa; }

html[data-theme="dark"] .form-page label,
html[data-theme="dark"] .detail-grid label,
html[data-theme="dark"] .contact-detail span,
html[data-theme="dark"] dt,
html[data-theme="dark"] .portal-detail strong,
html[data-theme="dark"] .application-summary strong {
    color: #e7eef7;
}

html[data-theme="dark"] .placeholder-page strong,
html[data-theme="dark"] .stat-card span,
html[data-theme="dark"] .message small,
html[data-theme="dark"] .empty-state,
html[data-theme="dark"] .confirmation-id span {
    color: #c0cbd8;
}

html[data-theme="dark"] .start-button,
html[data-theme="dark"] #continueQuote,
html[data-theme="dark"] .submit-request-button {
    background: #315f86;
    color: #fff;
}

html[data-theme="dark"] .start-button:hover,
html[data-theme="dark"] #continueQuote:hover,
html[data-theme="dark"] .submit-request-button:hover {
    background: #3c719d;
}

html[data-theme="dark"] .hero .start-button {
    background: #edca7d;
    color: #1d2d3d;
}

html[data-theme="dark"] .status-pill {
    background: #29415a;
    color: #d4e8f9;
}

@media (max-width: 480px) {
    .theme-toggle {
        right: 16px;
        bottom: 16px;
        width: 48px;
        height: 48px;
    }
}

/* Final dark-mode contrast pass across shared customer and admin components. */
html[data-theme="dark"] body,
html[data-theme="dark"] main,
html[data-theme="dark"] .admin-main,
html[data-theme="dark"] .portal-page {
    background-color: var(--paper);
    color: var(--ink);
}

html[data-theme="dark"] body > header:not(.admin-header) {
    background-color: #172233;
    color: #f0f4f9;
}

html[data-theme="dark"] .logo,
html[data-theme="dark"] nav a,
html[data-theme="dark"] .login-button,
html[data-theme="dark"] .contact-detail span,
html[data-theme="dark"] .form-page label,
html[data-theme="dark"] .detail-grid label,
html[data-theme="dark"] dt,
html[data-theme="dark"] .portal-detail h2,
html[data-theme="dark"] .portal-detail h3,
html[data-theme="dark"] .portal-detail strong,
html[data-theme="dark"] .review-product strong,
html[data-theme="dark"] .quote-help,
html[data-theme="dark"] .stat-card span,
html[data-theme="dark"] .empty-state,
html[data-theme="dark"] .confirmation-id span {
    color: #e6edf6;
}

html[data-theme="dark"] .contact-page > p,
html[data-theme="dark"] .placeholder-page p,
html[data-theme="dark"] .form-page > p,
html[data-theme="dark"] .confirmation-page > p,
html[data-theme="dark"] .review-page > p,
html[data-theme="dark"] .payment-result p,
html[data-theme="dark"] .portal-detail > p,
html[data-theme="dark"] .portal-detail dl,
html[data-theme="dark"] .application-summary span,
html[data-theme="dark"] .application-summary small,
html[data-theme="dark"] td,
html[data-theme="dark"] .message small {
    color: #c0cbd9;
}

html[data-theme="dark"] .popup,
html[data-theme="dark"] .admin-panel,
html[data-theme="dark"] .form-page form,
html[data-theme="dark"] .product-preview,
html[data-theme="dark"] .contact-details,
html[data-theme="dark"] .review-product,
html[data-theme="dark"] .confirmation-id,
html[data-theme="dark"] .payment-result,
html[data-theme="dark"] .purchase-summary,
html[data-theme="dark"] .application-card,
html[data-theme="dark"] .application-expanded,
html[data-theme="dark"] .stat-card,
html[data-theme="dark"] .detail-grid > div,
html[data-theme="dark"] .admin-table-wrap {
    border-color: #3a4b60;
    background-color: #1b293a;
    color: #eef3fa;
}

html[data-theme="dark"] .application-summary {
    background-color: #1b293a;
    color: #eef3fa;
}

html[data-theme="dark"] .application-summary:hover,
html[data-theme="dark"] tbody tr:hover {
    background-color: #263951;
}

html[data-theme="dark"] .account-choice {
    border-color: #425874;
    background-color: #22344b;
    color: #edf3fb;
}

html[data-theme="dark"] .account-choice p {
    color: #f0f5fb;
}

html[data-theme="dark"] .account-choice .secondary-button,
html[data-theme="dark"] .secondary-button {
    border-color: #6b809a;
    background-color: #293d55;
    color: #f1f5fb;
}

html[data-theme="dark"] .account-choice .secondary-button:hover,
html[data-theme="dark"] .secondary-button:hover {
    border-color: #a8c1dc;
    background-color: #344d69;
    color: #fff;
}

html[data-theme="dark"] .start-button,
html[data-theme="dark"] #continueQuote,
html[data-theme="dark"] .submit-request-button {
    border-color: #467eaa;
    background-color: #346b96;
    color: #fff;
}

html[data-theme="dark"] .start-button:hover,
html[data-theme="dark"] #continueQuote:hover,
html[data-theme="dark"] .submit-request-button:hover {
    background-color: #407da9;
    color: #fff;
}

html[data-theme="dark"] .hero .start-button {
    border-color: #edca7d;
    background-color: #edca7d;
    color: #1a2a3c;
}

html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select,
html[data-theme="dark"] .product-url-row input,
html[data-theme="dark"] .product-name-input {
    border-color: #4a6079;
    background-color: #111c2a;
    color: #f1f5fa;
    color-scheme: dark;
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
    color: #aab8c8;
    opacity: 1;
}

html[data-theme="dark"] th {
    border-color: #3a4b60;
    background-color: #26384e;
    color: #e4edf7;
}

html[data-theme="dark"] td {
    border-color: #35465a;
}

html[data-theme="dark"] .status-pill {
    background-color: #294865;
    color: #e2f0ff;
}

html[data-theme="dark"] .message,
html[data-theme="dark"] .customer-total {
    border-color: #3d5067;
    background-color: #24354a;
    color: #edf3fa;
}

html[data-theme="dark"] .message.seller,
html[data-theme="dark"] .payment-prompt {
    border-color: #476483;
    background-color: #203b55;
    color: #f0f5fb;
}

html[data-theme="dark"] .payment-disclaimer,
html[data-theme="dark"] .test-mode-banner {
    border-color: #856f43;
    background-color: #3b3425;
    color: #ffe6a8 !important;
}

html[data-theme="dark"] .field-error,
html[data-theme="dark"] .form-error {
    color: #ffad9c;
}

html[data-theme="dark"] .admin-notifications {
    border-color: #8d574d;
    background-color: #3c292a;
    color: #ffd3cb;
}

html[data-theme="dark"] .admin-header {
    background-color: #14243b;
    color: #f2f6fb;
}

html[data-theme="dark"] .admin-header a,
html[data-theme="dark"] .admin-link-button {
    color: #e2ebf5;
}

.notification-control,
.admin-notification-control {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.notification-trigger,
.admin-notification-trigger {
    position: relative;
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface);
    color: var(--green-deep);
    cursor: pointer;
}

.notification-trigger svg,
.admin-notification-trigger svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.notification-count {
    position: absolute;
    top: -5px;
    right: -7px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--surface);
    border-radius: 999px;
    background: #b42332;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
}
.notification-count[hidden] { display: none; }

.notification-menu {
    position: absolute;
    z-index: 1500;
    top: calc(100% + 12px);
    right: 0;
    width: min(380px, calc(100vw - 28px));
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    color: var(--ink);
    box-shadow: 0 18px 48px rgba(14, 28, 42, .22);
}

.notification-menu[hidden] { display: none; }
.notification-menu-heading { padding: 16px 18px 10px; border-bottom: 1px solid var(--line); }
.notification-menu-heading h2 { margin: 0; color: var(--ink); font-size: 16px; font-weight: 750; }
.notification-menu-items { max-height: min(58vh, 440px); overflow: auto; }
.notification-item { display: flex; width: 100%; min-height: 66px; gap: 11px; align-items: flex-start; padding: 13px 16px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; text-decoration: none; cursor: pointer; }
.notification-item:hover, .notification-item:focus-visible { background: var(--green-soft); }
.notification-item.is-decision { background: #fbf4e7; }
.notification-item-icon { flex: 0 0 25px; width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: #e6edf3; color: #284c6c; font-weight: 850; }
.notification-item.is-decision .notification-item-icon { background: #f0d79b; color: #4a3610; }
.notification-item-copy { min-width: 0; display: grid; gap: 3px; }
.notification-item-copy strong { color: var(--ink); font-size: 13px; }
.notification-item-copy small { color: var(--muted); font-size: 11px; line-height: 1.4; }
.notification-empty { margin: 0; padding: 18px; color: var(--muted); font-size: 13px; }
.notification-menu-footer { display: block; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--green-soft); color: var(--green-deep) !important; font-size: 12px; font-weight: 750; text-align: center; text-decoration: none; }

.application-card.has-updates { border-color: #c88a38; box-shadow: 0 0 0 2px rgba(200, 138, 56, .12); }
.application-card.has-updates .application-summary { background: #fffaf0; }
.update-label,
.admin-update-label { display: inline-flex; width: fit-content; align-items: center; padding: 5px 9px; border-radius: 999px; background: #e7f0f8; color: #244b6b; font-size: 11px; font-weight: 800; }
.update-label.decision,
.admin-update-label.decision { background: #f4dfad; color: #533d11; }
.admin-notification-list { display: grid; gap: 3px; margin: 10px 0; }
.admin-notifications .notification-item { border: 1px solid rgba(125, 82, 38, .14); border-radius: 8px; color: var(--ink); }
tbody tr.has-updates { box-shadow: inset 4px 0 #d19a43; cursor: pointer; }
tbody tr.has-updates td:first-child { font-weight: 800; }

.process-page, .pricing-page { width: min(100%, 1040px); min-height: calc(100vh - 140px); margin: 0 auto; padding: clamp(40px, 7vw, 76px) clamp(20px, 5vw, 56px); }
.process-intro { max-width: 760px; margin-bottom: 42px; }
.process-eyebrow { margin-bottom: 12px; color: var(--rust); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.process-intro h1, .pricing-page h1 { margin-bottom: 18px; color: var(--green-deep); font-family: Georgia, "Times New Roman", serif; font-size: clamp(38px, 5vw, 58px); font-weight: 400; line-height: 1.05; }
.process-intro > p:not(.process-eyebrow) { max-width: 740px; color: var(--muted); font-size: 17px; line-height: 1.7; }
.process-intro .process-availability { margin-top: 16px; padding-left: 14px; border-left: 3px solid var(--rust); font-size: 14px !important; }
.process-intro .process-availability, .returns-policy p { color: #59645b; }
.process-eyebrow, .pricing-eyebrow { color: #9e4f36; }
.process-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 42px; list-style: none; }
.process-steps li { min-width: 0; padding: 24px 0 26px; border-top: 1px solid var(--line); }
.process-steps h2 { margin-bottom: 10px; color: var(--green-deep); font-family: Georgia, "Times New Roman", serif; font-size: 24px; font-weight: 400; line-height: 1.25; }
.process-steps p { color: #536158; font-size: 14px; line-height: 1.75; }
.shipping-faq { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.shipping-faq h2 { margin: 0 0 10px; color: var(--green-deep); font-family: Georgia, "Times New Roman", serif; font-size: 28px; font-weight: 400; }
.shipping-faq p { max-width: 760px; margin-top: 8px; color: #59645b; font-size: 15px; line-height: 1.65; }
.delivery-estimate { margin-top: 16px; padding: 14px 16px; border-left: 3px solid var(--rust); background: #f3eee1; color: #3d493f; }
.delivery-estimate strong { display: block; font-size: 14px; line-height: 1.5; }
.delivery-estimate p { margin-top: 6px; font-size: 13px; }
.process-cta { margin-top: 34px; padding: clamp(24px, 5vw, 44px); background: var(--green-deep); color: #fffefa; }
.process-cta h2 { max-width: 660px; margin-bottom: 10px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(28px, 4vw, 40px); font-weight: 400; line-height: 1.15; }
.process-cta p { max-width: 660px; margin-bottom: 22px; color: #d7e1e6; line-height: 1.65; }
.process-cta .start-button { background: var(--gold); color: #25372c; }
.pricing-page { max-width: 1120px; padding-top: 54px; padding-bottom: 72px; }
.pricing-intro { display: block; position: static; z-index: auto; min-width: 0; min-height: 0; height: auto; max-width: 760px; margin: 0 0 34px; padding: 0; gap: 0; border: 0; background: transparent; text-align: left; }
.pricing-eyebrow, .calculator-kicker { color: var(--rust); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.pricing-intro h1 { max-width: 100%; margin: 8px 0 14px; color: var(--green-deep); font-family: Georgia, "Times New Roman", serif; font-size: clamp(32px, 4.5vw, 48px); font-weight: 400; line-height: 1.1; text-wrap: balance; }
.pricing-intro > p:last-child { color: var(--muted); font-size: 17px; line-height: 1.65; }
.fee-calculator { display: grid; gap: 24px; width: min(100%, 850px); margin: 0 auto 58px; padding: 34px 38px; border: 1px solid #2f5271; background: var(--green-deep); color: #fffefa; box-shadow: var(--shadow-soft); }
.calculator-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; }
.calculator-kicker { margin-bottom: 6px; color: #e6bf70; }
.calculator-heading h2 { color: #fffefa; font-family: Georgia, "Times New Roman", serif; font-size: 30px; font-weight: 400; line-height: 1.2; }
.order-limit { max-width: 250px; padding: 9px 12px; border: 1px solid rgba(255,255,255,.32); color: #f3dfb2; font-size: 12px; font-weight: 700; line-height: 1.45; text-align: center; }
.calculator-results { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid rgba(255,255,255,.22); border-bottom: 1px solid rgba(255,255,255,.22); }
.calculator-result { display: grid; gap: 5px; padding: 19px 16px 20px 0; }
.calculator-result + .calculator-result { padding-left: 22px; border-left: 1px solid rgba(255,255,255,.22); }
.calculator-result span { color: #d7e1e6; font-size: 13px; }
.calculator-result output { color: #fffefa; font-family: Georgia, "Times New Roman", serif; font-size: 34px; font-variant-numeric: tabular-nums; line-height: 1.15; }
.calculator-fee-result output { color: #f0cd83; font-size: 40px; }
.slider-control { display: grid; gap: 10px; }
.slider-control label, .calculator-input-row > label { color: #fffefa; font-size: 14px; font-weight: 700; }
.slider-control input[type="range"] { width: 100%; height: 24px; margin: 2px 0; accent-color: #e6bf70; cursor: pointer; }
.slider-control input[type="range"]:focus-visible { outline-color: #f0cd83; }
.slider-scale { display: flex; justify-content: space-between; color: #d7e1e6; font-size: 11px; font-variant-numeric: tabular-nums; }
.calculator-input-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 20px; }
.currency-input { display: flex; align-items: center; gap: 8px; width: min(100%, 220px); padding: 0 12px; border: 1px solid #aebfca; background: #fffefa; color: var(--green-deep); }
.currency-input span { color: #263d32; font-size: 16px; font-weight: 700; }
.currency-input input { width: 100%; min-width: 0; height: 44px; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 16px; font-variant-numeric: tabular-nums; }
.currency-input:focus-within { outline: 3px solid #e6bf70; outline-offset: 2px; }
.currency-input:has(input[aria-invalid="true"]) { border-color: #ffb6a4; }
.calculator-validation { grid-column: 1 / -1; color: #ffd1c6; font-size: 13px; }
.calculator-validation[hidden] { display: none; }
.fee-limits { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; color: #f3dfb2; font-size: 12px; font-weight: 700; }
.pricing-section { margin: 0 auto 52px; }
.pricing-section > h2 { margin-bottom: 20px; color: var(--green-deep); font-family: Georgia, "Times New Roman", serif; font-size: 32px; font-weight: 400; }
.cost-parts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cost-part { min-width: 0; padding: 20px; border-top: 2px solid #c9d4db; background: var(--surface); }
.cost-part-service { border-top-color: var(--rust); }
.cost-part-number { color: var(--rust); font-size: 11px; font-weight: 800; }
.cost-part h3, .coverage-item h3 { margin: 8px 0 6px; color: var(--green-deep); font-size: 16px; }
.cost-part p, .coverage-item p { color: var(--muted); font-size: 13px; line-height: 1.6; }
.coverage-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.coverage-item { display: flex; align-items: flex-start; gap: 12px; }
.coverage-icon { flex: 0 0 36px; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); color: var(--green); }
.coverage-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.coverage-item h3 { margin-top: 1px; }
.pricing-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 28px; border-left: 3px solid var(--rust); background: #eceee8; }
.pricing-cta h2 { max-width: 660px; color: var(--green-deep); font-size: 17px; font-weight: 650; line-height: 1.55; }
.pricing-cta .start-button { flex: 0 0 auto; white-space: normal; text-align: center; }
.pricing-body .theme-toggle { position: static; margin: 18px 22px 22px auto; }
.pricing-payment-note { width: min(100%, 850px); margin: 0 auto 48px; padding: 18px 20px; border-left: 3px solid var(--green); background: var(--surface); }
.pricing-payment-note h2 { margin-bottom: 5px; color: var(--green-deep); font-size: 15px; }
.pricing-payment-note p, .returns-policy p { color: var(--muted); font-size: 13px; line-height: 1.65; }
.process-page .process-eyebrow, .pricing-page .pricing-eyebrow { color: #984b32; }
.process-page .process-intro > p.process-availability,
.pricing-page .returns-policy p { color: #59645b; }
.pricing-payment-note a { display: inline-block; margin-top: 9px; color: var(--green-deep); font-size: 13px; font-weight: 750; }
.returns-policy { max-width: 850px; }
.returns-policy > p + p { margin-top: 11px; }
.about-page { width: min(100%, 1040px); margin: 0 auto; padding: 64px clamp(20px, 5vw, 56px) 72px; }
.about-intro { max-width: 760px; padding-bottom: 34px; }
.about-eyebrow { margin-bottom: 9px; color: var(--rust); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.about-intro h1 { margin-bottom: 20px; color: var(--green-deep); font-family: Georgia, "Times New Roman", serif; font-size: 52px; font-weight: 400; line-height: 1.08; }
.about-intro > p:not(.about-eyebrow), .about-section > p, .about-section > div > p:not(.about-eyebrow) { margin-top: 12px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.about-section { position: relative; margin-top: 18px; padding: 28px 0; border-top: 1px solid var(--line); }
.about-section h2 { margin-bottom: 10px; color: var(--green-deep); font-family: Georgia, "Times New Roman", serif; font-size: 30px; font-weight: 400; line-height: 1.2; }
.about-support { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.about-support > div { max-width: 680px; }
.about-mark { color: #dce5e3; font-family: Georgia, "Times New Roman", serif; font-size: 52px; font-weight: 400; white-space: nowrap; }
.whatsapp-button { margin-top: 15px; }
.whatsapp-button[hidden] { display: none; }
.whatsapp-unavailable { margin-top: 15px !important; color: var(--muted) !important; font-size: 13px !important; }
.about-contact-link { display: inline-block; margin-top: 8px; color: var(--green-deep); font-size: 13px; font-weight: 750; }
.about-payments { padding: 26px; border: 1px solid var(--line); background: var(--surface); }
.about-payments .about-payment-note { color: var(--green-deep); font-weight: 700; }
.about-process { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.about-process > div { max-width: 680px; }
.about-process .secondary-button { flex: 0 0 auto; }
nav a[aria-current="page"] { color: var(--rust); text-decoration: underline; text-underline-offset: 5px; }

@media (max-width: 760px) {
    .pricing-page { padding-top: 38px; padding-bottom: 48px; }
    .fee-calculator { gap: 20px; padding: 24px 20px; }
    .calculator-heading { align-items: flex-start; flex-direction: column; }
    .calculator-heading h2 { font-size: 26px; }
    .order-limit { max-width: none; text-align: left; }
    .calculator-results { grid-template-columns: 1fr 1fr; }
    .calculator-result output { font-size: 27px; }
    .calculator-fee-result output { font-size: 31px; }
    .calculator-result + .calculator-result { padding-left: 14px; }
    .calculator-input-row { grid-template-columns: 1fr; }
    .currency-input { width: 100%; }
    .cost-parts, .coverage-list { grid-template-columns: 1fr; }
    .pricing-section > h2 { font-size: 28px; }
    .pricing-cta { align-items: flex-start; flex-direction: column; padding: 22px 18px; }
    .pricing-body .theme-toggle { width: 48px; height: 48px; margin: 16px 16px 16px auto; }
    .about-page { padding-top: 40px; padding-bottom: 50px; }
    .about-intro h1 { font-size: 40px; }
    .about-section h2 { font-size: 26px; }
    .about-support, .about-process { align-items: flex-start; flex-direction: column; }
    .about-mark { display: none; }
    .about-payments { padding: 20px 16px; }
}

@media (max-width: 1050px) {
    body > header:not(.admin-header) { flex-wrap: wrap; }
    body > header:not(.admin-header) nav { flex: 0 0 100%; order: 3; width: 100%; margin-left: 0; justify-content: flex-start; flex-wrap: wrap; }
}

@media (max-width: 700px) {
    .process-steps { grid-template-columns: 1fr; }
    .process-steps li { padding: 21px 0 23px; }
    .pricing-breakdown li { grid-template-columns: 1fr; gap: 4px; }
}

html[data-theme="dark"] .notification-trigger,
html[data-theme="dark"] .admin-notification-trigger { border-color: #5b7189; background: #203149; color: #f2f6fb; }
html[data-theme="dark"] .notification-menu { border-color: #43566e; background: #1b293a; color: #eef3fa; }
html[data-theme="dark"] .process-intro h1,
html[data-theme="dark"] .process-steps h2,
html[data-theme="dark"] .shipping-faq h2,
html[data-theme="dark"] .pricing-page h1,
html[data-theme="dark"] .pricing-section > h2,
html[data-theme="dark"] .cost-part h3,
html[data-theme="dark"] .coverage-item h3,
html[data-theme="dark"] .pricing-cta h2 { color: #e6edf6; }
html[data-theme="dark"] .process-steps p,
html[data-theme="dark"] .shipping-faq p,
html[data-theme="dark"] .pricing-page > p,
html[data-theme="dark"] .pricing-intro > p:last-child,
html[data-theme="dark"] .cost-part p,
html[data-theme="dark"] .coverage-item p { color: #c0cbd9; }
html[data-theme="dark"] .delivery-estimate { background: #25374a; color: #e6edf6; }
html[data-theme="dark"] .cost-part,
html[data-theme="dark"] .coverage-icon { border-color: #43566e; background: #1b293a; }
html[data-theme="dark"] .pricing-cta { background: #24364a; }
html[data-theme="dark"] .fee-calculator,
html[data-theme="dark"] .process-cta { border-color: #3b5875; background: #14243b; color: #f0f4f9; }
html[data-theme="dark"] .process-cta h2 { color: #f0f4f9; }
html[data-theme="dark"] .process-cta p { color: #d7e1e6; }
html[data-theme="dark"] .process-cta .start-button { background: #edca7d; color: #1d2d3d; }
html[data-theme="dark"] .about-intro h1,
html[data-theme="dark"] .about-section h2,
html[data-theme="dark"] .pricing-payment-note h2 { color: #e6edf6; }
html[data-theme="dark"] .about-intro > p:not(.about-eyebrow),
html[data-theme="dark"] .about-section > p,
html[data-theme="dark"] .about-section > div > p:not(.about-eyebrow),
html[data-theme="dark"] .pricing-payment-note p,
html[data-theme="dark"] .returns-policy p { color: #c0cbd9; }
html[data-theme="dark"] .process-page .process-eyebrow,
html[data-theme="dark"] .pricing-page .pricing-eyebrow { color: #e6ad94; }
html[data-theme="dark"] .process-page .process-intro > p.process-availability { color: #c0cbd9; }
html[data-theme="dark"] .process-steps .delivery-estimate p,
html[data-theme="dark"] .product-preview-details,
html[data-theme="dark"] .review-product-details { color: #c0cbd9; }
html[data-theme="dark"] .process-availability,
html[data-theme="dark"] .returns-policy p { color: #c0cbd9; }
html[data-theme="dark"] .process-steps .delivery-estimate strong { color: #f0f4f9; }
html[data-theme="dark"] .product-details-input { border-color: #4b5e74; background: #121c29; color: #f0f4f9; }
html[data-theme="dark"] .customer-request-details { background: #24364a; color: #e6edf6; }
html[data-theme="dark"] .customer-request-details strong { color: #f0f4f9; }
html[data-theme="dark"] .about-payments,
html[data-theme="dark"] .pricing-payment-note { border-color: #43566e; background: #1b293a; }
html[data-theme="dark"] .notification-menu-heading,
html[data-theme="dark"] .notification-item { border-color: #3a4c62; }
html[data-theme="dark"] .notification-menu-heading h2,
html[data-theme="dark"] .notification-item-copy strong { color: #f0f5fb; }
html[data-theme="dark"] .notification-item-copy small,
html[data-theme="dark"] .notification-empty { color: #c0cbd9; }
html[data-theme="dark"] .notification-item:hover,
html[data-theme="dark"] .notification-item:focus-visible { background: #293e57; }
html[data-theme="dark"] .notification-item.is-decision { background: #3a3427; }
html[data-theme="dark"] .notification-item-icon { background: #304b65; color: #e5f2ff; }
html[data-theme="dark"] .notification-item.is-decision .notification-item-icon { background: #786136; color: #fff0c4; }
html[data-theme="dark"] .notification-menu-footer { border-color: #3a4c62; background: #253a50; color: #e7f1fc !important; }
html[data-theme="dark"] .application-card.has-updates { border-color: #c59a53; box-shadow: 0 0 0 2px rgba(197, 154, 83, .17); }
html[data-theme="dark"] .application-card.has-updates .application-summary { background: #29374a; }
html[data-theme="dark"] .update-label,
html[data-theme="dark"] .admin-update-label { background: #314d67; color: #e6f3ff; }
html[data-theme="dark"] .update-label.decision,
html[data-theme="dark"] .admin-update-label.decision { background: #69552f; color: #fff0c5; }
html[data-theme="dark"] tbody tr.has-updates { box-shadow: inset 4px 0 #d3a350; }

@media (max-width: 760px) {
    .notification-menu { right: -8px; }
    .admin-notification-menu { right: -48px; }
    .notification-control, .admin-notification-control { z-index: 12; }
    .admin-header nav { flex-wrap: wrap; }
}

html[data-theme="dark"] footer {
    background-color: #151f2d;
    color: #b9c5d3;
}

#continueQuote,
.submit-request-button {
    display: block;
    width: min(100%, 220px);
    margin: 18px auto 0;
    padding: 13px 24px;
    border: 0;
    border-radius: 7px;
    background: #047857;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

#continueQuote:hover,
.submit-request-button:hover {
    background: #065f46;
}

#continueQuote[hidden] {
    display: none;
}

.review-page {
    min-height: calc(100vh - 140px);
    width: min(100%, 680px);
    margin: 0 auto;
    padding: 60px 20px;
    text-align: center;
}

.review-page h1 {
    font-size: 42px;
    margin-bottom: 14px;
}

.review-page > p {
    color: #6b7280;
    margin-bottom: 28px;
}

.review-products {
    display: grid;
    gap: 12px;
    text-align: left;
}

.review-product {
    display: grid;
    gap: 7px;
    padding: 18px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.review-product a {
    overflow-wrap: anywhere;
    color: #374151;
}