:root {
    /* Base Color Hues */
    --color-brown-dark: #2c1e15;
    --color-brown-base: #3e2a1e;
    --color-brown-medium: #513828;
    --color-brown-light: #573f2c;
    --color-brown-very-light: #766450;
    --color-brown-accent: #4A361C; /* Used for side-dark-title */
    --color-light-brown-accent: #604d38; /* Used for side-light-title */

    /* Text Colors */
    --color-text-primary: #F0E6D2;
    --color-text-secondary: #dac0a3;
    --color-text-accent: #ffc684;
    --color-text-muted: #a8937d;
    --color-text-link: var(--color-text-accent);
    /* --color-text-link: #89c2e8; */
    --color-text-special: #cc7344; /* Used for ticker and dates */

    /* Surface & Container Colors */
    --color-surface-base: var(--color-brown-base);
    --color-surface-card: rgba(81, 56, 40, 0.4);
    --color-surface-hover: rgba(81, 56, 40, 0.6);
    --color-surface-secondary: var(--color-brown-medium);
    --color-surface-tertiary: var(--color-brown-light);
    --color-surface-form-control: #57412f; /* Merged with button color */

    /* Border & Separator Colors */
    --color-border-card: rgba(180, 148, 110, 0.2);
    --color-border-form: #745740;
    --color-border-form-focus: #906d50;

    /* Accent & Action Colors */
    --color-accent-red: #FF6B6B;
    --color-accent-green: #59bb7d;
    --color-accent-orange: #d35136;
    --color-accent-gold: #9d4333; /* Used for korean-accent */
    --color-accent-button-dark: #752d20;
    --color-accent-button-border: #a24632;
    --color-accent-button-secondary: #754e20;
    --color-accent-button-secondary-border: #a27432;
    --color-accent-ucp-bg: linear-gradient(90deg, #562217 0%, #66271b 100%);
    --color-accent-ucp-border: #722c1e;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
    --shadow-accent: 0 4px 20px rgba(255, 107, 107, 0.15);

    /* Spacing System */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;

    /* Border Radius */
    --radius-sm: 3px;
    --radius-md: 8px;
    --radius-lg: 12px;

    /* Font Size System */
    --font-size-xxs: 0.8rem;
    --font-size-xs: 0.9rem;
    --font-size-sm: 0.95rem;
    --font-size-base: 14px;
    --font-size-md: 15px;
    --font-size-lg: 1.18rem;
    --font-size-xl: 22px;
    --font-size-xxl: 2.2rem;
    --font-size-special-small: 11px;
    --font-size-special-link: 12px;
}

/* === GLOBAL OVERRIDES === */
html, body {
    font-size: var(--font-size-base);
    font-family: 'Onest', sans-serif;
}

body {
    margin: 0;
    height: 100vh;
    overflow-x: hidden;
    background-image: url('../images/bg.jpg');
    background-position: top center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    color: var(--color-text-secondary) !important;
    font-family: 'Onest', sans-serif !important;
    line-height: 1.4;
    word-wrap: break-word;
    text-align: left;
    -webkit-transition: all .5s ease;
    -moz-transition: all 1s ease;
    -ms-transition: all 1s ease;
    -o-transition: all 1s ease;
    transition: all 1s ease;
    scroll-behavior: smooth;
}

.hidden {
    display: none !important
}

/* Elveron link styling */
a {
    color: var(--color-text-link) !important;
    cursor: pointer;
    text-decoration: none;
    text-shadow: -0.5px -0.5px 0 #000, 0.5px -0.5px 0 #000, -0.5px .5px 0 #000, 0.5px .5px 0 #000;
    -webkit-transition: color 1s;
    -moz-transition: color 1s;
    transition: color 1s;
}

/* ===== LAYOUT === */
.mid-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    margin-top: 170px;
    background-color: #3e2a1e;
    background-repeat: no-repeat
}

/* === MAIN LAYOUT SYSTEM === */
.nk-main {
    /*background-color: var(--color-surface-base) !important;*/
    background-repeat: no-repeat;
    min-height: 100vh;
    position: relative;
    color: var(--color-text-secondary);
    font-family: 'Onest', sans-serif;
    /* display: flex; */
    flex-flow: wrap;
    justify-content: center;
    padding: 20px;

    background-image: url('../../assets/images/wallpaper.jpg');
    background-size: 100%;
    background-repeat: no-repeat;
    background-color: #0d101c;
    background-attachment: fixed;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    position: relative;
    z-index: 30;
}

