@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Playfair+Display:wght@600;700;800&display=swap');

:root {
    --bg: #08111f;
    --bg-2: #0d1728;
    --panel: rgba(11, 22, 40, 0.82);
    --panel-strong: #10203a;
    --panel-soft: rgba(255, 255, 255, 0.04);
    --text: #f7f7fb;
    --muted: #9eadc6;
    --line: rgba(255, 255, 255, 0.09);
    --gold: #d3ad5f;
    --gold-2: #f3d492;
    --accent: #38b7b0;
    --success: #2fb67a;
    --danger: #ff6d6d;
    --shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
    --radius: 28px;
}

body.light-theme {
    --bg: #f6f0e5;
    --bg-2: #fdfbf7;
    --panel: rgba(255, 255, 255, 0.88);
    --panel-strong: #ffffff;
    --panel-soft: rgba(12, 22, 40, 0.04);
    --text: #111827;
    --muted: #526072;
    --line: rgba(15, 23, 42, 0.12);
    --shadow: 0 28px 70px rgba(27, 31, 40, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Inter", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(211, 173, 95, 0.16), transparent 26%),
        radial-gradient(circle at top right, rgba(56, 183, 176, 0.12), transparent 30%),
        linear-gradient(180deg, var(--bg), var(--bg-2));
    min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
img { max-width: 100%; display: block; }

.container { width: min(1240px, calc(100% - 32px)); margin: 0 auto; }
.narrow { width: min(900px, calc(100% - 32px)); }
.tiny-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(211, 173, 95, 0.25);
    background: rgba(211, 173, 95, 0.08);
    color: var(--gold-2);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.72rem;
    font-weight: 700;
}
.light-theme .tiny-label {
    background: rgba(211, 173, 95, 0.14);
    border-color: rgba(211, 173, 95, 0.34);
    color: #9f6a11;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(20px);
    background: rgba(8, 17, 31, 0.72);
    border-bottom: 1px solid var(--line);
}
.light-theme .site-header { background: rgba(250, 248, 243, 0.8); }
.nav-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 16px 0;
}
.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}
.brand-badge {
    width: 50px;
    height: 50px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    font-weight: 800;
    color: #09101d;
    background: linear-gradient(135deg, var(--gold), var(--gold-2));
    box-shadow: 0 18px 40px rgba(211, 173, 95, 0.28);
}
.brand strong {
    display: block;
    font-size: 1rem;
    letter-spacing: -0.02em;
}
.brand small {
    display: block;
    color: var(--muted);
    font-size: 0.76rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.menu-toggle { display: none; }
.nav-links, .nav-actions, .button-row, .button-column, .check-row, .contact-points, .inline-tags {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}
.nav-links { justify-content: center; }
.nav-links a, .nav-links button, .theme-switch, .menu-toggle {
    color: var(--muted);
    background: transparent;
    border: 0;
    cursor: pointer;
}
.nav-login-button { padding: 10px 16px; }
.nav-links a:hover, .nav-links button:hover, .theme-switch:hover { color: var(--text); }
.nav-more { position: relative; }
.nav-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 230px;
    background: var(--panel-strong);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 12px;
    display: grid;
    gap: 8px;
}
.nav-account { position: relative; }
.nav-link-button,
.footer-link-button {
    appearance: none;
    border: 0;
    background: none;
    padding: 0;
    margin: 0;
    color: var(--muted);
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.nav-dropdown .nav-link-button {
    width: 100%;
    display: block;
    padding: 6px 0;
}
.dropdown-note {
    display: block;
    margin-top: 4px;
    color: #b45309;
    font-size: 0.88rem;
}
.cart-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 999px;
    background: var(--panel-soft);
    border: 1px solid var(--line);
}
.cart-pill span {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--gold), var(--gold-2));
    color: #09101d;
    font-weight: 700;
}

