/* ONLY KEEP THE TOGGLE SWITCH CSS */
.toggle-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 15px; }
.toggle-item { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; background: rgba(0,0,0,0.2); border-radius: 8px; border: 1px solid rgba(255,255,255,0.05); }
.toggle-info h4 { font-size: 1rem; margin: 0 0 4px 0; color: white; }
.toggle-info p { color: #a0a0a0; font-size: 0.85rem; margin: 0; }

.switch { position: relative; display: inline-block; width: 50px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #333; transition: .4s; border-radius: 24px; }
.slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: #F0C040; }
input:checked + .slider:before { transform: translateX(26px); }

/* ==========================================================
   PODIUM GLOW & STYLING
   ========================================================== */
.podium-card {
    background: #1a1a24;
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.05);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.podium-card:hover {
    transform: translateY(-5px);
}

/* Rank 1 (Gold Glow) */
.podium-card.rank-1 {
    border-color: #F0C040;
    box-shadow: 0 0 25px rgba(240, 192, 64, 0.2);
    background: linear-gradient(180deg, rgba(26,26,36,1) 0%, rgba(240,192,64,0.05) 100%);
}

/* Rank 2 (Silver Glow) */
.podium-card.rank-2 {
    border-color: #C0C0C0;
    box-shadow: 0 0 20px rgba(192, 192, 192, 0.1);
}

/* Rank 3 (Bronze Glow) */
.podium-card.rank-3 {
    border-color: #CD7F32;
    box-shadow: 0 0 20px rgba(205, 127, 50, 0.1);
}

.rank-badge {
    position: absolute;
    top: -12px;
    padding: 4px 14px;
    border-radius: 20px;
    font-weight: 800;
    border: 2px solid #1a1a24;
    font-size: 0.9rem;
}

.rank-badge-1 { background: #F0C040; color: #000; }
.rank-badge-2 { background: #C0C0C0; color: #000; }
.rank-badge-3 { background: #CD7F32; color: #fff; }

.podium-avatar {
    width: 72px !important;
    height: 72px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    margin-bottom: 15px;
    border: 3px solid #1a1a24;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
/* ==========================================================
   GIVEAWAYS
   ========================================================== */
.giveaway-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.giveaway-card {
    background: #1a1a24;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
}

.giveaway-card.active {
    border-color: rgba(46, 204, 113, 0.3);
}

.giveaway-card.ended {
    opacity: 0.7;
}

.giveaway-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.giveaway-card h4 {
    font-size: 1.2rem;
    margin: 0 0 10px 0;
    color: white;
}

.giveaway-card p {
    color: #a0a0a0;
    font-size: 0.9rem;
    margin: 0 0 20px 0;
    flex-grow: 1;
}

.giveaway-actions {
    display: flex;
    gap: 10px;
}

.giveaway-actions .btn-small {
    flex: 1;
    text-align: center;
    justify-content: center;
    display: inline-flex;
    align-items: center;
}
/* --- Server List Grid --- */
.dashboard-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    width: 100%;
}

.dashboard-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.header-area {
    margin-bottom: 30px;
}

.header-area h2 {
    font-size: 2rem;
    margin: 0 0 5px 0;
    color: white;
}

.header-area p {
    color: #a0a0a0;
    margin: 0;
}

.server-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.server-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #1a1a24;
    padding: 15px;
    border-radius: 12px;
    text-decoration: none;
    color: white;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.2s ease;
}

.server-card:hover {
    border-color: #F0C040;
    background: #242433;
    transform: translateY(-2px);
}

.server-icon img, .icon-fallback {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.icon-fallback {
    background: #5865F2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
}

.server-info h3 {
    margin: 0;
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}