/* =========================================================
   BLACK ICE THEME VARIABLES
========================================================= */
:root {
    --bg-deep: #0b0d12;
    --bg-card: rgba(20, 25, 35, 0.85); /* Darker, slightly transparent */
    --ice-cyan: #00f2ff;
    --ice-blue: #0f4c75;
    --ice-white: #e0f7fa;
    --text-muted: #8faab5;
    --danger-red: #ff4757;
    --warning-yellow: #f1c40f;
    --worker-orange: #f39c12;
}

/* =========================================================
   GLOBAL RESET & BASE
========================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", sans-serif;
}

body {
    /* Black Ice Background: Deep Blue/Black Gradient */
    background: 
        radial-gradient(circle at 50% 0%, #1b263b 0%, transparent 60%),
        linear-gradient(135deg, #0b0d12 0%, #050505 100%);
    background-color: var(--bg-deep);
    color: var(--ice-white);
    min-height: 100vh;
}


/* =========================================================
   NAVIGATION
========================================================= */
nav {
    background: rgba(11, 13, 18, 0.95);
    padding: 15px;
    display: flex;
    justify-content: center;
    gap: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    border-bottom: 1px solid rgba(0, 242, 255, 0.1);
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s, text-shadow 0.3s;
}

nav a:hover {
    color: var(--ice-cyan);
    text-shadow: 0 0 8px var(--ice-cyan);
}


/* =========================================================
   ANNOUNCEMENTS
========================================================= */
.announcements {
    display: none;
}

.announcements.announcement-active {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;

    padding: 14px;
    font-weight: 700;
    text-align: center;

    background: linear-gradient(90deg, #4b0000, #7a0000);
    color: #ffb3b3;
    border-bottom: 1px solid #330000;

    animation: announcePulse 2.5s infinite;
}

.announcement-icon {
    font-size: 1.1rem;
}

@keyframes announcePulse {
    0%   { box-shadow: 0 0 0 rgba(0, 242, 255, 0.1); }
    50%  { box-shadow: 0 0 16px rgba(0, 242, 255, 0.3); }
    100% { box-shadow: 0 0 0 rgba(0, 242, 255, 0.1); }
}


/* =========================================================
   MAIN GRID LAYOUT
========================================================= */
.main-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 25px;
    padding: 40px;
    align-items: start;
    max-width: 1600px; /* Optional: keeps it from getting too wide on huge screens */
    margin: 0 auto;
}

.main-grid > * {
    min-width: 0;
}

#admins,
#blacklist {
    min-height: 850px;
}


/* =========================================================
   CARDS & BOXES
========================================================= */
.card {
    background: var(--bg-card);
    /* Glassmorphism blur */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    
    border-radius: 14px;
    padding: 30px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
    
    animation: fadeIn 1s ease;
}

.side-box {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);

    animation: slideUp 0.8s ease;
}

.side-box h2, .card h2 {
    margin-bottom: 15px;
    color: var(--ice-cyan);
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.3);
}


/* =========================================================
   CENTER CONTENT STACK
========================================================= */
.center-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}


/* =========================================================
   WELCOME CARD
========================================================= */
.welcome-card {
    text-align: center;
    padding: 45px 35px;
    /* Darker gradient */
    background: linear-gradient(180deg, rgba(20, 25, 35, 0.8), rgba(11, 13, 18, 0.9));
}

.welcome-card h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #ffffff;
    text-shadow: 0 0 10px var(--ice-cyan);
}

.welcome-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
}


/* =========================================================
   DISCORD CTA
========================================================= */
.discord-cta {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.discord-big-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 18px 42px;
    font-size: 1.2rem;
    font-weight: 700;

    /* R6S / Discord Blend */
    background: linear-gradient(135deg, #5865F2, #00C7D4);
    color: #fff;
    text-decoration: none;

    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 199, 212, 0.3);

    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.discord-big-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 0 25px var(--ice-cyan);
}

.discord-big-btn:active {
    transform: scale(0.98);
}


/* =========================================================
   LIST BASE STYLES
========================================================= */
ul {
    list-style: none;
    padding-left: 0;
}

li {
    margin-bottom: 8px;
    color: #ccc;
}


/* =========================================================
   ADMINS
========================================================= */
/* STAFF COLOR MODES */
.staff-admins li {
    color: var(--ice-cyan);
    text-shadow: 0 0 6px rgba(0, 242, 255, 0.6);
}

.staff-workers li {
    color: var(--worker-orange);
    text-shadow: 0 0 6px rgba(243, 156, 18, 0.6);
}


