/* ----------------------------------------------------
   WarpTime.ru — Modern Web Design System
   Linear / Vercel style dark theme
   ---------------------------------------------------- */

:root {
    --bg-color: #0A0B0D;
    --bg-alt: #101215;
    --card-bg: #16181C;
    --card-hover: #1E2127;
    --card-border: rgba(255, 255, 255, 0.08);
    --card-border-hover: rgba(234, 76, 137, 0.4);
    --pink: #EA4C89;
    --pink-rgb: 234, 76, 137;
    --pink-glow: rgba(234, 76, 137, 0.15);
    --cyan: #00D2FF;
    --purple: #9D4EDD;
    --green: #00E676;
    --yellow: #FFB142;
    --red: #FF5252;
    --text-main: #F3F4F6;
    --text-muted: #9CA3AF;
    --text-dim: #6B7280;
    --font-heading: 'Unbounded', sans-serif;
    --font-body: 'Golos Text', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Flex Sticky Footer Layout + Permanent Scrollbar Gutter (Prevents Tab Shift) */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    height: 100%;
    overflow-y: scroll; /* Prevents layout shift when switching between long & short tabs */
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

/* Background Grid Pattern */
.bg-grid-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
    z-index: -1;
}

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
}

/* Header Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 72px;
    z-index: 100;
    background: rgba(10, 11, 13, 0.85);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--card-border);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

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

.brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.pink {
    color: var(--pink);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-item {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 0;

    &:hover, &.active {
        color: var(--text-main);
    }
}

.nav-shop {
    color: var(--pink);
    font-weight: 600;
}

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

/* Mobile Hamburger Button */
.mobile-nav-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
    border: 1px solid var(--card-border);
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);

    .close-icon {
        display: none;
    }

    &.open {
        background: rgba(234, 76, 137, 0.15);
        color: var(--pink);
        border-color: rgba(234, 76, 137, 0.3);

        .hamburger-icon {
            display: none;
        }

        .close-icon {
            display: block;
        }
    }
}

/* Mobile Drawer Overlay Menu */
.mobile-drawer {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100vw;
    height: calc(100vh - 72px);
    background: rgba(10, 11, 13, 0.96);
    backdrop-filter: blur(20px);
    z-index: 99;
    display: flex;
    flex-direction: column;
    padding: 32px 24px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;

    &.open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile-nav-item {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-muted);
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);

    &:hover, &.active {
        color: var(--pink);
    }
}

.mobile-shop {
    color: var(--pink);
}

.mobile-drawer-cta {
    margin-top: 32px;
}

.btn-full {
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    white-space: nowrap;

    &:hover {
        transform: translateY(-1px);
    }
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 16px;
    border-radius: var(--radius-md);
}

.btn-pink {
    background: var(--pink);
    color: #FFF;
    box-shadow: 0 4px 16px rgba(var(--pink-rgb), 0.3);

    &:hover {
        background: #ff5b97;
        box-shadow: 0 6px 24px rgba(var(--pink-rgb), 0.45);
    }
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--card-border);

    &:hover {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.2);
    }
}

/* Hero Section */
.hero-section {
    flex: 1;
    padding-top: 150px;
    padding-bottom: 70px;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 60px;
    align-items: center;
    width: 100%;
}

/* Restored & Enhanced Classic Dark Pill Badge */
.online-pill {
    display: inline-flex;
    align-items: center;
    background: #14161B;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 20px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.green-highlight {
    color: var(--green) !important;
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: 15px;
    margin: 0 4px;
}

.hero-heading {
    font-family: var(--font-heading);
    font-size: 50px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.2px;
    margin-bottom: 22px;
}

.heading-gradient {
    background: linear-gradient(135deg, #FFF 0%, var(--pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-lead {
    font-size: 20px;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 600px;
}

/* IP Card */
.ip-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 14px 22px;
    border-radius: var(--radius-md);
    margin-bottom: 32px;
    max-width: 520px;
    cursor: pointer;
    transition: var(--transition);

    &:hover {
        border-color: var(--card-border-hover);
        background: var(--card-hover);
    }
}

.ip-left {
    display: flex;
    flex-direction: column;
}

.ip-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-dim);
    letter-spacing: 0.5px;
}

.ip-val {
    font-family: var(--font-mono);
    font-size: 19px;
    font-weight: 700;
    color: var(--text-main);
}

