:root {
    --bg: #081120;
    --bg-soft: #11233f;
    --surface: #101b2e;
    --surface-alt: #0c1627;
    --text: #eff4ff;
    --muted: #9fb0cc;
    --line: rgba(255, 255, 255, 0.08);
    --primary: #1976d2;
    --primary-dark: #0f5fab;
    --success: #113a25;
    --error: #4a1d1d;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f7fb;
    color: #172033;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.hero {
    position: relative;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    overflow: hidden;
}

.topbar,
.footer-inner,
.admin-header,
.admin-nav,
.actions,
.topbar-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.logo {
    font-size: 1.15rem;
    font-weight: 700;
}

.site-logo-image {
    display: block;
    max-height: 54px;
    width: auto;
    object-fit: contain;
}

.hero-logo-only {
    position: absolute;
    top: 28px;
    left: 32px;
    z-index: 5;
    transform: none;
}

.hero-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(6px);
    box-shadow: 0 12px 30px rgba(8, 17, 32, 0.14);
}

.hero-logo-image {
    max-height: 62px;
}

.ghost-link {
    color: var(--muted);
}

.ghost-link:hover {
    color: #ffffff;
}

.badge,
.eyebrow {
    display: inline-block;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    background: rgba(255, 255, 255, 0.12);
    color: #dbe6ff;
}

h1,
h2,
h3 {
    margin: 0 0 16px;
    line-height: 1.15;
}

h1 {
    font-size: clamp(2.4rem, 4vw, 4.8rem);
    margin-top: 18px;
}

h2 {
    font-size: clamp(1.8rem, 2.6vw, 2.9rem);
}

p {
    margin: 0;
    line-height: 1.7;
}

.lead {
    max-width: 720px;
    color: #d3def4;
    font-size: 1.08rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 14px;
    padding: 14px 22px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.btn-light {
    background: #f1f6fd;
    color: #1c2c46;
    border: 1px solid rgba(28, 44, 70, 0.1);
}

.card,
.panel {
    background: #fff;
    border: 1px solid rgba(23, 32, 51, 0.08);
    border-radius: 24px;
    box-shadow: 0 18px 48px rgba(15, 31, 58, 0.08);
}

.hero-carousel {
    position: relative;
    height: 100vh;
    min-height: 760px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease;
    background: #eef3f9;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.hero-slide-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slide-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 28px;
    align-items: center;
    min-height: 100vh;
    padding-top: 120px;
    padding-bottom: 120px;
}

.hero-copy,
.hero-highlight {
    position: relative;
    z-index: 2;
}

.hero-highlight {
    padding: 28px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
}

.hero-carousel-controls {
    position: absolute;
    left: 50%;
    bottom: 36px;
    z-index: 4;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.hero-dots,
.hero-arrows {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-dot,
.hero-arrow {
    border: 0;
    cursor: pointer;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.34);
}

.hero-dot.is-active {
    background: #ffffff;
}

.hero-arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.72);
    color: #102243;
    font-size: 1.3rem;
    box-shadow: 0 10px 24px rgba(16, 34, 67, 0.12);
}

.flash-holder {
    margin-top: 22px;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
}

.info-list li + li {
    margin-top: 10px;
}

.section {
    padding: 88px 0;
}

.section-alt {
    background: #eaf0f8;
}

.section-heading {
    margin-bottom: 30px;
}

.feature-grid,
.brand-grid,
.region-grid,
.admin-grid,
.form-layout {
    display: grid;
    gap: 24px;
}

.feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.brand-card,
.region-card {
    padding: 28px;
}

.feature-number,
.brand-badge {
    display: inline-flex;
    width: 56px;
    height: 56px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(25, 118, 210, 0.12);
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 18px;
}

.brand-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.brand-card {
    background: #fff;
    border: 1px solid rgba(23, 32, 51, 0.08);
    border-radius: 24px;
    box-shadow: 0 18px 48px rgba(15, 31, 58, 0.06);
}

.brand-logo {
    width: 100%;
    max-width: 150px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 18px;
}

.region-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.faq-list {
    display: grid;
    gap: 14px;
}

.faq-item {
    background: #fff;
    border: 1px solid rgba(23, 32, 51, 0.08);
    border-radius: 20px;
    padding: 18px 22px;
}