.hero-shell, .page-hero, .policy-hero, .contact-hero, .content-section, .auth-shell {
    position: relative;
    padding: 88px 0;
}
.hero-shell {
    min-height: calc(100vh - 84px);
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero-backdrop {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(8, 17, 31, 0.92), rgba(8, 17, 31, 0.7)),
        url('https://images.unsplash.com/photo-1498050108023-c5249f4df085?auto=format&fit=crop&w=1600&q=80') center/cover;
    opacity: 0.95;
}
.hero-grid, .contact-grid, .cart-grid, .checkout-grid, .dashboard-grid, .admin-layout, .feature-grid, .step-grid, .metrics-grid, .footer-grid, .payment-grid {
    display: grid;
    gap: 24px;
}
.hero-grid, .contact-grid, .checkout-grid, .cart-grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
}
.hero-copy, .hero-showcase, .admin-main, .admin-sidebar { position: relative; z-index: 1; }
.hero-copy h1, .page-hero h1, .policy-hero h1, .contact-hero h1, .section-header h1 {
    font-family: "Playfair Display", serif;
    font-size: clamp(2.4rem, 5vw, 4.8rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
    margin: 18px 0;
    text-wrap: balance;
}
.hero-copy p, .page-hero p, .policy-hero p, .contact-hero p, .section-header p, .panel-card p, .feature-card p, .step-card p, .policy-card p, .admin-row-card p, .info-card p, .list-card p, .summary-card p {
    color: var(--muted);
    line-height: 1.75;
}
.contact-grid { align-items: start; }
.contact-hero h1 {
    font-size: clamp(2.6rem, 4.6vw, 4.5rem);
    max-width: 11ch;
}
.contact-hero p { max-width: 68ch; }
.section-header.compact h2 {
    font-family: "Playfair Display", serif;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1;
    margin: 18px 0 10px;
}

.show-panel, .feature-card, .step-card, .metric-card, .panel-card, .policy-card, .info-card, .summary-card, .cart-card, .auth-card, .empty-card, .admin-row-card, .list-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.show-panel, .feature-card, .step-card, .metric-card, .panel-card, .policy-card, .summary-card, .auth-card, .empty-card, .admin-row-card, .list-card {
    padding: 24px;
}
.auth-shell {
    min-height: calc(100vh - 120px);
    display: grid;
    place-items: center;
}
.auth-modal-card {
    width: min(560px, 100%);
    margin: 0 auto;
    background: var(--panel-strong);
}
.switch-text {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    color: var(--muted);
}
.text-button {
    border: 0;
    background: transparent;
    color: var(--gold);
    cursor: pointer;
    padding: 0;
    font-weight: 700;
    appearance: none;
    box-shadow: none;
}
.show-main { min-height: 0; }
.show-stack { display: grid; gap: 20px; }
.metrics-band {
    padding: 0 0 64px;
    margin-top: -40px;
    position: relative;
    z-index: 2;
}
.metrics-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.metric-card strong {
    display: block;
    font-size: 2.4rem;
    margin-bottom: 8px;
}
.metric-card span { color: var(--muted); }
.feature-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.step-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.step-card strong {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--gold), var(--accent));
    color: #07101d;
    font-weight: 800;
    margin-bottom: 18px;
}
.content-section.alt {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
}

