:root {
    --bg: #05030a;
    --bg-soft: #120a1d;
    --panel: rgba(17, 11, 28, 0.88);
    --panel-strong: rgba(26, 16, 40, 0.98);
    --text: #f7f1ff;
    --muted: #c2b2d9;
    --gold: #ffca63;
    --gold-soft: #ffe8b0;
    --violet: #a733ff;
    --pink: #ff63d5;
    --line: rgba(255, 255, 255, 0.08);
    --success: #58e0a8;
    --error: #ff7a9c;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at top right, rgba(255, 202, 99, 0.18), transparent 30%),
        radial-gradient(circle at 10% 20%, rgba(167, 51, 255, 0.22), transparent 35%),
        linear-gradient(180deg, #030207 0%, #08040f 40%, #0b0812 100%);
    color: var(--text);
    font-family: 'Outfit', sans-serif;
}

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

img {
    max-width: 100%;
    display: block;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(24px);
    background: rgba(5, 3, 10, 0.7);
    border-bottom: 1px solid var(--line);
}

.nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand img {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(167, 51, 255, 0.24);
}

.brand strong,
.hero-title,
.section-heading h2,
.inner-hero h1,
.info-card h2,
.banner-card h2,
.admin-topbar h1,
.login-card h1 {
    font-family: 'Syne', sans-serif;
}

.brand span {
    display: block;
    color: var(--muted);
    font-size: 0.87rem;
}

.navbar {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 0.95rem;
}

.navbar a {
    color: var(--muted);
    transition: color 0.2s ease;
}

.navbar a:hover {
    color: var(--text);
}

.menu-toggle {
    display: none;
}

.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 88vh;
    display: flex;
    align-items: center;
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(110deg, rgba(0, 0, 0, 0.72), rgba(11, 7, 19, 0.45)),
        var(--hero-backdrop-image, url('../images/logo.jpg')) center/420px auto no-repeat,
        radial-gradient(circle at center, rgba(255, 202, 99, 0.16), transparent 30%);
    opacity: 0.28;
    transform: scale(1.02);
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: end;
    padding: 72px 0 84px;
}

.eyebrow,
.section-heading span,
.inner-hero span,
.admin-topbar span,
.login-card span,
.glass-card span,
.banner-card span {
    display: inline-flex;
    padding: 10px 14px;
    border: 1px solid rgba(255, 202, 99, 0.28);
    border-radius: 999px;
    color: var(--gold-soft);
    background: rgba(255, 202, 99, 0.08);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.73rem;
}

.hero-title {
    margin: 22px 0 18px;
    font-size: clamp(3.5rem, 9vw, 7rem);
    line-height: 0.88;
    position: relative;
}

.hero-title span,
.hero-title em {
    display: block;
    opacity: 0;
    transform: translateY(36px);
    animation: riseIn 0.9s forwards;
}

.hero-title span:nth-child(2) {
    animation-delay: 0.14s;
}

.hero-title span:nth-child(3) {
    animation-delay: 0.28s;
}

.hero-title em {
    animation-delay: 0.42s;
    font-style: normal;
    margin-left: clamp(70px, 16vw, 180px);
    font-size: 0.55em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.58);
}

.hero-copy p,
.inner-hero p,
.info-card p,
.banner-card p {
    color: var(--muted);
    line-height: 1.7;
}

.hero-actions,
.admin-links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 16px;
    border: 1px solid transparent;
    font-weight: 600;
    cursor: pointer;
}

.button-primary {
    background: linear-gradient(135deg, var(--gold), var(--pink));
    color: #140813;
    box-shadow: 0 14px 40px rgba(255, 99, 213, 0.25);
}

.button-secondary {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--line);
}

.hero-panel {
    display: grid;
    gap: 18px;
}

.glass-card,
.info-card,
.banner-card,
.table-card,
.login-card {
    background: linear-gradient(180deg, rgba(30, 19, 47, 0.9), rgba(15, 10, 27, 0.94));
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.glass-card {
    padding: 28px;
}

.glass-card strong {
    display: block;
    margin: 20px 0 10px;
    font-size: 2rem;
}

.stat-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.stat-strip article {
    padding: 22px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
}

.stat-strip strong {
    display: block;
    font-size: 2rem;
}

.content-section,
.listing-section,
.admin-section {
    padding: 56px 0;
}

.content-section.alt {
    background: rgba(255, 255, 255, 0.02);
}

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

.section-heading h2,
.inner-hero h1 {
    margin: 18px 0 8px;
    font-size: clamp(2rem, 5vw, 3.4rem);
}

.ticker-row {
    display: flex;
    gap: 18px;
    overflow: hidden;
    white-space: nowrap;
    padding: 8px 0 6px;
}

.ticker-row.reverse {
    flex-direction: row-reverse;
}

.ticker-card {
    min-width: 290px;
    max-width: 290px;
    white-space: normal;
    padding: 26px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(25, 15, 39, 0.92), rgba(9, 7, 18, 0.92));
    border: 1px solid var(--line);
    animation: marquee 24s linear infinite;
}

.ticker-row.reverse .ticker-card {
    animation-direction: reverse;
}

