:root {
    --primary: #2563eb;
    --bg: #f8fafc;
    --surface: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --border: #e2e8f0;
    --danger: #dc2626;
    --success: #16a34a;
    --gold: #d4af37;
    --ink: #071018;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: Tahoma, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.8;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 6%;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(7, 16, 24, .62), rgba(7, 16, 24, .16));
    border-bottom: 1px solid rgba(255, 255, 255, .14);
    backdrop-filter: blur(12px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    min-width: 0;
}

.brand img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    padding: 3px;
}

.brand span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    color: rgba(255, 255, 255, .9);
}

.site-nav a {
    font-size: 14px;
    font-weight: 700;
    transition: color .2s ease;
}

.site-nav a:hover { color: var(--gold); }

.site-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 6%;
    margin-top: 0;
    color: #cbd5e1;
    background: #071018;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    background: var(--surface);
    padding: 9px 16px;
    border-radius: 8px;
    cursor: pointer;
    font: inherit;
}

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

.btn-danger {
    background: var(--danger);
    border-color: var(--danger);
    color: #ffffff;
}

.btn-success {
    background: var(--success);
    border-color: var(--success);
    color: #ffffff;
}

.btn-small {
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 13px;
}

.home-page {
    min-height: 100vh;
    background: var(--ink);
}

.hero-slider {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    isolation: isolate;
    background: #071018;
}

.hero-static-fallback {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(circle at 50% 30%, rgba(212, 175, 55, .2), transparent 32%),
        radial-gradient(circle at 12% 80%, rgba(37, 99, 235, .18), transparent 30%),
        linear-gradient(135deg, #071018 0%, #12303a 58%, #071018 100%);
    transform: scale(1.03);
}

.hero-slide {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 110px 6% 78px;
    opacity: 0;
    visibility: hidden;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transition: opacity .7s ease, visibility .7s ease, transform 4s ease;
    transform: scale(1.01);
}

.hero-slide.has-image {
    background-image: var(--slide-image);
}

.hero-slide.has-image::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: var(--slide-image);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    filter: saturate(1.02);
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(7, 16, 24, .42), rgba(7, 16, 24, .86)),
        linear-gradient(90deg, rgba(7, 16, 24, .76), rgba(7, 16, 24, .28), rgba(7, 16, 24, .76));
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(860px, 100%);
    color: #ffffff;
    text-align: center;
    animation: fadeInUp .9s ease both;
}

.hero-logo {
    width: 118px;
    height: 118px;
    margin: 0 auto 22px;
    object-fit: contain;
    border-radius: 50%;
    padding: 10px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .22);
    box-shadow: 0 18px 60px rgba(0, 0, 0, .28);
    backdrop-filter: blur(10px);
}

.hero-logo-text {
    display: grid;
    place-items: center;
    color: var(--gold);
    font-size: 54px;
    font-weight: 900;
}

.hero-kicker {
    margin: 0 0 8px;
    color: var(--gold);
    font-weight: 800;
    letter-spacing: 0;
}

.hero-content h1 {
    margin: 0 0 16px;
    font-size: clamp(38px, 7vw, 76px);
    line-height: 1.25;
    font-weight: 900;
    text-shadow: 0 8px 30px rgba(0, 0, 0, .42);
}

.hero-subtitle {
    max-width: 760px;
    margin: 0 auto 30px;
    color: rgba(255, 255, 255, .86);
    font-size: clamp(16px, 2.5vw, 23px);
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.glass-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 11px 26px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.glass-button {
    color: #ffffff;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(212, 175, 55, .56);
    box-shadow: 0 10px 34px rgba(0, 0, 0, .28);
    backdrop-filter: blur(10px);
}

.ghost-button {
    color: rgba(255, 255, 255, .9);
    border: 1px solid rgba(255, 255, 255, .22);
    background: rgba(7, 16, 24, .22);
}

.glass-button:hover,
.ghost-button:hover {
    transform: translateY(-2px);
    background: rgba(212, 175, 55, .18);
    border-color: rgba(212, 175, 55, .76);
}

.hero-dots {
    position: absolute;
    right: 50%;
    bottom: 36px;
    z-index: 4;
    display: flex;
    gap: 10px;
    transform: translateX(50%);
}

.hero-dots button {
    width: 34px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .42);
    cursor: pointer;
}

.hero-dots button.active { background: #ffffff; }

.scroll-indicator {
    position: absolute;
    right: 50%;
    bottom: 58px;
    z-index: 4;
    width: 28px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: 999px;
    transform: translateX(50%);
}

.hero-dots + .scroll-indicator { bottom: 72px; }

.scroll-indicator span {
    position: absolute;
    top: 9px;
    right: 50%;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--gold);
    transform: translateX(50%);
    animation: scrollPulse 1.5s infinite;
}

.home-contact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 46px 6%;
    color: #ffffff;
    background: #071018;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.home-contact h2 {
    margin: 0 0 6px;
    font-size: clamp(24px, 4vw, 38px);
}

.home-contact p {
    max-width: 720px;
    margin: 0;
    color: #cbd5e1;
}

.section-eyebrow {
    display: block;
    margin-bottom: 6px;
    color: var(--gold);
    font-size: 13px;
    font-weight: 800;
}

.hero,
.carousel-shell {
    padding: 52px 6% 24px;
    text-align: center;
}

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

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 22px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
}

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

.form-field {
    display: block;
    margin-bottom: 14px;
}

.form-field span {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 14px;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 12px;
    background: #ffffff;
    color: var(--text);
    font: inherit;
}

textarea {
    min-height: 95px;
    resize: vertical;
}

select,
select option,
.admin-content select,
.admin-content select option {
    color: #0f172a !important;
    background-color: #ffffff !important;
}

.alert {
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
    border: 1px solid var(--border);
}

.alert-success {
    background: #f0fdf4;
    color: #166534;
    border-color: #bbf7d0;
}

.alert-warning {
    background: #fffbeb;
    color: #92400e;
    border-color: #fde68a;
}

.alert-danger,
.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}

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

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

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

.table-wrap {
    overflow: auto;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
}

table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

th,
td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    text-align: right;
}

th {
    background: #f8fafc;
    color: var(--muted);
    font-weight: 600;
}

.progress {
    height: 10px;
    border-radius: 99px;
    background: #e5e7eb;
    overflow: hidden;
}

.progress span {
    display: block;
    height: 100%;
    background: var(--primary);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scrollPulse {
    from { top: 9px; opacity: 1; }
    to { top: 28px; opacity: .2; }
}

@media (max-width: 760px) {
    .site-header {
        padding: 12px 4%;
        gap: 10px;
    }

    .brand span { max-width: 150px; }

    .site-nav {
        gap: 10px;
        font-size: 13px;
    }

    .hero-slide {
        padding: 104px 5% 78px;
    }

    .hero-logo {
        width: 90px;
        height: 90px;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .home-contact {
        align-items: flex-start;
        flex-direction: column;
        padding: 34px 5%;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .grid-span-2 { grid-column: auto; }
}

@media (max-width: 460px) {
    .site-nav a:first-child { display: none; }
    .hero-actions { align-items: stretch; flex-direction: column; }
    .glass-button,
    .ghost-button { width: 100%; }
}
