:root {
    --bg-dark: #050814;
    --card-bg: rgba(255, 255, 255, 0.03);
    --border-color: rgba(255, 255, 255, 0.08);
    --accent-purple: #7d61ff;
    --text-main: #ffffff;
    --text-dim: #94a3b8;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, sans-serif;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.staking-container {
    width: 100%;
    max-width: 1000px;
    padding: 20px;
}

.staking-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    padding: 60px;
    backdrop-filter: blur(10px);
}

/* Left Side Content */
.visual-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.video-wrapper {
    width: 280px;
    height: 280px;  
    padding-top: 6px;
    position: relative;
    /* background-color: #152545; */
    background: linear-gradient(180deg, #182847, #141f38);
    margin-bottom: 20px;
}

.main-asset {
    position: absolute;
    top: 0;
    left: 0;
    mix-blend-mode: screen;
    width: 100%;
    height: 100%;

}

h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
}

.learn-more {
    color: var(--accent-purple);
    text-decoration: none;
    font-size: 14px;
}

/* Right Side Stats */
.stats-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stat-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.label {
    color: var(--text-dim);
    font-size: 13px;
    margin-bottom: 8px;
}

.label-row {
    display: flex;
    justify-content: space-between;
}

.value {
    font-size: 20px;
    font-weight: 700;
}

.highlighting {
    color: #ffffff;
}

.sub-value {
    color: var(--text-dim);
    font-size: 12px;
    margin-top: 4px;
}

.currency-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mini-logo {
    width: 24px;
    height: 24px;
}

/* Action Button */
.stake-button {
    background-color: var(--accent-purple);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: opacity 0.2s;
}

.stake-button:hover {
    opacity: 0.9;
}

.info-icon {
    cursor: help;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .staking-card {
        grid-template-columns: 1fr;
        padding: 30px;
    }
}


:root {
    --bg-dark: #02050e;
    --card-bg: rgba(255, 255, 255, 0.03);
    --border-color: rgba(255, 255, 255, 0.1);
    --accent-purple: #6347f5;
    --text-main: #ffffff;
    --text-dim: #8e99af;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header Styles */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    width: 100%;
    max-width: 1280px;
    margin: auto;
    position: relative;
    z-index: 100;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo {
    width: 32px;
    height: 32px;
}

.brand-name {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: -1px;
}


.nav-links {
    display: flex;
    padding: 1rem 0;
    gap: 44px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: color 0.2s;
}

.nav-links a:hover {
    text-decoration: underline;
}

.connect-wallet {
    background: var(--accent-purple);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
}

/* Staking Card Main Layout */
.staking-container {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.staking-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    display: grid;
    grid-template-columns: 1fr 380px;
    width: 100%;
    max-width: 1000px;
    padding: 60px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* (Visual and Stats section styles from previous response remain the same) */

/* Footer Styles */
.main-footer {
    padding: 30px 40px;
    width: 100%;
    max-width: 1280px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.footer-logo {
    width: 24px;
    height: 24px;
    opacity: 0.8;
}

.footer-left a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 13px;
}

.footer-right {
    display: flex;
    gap: 20px;
}

.footer-right a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 13px;
}



/* --- STAKE MODAL BACKDROP --- */
    .stake-modal-backdrop {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(4, 7, 13, 0.6); 
      backdrop-filter: blur(12px);     
      -webkit-backdrop-filter: blur(12px); 
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 1000;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s ease;
    }

    /* Show state triggered via JavaScript */
    .stake-modal-backdrop.active {
      opacity: 1;
      pointer-events: auto;
    }

    /* --- STAKE MODAL CARD --- */
    .stake-modal-card {
      background: linear-gradient(180deg, #121a2e 0%, #0a0f1d 100%);
      width: 100%;
      max-width: 480px;
      border-radius: 16px;
      border: 1px solid rgba(255, 255, 255, 0.08);
      padding: 24px;
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
      transform: scale(0.95);
      transition: transform 0.3s ease;
    }

    .stake-modal-backdrop.active .stake-modal-card {
      transform: scale(1);
    }

    /* Header Section */
    .stake-modal-header {
      display: flex;
      justify-content: center;
      align-items: center;
      position: relative;
      margin-bottom: 24px;
    }

    .stake-modal-title {
      color: #ffffff;
      font-size: 20px;
      font-weight: 600;
    }

    .stake-modal-close-btn {
      position: absolute;
      right: 0;
      background: none;
      border: none;
      color: #9ca3af;
      font-size: 24px;
      cursor: pointer;
      line-height: 1;
      transition: color 0.2s;
    }

    .stake-modal-close-btn:hover {
      color: #ffffff;
    }

    /* Input Field Group */
    .stake-modal-input-container {
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid #3b82f6; 
      border-radius: 12px;
      padding: 12px 16px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 6px;
    }

    .stake-modal-input-left {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    /* Token icon placeholder */
    .stake-modal-token-icon {
      width: 28px;
      height: 28px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #fff;
      font-size: 12px;
      font-weight: bold;
    }
    .stake-modal-token-icon img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
    }

    .stake-modal-amount-input {
      background: transparent;
      border: none;
      color: #ffffff;
      font-size: 18px;
      font-weight: 600;
      width: 100%;
      outline: none;
    }

    .stake-modal-max-btn {
      background: rgba(255, 255, 255, 0.1);
      border: none;
      color: #9ca3af;
      padding: 6px 12px;
      border-radius: 6px;
      font-size: 12px;
      font-weight: 600;
      cursor: pointer;
      transition: background 0.2s;
    }

    .stake-modal-max-btn:hover {
      background: rgba(255, 255, 255, 0.15);
      color: #fff;
    }

    .stake-modal-wallet-balance {
      text-align: right;
      color: #9ca3af;
      font-size: 13px;
      margin-bottom: 24px;
    }

    .stake-modal-wallet-balance strong {
      color: #ffffff;
    }

    /* Pool Info Metrics */
    .stake-modal-info-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 12px;
    }

    .stake-modal-info-label {
      color: #9ca3af;
      font-size: 15px;
    }

    .stake-modal-info-value {
      color: #ffffff;
      font-size: 16px;
      font-weight: 600;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    /* Cooling Period Box */
    .stake-modal-cooling-box {
      background: rgba(59, 130, 246, 0.05);
      border: 1px solid rgba(59, 130, 246, 0.15);
      border-radius: 12px;
      padding: 16px;
      margin-top: 24px;
      margin-bottom: 24px;
      display: flex;
      gap: 12px;
    }

    .stake-modal-info-icon {
      background: rgba(59, 130, 246, 0.15);
      color: #3b82f6;
      width: 20px;
      height: 20px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 12px;
      font-weight: bold;
      flex-shrink: 0;
      margin-top: 2px;
    }

    .stake-modal-cooling-text h4 {
      color: #3b82f6;
      font-size: 14px;
      font-weight: 600;
      margin-bottom: 4px;
    }

    .stake-modal-cooling-text p {
      color: #9ca3af;
      font-size: 13px;
      line-height: 1.4;
    }

    /* Submit Button */
    .stake-modal-submit-btn {
      width: 100%;
      padding: 14px;
      background: #374151; 
      border: none;
      border-radius: 10px;
      color: #9ca3af;
      font-size: 16px;
      font-weight: 600;
      cursor: not-allowed;
      transition: background 0.2s;
    }

    .stake-modal-submit-btn.ready {
      background: #3b82f6;
      color: #fff;
      cursor: pointer;
    }