@import url('../vendor/inter-v20/inter.css');
@import url('kiwi-control-tokens.css');
@import url('rules-heading.css');

:root {
    /* Actual account-profile palette; shared with Community without changing its layout. */
    --profile-secondary-surface: var(--bg-panel);
    --profile-hover-surface: rgba(154,255,86,.018);
    --profile-neutral-hover: rgba(255,255,255,.025);
    --profile-active-surface: rgba(154,255,86,.055);
    --profile-action-hover: rgba(154,255,86,.07);
    --profile-action-border: rgba(154,255,86,.16);
    /* Shared navbar glow shown on the account profile; its main hero has no glow. */
    --profile-green-glow: 0 0 8px color-mix(in srgb,var(--green) 12%,transparent);
    /* Shared cookie preferences dialog available on the normal profile. */
    --profile-dialog-backdrop: rgba(0,0,0,.65);

    --bg-main: #050907;
    --kiwi-heading-accent: var(--green);
    --green-dark: #17351f;
    --green-soft: rgba(154, 255, 86, 0.10);

}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
}

/* =========================================================
   HEADER
========================================================= */

.header {
    width: 100%;
    height: 88px;

    position: fixed;
    top: 0;
    left: 0;

    z-index: 1000;

    background: rgba(5, 9, 7, 0.88);

    border-bottom: 1px solid var(--border);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.header-container {
    width: min(1440px, calc(100% - 50px));
    height: 100%;

    margin: 0 auto;

    display: flex;
    align-items: center;

    gap: 24px;
}

/* =========================================================
   LOGO
========================================================= */

.logo {
    display: flex;
    align-items: center;

    gap: 12px;

    min-width: max-content;
}

.logo-symbol {
    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    border: 1px solid var(--border-green);

    background:
        linear-gradient(
            145deg,
            rgba(154, 255, 86, 0.16),
            rgba(255, 255, 255, 0.02)
        );

    color: var(--green);

    font-size: 23px;
    font-weight: 800;

    box-shadow:
        0 0 30px rgba(154, 255, 86, 0.06);
}

.logo-text {
    display: flex;
    flex-direction: column;

    gap: 4px;
}

.logo-title {
    font-size: 17px;
    font-weight: 800;

    letter-spacing: 2px;

    line-height: 1;
}

.logo-subtitle {
    color: var(--green);

    font-size: 8px;
    font-weight: 700;

    letter-spacing: 2px;

    line-height: 1;
}

/* =========================================================
   SERVER STATUS
========================================================= */

.server-status {
    height: 38px;

    display: flex;
    align-items: center;

    gap: 7px;

    padding: 0 13px;

    border: 1px solid var(--border-green);

    border-radius: 9px;

    background: rgba(255, 255, 255, 0.02);

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 0.4px;
}

/* Fixed frame glow; LED motion follows the explicit server state below. */
.header .server-status {
    border: 1px solid color-mix(in srgb, var(--green) 26%, transparent);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.02);
    box-shadow: var(--profile-green-glow);
}

.server-dot {
    width: 7px;
    height: 7px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--text-soft);
    box-shadow: none;
}

.header .server-status.is-maintenance .server-dot {
    background: #f59e0b;
    box-shadow: 0 0 12px rgba(245, 158, 11, .45);
}

.header .server-status.is-online:not(.is-maintenance):not(.is-offline):not(.is-unknown) .server-dot {
    background: var(--green);
    box-shadow: 0 0 4px color-mix(in srgb, var(--green) 55%, transparent);
}

@media (prefers-reduced-motion: no-preference) {
    .header .server-status.is-maintenance .server-dot {
        animation: navbar-maintenance-led 1.8s ease-in-out infinite;
    }

    .header .server-status.is-online:not(.is-maintenance):not(.is-offline):not(.is-unknown) .server-dot {
        animation: navbar-server-led 2s ease-in-out infinite;
    }
}

@keyframes navbar-maintenance-led {
    0%, 100% {
        opacity: .65;
        transform: scale(1);
        box-shadow: 0 0 3px rgba(245, 158, 11, .35);
    }
    50% {
        opacity: 1;
        transform: scale(1.12);
        box-shadow: 0 0 5px rgba(245, 158, 11, .85),
            0 0 10px rgba(245, 158, 11, .45);
    }
}

@keyframes navbar-server-led {
    0%, 100% {
        opacity: .72;
        transform: scale(1);
        box-shadow: 0 0 3px color-mix(in srgb, var(--green) 40%, transparent);
    }
    50% {
        opacity: 1;
        transform: scale(1.12);
        box-shadow: 0 0 5px color-mix(in srgb, var(--green) 70%, transparent),
            0 0 9px color-mix(in srgb, var(--green) 24%, transparent);
    }
}

.server-count {
    color: var(--text-main);
}

.server-online {
    color: var(--text-soft);
}

/* =========================================================
   NAVIGATION
========================================================= */

.navbar {
    margin-left: auto;

    display: flex;
    align-items: center;

    gap: 30px;
}

.nav-link {
    position: relative;

    color: #aab2ac;

    font-size: 13px;
    font-weight: 600;

    transition: 0.25s ease;
}

.nav-link:hover {
    color: var(--text-main);
}

.nav-link::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: -12px;

    width: 0;
    height: 2px;

    transform: translateX(-50%);

    border-radius: 20px;

    background: var(--green);

    transition: 0.25s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 18px;
}

.nav-link.active {
    color: var(--text-main);
}

/* =========================================================
   HEADER ACTIONS
========================================================= */

.header-actions {
    display: flex;
    align-items: center;

    gap: 12px;

    margin-left: 14px;
}

/* SEARCH */

/* LOGIN BUTTON */

.login-button {
    height: 42px;

    padding: 0 18px;

    display: flex;
    align-items: center;

    gap: 9px;

    border: 1px solid var(--border-green);

    border-radius: 24px;

    background:
        linear-gradient(
            145deg,
            rgba(154, 255, 86, 0.07),
            rgba(255, 255, 255, 0.02)
        );

    color: #dce4de;

    font-size: 12px;
    font-weight: 700;

    transition: 0.25s ease;
}

.login-button svg {
    color: var(--green);
}

.login-button:hover {
    color: white;

    border-color: rgba(154, 255, 86, 0.45);

    background: rgba(154, 255, 86, 0.10);

    box-shadow:
        0 0 30px rgba(154, 255, 86, 0.06);
}

/* =========================================================
   MOBILE MENU BUTTON
========================================================= */

.mobile-menu-button {
    display: none;

    width: 42px;
    height: 42px;

    align-items: center;
    justify-content: center;
    flex-direction: column;

    gap: 5px;

    margin-left: auto;

    border: 1px solid var(--border);

    border-radius: 10px;

    background: rgba(255, 255, 255, 0.02);

    cursor: pointer;
}

.mobile-menu-button span {
    width: 18px;
    height: 2px;

    border-radius: 5px;

    background: var(--text-main);
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1100px) {

    .navbar {
        gap: 18px;
    }

    .server-status {
        display: none;
    }

}

@media (max-width: 900px) {

    .navbar,
    .header-actions {
        display: none;
    }

    .mobile-menu-button {
        display: flex;
    }

}

@media (max-width: 520px) {

    .header {
        height: 76px;
    }

    .header-container {
        width: calc(100% - 28px);
    }

    .logo-symbol {
        width: 40px;
        height: 40px;

        font-size: 20px;
    }

    .logo-title {
        font-size: 15px;
    }

    .logo-subtitle {
        font-size: 7px;
    }

}
/* =========================================================
   HERO SECTION
========================================================= */

.hero {
    position: relative;

    min-height: 100vh;

    padding-top: 88px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 55% 35%,
            rgba(90, 255, 65, 0.08),
            transparent 28%
        ),
        radial-gradient(
            circle at 15% 75%,
            rgba(90, 255, 65, 0.04),
            transparent 30%
        ),
        linear-gradient(
            180deg,
            #050907 0%,
            #07100b 100%
        );
}

.hero-glow {
    position: absolute;

    width: 650px;
    height: 650px;

    left: 50%;
    top: 45%;

    transform: translate(-50%, -50%);

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(154, 255, 86, 0.10),
            rgba(154, 255, 86, 0.03) 35%,
            transparent 68%
        );

    filter: blur(20px);

    pointer-events: none;
}

.hero-grid {
    position: absolute;

    inset: 0;

    opacity: 0.15;

    background-image:
        linear-gradient(
            rgba(154, 255, 86, 0.04) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(154, 255, 86, 0.04) 1px,
            transparent 1px
        );

    background-size: 70px 70px;

    mask-image:
        linear-gradient(
            to bottom,
            transparent,
            black 20%,
            black 75%,
            transparent
        );
}

.hero-container {
    position: relative;

    z-index: 2;

    width: min(1440px, calc(100% - 50px));

    min-height: calc(100vh - 88px);

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        minmax(330px, 0.95fr)
        minmax(440px, 1.25fr)
        minmax(280px, 0.70fr);

    align-items: center;

    gap: 50px;
}

/* =========================================================
   HERO LEFT
========================================================= */

.hero-content {
    position: relative;

    z-index: 3;
}

.hero-label {
    display: flex;
    align-items: center;

    gap: 13px;

    margin-bottom: 20px;

    color: var(--green);

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 2.4px;
}

.label-line {
    width: 34px;
    height: 1px;

    background: var(--green);

    box-shadow:
        0 0 10px rgba(154, 255, 86, 0.3);
}

.hero-title {
    display: flex;

    flex-direction: column;

    margin: 0 0 20px;

    line-height: 0.92;
}

.hero-title-small {
    color: #edf4ef;

    font-size: clamp(45px, 4vw, 72px);

    font-weight: 900;

    letter-spacing: -3px;
}

.hero-title-big {
    color: var(--green);

    font-size: clamp(58px, 5.3vw, 95px);

    font-weight: 900;

    letter-spacing: -5px;

    text-shadow:
        0 0 35px rgba(154, 255, 86, 0.08);
}

.green-dot {
    color: #dfffd0;
}

.hero-description {
    max-width: 500px;

    color: #8f9a92;

    font-size: 14px;

    line-height: 1.8;

    margin-bottom: 30px;
}

/* =========================================================
   HERO BUTTONS
========================================================= */

.hero-buttons {
    display: flex;

    align-items: center;

    gap: 14px;

    margin-bottom: 45px;
}

.hero-primary-button {
    min-height: 50px;

    padding: 0 22px;

    display: inline-flex;

    align-items: center;

    gap: 24px;

    border-radius: 11px;

    border: 1px solid rgba(154, 255, 86, 0.38);

    background:
        linear-gradient(
            135deg,
            rgba(154, 255, 86, 0.14),
            rgba(154, 255, 86, 0.04)
        );

    color: var(--green);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1.5px;

    transition: 0.3s ease;
}

.hero-primary-button:hover {
    transform: translateY(-2px);

    border-color: rgba(154, 255, 86, 0.7);

    box-shadow:
        0 12px 40px rgba(154, 255, 86, 0.10);
}

.button-arrow {
    font-size: 18px;
}

.hero-secondary-button {
    min-height: 50px;

    padding: 0 20px;

    display: inline-flex;

    align-items: center;

    color: #8e9991;

    border: 1px solid rgba(255, 255, 255, 0.06);

    border-radius: 11px;

    background: rgba(255, 255, 255, 0.02);

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1.2px;

    transition: 0.3s ease;
}

.hero-secondary-button:hover {
    color: white;

    border-color: rgba(154, 255, 86, 0.16);

    background: rgba(154, 255, 86, 0.04);
}

/* =========================================================
   HERO STATS
========================================================= */

.hero-stats {
    display: flex;

    align-items: center;

    gap: 34px;
}

.hero-stat {
    position: relative;

    display: flex;

    flex-direction: column;

    gap: 5px;
}

.hero-stat:not(:last-child)::after {
    content: "";

    position: absolute;

    right: -17px;

    top: 50%;

    width: 1px;
    height: 30px;

    transform: translateY(-50%);

    background: rgba(255, 255, 255, 0.07);
}

.stat-number {
    color: white;

    font-size: 17px;

    font-weight: 800;
}

.stat-title {
    color: #68736b;

    font-size: 8px;

    font-weight: 800;

    letter-spacing: 1.4px;
}

/* =========================================================
   CENTER VISUAL
========================================================= */

.hero-visual {
    position: relative;

    display: flex;

    justify-content: center;

    align-items: center;

    min-height: 600px;
}

.kiwi-frame {
    position: relative;

    width: min(100%, 570px);
    height: 560px;

    display: flex;

    align-items: center;

    justify-content: center;

    border: 1px solid rgba(154, 255, 86, 0.12);

    background:
        radial-gradient(
            circle at center,
            rgba(154, 255, 86, 0.08),
            transparent 50%
        ),
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.018),
            rgba(255, 255, 255, 0.005)
        );

    box-shadow:
        inset 0 0 80px rgba(0, 0, 0, 0.75),
        0 40px 100px rgba(0, 0, 0, 0.30);

    overflow: hidden;
}

.kiwi-frame::before {
    content: "";

    position: absolute;

    inset: 45px;

    border: 1px solid rgba(154, 255, 86, 0.08);

    transform: rotate(45deg);

    pointer-events: none;
}