/* ================= STAFF INFO BOX ================= */
.staff-info {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    margin: 12px 0 16px 0;
    padding: 14px 16px;
    border-left: 4px solid;
    border-radius: 6px;

    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Icon - Invert colors to match theme using filter */
.info-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
    filter: invert(1) brightness(2);
}

/* Text */
.info-text {
    flex: 1;
    min-width: 0;
    word-break: normal;
}



/* ===== ADMINS (CYAN) ===== */
.info-admins {
    background: rgba(0, 242, 255, 0.08);
    border-left-color: var(--ice-cyan);
    color: #9ff3ee;
}

/* ===== WORKERS (ORANGE) ===== */
.info-workers {
    background: rgba(241, 156, 60, 0.15);
    border-left-color: var(--worker-orange);
    color: #ffd28a;
}


.staff-error {
    color: var(--danger-red);
    font-weight: 600;
    text-align: center;
    margin-top: 8px;
}

.staff-owner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;

    padding: 14px 16px;
    margin: 12px 0 14px 0;

    border-left: 4px solid;
    border-radius: 6px;

    font-weight: 700;
    font-size: 0.95rem;
}

/* ADMIN (blue / teal) */
#staff-owner.info-admins {
    background: rgba(0, 242, 255, 0.08);
    border-left-color: var(--ice-cyan);
    color: #9ff3ee;
}

/* WORKER (orange) */
#staff-owner.info-workers {
    background: rgba(241, 156, 60, 0.15);
    border-left-color: var(--worker-orange);
    color: #ffd28a;
}


.owner-icon {
    font-size: 1.2rem;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.owner-icon.swap {
    transform: rotate(180deg) scale(0.8);
    opacity: 0;
}

.owner-label {
    opacity: 0.85;
}

/* ===== RAINBOW OWNER NAME (COMPATIBLE) ===== */
.rainbow-owner {
    background: linear-gradient(
        90deg,
        #ff5f6d,
        #ffc371,
        #f9f871,
        #7cffcb,
        #5fa8ff,
        #b983ff,
        #ff5f6d
    );
    background-size: 400% 400%;

    /* Standard property */
    background-clip: text;

    /* WebKit fallback */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    animation: rainbowFlow 6s linear infinite;

    text-shadow:
        0 0 6px rgba(255,255,255,0.35),
        0 0 14px rgba(180,120,255,0.5);
}

@keyframes rainbowFlow {
    0%   { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}




.staff-owner .owner-name {
    color: #ffffff;
    text-shadow: 0 0 6px rgba(190, 120, 255, 0.7);
}

/* ===== OWNER GLOW ===== */
.glow-owner {
    color: #9adbd7;
    text-shadow:
        0 0 6px rgba(0, 242, 255, 0.8),
        0 0 16px rgba(0, 242, 255, 0.6);
}

.glow-manager {
    color: #ffd28a;
    text-shadow:
        0 0 6px rgba(243,156,18,0.9),
        0 0 16px rgba(243,156,18,0.6);
}

.staff-tooltip {
    position: absolute;
    top: 130%;
    left: 0;
    width: max-content;

    background: rgba(20,20,20,0.95);
    padding: 8px 12px;
    border-radius: 6px;

    font-size: 0.8rem;
    font-weight: 500;
    color: #ccc;

    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease;

    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

.staff-owner:hover .staff-tooltip {
    opacity: 1;
    transform: translateY(0);
}



/* Smooth pulsing glow */
@keyframes ownerGlow {
    0% {
        text-shadow:
            0 0 6px rgba(190, 120, 255, 0.6),
            0 0 12px rgba(142, 68, 173, 0.4);
    }
    50% {
        text-shadow:
            0 0 10px rgba(210, 155, 255, 0.9),
            0 0 20px rgba(142, 68, 173, 0.7),
            0 0 30px rgba(142, 68, 173, 0.4);
    }
    100% {
        text-shadow:
            0 0 6px rgba(190, 120, 255, 0.6),
            0 0 12px rgba(142, 68, 173, 0.4);
    }
}



/* ================= STAFF CONTROLS ================= */
.staff-controls {
    margin-bottom: 10px;
}

.staff-controls select {
    width: 100%;
    padding: 10px 12px;

    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);

    background: rgba(0, 0, 0, 0.5);
    color: var(--ice-cyan);
    font-size: 0.9rem;

    outline: none;
    cursor: pointer;
}

/* =========================================================
   PRICES (Original Layout, New Colors)
========================================================= */
#prices h3 {
    color: var(--ice-cyan);
    font-weight: 600;
    margin-bottom: 6px;
}

.price-item {
    display: block;
    color: var(--ice-cyan);
    font-weight: 600;
    line-height: 1.6;
    margin-bottom: 6px;
}

.pack-name {
    color: #fff;
    display: inline;
}

.price-sep {
    color: #555;
    margin: 0 5px;
    display: inline;
}

.price-value {
    color: var(--ice-cyan);
    text-shadow: 0 0 5px var(--ice-cyan);
    display: inline;
}

.price-meta {
    margin-left: 6px;
    font-size: 0.9rem;
    color: var(--text-muted);
    display: inline;
}

.wl {
    position: relative;
    padding-right: 26px;
    font-weight: 700;
}

.wl::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;

    background-image: url("images/worldlock.png");
    background-size: contain;
    background-repeat: no-repeat;
    
    /* Slightly cooler tone for WL if possible via filter, else keep gold */
    filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.6));
}