/* Elveron's main layout container */
.main-content {
    display: flex;
    gap: 24px;
    max-width: 1200px;
    width: 100%;
    align-items: flex-start;
}

/* Elveron sidebar wrapper */
.side-wrapper {
    display: flex;
    flex-direction: column;
    gap: 33px;
    width: 333px;
    min-width: 333px;
}

.side-wrapper .title {
    background: url("../../assets/image_22.png") no-repeat center center, #604d38;
    display: flex;
    align-items: center;
    height: 50px;
    font-size: 15px;
    color: #dac0a3;
    padding: 0 14px
}

.side-wrapper .title .session-name {
    color: #ffdeb9;
    font-size: 14px;
    text-shadow: 0 0 5px rgba(255, 222, 185, 0.5), 0 0 10px rgba(255, 222, 185, 0.3), 0 0 15px rgba(255, 222, 185, 0.2);
    font-family: 'Trebuchet MS', sans-serif;
    letter-spacing: .5px;
    margin-left: 10px
}

.side-wrapper .title i {
    margin-right: 0
}

.side-wrapper .title span {
    margin-left: auto;
    color: #cc7344;
    font-size: 12px;
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.6)
}

.side-wrapper .title span a {
    color: #ffdeb9;
    text-decoration: none;
    font-weight: bold;
    padding: 6px 12px;
    display: inline-block;
    min-height: 24px;
    line-height: 16px;
    transition: all .2s ease;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.2);
    font-size: 12px;
    min-width: 100px;
    text-align: center
}

.side-wrapper .title span a:hover {
    background: rgba(0, 0, 0, 0.3);
    transform: translateY(-1px)
}

/* Elveron main content wrapper */
.mid-wrapper {
    flex: 1;
    max-width: 840px;
}

.container {
    max-width: 1200px;
}

/* Responsive Layout - Mobile First */
@media (max-width: 992px) {
    .main-content {
        flex-direction: column-reverse;
    }

    .side-wrapper {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
    }

    .mid-wrapper {
        width: 100%;
        max-width: 100%;
    }
}

/* === ELVERON CARD SYSTEM === */
.elveron-card, .mid-dark {
    /* width: 840px; */
    background-color: var(--color-surface-base);
    color: var(--color-text-secondary);
    flex-grow: 1;
    overflow: hidden;
    margin-bottom: 24px;
    border: none;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    position: relative;
}

.elveron-card:hover {
    opacity: 0.95;
}

.elveron-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--color-border-card);
}