.kiwi-frame::after {
    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    border-radius: 50%;

    border: 1px solid rgba(154, 255, 86, 0.10);

    box-shadow:
        0 0 70px rgba(154, 255, 86, 0.06),
        inset 0 0 70px rgba(154, 255, 86, 0.04);
}

.frame-corner {
    position: absolute;

    width: 36px;
    height: 36px;

    z-index: 3;
}

.frame-corner-tl {
    top: 14px;
    left: 14px;

    border-top: 2px solid var(--green);
    border-left: 2px solid var(--green);
}

.frame-corner-tr {
    top: 14px;
    right: 14px;

    border-top: 2px solid var(--green);
    border-right: 2px solid var(--green);
}

.frame-corner-bl {
    bottom: 14px;
    left: 14px;

    border-bottom: 2px solid var(--green);
    border-left: 2px solid var(--green);
}

.frame-corner-br {
    bottom: 14px;
    right: 14px;

    border-bottom: 2px solid var(--green);
    border-right: 2px solid var(--green);
}

.kiwi-background-text {
    position: absolute;

    inset: 0;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 18px;

    opacity: 0.08;

    transform: rotate(-18deg);
}

.kiwi-background-text span {
    white-space: nowrap;

    color: var(--green);

    font-size: 26px;

    font-weight: 900;

    letter-spacing: 6px;
}

.kiwi-logo-big {
    position: relative;

    z-index: 4;

    display: flex;

    align-items: center;

    gap: 16px;
}

.kiwi-text {
    color: #f3f8f4;

    font-size: clamp(40px, 4vw, 62px);

    font-weight: 900;

    letter-spacing: 8px;
}

.v-text {
    color: var(--green);

    font-size: clamp(110px, 10vw, 155px);

    font-weight: 900;

    line-height: 0.8;

    text-shadow:
        0 0 35px rgba(154, 255, 86, 0.25);
}

.frame-bottom-text {
    position: absolute;

    bottom: 25px;

    left: 50%;

    transform: translateX(-50%);

    display: flex;

    align-items: center;

    gap: 8px;

    color: #4c5b50;

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 2px;
}

.frame-bottom-text strong {
    color: var(--green);
}

/* =========================================================
   RIGHT TIMELINE
========================================================= */

.hero-side {
    position: relative;

    padding-left: 20px;
}

.side-top {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 14px;
}

.side-number {
    color: var(--green);

    font-size: 9px;

    font-weight: 800;
}

.side-line {
    width: 28px;
    height: 1px;

    background: rgba(154, 255, 86, 0.45);
}

.side-category {
    color: var(--green);

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 1.8px;
}

.side-title {
    color: #dfe6e0;

    font-size: 14px;

    line-height: 1.6;

    font-weight: 700;

    letter-spacing: 1.2px;

    margin-bottom: 30px;
}

.timeline {
    position: relative;

    display: flex;

    flex-direction: column;

    gap: 28px;

    padding-left: 21px;
}

.timeline::before {
    content: "";

    position: absolute;

    left: 4px;
    top: 5px;
    bottom: 5px;

    width: 1px;

    background: rgba(255, 255, 255, 0.09);
}

.timeline-item {
    position: relative;
}

.timeline-marker {
    position: absolute;

    left: -21px;
    top: 4px;

    width: 9px;
    height: 9px;

    border-radius: 50%;

    border: 2px solid #39433c;

    background: #07100b;

    z-index: 2;
}

.timeline-item.completed .timeline-marker {
    border-color: rgba(154, 255, 86, 0.6);

    background: var(--green);
}

.timeline-item.current .timeline-marker {
    border-color: var(--green);

    background: var(--green);

    box-shadow:
        0 0 18px rgba(154, 255, 86, 0.6);
}

.timeline-content {
    display: flex;

    flex-direction: column;

    gap: 5px;
}

.timeline-content span {
    color: #dbe5dd;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1px;
}

.timeline-content strong {
    color: #606c63;

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 1.1px;
}

.timeline-item.current .timeline-content strong {
    color: var(--green);
}

.timeline-content small {
    max-width: 180px;

    color: #657068;

    font-size: 9px;

    line-height: 1.5;
}

/* =========================================================
   BOTTOM
========================================================= */

.hero-bottom {
    position: absolute;

    z-index: 4;

    left: 50%;
    bottom: 22px;

    transform: translateX(-50%);

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 8px;

    color: #4d5850;

    font-size: 8px;

    font-weight: 800;

    letter-spacing: 1.8px;
}

.scroll-line {
    width: 1px;
    height: 28px;

    background:
        linear-gradient(
            to bottom,
            var(--green),
            transparent
        );
}

/* =========================================================
   HERO RESPONSIVE
========================================================= */

@media (max-width: 1200px) {

    .hero-container {
        grid-template-columns:
            0.9fr
            1.1fr;
    }

    .hero-side {
        display: none;
    }

}

@media (max-width: 900px) {

    .hero {
        padding-top: 76px;
    }

    .hero-container {
        min-height: auto;

        grid-template-columns: 1fr;

        padding-top: 80px;

        padding-bottom: 100px;
    }

    .hero-content {
        text-align: center;
    }

    .hero-label {
        justify-content: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons,
    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        min-height: 480px;
    }

    .kiwi-frame {
        height: 470px;
    }

}

@media (max-width: 600px) {

    .hero-container {
        width: calc(100% - 28px);

        padding-top: 55px;

        gap: 25px;
    }

    .hero-title-small {
        font-size: 42px;

        letter-spacing: -2px;
    }

    .hero-title-big {
        font-size: 54px;

        letter-spacing: -3px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-primary-button,
    .hero-secondary-button {
        width: 100%;

        justify-content: center;
    }

    .hero-stats {
        gap: 24px;
    }

    .hero-visual {
        min-height: 390px;
    }

    .kiwi-frame {
        width: 100%;
        height: 390px;
    }

    .kiwi-text {
        font-size: 27px;

        letter-spacing: 4px;
    }

    .v-text {
        font-size: 90px;
    }

}
/* =========================================================
   FOOTER
========================================================= */

.footer {
    position: relative;

    background:
        linear-gradient(
            180deg,
            #07100b 0%,
            #040705 100%
        );

    border-top: 1px solid rgba(154, 255, 86, 0.08);
}

.footer-main {
    position: relative;

    padding: 75px 0 60px;

    overflow: hidden;
}

.footer-main::before {
    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    left: -200px;
    bottom: -300px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(154, 255, 86, 0.08),
            transparent 70%
        );

    pointer-events: none;
}

.footer-container {
    position: relative;

    z-index: 2;

    width: min(1440px, calc(100% - 50px));

    margin: 0 auto;
}

.footer-main .footer-container {
    display: grid;

    grid-template-columns:
        1.5fr
        0.7fr
        0.7fr
        0.7fr;

    gap: 70px;
}

/* =========================================================
   FOOTER ABOUT
========================================================= */

.footer-about {
    max-width: 390px;
}

.footer-logo {
    display: inline-flex;

    align-items: center;

    gap: 13px;

    margin-bottom: 22px;
}

.footer-logo-box {
    width: 48px;
    height: 48px;

    display: flex;

    align-items: center;

    justify-content: center;

    border: 1px solid rgba(154, 255, 86, 0.30);

    border-radius: 12px;

    background:
        linear-gradient(
            145deg,
            rgba(154, 255, 86, 0.14),
            rgba(255, 255, 255, 0.02)
        );

    color: var(--green);

    font-size: 24px;

    font-weight: 900;

    box-shadow:
        0 0 28px rgba(154, 255, 86, 0.05);
}

.footer-logo-text {
    display: flex;

    flex-direction: column;

    gap: 5px;
}

.footer-logo-text strong {
    color: #f3f7f4;

    font-size: 18px;

    font-weight: 900;

    letter-spacing: 2px;
}

.footer-logo-text small {
    color: var(--green);

    font-size: 8px;

    font-weight: 800;

    letter-spacing: 2px;
}

.footer-about p {
    color: #778178;

    font-size: 12px;

    line-height: 1.8;

    margin-bottom: 24px;
}

.footer-status {
    width: fit-content;

    display: flex;

    align-items: center;

    gap: 8px;

    padding: 9px 12px;

    border: 1px solid rgba(154, 255, 86, 0.12);

    border-radius: 8px;

    background: rgba(154, 255, 86, 0.025);

    color: #8b968e;

    font-size: 8px;

    font-weight: 800;

    letter-spacing: 1.4px;
}

.footer-status-dot {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: var(--green);

    box-shadow:
        0 0 10px rgba(154, 255, 86, 0.7);
}

/* =========================================================
   FOOTER COLUMNS
========================================================= */

.footer-column {
    display: flex;

    flex-direction: column;

    align-items: flex-start;

    gap: 13px;
}

.footer-column h4 {
    position: relative;

    color: #e6ece7;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1.8px;

    margin-bottom: 9px;

    padding-bottom: 12px;
}

.footer-column h4::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 20px;
    height: 1px;

    background: var(--green);
}

.footer-column a {
    color: #6f7971;

    font-size: 11px;

    font-weight: 500;

    transition: 0.25s ease;
}

.footer-column a:hover {
    color: var(--green);

    transform: translateX(4px);
}

/* =========================================================
   FOOTER BOTTOM
========================================================= */

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);

    background: rgba(0, 0, 0, 0.22);
}

.footer-bottom-inner {
    min-height: 72px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;
}

.footer-copyright {
    color: #59625b;

    font-size: 9px;

    font-weight: 600;

    letter-spacing: 0.5px;
}

.footer-legal {
    display: flex;

    align-items: center;

    gap: 12px;
}

.footer-legal .kv-cookie-footer-link {
    appearance: none;
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    font: inherit;
    letter-spacing: inherit;
}

.footer-legal a,
.footer-legal .kv-cookie-footer-link {
    color: #59625b;

    font-size: 9px;

    transition: 0.25s ease;
}

.footer-legal a:hover,
.footer-legal .kv-cookie-footer-link:hover {
    color: var(--green);
}

.footer-separator {
    width: 1px;
    height: 12px;

    background: rgba(255, 255, 255, 0.08);
}

.footer-credit {
    color: #465048;

    font-size: 8px;

    font-weight: 700;

    letter-spacing: 1.4px;
}

.footer-credit strong {
    color: var(--green);

    margin-left: 4px;
}

/* =========================================================
   FOOTER RESPONSIVE
========================================================= */

@media (max-width: 1000px) {

    .footer-main .footer-container {
        grid-template-columns:
            1.4fr
            1fr
            1fr;

        gap: 45px;
    }

    .footer-column:last-child {
        grid-column: 2;
    }

}

@media (max-width: 700px) {

    .footer-main {
        padding: 55px 0 40px;
    }

    .footer-main .footer-container {
        grid-template-columns: 1fr;

        gap: 40px;
    }

    .footer-column:last-child {
        grid-column: auto;
    }

    .footer-bottom-inner {
        padding: 25px 0;

        flex-direction: column;

        align-items: flex-start;
    }

}

@media (max-width: 520px) {

    .footer-container {
        width: calc(100% - 28px);
    }

}
/* =========================================================
   NEW NAVBAR
========================================================= */

.navbar {
    margin-left: auto;

    display: flex;
    align-items: center;

    gap: 7px;
}


/* =========================================================
   NAV BOX
========================================================= */

.nav-box {
    position: relative;

    min-height: 44px;

    padding: 0 17px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    border: 1px solid transparent;

    border-radius: 9px;

    background: transparent;

    color: #a7afa9;

    font-size: 12px;
    font-weight: 700;

    white-space: nowrap;
}

.nav-box,
.user-menu-trigger {
    transition:
        color 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease;
}


/* HOVER */

.nav-box:hover,
.header .user-menu-trigger:is(:hover, :focus-visible) {
    color: #ffffff;

    background: rgba(255, 255, 255, 0.035);

    border-color: rgba(255, 255, 255, 0.035);
}


/* ACTIVE */

.nav-box.active,
.header .user-menu-trigger[aria-expanded="true"] {
    color: var(--green);

    background:
        linear-gradient(
            145deg,
            rgba(154, 255, 86, 0.10),
            rgba(154, 255, 86, 0.035)
        );

    border-color: rgba(154, 255, 86, 0.08);
}


/* ACTIVE BOTTOM LINE */

.nav-box.active::after,
.header .user-menu-trigger[aria-expanded="true"]::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: -1px;

    width: 18px;
    height: 2px;

    transform: translateX(-50%);

    border-radius: 10px;

    background: var(--green);

    box-shadow:
        0 0 10px rgba(154, 255, 86, 0.45);
}


/* =========================================================
   DROPDOWN
========================================================= */

.nav-dropdown {
    position: relative;

    /* Menü ile açılan kutu arasındaki boşluğu hover alanı yapar */
    padding-bottom: 18px;
    margin-bottom: -18px;
}

/* ARROW */

.dropdown-arrow {
    color: #68726b;

    transition:
        transform 0.25s ease,
        color 0.25s ease;
}


/* WHEN OPEN */

.nav-dropdown:hover > .nav-box {
    color: #ffffff;

    background: rgba(255, 255, 255, 0.045);

    border-color: rgba(255, 255, 255, 0.04);
}

.nav-dropdown:hover .dropdown-arrow {
    color: var(--green);

    transform: rotate(180deg);
}


