:root {
    --bg: #080b12;
    --panel: #101725;
    --panel-light: #151f31;
    --panel-soft: rgba(255, 255, 255, 0.045);
    --border: rgba(255, 255, 255, 0.11);
    --border-strong: rgba(255, 255, 255, 0.18);
    --text: #f4f7fb;
    --muted: #9caabd;
    --muted-strong: #c5d2e4;
    --accent: #67b7ff;
    --accent-strong: #8bc9ff;
    --green: #25d18b;
    --green-soft: rgba(37, 209, 139, 0.14);
    --green-border: rgba(37, 209, 139, 0.34);
    --red: #ff4d5f;
    --red-soft: rgba(255, 77, 95, 0.14);
    --red-border: rgba(255, 77, 95, 0.34);
    --yellow: #ffd166;
    --black-light: #05070b;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg);
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(103, 183, 255, 0.17), transparent 34%),
        radial-gradient(circle at top right, rgba(255, 77, 95, 0.11), transparent 30%),
        linear-gradient(180deg, #080b12 0%, #0b101a 50%, #080b12 100%);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: var(--accent-strong);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 12px;
    padding: 12px 16px;
    background: var(--accent);
    color: #04111f;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.12s ease, opacity 0.12s ease, background 0.12s ease;
}

button:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

button:active {
    transform: translateY(0);
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
}

input,
select,
textarea {
    width: 100%;
    color: var(--text);
    background: rgba(0, 0, 0, 0.24);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 13px;
    outline: none;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(103, 183, 255, 0.6);
    box-shadow: 0 0 0 3px rgba(103, 183, 255, 0.12);
}

select option {
    color: #111827;
}

.page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 32px 18px 60px;
}

.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 0 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    color: var(--text);
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    flex-wrap: wrap;
}

.nav-links a {
    color: var(--muted-strong);
    font-size: 14px;
    font-weight: 700;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 13px;
    margin: 4px 0 28px;
}

.breadcrumb a {
    color: var(--muted-strong);
}

.hero {
    max-width: 900px;
    margin: 0 0 26px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--accent-strong);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0 0 14px;
    color: var(--text);
    font-size: clamp(34px, 6vw, 64px);
    line-height: 0.94;
    letter-spacing: -0.06em;
}

.intro {
    max-width: 790px;
    margin: 0;
    color: var(--muted-strong);
    font-size: 17px;
    line-height: 1.62;
}

.secondary-intro {
    margin-top: 9px;
    color: var(--muted);
}

main {
    display: block;
}

.grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 20px;
    margin-bottom: 20px;
}

.panel {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.028)),
        var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 22px;
}

.panel + .panel.wide,
.grid + .panel.wide {
    margin-top: 20px;
}

.panel.wide {
    width: 100%;
    margin-bottom: 20px;
}

.panel h2 {
    margin: 0 0 16px;
    color: var(--text);
    font-size: 24px;
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.section-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.section-title-row h2 {
    margin-bottom: 0;
}

.status-panel {
    min-height: 380px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    width: fit-content;
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--muted-strong);
    background: rgba(255, 255, 255, 0.075);
    border: 1px solid var(--border);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--muted);
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.35);
}

.status-pill.is-open {
    color: #a8ffd8;
    background: var(--green-soft);
    border-color: var(--green-border);
}

.status-pill.is-open .status-dot {
    background: var(--green);
    box-shadow: 0 0 16px rgba(37, 209, 139, 0.95);
}

.status-pill.is-closed {
    color: #ffc2ca;
    background: var(--red-soft);
    border-color: var(--red-border);
}

.status-pill.is-closed .status-dot {
    background: var(--red);
    box-shadow: 0 0 16px rgba(255, 77, 95, 0.95);
}

.main-countdown-wrap {
    display: grid;
    gap: 10px;
    margin: 28px 0 20px;
}