#prices ul li:hover {
    text-shadow: 0 0 6px var(--ice-cyan);
}

.price-warning {
    margin-top: 18px;
    padding: 14px 18px;
    border-left: 4px solid var(--warning-yellow);
    background: rgba(241, 196, 15, 0.1);
    color: var(--warning-yellow);
    font-weight: 600;
    border-radius: 6px;
    text-align: center;
}


/* =========================================================
   CALCULATOR
========================================================= */
#calculator {
    max-width: 100%;
    overflow: hidden;
}

#calculator h2 {
    text-align: center;
    margin-bottom: 20px;
}

.calc-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}

.calc-field {
    display: flex;
    flex-direction: column;
}

.calc-field label {
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: var(--text-muted);
}

.calc-field input {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.5);
    color: var(--ice-cyan);
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

.calc-field input:focus {
    border-color: var(--ice-cyan);
    box-shadow: 0 0 8px rgba(0, 242, 255, 0.3);
}

.calc-btn {
    margin-top: 20px;
    width: 100%;
    padding: 14px;
    font-size: 1.1rem;
    font-weight: 700;
    
    /* Transparent Ghost Button */
    background: transparent;
    border: 1px solid var(--ice-cyan);
    color: var(--ice-cyan);
    text-shadow: 0 0 5px var(--ice-cyan);
    
    border-radius: 10px;
    cursor: pointer;

    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s;
}

.calc-btn:hover {
    transform: translateY(-2px);
    background: var(--ice-cyan);
    color: #000;
    text-shadow: none;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.6);
}

.calc-result {
    margin-top: 18px;
    padding: 14px;
    border-radius: 8px;
    background: rgba(0, 242, 255, 0.1);
    border: 1px solid var(--ice-cyan);
    color: var(--ice-cyan);
    font-weight: 700;
    text-align: center;
    font-size: 1.1rem;
}

.calc-target {
    position: relative;
    top: -4px;
}

.calc-target label {
    margin-bottom: 4px;
}

/* ================= TARGET LEVEL INLINE BUTTON ================= */

.target-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lvl-preset {
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 700;

    border-radius: 6px;
    border: 1px solid var(--warning-yellow);
    cursor: pointer;

    background: transparent;
    color: var(--warning-yellow);

    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.lvl-preset:hover {
    transform: translateY(-1px);
    background: var(--warning-yellow);
    color: #000;
    box-shadow: 0 0 10px rgba(241, 196, 15, 0.4);
}

.lvl-preset:active {
    transform: scale(0.96);
}


/* ================= CALCULATOR INFO CALLOUT ================= */
.calc-info {
    margin-top: 14px;
    padding: 14px 18px;

    border-left: 4px solid var(--ice-blue);
    background: rgba(15, 76, 117, 0.2);

    color: #a8d8ff;
    font-weight: 600;
    font-size: 0.95rem;

    border-radius: 6px;
    text-align: center;

    box-shadow: 0 0 12px rgba(52, 152, 219, 0.15);
}

/* =========================================================
   PACK COST DISPLAY
========================================================= */
.calc-packs {
    margin-top: 16px;
    padding: 14px;
    border-radius: 10px;
    background: rgba(60, 60, 90, 0.35);
    color: #e0e0ff;
    font-weight: 600;
}

.pack-row {
    margin-top: 6px;
}

.pack-cost {
    color: #cfcfcf;
    font-weight: 500;
}

.pack-total {
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid #555;
    font-size: 1.1rem;
    color: var(--warning-yellow);
    display: flex;
    align-items: center;
    gap: 8px;
}

.coin-icon {
    width: 18px;
    height: 18px;
    vertical-align: middle;
}

.wl-icon {
    filter: drop-shadow(0 0 6px rgba(255,215,0,0.7));
}

.dl-icon {
    filter: drop-shadow(0 0 10px rgba(120,200,255,0.8));
}

.bgl-icon {
    filter: drop-shadow(0 0 12px rgba(40,120,255,0.9));
}


/* =========================================================
   BLACKLIST
========================================================= */

/* ================= BLACKLIST – HINT TEXT ================= */

#blacklist .hint-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    opacity: 0.85;
}


