:root {
    --bg: #f4f7fb;
    --surface: rgba(255, 255, 255, 0.9);
    --border: rgba(15, 23, 42, 0.08);
    --ink: #0f172a;
    --muted: #64748b;
    --primary: #2563eb;
    --primary-soft: #dbeafe;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 16px;
}

* {
    box-sizing: border-box;
}

body {
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.15), transparent 28%),
        radial-gradient(circle at top right, rgba(16, 185, 129, 0.12), transparent 24%),
        var(--bg);
    color: var(--ink);
    min-height: 100vh;
}

.page-shell {
    min-height: calc(100vh - 150px);
}

.custom-navbar {
    background: linear-gradient(120deg, rgba(15, 23, 42, 0.92), rgba(37, 99, 235, 0.88));
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.12);
}

.custom-navbar .navbar-brand,
.custom-navbar .nav-link,
.custom-navbar .navbar-toggler {
    color: #fff;
}

.custom-navbar .nav-link.active,
.custom-navbar .nav-link:hover {
    color: #cfe3ff;
}

.custom-navbar .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.25);
}

.custom-navbar .navbar-toggler:focus {
    box-shadow: none;
}

.brand-mark {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
    overflow: hidden;
}

.brand-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand-title {
    font-size: 1.08rem;
    font-weight: 800;
    color: #fff;
}

.brand-subtitle {
    font-size: .68rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    margin-top: .15rem;
}

.qr-public-shell {
    padding-top: 1rem;
}

.qr-public-brand {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.qr-public-brand-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    display: block;
}

.qr-public-brand-copy {
    display: flex;
    flex-direction: column;
}

.qr-public-brand-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--ink);
    line-height: 1.05;
}

.qr-public-brand-subtitle {
    font-size: .78rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: .25rem;
}

.header-wa-contact {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .55rem .85rem;
    border-radius: 999px;
    color: #fff;
    text-decoration: none;
    background: rgba(34, 197, 94, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: .88rem;
}

.header-wa-contact i {
    color: #22c55e;
    font-size: 1rem;
}

.header-wa-contact strong {
    font-weight: 700;
}

.header-wa-contact:hover {
    color: #fff;
    background: rgba(34, 197, 94, 0.22);
}

.hero-card,
.glass-card,
.panel-card,
.empty-card,
.service-highlight-card,
.step-card,
.promo-card,
.feature-preview,
.service-history-card,
.unit-summary-card,
.stats-card,
.schedule-card,
.public-hero,
.qr-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.hero-card,
.public-hero,
.feature-preview,
.panel-card,
.glass-card,
.service-highlight-card,
.step-card,
.promo-card,
.unit-summary-card,
.stats-card,
.schedule-card,
.service-history-card,
.empty-card,
.qr-card {
    padding: 1.5rem;
}

.hero-card,
.public-hero {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 255, 0.94));
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .35rem .8rem;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.lead,
.text-secondary,
.form-text,
.small {
    color: var(--muted) !important;
}

.section-head h1,
.section-head h2,
.section-head h3,
h1, h2, h3, h4, h5, h6 {
    color: var(--ink);
}

.btn {
    border-radius: 14px;
    font-weight: 600;
}

