/* ===============================
   HEADER (Burn-style for Staking)
   =============================== */

.burn-header {
    padding: 24px 24px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.burn-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.burn-logo-image {
    height: 32px;
    width: auto;
    display: block;
}

@media (min-width: 768px) {
    .burn-logo-image {
        height: 36px;
    }
}

.burn-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #fff;
}

.burn-title-highlight {
    color: #facc15;
}

.burn-header-right {
    display: flex;
    align-items: center;
}

/* Account box (Burn-style) */
.burn-account-box {
    position: relative;
    z-index: 20; /* keep above content */
}

.burn-account-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(23, 23, 23, 0.9);
    border-radius: 999px;
    border: 1px solid rgba(234, 179, 8, 0.4);
    padding: 6px 8px 6px 12px;
    cursor: pointer;
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}

.burn-account-toggle:hover {
    border-color: rgba(250, 204, 21, 0.7);
    box-shadow: 0 0 15px rgba(234, 179, 8, 0.25);
    transform: translateY(-1px);
}

.burn-account-text {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.1;
}

.burn-account-label {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #9ca3af;
}

.burn-account-address {
    font-size: 13px;
    font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    color: #facc15;
    font-weight: 600;
}

.burn-account-chevron {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: 1px solid #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #9ca3af;
    background: radial-gradient(circle at 30% 0, #111827, #020617);
}

/* Rotate chevron when open */
.burn-account-box.open .burn-account-chevron svg {
    transform: rotate(180deg);
    transition: transform 0.2s ease;
}

/* Dropdown */
.burn-account-dropdown {
    position: absolute;
    right: 0;
    margin-top: 10px;
    width: 220px;
    background: rgba(10, 10, 10, 0.98);
    border-radius: 12px;
    border: 1px solid rgba(234, 179, 8, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    backdrop-filter: blur(16px);
    transform-origin: top right;
    transform: scale(0.95) translateY(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.burn-account-box.open .burn-account-dropdown {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto;
}

.burn-dropdown-item {
    width: 100%;
    background: transparent;
    border: none;
    padding: 9px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #e5e7eb;
    font-size: 13px;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s, color 0.15s;
}

.burn-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #facc15;
}

.burn-dropdown-danger {
    color: #f97373;
}

.burn-dropdown-danger:hover {
    background: rgba(248, 113, 113, 0.12);
}

.burn-dropdown-separator {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin: 4px 0;
}

.burn-copy-status {
    font-size: 10px;
    background: #facc15;
    color: #000;
    padding: 2px 6px;
    border-radius: 999px;
    font-weight: 600;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.15s, transform 0.15s;
}

.burn-copy-status.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===============================
   NAV PILL (Burn-style)
   =============================== */

.burn-nav {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 28px;
}

.burn-nav-inner {
    display: flex;
    padding: 6px;
    border-radius: 24px;
    background: rgba(23, 23, 23, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
}

.burn-nav-btn {
    position: relative;
    border: none;
    outline: none;
    background: transparent;
    color: #9ca3af;
    padding: 8px 18px;
    border-radius: 16px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
    text-decoration: none;
}

.burn-nav-btn:hover {
    color: #e5e7eb;
    background: rgba(255, 255, 255, 0.04);
}

.burn-nav-btn-active {
    color: #000;
    font-weight: 700;
    box-shadow: 0 0 15px rgba(234, 179, 8, 0.3);
}

.burn-nav-btn-active .burn-nav-active-bg {
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: linear-gradient(90deg, #facc15, #eab308);
    z-index: -1;
}

.burn-nav-icon {
    font-size: 14px;
}

/* ===============================
   STAKING PAGE BODY
   =============================== */

.wallet-section {
    padding: 12px 24px 40px;
    max-width: 960px;
    margin: 0 auto;
}

.wallet-section h2 {
    font-size: 22px;
    letter-spacing: 0.14em;
    color: #f9fafb;
    margin-bottom: 18px;
}

/* --- Staking Box --- */
.staking-box {
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.95), rgba(10, 10, 10, 0.95));
    padding: 35px;
    border-radius: 18px;
    border: 1px solid rgba(255, 215, 0, 0.25);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.1), inset 0 0 30px rgba(255, 215, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.staking-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 35px rgba(255, 215, 0, 0.25), inset 0 0 40px rgba(255, 215, 0, 0.08);
}

/* --- Form Groups --- */
.staking-box .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 22px;
}

.staking-box label {
    font-size: 14px;
    color: #ffd700;
    font-weight: bold;
    letter-spacing: 0.5px;
    text-shadow: 0 0 6px rgba(255, 215, 0, 0.6);
}

.staking-box input,
.staking-box select {
    ppearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: #111 !important;
    color: #fff !important;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    font-size: 15px;
    outline: none;
    transition: border 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.staking-box input:focus,
.staking-box select:focus {
    border: 1px solid #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    transform: scale(1.02);
}

/* --- ROI Preview --- */
.stake-preview {
    margin: 20px 0;
    font-size: 14px;
    color: #bbb;
    text-align: center;
    background: rgba(255, 215, 0, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.15);
    padding: 12px;
    border-radius: 12px;
    box-shadow: inset 0 0 10px rgba(255, 215, 0, 0.05);
    animation: glowPulse 3s infinite;
}

.staking-box select option {
    background: #111;
    color: #fff;
}

.stake-preview span {
    color: #ffd700;
    font-weight: bold;
}

/* --- Stake Button --- */
.stake-btn {
    background: linear-gradient(90deg, #ffd700, #ffb700, #ffd700);
    border: none;
    padding: 16px;
    border-radius: 14px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    color: #000;
    letter-spacing: 0.5px;
    transition: transform 0.25s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
    width: 100%;
}

.stake-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.6);
}

/* --- Active Stakes List --- */
.staked-list {
    margin-top: 40px;
}

.staked-list h3 {
    color: #ffd700;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.25);
    padding-bottom: 8px;
    font-size: 17px;
    text-shadow: 0 0 6px rgba(255, 215, 0, 0.6);
}

.staked-list table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(20, 20, 20, 0.85);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.05);
}