/* Interactive Copy IP Button with SVG Icon Morphing */
.ip-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.15s ease, box-shadow 0.25s ease;

    &:hover {
        background: var(--pink);
        color: #FFF;
        transform: translateY(-1px);
    }

    &:active {
        transform: scale(0.95);
    }
}

.icon-wrap {
    position: relative;
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.icon-copy, .icon-check {
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

.icon-copy {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.icon-check {
    opacity: 0;
    transform: scale(0.2) rotate(-90deg);
}

.ip-btn.copied {
    background: var(--green) !important;
    color: #000 !important;
    box-shadow: 0 0 24px rgba(0, 230, 118, 0.6) !important;
    transform: scale(1.05) !important;

    .icon-copy {
        opacity: 0 !important;
        transform: scale(0.2) rotate(90deg) !important;
    }

    .icon-check {
        opacity: 1 !important;
        transform: scale(1) rotate(0deg) !important;
    }
}

.toast-notice {
    display: none;
}

.hero-cta-group {
    display: flex;
    gap: 16px;
}

/* Completely Borderless & Frameless 3D Skin Container */
.skin-free-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 480px;
    width: 100%;
    background: transparent;
    border: none;
    box-shadow: none;
}

.skin-canvas-free {
    width: 100% !important;
    height: 100% !important;
    cursor: grab;

    &:active {
        cursor: grabbing;
    }
}

/* Support Modal Popup */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 11, 13, 0.85);
    backdrop-filter: blur(16px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;

    &.open {
        opacity: 1;
        pointer-events: auto;
    }
}

.modal-card {
    position: relative;
    width: 100%;
    max-width: 520px;
    background: #16181C;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-xl);
    padding: 36px 32px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
    transform: scale(0.95);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);

    .modal-overlay.open & {
        transform: scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: var(--transition);

    &:hover {
        background: rgba(255, 255, 255, 0.15);
        color: var(--text-main);
    }
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 8px;
    padding-right: 32px;
}

.modal-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.modal-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.platform-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #1E2127;
    border: 1px solid var(--card-border);
    padding: 16px 20px;
    border-radius: var(--radius-lg);
    transition: var(--transition);

    &:hover {
        border-color: rgba(255, 255, 255, 0.25);
        transform: translateY(-2px);

        .arrow-icon {
            transform: translateX(4px);
            color: var(--text-main);
        }
    }

    &.tg-btn:hover {
        border-color: rgba(36, 161, 222, 0.5);
        background: linear-gradient(90deg, #1E2127 0%, rgba(36, 161, 222, 0.1) 100%);
    }

    &.ds-btn:hover {
        border-color: rgba(88, 101, 242, 0.5);
        background: linear-gradient(90deg, #1E2127 0%, rgba(88, 101, 242, 0.1) 100%);
    }
}

.platform-icon {
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.platform-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.platform-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
}

.platform-desc {
    font-size: 12px;
    color: var(--text-muted);
}

.arrow-icon {
    color: var(--text-dim);
    transition: var(--transition);
}

/* Page Container (For Status & Rules) */
.page-container {
    flex: 1;
    padding-top: 110px;
    padding-bottom: 60px;
}

.rules-head-compact {
    margin-bottom: 24px;
}

.subtitle-tight {
    font-size: 15px;
    color: var(--text-muted);
    margin-top: 6px;
}

.status-page-head {
    max-width: 900px;
    margin: 0 auto 28px auto;
    text-align: left;
}

.subtitle-left {
    font-size: 15px;
    color: var(--text-muted);
}

.title-xl {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 4px;
}

.status-dashboard {
    max-width: 900px;
    margin: 0 auto;
}

/* Dynamic 3-State Status Banner */
.status-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    border-radius: var(--radius-md);
    margin-bottom: 32px;
    transition: var(--transition);

    &.banner-ok {
        background: rgba(0, 230, 118, 0.08);
        border: 1px solid rgba(0, 230, 118, 0.25);

        .banner-icon {
            background: var(--green);
            color: #000;
        }
    }

    &.banner-warning {
        background: rgba(255, 177, 66, 0.08);
        border: 1px solid rgba(255, 177, 66, 0.25);

        .banner-icon {
            background: var(--yellow);
            color: #000;
        }
    }

    &.banner-danger {
        background: rgba(255, 82, 82, 0.08);
        border: 1px solid rgba(255, 82, 82, 0.25);

        .banner-icon {
            background: var(--red);
            color: #FFF;
        }
    }
}

.banner-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 18px;
    flex-shrink: 0;
}

