:root {
    --bg-color: #0A0A0A;
    --card-bg: #141415;
    --header-bg: rgba(10, 10, 11, 0.98);
    --accent: #3B82F6;
    /* Electric Blue restored */
    /* Silver Accent */
    --accent-dim: #444444;
    /* Slate Accent */
    --text-main: #FFFFFF;
    --text-dim: #888888;
    --border: rgba(255, 255, 255, 0.05);
    --dim: #111;
    --grid-cols: 4;
}

.grid-cols-2 {
    --grid-cols: 2;
}

.grid-cols-4 {
    --grid-cols: 4;
}

.grid-cols-6 {
    --grid-cols: 6;
}

.grid-cols-8 {
    --grid-cols: 8;
}

.grid-cols-10 {
    --grid-cols: 10;
}

* {
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
}

*:focus {
    outline: none !important;
    box-shadow: none !important;
}


body {
    background-color: var(--bg-color);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* [HEADER] Cyber-Bunker Style */
header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 75px;
    background: var(--header-bg);
    backdrop-filter: blur(30px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    box-sizing: border-box;
    border-bottom: 1px solid var(--border);
}

.brand {
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 4px;
    color: var(--accent);
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pro-label {
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 2px;
    letter-spacing: 1px;
    font-weight: 950;
}

.controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

select,
.btn-sec {
    background: #09090A;
    color: #555;
    border: 1px solid #0f0f10 !important;
    padding: 10px 20px;
    font-size: 10px;
    font-weight: 900;
    outline: none !important;
    box-shadow: none !important;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: 0.4s cubic-bezier(0.2, 0, 0.2, 1);
    border-radius: 4px;
}

/* Premium Scrollbar */
::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: 0.3s;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Tooltip style - COMPACT & CENTERED */
.tooltip .tooltiptext {
    visibility: hidden;
    width: 140px;
    background-color: #0c0c0d;
    color: #fff;
    text-align: center !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 8px 10px;
    position: absolute;
    z-index: 999;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.2s;
    font-size: 10px;
    line-height: 1.3;
    font-weight: 500;
    pointer-events: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9);
    white-space: normal;
}

/* Custom Dropdown Styles */
.ark-dropdown {
    position: relative;
    display: inline-block;
}

.ark-drop-btn {
    background: #09090A;
    color: #555;
    border: 1px solid #1A1A1B !important;
    padding: 10px 35px 10px 20px;
    font-size: 10px;
    font-weight: 900;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 4px;
    min-width: 140px;
    text-align: left;
    position: relative;
    transition: 0.3s;
}

.ark-drop-btn::after {
    content: '▼';
    position: absolute;
    right: 12px;
    font-size: 8px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.3;
}

.ark-drop-content {
    display: none;
    position: absolute;
    background: #0c0c0d;
    min-width: 100%;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    z-index: 1000;
    margin-top: 5px;
    overflow: hidden;
}

.ark-drop-item {
    padding: 12px 20px;
    font-size: 10px;
    font-weight: 900;
    color: #555;
    cursor: pointer;
    transition: 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ark-drop-item:hover {
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
}

.ark-drop-item.selected {
    color: var(--accent);
    background: rgba(59, 130, 246, 0.05);
}

.ark-dropdown.active .ark-drop-content {
    display: block;
    animation: dropFade 0.2s ease-out;
}

@keyframes dropFade {
    from {
        opacity: 0;
        transform: translateY(-5%)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.btn-sec {
    background: #09090A;
    color: #555;
    border: 1px solid #1A1A1B !important;
    padding: 10px 20px;
    font-size: 10px;
    font-weight: 900;
    outline: none !important;
    box-shadow: none !important;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: 0.4s cubic-bezier(0.2, 0, 0.2, 1);
    border-radius: 4px;
}

.btn-main {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 900;
    cursor: pointer;
    transition: 0.3s;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.btn-main:hover {
    filter: brightness(1.2);
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

/* [PREMIUM TEASER] */
#premium-teaser {
    position: fixed;
    top: 75px;
    width: 100%;
    background: #000;
    border-bottom: 1px solid #111;
    padding: 6px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 900;
    box-sizing: border-box;
}

#premium-teaser .teaser-close {
    cursor: pointer;
    color: #fff !important;
    font-size: 16px;
    font-weight: 950;
    opacity: 1;
    transition: 0.3s;
    background: rgba(255, 255, 255, 0.1);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

#premium-teaser .teaser-close:hover {
    background: var(--accent);
    color: #fff !important;
}

.teaser-text {
    font-size: 9px;
    font-weight: 800;
    color: #444;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.teaser-text span {
    color: var(--accent);
}

/* [PREMIUM AUTH INPUTS] */
.auth-field-group {
    margin-bottom: 20px;
    position: relative;
}

.auth-field-label {
    display: block;
    font-size: 10px;
    font-weight: 950;
    color: var(--accent);
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.auth-input-wrapper {
    position: relative;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    transition: 0.3s;
}

.auth-input-wrapper:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.premium-input {
    width: 100%;
    background: transparent;
    border: none;
    padding: 15px;
    color: #fff;
    font-size: 13px;
    outline: none;
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
}

.premium-input::placeholder {
    color: #333;
}

.input-hint {
    font-size: 9px;
    margin-top: 5px;
    letter-spacing: 1px;
    height: 12px;
    font-weight: 700;
}

.auth-error-hint {
    font-size: 10px;
    margin-top: 10px;
    color: #ff4444;
    font-weight: 900;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 1px;
    display: none;
}

/* [AUTH GATE OVERHAUL] */

.gate-header {
    text-align: center;
    margin-bottom: 40px;
}

.gate-title {
    font-size: 18px;
    font-weight: 950;
    letter-spacing: 6px;
    margin-bottom: 5px;
    color: #fff;
}

.gate-subtitle {
    font-size: 10px;
    color: #555;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.benefit-list {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 40px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 10px;
    color: #888;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.benefit-item span {
    color: var(--accent);
}

.auth-toggle {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-bottom: 30px;
}

.auth-toggle-btn {
    background: none;
    border: none;
    color: #333;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 2px;
    cursor: pointer;
    padding-bottom: 8px;
    border-bottom: 2px solid transparent;
    transition: 0.3s;
}

.auth-toggle-btn.active {
    color: #fff;
    border-bottom-color: var(--accent);
}

.tos-row {
    margin: 20px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 10px;
    color: #555;
    line-height: 1.4;
    cursor: pointer;
}

.tos-row input {
    margin-top: 2px;
}

.forgot-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    font-size: 10px;
    color: #444;
    text-decoration: none;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s;
}

.forgot-link:hover {
    color: #888;
}

/* [GRID] Standard 4-Column */
.grid {
    display: grid;
    grid-template-columns: repeat(var(--grid-cols), 1fr);
    gap: 12px;
    padding: 120px 40px 40px;
    max-width: 1600px;
    margin: 0 auto;
}

@media (max-width: 1200px) {
    .grid {
        grid-template-columns: repeat(min(var(--grid-cols), 4), 1fr);
        padding: 120px 20px 40px;
    }
}

@media (max-width: 800px) {
    .grid {
        grid-template-columns: repeat(2, 1fr) !important;
        padding: 120px 15px 40px;
    }
}

#restore-nav {
    display: none;
}

.item {
    background: var(--card-bg);
    border: 1px solid var(--border);
    aspect-ratio: 2/3;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    transition: 0.4s cubic-bezier(0.2, 0, 0.2, 1);
}

.item:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.item img,
.item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.85);
    transition: 0.6s;
}

.item:hover img,
.item:hover video {
    filter: brightness(1.1);
    transform: scale(1.03);
}

.video-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 1px;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.source-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 1px;
    z-index: 10;
    text-transform: uppercase;
}

