/* ==========================================================================
   FAKEFUN.RU - HIGH PERFORMANCE SLEEK DARK DESIGN (STABLE & MOBILE READY)
   ========================================================================== */

:root {
    --bg-main: #090a0d;
    --bg-header: #0d0e12;
    --bg-card: #111217;
    --bg-card-hover: #15161d;
    --bg-card-open: #111319;
    
    --border-subtle: #1a1b24;
    --border-hover: #262836;
    --border-active: #1d3557;
    
    --blue-accent: #3b82f6;
    --blue-hover: #60a5fa;
    --red-link: #ef4444;
    --red-link-hover: #f87171;
    
    --text-white: #ffffff;
    --text-main: #cbd5e1;
    --text-muted: #808a9d;
    --text-dim: #475569;
    
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-pill: 9999px;
    
    --transition-fast: 0.16s ease;
}

/* RESET & BASE - PREVENTS SCROLL JUMPING */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background-color: var(--bg-main);
    overflow-y: scroll;
    scrollbar-gutter: stable;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-family);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* CONTAINER */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   HEADER & MODERN CAPSULE NAVIGATION (DESKTOP & MOBILE)
   ========================================================================== */
.header {
    width: 100%;
    background-color: var(--bg-header);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 12px 0;
}

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

.header__left {
    display: flex;
    align-items: center;
}

/* LOGO */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: opacity var(--transition-fast);
}

.logo:hover {
    opacity: 0.9;
}

.logo__icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo__icon svg,
.logo__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo__text-group {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.4px;
    display: flex;
    align-items: center;
    line-height: 1;
}

.logo-white {
    color: #ffffff;
}

.logo-cyan {
    color: var(--blue-accent);
}

/* SLEEK ROUNDED CAPSULE NAV BUTTONS */
.nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav__link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 16px;
    background-color: #121319;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-pill);
    color: var(--text-muted);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.nav__link * {
    pointer-events: none;
}

.nav__link .icon {
    width: 14px;
    height: 14px;
    fill: currentColor;
    flex-shrink: 0;
}

.nav__link:hover {
    background-color: #1c1e28;
    border-color: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.nav__link.active {
    background-color: #151f33;
    border-color: #2563eb;
    color: #60a5fa;
}

.nav__link.active .icon {
    fill: #60a5fa;
}

/* MOBILE RESPONSIVE HEADER */
@media (max-width: 768px) {
    .header {
        padding: 10px 0;
    }
    .header__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .header__left {
        justify-content: flex-start;
    }
    .nav {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
        width: 100%;
    }
    .nav__link {
        padding: 7px 4px;
        font-size: 11px;
        justify-content: center;
        gap: 4px;
        white-space: nowrap;
    }
    .nav__link .icon {
        width: 12px;
        height: 12px;
    }
}

@media (max-width: 440px) {
    .nav {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    .nav__link {
        padding: 8px 10px;
        font-size: 12px;
    }
}

/* ==========================================================================
   MAIN CONTENT & 2-COLUMN LAYOUT
   ========================================================================== */
.main-content {
    flex: 1;
    padding: 36px 0 64px 0;
}

.main-layout {
    display: grid;
    grid-template-columns: 290px 1fr;
    gap: 36px;
    align-items: start;
}

@media (max-width: 900px) {
    .main-content {
        padding: 24px 0 48px 0;
    }
    .main-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* SIDEBAR */
.rules-sidebar {
    position: relative;
}

.sidebar-sticky {
    position: sticky;
    top: 86px;
    transform: translateZ(0);
}

.page-title {
    font-size: 28px;
    font-weight: 900;
    color: var(--text-white);
    letter-spacing: -0.4px;
    line-height: 1.15;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.page-subtitle {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.45;
    margin-bottom: 4px;
}

.page-note {
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.45;
    margin-bottom: 20px;
}

@media (max-width: 900px) {
    .page-title {
        font-size: 24px;
    }
    .page-note {
        margin-bottom: 14px;
    }
}

/* BACK TO SHOP BUTTON */
.back-shop-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.back-shop-card * {
    pointer-events: none;
}

.back-shop-card:hover {
    background-color: var(--bg-card-hover);
    border-color: var(--border-hover);
}

.shop-card-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.shop-card-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.6px;
    color: var(--text-dim);
    text-transform: uppercase;
}

.shop-card-title {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-white);
}

.shop-card-icon {
    width: 30px;
    height: 30px;
    border-radius: var(--radius-sm);
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--blue-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.shop-card-icon svg {
    width: 16px;
    height: 16px;
}

/* ==========================================================================
   ACCORDION SYSTEM (SMOOTH & ZERO-JERK)
   ========================================================================== */
.rules-accordion {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.accordion-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.accordion-item:hover {
    border-color: var(--border-hover);
}

.accordion-item.is-open {
    background-color: var(--bg-card-open);
    border-color: var(--border-active);
}

.accordion-header {
    width: 100%;
    background: transparent;
    border: none;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    text-align: left;
    outline: none;
    color: var(--text-white);
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    transition: background-color var(--transition-fast);
}

.accordion-header:focus,
.accordion-header:focus-visible {
    outline: none;
}

.accordion-header:hover {
    background-color: rgba(255, 255, 255, 0.015);
}

.accordion-title {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text-white);
    letter-spacing: -0.2px;
}

.accordion-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: #161720;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    pointer-events: none;
    transition: transform 0.25s cubic-bezier(0.2, 0, 0, 1), background-color var(--transition-fast), color var(--transition-fast);
}

.accordion-icon svg {
    width: 13px;
    height: 13px;
}

.accordion-item.is-open .accordion-icon {
    transform: rotate(180deg);
    background-color: rgba(59, 130, 246, 0.15);
    color: var(--blue-accent);
}

/* SILKY SMOOTH ZERO-JERK ACCORDION CONTENT EXPANSION */
.accordion-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.28s cubic-bezier(0.2, 0, 0, 1);
}

.accordion-item.is-open .accordion-content {
    grid-template-rows: 1fr;
}

.accordion-inner {
    min-height: 0;
    overflow: hidden;
}

/* COMPACT RULES LIST WITH COMFORTABLE TOP PADDING */
.rules-list {
    padding: 12px 18px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   RULE ITEMS & COMFORTABLE READABLE TYPOGRAPHY (NOT BOLD WHITE)
   ========================================================================== */
.rule-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.45;
    font-size: 13.5px;
}

.rule-badge {
    color: var(--blue-accent);
    font-weight: 700;
    font-size: 13.5px;
    flex-shrink: 0;
    min-width: 26px;
}

.rule-body {
    flex: 1;
    color: var(--text-main);
    font-weight: 400;
}

.rule-text {
    color: #e2e8f0;
    font-weight: 400;
    margin-bottom: 2px;
}

.rule-body > .rule-text:only-child {
    margin-bottom: 0;
}

/* BULLETS & SUB-RULES */
.rule-bullets {
    list-style: none;
    margin: 4px 0 4px 4px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rule-bullets li {
    position: relative;
    padding-left: 14px;
    color: var(--text-main);
    font-size: 13px;
    font-weight: 400;
}

.rule-bullets li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--blue-accent);
    font-weight: 800;
    font-size: 13px;
    line-height: 1.3;
}