/* =========================================================
   DROPDOWN BOX
========================================================= */

.nav-dropdown-menu {
    position: absolute;

    /* Tam butonun altından başlar */
    top: 100%;
    left: 50%;

    width: 270px;

    padding: 10px;

    border: 1px solid rgba(154, 255, 86, 0.10);
    border-radius: 12px;

    background:
        linear-gradient(
            145deg,
            rgba(12, 18, 14, 0.99),
            rgba(6, 11, 8, 0.99)
        );

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.55),
        0 0 40px rgba(154, 255, 86, 0.025);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    /* Tam ortala */
    transform: translate(-50%, 8px);

    transition:
        opacity 0.18s ease,
        visibility 0.18s ease,
        transform 0.22s ease;

    z-index: 5000;
}


/* INVISIBLE HOVER BRIDGE */


/* SHOW */

.nav-dropdown-menu {
    position: absolute;

    top: calc(100% + 16px);
    left: 50%;

    width: 270px;

    padding: 10px;

    border: 1px solid rgba(154, 255, 86, 0.10);

    border-radius: 12px;

    background:
        linear-gradient(
            145deg,
            rgba(12, 18, 14, 0.99),
            rgba(6, 11, 8, 0.99)
        );

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.55),
        0 0 40px rgba(154, 255, 86, 0.025);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transform: translate(-50%, 7px);

    transition:
        opacity 0.18s ease,
        visibility 0.18s ease,
        transform 0.22s ease;

    z-index: 5000;
}

.nav-dropdown:not(.is-dismissed):hover .nav-dropdown-menu,
.nav-dropdown.is-open > .nav-dropdown-menu {
    opacity: 1;

    visibility: visible;

    pointer-events: auto;

    transform: translate(-50%, 0);
}


/* =========================================================
   DROPDOWN ITEMS
========================================================= */

.dropdown-item {
    position: relative;

    width: 100%;
    min-height: 62px;

    padding: 12px 14px;

    display: flex;
    flex-direction: column;

    justify-content: center;

    gap: 5px;

    border: 1px solid transparent;

    border-radius: 8px;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        padding-left 0.2s ease;
}


.dropdown-item strong {
    color: #d9dfda;

    font-size: 12px;
    font-weight: 700;

    transition: color 0.2s ease;
}


.dropdown-item span {
    color: #626c65;

    font-size: 9px;
    font-weight: 500;

    line-height: 1.4;

    transition: color 0.2s ease;
}


/* ITEM HOVER */

.dropdown-item:hover {
    padding-left: 18px;

    background:
        linear-gradient(
            90deg,
            rgba(154, 255, 86, 0.065),
            rgba(154, 255, 86, 0.015)
        );

    border-color: rgba(154, 255, 86, 0.08);
}


.dropdown-item:hover strong {
    color: var(--green);
}


.dropdown-item:hover span {
    color: #879189;
}


/* LEFT GREEN INDICATOR */

.dropdown-item::before {
    content: "";

    position: absolute;

    left: 0;
    top: 50%;

    width: 2px;
    height: 0;

    transform: translateY(-50%);

    border-radius: 5px;

    background: var(--green);

    box-shadow:
        0 0 10px rgba(154, 255, 86, 0.6);

    transition: height 0.2s ease;
}


.dropdown-item:hover::before {
    height: 25px;
}
/* =========================
   DROPDOWN FIX
========================= */

.nav-dropdown {
    position: relative !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.nav-dropdown-menu {
    position: var(--nav-menu-position, absolute) !important;

    top: var(--nav-menu-top, 100%) !important;
    left: var(--nav-menu-left, 50%) !important;

    width: var(--nav-menu-width, 270px) !important;

    transform: var(--nav-menu-transform, translateX(-50%)) !important;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    z-index: 9999 !important;
}

.nav-dropdown:not(.is-dismissed):hover .nav-dropdown-menu,
.nav-dropdown.is-open > .nav-dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: var(--nav-menu-transform, translateX(-50%)) !important;
}
/* Shared navigation: accessible disclosures and the same menu on mobile. */
.nav-dropdown-trigger {
    font-family: inherit;
    cursor: pointer;
}

.nav-dropdown.is-open .dropdown-arrow {
    color: var(--green);
    transform: rotate(180deg);
}

.header :where(.nav-box, .dropdown-item, .mobile-menu-button):focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 2px;
}

.dropdown-item.has-icon {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}

.dropdown-item-icon {
    width: 28px;
    height: 28px;
    color: #8aa17f;
    padding: 5px;
    border: 1px solid rgba(154, 255, 86, 0.08);
    border-radius: 7px;
    background: rgba(154, 255, 86, 0.025);
}

.dropdown-item-copy {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
    overflow-wrap: anywhere;
}

.dropdown-item-soon {
    color: #73816f;
    font-size: 8px;
    white-space: nowrap;
}

.dropdown-item.is-unavailable {
    cursor: default;
}

@media (min-width: 901px) and (max-width: 1280px) {
    .header-container {
        gap: 14px;
    }

    .header .nav-box {
        padding: 0 10px;
        gap: 6px;
    }
}

@media (max-width: 900px) {
    .header-container {
        gap: 10px;
    }

    .header .header-actions {
        display: flex;
        margin-left: auto;
        gap: 8px;
    }

    .header .mobile-menu-button {
        display: flex;
        flex-shrink: 0;
        margin-left: 0;
    }

    .header .navbar {
        --nav-menu-position: static;
        --nav-menu-top: auto;
        --nav-menu-left: auto;
        --nav-menu-width: 100%;
        --nav-menu-transform: none;
        display: none;
        position: absolute;
        top: 100%;
        left: 14px;
        right: 14px;
        margin: 0;
        padding: 10px;
        gap: 4px;
        border: 1px solid rgba(154, 255, 86, 0.12);
        border-radius: 10px;
        background: #0b100d;
        max-height: calc(100dvh - 104px);
        overflow-y: auto;
    }

    .header .navbar.is-open {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .header .nav-box {
        width: 100%;
        justify-content: space-between;
    }

    .header .nav-dropdown-menu {
        display: none;
        margin-top: 4px;
    }

    .header .nav-dropdown.is-open > .nav-dropdown-menu {
        display: block;
    }
}

@media (prefers-reduced-motion: reduce) {
    .header .nav-dropdown-menu,
    .header .dropdown-arrow {
        transition: none;
    }
}

/* =========================================================
   USER MENU
========================================================= */

.user-menu {
    position: relative;
}


/* =========================================================
   USER BUTTON
========================================================= */


.header .user-menu-trigger:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
    .header .user-menu-trigger,
    .header .user-menu-arrow { transition: none; }
}
.user-menu-trigger {
    position: relative;
    min-height: 44px;
    max-width: 220px;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 11px;
    background: #0d120f;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
    color: var(--text-main);
    font-family: inherit;
    text-align: left;
    cursor: pointer;
}



/* =========================================================
   AVATAR
========================================================= */

.user-avatar {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: var(--bg-soft);
    color: var(--green);
    font-size: 11px;
    font-weight: 700;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}


/* =========================================================
   USER BUTTON TEXT
========================================================= */

.user-menu-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    gap: 2px;
}

.user-menu-info strong {
    display: block;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-main);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
}

.user-menu-info small {
    color: var(--text-soft);
    font-size: 9px;
    font-weight: 500;
    line-height: 1.3;
}

.user-menu-arrow {
    display: grid;
    place-items: center;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    margin-left: 2px;
    color: var(--text-soft);
    font-size: 11px;
    line-height: 1;
    transition: color .2s ease, transform .2s ease;
}

.user-menu.is-open .user-menu-arrow {
    color: var(--green);
    transform: rotate(180deg);
}


/* =========================================================
   PROFILE AREA
========================================================= */

.user-dropdown-profile {
    padding: 9px 10px 13px;

    display: flex;
    align-items: center;

    gap: 12px;
}

.user-dropdown-avatar {
    width: 46px;
    height: 46px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    border-radius: 11px;

    border: 1px solid rgba(154, 255, 86, 0.25);

    background: rgba(154, 255, 86, 0.07);

    color: var(--green);

    font-size: 14px;
    font-weight: 800;
}

.user-dropdown-avatar img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.user-dropdown-profile-text {
    display: flex;
    flex-direction: column;

    gap: 5px;
}

.user-dropdown-profile-text strong {
    color: #eef3ef;

    font-size: 13px;
    font-weight: 700;
}

.user-dropdown-profile-text span {
    color: #68736b;

    font-size: 9px;
}


/* =========================================================
   PUBLIC APPLICATIONS PAGE
========================================================= */

.applications-page {
    min-height: 100vh;

    padding: 150px 0 90px;

    background:
        radial-gradient(
            circle at 50% 20%,
            rgba(154, 255, 86, 0.05),
            transparent 30%
        ),
        #050806;
}

.applications-page-container {
    width: min(1250px, calc(100% - 50px));
    margin: 0 auto;
}

.applications-page-header {
    max-width: 650px;

    margin-bottom: 42px;
}

.applications-page-label {
    display: block;

    margin-bottom: 10px;

    color: var(--green);

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 2px;
}

.applications-page-header h1 {
    margin-bottom: 12px;

    color: #f0f5f1;

    font-size: 38px;
    font-weight: 800;

    letter-spacing: -1.5px;
}

.applications-page-header p {
    color: #707c73;

    font-size: 12px;

    line-height: 1.7;
}


/* =========================================================
   GRID
========================================================= */

.applications-grid {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 16px;
}


/* =========================================================
   APPLICATION CARD
========================================================= */

.public-application-card {
    position: relative;

    min-height: 270px;

    padding: 24px;

    display: flex;
    flex-direction: column;

    border: 1px solid rgba(255, 255, 255, 0.05);

    border-radius: 12px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.022),
            rgba(255, 255, 255, 0.006)
        );

    overflow: hidden;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.public-application-card::before {
    content: "";

    position: absolute;

    left: 0;
    top: 50%;

    width: 2px;
    height: 0;

    transform: translateY(-50%);

    background: var(--green);

    box-shadow:
        0 0 12px rgba(154, 255, 86, 0.6);

    transition: height 0.25s ease;
}

.public-application-card:hover {
    transform: translateY(-3px);

    border-color: rgba(154, 255, 86, 0.14);

    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.20);
}

.public-application-card:hover::before {
    height: 75px;
}


/* =========================================================
   TOP
========================================================= */

.public-application-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-bottom: 24px;
}

.public-application-status,
.public-application-question-count {
    padding: 6px 9px;

    border-radius: 20px;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 1px;
}

.public-application-status {
    color: var(--green);

    border: 1px solid rgba(154, 255, 86, 0.13);

    background: rgba(154, 255, 86, 0.04);
}

.public-application-question-count {
    color: #68736b;

    border: 1px solid rgba(255, 255, 255, 0.05);

    background: rgba(255, 255, 255, 0.015);
}


/* =========================================================
   CONTENT
========================================================= */

.public-application-card h2 {
    margin-bottom: 10px;

    color: #e9efea;

    font-size: 20px;
    font-weight: 700;
}

.public-application-card p {
    max-width: 550px;

    margin-bottom: 30px;

    color: #69746c;

    font-size: 11px;

    line-height: 1.7;
}


/* =========================================================
   FOOTER
========================================================= */

.public-application-footer {
    margin-top: auto;

    padding-top: 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    border-top: 1px solid rgba(255, 255, 255, 0.045);
}

.public-application-footer > span {
    color: #4e5951;

    font-size: 7px;
    font-weight: 800;

    letter-spacing: 1.5px;
}

.public-application-button {
    min-height: 41px;

    padding: 0 13px;

    display: inline-flex;
    align-items: center;

    gap: 10px;

    border: 1px solid rgba(154, 255, 86, 0.13);
    border-radius: 8px;

    background: rgba(154, 255, 86, 0.035);

    color: var(--green);

    font-size: 9px;
    font-weight: 700;

    transition: 0.22s ease;
}

.public-application-button:hover {
    border-color: rgba(154, 255, 86, 0.28);

    background: rgba(154, 255, 86, 0.07);
}


/* =========================================================
   EMPTY
========================================================= */

.applications-empty {
    min-height: 330px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;

    border: 1px dashed rgba(154, 255, 86, 0.08);
    border-radius: 12px;

    background: rgba(255, 255, 255, 0.01);
}

.applications-empty-icon {
    width: 52px;
    height: 52px;

    margin-bottom: 15px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(154, 255, 86, 0.16);

    border-radius: 12px;

    background: rgba(154, 255, 86, 0.045);

    color: var(--green);

    font-weight: 900;
}

.applications-empty h2 {
    margin-bottom: 8px;

    color: #e1e7e2;

    font-size: 16px;
}