.badge-yume {
    background: rgba(139, 92, 246, 0.8);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.badge-sankaku {
    background: rgba(234, 179, 8, 0.8);
    color: #000;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* [THE VAULT PANEL] */
#vault-panel {
    position: fixed;
    top: 85px;
    right: 20px;
    width: 380px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    background: rgba(10, 10, 11, 0.95);
    backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1500;
    padding: 30px;
    /* Restored padding */
    border-radius: 12px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
    animation: panelSlide 0.4s cubic-bezier(0.2, 0, 0.2, 1);
}

@keyframes panelSlide {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.02);
    padding: 5px;
    margin: 15px;
    border-radius: 8px;
    gap: 5px;
}

.tab-btn {
    flex: 1;
    padding: 10px 0;
    font-size: 10px;
    font-weight: 900;
    color: #555;
    cursor: pointer;
    text-align: center;
    letter-spacing: 1px;
    border-radius: 6px;
    text-transform: uppercase;
    transition: 0.3s;
}

.tab-btn:hover {
    color: #888;
}

.tab-btn.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.tab-content {
    display: none;
    padding: 10px 25px 30px 25px;
}

.tab-content.active {
    display: block;
}

.log-entry {
    margin-bottom: 8px;
    border-bottom: 1px solid #0D0D0E;
    padding-bottom: 4px;
}