.rule-bullets li strong {
    color: var(--blue-accent);
    font-weight: 600;
    margin-right: 4px;
}

/* RED LINKS */
.rule-link,
.rule-link-red,
.rule-body a {
    color: var(--red-link) !important;
    text-decoration: underline;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.rule-link:hover,
.rule-link-red:hover,
.rule-body a:hover {
    color: var(--red-link-hover) !important;
}

/* PUNISHMENT LINES */
.punish-line {
    margin-top: 3px;
    font-size: 12.5px;
    line-height: 1.4;
}

.punish-label {
    color: var(--blue-accent);
    font-weight: 600;
    margin-right: 4px;
}

.punish-val {
    color: #cbd5e1;
    font-weight: 400;
}

/* ==========================================================================
   PAGE HEADER FOR SUBPAGES (BLACKLIST, PROGRAMS, MODS)
   ========================================================================== */
.page-header {
    text-align: center;
    margin-bottom: 26px;
}

.page-header .page-title {
    margin-bottom: 6px;
}

.page-header .page-subtitle {
    margin-bottom: 0;
}

/* ==========================================================================
   BLACKLIST TABLE & WARNING CALLOUT
   ========================================================================== */
.table-wrapper {
    background-color: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 20px;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 13.5px;
}

.custom-table th {
    background-color: #14151b;
    padding: 13px 18px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.4px;
    border-bottom: 1px solid var(--border-subtle);
    text-transform: uppercase;
}

.custom-table td {
    padding: 12px 18px;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-main);
    font-weight: 400;
    vertical-align: middle;
}

.custom-table tbody tr:last-child td {
    border-bottom: none;
}

.custom-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.015);
}

.user-badge {
    font-weight: 500;
    color: #ffffff;
}

.reason-cell {
    color: #cbd5e1;
    line-height: 1.45;
}

.date-cell {
    color: var(--text-muted);
    font-family: monospace;
    font-size: 12.5px;
    text-align: right;
}

@media (max-width: 600px) {
    .table-wrapper {
        overflow-x: auto;
    }
    .custom-table th, 
    .custom-table td {
        padding: 10px 12px;
        font-size: 12.5px;
    }
}

/* WARNING CALLOUT AT BOTTOM */
.blacklist-warning {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background-color: #111217;
    border: 1px solid #1c1e28;
    border-radius: var(--radius-md);
    margin-top: 20px;
}

.blacklist-warning__icon {
    width: 18px;
    height: 18px;
    color: #fbbf24;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.blacklist-warning__icon svg {
    width: 18px;
    height: 18px;
}

.blacklist-warning__text {
    font-size: 13px;
    color: #cbd5e1;
    line-height: 1.45;
}

.blacklist-warning__text strong {
    color: #ffffff;
}

