/* Wallet Staking Tab System - Crypto Theme Compatible */

/* ========================================
   TABS NAVIGATION
   ======================================== */

.wallet-tabs-nav {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    margin-bottom: 1.75rem;
    border-bottom: 2px solid rgba(234, 180, 89, 0.2);
}

.wallet-tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.wallet-tab-btn i {
    font-size: 1.25rem;
}

.wallet-tab-btn:hover {
    color: rgba(234, 180, 89, 0.8);
    background: rgba(234, 180, 89, 0.05);
}

.wallet-tab-btn.active {
    color: #EAB459;
    border-bottom-color: #EAB459;
    background: rgba(234, 180, 89, 0.1);
}

.wallet-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #EAB459, transparent);
    animation: tabGlow 2s ease-in-out infinite;
}

@keyframes tabGlow {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* ========================================
   TAB CONTENT CONTAINERS
   ======================================== */

.wallet-tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
    padding-top: 0;
}

.wallet-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   STAKING INFO CARD
   ======================================== */

.staking-info-card {
    background: linear-gradient(145deg, rgba(20, 20, 25, 0.6), rgba(30, 30, 35, 0.4));
    border: 1px solid rgba(234, 180, 89, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.staking-rules h4 {
    color: #EAB459;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.staking-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.staking-rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.staking-rule-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(234, 180, 89, 0.05);
    border: 1px solid rgba(234, 180, 89, 0.15);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.staking-rule-item:hover {
    background: rgba(234, 180, 89, 0.1);
    border-color: rgba(234, 180, 89, 0.3);
    transform: translateY(-2px);
}

.staking-rule-item i {
    font-size: 2rem;
    color: #EAB459;
}

.rule-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.rule-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rule-value {
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: 600;
}

/* ========================================
   STAKING USER STATS
   ======================================== */

.staking-user-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.staking-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(234, 180, 89, 0.1), rgba(234, 180, 89, 0.05));
    border: 1px solid rgba(234, 180, 89, 0.2);
    border-radius: 10px;
    text-align: center;
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    color: #EAB459;
    font-size: 1.5rem;
    font-weight: 700;
}

/* ========================================
   STAKING ACTIONS
   ======================================== */

.staking-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-top: 1rem;
}

/* Single action button - full width prominent */
.staking-actions-single {
    margin-top: 1.25rem;
}

.staking-actions-single .staking-action-btn {
    padding: 1.25rem 1.5rem;
    font-size: 1.1rem;
    border-radius: 12px;
}

.staking-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(234, 180, 89, 0.2), rgba(234, 180, 89, 0.1));
    border: 2px solid rgba(234, 180, 89, 0.3);
    border-radius: 10px;
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.staking-action-btn i {
    font-size: 1.35rem;
}

.staking-action-btn:hover {
    background: linear-gradient(135deg, rgba(234, 180, 89, 0.3), rgba(234, 180, 89, 0.15));
    border-color: rgba(234, 180, 89, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(234, 180, 89, 0.3);
}

.staking-action-btn.stake-btn {
    background: linear-gradient(135deg, rgba(46, 213, 115, 0.25), rgba(46, 213, 115, 0.15));
    border-color: rgba(46, 213, 115, 0.4);
    box-shadow: 0 3px 10px rgba(46, 213, 115, 0.15);
}

.staking-action-btn.stake-btn:hover {
    background: linear-gradient(135deg, rgba(46, 213, 115, 0.35), rgba(46, 213, 115, 0.2));
    border-color: rgba(46, 213, 115, 0.6);
    box-shadow: 0 5px 20px rgba(46, 213, 115, 0.35);
}

/* ========================================
   STAKING MODALS
   ======================================== */

.staking-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.staking-modal.active {
    display: flex;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.staking-modal-content {
    background: linear-gradient(145deg, rgba(24, 26, 32, 0.98), rgba(32, 34, 42, 0.98));
    border: 2px solid rgba(234, 180, 89, 0.3);
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.4s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.staking-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(234, 180, 89, 0.2);
}

.staking-modal-header h3 {
    color: #EAB459;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.staking-modal-header i {
    font-size: 1.75rem;
}

.staking-modal-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.staking-modal-close:hover {
    color: #FFFFFF;
    background: rgba(255, 92, 92, 0.2);
}

.staking-modal-body {
    padding: 1.5rem;
}

.staking-form-group {
    margin-bottom: 1.5rem;
}

.staking-form-group label {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.staking-input-wrapper {
    position: relative;
}

.staking-input {
    width: 100%;
    padding: 1rem 3rem 1rem 1rem;
    background: rgba(20, 20, 25, 0.6);
    border: 2px solid rgba(234, 180, 89, 0.2);
    border-radius: 10px;
    color: #FFFFFF;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.staking-input:focus {
    outline: none;
    border-color: rgba(234, 180, 89, 0.5);
    background: rgba(20, 20, 25, 0.8);
    box-shadow: 0 0 0 4px rgba(234, 180, 89, 0.1);
}

.staking-input-suffix {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
    font-weight: 600;
    pointer-events: none;
}

.staking-calc-display {
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(46, 213, 115, 0.1), rgba(46, 213, 115, 0.05));
    border: 1px solid rgba(46, 213, 115, 0.3);
    border-radius: 10px;
    margin-top: 1rem;
}

.staking-calc-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.staking-calc-value {
    color: #2ED573;
    font-size: 1.75rem;
    font-weight: 700;
}

.staking-calc-value span {
    font-size: 1rem;
    color: rgba(46, 213, 115, 0.8);
    font-weight: 500;
}

.staking-modal-footer {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid rgba(234, 180, 89, 0.2);
}

.staking-modal-btn {
    flex: 1;
    padding: 1rem;
    border: 2px solid;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.staking-modal-btn.cancel {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
}

.staking-modal-btn.cancel:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.4);
    color: #FFFFFF;
}

.staking-modal-btn.confirm {
    background: linear-gradient(135deg, rgba(46, 213, 115, 0.3), rgba(46, 213, 115, 0.2));
    border-color: rgba(46, 213, 115, 0.5);
    color: #FFFFFF;
}

.staking-modal-btn.confirm:hover {
    background: linear-gradient(135deg, rgba(46, 213, 115, 0.4), rgba(46, 213, 115, 0.3));
    border-color: rgba(46, 213, 115, 0.7);
    box-shadow: 0 5px 20px rgba(46, 213, 115, 0.3);
}

.staking-modal-btn.confirm:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.staking-warning {
    padding: 1rem;
    background: rgba(255, 185, 0, 0.1);
    border-left: 4px solid rgba(255, 185, 0, 0.5);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    margin-top: 1rem;
    display: flex;
    gap: 0.75rem;
}

.staking-warning i {
    color: #FFB900;
    font-size: 1.25rem;
}

/* ========================================
   UNSTAKE MODAL SPECIFIC
   ======================================== */

.unstake-summary {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.unstake-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(234, 180, 89, 0.05);
    border: 1px solid rgba(234, 180, 89, 0.15);
    border-radius: 8px;
}

.unstake-summary-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.unstake-summary-value {
    color: #FFFFFF;
    font-size: 1.1rem;
    font-weight: 700;
}

.unstake-summary-value.earned {
    color: #2ED573;
}

/* ========================================
   ACCORDION PARA REGLAS DE STAKING
   ======================================== */

.staking-accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(234, 180, 89, 0.15), rgba(234, 180, 89, 0.08));
    border: 1px solid rgba(234, 180, 89, 0.3);
    border-radius: 10px;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.staking-accordion-header:hover {
    background: linear-gradient(135deg, rgba(234, 180, 89, 0.2), rgba(234, 180, 89, 0.12));
    border-color: rgba(234, 180, 89, 0.5);
}