.applications-empty p {
    color: #68736b;

    font-size: 10px;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 800px) {

    .applications-grid {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 550px) {

    .applications-page-container {
        width: calc(100% - 28px);
    }

    .applications-page-header h1 {
        font-size: 30px;
    }

    .public-application-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .public-application-button {
        width: 100%;

        justify-content: center;
    }

}
/* =========================================================
   APPLICATION FORM
========================================================= */

.application-form-page {
    min-height: 100vh;

    padding: 145px 0 90px;

    background:
        radial-gradient(
            circle at 50% 10%,
            rgba(154, 255, 86, 0.05),
            transparent 30%
        ),
        #050806;
}

.application-form-container {
    width: min(1050px, calc(100% - 50px));
    margin: 0 auto;
}

.application-form-header {
    margin-bottom: 25px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 25px;
}

.application-form-header h1 {
    margin: 8px 0 10px;

    color: #edf3ee;

    font-size: 34px;
    font-weight: 800;
}

.application-form-header p {
    max-width: 650px;

    color: #6d786f;

    font-size: 11px;

    line-height: 1.7;
}


/* USER */

.application-user-box {
    margin-bottom: 18px;

    padding: 16px;

    display: flex;
    align-items: center;

    gap: 12px;

    border: 1px solid rgba(154, 255, 86, 0.08);
    border-radius: 10px;

    background: rgba(154, 255, 86, 0.02);
}

.application-user-avatar {
    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    border: 1px solid rgba(154, 255, 86, 0.18);
    border-radius: 9px;

    color: var(--green);

    font-weight: 800;
}

.application-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.application-user-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.application-user-info > span {
    color: var(--green);

    font-size: 7px;
    font-weight: 800;

    letter-spacing: 1.3px;
}

.application-user-info strong {
    color: #e8eee9;

    font-size: 12px;
}

.application-user-info small {
    color: #5f6a62;

    font-size: 8px;
}


/* QUESTIONS */

.public-application-form {
    display: flex;
    flex-direction: column;

    gap: 12px;
}

.public-question-card {
    padding: 21px;

    border: 1px solid rgba(255, 255, 255, 0.05);

    border-radius: 11px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.02),
            rgba(255, 255, 255, 0.006)
        );
}

.public-question-top {
    margin-bottom: 14px;

    display: flex;
    align-items: flex-start;

    gap: 11px;
}

.public-question-number {
    width: 28px;
    height: 28px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(154, 255, 86, 0.13);

    border-radius: 7px;

    color: var(--green);

    font-size: 9px;
    font-weight: 800;
}

.public-question-top h3 {
    color: #dfe6e0;

    font-size: 12px;
    font-weight: 700;

    line-height: 1.6;
}

.public-question-answer input[type="text"],
.public-question-answer textarea,
.public-question-answer select {
    width: 100%;

    padding: 12px 13px;

    border: 1px solid rgba(255, 255, 255, 0.06);

    border-radius: 8px;

    background: rgba(255, 255, 255, 0.018);

    color: #e8eee9;

    font-family: inherit;

    outline: none;
}

.public-question-answer input[type="text"]:focus,
.public-question-answer textarea:focus,
.public-question-answer select:focus {
    border-color: rgba(154, 255, 86, 0.25);
}

.public-question-answer select option {
    background: #0a100c;
}


/* RADIO */

.public-radio-list {
    display: flex;
    flex-direction: column;

    gap: 8px;
}

.public-radio-list label,
.public-checkbox {
    min-height: 42px;

    padding: 0 12px;

    display: flex;
    align-items: center;

    gap: 9px;

    border: 1px solid rgba(255, 255, 255, 0.05);

    border-radius: 8px;

    background: rgba(255, 255, 255, 0.015);

    color: #89948b;

    font-size: 10px;

    cursor: pointer;
}

.public-radio-list input,
.public-checkbox input {
    accent-color: var(--green);
}


/* SUBMIT */

.public-application-submit {
    padding-top: 10px;

    display: flex;
    justify-content: flex-end;
}


/* MESSAGE */

.application-message,
.application-existing {
    margin-bottom: 18px;

    padding: 18px;

    border-radius: 10px;
}

.application-message.error {
    color: #e19a9a;

    border: 1px solid rgba(225, 154, 154, 0.12);

    background: rgba(225, 154, 154, 0.035);
}

.application-message.success {
    color: var(--green);

    border: 1px solid rgba(154, 255, 86, 0.12);

    background: rgba(154, 255, 86, 0.035);
}

.application-existing {
    border: 1px solid rgba(154, 255, 86, 0.08);

    background: rgba(154, 255, 86, 0.02);
}

.application-existing h2 {
    margin: 7px 0;

    color: #e5ebe6;

    font-size: 18px;
}

.application-existing p {
    margin-bottom: 15px;

    color: #69746c;

    font-size: 10px;
}

.application-status-pill.pending {
    display: inline-flex;

    padding: 6px 9px;

    border-radius: 20px;

    color: #deb86b;

    border: 1px solid rgba(222, 184, 107, 0.13);

    background: rgba(222, 184, 107, 0.035);

    font-size: 8px;
    font-weight: 800;
}


/* RESPONSIVE */

@media (max-width: 700px) {

    .application-form-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .application-form-container {
        width: calc(100% - 28px);
    }

}
/* =========================================================
   APPLICATION STATUS
========================================================= */

.public-application-state {
    min-height: 43px;

    padding: 7px 12px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    gap: 3px;

    border-radius: 8px;

    cursor: default;
}

.public-application-state strong {
    font-size: 9px;
    font-weight: 700;
}

.public-application-state span {
    font-size: 7px;
    font-weight: 700;

    letter-spacing: .7px;
}

/* PENDING */

.public-application-state.pending {
    border: 1px solid rgba(222, 184, 107, 0.15);

    background: rgba(222, 184, 107, 0.035);
}

.public-application-state.pending strong {
    color: #e1bd74;
}

.public-application-state.pending span {
    color: #88744f;
}

/* APPROVED */

.public-application-state.approved {
    border: 1px solid rgba(154, 255, 86, 0.15);

    background: rgba(154, 255, 86, 0.04);
}

.public-application-state.approved strong {
    color: var(--green);
}

.public-application-state.approved span {
    color: #6d8e60;
}

/* REJECTED */

.public-application-state.rejected {
    border: 1px solid rgba(225, 120, 120, 0.14);

    background: rgba(225, 120, 120, 0.035);
}

.public-application-state.rejected strong {
    color: #df9292;
}

.public-application-state.rejected span {
    color: #875d5d;
}
.application-rejection-reason {
    max-width: 420px;

    color: #d58b8b !important;

    font-size: 11px !important;
    font-weight: 500 !important;

    line-height: 1.6;

    letter-spacing: 0 !important;

    margin-top: 4px;
}
.public-application-footer-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    gap: 6px;
}

.public-application-footer-info > span {
    color: #4e5951;

    font-size: 7px;
    font-weight: 800;

    letter-spacing: 1.5px;
}

.application-footer-rejection {
    width: fit-content;
    max-width: 500px;

    margin: 2px 0 0;
    padding: 7px 12px;

    display: inline-block;

    color: #d58b8b !important;

    font-size: 11px !important;
    font-weight: 500;

    line-height: 1.5;
    letter-spacing: 0;

    border: 1px solid rgba(225, 120, 120, 0.18);
    border-radius: 20px;

    background: rgba(225, 120, 120, 0.055);
}

.application-footer-rejection strong {
    color: #ef9b9b;
    font-weight: 700;
}
.application-footer-rejection strong {
    color: #d58b8b;

    font-weight: 700;
}
/* =========================================================
   PROFILE APPLICATION HISTORY
========================================================= */

.profile-applications-section {
    margin-top: 30px;
}

.profile-section-header {
    margin-bottom: 16px;
}

.profile-section-header > span {
    display: block;

    margin-bottom: 6px;

    color: var(--green);

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 1.7px;
}

.profile-section-header h2 {
    color: #e8eee9;

    font-size: 20px;
    font-weight: 700;
}


/* LIST */

.profile-application-list {
    display: flex;
    flex-direction: column;

    gap: 12px;
}


/* CARD */

.profile-application-card {
    padding: 18px;

    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.018),
            rgba(255, 255, 255, 0.006)
        );
}


/* HEADER */


.profile-application-main h3 {
    color: #e2e8e3;

    font-size: 13px;
    font-weight: 700;
}

.profile-application-main span {
    color: #5f6961;

    font-size: 8px;
}


/* STATUS */

.profile-application-status {
    width: fit-content;

    margin-top: 10px;

    padding: 6px 10px;

    border-radius: 20px;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 0.8px;
}

.profile-application-status.pending {
    color: #e1bd74;

    border: 1px solid rgba(225, 189, 116, 0.13);

    background: rgba(225, 189, 116, 0.035);
}

.profile-application-status.approved {
    color: var(--green);

    border: 1px solid rgba(154, 255, 86, 0.13);

    background: rgba(154, 255, 86, 0.035);
}

.profile-application-status.rejected {
    color: #df9292;

    border: 1px solid rgba(223, 146, 146, 0.14);

    background: rgba(223, 146, 146, 0.035);
}


/* REJECTION REASON */

.profile-rejection-reason {
    margin-top: 14px;

    padding: 12px 14px;

    border: 1px solid rgba(225, 120, 120, 0.14);
    border-radius: 9px;

    background: rgba(225, 120, 120, 0.035);
}

.profile-rejection-reason strong {
    display: block;

    margin-bottom: 6px;

    color: #e69a9a;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 1px;
}

.profile-rejection-reason p {
    margin: 0;

    color: #c58484;

    font-size: 11px;
    font-weight: 500;

    line-height: 1.6;
}


/* EMPTY */

.profile-empty-box {
    padding: 18px;

    border: 1px dashed rgba(154, 255, 86, 0.08);
    border-radius: 10px;

    color: #68736b;

    font-size: 10px;
}
/* =========================================================
   PROFILE PAGE
========================================================= */

.profile-page {
    min-height: calc(100vh - 80px);
    padding: 45px 20px 80px;
}

.profile-container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}


/* =========================================================
   PROFILE HERO
========================================================= */

.profile-hero {
    margin-bottom: 14px;
    padding: 24px;

    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            rgba(154, 255, 86, 0.035),
            rgba(255, 255, 255, 0.01)
        );
}

.profile-hero-user {
    display: flex;
    align-items: center;
    gap: 18px;
}

.profile-main-avatar {
    width: 72px;
    height: 72px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    border: 1px solid rgba(154, 255, 86, 0.18);
    border-radius: 50%;

    background: rgba(154, 255, 86, 0.05);

    color: var(--green);

    font-size: 22px;
    font-weight: 800;
}

.profile-main-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-main-info {
    display: flex;
    flex-direction: column;
}

.profile-label {
    margin-bottom: 5px;

    color: var(--green);

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 1.6px;
}

.profile-main-info h1 {
    margin: 0 0 5px;

    color: #edf2ee;

    font-size: 25px;
    font-weight: 750;
}

.profile-main-info p {
    margin: 0;

    color: #69736b;

    font-size: 9px;
}


/* =========================================================
   STATUS CARDS
========================================================= */

.profile-status-grid {
    margin-bottom: 14px;

    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 12px;
}

.profile-status-card {
    min-height: 115px;
    padding: 17px;

    display: flex;
    flex-direction: column;

    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;

    background: rgba(255, 255, 255, 0.012);
}

.profile-status-card > span {
    margin-bottom: 13px;

    color: #626d64;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 1.4px;
}

.profile-status-card > strong {
    margin-bottom: 7px;

    font-size: 14px;
    font-weight: 800;
}

.profile-status-card small {
    margin-top: auto;

    color: #657067;

    font-size: 9px;

    line-height: 1.5;
}

.status-success {
    color: var(--green);
}

.status-danger {
    color: #df9292;
}


/* =========================================================
   WHITELIST WARNING
========================================================= */

.profile-whitelist-warning {
    margin-bottom: 28px;
    padding: 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 25px;

    border: 1px solid rgba(225, 120, 120, 0.12);
    border-radius: 11px;

    background:
        linear-gradient(
            135deg,
            rgba(225, 120, 120, 0.035),
            rgba(255, 255, 255, 0.008)
        );
}

.profile-whitelist-warning > div {
    min-width: 0;
}

.profile-whitelist-warning > div > span {
    display: block;

    margin-bottom: 6px;

    color: #df9292;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 1.5px;
}

.profile-whitelist-warning h2 {
    margin: 0 0 7px;

    color: #e7ece8;

    font-size: 16px;
    font-weight: 700;
}

.profile-whitelist-warning p {
    max-width: 650px;
    margin: 0;

    color: #6d786f;

    font-size: 10px;

    line-height: 1.6;
}

.profile-whitelist-warning .public-application-button {
    flex-shrink: 0;
}


/* =========================================================
   APPLICATION HISTORY
========================================================= */

.profile-applications-section {
    margin-top: 0;
}

.profile-section-header {
    margin-bottom: 14px;
}

.profile-section-header > span {
    display: block;

    margin-bottom: 5px;

    color: var(--green);

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 1.6px;
}

.profile-section-header h2 {
    margin: 0;

    color: #e7ece8;

    font-size: 18px;
}


/* Başvuru kartı bütün ekranı kaplamasın */

.profile-application-list {
    display: flex;
    flex-direction: column;

    gap: 10px;
}

.profile-application-card {
    width: 100%;
    max-width: 760px;

    padding: 16px;

    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;

    background: rgba(255, 255, 255, 0.012);
}

.profile-application-main {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}

.profile-application-main h3 {
    margin: 0;

    color: #e1e7e2;

    font-size: 12px;
}

.profile-application-main span {
    color: #606b62;

    font-size: 8px;
}


/* STATUS */