.countdown-label {
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.main-countdown {
    display: block;
    color: var(--text);
    font-size: clamp(48px, 10vw, 86px);
    line-height: 0.92;
    letter-spacing: -0.075em;
    font-weight: 950;
    font-variant-numeric: tabular-nums;
}

.next-change-time {
    color: var(--muted-strong);
    font-size: 15px;
    line-height: 1.45;
}

.patch-note {
    display: block;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.cycle-progress-wrap {
    width: 100%;
    height: 13px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.085);
    border: 1px solid rgba(255, 255, 255, 0.085);
    border-radius: 999px;
    margin: 0 0 20px;
}

.cycle-progress {
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: var(--accent);
    transition: width 0.2s ease;
}

.cycle-progress.is-open {
    background: var(--green);
}

.cycle-progress.is-closed {
    background: var(--red);
}

.hangar-lights-card {
    margin: 0 0 20px;
    padding: 16px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)),
        rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 16px;
}

.hangar-lights-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.hangar-lights-header h3 {
    margin: 0 0 5px;
    color: var(--text);
    font-size: 17px;
    letter-spacing: -0.02em;
}

.hangar-lights-header p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.light-mode-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 86px;
    padding: 7px 10px;
    border-radius: 999px;
    color: var(--muted-strong);
    background: rgba(255, 255, 255, 0.075);
    border: 1px solid rgba(255, 255, 255, 0.10);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.light-mode-badge.is-charging {
    color: #a8ffd8;
    background: var(--green-soft);
    border-color: var(--green-border);
}

.light-mode-badge.is-active {
    color: #a8ffd8;
    background: var(--green-soft);
    border-color: var(--green-border);
}

.light-mode-badge.is-shutdown {
    color: #dbe6f5;
    background: rgba(255, 255, 255, 0.075);
    border-color: rgba(255, 255, 255, 0.13);
}

.hangar-lights {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 13px;
}

.hangar-light {
    display: block;
    position: relative;
    min-height: 42px;
    border-radius: 12px;
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.10);
    overflow: hidden;
}

.hangar-light::after {
    content: "";
    position: absolute;
    inset: 7px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.055);
}

.hangar-light.is-green {
    background:
        radial-gradient(circle at center, rgba(185, 255, 218, 0.95), rgba(37, 209, 139, 0.86) 36%, rgba(22, 121, 78, 0.76) 72%),
        var(--green);
    border-color: rgba(37, 209, 139, 0.70);
    box-shadow: 0 0 18px rgba(37, 209, 139, 0.40);
}

.hangar-light.is-green::after {
    background: rgba(255, 255, 255, 0.20);
}

.hangar-light.is-black {
    background:
        linear-gradient(180deg, #111827, #030507);
    border-color: rgba(255, 255, 255, 0.13);
    box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.92);
}

.hangar-light.is-black::after {
    background: rgba(255, 255, 255, 0.025);
}

.hangar-light.is-red {
    background:
        radial-gradient(circle at center, rgba(255, 170, 178, 0.84), rgba(255, 77, 95, 0.78) 42%, rgba(120, 18, 30, 0.84) 78%),
        var(--red);
    border-color: rgba(255, 77, 95, 0.62);
    box-shadow: 0 0 16px rgba(255, 77, 95, 0.34);
}

.hangar-light.is-red::after {
    background: rgba(255, 255, 255, 0.16);
}

.hangar-light-note {
    color: var(--muted-strong);
    font-size: 13px;
    line-height: 1.45;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.compact-summary {
    margin-top: 18px;
}

.summary-card {
    min-width: 0;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.085);
    border-radius: 15px;
    padding: 14px;
}