.accordion-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #EAB459;
    font-size: 1rem;
    font-weight: 600;
}

.accordion-title i {
    font-size: 1.25rem;
}

.accordion-icon {
    font-size: 1.5rem;
    color: #EAB459;
    transition: transform 0.3s ease;
}

.accordion-icon.rotated {
    transform: rotate(180deg);
}

.staking-accordion-content {
    max-height: 0;
    overflow: hidden;
    padding: 0;
    margin: 0;
    transition: max-height 0.35s ease-out;
}

.staking-accordion-content.open {
    max-height: 800px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media screen and (max-width: 768px) {
    .wallet-tabs-nav {
        gap: 0.25rem;
    }
    
    .wallet-tab-btn {
        padding: 0.75rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .wallet-tab-btn i {
        font-size: 1.1rem;
    }
    
    /* OPCIÓN B: Layout optimizado para TAB STAKING */
    .staking-accordion-header {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .accordion-title {
        font-size: 0.9rem;
        gap: 0.5rem;
    }

    .accordion-title i {
        font-size: 1.1rem;
    }

    .accordion-icon {
        font-size: 1.3rem;
    }

    .staking-info-card {
        padding: 1rem;
        margin-bottom: 0.75rem;
    }

    .staking-description {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
    
    .staking-rules-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        margin-bottom: 1rem;
    }

    .staking-rule-item {
        padding: 0.75rem;
    }

    .staking-rule-item i {
        font-size: 1.5rem;
    }

    .rule-label {
        font-size: 0.7rem;
    }

    .rule-value {
        font-size: 0.9rem;
    }
    
    /* Stats lado a lado en móvil (grid horizontal) - compact but 2-column */
    .staking-user-stats {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
        margin-top: 0.75rem;
        margin-bottom: 1rem;
    }

    .staking-stat {
        padding: 0.875rem 0.5rem;
    }

    .stat-label {
        font-size: 0.7rem;
        margin-bottom: 0.25rem;
    }

    .stat-value {
        font-size: 1.2rem;
    }
    
    /* Referral stats section - better visibility */
    .referral-stats {
        margin-top: 0.5rem;
        border: 1px solid rgba(46, 213, 115, 0.4);
        box-shadow: 0 2px 10px rgba(46, 213, 115, 0.1);
    }
    
    .referral-stats .staking-stat {
        padding: 0.75rem 0.5rem;
    }

    /* Single staking action button - more prominent on mobile */
    .staking-actions-single {
        margin-top: 1rem;
    }
    
    .staking-actions-single .staking-action-btn {
        padding: 1rem 1.25rem;
        font-size: 1rem;
        min-height: 52px;
        flex-direction: row;
        gap: 0.75rem;
        box-shadow: 0 4px 15px rgba(46, 213, 115, 0.25);
    }
    
    .staking-actions-single .staking-action-btn i {
        font-size: 1.5rem;
    }

    /* Botones compactos en grid horizontal */
    .staking-actions {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
        margin-top: 1rem;
    }

    .staking-action-btn {
        padding: 0.75rem 0.5rem;
        font-size: 0.75rem;
        flex-direction: column;
        min-height: 70px;
    }

    .staking-action-btn i {
        font-size: 1.3rem;
    }
    
    /* Deposits list with scroll shadow indicator */
    .deposits-list {
        max-height: 300px;
        position: relative;
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    .staking-deposits-section::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 30px;
        background: linear-gradient(to top, rgba(20, 20, 25, 0.9), transparent);
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .staking-deposits-section.has-scroll::after {
        opacity: 1;
    }
    
    /* Deposit cards - vertical column layout on mobile */
    .deposit-card {
        flex-direction: column;
        padding: 0.75rem;
        gap: 0.625rem;
    }
    
    .deposit-main {
        width: 100%;
    }
    
    .deposit-amount {
        font-size: 1rem;
    }
    
    .deposit-earnings {
        font-size: 0.85rem;
    }
    
    .deposit-progress-section {
        width: 100%;
    }
    
    .deposit-progress-info {
        font-size: 0.7rem;
    }
    
    .deposit-actions {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding-top: 0.5rem;
        padding-left: 0;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    /* Improved tap targets for withdraw buttons - minimum 44px */
    .deposit-withdraw-btn {
        min-height: 44px;
        min-width: 90px;
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .staking-modal-content {
        width: 95%;
    }
    
    .staking-modal-footer {
        flex-direction: column;
    }
}

@media screen and (max-width: 576px) {
    .wallet-tab-btn span {
        display: none;
    }
    
    .wallet-tab-btn i {
        font-size: 1.5rem;
    }
    
    /* Better tap targets on small screens */
    .deposit-withdraw-btn {
        min-height: 44px;
        padding: 0.625rem 0.875rem;
    }
}

/* Very small devices (≤360px) */
@media screen and (max-width: 360px) {
    .wallet-tabs-nav {
        gap: 0.125rem;
    }
    
    .wallet-tab-btn {
        padding: 0.625rem 0.5rem;
    }
    
    .wallet-tab-btn i {
        font-size: 1.35rem;
    }
    
    /* More compact stats on very small screens */
    .staking-user-stats {
        gap: 0.375rem;
    }
    
    .staking-stat {
        padding: 0.75rem 0.375rem;
    }
    
    .stat-label {
        font-size: 0.65rem;
    }
    
    .stat-value {
        font-size: 1rem;
    }
    
    /* Referral stats on very small screens */
    .referral-stats .staking-stat {
        padding: 0.625rem 0.375rem;
    }
    
    .referral-stats .stat-value {
        font-size: 0.95rem;
    }
    
    /* Deposits section */
    .deposit-card {
        padding: 0.625rem;
        gap: 0.5rem;
    }
    
    .deposit-amount {
        font-size: 0.9rem;
    }
    
    .deposit-earnings {
        font-size: 0.75rem;
    }
    
    .deposit-progress-info {
        font-size: 0.65rem;
    }
    
    .deposit-actions {
        padding-top: 0.375rem;
        gap: 0.375rem;
    }
    
    .deposit-withdraw-btn {
        min-width: 70px;
        min-height: 38px;
        font-size: 0.7rem;
        padding: 0.375rem 0.5rem;
    }
    
    .deposit-status-badge {
        font-size: 0.6rem;
        padding: 0.2rem 0.4rem;
    }
    
    /* Single action button on very small screens */
    .staking-actions-single .staking-action-btn {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }
    
    /* Modal adjustments */
    .staking-modal-header {
        padding: 1rem;
    }
    
    .staking-modal-header h3 {
        font-size: 1.25rem;
    }
    
    .staking-modal-body {
        padding: 1rem;
    }
    
    .staking-modal-footer {
        padding: 1rem;
    }
    
    .staking-notification-content {
        padding: 1.5rem 1rem 1rem;
    }
    
    .staking-notification-title {
        font-size: 1.35rem;
    }
    
    .staking-notification-message {
        font-size: 0.9rem;
    }
}

/* ========================================
   STAKING NOTIFICATION MODAL
   ======================================== */

.staking-notification-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10002;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.staking-notification-modal.active {
    display: flex;
    opacity: 1;
}

.staking-notification-content {
    background: linear-gradient(135deg, rgba(46, 213, 115, 0.95), rgba(38, 185, 99, 0.9));
    color: white;
    padding: 2.5rem 2rem 2rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    max-width: 450px;
    width: 90%;
    font-family: 'Roboto Condensed', sans-serif;
    position: relative;
    animation: slideInScale 0.4s ease-out;
}

@keyframes slideInScale {
    0% {
        transform: scale(0.7) translateY(-50px);
        opacity: 0;
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

@keyframes slideOutScale {
    0% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
    100% {
        transform: scale(0.7) translateY(-50px);
        opacity: 0;
    }
}

.staking-notification-icon {
    font-size: 4rem;
    margin-bottom: 1.25rem;
    animation: bounceIn 0.6s ease-out;
}

@keyframes bounceIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.staking-notification-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.staking-notification-message {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.95;
    white-space: pre-line;
}

.staking-notification-btn {
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: white;
    padding: 0.875rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Roboto Condensed', sans-serif;
}

.staking-notification-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.staking-notification-btn:active {
    transform: translateY(0);
}

/* Responsive */
@media screen and (max-width: 576px) {
    .staking-notification-content {
        padding: 2rem 1.5rem 1.5rem;
        max-width: 95%;
    }
    
    .staking-notification-icon {
        font-size: 3rem;
    }
    
    .staking-notification-title {
        font-size: 1.5rem;
    }
    
    .staking-notification-message {
        font-size: 1rem;
    }
    
    .staking-notification-btn {
        padding: 0.75rem 2rem;
        font-size: 0.95rem;
    }
}

/* ========================================
   REFERRAL STATS SECTION
   ======================================== */

/* Better visual separation between staking stats and referral stats */
.referral-stats {
    margin-top: 1rem;
    background: linear-gradient(145deg, rgba(46, 213, 115, 0.12), rgba(46, 213, 115, 0.06));
    border: 1px solid rgba(46, 213, 115, 0.35);
    box-shadow: 0 3px 12px rgba(46, 213, 115, 0.1);
    border-radius: 12px;
}

.referral-stats .staking-stat {
    position: relative;
}

.referral-stats .stat-label {
    color: rgba(46, 213, 115, 0.9);
}

.referral-stats .stat-value {
    color: #2ED573;
}

/* Animated Value Glow Effect */
.animated-value {
    position: relative;
    animation: valueGlow 2s ease-in-out infinite;
}

@keyframes valueGlow {
    0%, 100% {
        text-shadow: 0 0 5px rgba(234, 180, 89, 0.3);
    }
    50% {
        text-shadow: 0 0 15px rgba(234, 180, 89, 0.6), 0 0 25px rgba(234, 180, 89, 0.3);
    }
}

.referral-stats .animated-value {
    animation: referralValueGlow 2s ease-in-out infinite;
}

@keyframes referralValueGlow {
    0%, 100% {
        text-shadow: 0 0 5px rgba(46, 213, 115, 0.3);
    }
    50% {
        text-shadow: 0 0 15px rgba(46, 213, 115, 0.6), 0 0 25px rgba(46, 213, 115, 0.3);
    }
}

/* ========================================
   DEPOSITS SECTION
   ======================================== */

.staking-deposits-section {
    margin-top: 1rem;
    background: linear-gradient(145deg, rgba(20, 20, 25, 0.6), rgba(30, 30, 35, 0.4));
    border: 1px solid rgba(234, 180, 89, 0.2);
    border-radius: 12px;
    padding: 1rem;
    backdrop-filter: blur(10px);
    position: relative;
}

.deposits-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #EAB459;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(234, 180, 89, 0.2);
}

.deposits-header i {
    font-size: 1.1rem;
}

.deposits-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 350px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Individual Deposit Card - Enhanced styling with better visual hierarchy */
.deposit-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    background: linear-gradient(145deg, rgba(30, 30, 35, 0.8), rgba(40, 40, 45, 0.6));
    border: 1px solid rgba(234, 180, 89, 0.15);
    border-radius: 10px;
    padding: 0.875rem 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    gap: 1rem;
}

/* Subtle left accent bar for active deposits */
.deposit-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #EAB459, #2ED573);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.deposit-card:hover {
    border-color: rgba(234, 180, 89, 0.4);
    background: linear-gradient(145deg, rgba(35, 35, 40, 0.85), rgba(45, 45, 50, 0.65));
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.deposit-card:hover::before {
    opacity: 1;
}

.deposit-card.withdrawn {
    opacity: 0.5;
    background: linear-gradient(145deg, rgba(50, 50, 55, 0.5), rgba(60, 60, 65, 0.3));
}

.deposit-card.withdrawn::before {
    background: rgba(255, 255, 255, 0.2);
}

/* Main content area */
.deposit-main {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
}

.deposit-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.deposit-amount {
    font-size: 1.15rem;
    font-weight: 700;
    color: #EAB459;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Enhanced earnings animation visibility */
.deposit-earnings {
    font-size: 0.9rem;
    color: #2ED573;
    font-weight: 600;
    animation: earningsGlow 2s ease-in-out infinite;
}

@keyframes earningsGlow {
    0%, 100% {
        text-shadow: 0 0 3px rgba(46, 213, 115, 0.3);
    }
    50% {
        text-shadow: 0 0 8px rgba(46, 213, 115, 0.6), 0 0 12px rgba(46, 213, 115, 0.3);
    }
}

/* Progress section */
.deposit-progress-section {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    width: 100%;
}

.deposit-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.deposit-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #EAB459, #2ED573);
    border-radius: 2px;
    transition: width 0.5s ease;
}

.deposit-progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

.deposit-date {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.deposit-date i {
    font-size: 0.85rem;
    color: rgba(234, 180, 89, 0.7);
}

.deposit-maturity {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: rgba(46, 213, 115, 0.9);
    font-weight: 500;
    cursor: help;
}

.deposit-maturity i {
    font-size: 0.85rem;
}

.deposit-time {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Actions column on desktop */
.deposit-actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 0.5rem;
    flex-shrink: 0;
    padding-left: 0.75rem;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.deposit-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.deposit-status-badge {
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.deposit-status-badge.active {
    background: rgba(46, 213, 115, 0.2);
    color: #2ED573;
    border: 1px solid rgba(46, 213, 115, 0.3);
    animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(46, 213, 115, 0);
    }
    50% {
        box-shadow: 0 0 0 3px rgba(46, 213, 115, 0.15);
    }
}

.deposit-status-badge.withdrawn {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Withdraw button with larger tap target */
.deposit-withdraw-btn {
    background: linear-gradient(135deg, #FF6B6B, #EE5A5A);
    border: none;
    color: white;
    padding: 0.5rem 0.875rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 40px;
    min-width: 85px;
}

.deposit-withdraw-btn i {
    font-size: 1rem;
}

.deposit-withdraw-btn:hover {
    background: linear-gradient(135deg, #FF5252, #E53935);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.deposit-withdraw-btn:active {
    transform: scale(0.98);
}

.deposit-withdraw-btn:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ========================================
   REFERRAL CLAIM BUTTON
   ======================================== */

.referral-earnings-stat {
    position: relative;
    flex-direction: column;
    gap: 0.5rem;
}

.referral-claim-btn {
    background: linear-gradient(135deg, rgba(46, 213, 115, 0.8), rgba(46, 213, 115, 0.6));
    border: 1px solid rgba(46, 213, 115, 0.5);
    border-radius: 6px;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.25rem;
    animation: claimPulse 2s ease-in-out infinite;
}

@keyframes claimPulse {
    0%, 100% {
        box-shadow: 0 0 5px rgba(46, 213, 115, 0.3);
    }
    50% {
        box-shadow: 0 0 15px rgba(46, 213, 115, 0.6), 0 0 25px rgba(46, 213, 115, 0.3);
    }
}

.referral-claim-btn:hover {
    background: linear-gradient(135deg, rgba(46, 213, 115, 1), rgba(46, 213, 115, 0.8));
    transform: scale(1.05);
    box-shadow: 0 3px 10px rgba(46, 213, 115, 0.4);
}

.referral-claim-btn:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    animation: none;
}

.referral-claim-btn i {
    font-size: 0.9rem;
}

/* ========================================
   TOAST NOTIFICATION SYSTEM
   ======================================== */

.staking-toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100000;
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    max-width: 400px;
    pointer-events: none;
}

.staking-toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(145deg, rgba(24, 26, 32, 0.98), rgba(32, 34, 42, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
}

.staking-toast-show {
    transform: translateX(0);
    opacity: 1;
}

.staking-toast-hide {
    transform: translateX(120%);
    opacity: 0;
}

.staking-toast-success {
    border-left: 4px solid #2ED573;
}

.staking-toast-error {
    border-left: 4px solid #FF5C5C;
}

.staking-toast-warning {
    border-left: 4px solid #FFB900;
}

.staking-toast-info {
    border-left: 4px solid #3498db;
}

.staking-toast-icon {
    flex-shrink: 0;
    font-size: 1.5rem;
}

.staking-toast-success .staking-toast-icon { color: #2ED573; }
.staking-toast-error .staking-toast-icon { color: #FF5C5C; }
.staking-toast-warning .staking-toast-icon { color: #FFB900; }
.staking-toast-info .staking-toast-icon { color: #3498db; }

.staking-toast-content {
    flex: 1;
    min-width: 0;
}

.staking-toast-message {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    line-height: 1.4;
}

.staking-toast-retry,
.staking-toast-close {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.staking-toast-retry:hover,
.staking-toast-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.staking-toast-retry {
    color: #2ED573;
}

@media (max-width: 480px) {
    .staking-toast-container {
        left: 10px;
        right: 10px;
        bottom: 80px;
        max-width: none;
    }
}

/* ========================================
   WITHDRAW CONFIRMATION MODAL
   ======================================== */

#withdrawConfirmModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 10001;
    align-items: center;
    justify-content: center;
}

#withdrawConfirmModal.active {
    display: flex;
    animation: modalFadeIn 0.3s ease;
}

.withdraw-confirm-content {
    background: linear-gradient(145deg, rgba(24, 26, 32, 0.98), rgba(32, 34, 42, 0.98));
    border: 2px solid rgba(234, 180, 89, 0.3);
    border-radius: 16px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.4s ease;
}

.withdraw-confirm-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(234, 180, 89, 0.2);
}

.withdraw-confirm-header i {
    font-size: 2rem;
    color: #FFB900;
}

.withdraw-confirm-header h3 {
    color: #fff;
    font-size: 1.25rem;
    margin: 0;
}

.withdraw-confirm-body {
    padding: 1.5rem;
}

.withdraw-summary {
    background: rgba(20, 20, 25, 0.6);
    border: 1px solid rgba(234, 180, 89, 0.15);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.withdraw-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.withdraw-summary-row:last-child {
    border-bottom: none;
}

.withdraw-summary-row.total {
    padding-top: 1rem;
    margin-top: 0.5rem;
    border-top: 2px solid rgba(234, 180, 89, 0.3);
    border-bottom: none;
}

.withdraw-summary-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.withdraw-summary-value {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
}

.withdraw-summary-value.earnings {
    color: #2ED573;
}

.withdraw-summary-value.fee {
    color: #FF5C5C;
}

.withdraw-summary-value.total {
    color: #EAB459;
    font-size: 1.25rem;
}

.withdraw-warning {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 1rem;
    background: rgba(255, 185, 0, 0.1);
    border: 1px solid rgba(255, 185, 0, 0.3);
    border-radius: 8px;
}

.withdraw-warning i {
    color: #FFB900;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.withdraw-warning span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    line-height: 1.4;
}

.withdraw-confirm-footer {
    display: flex;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-top: 1px solid rgba(234, 180, 89, 0.2);
}

.withdraw-btn {
    flex: 1;
    padding: 1rem;
    border: 2px solid;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.withdraw-btn.cancel {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
}

.withdraw-btn.cancel:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

.withdraw-btn.confirm {
    background: linear-gradient(135deg, rgba(255, 92, 92, 0.3), rgba(255, 92, 92, 0.2));
    border-color: rgba(255, 92, 92, 0.5);
    color: #fff;
}

.withdraw-btn.confirm:hover {
    background: linear-gradient(135deg, rgba(255, 92, 92, 0.4), rgba(255, 92, 92, 0.3));
    border-color: rgba(255, 92, 92, 0.7);
    box-shadow: 0 5px 20px rgba(255, 92, 92, 0.3);
}

.withdraw-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ========================================
   SKELETON LOADING STATES
   ======================================== */

.skeleton-loading {
    pointer-events: none;
}

.skeleton-loading .staking-stat {
    position: relative;
    overflow: hidden;
}

.skeleton-loading .stat-value {
    color: transparent !important;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    animation: skeletonPulse 1.5s ease-in-out infinite;
}

.deposit-card.skeleton {
    pointer-events: none;
}

.skeleton-text {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    animation: skeletonPulse 1.5s ease-in-out infinite;
}

.skeleton-amount {
    width: 120px;
    height: 20px;
    margin-bottom: 8px;
}

.skeleton-earnings {
    width: 80px;
    height: 16px;
    margin-bottom: 6px;
}

.skeleton-date {
    width: 100px;
    height: 14px;
}

.skeleton-badge {
    width: 60px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    animation: skeletonPulse 1.5s ease-in-out infinite;
}

.skeleton-button {
    width: 80px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    animation: skeletonPulse 1.5s ease-in-out infinite;
}

@keyframes skeletonPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

/* ========================================
   EMPTY STATE (COMPACT)
   ======================================== */

#stakingEmptyState {
    display: none;
    padding: 1rem;
    background: linear-gradient(145deg, rgba(20, 20, 25, 0.6), rgba(30, 30, 35, 0.4));
    border: 1px solid rgba(234, 180, 89, 0.2);
    border-radius: 12px;
    margin-top: 0.75rem;
}

.empty-state-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.empty-state-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
    animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.empty-state-text {
    flex: 1;
}

.empty-state-title {
    color: #EAB459;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.empty-state-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
}

#stakingEmptyState.error-state .empty-state-icon {
    filter: grayscale(1);
}

#stakingEmptyState.error-state .empty-state-title {
    color: #FF5C5C;
}

/* ========================================
   BENEFITS ACCORDION
   ======================================== */

.staking-accordion-header.benefits-accordion {
    margin-top: 0.75rem;
    background: linear-gradient(145deg, rgba(46, 213, 115, 0.1), rgba(46, 213, 115, 0.05));
    border-color: rgba(46, 213, 115, 0.2);
}

.staking-accordion-header.benefits-accordion:hover {
    background: rgba(46, 213, 115, 0.15);
}

.staking-accordion-header.benefits-accordion .accordion-title i {
    color: #2ED573;
}

.staking-accordion-content.benefits-content.open {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
}

.benefits-scroll-container {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.benefits-scroll-container::-webkit-scrollbar {
    height: 4px;
}

.benefits-scroll-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.benefits-scroll-container::-webkit-scrollbar-thumb {
    background: rgba(46, 213, 115, 0.4);
    border-radius: 2px;
}

.benefit-chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: rgba(46, 213, 115, 0.1);
    border: 1px solid rgba(46, 213, 115, 0.3);
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
    scroll-snap-align: start;
    transition: all 0.3s ease;
}

.benefit-chip:hover {
    background: rgba(46, 213, 115, 0.2);
    border-color: rgba(46, 213, 115, 0.5);
}

.benefit-chip i {
    color: #2ED573;
    font-size: 1.1rem;
}

.benefit-chip span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
    font-weight: 500;
}

/* ========================================
   RULES ACCORDION
   ======================================== */

.staking-accordion-header.rules-accordion {
    margin-top: 0.5rem;
    background: linear-gradient(145deg, rgba(234, 180, 89, 0.1), rgba(234, 180, 89, 0.05));
    border-color: rgba(234, 180, 89, 0.2);
}

.staking-accordion-header.rules-accordion:hover {
    background: rgba(234, 180, 89, 0.15);
}

.staking-accordion-header.rules-accordion .accordion-title i {
    color: #EAB459;
}

.staking-accordion-content.rules-content.open {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
}

.staking-threshold-note {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 193, 7, 0.08);
    border-left: 3px solid #ffc107;
    border-radius: 6px;
}

.staking-threshold-note p {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
}

.staking-threshold-note strong {
    color: #ffc107;
}

/* ========================================
   FULL-WIDTH CTA BUTTON (Card-spanning, Centered)
   ======================================== */

.staking-actions-compact {
    margin-top: 0.75rem;
    padding: 0;
    width: 100%;
    display: flex;
    justify-content: center;
}

.staking-action-btn.stake-btn-compact {
    width: 100%;
    max-width: none;
    padding: 0.85rem 1.25rem;
    font-size: 1rem;
    background: linear-gradient(135deg, rgba(46, 213, 115, 0.28), rgba(46, 213, 115, 0.12));
    border: 2px solid rgba(46, 213, 115, 0.5);
    border-radius: 10px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 3px 15px rgba(46, 213, 115, 0.25);
    margin: 0 auto;
}

.staking-action-btn.stake-btn-compact:hover {
    background: linear-gradient(135deg, rgba(46, 213, 115, 0.4), rgba(46, 213, 115, 0.2));
    border-color: rgba(46, 213, 115, 0.75);
    box-shadow: 0 5px 25px rgba(46, 213, 115, 0.4);
    transform: translateY(-2px);
}

.staking-action-btn.stake-btn-compact i {
    font-size: 1.2rem;
    color: #2ED573;
}

/* Mobile: Full width button */
@media screen and (max-width: 768px) {
    .staking-actions-compact {
        padding: 0;
    }
    
    .staking-action-btn.stake-btn-compact {
        width: 100%;
        max-width: 100%;
    }
}

/* ========================================
   PRIMARY CTA WITH GLOW (Legacy)
   ======================================== */

.staking-actions-primary {
    margin-top: 0.75rem;
}

.staking-action-btn.primary-cta-glow {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    background: linear-gradient(135deg, rgba(46, 213, 115, 0.3), rgba(46, 213, 115, 0.15));
    border: 2px solid rgba(46, 213, 115, 0.5);
    position: relative;
    overflow: hidden;
    animation: ctaPulse 2s ease-in-out infinite;
}

.staking-action-btn.primary-cta-glow::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(46, 213, 115, 0.3) 0%, transparent 70%);
    animation: ctaGlow 3s linear infinite;
    pointer-events: none;
}

.staking-action-btn.primary-cta-glow::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(90deg, transparent, rgba(46, 213, 115, 0.6), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.staking-action-btn.primary-cta-glow:hover {
    background: linear-gradient(135deg, rgba(46, 213, 115, 0.4), rgba(46, 213, 115, 0.25));
    border-color: rgba(46, 213, 115, 0.8);
    box-shadow: 
        0 0 20px rgba(46, 213, 115, 0.4),
        0 0 40px rgba(46, 213, 115, 0.2),
        inset 0 0 20px rgba(46, 213, 115, 0.1);
    transform: translateY(-2px);
}

.staking-action-btn.primary-cta-glow:hover::after {
    opacity: 1;
    animation: borderGlow 1.5s linear infinite;
}

@keyframes ctaPulse {
    0%, 100% { 
        box-shadow: 0 0 10px rgba(46, 213, 115, 0.3);
    }
    50% { 
        box-shadow: 0 0 20px rgba(46, 213, 115, 0.5), 0 0 30px rgba(46, 213, 115, 0.2);
    }
}

@keyframes ctaGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes borderGlow {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ========================================
   INPUT VALIDATION STATES
   ======================================== */

.staking-input.input-valid {
    border-color: rgba(46, 213, 115, 0.5) !important;
    box-shadow: 0 0 0 4px rgba(46, 213, 115, 0.1);
}

.staking-input.input-invalid {
    border-color: rgba(255, 92, 92, 0.5) !important;
    box-shadow: 0 0 0 4px rgba(255, 92, 92, 0.1);
}

.staking-validation-msg {
    font-size: 0.8rem;
    margin-top: 0.5rem;
    min-height: 1.2em;
}

.staking-validation-msg.error {
    color: #FF5C5C;
}

.staking-validation-msg.success {
    color: #2ED573;
}

/* ========================================
   QUICK SELECT BUTTONS
   ======================================== */

.staking-quick-select {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.quick-select-btn {
    flex: 1;
    min-width: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 0.6rem 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-select-btn:hover:not(.disabled) {
    background: rgba(46, 213, 115, 0.15);
    border-color: rgba(46, 213, 115, 0.4);
    transform: translateY(-2px);
}

.quick-select-btn.selected {
    background: rgba(46, 213, 115, 0.2);
    border-color: rgba(46, 213, 115, 0.6);
    box-shadow: 0 0 15px rgba(46, 213, 115, 0.3);
}

.quick-select-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.quick-select-btn .quick-amount {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
}

.quick-select-btn .quick-reward {
    font-size: 0.7rem;
    color: rgba(46, 213, 115, 0.8);
    font-weight: 500;
}

.quick-select-btn.max-btn {
    background: linear-gradient(145deg, rgba(234, 180, 89, 0.15), rgba(234, 180, 89, 0.05));
    border-color: rgba(234, 180, 89, 0.3);
}

.quick-select-btn.max-btn:hover:not(.disabled) {
    background: linear-gradient(145deg, rgba(234, 180, 89, 0.25), rgba(234, 180, 89, 0.15));
    border-color: rgba(234, 180, 89, 0.5);
}

.quick-select-btn.max-btn .quick-amount {
    color: #EAB459;
}

.quick-select-btn.max-btn .quick-reward {
    color: rgba(234, 180, 89, 0.8);
}

@media (max-width: 400px) {
    .staking-quick-select {
        gap: 0.4rem;
    }
    
    .quick-select-btn {
        min-width: 50px;
        padding: 0.5rem 0.3rem;
    }
    
    .quick-select-btn .quick-amount {
        font-size: 0.8rem;
    }
    
    .quick-select-btn .quick-reward {
        font-size: 0.65rem;
    }
}

/* Enhanced calc display */
.staking-calc-value .calc-main {
    display: block;
    color: #2ED573;
    font-size: 1.5rem;
    font-weight: 700;
}

.staking-calc-value .calc-secondary {
    display: block;
    color: rgba(46, 213, 115, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 0.25rem;
}

.staking-calc-value .calc-error {
    color: #FF5C5C;
    font-size: 1rem;
}

.staking-calc-value .calc-placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-size: 1rem;
}

/* ========================================
   SMOOTH EARNINGS ANIMATION
   ======================================== */

.earning-glow {
    transition: text-shadow 0.3s ease;
}

.earning-plus {
    color: #2ED573;
    font-weight: 700;
}

.earning-currency {
    color: rgba(46, 213, 115, 0.7);
    font-size: 0.85em;
}

/* Subtle glow effect on earnings increase */
@keyframes earningsGlow {
    0% {
        text-shadow: 0 0 5px rgba(46, 213, 115, 0.3);
    }
    50% {
        text-shadow: 0 0 15px rgba(46, 213, 115, 0.6), 0 0 25px rgba(46, 213, 115, 0.3);
    }
    100% {
        text-shadow: 0 0 5px rgba(46, 213, 115, 0.3);
    }
}

.deposit-earnings {
    animation: earningsGlow 2s ease-in-out infinite;
}

/* ========================================
   DEPOSIT CARD ENHANCEMENTS
   ======================================== */

.deposit-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    background: linear-gradient(145deg, rgba(20, 20, 25, 0.8), rgba(30, 30, 35, 0.6));
    border: 1px solid rgba(234, 180, 89, 0.2);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
    overflow: hidden;
}

.deposit-card:hover {
    border-color: rgba(234, 180, 89, 0.4);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.deposit-accent {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #EAB459, #2ED573);
}

.deposit-main {
    padding-left: 1rem;
    flex: 1;
}

.deposit-info {
    margin-bottom: 0.75rem;
}

.deposit-amount {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.deposit-earnings {
    color: #2ED573;
    font-size: 1rem;
    font-weight: 600;
}

/* Progress bar section */
.deposit-progress-section {
    margin-top: 0.75rem;
}

.deposit-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.deposit-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #EAB459, #2ED573);
    border-radius: 3px;
    transition: width 0.5s ease;
    position: relative;
}

.deposit-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progressShine 2s ease-in-out infinite;
}

@keyframes progressShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.deposit-progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.deposit-date {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
}

.deposit-date i {
    font-size: 0.85rem;
}

.deposit-remaining {
    color: rgba(234, 180, 89, 0.8);
    font-size: 0.75rem;
    font-weight: 500;
}

.deposit-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.deposit-status-badge {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    background: rgba(46, 213, 115, 0.15);
    border: 1px solid rgba(46, 213, 115, 0.3);
    border-radius: 20px;
    color: #2ED573;
    font-size: 0.75rem;
    font-weight: 600;
}

.deposit-status-badge i {
    font-size: 0.85rem;
}

/* Focus visible for accessibility */
.staking-action-btn:focus-visible,
.staking-modal-btn:focus-visible,
.deposit-withdraw-btn:focus-visible,
.withdraw-btn:focus-visible {
    outline: 2px solid #EAB459;
    outline-offset: 2px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .staking-toast,
    .staking-modal-content,
    .withdraw-confirm-content,
    .deposit-earnings,
    .deposit-progress-fill::after,
    .empty-state-icon,
    .referral-claim-btn {
        animation: none !important;
        transition: opacity 0.2s ease !important;
    }
}

/* ========================================
   DESKTOP SPECIFIC STYLES (min-width: 768px)
   Fix for staking panel inside wallet card grid
   ======================================== */

@media screen and (min-width: 768px) {
    /* Ensure staking tab content fits within wallet card */
    #walletTabStaking {
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Stats grid - responsive sizing for constrained container */
    .staking-user-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .staking-stat {
        min-width: 0;
        padding: 0.875rem 0.5rem;
    }
    
    /* Labels must wrap to prevent clipping */
    .stat-label {
        font-size: 0.65rem;
        white-space: normal;
        word-wrap: break-word;
        line-height: 1.3;
    }
    
    /* Compact values */
    .stat-value {
        font-size: 1rem;
        word-break: break-word;
    }
    
    /* Referral stats - same treatment */
    .referral-stats .stat-label {
        font-size: 0.6rem;
    }
    
    .referral-stats .stat-value {
        font-size: 0.9rem;
    }
    
    .referral-claim-btn {
        font-size: 0.65rem;
        padding: 0.3rem 0.5rem;
    }
    
    /* Accordion compact */
    .staking-accordion-header {
        padding: 0.625rem;
        margin-bottom: 0.375rem;
    }
    
    .accordion-title {
        font-size: 0.8rem;
    }
    
    .accordion-title i {
        font-size: 0.9rem;
    }
    
    .accordion-icon {
        font-size: 1rem;
    }
    
    /* Empty state compact */
    .empty-state-header {
        padding: 0.5rem;
        gap: 0.5rem;
    }
    
    .empty-state-icon {
        font-size: 1.75rem;
    }
    
    .empty-state-title {
        font-size: 0.85rem;
    }
    
    .empty-state-description {
        font-size: 0.75rem;
    }
    
    /* Benefits compact */
    .benefit-chip {
        font-size: 0.7rem;
        padding: 0.375rem 0.5rem;
    }
    
    .benefit-chip i {
        font-size: 0.85rem;
    }
    
    /* Deposits section compact */
    .staking-deposits-section {
        margin-top: 0.5rem;
        padding: 0.625rem;
    }
    
    .deposits-header {
        font-size: 0.8rem;
        margin-bottom: 0.375rem;
        padding-bottom: 0.25rem;
    }
    
    .deposits-list {
        max-height: 200px;
        gap: 0.375rem;
    }
    
    .deposit-card {
        padding: 0.5rem;
        gap: 0.5rem;
    }
    
    .deposit-amount {
        font-size: 0.9rem;
    }
    
    .deposit-earnings {
        font-size: 0.75rem;
    }
    
    /* Deposit card - ensure actions are visible */
    .deposit-card {
        flex-direction: column;
        padding: 0.75rem;
        gap: 0.5rem;
    }
    
    /* Deposit actions must show both badge and button */
    .deposit-actions {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        gap: 0.5rem;
    }
    
    .deposit-withdraw-btn {
        min-height: 32px;
        min-width: 65px;
        padding: 0.3rem 0.5rem;
        font-size: 0.7rem;
        flex-shrink: 0;
    }
    
    .deposit-status-badge {
        font-size: 0.65rem;
        padding: 0.25rem 0.5rem;
    }
    
    /* Staking action button */
    .staking-actions-single .staking-action-btn {
        padding: 0.875rem;
        font-size: 0.9rem;
    }
    
    .staking-actions-single .staking-action-btn i {
        font-size: 1.1rem;
    }
}