.banner-text {
    h3 {
        font-size: 16px;
        font-weight: 700;
        color: var(--text-main);
        margin-bottom: 4px;
    }

    p {
        font-size: 13px;
        color: var(--text-muted);

        strong {
            color: var(--text-main);
        }
    }
}

/* System Metrics Summary Card */
.metrics-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 40px;
}

.metrics-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 20px;
}

.m-title {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--text-dim);
}

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

.metric-box {
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 16px;
    border-radius: var(--radius-md);
}

.m-label {
    font-size: 11px;
    color: var(--text-dim);
    margin-bottom: 6px;
}

.m-val {
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main);

    &.green-txt {
        color: var(--green);
    }
}

.uptime-section-title {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--text-dim);
    margin-bottom: 16px;
}

/* Discord Status Style Uptime Bars */
.uptime-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 48px;
}

.uptime-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 20px 24px;
}

.uptime-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.u-info {
    display: flex;
    flex-direction: column;
}

.u-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
}

.u-ping {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-dim);
}

.u-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Modern Status Indicator Pill Variations with SVG Icons */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 700;
    transition: var(--transition);
}

/* 1. Online / Operational State (Checkmark SVG) */
.status-pill.status-ok {
    background: rgba(0, 230, 118, 0.1);
    border: 1px solid rgba(0, 230, 118, 0.25);
    color: var(--green);

    svg {
        stroke: var(--green);
    }
}

/* 2. Warning / High Ping State 300+ ms (Warning Triangle SVG ⚠️) */
.status-pill.status-warn {
    background: rgba(255, 177, 66, 0.12);
    border: 1px solid rgba(255, 177, 66, 0.3);
    color: var(--yellow);

    svg {
        stroke: var(--yellow);
    }
}

/* 3. Offline / Strikethrough Server State (Off Server SVG) */
.status-pill.status-down {
    background: rgba(255, 82, 82, 0.12);
    border: 1px solid rgba(255, 82, 82, 0.3);
    color: var(--red);

    svg {
        stroke: var(--red);
    }
}

.u-online {
    font-size: 13px;
    color: var(--text-muted);

    strong {
        font-family: var(--font-mono);
        color: var(--text-main);
    }
}

/* Discord Status Uptime Bars Bar Array */
.uptime-bars {
    display: flex;
    gap: 4px;
    align-items: center;
    height: 36px;
    margin-bottom: 8px;
}

.bar {
    flex-grow: 1;
    height: 100%;
    background: var(--green);
    border-radius: 3px;
    opacity: 0.85;
    transition: var(--transition);
    cursor: pointer;

    &:hover {
        opacity: 1;
        transform: scaleY(1.15);
    }
}

.uptime-foot {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-dim);
    font-weight: 600;
}

/* Bar Hover Tooltip */
.bar-tooltip {
    position: fixed;
    background: #1C1F26;
    color: #FFF;
    border: 1px solid var(--card-border);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    pointer-events: none;
    z-index: 1000;
    opacity: 0;
    transform: translate(-50%, -100%);
    transition: opacity 0.12s ease, transform 0.12s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);

    &.visible {
        opacity: 1;
        transform: translate(-50%, -125%);
    }
}

/* Incident History */
.incident-history-box {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 28px;
}

.incidents-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
}

.incident-empty {
    font-size: 14px;
    color: var(--text-dim);
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
    border: 1px dashed rgba(255, 255, 255, 0.08);
}

/* Rules Page Layout & Sticky Sidebar */
.rules-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px;
    align-items: start;
}

.sticky-sidebar {
    position: sticky;
    top: 90px;
    align-self: start;
}

.rules-sidebar {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rule-tab-button {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--card-bg);
    color: var(--text-muted);
    border: 1px solid var(--card-border);
    padding: 14px 18px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    transition: var(--transition);

    &:hover, &.active {
        background: var(--card-hover);
        color: var(--text-main);
        border-color: rgba(255, 255, 255, 0.15);
    }

    &.active {
        border-color: var(--pink);
        color: var(--pink);
        background: rgba(var(--pink-rgb), 0.08);

        .nav-icon {
            background: rgba(var(--pink-rgb), 0.15);
            color: var(--pink);
        }
    }
}

.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: var(--text-muted);
    transition: var(--transition);
}