.profile-application-status {
    width: fit-content;

    margin-top: 10px;
    padding: 6px 10px;

    border-radius: 30px;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: .7px;
}

.profile-application-status.pending {
    color: #e1bd74;
    border: 1px solid rgba(225, 189, 116, 0.15);
    background: rgba(225, 189, 116, 0.04);
}

.profile-application-status.approved {
    color: var(--green);
    border: 1px solid rgba(154, 255, 86, 0.15);
    background: rgba(154, 255, 86, 0.04);
}

.profile-application-status.rejected {
    color: #df9292;
    border: 1px solid rgba(225, 120, 120, 0.15);
    background: rgba(225, 120, 120, 0.04);
}


/* RED SEBEBİ - KÜÇÜK KUTU */

.profile-rejection-reason {
    width: fit-content;
    max-width: 480px;

    margin-top: 12px;
    padding: 9px 12px;

    border: 1px solid rgba(225, 120, 120, 0.15);
    border-radius: 9px;

    background: rgba(225, 120, 120, 0.035);
}

.profile-rejection-reason strong {
    display: block;

    margin-bottom: 4px;

    color: #e79595;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: .8px;
}

.profile-rejection-reason p {
    margin: 0;

    color: #bd7c7c;

    font-size: 10px;

    line-height: 1.55;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 800px) {

    .profile-status-grid {
        grid-template-columns: 1fr;
    }

    .profile-whitelist-warning {
        align-items: flex-start;
        flex-direction: column;
    }

    .profile-application-card {
        max-width: 100%;
    }

}

@media (max-width: 550px) {

.profile-page {
    min-height: calc(100vh - 80px);
    padding: 45px 20px 80px;
}

    .profile-hero-user {
        align-items: flex-start;
    }

    .profile-main-avatar {
        width: 58px;
        height: 58px;
    }

    .profile-application-main {
        align-items: flex-start;
        flex-direction: column;

        gap: 6px;
    }

}
/* Profile spacing is owned by profile.css. */
/* Header notification styles: header-notifications.css. */

/* =========================================================
   PROFILE TICKET SYSTEM
========================================================= */

.profile-ticket-section {
    margin-top: 26px;
}

.profile-ticket-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 12px;
}

.profile-ticket-card {
    min-height: 95px;

    padding: 16px;

    display: flex;
    align-items: center;

    gap: 13px;

    border: 1px solid rgba(154, 255, 86, 0.08);
    border-radius: 10px;

    background:
        linear-gradient(
            145deg,
            rgba(154, 255, 86, 0.025),
            rgba(255, 255, 255, 0.008)
        );

    transition: 0.22s ease;
}

.profile-ticket-card:hover {
    transform: translateY(-2px);

    border-color: rgba(154, 255, 86, 0.18);

    background: rgba(154, 255, 86, 0.04);
}

.profile-ticket-icon {
    width: 40px;
    height: 40px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(154, 255, 86, 0.14);
    border-radius: 9px;

    background: rgba(154, 255, 86, 0.04);

    color: var(--green);

    font-size: 16px;
    font-weight: 800;
}

.profile-ticket-card > div:last-child {
    display: flex;
    flex-direction: column;

    gap: 5px;
}

.profile-ticket-card strong {
    color: #e3e9e4;

    font-size: 11px;
    font-weight: 700;
}

.profile-ticket-card span {
    color: #69746c;

    font-size: 9px;
}


/* =========================================================
   PROFILE SPACING FIX
========================================================= */

.profile-ticket-section {
    margin-top: 28px;
    margin-bottom: 34px;
}

.profile-applications-section {
    margin-top: 8px;
}


/* =========================================================
   TICKET SECTION IMPROVED
========================================================= */

.profile-ticket-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 14px;
}

.profile-ticket-card {
    min-height: 110px;

    padding: 18px 20px;

    display: flex;
    align-items: center;

    gap: 15px;

    border: 1px solid rgba(154, 255, 86, 0.10);
    border-radius: 11px;

    background:
        linear-gradient(
            145deg,
            rgba(154, 255, 86, 0.03),
            rgba(255, 255, 255, 0.008)
        );

    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        background 0.22s ease,
        box-shadow 0.22s ease;
}

.profile-ticket-card:hover {
    transform: translateY(-2px);

    border-color: rgba(154, 255, 86, 0.22);

    background:
        linear-gradient(
            145deg,
            rgba(154, 255, 86, 0.06),
            rgba(255, 255, 255, 0.012)
        );

    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.16);
}


/* ICON */

.profile-ticket-icon {
    width: 46px;
    height: 46px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(154, 255, 86, 0.18);
    border-radius: 10px;

    background: rgba(154, 255, 86, 0.05);

    color: var(--green);

    font-size: 17px;
    font-weight: 800;

    box-shadow:
        inset 0 0 18px rgba(154, 255, 86, 0.025);
}


/* TEXT */

.profile-ticket-card > div:last-child {
    display: flex;
    flex-direction: column;

    gap: 6px;
}

.profile-ticket-card strong {
    color: #eef3ef;

    font-size: 12px;
    font-weight: 700;
}

.profile-ticket-card span {
    color: #6e7971;

    font-size: 9px;

    line-height: 1.5;
}


/* =========================================================
   SECTION HEADERS
========================================================= */

.profile-ticket-section .profile-section-header,
.profile-applications-section .profile-section-header {
    margin-bottom: 14px;
}

.profile-ticket-section .profile-section-header h2,
.profile-applications-section .profile-section-header h2 {
    font-size: 19px;
}


/* =========================================================
   APPLICATION HISTORY WIDTH
========================================================= */

.profile-application-card {
    max-width: 100%;
}

.profile-application-list {
    width: 100%;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 700px) {

    .profile-ticket-grid {
        grid-template-columns: 1fr;
    }

}
/* =========================================================
   PROFILE - PUNISHMENT RECORD
========================================================= */

.profile-punishments-section {
    margin-top: 32px;
    margin-bottom: 34px;
}


/* =========================================================
   CLEAN RECORD
========================================================= */

.profile-clean-record {
    min-height: 90px;
    padding: 18px 20px;

    display: flex;
    align-items: center;
    gap: 14px;

    border: 1px solid rgba(154, 255, 86, 0.10);
    border-radius: 11px;

    background:
        linear-gradient(
            145deg,
            rgba(154, 255, 86, 0.025),
            rgba(255, 255, 255, 0.008)
        );
}

.profile-clean-record-icon {
    width: 42px;
    height: 42px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(154, 255, 86, 0.18);
    border-radius: 50%;

    background: rgba(154, 255, 86, 0.05);

    color: #9aff56;

    font-size: 17px;
    font-weight: 800;
}

.profile-clean-record > div:last-child {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.profile-clean-record strong {
    color: #9aff56;

    font-size: 12px;
    font-weight: 700;
}

.profile-clean-record span {
    color: #69746c;

    font-size: 9px;
}


/* =========================================================
   PUNISHMENT LIST
========================================================= */

.profile-punishment-list {
    display: flex;
    flex-direction: column;

    gap: 12px;
}

.profile-punishment-card {
    padding: 18px;

    border: 1px solid rgba(225, 120, 120, 0.10);
    border-radius: 11px;

    background:
        linear-gradient(
            145deg,
            rgba(225, 120, 120, 0.025),
            rgba(255, 255, 255, 0.008)
        );
}


/* TOP */

.profile-punishment-top {
    margin-bottom: 15px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;
}

.profile-punishment-type {
    width: fit-content;

    padding: 6px 10px;

    border-radius: 30px;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: .8px;
}

.profile-punishment-type.warning {
    color: #e4c36f;

    border: 1px solid rgba(228, 195, 111, 0.18);

    background: rgba(228, 195, 111, 0.05);
}

.profile-punishment-type.kick {
    color: #e3a66d;

    border: 1px solid rgba(227, 166, 109, 0.18);

    background: rgba(227, 166, 109, 0.05);
}

.profile-punishment-type.ban {
    color: #e78383;

    border: 1px solid rgba(231, 131, 131, 0.20);

    background: rgba(231, 131, 131, 0.055);
}

.profile-punishment-type.other {
    color: #a9b1ab;

    border: 1px solid rgba(255, 255, 255, 0.10);

    background: rgba(255, 255, 255, 0.025);
}

.profile-punishment-date {
    color: #59635b;

    font-size: 8px;
}


/* REASON */

.profile-punishment-content {
    padding: 12px 14px;

    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;

    background: rgba(0, 0, 0, 0.10);
}

.profile-punishment-content > span {
    display: block;

    margin-bottom: 6px;

    color: #707b72;

    font-size: 7px;
    font-weight: 800;

    letter-spacing: 1.2px;
}

.profile-punishment-content p {
    margin: 0;

    color: #c7cec8;

    font-size: 10px;

    line-height: 1.6;
}


/* META */

.profile-punishment-meta {
    margin-top: 13px;

    display: flex;
    align-items: center;

    gap: 35px;
}

.profile-punishment-meta > div {
    display: flex;
    flex-direction: column;

    gap: 4px;
}

.profile-punishment-meta span {
    color: #59635b;

    font-size: 7px;
    font-weight: 800;

    letter-spacing: 1px;
}

.profile-punishment-meta strong {
    color: #aab3ac;

    font-size: 9px;
    font-weight: 600;
}


/* MOBILE */

@media (max-width: 600px) {

    .profile-punishment-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .profile-punishment-meta {
        align-items: flex-start;
        flex-direction: column;

        gap: 12px;
    }

}
/* =========================================================
   TICKET CREATE
========================================================= */

.ticket-create-page {
    min-height: 100vh;

    padding: 145px 0 90px;

    background:
        radial-gradient(
            circle at 50% 10%,
            rgba(154, 255, 86, 0.05),
            transparent 30%
        ),
        #050806;
}

.ticket-create-container {
    width: min(950px, calc(100% - 50px));
    margin: 0 auto;
}

.ticket-create-header {
    margin-bottom: 24px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 25px;
}

.ticket-create-header h1 {
    margin: 8px 0 10px;

    color: #edf3ee;

    font-size: 34px;
    font-weight: 800;
}

.ticket-create-header p {
    max-width: 620px;

    color: #6d786f;

    font-size: 11px;

    line-height: 1.7;
}


/* FORM */

.ticket-create-form {
    margin-top: 16px;
    padding: 22px;

    display: flex;
    flex-direction: column;

    gap: 20px;

    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 11px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.02),
            rgba(255, 255, 255, 0.006)
        );
}

.ticket-form-group {
    display: flex;
    flex-direction: column;

    gap: 7px;
}

.ticket-form-group label {
    color: #e1e7e2;

    font-size: 11px;
    font-weight: 700;
}

.ticket-form-group > span {
    color: #677269;

    font-size: 9px;
}

.ticket-form-group input,
.ticket-form-group textarea {
    width: 100%;

    padding: 12px 13px;

    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;

    background: rgba(255, 255, 255, 0.018);

    color: #e7ede8;

    font-family: inherit;

    outline: none;
}

.ticket-form-group input {
    min-height: 46px;
}

.ticket-form-group textarea {
    min-height: 180px;

    resize: vertical;

    line-height: 1.6;
}

.ticket-form-group input:focus,
.ticket-form-group textarea:focus {
    border-color: rgba(154, 255, 86, 0.25);

    background: rgba(154, 255, 86, 0.025);
}


/* ACTIONS */

.ticket-create-actions {
    padding-top: 18px;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 10px;

    border-top: 1px solid rgba(255, 255, 255, 0.045);
}


@media (max-width: 700px) {

    .ticket-create-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .ticket-create-container {
        width: calc(100% - 28px);
    }

    .ticket-create-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .ticket-create-actions > * {
        width: 100%;
        justify-content: center;
    }

}
.tickets-page {
    min-height: 100vh;
    padding: 145px 0 90px;

    background:
        radial-gradient(
            circle at 50% 5%,
            rgba(154, 255, 86, 0.045),
            transparent 32%
        ),
        #050806;
}

.tickets-container {
    width: min(1150px, calc(100% - 50px));
    margin: 0 auto;
}


/* =========================================================
   HEADER
========================================================= */

.tickets-header {
    margin-bottom: 22px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 25px;
}

.tickets-header h1 {
    margin: 8px 0 9px;

    color: #edf3ee;

    font-size: 34px;
    font-weight: 800;
}

.tickets-header p {
    max-width: 600px;
    margin: 0;

    color: #68736b;

    font-size: 10px;
    line-height: 1.7;
}


/* =========================================================
   SUMMARY
========================================================= */

.tickets-summary {
    margin-bottom: 14px;

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 10px;
}

.tickets-summary > div {
    min-height: 78px;

    padding: 15px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    gap: 7px;

    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 9px;

    background: rgba(255, 255, 255, 0.012);
}

.tickets-summary span {
    color: #59635b;

    font-size: 7px;
    font-weight: 800;

    letter-spacing: 1px;
}

.tickets-summary strong {
    color: #dfe6e0;

    font-size: 17px;
    font-weight: 800;
}


/* =========================================================
   PANEL
========================================================= */

.tickets-panel {
    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 11px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.018),
            rgba(255, 255, 255, 0.006)
        );
}