/* ================= BLACKLIST – LIST ITEMS ================= */

#blacklist ul li {
    color: var(--danger-red);
    font-weight: 600;
    text-shadow: 0 0 6px rgba(255, 71, 87, 0.5);
    border-bottom: 1px solid rgba(255, 71, 87, 0.1);
    padding: 4px 0;
    transition: transform 0.15s ease, opacity 0.15s ease;
}


/* ================= BLACKLIST – SCROLLING ================= */

#blacklist {
    max-height: 600px;
    overflow-y: auto;
}

/* Scrollbar (Chrome / Edge) - Blue Ice Style */
#blacklist::-webkit-scrollbar {
    width: 6px;
}

#blacklist::-webkit-scrollbar-track {
    background: transparent;
}

#blacklist::-webkit-scrollbar-thumb {
    background: var(--ice-blue);
    border-radius: 10px;
}

#blacklist::-webkit-scrollbar-thumb:hover {
    background: var(--ice-cyan);
}


/* ================= BLACKLIST – META INFO ================= */

.blacklist-meta {
    font-size: 0.85rem;
    color: var(--danger-red);
    margin-bottom: 10px;
    line-height: 1.4;
    font-weight: 600;
}

.blacklist-count {
    font-size: 0.9rem;
    color: var(--danger-red);
    margin-bottom: 6px;
    font-weight: 600;
}

#blacklist-updated {
    color: var(--text-muted);
    font-weight: 500;
}


/* ================= BLACKLIST – WARNING BOX ================= */

.blacklist-warning {
    margin: 12px 0 16px 0;
    padding: 14px 16px;

    border-left: 4px solid var(--danger-red);
    background: rgba(255, 71, 87, 0.1);

    color: #ff6b81;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.4;

    border-radius: 6px;
}

.warning-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}



/* ================= BLACKLIST – SEARCH & FILTER ================= */

#blacklist-search {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.5);
    color: var(--ice-cyan);
    font-size: 0.95rem;
    outline: none;
}

#blacklist-search::placeholder {
    color: #888;
}

#blacklist-search:focus {
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.4);
    border-color: var(--danger-red);
}


/* ================= BLACKLIST – CONTROLS LAYOUT ================= */

.blacklist-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}

.blacklist-controls input,
.blacklist-controls select {
    flex: 1;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.5);
    color: var(--ice-cyan);
    font-size: 0.9rem;
    max-width: 100% !important;
    outline: none;
}

.blacklist-controls select {
    max-width: 140px;
}

.blacklist-controls input::placeholder {
    color: #888;
}


/* ================= BLACKLIST – EMPTY STATE ================= */

.blacklist-empty {
    color: var(--danger-red);
    font-weight: 600;
    text-align: center;
    margin-top: 10px;
    opacity: 0.9;
}

/* =========================================================
   ANIMATIONS
========================================================= */
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}


/* =========================================================
   MOBILE OVERRIDES (KEPT EXACTLY AS ORIGINAL)
========================================================= */
@media (max-width: 900px) {

    .main-grid {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
    }

    .center-content,
    .side-box {
        width: 100%;
        margin-bottom: 20px;
    }

    .welcome-card { order: 1; }
    #prices       { order: 2; text-align: center; }
    #calculator   { order: 3; }
    #discord      { order: 4; }
    #admins       { order: 5; }
    #blacklist    { order: 6; max-height: none; }

    .price-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        margin-bottom: 16px;
    }

    .price-sep { display: none; }
        
    .blacklist-controls {
        flex-direction: row;
        align-items: center;
    }

    .blacklist-controls select {
        max-width: 140px;
    }

    .calc-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .calc-btn {
        margin-top: 16px;
    }

    .calc-info {
        font-size: 0.9rem;
        line-height: 1.4;
    }
}