.elveron-card-title {
    font-size: var(--font-size-xxl);
    font-weight: 900;
    color: var(--color-text-secondary);
    margin: 0;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.elveron-card-title .korean-accent {
    font-family: 'korean', serif;
    color: var(--color-accent-gold);
    text-shadow: 0 3px 10px rgba(153, 58, 31, 0.8);
    margin-right: 15px;
}

.card-header {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px 20px;
    border-bottom: 1px solid #5c4636;
    color: #ffdeb9;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px
}

.card-header i {
    color: #cc7344;
    font-size: 18px
}

.card-body {
    padding: 20px
}


/* === TITLES === */

.mid-dark .basic {
    padding: 7px 19px
}

.toplist .title,
.mid-dark .title {
    position: relative;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #b4946e;
    color: #dac0a3;
    font-size: 14px;
    padding-bottom: 0;
    padding-left: 27px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1
}

.toplist .title::after,
.mid-dark .title::after {
    content: '';
    position: absolute;
    z-index: -1;
    left: 0;
    bottom: -2.5px;
    width: 83px;
    height: 18px;
    background-image: url("../../assets/image_17.png"), linear-gradient(to right, #3e2a1e, #3e2a1e);
    background-repeat: no-repeat, repeat-x;
    background-size: auto 100%, calc(100% - widthOfYourImage) 100%;
    background-position: left bottom, right bottom
}

.mid-dark .title i {
    margin: 0 5px 0 5px
}

.mid-dark .title .btn {
    margin-left: auto
}

/* === AUTHENTIC ELVERON SIDEBAR COMPONENTS === */
.side-light, .side-dark {
    /* width: 333px; */
    overflow: hidden;
    background-color: var(--color-brown-very-light);
}

.side-dark {
    background-color: var(--color-brown-light);
}

.side-light .title, .side-dark .title {
    position: relative;
    display: flex;
    align-items: center;
    color: var(--color-text-secondary);
    font-size: var(--font-size-base);
    padding-bottom: 0;
    padding-left: 27px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
    height: 50px;
    background: url("../../assets/image_22.png") no-repeat center center, var(--color-light-brown-accent);
    font-size: var(--font-size-md);
    padding: 0 14px;
}

.side-dark .title {
    background: url("../../assets/image_22.png") no-repeat center center, var(--color-brown-accent);
}

.side-light .content-separator,
.side-dark .content-separator {
    width: 100%;
    overflow: hidden;
    margin: 0;
    height: 1px;
    background-image: url("../../assets/image_18.png");
}

.content-separator {
    height: 1px;
    background-image: url("../../assets/image_24.png");
    margin: 10px 0 10px 0
}

.side-light .content, .side-dark .content {
    padding: 15px 10px 15px 10px;
    background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8/5+hHgAHggJ/PchI7wAAAABJRU5ErkJggg==") no-repeat center center;
    background-size: auto;
}

.side-dark .content {
    padding: 20px 18px 15px 18px;
    background: none;
}

/* === AUTHENTIC ELVERON TYPOGRAPHY === */
h1 {
    font-size: var(--font-size-xl);
    color: var(--color-text-secondary);
    font-family: 'Onest', sans-serif;
    font-weight: normal;
    margin: 0;
}

.kr.login {
    width: 55px;
    height: 37px;
    padding-right: 35px;
    background: url("../../assets/image_20.png") no-repeat center center
}

.kr.event {
    width: 43px;
    height: 37px;
    padding-right: 35px;
    background: url("../../assets/image_21.png") no-repeat center center
}

.kr.basic {
    width: 47px;
    height: 40px;
    padding-right: 35px;
    background: url("../../assets/image_25.png") no-repeat center center
}

.kr.top5 {
    width: 33px;
    height: 39px;
    padding-right: 35px;
    background: url("../../assets/image_8.png") no-repeat center center
}


.news-title {
    color: var(--color-text-secondary);
    font-size: var(--font-size-md);
    line-height: 1.4;
    margin: 0;
    font-weight: bold;
}

.boxHeadline > h1,
.sidebarBox .boxHeadline > h2 {
    font-size: var(--font-size-base);
    font-weight: normal;
    color: var(--color-text-secondary);
    text-shadow: none;
    text-align: left;
    font-variant: normal;
    letter-spacing: normal;
    margin: 0;
    font-family: 'Onest', sans-serif;
}

.elveron-card-title, .mid-dark .title {
    font-size: var(--font-size-base);
    color: var(--color-text-secondary);
    font-weight: normal;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.elveron-card-title .korean-accent, .mid-dark .title .korean-accent {
    font-family: 'korean', sans-serif;
    font-size: var(--font-size-xxl);
    color: var(--color-accent-gold);
    text-shadow: 0 3px 10px #993a1f;
    margin-right: 15px;
}

.elveron-card .content, .mid-dark .content {
    padding: 25px;
    color: var(--color-text-secondary);
    font-size: var(--font-size-base);
}

.news-categories {
    display: flex;
    gap: var(--spacing-xs);
}

.news-categories span {
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xxs);
    font-weight: 500;
}

.bg-main-4 {
    background: linear-gradient(90deg, var(--color-accent-orange) 0%, #d35136 100%);
    color: #e9d2b7;
}
.bg-main-5 {
    background: var(--color-accent-green);
    color: white;
}
.bg-main-1 {
    background: linear-gradient(90deg, #885d19 0%, #caa25d 100%);
    color: #ffe6c9;
}

/* === STATISTICS & ACTIONS === */
.statistics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin: var(--spacing-xl) 0;
}

/* === AUTHENTIC ELVERON FORUM TICKER === */
.forum-ticker {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.forum-ticker-item {
    display: flex;
    align-items: center;
    padding: 10px;
    background: transparent;
    border: none;
    font-size: var(--font-size-special-small);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.forum-ticker-item:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.15);
}

.forum-ticker-item:hover {
    background-color: rgba(0, 0, 0, 0.25);
    transform: translateX(2px);
}

.ticker-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.ticker-left {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.thread-title {
    font-size: var(--font-size-special-small);
    color: #f1dcc5;
    font-weight: normal;
}

.text-elveron-accent {
    color: var(--color-text-special) !important;
}

.text-elveron-muted {
    color: var(--color-text-special) !important;
    font-size: var(--font-size-special-small);
}

.topic-item-latestDate {
    color: var(--color-text-special);
    font-size: var(--font-size-special-small);
}

/* === AUTHOR STYLING === */
.author-avatar {
    border-radius: 50%;
    border: 2px solid var(--color-border-card);
    transition: border-color 0.3s ease;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
    .elveron-card {
        padding: var(--spacing-md);
    }

    .statistics {
        grid-template-columns: 1fr;
    }

    .elveron-card-title {
        font-size: var(--font-size-xl);
    }
}

/* === UTILITY CLASSES === */
.text-elveron-primary { color: var(--color-text-primary) !important; }
.text-elveron-secondary { color: var(--color-text-secondary) !important; }
.text-elveron-accent { color: var(--color-text-accent) !important; }
.text-elveron-muted { color: var(--color-text-muted) !important; }

.bg-elveron-card { background: var(--color-surface-card) !important; }
.bg-elveron-primary { background: var(--color-surface-base) !important; }
.bg-elveron-secondary { background: var(--color-brown-dark) !important; }

.border-elveron { border: 1px solid var(--color-border-card) !important; }
.rounded-elveron { border-radius: var(--radius-sm) !important; }

/* === LOADING STATES === */
.loading-markdown {
    color: var(--color-text-muted);
    font-style: italic;
    padding: var(--spacing-md) 0;
}

/* === DISCORD WIDGET === */
#discord {
    transition: all 0.3s ease;
    border-radius: var(--radius-md);
    overflow: hidden;
}

#discord:hover {
    box-shadow: 0 8px 32px rgba(137, 194, 232, 0.2);
    transform: scale(1.02);
}

/* === FOOTER === */
.site-footer {
    background: var(--color-brown-dark) !important;
    border-top: 1px solid var(--color-border-card);
    margin-top: var(--spacing-xxl);
    color: var(--color-text-muted) !important;
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* === SCROLLBAR STYLING === */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-brown-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--color-border-card);
    border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-text-link);
}