.reference-banner {
    display: grid;
    gap: 18px;
    padding: 28px;
    border-radius: 32px;
    background: linear-gradient(135deg, rgba(211, 173, 95, 0.18), rgba(11, 22, 40, 0.92));
    border: 1px solid rgba(211, 173, 95, 0.18);
    box-shadow: var(--shadow);
    margin-bottom: 28px;
}
.reference-banner h3 {
    margin: 6px 0 10px;
    font-size: clamp(1.7rem, 2.4vw, 2.3rem);
}
.reference-banner p { margin: 0; }
.reference-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
}
.reference-actions input { min-width: 0; }
.reference-actions .button {
    min-width: 230px;
}
.reference-summary {
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.light-theme .reference-banner {
    background: linear-gradient(135deg, rgba(255, 249, 238, 0.98), rgba(247, 237, 214, 0.96));
    border-color: rgba(179, 125, 26, 0.2);
    box-shadow: 0 26px 60px rgba(164, 125, 48, 0.14);
}
.light-theme .reference-banner h3,
.light-theme .reference-banner p {
    color: #172234;
}
.light-theme .reference-actions input {
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(151, 111, 32, 0.15);
    color: #172234;
}
.light-theme .reference-actions input::placeholder { color: #718096; }
.light-theme .reference-summary {
    background: rgba(255, 255, 255, 0.76);
    border-color: rgba(15, 23, 42, 0.08);
}
.filter-bar {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.service-card {
    overflow: hidden;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 32px;
    box-shadow: var(--shadow);
}
.service-image, .cart-image {
    min-height: 220px;
    background-size: cover;
    background-position: center;
}
.service-image.large { min-height: 420px; border-radius: 24px; }
.service-body, .cart-content { padding: 28px; }
.service-body {
    display: grid;
    gap: 16px;
}
.service-body h3,
.service-body p {
    margin: 0;
}

.investment-box {
    display: grid;
    gap: 8px;
    padding: 18px 20px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(236, 243, 255, 0.96), rgba(245, 248, 255, 0.96));
    border: 1px solid rgba(75, 105, 170, 0.12);
}

.investment-box span {
    color: #2f66f6;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.82rem;
    font-weight: 700;
}

.investment-box strong {
    font-size: 1.85rem;
    line-height: 1.1;
}

body:not(.light-theme) .investment-box {
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.92), rgba(30, 41, 59, 0.92));
    border: 1px solid rgba(96, 165, 250, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body:not(.light-theme) .investment-box span {
    color: #93c5fd;
}

body:not(.light-theme) .investment-box strong {
    color: #f8fafc;
    text-shadow: 0 6px 18px rgba(15, 23, 42, 0.28);
}

.service-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
    min-height: 52px;
    white-space: nowrap;
}
.button:hover { transform: translateY(-1px); }
.button.primary {
    color: #08111f;
    background: linear-gradient(135deg, var(--gold), var(--gold-2));
    box-shadow: 0 18px 36px rgba(211, 173, 95, 0.25);
}
.button.secondary {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--line);
    color: var(--text);
}
.button.subtle {
    background: transparent;
    border-color: var(--line);
    color: var(--muted);
}
.light-theme .button.secondary {
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(15, 23, 42, 0.1);
    color: #182335;
}
.light-theme .button.subtle {
    background: rgba(255, 255, 255, 0.66);
    border-color: rgba(15, 23, 42, 0.08);
    color: #4d5d71;
}
.button-column {
    display: grid;
    gap: 12px;
}
.button-row {
    row-gap: 14px;
}
.button-row > .button,
.button-row > a.button {
    flex: 0 0 auto;
}
.button-row.compact {
    gap: 10px;
}
.button-row.stack-mobile > .button,
.button-row.stack-mobile > a.button {
    min-width: 180px;
}
.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--line);
    color: var(--muted);
}
.chip.success {
    background: rgba(47, 182, 122, 0.14);
    color: #89e0b3;
    border-color: rgba(47, 182, 122, 0.25);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.form-grid .full, .full-span { grid-column: 1 / -1; }
label {
    display: grid;
    gap: 8px;
    font-weight: 600;
}
input, textarea, select {
    width: 100%;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    outline: none;
}
.light-theme input, .light-theme textarea, .light-theme select { background: rgba(15, 23, 42, 0.03); }
select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, currentColor 50%),
        linear-gradient(135deg, currentColor 50%, transparent 50%);
    background-position:
        calc(100% - 22px) calc(50% - 2px),
        calc(100% - 16px) calc(50% - 2px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 42px;
}
body:not(.light-theme) select,
body:not(.light-theme) input,
body:not(.light-theme) textarea {
    background-color: rgba(255, 255, 255, 0.05);
    color: #f7f7fb;
}
.light-theme select,
.light-theme input,
.light-theme textarea {
    background-color: rgba(255, 255, 255, 0.92);
    color: #111827;
}
select option {
    color: #0f172a;
    background: #ffffff;
}
select:focus,
input:focus,
textarea:focus {
    border-color: rgba(211, 173, 95, 0.65);
    box-shadow: 0 0 0 4px rgba(211, 173, 95, 0.12);
}
textarea { min-height: 110px; resize: vertical; }
.inline-field {
    display: flex;
    align-items: end;
    gap: 12px;
}
.inline-button { width: auto; }
.contact-points {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}
.contact-points .info-card:last-child { grid-column: 1 / -1; }
.info-card {
    min-width: 0;
    padding: 22px 24px;
}
.info-card strong {
    display: block;
    margin-bottom: 10px;
}
.info-card p {
    margin: 0;
    overflow-wrap: anywhere;
}
.contact-hero .button-row,
.panel-card .button-row {
    align-items: center;
    row-gap: 12px;
}
.contact-hero .button-row > .button,
.contact-hero .button-row > a.button,
.auth-card .button-column > .button,
.auth-card .button-column > a.button {
    width: 100%;
}
.checkout-auth-modal .modal-body { padding-right: 0; }
.checkout-auth-card {
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
}
.checkout-auth-inline {
    margin-bottom: 22px;
}
.inline-auth-card {
    margin-top: 18px;
}
.status-alert.compact {
    margin-bottom: 18px;
}
.toast-stack {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 420;
    display: grid;
    gap: 12px;
    width: min(360px, calc(100vw - 32px));
}
.toast {
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(10, 18, 32, 0.96);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
    color: #f8fafc;
}
.toast.success {
    border-color: rgba(74, 222, 128, 0.45);
    background: rgba(6, 78, 59, 0.96);
}
.toast.error {
    border-color: rgba(248, 113, 113, 0.5);
    background: rgba(127, 29, 29, 0.97);
}
.toast strong {
    display: block;
    margin-bottom: 4px;
}
.light-theme .toast {
    background: rgba(15, 23, 42, 0.96);
    color: #f8fafc;
}
.summary-card p,
.panel-card p {
    margin-top: 0;
}
.check-row {
    justify-content: space-between;
    margin: 18px 0;
}
.check-row label { display: flex; align-items: center; gap: 10px; font-weight: 500; color: var(--muted); }
.check-row input { width: auto; }
.inline-message, .fine-print { color: var(--muted); }

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 240;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 96px 22px 22px;
    background: rgba(4, 8, 16, 0.74);
    backdrop-filter: blur(10px);
    overflow-y: auto;
}
.modal-panel {
    width: min(920px, 100%);
    max-height: calc(100vh - 118px);
    padding: 28px;
    border-radius: 32px;
    background: var(--panel-strong);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
}
.modal-head {
    padding-right: 44px;
    margin-bottom: 18px;
}
.modal-head h2 {
    margin: 0 0 8px;
    font-family: "Playfair Display", serif;
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    line-height: 1;
}
.modal-head p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}
.modal-body {
    overflow-y: auto;
    padding-right: 4px;
}
.modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 1.6rem;
    cursor: pointer;
}
.modal-body .button-row {
    margin-top: 18px;
}
.modal-body .button-row > .button,
.modal-body .button-row > a.button {
    flex: 0 0 auto;
}