/* ==========================================================================
   PROGRAMS PAGE CARDS (100% FLICKER-FREE & STABLE)
   ========================================================================== */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 18px;
}

@media (max-width: 640px) {
    .programs-grid {
        grid-template-columns: 1fr;
    }
}

.program-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.program-card:hover {
    background-color: var(--bg-card-hover);
    border-color: var(--border-hover);
}

.program-card__header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.program-card__icon-box {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background-color: #161a24;
    color: var(--blue-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.program-card__icon-box svg {
    width: 18px;
    height: 18px;
}

.program-card__title {
    font-size: 15.5px;
    font-weight: 700;
    color: #ffffff;
}

.program-card__category {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-muted);
}

.program-card__desc {
    font-size: 13px;
    color: var(--text-main);
    line-height: 1.45;
    font-weight: 400;
}

/* 100% FLICKER-FREE DOWNLOAD BUTTON WITH ISOLATED LAYER & FIXED DIMENSIONS */
.program-card__link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 38px;
    padding: 0 18px;
    background-color: #192233;
    border: none;
    outline: none;
    box-shadow: none;
    border-radius: var(--radius-sm);
    color: #60a5fa;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    transform: translateZ(0);
    backface-visibility: hidden;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.program-card__link * {
    pointer-events: none !important;
}

.program-card__link svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.program-card__link:hover {
    background-color: #2563eb;
    color: #ffffff;
}

.program-card__link:focus,
.program-card__link:focus-visible,
.program-card__link:active {
    outline: none;
    box-shadow: none;
}

/* ==========================================================================
   MODS PAGE - 2-COLUMN LIST & SECTIONS
   ========================================================================== */
.mods-list-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 20px;
}

.mods-list-row {
    display: grid;
    grid-template-columns: 38% 62%;
    gap: 20px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-subtle);
    align-items: center;
    transition: background-color var(--transition-fast);
}

.mods-list-row:last-child {
    border-bottom: none;
}

.mods-list-row:hover {
    background-color: rgba(255, 255, 255, 0.015);
}

@media (max-width: 800px) {
    .mods-list-row {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 12px 14px;
    }
}

.mods-list-cat {
    font-size: 13.5px;
    font-weight: 500;
    color: #ffffff;
    line-height: 1.4;
}

.mods-list-items {
    font-size: 13px;
    color: var(--text-main);
    line-height: 1.5;
    font-weight: 400;
}

/* PROHIBITED FUNCTIONALITY */
.prohibited-func-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 20px 22px;
    margin-bottom: 20px;
}

.prohibited-func-title {
    font-size: 17px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 10px;
}

.prohibited-func-desc {
    font-size: 13px;
    color: var(--text-main);
    line-height: 1.5;
    font-weight: 400;
}

.prohibited-func-list {
    list-style: none;
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.prohibited-func-list li {
    font-size: 13px;
    color: var(--text-main);
    line-height: 1.5;
    font-weight: 400;
}

.prohibited-func-list li strong {
    color: #ffffff;
    font-weight: 600;
}

/* DEVELOPER CONTACT CALLOUT */
.developer-contact-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    background-color: #111319;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
}

@media (max-width: 700px) {
    .developer-contact-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

.developer-contact-card__icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: rgba(59, 130, 246, 0.12);
    color: var(--blue-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.developer-contact-card__icon svg {
    width: 16px;
    height: 16px;
}

.developer-contact-card__info h4 {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 2px;
}

.developer-contact-card__info p {
    font-size: 12.5px;
    color: var(--text-muted);
}

/* ==========================================================================
   FOOTER (STABLE ICONS)
   ========================================================================== */
.footer {
    background-color: var(--bg-header);
    border-top: 1px solid var(--border-subtle);
    padding: 40px 0;
    margin-top: auto;
}

.footer__heading {
    text-align: center;
    margin-bottom: 20px;
}

.footer__title {
    font-size: 20px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.3px;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.footer__subtitle {
    font-size: 13.5px;
    color: var(--text-muted);
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

@media (max-width: 800px) {
    .social-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .social-grid {
        grid-template-columns: 1fr;
    }
}

.social-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.social-card * {
    pointer-events: none;
}

.social-card:hover {
    background-color: var(--bg-card-hover);
    border-color: var(--border-hover);
}

.social-card__content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-card svg,
.social-card__icon--plain {
    width: 18px !important;
    height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    fill: #ffffff !important;
    flex-shrink: 0 !important;
}

.social-card__name {
    font-size: 13.5px;
    font-weight: 600;
    color: #ffffff;
}

/* ==========================================================================
   BUTTONS (100% FLICKER-FREE)
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 36px;
    padding: 0 18px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border: none;
    outline: none;
    box-shadow: none;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    transform: translateZ(0);
    backface-visibility: hidden;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.btn * {
    pointer-events: none !important;
}

.btn-primary {
    background-color: #192233;
    color: #60a5fa;
}

.btn-primary:hover {
    background-color: #2563eb;
    color: #ffffff;
}