.tickets-panel-header {
    min-height: 72px;

    padding: 16px 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tickets-panel-header > div > span {
    color: #657067;

    font-size: 7px;
    font-weight: 800;

    letter-spacing: 1px;
}

.tickets-panel-header h2 {
    margin: 5px 0 0;

    color: #dfe6e0;

    font-size: 14px;
}

.tickets-panel-header > span {
    color: #68736b;

    font-size: 8px;
}


/* =========================================================
   TABLE
========================================================= */

.tickets-table {
    width: 100%;

    overflow-x: auto;
}

.tickets-table-head,
.tickets-table-row {
    min-width: 950px;

    display: grid;

    grid-template-columns:
        minmax(220px, 1.6fr)
        110px
        70px
        135px
        135px
        75px;

    align-items: center;

    gap: 15px;
}

.tickets-table-head {
    min-height: 38px;

    padding: 0 18px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.tickets-table-head span {
    color: #505a52;

    font-size: 6px;
    font-weight: 800;

    letter-spacing: 1px;
}

.tickets-table-row {
    min-height: 67px;

    padding: 10px 18px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.04);

    transition: 0.2s ease;
}

.tickets-table-row:last-child {
    border-bottom: none;
}

.tickets-table-row:hover {
    background: rgba(154, 255, 86, 0.015);
}


/* =========================================================
   SUBJECT
========================================================= */

.tickets-subject {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 4px;
}

.tickets-subject > span {
    color: #59645b;

    font-size: 7px;
}

.tickets-subject strong {
    overflow: hidden;

    color: #dce3dd;

    font-size: 9px;
    font-weight: 700;

    text-overflow: ellipsis;
    white-space: nowrap;
}


/* =========================================================
   CELLS
========================================================= */

.tickets-cell {
    color: #69746c;

    font-size: 8px;
}


/* =========================================================
   ACTION
========================================================= */

.tickets-action {
    display: flex;

    justify-content: flex-end;
}

.tickets-action a {
    height: 29px;

    padding: 0 10px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 5px;

    border: 1px solid rgba(154, 255, 86, 0.12);
    border-radius: 7px;

    background: rgba(154, 255, 86, 0.025);

    color: #9aff56;

    font-size: 7px;
    font-weight: 700;

    text-decoration: none;

    transition: 0.2s ease;
}

.tickets-action a:hover {
    border-color: rgba(154, 255, 86, 0.25);

    background: rgba(154, 255, 86, 0.06);
}


/* =========================================================
   EMPTY
========================================================= */

.tickets-empty {
    min-height: 300px;

    padding: 40px;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    text-align: center;
}

.tickets-empty-icon {
    width: 42px;
    height: 42px;

    margin-bottom: 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(154, 255, 86, 0.12);
    border-radius: 10px;

    background: rgba(154, 255, 86, 0.025);

    color: #9aff56;

    font-size: 14px;
    font-weight: 800;
}

.tickets-empty h3 {
    margin: 0 0 7px;

    color: #dce3dd;

    font-size: 13px;
}

.tickets-empty p {
    max-width: 400px;

    margin: 0 0 17px;

    color: #626d64;

    font-size: 9px;

    line-height: 1.7;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 750px) {

    .tickets-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .tickets-summary {
        grid-template-columns: repeat(2, 1fr);
    }

    .tickets-container {
        width: calc(100% - 28px);
    }

}
.ticket-form-group select {
    width: 100%;
    min-height: 46px;

    padding: 0 13px;

    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;

    background: rgba(255, 255, 255, 0.018);

    color: #e7ede8;

    font-family: inherit;
    font-size: 10px;

    outline: none;
}

.ticket-form-group select:focus {
    border-color: rgba(154, 255, 86, 0.25);
}

.ticket-form-group select option {
    background: #0a100c;
    color: #e7ede8;
}
.tickets-subject small {
    color: #5e6961;
    font-size: 7px;
    line-height: 1.4;
}
/* =========================================================
   TICKET VIEW META
========================================================= */

.ticket-view-meta {
    margin-top: 10px;

    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 8px;
}

.ticket-view-meta > span:not(.ticket-status) {
    min-height: 28px;

    padding: 0 10px;

    display: inline-flex;
    align-items: center;

    gap: 5px;

    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 7px;

    background: rgba(255, 255, 255, 0.015);

    color: #626d64;

    font-size: 8px;
}

.ticket-view-meta > span strong {
    color: #cfd7d0;

    font-size: 8px;
    font-weight: 700;
}
/* HEADER */

.ticket-view-header {
    width: 100% !important;

    margin-bottom: 24px !important;

    display: flex !important;
    align-items: flex-end !important;
    justify-content: space-between !important;

    gap: 25px !important;
}


/* META */

.ticket-view-meta {
    width: 100%;

    margin-top: 10px;

    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;

    gap: 8px !important;
}


/* CONVERSATION */

.ticket-conversation {
    width: 100% !important;

    display: flex !important;
    flex-direction: column !important;

    gap: 11px !important;

    margin: 0 !important;
}

.ticket-message {
    width: 100% !important;
}


/* REPLY */

.ticket-reply-form {
    width: 100% !important;

    margin-top: 16px !important;
}


/* CLOSED */

.ticket-closed-box {
    width: 100% !important;

    margin-top: 16px !important;

    display: flex !important;
    flex-direction: column !important;

    gap: 5px !important;
}


/* MOBILE */

@media (max-width: 700px) {

    .ticket-view-container {
        width: calc(100% - 28px) !important;
    }

    .ticket-view-header {
        align-items: flex-start !important;
        flex-direction: column !important;
    }

}
/* =========================================================
   TICKET VIEW - FINAL
========================================================= */

.ticket-view-page {
    min-height: 100vh;
    padding: 145px 0 90px;

    background:
        radial-gradient(
            circle at 50% 10%,
            rgba(154, 255, 86, 0.045),
            transparent 30%
        ),
        #050806;
}

.ticket-view-container {
    width: min(1000px, calc(100% - 50px));
    margin: 0 auto;

    display: block;
}


/* HEADER */

.ticket-view-header {
    width: 100%;
    margin-bottom: 24px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 24px;
}

.ticket-view-header > div {
    min-width: 0;
    flex: 1;
}

.ticket-view-header h1 {
    margin: 8px 0 10px;

    color: #edf3ee;

    font-size: 30px;
    font-weight: 800;
}


/* META */

.ticket-view-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 8px;

    margin-top: 10px;
}

.ticket-view-meta > span:not(.ticket-status) {
    min-height: 30px;

    padding: 0 10px;

    display: inline-flex;
    align-items: center;

    gap: 5px;

    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 7px;

    background: rgba(255, 255, 255, 0.015);

    color: #626d64;

    font-size: 8px;
}

.ticket-view-meta > span strong {
    color: #d0d7d1;

    font-size: 8px;
    font-weight: 700;
}


/* STATUS */

.ticket-status {
    min-height: 30px;

    padding: 0 9px;

    display: inline-flex;
    align-items: center;

    border-radius: 20px;

    font-size: 7px;
    font-weight: 800;
}

.ticket-status.open {
    color: #e1bd74;

    border: 1px solid rgba(225, 189, 116, 0.14);

    background: rgba(225, 189, 116, 0.04);
}

.ticket-status.answered {
    color: var(--green);

    border: 1px solid rgba(154, 255, 86, 0.14);

    background: rgba(154, 255, 86, 0.04);
}

.ticket-status.closed {
    color: #909a92;

    border: 1px solid rgba(255, 255, 255, 0.07);

    background: rgba(255, 255, 255, 0.02);
}


/* CONVERSATION */

.ticket-conversation {
    width: 100%;

    display: flex;
    flex-direction: column;

    gap: 11px;
}

.ticket-message {
    width: 100%;

    padding: 16px;

    display: flex;

    gap: 12px;

    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;

    background: rgba(255, 255, 255, 0.012);
}

.ticket-message.staff {
    border-color: rgba(154, 255, 86, 0.10);

    background: rgba(154, 255, 86, 0.02);
}


/* AVATAR */

.ticket-message-avatar {
    width: 38px;
    height: 38px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 9px;

    color: var(--green);

    font-size: 11px;
    font-weight: 800;
}

.ticket-message-avatar img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* MESSAGE BODY */

.ticket-message-body {
    min-width: 0;

    flex: 1;
}

.ticket-message-header {
    margin-bottom: 8px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;
}

.ticket-message-header > div {
    display: flex;
    align-items: center;

    gap: 8px;
}

.ticket-message-header strong {
    color: #dfe6e0;

    font-size: 10px;
}

.ticket-message-header time {
    color: #505a52;

    font-size: 7px;
}

.ticket-staff-badge {
    padding: 4px 7px;

    border: 1px solid rgba(154, 255, 86, 0.13);
    border-radius: 20px;

    background: rgba(154, 255, 86, 0.04);

    color: var(--green);

    font-size: 6px;
    font-weight: 800;
}

.ticket-message-body p {
    margin: 0;

    color: #9aa49c;

    font-size: 10px;

    line-height: 1.7;
}


/* REPLY */

.ticket-reply-form {
    width: 100%;

    margin-top: 16px;
    padding: 18px;

    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;

    background: rgba(255, 255, 255, 0.012);
}

.ticket-reply-actions {
    margin-top: 12px;

    display: flex;
    justify-content: flex-end;
}


/* CLOSED */

.ticket-closed-box {
    width: 100%;

    margin-top: 16px;
    padding: 18px;

    display: flex;
    flex-direction: column;

    gap: 5px;

    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;

    background: rgba(255, 255, 255, 0.015);
}

.ticket-closed-box strong {
    color: #a4aea6;

    font-size: 11px;
}

.ticket-closed-box span {
    color: #626d64;

    font-size: 9px;
}


/* MOBILE */

@media (max-width: 700px) {

    .ticket-view-page {
        padding: 120px 0 60px;
    }

    .ticket-view-container {
        width: calc(100% - 28px);
    }

    .ticket-view-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .ticket-message-header {
        align-items: flex-start;
        flex-direction: column;

        gap: 5px;
    }

}
/* =========================================================
   PUBLIC RULES PAGE
========================================================= */

/* Suppress scroll anchoring only while the rules page switches content. */
html.rules-scroll-switching {
    overflow-anchor: none;
}

.rules-page {
    --rules-font-label: 11px;
    --rules-font-meta: 12px;
    --rules-font-body: 14px;
    --rules-font-category: 15px;
    --rules-font-subcategory: 14px;
    --rules-font-group: 20px;
    --rules-font-title: 15px;
    --rules-body-leading: 1.75;

    font-size: var(--rules-font-body);
    line-height: var(--rules-body-leading);
    min-height: 100vh;

    padding: 110px 0 100px;

    background: #050806;
}



/* Keep normal rich-text descendants at the description size, including marks. */
.rule-card-content :where(p, span, li, div, ul, ol, blockquote, small) {
    font-size: inherit;
    line-height: inherit;
}

.rules-container {
    width: min(1480px, calc(100% - 50px));
    margin: 0 auto;
}


/* =========================================================
   HEADER
========================================================= */

.rules-page-header {
    margin-bottom: 28px;
}



.rules-page-header p {
    max-width: 680px;

    margin: 0;

    color: #6e7971;

    font-size: var(--rules-font-body);

    line-height: 1.8;
}


/* =========================================================
   LAYOUT
========================================================= */

/* Public rule overview and timestamp-based recent records. */
.rules-overview {
    margin-bottom: 24px;
    min-width: 0;
}

.rules-overview-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, 1.5fr);
    gap: 8px;
}

.rules-overview-stats > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    padding: 10px 14px;
    border: 1px solid rgba(154, 255, 86, 0.09);
    border-radius: 10px;
    background: rgba(154, 255, 86, 0.02);
}

.rules-overview-stats span {
    color: #89948b;
    font-size: var(--rules-font-meta);
}

.rules-overview-stats strong {
    color: #dfe6e0;
    font-size: var(--rules-font-group);
    overflow-wrap: anywhere;
    line-height: 1.3;
}

.rules-reading-note {
    margin: 16px 0;
    padding: 14px 16px;
    border-left: 2px solid rgba(154, 255, 86, 0.3);
    border-radius: 0 8px 8px 0;
    background: rgba(154, 255, 86, 0.025);
    color: #89948b;
    font-size: var(--rules-font-body);
}

.rules-recent-sidebar {
    min-width: 0;
    align-self: start;
}

.rules-recent {
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.01);
}

.rules-recent h2 {
    margin: 0 0 8px;
    color: #dfe6e0;
    font-size: var(--rules-font-title);
}