.rules-body {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    padding: 36px;
}

.rule-tab-panel {
    display: none;

    &.active {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }
}

.section-subhead {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

/* STRICT FIXED GRID LAYOUT: 60px badge column + 1fr content column to prevent ANY layout shift */
.rule-card {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 18px;
    align-items: start;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);

    &:last-child {
        padding-bottom: 0;
        border-bottom: none;
    }
}

/* Perfectly Vertically & Horizontally Centered Rule Number Badge */
.rule-badge {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    color: var(--pink);
    background: rgba(var(--pink-rgb), 0.1);
    border: 1px solid rgba(var(--pink-rgb), 0.2);
    width: 60px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    white-space: nowrap;
    text-align: center;
    padding-top: 2px;
}

.rule-content {
    h4 {
        font-size: 16px;
        font-weight: 700;
        margin-bottom: 6px;
    }

    p {
        font-size: 14px;
        color: var(--text-muted);
        margin-bottom: 8px;
    }
}

.penalty-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 6px;

    &.danger { background: rgba(255, 82, 82, 0.12); color: #ff5252; }
    &.warning { background: rgba(255, 177, 66, 0.12); color: #ffb142; }
    &.info { background: rgba(0, 210, 255, 0.12); color: #00d2ff; }
}

/* Footer Links Buttons */
.footer-link-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: inherit;
    text-align: left;
    padding: 0;
    cursor: pointer;
    transition: var(--transition);

    &:hover {
        color: var(--pink);
    }
}

/* Compact Low-Profile Footer (Fixed to bottom, zero protrusion) */
.footer {
    margin-top: auto;
    background: #060708;
    border-top: 1px solid var(--card-border);
    padding: 16px 0;
    width: 100%;
}

.footer-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

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

.brand-logo-sm {
    width: 24px;
    height: 24px;
    border-radius: 6px;
}

.brand-name-sm {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 800;
}

.f-copy-txt {
    font-size: 12px;
    color: var(--text-dim);
}

.f-nav-compact {
    display: flex;
    align-items: center;
    gap: 18px;

    a {
        font-size: 13px;
        color: var(--text-muted);

        &:hover {
            color: var(--pink);
        }
    }
}

/* Comprehensive Smartphone & Mobile Responsiveness (<768px, <480px) */
@media (max-width: 768px) {
    .nav-menu, .header-shop-btn {
        display: none !important;
    }

    .mobile-nav-toggle {
        display: flex !important;
    }

    .container {
        padding: 0 16px;
    }

    .page-container {
        padding-top: 90px;
        padding-bottom: 40px;
    }

    /* Hero Section Mobile */
    .hero-section {
        padding-top: 100px;
        padding-bottom: 40px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .hero-heading {
        font-size: 32px;
        line-height: 1.2;
        letter-spacing: -0.8px;
        margin-bottom: 16px;
    }

    .hero-lead {
        font-size: 16px;
        margin-bottom: 24px;
    }

    .ip-card {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 14px;
        max-width: 100%;
    }

    .ip-btn {
        width: 100%;
        justify-content: center;
    }

    .hero-cta-group {
        flex-direction: column;
        width: 100%;

        .btn {
            width: 100%;
        }
    }

    .skin-free-wrap {
        height: 340px;
    }

    /* Rules Layout Mobile */
    .rules-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .sticky-sidebar {
        position: static;
    }

    .rules-sidebar {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;

        &::-webkit-scrollbar {
            height: 4px;
        }

        &::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.15);
            border-radius: 4px;
        }
    }

    .rule-tab-button {
        flex-shrink: 0;
        white-space: nowrap;
        padding: 10px 14px;
        font-size: 13px;
    }

    .rules-body {
        padding: 20px 16px;
    }

    .rule-card {
        grid-template-columns: 48px 1fr;
        gap: 12px;
    }

    .rule-badge {
        width: 48px;
        height: 36px;
        font-size: 12px;
    }

    /* Status Page Mobile */
    .title-xl {
        font-size: 26px;
    }

    .status-banner {
        flex-direction: column;
        text-align: center;
        padding: 16px;
        gap: 10px;
    }

    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .uptime-card {
        padding: 16px;
    }

    .uptime-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .u-right {
        width: 100%;
        justify-content: space-between;
    }

    .footer-compact {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .f-brand-line {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .f-nav-compact {
        flex-wrap: wrap;
        gap: 12px 16px;
    }
}