.cart-card {
    overflow: hidden;
    display: grid;
    grid-template-columns: 280px 1fr;
}
.cart-image,
.cart-visual {
    min-height: 100%;
}
.cart-visual {
    position: relative;
    padding: 28px;
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.2), transparent 42%),
        radial-gradient(circle at bottom right, rgba(234, 179, 8, 0.18), transparent 38%),
        linear-gradient(145deg, rgba(17, 24, 39, 0.98), rgba(30, 41, 59, 0.92));
    color: #f8fafc;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
}
.cart-visual h3 {
    margin: 0;
    font-size: 1.8rem;
    line-height: 1.15;
}
.cart-visual p {
    margin: 0;
    color: rgba(226, 232, 240, 0.8);
}
.cart-visual-stack {
    display: grid;
    gap: 12px;
}
.cart-visual-card {
    border-radius: 20px;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}
.cart-visual-card.primary {
    background: rgba(255, 255, 255, 0.08);
    display: grid;
    gap: 8px;
}
.cart-visual-card.primary strong {
    font-size: 1.05rem;
}
.cart-visual-card.primary span {
    font-size: 1.35rem;
    font-weight: 700;
    color: #facc15;
}
.cart-visual-card.secondary {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(241, 245, 249, 0.88);
}
.summary-card { align-self: start; }
.sub-panel {
    padding: 18px;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
}
.offline-note {
    margin: 18px 0;
    padding: 18px;
    border-radius: 20px;
    background: rgba(211, 173, 95, 0.1);
    border: 1px solid rgba(211, 173, 95, 0.2);
}