.rules-recent-list {
    display: grid;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rules-recent-link {
    display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:9px 8px;padding:12px;border:1px solid var(--border);border-radius:9px;background:linear-gradient(145deg,rgba(255,255,255,.017),rgba(255,255,255,.005));transition:border-color .22s,background .22s,transform .22s;
}

.rules-recent-link:hover {
    border-color:rgba(154,255,86,.18);background:rgba(154,255,86,.018);transform:translateY(-1px);
}

.rules-recent-link:focus-visible {
    outline: 2px solid var(--green);
}

.rules-recent-title {
    display:grid;grid-template-columns:16px minmax(0,1fr);align-items:start;gap:8px;min-width:0;grid-column:1/-1;grid-row:2;color:var(--text-main);font:600 12px/1.55 Inter,sans-serif;letter-spacing:-.1px;overflow-wrap:anywhere;
}

.rules-recent-title .rules-recent-icon {
    width: 16px;
    height: 16px;
    margin-top: 4px;
    color: var(--green);
}

.rules-recent-link time,
.rules-recent-empty {
    color: #89948b;
    font-size: var(--rules-font-meta);
}

.rules-recent-badge {
    --recent-accent:var(--green);justify-self:start;grid-row:1;display:inline-flex;align-items:center;gap:5px;max-width:100%;padding:4px 7px;border:1px solid color-mix(in srgb,var(--recent-accent) 25%,transparent);border-radius:5px;background:color-mix(in srgb,var(--recent-accent) 5%,transparent);color:var(--recent-accent);font:700 9px/1.4 Inter,sans-serif;letter-spacing:.4px;overflow-wrap:anywhere;
}

.rules-page .rules-recent-badge::before{content:"+";font-size:12px;line-height:1}
.rules-page .rules-recent-badge.is-updated::before{content:"↻"}
.rules-page .rules-recent-link time{grid-column:2;grid-row:1;font:500 9px/1.5 ui-monospace,Consolas,monospace;letter-spacing:.1px;text-align:right;overflow-wrap:anywhere}
.rules-page [data-rules-scramble]{display:inline-block;min-width:2ch;font-variant-numeric:tabular-nums;font-weight:700}
.rules-page .rules-overview-stats>div{transition:border-color .2s}
.rules-page .rules-overview-stats>div:hover{border-color:var(--border-green)}
@media(prefers-reduced-motion:reduce){.rules-page .rules-recent-link{transition:none}.rules-page .rules-recent-link:hover{transform:none}}
.rules-recent-badge.is-updated {
    --recent-accent:#e4c080;
}

.rules-topic-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: #7d9e71;
}

.rules-subcategory-link .rules-topic-icon {
    width: 15px;
    height: 15px;
}

.rules-category-link.active .rules-topic-icon,
.rules-category-link.search-match .rules-topic-icon,
.rules-subcategory-link.active .rules-topic-icon {
    color: var(--green);
}

@media (max-width: 600px) {
    .rules-overview-stats {
        grid-template-columns: 1fr;
    }

}


/* Rules search uses the already-rendered category/group structure. */
.rules-search {
    margin-bottom: 22px;
    min-width: 0;
}

.rules-search-label {
    display: block;
    margin-bottom: 8px;
    color: #89948b;
    font-size: var(--rules-font-meta);
}

.rules-search-field {
    display: flex;
    align-items: center;
    min-width: 0;
    border: 1px solid rgba(154, 255, 86, 0.12);
    border-radius: 9px;
    background: #090d0a;
}

.rules-search-field:focus-within {
    border-color: rgba(154, 255, 86, 0.35);
}

.rules-search-field input {
    flex: 1;
    width: 100%;
    min-width: 0;
    padding: 13px 15px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #dce3dd;
    font-family: inherit;
    font-size: var(--rules-font-body);
    outline: none;
}

.rules-search-field input::placeholder {
    color: #657067;
}

.rules-search-field input::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

.rules-search-clear {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    margin-right: 4px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--green);
    font-size: 21px;
    cursor: pointer;
}

.rules-search-clear:focus-visible {
    outline: 2px solid var(--green);
}

.rules-search-clear[hidden] {
    display: none;
}

.rules-search-status {
    display: block;
    margin-top: 7px;
    color: #89948b;
    font-size: var(--rules-font-meta);
}

.rules-search-status[hidden] {
    display: none;
}

.rules-search-highlight {
    border-radius: 2px;
    background: rgba(154, 255, 86, 0.2);
    color: #dfffcb;
    font: inherit;
}


.rules-layout {
    display: grid;

    grid-template-columns:
        minmax(255px, 315px)
        minmax(0, 1fr)
        minmax(230px, 260px);

    align-items: start;

    gap: 18px;
}


/* =========================================================
   SIDEBAR
========================================================= */

.rules-sidebar {
    position: sticky;

    top: 112px;
}

.rules-sidebar-card {
    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 11px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.018),
            rgba(255, 255, 255, 0.006)
        );
}

.rules-sidebar-header {
    min-height: 54px;

    padding: 0 15px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.rules-sidebar-header span {
    color: #657067;

    font-size: var(--rules-font-label);
    font-weight: 800;

    letter-spacing: 1.2px;
}

.rules-sidebar-header strong {
    width: 25px;
    height: 25px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(154, 255, 86, 0.11);
    border-radius: 7px;

    background: rgba(154, 255, 86, 0.025);

    color: var(--green);

    font-size: var(--rules-font-label);
}

.rules-category-nav {
    padding: 7px;
    align-items: start;
}

.rules-category-link {
    width: 100%;
    min-height: 60px;

    padding: 10px;

    display: flex;
    align-items: center;

    gap: 10px;

    border: 1px solid transparent;
    border-radius: 8px;

    background: transparent;
    color: inherit;
    font-family: inherit;
    line-height: 1.5;
    text-align: left;
    cursor: pointer;

    transition: .2s ease;
}

.rules-category-link:hover,
.rules-category-link.active {
    border-color: rgba(154, 255, 86, 0.09);

    background: rgba(154, 255, 86, 0.035);
}

.rules-category-number {
    width: 29px;
    height: 29px;

    flex-shrink: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 7px;

    color: #59645c;

    font-size: var(--rules-font-label);
    font-weight: 800;

    transition: .2s ease;
}

.rules-category-link.active .rules-category-number {
    border-color: rgba(154, 255, 86, 0.16);

    background: rgba(154, 255, 86, 0.04);

    color: var(--green);
}

.rules-category-label {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 4px;
}

.rules-category-link strong {
    overflow: hidden;

    color: #bfc7c1;

    font-size: var(--rules-font-category);
    font-weight: 700;

    overflow-wrap: anywhere;
    white-space: normal;
}

.rules-category-link.active strong {
    color: var(--green);
}

.rules-category-link small {
    color: #59635b;

    font-size: var(--rules-font-label);
}

.rules-category-item {
    min-width: 0;
}

.rules-category-chevron {
    margin-left: auto;
    color: #657067;
    transition: transform .2s ease;
}

.rules-category-link[aria-expanded="true"] .rules-category-chevron {
    color: var(--green);
    transform: rotate(180deg);
}

.rules-subcategory-dropdown {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    visibility: hidden;
    transition: grid-template-rows .2s ease, opacity .2s ease, visibility .2s ease;
}

.rules-subcategory-dropdown.is-open {
    grid-template-rows: 1fr;
    opacity: 1;
    visibility: visible;
}

.rules-subcategory-overflow {
    min-height: 0;
    overflow: hidden;
}

.rules-subcategory-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 4px 8px 10px 39px;
}

.rules-subcategory-link {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    color: #89948b;
    font-family: inherit;
    font-size: var(--rules-font-subcategory);
    line-height: 1.6;
    text-align: left;
    overflow-wrap: anywhere;
    cursor: pointer;
    transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.rules-subcategory-link:hover,
.rules-subcategory-link.active {
    border-color: rgba(154, 255, 86, 0.12);
    background: rgba(154, 255, 86, 0.035);
    color: var(--green);
}

/* Search matches stay subtle; selection retains a stronger local emphasis. */
.rules-category-link.search-match,
.rules-subcategory-link.search-match {
    border-color: rgba(154, 255, 86, 0.07);
    background: rgba(154, 255, 86, 0.025);
    box-shadow: inset 2px 0 rgba(255, 255, 255, 0.3);
}

.rules-category-link.search-match.active,
.rules-subcategory-link.search-match.active {
    border-color: rgba(154, 255, 86, 0.15);
    background: rgba(154, 255, 86, 0.065);
}

.rules-category-link.search-match strong,
.rules-subcategory-link.search-match {
    color: var(--green);
}

.rules-category-link:focus-visible,
.rules-subcategory-link:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: -2px;
}

.rules-subcategory-empty {
    color: #89948b;
    font-size: var(--rules-font-meta);
    line-height: 1.6;
}

.rules-content [hidden] {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .rules-subcategory-dropdown,
    .rules-category-chevron {
        transition: none;
    }
}


/* =========================================================
   CONTENT
========================================================= */

.rules-content {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 20px;
}

.rules-category-section {
    scroll-margin-top: 120px;

    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.017),
            rgba(255, 255, 255, 0.005)
        );
}


/* =========================================================
   CATEGORY HEADER
========================================================= */

.rules-category-header {
    min-height: 115px;

    padding: 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 25px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.05);

    background:
        radial-gradient(
            circle at 0 50%,
            rgba(154, 255, 86, 0.04),
            transparent 40%
        );
}

.rules-category-header > div:first-child > span {
    color: var(--green);

    font-size: var(--rules-font-label);
    font-weight: 800;

    letter-spacing: 1.5px;
}

.rules-category-header h2 {
    overflow-wrap: anywhere;
    margin: 7px 0 8px;

    color: #e4eae5;

    font-size: 24px;
    font-weight: 800;
}

.rules-category-header p {
    max-width: 700px;

    margin: 0;

    color: #68736b;

    font-size: var(--rules-font-meta);

    line-height: 1.7;
}

.rules-category-count {
    width: 65px;
    height: 65px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    gap: 3px;

    border: 1px solid rgba(154, 255, 86, 0.11);
    border-radius: 10px;

    background: rgba(154, 255, 86, 0.025);
}

.rules-category-count strong {
    color: #dfe6e0;

    font-size: 18px;
}

.rules-category-count span {
    color: #627067;

    font-size: var(--rules-font-label);
    font-weight: 800;

    letter-spacing: 1px;
}


/* =========================================================
   GROUP
========================================================= */

.rules-group {
    padding: 18px 20px 22px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.rules-group:last-child {
    border-bottom: none;
}

.rules-group-header {
    margin-bottom: 13px;
}

.rules-group-header > span {
    color: #637067;

    font-size: var(--rules-font-label);
    font-weight: 800;

    letter-spacing: 1.3px;
}

.rules-group-header h3 {
    overflow-wrap: anywhere;
    margin: 5px 0 0;

    color: #cfd6d0;

    font-size: var(--rules-font-group);
}

.rules-group-header p {
    margin: 6px 0 0;

    color: #68736b;

    font-size: var(--rules-font-body);

    line-height: 1.6;
}


/* =========================================================
   RULE CARD
========================================================= */

.rules-list {
    display: flex;
    flex-direction: column;

    gap: 8px;
}

.rule-card {
    padding: 18px;
    scroll-margin-top: 120px;

    display: grid;

    gap: 0;
    min-width: 0;

    border: 1px solid rgba(255, 255, 255, 0.045);
    border-radius: 9px;

    background: rgba(255, 255, 255, 0.011);

    transition: .2s ease;
}

.rule-card:hover {
    border-color: rgba(154, 255, 86, 0.10);

    background: rgba(154, 255, 86, 0.018);
}

.rule-card-number {
    width: 32px;
    height: 32px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(154, 255, 86, 0.10);
    border-radius: 7px;

    background: rgba(154, 255, 86, 0.025);

    color: var(--green);

    font-size: var(--rules-font-label);
    font-weight: 800;
}

.rule-card-content {
    min-width: 0;
    line-height: var(--rules-body-leading);
    font-size: var(--rules-font-body);

    flex: 1;
}

.rule-card-title {
    margin: 0;
    min-width: 0;
    overflow-wrap: anywhere;

    color: #d9e0da;

    font-size: var(--rules-font-title);
    font-weight: 700;
}

.rule-card-content p {
    margin: 0;
    overflow-wrap: anywhere;

    color: #8b968e;

    line-height: inherit;
}


/* Independent rule disclosures; category selection remains separate. */
.rule-card-heading {
    margin: 0;
    min-width: 0;
}

.rule-card-toggle {
    width: 100%;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 0;
    background: transparent;
    color: inherit;
    font-family: inherit;
    font-size: var(--rules-font-title);
    line-height: 1.5;
    text-align: left;
    cursor: pointer;
}

.rule-card-toggle:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 4px;
    border-radius: 4px;
}

.rule-card-chevron {
    margin-left: auto;
    flex-shrink: 0;
    color: #657067;
    transition: transform .2s ease;
}

.rule-card.is-open {
    border-color: rgba(154, 255, 86, 0.16);
    background: rgba(154, 255, 86, 0.025);
}

.rule-card.is-open .rule-card-chevron {
    color: var(--green);
    transform: rotate(180deg);
}

.rule-card-answer {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    visibility: hidden;
    transition: grid-template-rows .2s ease, opacity .2s ease, visibility .2s ease;
}

.rule-card-answer.is-open {
    grid-template-rows: 1fr;
    opacity: 1;
    visibility: visible;
}

.rule-card-answer-inner {
    min-height: 0;
    min-width: 0;
    overflow: hidden;
}

.rule-card-answer .rule-card-content {
    padding: 14px 0 0 44px;
}

@media (prefers-reduced-motion: reduce) {
    .rule-card-answer,
    .rule-card-chevron {
        transition: none;
    }
}


/* =========================================================
   EMPTY
========================================================= */

.rules-empty,
.rules-category-empty {
    padding: 35px;

    text-align: center;

    color: #69746c;
}

.rules-empty {
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 11px;

    background: rgba(255, 255, 255, 0.012);
}