.staked-list th,
.staked-list td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    font-size: 14px;
    color: #ddd;
}

.staked-list th {
    background: rgba(255, 215, 0, 0.08);
    color: #ffd700;
    font-weight: bold;
}

.staked-list tr:hover td {
    background: rgba(255, 215, 0, 0.05);
}

/* Only this wrapper scrolls horizontally */
.stake-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

/* Make table wide enough to need scroll on mobile, but keep it inside wrapper */
.stake-table-wrapper table {
    width: 100%;
    min-width: 720px; /* or whatever width you want for all columns */
    border-collapse: collapse;
}


/* --- Animations --- */
@keyframes glowPulse {
    0% { box-shadow: 0 0 8px rgba(255, 215, 0, 0.3); }
    50% { box-shadow: 0 0 16px rgba(255, 215, 0, 0.7); }
    100% { box-shadow: 0 0 8px rgba(255, 215, 0, 0.3); }
}

/* Claim button */
.claim-btn {
    background: linear-gradient(90deg, #4caf50, #45a049);
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 13px;
    cursor: pointer;
    color: #fff;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.claim-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.6);
}

.claim-btn.claimed {
    background: #777;
    cursor: not-allowed;
    box-shadow: none;
}

.pct-btn {
    background: black;
    border: none;
    padding: 8px 14px;
    border-radius: 25px;
    font-size: 13px;
    cursor: pointer;
    color: white;
}

/* Redeem button */
.redeem-btn {
    background: linear-gradient(90deg, #ffd700, #ffb700, #ffd700);
    border: none;
    padding: 8px 14px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 13px;
    cursor: pointer;
    color: #000;
    letter-spacing: 0.5px;
    box-shadow: 0 0 14px rgba(255, 215, 0, 0.7);
    transition: transform 0.2s ease, box-shadow 0.25s ease;
}

.redeem-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 0 22px rgba(255, 215, 0, 0.95);
}

.status-countdown {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 215, 0, 0.08);
    color: #ffd700;
    font-size: 12px;
    font-family: "SF Mono", ui-monospace, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    letter-spacing: 1px;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.4);
}

.stake-tab {
    background: none;
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: #ffd700;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.stake-tab.active {
    background: rgba(255, 215, 0, 0.1);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

.stake-tab:hover {
    background: rgba(255, 215, 0, 0.08);
}

/* --- Responsive adjustments for tables --- */
@media (max-width: 768px) {
    .wallet-section {
        padding: 12px 16px 32px;
    }

    .staking-box {
        padding: 20px;
    }

    .staked-list {
        overflow-x: auto;
    }

    .staked-list table {
        width: 700px;
        min-width: 600px;
    }

    .staked-list h3 {
        text-align: center;
    }

    .stake-tabs {
        flex-wrap: wrap;
        justify-content: center;
    }

    .stake-tab {
        flex: 1 1 30%;
        text-align: center;
    }
}

.stake-notice {
    position: relative;
    margin-top: 10px;
    display: flex;
    justify-content: center;
}

/* The [ ! ] button */
.stake-notice-trigger {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    border: 1px solid rgba(255, 215, 0, 0.7);
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #ffd700;
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.stake-notice-trigger:hover {
    transform: translateY(-1px) scale(1.05);
    box-shadow: 0 0 14px rgba(255, 215, 0, 0.8);
    background: #111;
}

.stake-notice-icon {
    display: block;
    line-height: 1;
}

/* Bubble */
.stake-notice-bubble {
    position: absolute;
    top: 120%;
    right: 50%;
    transform: translateX(50%) translateY(4px);
    max-width: 320px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid rgba(255, 215, 0, 0.8);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    font-size: 12px;
    color: #e5e7eb;
    text-align: left;
    z-index: 50;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.stake-notice-bubble.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(50%) translateY(0);
}

.stake-notice-bubble::before {
    content: "";
    position: absolute;
    top: -7px;
    right: 50%;
    transform: translateX(50%);
    border-width: 0 7px 7px 7px;
    border-style: solid;
    border-color: transparent transparent rgba(255, 215, 0, 0.8) transparent;
}

.stake-notice-title {
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 6px;
}

.stake-notice-bubble p {
    margin: 3px 0;
}

.stake-notice-bubble ul {
    margin: 4px 0 4px 16px;
    padding: 0;
}

.stake-notice-bubble li {
    margin-bottom: 2px;
}

.burn-footer-help {
    color: #facc15;
    text-decoration: none;
    font-weight: 600;
    margin-top: 4px;
    display: inline-block;
    transition: opacity 0.2s ease;
}

.burn-footer-help:hover {
    opacity: 0.8;
}

.burn-footer {
    margin-top: auto;
    padding: 18px 16px 24px;
    text-align: center;
    font-size: 11px;
    color: #6b7280;
    font-family: "JetBrains Mono", ui-monospace, monospace;
}