/* === AUTHENTIC ELVERON FORM CONTROLS === */
input[name=tab]+label {
    border-radius: 7px;
    padding: 12px 20px;
    text-align: center;
    color: #dac0a3;
    margin: 5px;
    cursor: pointer;
    background: #562217;
    background: linear-gradient(90deg, rgba(86, 34, 23, 1) 0, rgba(102, 39, 27, 1) 100%);
    border: 1px solid #722c1e;
    -webkit-transition: all .3s ease;
    transition: all .3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    min-width: 120px;
    justify-content: center
}

input[name=tab]+label i {
    font-size: 16px;
    color: #ffdeb9
}

input[name=tab]:checked+label {
    background: #763021;
    background: linear-gradient(90deg, rgba(118, 48, 33, 1) 0, rgba(140, 55, 37, 1) 100%);
    border: 1px solid #9b3e2a;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2)
}

input[name=tab]+label:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1)
}

button {
    background: none;
    color: inherit;
    border: 0;
    padding: 0;
    font: inherit;
    cursor: pointer;
    outline: inherit;
}

button:focus,
a:focus {
    outline: none;
}

input[type=text]:focus,
input[type=password]:focus {
    outline: none;
    border-color: #69533d;
}

input[type=text],
input[type=email],
input[type=password],
input[type=date],
input[type=number],
input[type=tel],
input[type=url],
input[type=search],
.form-group .form-control,
select {
    width: 100%;
    background-color: var(--color-surface-form-control);
    border: 1px solid var(--color-border-form);
    box-shadow: inset 0 0 15px rgba(62, 42, 30, 0.6);
    padding: 8px 12px;
    border-radius: 4px;
    color: var(--color-text-secondary);
    transition: border-color .3s ease;
    margin-top: 5px;
    font-size: var(--font-size-base);
}

input[type=text]:focus,
input[type=email]:focus,
input[type=password]:focus,
input[type=date]:focus,
input[type=number]:focus,
input[type=tel]:focus,
input[type=url]:focus,
input[type=search]:focus,
.form-group .form-control:focus,
select:focus {
    border-color: var(--color-border-form-focus);
}