/* [MODAL] */
#modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(25px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.m-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90vw;
}

.m-media {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 4px;
}

.m-meta {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: 0.2s;
}

.toggle-row:last-child {
    border-bottom: none;
}

.toggle-row span {
    font-size: 11px;
    font-weight: 700;
    color: #aaa;
    letter-spacing: 0.5px;
}

.section-title {
    font-size: 10px;
    font-weight: 900;
    color: var(--accent);
    margin: 30px 0 20px 0;
    letter-spacing: 2px;
    border-left: 3px solid var(--accent);
    padding-left: 15px;
    text-transform: uppercase;
}

.creator-link {
    color: #fff;
    font-weight: 900;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    border-bottom: 1px solid var(--accent);
    padding-bottom: 2px;
}

.dl-bit-btn {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 10px 25px;
    font-size: 10px;
    font-weight: 900;
    border-radius: 4px;
    cursor: pointer;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

.dl-bit-btn:hover {
    background: #4a91ff;
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

/* [NOTIFICATIONS] replaces alert() */
#notify-bar {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    color: #000;
    padding: 15px 40px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    z-index: 10000;
    transition: 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 15px;
}

#notify-bar.active {
    top: 30px;
}

/* [FILTER BAR] */
.filter-bar {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 15px 0;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 20px;
    backdrop-filter: blur(15px);
    position: sticky;
    top: 75px;
    z-index: 850;
}

.filter-item {
    font-size: 10px;
    font-weight: 900;
    color: #444;
    cursor: pointer;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: 0.3s;
    padding: 8px 15px;
    border-radius: 4px;
}

.filter-item:hover,
.filter-item.active {
    color: #fff;
}

.filter-item.active {
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* [MODAL NAVIGATION] */
.m-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: #fff;
    width: 50px;
    height: 80px;
    cursor: pointer;
    font-size: 20px;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    backdrop-filter: blur(10px);
    z-index: 2005;
}

.m-nav-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.m-prev {
    left: -70px;
}

.m-next {
    right: -70px;
}

.star-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #444;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.3s;
}

.star-btn.active {
    color: #fbbf24;
    border-color: #fbbf24;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.4);
}

/* [ARCHIVE TAB STYLES] */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.archive-item {
    aspect-ratio: 1;
    background: #111;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.archive-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: 0.3s;
}

.archive-item:hover img {
    opacity: 1;
}

.follow-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 30px;
}

.follow-entry {
    background: rgba(255, 255, 255, 0.02);
    padding: 12px 15px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.follow-entry b {
    color: #fff;
    letter-spacing: 1px;
}

#h-count {
    position: fixed;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    font-weight: 950;
    color: #fff;
    letter-spacing: 2px;
    z-index: 5100;
    background: rgba(0, 0, 0, 0.8);
    padding: 5px 15px;
    border-radius: 20px;
    border: 1px solid #222;
    display: none;
}

/* SECURITY ASSURANCE STYLES */
/* ACCOUNT DASHBOARD */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 25px;
}

.stat-card {
    background: #09090A;
    border: 1px solid #1A1A1B;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
}

.stat-val {
    display: block;
    font-size: 20px;
    font-weight: 200;
    color: #fff;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 8px;
    color: #444;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.security-status {
    font-size: 9px;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.status-dot {
    height: 4px;
    width: 4px;
    background: #22c55e;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px #22c55e;
}

.tooltip-container {
    position: relative;
    cursor: help;
}

.tooltip-text {
    visibility: hidden;
    width: 220px;
    background-color: #000;
    color: #fff;
    text-align: left;
    border: 1px solid var(--accent);
    padding: 12px;
    border-radius: 4px;
    position: absolute;
    z-index: 5000;
    bottom: 125%;
    left: 50%;
    margin-left: -110px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 10px;
    line-height: 1.5;
    box-shadow: 0 10px 40px #000;
    font-weight: 400;
    text-transform: none;
}

.tooltip-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* NOTIFICATIONS & FOLLOW */
.icon-wrap {
    position: relative;
    cursor: pointer;
    opacity: 0.6;
    transition: 0.3s;
    display: flex;
    align-items: center;
    padding: 5px;
}

.icon-wrap:hover {
    opacity: 1;
    transform: scale(1.1);
}

.badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ff0000;
    color: #fff;
    font-size: 8px;
    font-weight: 900;
    padding: 2px 4px;
    border-radius: 50%;
    min-width: 10px;
    text-align: center;
    border: 1px solid #000;
    display: none;
}