.faq-item summary {
    cursor: pointer;
    font-weight: 700;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item p {
    margin-top: 14px;
    color: #50617e;
}

.map-card {
    overflow: hidden;
    border-radius: 26px;
    border: 1px solid rgba(23, 32, 51, 0.08);
    box-shadow: 0 18px 48px rgba(15, 31, 58, 0.08);
    background: #fff;
}

.map-card iframe {
    display: block;
    width: 100%;
    height: 460px;
    border: 0;
}

.form-layout {
    grid-template-columns: 0.9fr 1.1fr;
}

.panel {
    padding: 28px;
}

.form-side {
    background: linear-gradient(180deg, #0d1b32, #11284d);
    color: #eff4ff;
}

.quick-points {
    display: grid;
    gap: 16px;
    margin-top: 28px;
}

.quick-point {
    display: grid;
    gap: 6px;
    padding: 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
}

.contact-meta {
    margin-top: 22px;
    color: inherit;
    display: grid;
    gap: 8px;
}

.stack {
    display: grid;
    gap: 16px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

label {
    display: grid;
    gap: 8px;
    font-weight: 600;
    color: #22304b;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid #cdd7e6;
    border-radius: 12px;
    padding: 14px 16px;
    color: #172033;
    background: #fff;
}

textarea {
    resize: vertical;
}

.footer {
    background: #fff;
    border-top: 1px solid rgba(23, 32, 51, 0.08);
    padding: 22px 0;
    color: #60708f;
}

.whatsapp-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 18px;
    border-radius: 999px;
    background: #25d366;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 12px 24px rgba(37, 211, 102, 0.28);
}

.alert {
    border-radius: 16px;
    padding: 14px 18px;
    margin: 20px 0;
    color: #fff;
}

.alert-success {
    background: var(--success);
}

.alert-error {
    background: var(--error);
}

.admin-body {
    background: #eef3f9;
}

.admin-wrapper {
    padding: 32px 0 60px;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    display: grid;
    gap: 8px;
    padding: 20px;
    background: #fff;
    border: 1px solid rgba(23, 32, 51, 0.08);
    border-radius: 20px;
    box-shadow: 0 18px 48px rgba(15, 31, 58, 0.06);
}

.stat-card strong {
    font-size: 1.35rem;
    color: #1c2c46;
}

.admin-shortcuts {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
    justify-content: flex-start;
}

.admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
    justify-content: flex-start;
}

.admin-tab-button {
    border: 1px solid #d8e2f0;
    background: #f8fbff;
    color: #1c2c46;
    padding: 12px 16px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
}

.admin-tab-button.is-active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.admin-tab-panel {
    display: none;
}

.admin-tab-panel.is-active {
    display: block;
}

.admin-grid {
    grid-template-columns: 1.2fr 0.8fr;
}

.admin-header,
.admin-nav {
    justify-content: flex-start;
}

.narrow {
    max-width: 520px;
    margin: 48px auto 0;
}

.feature-editor {
    border: 1px solid #dde5f1;
    border-radius: 18px;
    padding: 16px;
}

.upload-preview {
    padding: 12px;
    border: 1px dashed #cdd7e6;
    border-radius: 14px;
    background: #f8fbff;
}

.upload-preview img {
    display: block;
    max-width: 100%;
    max-height: 180px;
    object-fit: contain;
}

.upload-preview-small img {
    max-height: 72px;
}

.slider-upload-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.upload-card {
    display: grid;
    gap: 14px;
    align-content: start;
}

.upload-card h3 {
    margin: 0;
}

.field-help {
    margin: -6px 0 0;
    color: #5d6d85;
    font-size: 0.92rem;
}

.range-field {
    display: grid;
    gap: 10px;
}

.range-inputs {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 110px;
    gap: 12px;
    align-items: center;
}

.range-field input[type="range"] {
    width: 100%;
}

.range-manual-input {
    display: grid;
    gap: 6px;
}

.range-manual-input span {
    font-size: 0.85rem;
    color: #5d6d85;
}

.range-manual-input input[type="number"] {
    width: 100%;
}

.size-mode-panel {
    display: none;
    gap: 12px;
}

.size-mode-panel.is-active {
    display: grid;
}

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

.range-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #5d6d85;
    font-size: 0.92rem;
}