.login-form input[type=text],
.login-form input[type=password] {
    width: 100%;
    height: 44px;
    background-color: #604d38;
    color: var(--color-text-secondary);
}

.btn-main,
.mid-dark input[type=submit]:not(.forum-tags),
.mid-dark input[type=file] {
    display: block;
    width: 183px;
    height: 48px;
    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8/5+hHgAHggJ/PchI7wAAAABJRU5ErkJggg==");
    background-size: cover;
    background-position: center;
    background-color: var(--color-accent-button-dark);
    color: var(--color-text-secondary);
    font-size: var(--font-size-base);
    border: 1px solid var(--color-accent-button-border);
    padding: 10px 25px;
    border-radius: 4px;
    cursor: pointer;
    transition: all .3s ease;
}

.btn-main:hover,
.mid-dark input[type=submit]:hover,
.mid-dark input[type=file]:hover {
    -webkit-filter: brightness(150%);
    filter: brightness(150%);
}

.btn,
button {
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 10px;
    color: #cca97e;
    height: 36px;
    line-height: 36px;
    border-radius: 3px;
    padding: 0 12px;
    font-size: var(--font-size-base);
    background-color: var(--color-accent-button-secondary);
    border: 1px solid var(--color-accent-button-secondary-border);
    cursor: pointer;
    transition: all .3s ease;
}

.btn:hover,
button:hover {
    -webkit-filter: brightness(130%);
    filter: brightness(130%);
}

.btn-success {
    background-image: linear-gradient(to right, #31371f, #37401d);
    border: 1px solid #5b6538;
}

.btn-danger {
    background-image: linear-gradient(to right, #3b1918, #421d1c);
    border: 1px solid #612828;
}

.btn-warning {
    background-image: linear-gradient(to right, #4e3416, #553a1d);
    border: 1px solid #7d6244;
}

.btn-info {
    background-image: linear-gradient(to right, #172d33, #213c44);
    border: 1px solid #285461;
}

.side-wrapper .ucp {
    list-style: none;
    padding: 0;
    font-size: 14px
}

.side-wrapper .ucp li {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    width: 100%
}

.side-wrapper .ucp li a {
    display: block;
    width: 100%
}

.side-wrapper .btn-ucp {
    border-radius: 7px;
    display: flex;
    align-items: center;
    text-align: left;
    color: #ffdeb9;
    height: 42px;
    background: #562217;
    background: linear-gradient(90deg, rgba(86, 34, 23, 1) 0, rgba(102, 39, 27, 1) 100%);
    border: 1px solid #722c1e;
    -webkit-transition: all .3s ease;
    transition: all .3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    font-weight: 600;
    letter-spacing: .5px
}

.side-wrapper .btn-ucp:hover,
.side-wrapper .btn-ucp.active {
    -webkit-filter: brightness(130%);
    filter: brightness(130%);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7)
}

.side-wrapper .btn-ucp .icon {
    min-width: 42px;
    text-align: center;
    margin-right: 10px;
    line-height: 42px;
    border-right: 1px solid #722c1e
}

.side-wrapper .btn-ucp .icon i {
    text-shadow: 0 0 2px rgba(255, 222, 185, 0.3);
    filter: drop-shadow(0 0 1px rgba(255, 222, 185, 0.3))
}

.side-wrapper .btn-ucp:hover .icon i {
    text-shadow: 0 0 3px rgba(255, 222, 185, 0.4);
    filter: drop-shadow(0 0 2px rgba(255, 222, 185, 0.4))
}

.form-group {
    margin-bottom: 15px;
}

.form-group label,
.form-label {
    display: block;
    color: #ffdeb9;
    margin-bottom: 8px;
    font-size: var(--font-size-base);
}

.mid-dark .form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-text.text-muted {
    font-size: var(--font-size-special-small);
    color: #dda17a;
    display: block;
    margin-top: 5px;
}

.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    margin-left: unset;
    margin-right: unset;
}

.form-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 0;
    text-align: center;
}

.form-links {
    font-size: var(--font-size-special-link);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.form-link {
    color: #ffdeb9;
    text-decoration: none;
    font-weight: bold;
    padding: 6px 12px;
    display: inline-block;
    min-height: 24px;
    line-height: 16px;
    transition: all .2s ease;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.2);
}

.form-link:hover {
    background: rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}

input[type=submit],
input[type=file] {
    outline: none;
    border: 0;
    background-color: #4CAF50;
    color: white;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: var(--font-size-base);
    margin: 4px 2px;
    cursor: pointer;
}

input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background-color: var(--color-surface-form-control);
    border: 1px solid var(--color-border-form);
    border-radius: 3px;
    position: relative;
    cursor: pointer;
}