.btn-primary {
    background: linear-gradient(120deg, #2563eb, #1d4ed8);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(120deg, #1d4ed8, #1e40af);
}

.btn-light,
.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-danger {
    border-color: rgba(15, 23, 42, 0.1);
}

.stat-strip,
.technical-grid {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.stat-pill,
.tech-chip,
.public-chip,
.next-schedule-pill {
    display: inline-flex;
    align-items: center;
    padding: .75rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(37, 99, 235, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.stat-pill strong {
    margin-right: .35rem;
}

.icon-box,
.stats-icon,
.qr-sample {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(16, 185, 129, 0.15));
    color: var(--primary);
    font-size: 1.4rem;
}

.mini-window {
    padding: 1rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.preview-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 1rem;
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.step-card {
    position: relative;
    overflow: hidden;
}

.step-number {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    font-size: 2.6rem;
    line-height: 1;
    font-weight: 800;
    color: rgba(37, 99, 235, 0.12);
}

.site-footer {
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
}

.stats-card {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stats-number {
    font-size: 2rem;
    font-weight: 800;
}

.panel-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.table > :not(caption) > * > * {
    padding: 1rem 0.75rem;
    border-bottom-color: rgba(15, 23, 42, 0.06);
}

.table thead th {
    color: var(--muted);
    text-transform: uppercase;
    font-size: .76rem;
    letter-spacing: .04em;
    font-weight: 700;
}

.form-control,
.form-select,
textarea {
    border-radius: 14px;
    border-color: rgba(15, 23, 42, 0.1);
    padding: .85rem 1rem;
    background: rgba(255, 255, 255, 0.9);
}

.form-control:focus,
.form-select:focus,
textarea:focus {
    border-color: rgba(37, 99, 235, 0.45);
    box-shadow: 0 0 0 .25rem rgba(37, 99, 235, 0.1);
}

.form-label {
    font-weight: 600;
    color: var(--ink);
}

.form-preview-image,
.detail-image,
.service-doc-image,
.public-unit-image {
    width: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #fff;
}

.form-preview-image {
    min-height: 220px;
    max-height: 260px;
}

.detail-image,
.public-unit-image {
    min-height: 260px;
    max-height: 320px;
}

.service-doc-image {
    min-height: 220px;
    max-height: 260px;
}

.image-placeholder {
    width: 100%;
    min-height: 220px;
    border-radius: var(--radius-lg);
    border: 1px dashed rgba(100, 116, 139, 0.35);
    background: rgba(248, 250, 252, 0.8);
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
}

.meta-card {
    height: 100%;
    background: rgba(248, 250, 252, 0.85);
    border: 1px solid rgba(15, 23, 42, 0.05);
    border-radius: var(--radius-md);
    padding: 1rem;
}

.meta-card span {
    display: block;
    font-size: .82rem;
    color: var(--muted);
    margin-bottom: .35rem;
}

.meta-card strong {
    font-size: .98rem;
    line-height: 1.45;
}

.meta-card.compact {
    padding: .9rem 1rem;
}

.schedule-card.compact {
    padding: .9rem 1rem;
}

.public-summary-grid .fw-semibold {
    line-height: 1.4;
}

.qr-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(239, 246, 255, 0.95));
}

.qr-image {
    width: min(220px, 100%);
    height: auto;
}

.wa-floating-button {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 60px;
    height: 60px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #16a34a;
    color: #fff;
    text-decoration: none;
    font-size: 1.7rem;
    box-shadow: 0 12px 30px rgba(22, 163, 74, 0.35);
    z-index: 1040;
}

.wa-floating-button:hover {
    color: #fff;
    transform: translateY(-2px);
}

.service-history-card {
    padding: 1.25rem;
    border-radius: var(--radius-lg);
}

.public-history-card {
    background: rgba(255, 255, 255, 0.96);
}

.unit-summary-card,
.schedule-card {
    border-radius: var(--radius-lg);
    background: rgba(248, 250, 252, 0.86);
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.info-list .fw-semibold {
    line-height: 1.45;
}

.badge {
    font-weight: 700;
    letter-spacing: .02em;
}

.maintenance-timer-card {
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(245, 158, 11, 0.18);
    background:
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.22), transparent 24%),
        linear-gradient(135deg, rgba(255, 251, 235, 0.98), rgba(255, 255, 255, 0.96));
    box-shadow: 0 22px 50px rgba(245, 158, 11, 0.12);
}

.maintenance-timer-card.is-overdue {
    border-color: rgba(239, 68, 68, 0.22);
    background:
        radial-gradient(circle at top right, rgba(239, 68, 68, 0.18), transparent 24%),
        linear-gradient(135deg, rgba(255, 241, 242, 0.98), rgba(255, 255, 255, 0.96));
}

.maintenance-timer-card.is-soon {
    border-color: rgba(249, 115, 22, 0.22);
    background:
        radial-gradient(circle at top right, rgba(249, 115, 22, 0.18), transparent 24%),
        linear-gradient(135deg, rgba(255, 247, 237, 0.98), rgba(255, 255, 255, 0.96));
}

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

.timer-panel {
    padding: 1.2rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.timer-label {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: .5rem;
}

.timer-value {
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1;
    font-weight: 800;
    color: #ea580c;
    text-shadow: 0 8px 18px rgba(234, 88, 12, 0.18);
    margin-bottom: .5rem;
}

.timer-meta,
.timer-note {
    color: var(--muted);
}

.timer-alert {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .85rem 1.25rem;
    border-radius: 999px;
    background: #fff;
    color: #b45309;
    border: 1px solid rgba(245, 158, 11, 0.24);
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    box-shadow: 0 12px 24px rgba(245, 158, 11, 0.12);
}

.maintenance-timer-card.is-overdue .timer-alert {
    color: #b91c1c;
    border-color: rgba(239, 68, 68, 0.25);
    box-shadow: 0 12px 24px rgba(239, 68, 68, 0.12);
}

.maintenance-timer-card.is-soon .timer-alert {
    color: #c2410c;
    border-color: rgba(249, 115, 22, 0.25);
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.12);
}

.blink-soft {
    animation: blink-soft 1.6s ease-in-out infinite;
}

@keyframes blink-soft {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: .45;
        transform: scale(.98);
    }
}

@media (max-width: 991.98px) {
    .hero-card,
    .public-hero,
    .panel-card,
    .glass-card,
    .service-highlight-card,
    .promo-card,
    .service-history-card,
    .stats-card,
    .schedule-card,
    .step-card {
        padding: 1.25rem;
        border-radius: 22px;
    }

    .display-5,
    .display-6 {
        font-size: 2.15rem;
    }

    .header-wa-contact {
        width: 100%;
        justify-content: center;
        margin: .35rem 0 .65rem;
    }

    .timer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .brand-mark {
        width: 48px;
        height: 48px;
    }

    .brand-title {
        font-size: .98rem;
    }

    .brand-subtitle {
        font-size: .62rem;
    }

    .qr-public-brand {
        width: 100%;
        justify-content: center;
        text-align: center;
        flex-direction: column;
        gap: .75rem;
    }

    .qr-public-brand-logo {
        width: 64px;
        height: 64px;
    }

    .wa-floating-button {
        right: 16px;
        bottom: 16px;
        width: 56px;
        height: 56px;
    }

    .stat-pill,
    .tech-chip,
    .public-chip,
    .next-schedule-pill {
        width: 100%;
        justify-content: center;
    }
}