.range-meta strong {
    color: #163056;
    font-size: 1rem;
}

.inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-danger {
    background: #fff1f1;
    border-color: #f2b8b8;
    color: #b42318;
}

.btn-danger:hover {
    background: #ffe2e2;
    transform: translateY(-1px);
}

.rich-editor {
    border: 1px solid #cdd7e6;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}

.rich-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    border-bottom: 1px solid #e6edf7;
    background: #f8fbff;
}

.editor-tool-button {
    border: 1px solid #d8e2f0;
    background: #fff;
    color: #1c2c46;
    padding: 8px 10px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
}

.editor-tool-button.is-active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.rich-editor-content {
    min-height: 180px;
    padding: 14px 16px;
    outline: none;
    line-height: 1.7;
}

.rich-editor-content.is-hidden {
    display: none;
}

.rich-editor-content p {
    margin: 0 0 12px;
}

.rich-editor-source {
    display: none;
    width: 100%;
    min-height: 220px;
    border: 0;
    border-top: 1px solid #e6edf7;
    border-radius: 0;
    padding: 14px 16px;
    font-family: Consolas, Monaco, monospace;
    background: #0f1728;
    color: #eff4ff;
}

.rich-editor-source.is-active {
    display: block;
}

.rich-content p,
.rich-content ul,
.rich-content ol,
.rich-content blockquote {
    margin: 0 0 14px;
}

.rich-content ul,
.rich-content ol {
    padding-left: 22px;
}

.light-content,
.light-content p,
.light-content li,
.light-content a {
    color: inherit;
}

.panel-wide {
    margin-top: 24px;
}

.table-wrapper {
    overflow-x: auto;
}

.requests-table {
    width: 100%;
    border-collapse: collapse;
}

.requests-table th,
.requests-table td {
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid #e6edf7;
    vertical-align: top;
}

.requests-table th {
    color: #51627d;
    font-size: 0.92rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(25, 118, 210, 0.12);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
}

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

.btn-small {
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.9rem;
}

.request-links {
    display: grid;
    gap: 8px;
}

.text-small {
    font-size: 0.9rem;
    color: #60708f;
}

.empty-state,
.muted {
    color: #61728f;
}

@media (max-width: 1080px) {
    .brand-grid,
    .region-grid,
    .feature-grid,
    .admin-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-slide-content,
    .form-layout,
    .admin-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 920px) {
    .slider-upload-grid {
        grid-template-columns: 1fr;
    }

    .size-px-grid,
    .range-inputs {
        grid-template-columns: 1fr;
    }

    .hero-carousel {
        height: var(--mobile-hero-height, 72vh);
        min-height: 320px;
        max-height: 520px;
        width: 100%;
        max-width: 100%;
        margin-inline: auto;
    }

    .hero-carousel[data-mobile-size-mode="custom-px"] {
        width: min(var(--mobile-hero-width-px, 390px), 100%);
        max-width: 100%;
        height: var(--mobile-hero-height-px, 640px);
        min-height: 0;
        max-height: none;
    }

    .hero-carousel[data-mobile-size-mode="custom-px"] .hero-slide,
    .hero-carousel[data-mobile-size-mode="custom-px"] .hero-slide-content {
        min-height: 0;
        margin-top: 98px;
        height: 100%;
    }

    .hero-slide {
        position: absolute;
        min-height: 320px;
    }

    .hero-slide-image {
        object-fit: contain;
        object-position: center center;
    }

    .hero-slide-content {
        min-height: 320px;
        padding-top: 110px;
        padding-bottom: 120px;
    }

    .hero-logo-only {
        top: 16px;
        left: 16px;
    }

    .hero-logo-link {
        padding: 10px 14px;
        border-radius: 14px;
    }

    .hero-logo-image {
        max-height: 48px;
        align-items: center;
    }

    .topbar,
    .footer-inner,
    .admin-header,
    .admin-nav,
    .actions,
    .topbar-links {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-carousel-controls {
        width: calc(100% - 32px);
        bottom: 12px;
    }

    .form-grid,
    .feature-grid,
    .brand-grid,
    .region-grid,
    .admin-stats {
        grid-template-columns: 1fr;
    }
}