.ticker-card small,
.info-card small {
    color: var(--gold-soft);
    letter-spacing: 0.09em;
}

.ticker-card h3,
.info-card h2 {
    margin: 14px 0 12px;
}

.ticker-card p {
    color: var(--muted);
}

.ticker-card a,
.info-card a {
    color: var(--gold);
    font-weight: 600;
}

.contact-banner {
    padding: 10px 0 80px;
}

.banner-card {
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.inner-hero {
    padding: 72px 0 24px;
}

.card-grid,
.admin-grid,
.contact-layout,
.request-list {
    display: grid;
    gap: 22px;
}

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

.info-card {
    padding: 26px;
}

.card-details {
    margin-top: 14px;
    border-top: 1px solid var(--line);
    padding-top: 12px;
}

.card-details summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    font-weight: 600;
    color: var(--gold);
}

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

.card-details summary::before {
    content: '+';
    width: 20px;
    height: 20px;
    border-radius: 999px;
    border: 1px solid rgba(255, 202, 99, 0.45);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    line-height: 1;
}

.card-details[open] summary::before {
    content: '-';
}

.card-details p {
    margin: 10px 0 0;
}

.card-actions {
    margin-top: 14px;
}

.card-meta,
.contact-points,
.request-head,
.footer-bottom {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: space-between;
    color: var(--muted);
}

.contact-layout {
    grid-template-columns: 0.82fr 1.18fr;
    align-items: start;
}

.contact-form,
.sticky-form {
    display: grid;
    gap: 14px;
}

.form-mode-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.compact-button {
    min-height: 40px;
    padding: 0 16px;
    border-radius: 12px;
}

.contact-form label,
.sticky-form label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 0.95rem;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    border-radius: 16px;
    padding: 14px 16px;
    font: inherit;
}

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--gold) 50%),
        linear-gradient(135deg, var(--gold) 50%, transparent 50%);
    background-position:
        calc(100% - 24px) calc(50% - 3px),
        calc(100% - 18px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 48px;
}

select option {
    background: #1a1327;
    color: var(--text);
}

textarea {
    resize: vertical;
}

.checkbox-row {
    grid-template-columns: auto 1fr;
    align-items: center;
}

.checkbox-row input {
    width: auto;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.02);
    padding-top: 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 22px;
    padding-bottom: 24px;
}

.footer-grid a,
.footer-grid p {
    display: block;
    color: var(--muted);
    margin: 8px 0;
}

.footer-bottom {
    padding: 16px 0 28px;
    border-top: 1px solid var(--line);
}

.footer-credit {
    padding: 0 0 28px;
}

.footer-credit p {
    margin: 0;
    color: var(--muted);
    text-align: center;
}

.footer-credit a {
    color: var(--gold);
    font-weight: 600;
}

.admin-body .site-shell {
    min-height: 100vh;
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

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

.admin-stats .info-card {
    text-align: center;
}

.admin-stats strong {
    display: block;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.table-card {
    padding: 24px;
    overflow-x: auto;
}

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

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

.actions {
    display: flex;
    gap: 12px;
}

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

.sticky-form {
    position: sticky;
    top: 100px;
}

.admin-login-wrap {
    min-height: 80vh;
    display: grid;
    place-items: center;
    padding: 48px 16px;
}

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

.alert {
    padding: 14px 16px;
    border-radius: 14px;
    font-weight: 500;
}

.alert.success {
    background: rgba(88, 224, 168, 0.12);
    border: 1px solid rgba(88, 224, 168, 0.22);
}

.alert.error {
    background: rgba(255, 122, 156, 0.12);
    border: 1px solid rgba(255, 122, 156, 0.22);
}

.media-preview {
    display: grid;
    gap: 10px;
    margin-top: -2px;
    margin-bottom: 8px;
}

.media-preview small {
    color: var(--muted);
}

.media-preview img {
    width: min(280px, 100%);
    max-height: 140px;
    object-fit: contain;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    padding: 10px;
}

.legal-content {
    display: grid;
}

@keyframes riseIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-100% - 18px));
    }
}

@media (max-width: 980px) {
    .hero-grid,
    .contact-layout,
    .admin-grid,
    .footer-grid,
    .card-grid,
    .admin-stats {
        grid-template-columns: 1fr;
    }

    .navbar {
        position: fixed;
        inset: 78px 16px auto 16px;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        border-radius: 22px;
        background: rgba(10, 7, 18, 0.98);
        border: 1px solid var(--line);
    }

    .navbar.is-open {
        display: flex;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 76px;
        min-height: 42px;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid var(--line);
        color: var(--text);
    }

    .banner-card,
    .admin-topbar,
    .form-mode-head {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .brand img {
        width: 36px;
        height: 36px;
    }

    .hero-backdrop {
        background:
            linear-gradient(110deg, rgba(0, 0, 0, 0.72), rgba(11, 7, 19, 0.45)),
            var(--hero-backdrop-image, url('../images/logo.jpg')) center/260px auto no-repeat,
            radial-gradient(circle at center, rgba(255, 202, 99, 0.16), transparent 30%);
    }

    .hero-title em {
        margin-left: 20px;
    }

    .ticker-card {
        min-width: 240px;
        max-width: 240px;
    }
}