.dashboard-grid { grid-template-columns: 1fr 1fr; }
.list-stack, .admin-list { display: grid; gap: 14px; }
.ticket-layout { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: 20px; align-items: start; }
.admin-ticket-layout { grid-template-columns: minmax(280px, 360px) 1fr; }
.list-card strong, .admin-row-card strong, .panel-card h3, .policy-card h3, .feature-card h3, .step-card h3 {
    display: block;
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.admin-layout { grid-template-columns: 250px 1fr; align-items: start; }
.admin-sidebar { display: grid; gap: 10px; position: sticky; top: 108px; }
.side-link {
    text-align: left;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--text);
    cursor: pointer;
}
.side-link.active {
    background: linear-gradient(135deg, rgba(211, 173, 95, 0.24), rgba(56, 183, 176, 0.16));
    border-color: rgba(211, 173, 95, 0.24);
}
.section-headline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}
.payment-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gateway-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: start;
    margin-bottom: 16px;
}
.admin-main {
    min-width: 0;
}
.admin-row-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: start;
}
.admin-row-card > div:first-child,
.panel-card,
.summary-card,
.policy-card,
.list-card,
.feature-card,
.step-card {
    min-width: 0;
}
.admin-row-card p,
.admin-row-card code,
.panel-card p,
.summary-card p,
.list-card p,
.policy-card p {
    overflow-wrap: anywhere;
}
.admin-section .form-grid,
.payment-grid .form-grid {
    align-items: start;
}
.payment-grid input,
.payment-grid textarea,
.payment-grid select,
.admin-section input,
.admin-section textarea,
.admin-section select {
    min-width: 0;
}
.list-card,
.admin-row-card {
    overflow: hidden;
}
.ticket-card-button {
    width: 100%;
    text-align: left;
    cursor: pointer;
}
.ticket-card-button.active {
    border-color: rgba(209, 180, 122, 0.7);
    box-shadow: 0 0 0 1px rgba(209, 180, 122, 0.2), var(--shadow);
}
.ticket-thread-card { display: grid; gap: 18px; }
.ticket-thread {
    display: grid;
    gap: 14px;
    max-height: 520px;
    overflow-y: auto;
    padding-right: 4px;
}
.ticket-thread-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: start;
}
.message-bubble {
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255,255,255,0.03);
}
.message-bubble.admin {
    background: rgba(209, 180, 122, 0.12);
    border-color: rgba(209, 180, 122, 0.28);
}
.message-bubble strong {
    display: block;
    margin-bottom: 8px;
}
.attachment-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}
.attachment-chip {
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.04);
    color: var(--text);
    font-size: 0.9rem;
}
code {
    display: block;
    white-space: pre-wrap;
    word-break: break-word;
    padding-top: 8px;
    color: var(--muted);
}

.policy-stack { display: grid; gap: 18px; }
.footer-grid { grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr; }
.site-footer {
    border-top: 1px solid var(--line);
    padding: 28px 0 42px;
}
.footer-grid a, .footer-grid p { display: block; color: var(--muted); margin: 0 0 10px; }
.footer-link-button { display: block; margin: 0 0 10px; }
.footer-legal {
    padding-top: 20px;
    color: var(--muted);
    border-top: 1px solid var(--line);
    margin-top: 18px;
}

.floating-whatsapp {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 60;
    padding: 14px 18px;
    border-radius: 999px;
    background: #19a85a;
    color: white;
    box-shadow: var(--shadow);
}

body.light-theme {
    background:
        radial-gradient(circle at top left, rgba(67, 107, 255, 0.08), transparent 24%),
        radial-gradient(circle at top right, rgba(211, 173, 95, 0.12), transparent 26%),
        linear-gradient(180deg, #f6f8ff 0%, #eef3ff 54%, #f7f9ff 100%);
}

.light-theme .site-header {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(31, 48, 92, 0.08);
    box-shadow: 0 14px 40px rgba(43, 61, 106, 0.08);
}

.light-theme .cart-pill,
.light-theme .side-link,
.light-theme .show-panel,
.light-theme .feature-card,
.light-theme .step-card,
.light-theme .metric-card,
.light-theme .panel-card,
.light-theme .policy-card,
.light-theme .summary-card,
.light-theme .cart-card,
.light-theme .auth-card,
.light-theme .empty-card,
.light-theme .admin-row-card,
.light-theme .list-card,
.light-theme .info-card {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(57, 76, 120, 0.08);
    box-shadow: 0 18px 48px rgba(77, 95, 140, 0.08);
}
.light-theme .cart-visual {
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.18), transparent 42%),
        radial-gradient(circle at bottom right, rgba(245, 158, 11, 0.16), transparent 38%),
        linear-gradient(160deg, #0f172a, #1e3a8a);
}

