﻿:root {
    --bg: #070b18;
    --panel: #111736;
    --card: #161d44;
    --accent: #5b6cff;
    --success: #22c55e;
    --warn: #facc15;
    --danger: #ef4444;
    --text: #e5e7eb;
    --muted: #9ca3af;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #050608;
    color: #e2e8f0;
}

.gold-gradient {
    background: linear-gradient(135deg, #bf953f, #fcf6ba, #b38728);
}

.glass-card {
    background: #0f1115;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 1rem;
}

.stat-label {
    font-size: 10px;
    color: #64748b;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

input, select {
    background: rgba(255,255,255,0.03) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    color: white !important;
}

@media (max-width: 768px) {
    .responsive-table thead {
        display: none;
    }

    .responsive-table tr {
        display: block;
        margin-bottom: 1rem;
        padding: 1rem;
        background: rgba(255,255,255,0.02);
        border-radius: 12px;
    }

    .responsive-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0;
        border: none;
    }

        .responsive-table td::before {
            content: attr(data-label);
            font-size: 10px;
            text-transform: uppercase;
            color: #64748b;
            font-weight: 800;
        }
}

/* Image 1 Pattern Effect */
.elite-card {
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(15px);
    border-radius: 2.2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    padding: 2rem;
    box-shadow: none;
    transition: transform 0.3s ease;
}

    .elite-card:hover {
        transform: translateY(-5px);
        border-color: rgba(191,149,63,0.2);
    }

.side-accent {
    position: absolute;
    left: 0;
    top: 25%;
    bottom: 25%;
    width: 4px;
    border-radius: 0 10px 10px 0;
}

.glow-box {
    width: 65px;
    height: 65px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.yellow-glow {
    color: #facc15;
    box-shadow: inset 0 0 20px rgba(250, 204, 21, 0.15);
}

.blue-glow {
    color: #3b82f6;
    box-shadow: inset 0 0 20px rgba(59, 130, 246, 0.15);
}

input, select {
    background: #111 !important;
    border: 1px solid #333 !important;
    color: white !important;
    border-radius: 12px !important;
}

/* Mobile Table Style */
@media (max-width: 768px) {
    .responsive-table tr {
        display: block;
        margin-bottom: 1rem;
        padding: 1.5rem;
        background: rgba(255,255,255,0.02);
        border-radius: 1.5rem;
    }

    .responsive-table td {
        display: flex;
        justify-content: space-between;
        padding: 0.6rem 0;
        border: none;
    }

        .responsive-table td::before {
            content: attr(data-label);
            font-size: 10px;
            color: #71717a;
            font-weight: 800;
        }
}


.logo {
    font-size: 18px;
    font-weight: 700
}

.btn {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 9px 15px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
}

    .btn.outline {
        background: transparent;
        border: 1px solid var(--accent);
    }

.outline {
    outline-style: unset !important;
}

.btn:disabled {
    opacity: .5;
    cursor: not-allowed
}

.container {
    max-width: 1280px;
    margin: auto;
    padding: 18px
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
    gap: 16px;
}

.card {
    background: linear-gradient(180deg,#141b3e,#0f1536);
    border: 1px solid #202862;
    border-radius: 16px;
    padding: 16px;
}

    .card h4 {
        font-size: 12px;
        color: var(--muted);
        margin-bottom: 6px;
    }

    .card b {
        font-size: 22px
    }

.section {
    margin-top: 26px
}

.sub {
    font-size: 12px;
    color: var(--muted)
}

input, select {
    width: 100%;
    background: #0c1232;
    border: 1px solid #2a3370;
    color: #fff;
    padding: 11px;
    border-radius: 10px;
    margin-top: 8px;
}

table {
    width: 100%;
    border-collapse: collapse
}

th, td {
    padding: 11px 8px;
    font-size: 13px;
    border-bottom: 1px solid #232c6b;
    text-align: center;
}

th {
    color: var(--muted)
}

.badge {
    background: #444;
}

    .badge.ok {
        background: #22c55e;
        color: #000;
    }

.timer {
    font-weight: 600;
}

.progress {
    width: 100%;
    height: 6px;
    background: #1f2937;
    border-radius: 6px;
    margin-bottom: 10px;
}

    .progress .bar {
        height: 100%;
        background: linear-gradient(90deg,#22c55e,#4ade80);
        border-radius: 6px;
    }

.btn {
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
}

    .btn.ok {
        background: #22c55e;
        color: #000
    }

    .btn.gold {
        background: #facc15;
        color: #000
    }

.muted {
    color: #888
}

.badge.ok {
    background: #22c55e;
    padding: 4px 8px;
    border-radius: 6px;
}

@media(max-width:768px) {
    header {
        flex-direction: column;
        gap: 10px
    }

    .grid {
        grid-template-columns: 1fr
    }
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999; /* VERY IMPORTANT */
}

.modal-box {
    background: #0b1230;
    padding: 14px;
    border-radius: 14px;
    max-height: 95vh;
    overflow: auto;
}

    .modal-box img {
        display: block;
        max-width: 100%;
        height: auto;
    }

.swal2-popup.swal2-modal.swal2-icon-error.swal2-show {
    background: #000000;
    color: #ffffff;
}

.swal2-popup.swal2-modal.swal2-icon-warning.swal2-show, .swal2-popup.swal2-modal.swal2-icon-info.swal2-show {
    background: #000000;
    color: #ffffff;
}
.swal2-confirm.swal2-styled {
    background: #fbbf24 !important;
}
 

.swal2-popup.swal2-modal.swal2-icon-success.swal2-show {
    background: #000000;
    color: #ffffff;
}

.swal2-success-circular-line-left, .swal2-success-circular-line-right, .swal2-success-fix {
    background-color: #000000 !important;
}

.swal2-success-ring {
    border: .25em solid rgb(165 220 134) !important;
}


.stake-card {
    background: #0f172a; /* Dark Navy */
    border: 1px solid #1e293b;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}


.stake-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.stake-id {
    font-weight: 700;
    color: #818cf8;
    font-size: 1.1rem;
}

.stake-pct {
    color: #10b981;
    font-weight: 600;
    font-size: 0.9rem;
}


/* Mobile Card Style for #stakeCards */
#stakeCards {
    display: none;
}

@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr;
    }

    header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .table-container {
        display: none;
    }

    #stakeCards {
        display: block;
        margin: 15px 0px;
    }

    .mobile-stake-card {
        background: var(--panel);
        border: 1px solid var(--border);
        border-radius: 15px;
        padding: 15px;
        margin-bottom: 10px;
    }
}



/* 2-Column Grid for Main Stats */
.stake-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    background: rgba(255,255,255,0.03);
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 15px;
}

.grid-item .label {
    display: block;
    font-size: 0.65rem;
    color: #94a3b8;
    margin-bottom: 2px;
}

.grid-item .val {
    font-size: 0.85rem;
    font-weight: 600;
    color: #f8fafc;
}

/* Information Rows */
.stake-info {
    border-top: 1px solid #1e293b;
    padding-top: 12px;
    margin-bottom: 15px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    margin-bottom: 6px;
}

    .info-row span {
        color: #94a3b8;
    }

    .info-row b {
        color: #cbd5e1;
    }

.text-green {
    color: #10b981 !important;
}

/* Action Buttons Grid */
.stake-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* Status Text for Wait */
.muted {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1e293b;
    color: #94a3b8;
    border-radius: 10px;
    font-size: 0.8rem;
}

.stake-cards{
    margin-top:5px;
}

#stakeCards .stake-actions .btn.gold {
    display: block !important;
}