#notice-panel {
    display: none;
    position: fixed;
    top: 75px;
    right: 40px;
    width: 300px;
    background: rgba(8, 8, 8, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid #111;
    z-index: 9999;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 50px 100px #000;
}

.notice-item {
    padding: 12px;
    border-bottom: 1px solid #111;
    font-size: 10px;
    color: #888;
    cursor: pointer;
    transition: 0.3s;
}

.notice-item:hover {
    background: rgba(255, 255, 255, 0.02);
    color: #fff;
}

.notice-item b {
    color: var(--accent);
    display: block;
    margin-bottom: 4px;
}

.f-btn {
    background: transparent;
    color: #666;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    font-size: 10px;
    font-weight: 900;
    cursor: pointer;
    letter-spacing: 1px;
    transition: 0.3s;
    border-radius: 4px;
    text-transform: uppercase;
}

.f-btn:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

/* [PREMIUM ENHANCEMENTS] */
.membership-card {
    background: #000;
    border: 1px solid #222;
    padding: 30px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 25px;
}

.pack-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 30px;
}

.pack-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 12px 10px;
    border-radius: 8px;
    text-align: center;
    transition: 0.3s cubic-bezier(0.2, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
}

.pack-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.pack-card.locked-btn {
    opacity: 0.4;
}

.pack-card.locked-btn:hover {
    opacity: 0.6;
    transform: none;
}

.pack-num {
    display: block;
    font-size: 16px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 2px;
}

.pack-label {
    display: block;
    font-size: 8px;
    color: #555;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.custom-pack {
    grid-column: span 2;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    display: flex;
    padding: 5px;
    align-items: center;
}

.custom-pack input {
    background: transparent;
    border: none;
    color: #fff;
    padding: 10px;
    width: 100%;
    font-family: inherit;
    font-weight: 900;
    font-size: 14px;
    text-align: center;
}

.custom-pack button {
    background: #fff;
    color: #000;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    font-weight: 900;
    font-size: 10px;
    cursor: pointer;
    text-wrap: nowrap;
}

.status-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    margin-top: 10px;
}

.status-label {
    font-size: 9px;
    font-weight: 950;
    color: #333;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.status-dot {
    width: 4px;
    height: 4px;
    background: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 8px #00ff88;
}

/* Tooltip style */
.tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 260px;
    background-color: #0c0c0d;
    color: #fff;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 15px;
    position: absolute;
    z-index: 999;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    font-size: 11px;
    line-height: 1.5;
    font-weight: 500;
    letter-spacing: 0.2px;
    pointer-events: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9);
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.action-cluster {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* CYBER SWITCH */
.switch {
    position: relative;
    display: inline-block;
    width: 38px;
    height: 20px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #1a1a1b;
    transition: .4s;
    border-radius: 20px;
    border: 1px solid #333;
}

.slider:before {
    position: absolute;
    content: "";
    height: 12px;
    width: 12px;
    left: 3px;
    bottom: 3px;
    background-color: #444;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--accent);
    border-color: var(--accent);
}

input:checked+.slider:before {
    transform: translateX(18px);
    background-color: #fff;
}

/* ACTIONS */
.btn-group {
    display: flex;
    gap: 10px;
    margin-top: 40px;
}

.btn-action {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #888;
    padding: 15px;
    font-size: 10px;
    font-weight: 900;
    border-radius: 6px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
}

.btn-action:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.1);
}

.btn-danger-sec {
    color: #633;
    border-color: #311;
}

.btn-danger-sec:hover {
    background: #211;
    color: #f55;
    border-color: #633;
}

/* CUSTOM CONTROLS */
.premium-select {
    background: #000;
    color: #fff;
    border: 1px solid #222;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    outline: none;
}

.premium-select:focus {
    border-color: var(--accent);
}

#sentinel {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #222;
    font-weight: 900;
    letter-spacing: 5px;
    font-size: 10px;
}

#h-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.1);
    display: none;
}

#h-bar {
    height: 100%;
    background: #fff;
    width: 0%;
    transition: width 0.1s linear;
}

.pack-list-item {
    transition: all 0.2s;
    border-bottom: 1px solid #111;
}

.pack-list-item:hover {
    background: #111;
    padding-left: 10px !important;
    color: #fff !important;
}