input[type="checkbox"]:checked {
    background-color: var(--color-accent-button-dark);
    border-color: var(--color-accent-button-border);
}

input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: -2px;
    left: 2px;
    color: #ffdeb9;
    font-size: var(--font-size-special-small);
    font-weight: bold;
}

input[type="checkbox"]:focus {
    border-color: var(--color-border-form-focus);
    outline: none;
}

input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background-color: var(--color-surface-form-control);
    border: 1px solid var(--color-border-form);
    border-radius: 50%;
    position: relative;
    cursor: pointer;
}

input[type="radio"]:checked {
    background-color: var(--color-accent-button-dark);
    border-color: var(--color-accent-button-border);
}

input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 8px;
    height: 8px;
    background-color: #ffdeb9;
    border-radius: 50%;
}

input[type="radio"]:focus {
    border-color: var(--color-border-form-focus);
    outline: none;
}

textarea {
    width: 100%;
    background-color: var(--color-surface-form-control);
    border: 1px solid var(--color-border-form);
    box-shadow: inset 0 0 15px rgba(62, 42, 30, 0.6);
    padding: 8px 12px;
    border-radius: 4px;
    color: var(--color-text-secondary);
    transition: border-color .3s ease;
    font-family: 'Onest', sans-serif;
    resize: vertical;
    min-height: 80px;
    font-size: var(--font-size-base);
}

textarea:focus {
    border-color: var(--color-border-form-focus);
    outline: none;
}

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'><path fill='%23dac0a3' d='M2 0L0 2h4zm0 5L0 3h4z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 12px;
    padding-right: 30px;
}

input::placeholder,
textarea::placeholder {
    color: #8a7863;
    opacity: 1;
}

input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
    color: #8a7863;
}

input::-moz-placeholder,
textarea::-moz-placeholder {
    color: #8a7863;
    opacity: 1;
}

input:disabled,
select:disabled,
textarea:disabled,
button:disabled {
    background-color: #3c2718;
    color: #6d5d4f;
    border-color: #4a392b;
    cursor: not-allowed;
    opacity: 0.6;
}

.form-control:focus {
    outline: none;
}

/* === BUTTONS === */
.btn-main {
    background: #752d20;
    color: #ffdeb9;
    border: 1px solid #a24632;
    padding: 10px 25px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all .3s ease
}

.btn-main {
    min-width: 120px;
    height: 44px;
    line-height: 44px;
    padding: 0 20px
}

.btn-main,
.mid-dark input[type=submit]:not(forum-tags),
.mid-dark input[type=file] {
    display: block;
    width: 183px;
    height: 48px;
    background-image: url("../../assets/image_23.jpg");
    background-size: cover;
    background-position: center;
    color: #dac0a3;
    font-size: 14px;
    text-align: center;
    line-height: 48px;
    text-decoration: none;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
    -webkit-transition: all .3s ease-in-out;
    transition: all .3s ease-in-out;
    margin: 0 auto
}

.btn-main:hover,
.mid-dark input[type=submit]:hover,
.mid-dark input[type=file]:hover {
    -webkit-filter: brightness(150%);
    filter: brightness(150%)
}

.btn-no-size {
    width: unset;
    height: unset;
}

.download {
    background: url("../../assets/image_6.jpg") no-repeat center center;
    height: 61px;
    font-size: 22px;
    color: #dac0a3;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
    transition: .3s
}

.download:hover {
    -webkit-filter: brightness(130%);
    filter: brightness(130%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    text-decoration: none;
    color: white;
}


.content-tabs-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    background-color: rgba(0, 0, 0, .2);
    width: 98%;
    padding: 5px;
    margin: 10px auto 10px auto;
    border-radius: 6px
}

.content-container {
    padding: 10px;
}