.rules-empty h2 {
    margin-bottom: 8px;

    color: #dce3dd;

    font-size: 15px;
}

.rules-empty p,
.rules-category-empty {
    font-size: var(--rules-font-body);

    line-height: 1.7;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (min-width: 901px) and (max-width: 1200px) {
    .rules-layout {
        grid-template-columns: minmax(235px, 280px) minmax(0, 1fr);
    }

    .rules-sidebar {
        grid-row: span 2;
    }

    .rules-recent-sidebar {
        grid-column: 2;
    }
}

@media (max-width: 900px) {

    .rules-layout {
        grid-template-columns: 1fr;
    }

    .rules-sidebar {
        position: static;
    }

    .rules-category-nav {
        display: grid;

        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 600px) {

    .rule-card {
        padding: 14px;
    }

    .rule-card-answer .rule-card-content {
        padding: 12px 0 0;
    }

    .rules-page {
        padding: 104px 0 70px;
    }

    .rules-container {
        width: calc(100% - 28px);
    }



    .rules-category-nav {
        grid-template-columns: 1fr;
    }

    .rules-category-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .rules-category-count {
        width: 100%;
        height: 50px;

        flex-direction: row;
    }

}

/* Keep the existing account avatar and mobile menu reachable on narrow screens. */
@media (max-width: 600px) {
    .header .user-menu-info,
    .header .user-menu-arrow { display: none; }
}

/* General Rules heading: same glow intensity as the FAQ title; animation unchanged. */


/* Rules sidebar status badges only: retain the original green/gold surfaces and dimensions. */
.rules-page .rules-recent-sidebar .rules-recent-badge:is(.is-new,.is-updated){
 justify-content:center;text-align:center;
 box-shadow:0 0 4px color-mix(in srgb,var(--recent-accent) 12%,transparent),0 0 9px color-mix(in srgb,var(--recent-accent) 6%,transparent),inset 0 1px 0 color-mix(in srgb,var(--recent-accent) 8%,transparent);
 transition:box-shadow .22s ease,border-color .22s ease;
}
.rules-page .rules-recent-sidebar .rules-recent-link:is(:hover,:focus-visible) .rules-recent-badge:is(.is-new,.is-updated),
.rules-page .rules-recent-sidebar .rules-recent-badge:is(.is-new,.is-updated):hover{
 border-color:color-mix(in srgb,var(--recent-accent) 35%,transparent);
 box-shadow:0 0 5px color-mix(in srgb,var(--recent-accent) 17%,transparent),0 0 10px color-mix(in srgb,var(--recent-accent) 9%,transparent),inset 0 1px 0 color-mix(in srgb,var(--recent-accent) 10%,transparent);
}
@media(prefers-reduced-motion:reduce){.rules-page .rules-recent-sidebar .rules-recent-badge:is(.is-new,.is-updated){transition:none}}



/* Compact Rules hero stats, retaining the FAQ icon and type hierarchy. */
.rules-page .rules-page-header{display:grid;grid-template-columns:minmax(0,1fr) 550px;gap:32px;align-items:start}
.rules-page .rules-page-header>div{min-width:0}
.rules-page .rules-page-header .rules-hero-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;width:550px;max-width:100%;justify-self:end;margin:0;border:0;border-radius:0;background:none;box-shadow:none;font-family:Inter,sans-serif}
.rules-page .rules-hero-stats>.rules-stat{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:8px;min-width:0;min-height:100px;box-sizing:border-box;padding:8px 12px;border:0;border-left:1px solid var(--border);border-radius:0;background:none;box-shadow:none}
.rules-page .rules-hero-stats>.rules-stat:hover{border-color:var(--border)}
.rules-page .rules-hero-stats .rules-stat-copy{min-width:0;display:grid;grid-template-columns:18px minmax(0,1fr);align-items:center;gap:3px 6px}
.rules-page .rules-hero-stats .rules-stat-icon{display:block;color:var(--green);margin-bottom:0}
.rules-page .rules-stat-icon svg{display:block;width:18px;height:18px}
.rules-page .rules-hero-stats .rules-stat-kicker{color:var(--text-soft);font-size:9px;font-weight:600;letter-spacing:.3px;line-height:1.3}
.rules-page .rules-hero-stats h2{color:var(--text-main);grid-column:1/-1;font-size:12px;font-weight:600;line-height:1.4;margin:3px 0 0}
.rules-page .rules-hero-stats p{grid-column:1/-1;font-size:10px;color:var(--text-soft);line-height:1.35;margin:0;overflow-wrap:normal}
.rules-page .rules-hero-stats>.rules-stat>strong{flex:none;min-width:1.2ch;max-width:45%;color:var(--text-main);font:600 34px/1 Inter,sans-serif;letter-spacing:-1px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.rules-page .rules-hero-stats>.rules-stat:last-child{flex-direction:column;align-items:flex-start;justify-content:center;gap:6px}
.rules-page .rules-hero-stats>.rules-stat:last-child>strong{font-size:22px;line-height:1.2;letter-spacing:-.5px;max-width:100%;flex-basis:auto}

@media(max-width:1000px){.rules-page .rules-page-header{grid-template-columns:minmax(0,1fr);gap:24px}.rules-page .rules-page-header .rules-hero-stats{width:min(550px,100%);justify-self:start}}
@media(max-width:600px){.rules-page .rules-page-header .rules-hero-stats{width:100%;grid-template-columns:minmax(0,1fr);gap:10px}.rules-page .rules-hero-stats>.rules-stat{min-height:80px;padding:10px 0;border-left:0;border-top:1px solid var(--border)}.rules-page .rules-hero-stats>.rules-stat:last-child{flex-direction:row;align-items:center;justify-content:space-between}.rules-page .rules-hero-stats>.rules-stat:last-child>strong{flex-basis:auto;max-width:50%;font-size:22px}}

/* Rules upper layout: search on the left, stats and recent activity on the right. */
.rules-page .rules-hero-aside{display:grid;gap:14px;align-content:start}
.rules-page .rules-hero-aside .rules-recent-sidebar{grid-column:auto;width:100%}
.rules-page .rules-layout{grid-template-columns:minmax(255px,315px) minmax(0,1fr)}
.rules-page .rules-hero-main .rules-search{width:100%;margin:24px 0 0}
.rules-page .rules-hero-main .rules-overview{margin:14px 0 0}
.rules-page .rules-hero-main .rules-reading-note{margin:0}
.rules-page .rules-search-label{display:flex;align-items:center;gap:9px;font:600 13px/1.75 Inter,sans-serif;color:var(--text-main);margin-bottom:10px}
.rules-page .rules-search-field{gap:12px;min-height:54px;padding:0 16px;border:1px solid var(--border);border-radius:8px;background:var(--bg-panel);box-shadow:inset 0 1px #ffffff04;transition:border-color .2s,background .2s;box-sizing:border-box}
.rules-page .rules-search-field:focus-within{border-color:var(--profile-action-hover-border);background:var(--bg-soft);box-shadow:0 0 0 2px var(--profile-action-surface)}
.rules-page .rules-search-field>svg{width:19px;height:19px;flex:none;color:var(--green)}
.rules-page .rules-search-field input{padding:15px 0;border-radius:0;color:var(--text-main);font:400 14px/1.6 Inter,sans-serif;box-sizing:border-box}
.rules-page .rules-search-field input::placeholder{color:var(--text-soft)}
.rules-page .rules-search-clear{display:grid;place-items:center;flex:none;width:32px;height:32px;margin:0;border:1px solid var(--border);border-radius:6px;background:var(--bg-soft);color:var(--text-main);font-size:22px}
.rules-page .rules-search-clear[hidden]{display:none}
@media(max-width:1000px){.rules-page .rules-hero-aside{width:min(550px,100%)}}
@media(max-width:900px){.rules-page .rules-layout{grid-template-columns:minmax(0,1fr)}.rules-page .rules-sidebar{grid-row:auto}}
@media(max-width:600px){.rules-page .rules-search-field input{font-size:13px}}

/* Two-column hero followed by a full-width category and rule section. */
.rules-page .rules-container{display:grid;grid-template-columns:minmax(0,1fr) 550px;column-gap:32px;row-gap:24px;align-items:start}
.rules-page .rules-page-header{display:contents}
.rules-page .rules-hero-main{grid-column:1;grid-row:1}
.rules-page .rules-hero-aside{grid-column:2;grid-row:1;gap:12px;width:100%}
.rules-page .rules-layout,.rules-page .rules-main-empty{grid-column:1 / -1;grid-row:2;min-width:0}
.rules-page .rules-layout{grid-template-columns:minmax(255px,315px) minmax(0,1fr)}
.rules-page .rules-hero-main .rules-search{margin-bottom:0}
.rules-page .rules-hero-aside .rules-recent-sidebar{display:grid;gap:12px}
.rules-page .rules-hero-aside .rules-recent{padding:12px}
.rules-page .rules-hero-aside .rules-recent h2{margin:0 0 8px;font:600 10px/1.5 Inter,sans-serif;letter-spacing:1px;text-transform:uppercase;color:var(--text-soft)}
.rules-page .rules-hero-aside .rules-recent-list{gap:0}
.rules-page .rules-hero-aside .rules-recent-link{grid-template-columns:auto minmax(0,1fr) 42px;min-height:34px;gap:8px;padding:4px 0;border:0;border-bottom:1px solid var(--border);border-radius:0;background:none;box-sizing:border-box;transform:none}
.rules-page .rules-hero-aside .rules-recent-list li:last-child .rules-recent-link{border-bottom:0}
.rules-page .rules-hero-aside .rules-recent-number{min-width:3ch;font-variant-numeric:tabular-nums}
.rules-page .rules-hero-aside .rules-recent-title{display:block;grid-column:2;grid-row:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:11px;line-height:1.5}
.rules-page .rules-hero-aside .rules-recent-badge{grid-column:1;grid-row:1;padding:2px 4px;font-size:8px;letter-spacing:.2px;gap:3px}
.rules-page .rules-hero-aside .rules-recent-link time{grid-column:3;grid-row:1;white-space:nowrap}
.rules-page .rules-hero-aside .rules-recent-empty{margin:0;font-size:11px;line-height:1.6}
@media(max-width:1000px){
 .rules-page .rules-container{grid-template-columns:minmax(0,1fr);row-gap:24px}
 .rules-page .rules-hero-main{grid-column:1;grid-row:1}
 .rules-page .rules-hero-aside{grid-column:1;grid-row:2;width:min(550px,100%)}
 .rules-page .rules-layout,.rules-page .rules-main-empty{grid-column:1;grid-row:3}
}
@media(max-width:900px){.rules-page .rules-layout{grid-template-columns:minmax(0,1fr)}}
@media(max-width:380px){.rules-page .rules-hero-aside .rules-recent-link{gap:5px;grid-template-columns:auto minmax(0,1fr) 36px}.rules-page .rules-hero-aside .rules-recent-link time{font-size:8px}}

/* Compact reminder above the Rules search; no continuous motion. */
.rules-page .rules-reminder{display:flex;align-items:center;gap:12px;min-height:80px;box-sizing:border-box;margin:18px 0 0;padding:14px 16px;border:1px solid rgba(225,185,94,.2);border-radius:9px;background:linear-gradient(110deg,rgba(225,185,94,.045),rgba(225,185,94,.01)),#0e100c;box-shadow:0 0 12px rgba(225,185,94,.035);transition:border-color .2s,box-shadow .2s}
.rules-page .rules-reminder:hover{border-color:rgba(225,185,94,.3);box-shadow:0 0 14px rgba(225,185,94,.065)}
.rules-page .rules-reminder-icon{flex:none;width:22px;height:22px;color:#e1b95e;filter:drop-shadow(0 0 5px rgba(225,185,94,.15))}
.rules-page .rules-reminder>div{min-width:0}
.rules-page .rules-reminder h2{margin:0 0 4px;color:#e8c779;font:600 12px/1.5 Inter,sans-serif}
.rules-page .rules-page-header .rules-reminder p{margin:0;max-width:none;color:#c4c5bd;font:400 11px/1.65 Inter,sans-serif;animation:none;transform:none;opacity:1}
.rules-page .rules-hero-main .rules-search{margin:14px 0 0}
@media(min-width:1001px){
 .rules-page .rules-hero-main{display:flex;flex-direction:column;align-self:stretch}
 .rules-page .rules-reminder{margin-top:auto}
 .rules-page .rules-hero-main>p{margin-bottom:18px}
 .rules-page .rules-hero-aside{align-self:stretch;align-content:space-between}
}
@media(prefers-reduced-motion:no-preference){.rules-page .rules-reminder{animation:rules-reminder-in .45s ease-out both}@keyframes rules-reminder-in{from{opacity:0}to{opacity:1}}}
@media(prefers-reduced-motion:reduce){.rules-page .rules-reminder{animation:none;transition:none}}

/* Only the retired Social menu slot: LORE is intentionally not a link. */
.header .nav-lore{cursor:default}
.header .nav-lore .nav-lore-badge{display:inline-flex;align-items:center;padding:3px 5px;border:1px solid rgba(154,255,86,.18);border-radius:4px;background:#0b110d;color:#9bbd8c;font:600 8px/1.3 Inter,sans-serif;letter-spacing:.4px;white-space:nowrap}