.summary-card span {
    display: block;
    margin-bottom: 7px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.summary-card strong {
    display: block;
    color: var(--text);
    font-size: 20px;
    line-height: 1.15;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

.muted {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.cooldown-sections {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0;
    align-items: start;
}

.cooldown-column {
    display: grid;
    gap: 14px;
}

.cooldown-group {
    background: rgba(0, 0, 0, 0.17);
    border: 1px solid rgba(255, 255, 255, 0.085);
    border-radius: 16px;
    padding: 15px;
}

.cooldown-group h3 {
    margin: 0 0 12px;
    color: var(--text);
    font-size: 17px;
    letter-spacing: -0.02em;
}

.cooldown-list {
    display: grid;
    gap: 10px;
}

.cooldown-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 11px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 13px;
}

.cooldown-main {
    min-width: 0;
}

.cooldown-name {
    display: block;
    color: var(--text);
    font-weight: 800;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.cooldown-time {
    display: block;
    margin-top: 5px;
    color: var(--accent-strong);
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

.cooldown-time.is-ready {
    color: var(--green);
}

.cooldown-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    flex-wrap: wrap;
}

.cooldown-actions button {
    min-height: 37px;
    padding: 9px 11px;
    border-radius: 10px;
    font-size: 13px;
}

.btn-start {
    background: var(--green);
    color: #03130c;
}

.btn-reset {
    color: var(--text);
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.11);
}

.btn-delete {
    color: #ffc5cb;
    background: rgba(255, 77, 95, 0.16);
    border: 1px solid rgba(255, 77, 95, 0.28);
}

.custom-timer-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px auto;
    gap: 12px;
    align-items: end;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.085);
}

.form-row {
    display: grid;
    gap: 8px;
}

.form-row label {
    color: var(--muted-strong);
    font-size: 13px;
    font-weight: 800;
}

.small-button {
    padding: 9px 14px;
    font-size: 14px;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 14px;
    font-weight: 800;
}

.checkbox-row input {
    width: auto;
}

.discord-alerts-block {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.085);
}

.discord-alerts-block h3 {
    margin: 0 0 12px;
    color: var(--text);
    font-size: 18px;
    letter-spacing: -0.02em;
}

.inline-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.inline-row label {
    margin: 0;
}

.inline-row input[type="number"] {
    width: 80px;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.085);
    border-radius: 15px;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 660px;
}

th,
td {
    padding: 13px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.075);
}

th {
    color: var(--muted-strong);
    background: rgba(255, 255, 255, 0.045);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

td {
    color: var(--text);
    font-size: 14px;
    line-height: 1.35;
}

tbody tr:last-child td {
    border-bottom: 0;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.status-badge.is-open {
    color: #a8ffd8;
    background: var(--green-soft);
    border: 1px solid var(--green-border);
}

.status-badge.is-closed {
    color: #ffc2ca;
    background: var(--red-soft);
    border: 1px solid var(--red-border);
}

ol {
    margin: 0;
    padding-left: 22px;
    color: var(--muted-strong);
    line-height: 1.7;
}

ol li + li {
    margin-top: 6px;
}

.faq details {
    background: rgba(0, 0, 0, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.085);
    border-radius: 14px;
    padding: 14px 15px;
}

.faq details + details {
    margin-top: 10px;
}

.faq summary {
    color: var(--text);
    font-weight: 900;
    cursor: pointer;
}

.faq p {
    margin: 12px 0 0;
    color: var(--muted);
    line-height: 1.6;
}

.embed-label {
    display: block;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.embed-slot {
    min-height: 100px;
}

.embed-slot--rectangle {
    display: flex;
    justify-content: center;
    min-height: 250px;
}

.site-footer {
    margin-top: 34px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.085);
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
    text-align: left;
}

.site-footer p {
    margin: 0;
}

.site-footer p + p {
    margin-top: 8px;
}

@media (max-width: 900px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .cooldown-sections {
        grid-template-columns: 1fr;
    }

    .custom-timer-form {
        grid-template-columns: 1fr;
    }

    .summary-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .top-nav {
        align-items: flex-start;
        flex-direction: column;
    }

    .nav-links {
        justify-content: flex-start;
        gap: 12px;
    }

    .section-title-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .panel {
        padding: 18px;
    }

    .hero h1 {
        font-size: clamp(34px, 13vw, 52px);
    }

    .main-countdown {
        font-size: clamp(46px, 15vw, 68px);
    }

    .hangar-lights-header {
        flex-direction: column;
    }

    .hangar-lights {
        gap: 7px;
    }

    .hangar-light {
        min-height: 34px;
        border-radius: 10px;
    }

    .hangar-light::after {
        inset: 6px;
        border-radius: 7px;
    }

    .cooldown-item {
        grid-template-columns: 1fr;
    }

    .cooldown-actions {
        justify-content: flex-start;
    }
}