.light-theme .button.primary {
    color: #ffffff;
    background: linear-gradient(135deg, #2f66f6, #4c82ff);
    box-shadow: 0 16px 30px rgba(47, 102, 246, 0.26);
}

.light-theme .brand-badge,
.light-theme .cart-pill span {
    color: #ffffff;
    background: linear-gradient(135deg, #2f66f6, #4c82ff);
    box-shadow: 0 14px 30px rgba(47, 102, 246, 0.22);
}

.light-theme .text-button,
.light-theme .tiny-label,
.light-theme .show-link {
    color: #2f66f6;
}

.hero-shell {
    min-height: auto;
    padding: 64px 0 34px;
}

.hero-grid {
    gap: 36px;
    align-items: stretch;
}

.hero-copy {
    display: grid;
    align-content: center;
    gap: 18px;
}

.hero-copy h1 {
    max-width: 9.5ch;
    margin: 0;
    color: #f8fafc;
    text-shadow: 0 10px 32px rgba(3, 7, 18, 0.38);
}

.hero-copy p {
    max-width: 60ch;
    margin: 0;
    color: rgba(226, 232, 240, 0.92);
    text-shadow: 0 6px 22px rgba(3, 7, 18, 0.22);
}

.hero-copy .tiny-label {
    color: #f6c65b;
    border-color: rgba(246, 198, 91, 0.34);
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
}

.hero-copy .button.primary {
    box-shadow: 0 16px 36px rgba(245, 158, 11, 0.24);
}

.hero-copy .button.secondary {
    background: rgba(255, 255, 255, 0.14);
    color: #f8fafc;
    border-color: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
}

.hero-copy .button.secondary:hover {
    background: rgba(255, 255, 255, 0.18);
}

.hero-copy .inline-tags span {
    background: rgba(15, 23, 42, 0.58);
    border-color: rgba(255, 255, 255, 0.12);
    color: #e5edf9;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.hero-showcase {
    display: grid;
    gap: 18px;
    align-content: start;
}

.show-panel {
    display: grid;
    gap: 14px;
}

.show-main {
    min-height: 0;
    align-content: start;
}

.show-main h3,
.show-panel strong {
    margin: 0;
    font-size: 1.15rem;
}

.show-main p,
.show-panel p {
    margin: 0;
}

.workflow-points {
    display: grid;
    gap: 12px;
    margin-top: 4px;
}

.workflow-points div {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(47, 102, 246, 0.06);
    border: 1px solid rgba(47, 102, 246, 0.12);
}

.workflow-points strong {
    display: block;
    margin-bottom: 6px;
    font-size: 0.98rem;
}

.workflow-points span {
    color: var(--muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

.show-link {
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.metrics-band {
    margin-top: 0;
    padding: 18px 0 56px;
}

.light-theme .metrics-band .metric-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 247, 255, 0.98));
}

.content-section,
.policy-hero,
.contact-hero,
.page-hero,
.auth-shell {
    padding: 72px 0;
}

.dashboard-grid {
    gap: 26px;
}

.admin-layout {
    grid-template-columns: 1fr;
    gap: 22px;
}

.admin-sidebar {
    position: static;
    grid-template-columns: repeat(auto-fit, minmax(126px, 1fr));
    gap: 10px;
    padding: 10px;
    border-radius: 26px;
    background: rgba(236, 242, 255, 0.92);
    border: 1px solid rgba(57, 76, 120, 0.08);
}

.side-link {
    text-align: center;
    font-weight: 600;
    border-radius: 18px;
    background: transparent;
    color: #64748b;
}

.side-link.active {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 10px 24px rgba(88, 106, 148, 0.14);
    border-color: rgba(57, 76, 120, 0.08);
}

.admin-main,
.panel-card,
.summary-card,
.list-card,
.admin-row-card {
    min-width: 0;
}

.section-headline {
    margin-bottom: 22px;
}

.section-headline h3,
.panel-card h3 {
    margin: 0;
    font-size: 1.28rem;
}

.stats-grid,
.metrics-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.light-theme .service-card {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(56, 74, 116, 0.1);
}

.light-theme .service-image {
    min-height: 200px;
}

.ticket-layout,
.admin-ticket-layout {
    gap: 24px;
}

.status-alert {
    margin: 18px 0;
    padding: 18px 20px;
    border-radius: 22px;
    border: 1px solid transparent;
}

.status-alert.error {
    background: rgba(127, 29, 29, 0.08);
    border-color: rgba(185, 28, 28, 0.16);
}

.status-alert.success {
    background: rgba(13, 148, 96, 0.08);
    border-color: rgba(5, 150, 105, 0.16);
}

.status-alert strong {
    display: block;
    margin-bottom: 10px;
}

.status-detail-list {
    margin: 0 0 12px;
    padding-left: 18px;
    color: var(--muted);
}

.status-detail-list li + li {
    margin-top: 6px;
}

.loading-bar {
    position: relative;
    height: 10px;
    margin: 18px 0 4px;
    border-radius: 999px;
    background: rgba(47, 102, 246, 0.1);
    overflow: hidden;
}

.loading-bar span {
    position: absolute;
    inset: 0 auto 0 0;
    width: 38%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2f66f6, #78a2ff);
    animation: loadingSlide 1.3s ease-in-out infinite;
}

@keyframes loadingSlide {
    0% { transform: translateX(-105%); }
    100% { transform: translateX(280%); }
}

@media (max-width: 1100px) {
    .hero-grid, .contact-grid, .checkout-grid, .cart-grid, .dashboard-grid, .admin-layout, .feature-grid, .step-grid, .metrics-grid, .footer-grid, .service-grid { grid-template-columns: 1fr 1fr; }
    .payment-grid { grid-template-columns: 1fr; }
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ticket-layout, .admin-ticket-layout { grid-template-columns: 1fr; }
    .contact-points { grid-template-columns: 1fr 1fr; }
  }

@media (max-width: 780px) {
    .nav-row { grid-template-columns: auto auto; }
    .menu-toggle { display: inline-flex; justify-self: end; }
    .nav-links {
        display: none;
        grid-column: 1 / -1;
        justify-content: flex-start;
        background: var(--panel-strong);
        border: 1px solid var(--line);
        border-radius: 22px;
        padding: 16px;
    }
    .nav-links.open { display: flex; }
    .nav-actions { grid-column: 1 / -1; justify-content: flex-start; }
    .hero-grid, .contact-grid, .checkout-grid, .cart-grid, .dashboard-grid, .feature-grid, .step-grid, .metrics-grid, .footer-grid, .payment-grid, .service-grid, .form-grid { grid-template-columns: 1fr; }
    .cart-card { grid-template-columns: 1fr; }
    .hero-copy h1, .page-hero h1, .policy-hero h1, .contact-hero h1, .section-header h1 { font-size: 2.6rem; }
    .check-row { flex-direction: column; align-items: flex-start; }
    .admin-row-card { grid-template-columns: 1fr; }
    .ticket-layout, .admin-ticket-layout { grid-template-columns: 1fr; }
    .contact-points,
    .reference-actions { grid-template-columns: 1fr; }
    .contact-points .info-card:last-child { grid-column: auto; }
    .modal-backdrop {
        align-items: flex-end;
        padding: 72px 10px 10px;
    }
    .modal-panel {
        width: 100%;
        max-height: calc(100vh - 82px);
        border-radius: 24px 24px 0 0;
        padding: 18px;
    }
    .modal-head {
        margin-bottom: 14px;
        padding-right: 38px;
    }
    .modal-body {
        padding-right: 0;
    }
    .modal-body .button-row,
    .button-row.stack-mobile,
    .panel-card .button-row,
    .contact-hero .button-row {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
        align-items: stretch;
    }
    .modal-body .button-row > .button,
    .modal-body .button-row > a.button,
    .button-row.stack-mobile > .button,
    .button-row.stack-mobile > a.button,
    .panel-card .button-row > .button,
    .panel-card .button-row > a.button,
    .contact-hero .button-row > .button,
    .contact-hero .button-row > a.button {
        width: 100%;
        min-width: 0;
    }
    .reference-actions .button {
        min-width: 0;
        width: 100%;
    }
    .hero-shell {
        padding-top: 40px;
    }
    .hero-copy h1 {
        max-width: none;
    }
    .admin-sidebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .service-actions {
        grid-template-columns: 1fr;
    }
  }