input[name=tab] + label {
    border-radius: 7px;
    padding: 12px 20px;
    text-align: center;
    color: #dac0a3;
    margin: 5px;
    cursor: pointer;
    background: #562217;
    background: linear-gradient(90deg,rgba(86,34,23,1) 0,rgba(102,39,27,1) 100%);
    border: 1px solid #722c1e;
    -webkit-transition: all .3s ease;
    transition: all .3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    min-width: 120px;
    justify-content: center
}

input[name=tab] + label i {
    font-size: 16px;
    color: #ffdeb9
}

input[name=tab]:checked + label {
    background: #763021;
    background: linear-gradient(90deg,rgba(118,48,33,1) 0,rgba(140,55,37,1) 100%);
    border: 1px solid #9b3e2a;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2)
}

input[name=tab] + label:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1)
}

input[type=radio][name=tab] {
    display: none;
}

/* === STATISTICS & DOWNLOAD CARDS === */
.statistics-card {
    display: flex;
    flex-direction: column;
    padding: 0;
}

.statistics-card .stats-header {
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(180, 148, 110, 0.2);
}

.statistics-card .stats-header .news-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.statistics-card .stats-header .news-title i {
    color: var(--color-text-special);
}

.statistics-card .forum-ticker {
    flex: 1;
}

.server-status {
    font-size: var(--font-size-special-small);
    display: flex;
    align-items: center;
    gap: 5px;
}

.server-status i {
    font-size: 8px;
}

.download-card {
    display: flex;
    align-items: stretch;
}

.download-card .download {
    flex: 1;
    height: auto;
    min-height: 180px;
}

/* === PAGINATION === */
.pagination-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.pagination {
    display: flex;
    gap: 5px;
    align-items: center;
}

.pagination-link {
    min-width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    background: rgba(86, 34, 23, 0.6);
    border: 1px solid rgba(180, 148, 110, 0.3);
    border-radius: 5px;
    color: var(--color-text-special);
    text-decoration: none;
    font-size: var(--font-size-special-small);
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
}

.pagination-link:hover:not(.disabled):not(.active) {
    background: rgba(102, 39, 27, 0.8);
    border-color: var(--color-text-special);
    transform: translateY(-1px);
}

.pagination-link.active {
    background: linear-gradient(135deg, #b4946e 0%, #8b7355 100%);
    border-color: var(--color-text-special);
    color: var(--color-bg-dark);
    font-weight: bold;
    cursor: default;
}

.pagination-link.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-nav {
    min-width: 35px;
    padding: 0;
}

.pagination-dots {
    min-width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    background: rgba(86, 34, 23, 0.6);
    border: 1px solid rgba(180, 148, 110, 0.3);
    border-radius: 5px;
    color: var(--color-text-special);
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination-dots:hover {
    background: rgba(102, 39, 27, 0.8);
    border-color: var(--color-text-special);
    transform: translateY(-1px);
}

/* Page Jump Modal */
.page-jump-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.page-jump-content {
    background: linear-gradient(135deg, #1a0f0a 0%, #2d1810 100%);
    border: 2px solid var(--color-text-special);
    border-radius: 10px;
    padding: 25px;
    min-width: 300px;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
}

.page-jump-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    color: var(--color-text-special);
    font-size: var(--font-size-h4);
    font-weight: bold;
}

.page-jump-close {
    background: none;
    border: none;
    color: var(--color-text-special);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.page-jump-close:hover {
    color: var(--color-accent-red);
    transform: rotate(90deg);
}

.page-jump-input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(180, 148, 110, 0.3);
    border-radius: 5px;
    color: var(--color-text-special);
    font-size: var(--font-size-special);
    text-align: center;
    box-sizing: border-box;
}

.page-jump-input::placeholder {
    color: rgba(180, 148, 110, 0.5);
}

.page-jump-input:focus {
    outline: none;
    border-color: var(--color-text-special);
    box-shadow: 0 0 10px rgba(180, 148, 110, 0.3);
}

.page-jump-button {
    width: 100%;
    background: linear-gradient(135deg, #b4946e 0%, #8b7355 100%);
    border: 1px solid var(--color-text-special);
    border-radius: 5px;
    color: var(--color-bg-dark);
    font-size: var(--font-size-special);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.page-jump-button:hover {
    filter: brightness(1.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(180, 148, 110, 0.4);
}

