@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;
}
.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: 280px; }
.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: 24px; }

.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); }
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%;
}
.toast-stack {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 120;
    display: grid;
    gap: 12px;
    width: min(360px, calc(100vw - 32px));
}
.toast {
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: var(--panel-strong);
    box-shadow: var(--shadow);
}
.toast.success {
    border-color: rgba(47, 182, 122, 0.3);
    background: rgba(47, 182, 122, 0.16);
}
.toast.error {
    border-color: rgba(255, 109, 109, 0.3);
    background: rgba(255, 109, 109, 0.14);
}
.toast strong {
    display: block;
    margin-bottom: 4px;
}
.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: 90;
    display: grid;
    place-items: center;
    padding: 22px;
    background: rgba(4, 8, 16, 0.74);
    backdrop-filter: blur(10px);
}
.modal-panel {
    width: min(920px, 100%);
    padding: 30px;
    border-radius: 32px;
    background: var(--panel-strong);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    position: relative;
}
.modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 1.6rem;
    cursor: pointer;
}

.cart-card {
    overflow: hidden;
    display: grid;
    grid-template-columns: 280px 1fr;
}
.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-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);
}

@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; }
  }
