/* ===== STAKING PAGE STYLES ===== */
:root {
    --staking-primary: #0A84FF;
    --staking-secondary: #00D4AA;
    --staking-success: #10B981;
    --staking-warning: #F59E0B;
    --staking-danger: #EF4444;
    --staking-light: #F8FAFC;
    --staking-dark: #121826;
    --staking-gray: #64748B;
    --staking-border: rgba(100, 116, 139, 0.2);
}

.staking-container {
    padding: 2rem 0;
    min-height: calc(100vh - 300px);
}

/* Staking Header */
.staking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--staking-border);
}

.header-left {
    flex: 1;
}

.staking-title {
    font-size: 2.5rem;
    color: var(--staking-dark);
    margin-bottom: 0.5rem;
}

.staking-subtitle {
    color: var(--staking-gray);
    font-size: 1.1rem;
    max-width: 600px;
}

.staking-stats {
    display: flex;
    gap: 1rem;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    min-width: 200px;
}

.stat-card.large {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    min-width: 280px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--staking-primary), var(--staking-secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--staking-gray);
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--staking-dark);
}

.stat-change {
    font-size: 0.875rem;
    font-weight: 500;
}

.stat-change.positive {
    color: var(--staking-success);
}

.stat-change.negative {
    color: var(--staking-danger);
}

.stat-content {
    width: 100%;
}

.stat-chart {
    width: 100%;
    height: 60px;
    margin-top: 1rem;
}

/* Staking Tabs */
.staking-tabs {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.tabs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--staking-border);
    background: var(--staking-light);
}

.tabs-list {
    display: flex;
    gap: 0.5rem;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--staking-gray);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background: white;
    color: var(--staking-primary);
}

.tab-btn.active {
    background: var(--staking-primary);
    color: white;
    border-color: var(--staking-primary);
}

.tab-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-bar {
    position: relative;
}

.search-bar i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--staking-gray);
}

.search-bar input {
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 1px solid var(--staking-border);
    border-radius: 8px;
    width: 250px;
    font-size: 0.95rem;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--staking-primary);
}

.tab-content {
    display: none;
    padding: 2rem;
}

.tab-content.active {
    display: block;
}

/* Staking Pool Cards */
.pools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.staking-pool-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--staking-border);
    transition: all 0.3s ease;
    position: relative;
}

.staking-pool-card.premium {
    border: 2px solid var(--staking-primary);
}

.staking-pool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.pool-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--staking-primary), var(--staking-secondary));
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.pool-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.pool-icon {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.crypto-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
}

.crypto-icon.eth { background: linear-gradient(135deg, #627EEA, #627EEA); }
.crypto-icon.ada { background: linear-gradient(135deg, #0033AD, #0033AD); }
.crypto-icon.dot { background: linear-gradient(135deg, #E6007A, #E6007A); }
.crypto-icon.sol { background: linear-gradient(135deg, #00FFA3, #DC1FFF); }
.crypto-icon.bnb { background: linear-gradient(135deg, #F0B90B, #F0B90B); }
.crypto-icon.avax { background: linear-gradient(135deg, #E84142, #E84142); }

.pool-info {
    display: flex;
    flex-direction: column;
}

.pool-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--staking-dark);
    margin-bottom: 0.25rem;
}

.pool-symbol {
    color: var(--staking-gray);
    font-size: 0.875rem;
}

.pool-apy {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.apy-label {
    font-size: 0.875rem;
    color: var(--staking-gray);
    margin-bottom: 0.25rem;
}

.apy-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--staking-success);
}

.pool-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.detail {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 0.875rem;
    color: var(--staking-gray);
    margin-bottom: 0.25rem;
}

.detail-value {
    font-weight: 600;
    color: var(--staking-dark);
}

.pool-progress {
    margin-bottom: 1.5rem;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.progress-label {
    font-size: 0.875rem;
    color: var(--staking-gray);
}

.progress-value {
    font-weight: 600;
    color: var(--staking-dark);
}

.progress-bar {
    height: 8px;
    background: var(--staking-light);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--staking-primary), var(--staking-secondary));
    border-radius: 4px;
}

.pool-actions {
    display: flex;
    gap: 0.75rem;
}

.pool-actions .btn {
    flex: 1;
}

/* My Staking Tab */
.my-staking-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.my-stats {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1.5rem;
}

.positions-table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.positions-table table {
    width: 100%;
    border-collapse: collapse;
}

.positions-table th {
    text-align: left;
    padding: 1.25rem 1.5rem;
    background: var(--staking-light);
    color: var(--staking-gray);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.positions-table td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--staking-border);
}

.positions-table tr:hover {
    background: var(--staking-light);
}

.asset-cell {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.asset-info {
    display: flex;
    flex-direction: column;
}

.asset-name {
    font-weight: 600;
    color: var(--staking-dark);
}

.asset-symbol {
    color: var(--staking-gray);
    font-size: 0.875rem;
}

.amount-cell {
    display: flex;
    flex-direction: column;
}

.amount {
    font-weight: 600;
    color: var(--staking-dark);
}

.value {
    color: var(--staking-gray);
    font-size: 0.875rem;
}

.apy-badge {
    padding: 0.25rem 0.75rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 20px;
    color: var(--staking-success);
    font-weight: 600;
    font-size: 0.875rem;
}

.date-cell {
    font-weight: 500;
    color: var(--staking-dark);
}

.rewards-cell {
    display: flex;
    flex-direction: column;
}

.rewards {
    font-weight: 600;
    color: var(--staking-success);
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    width: 36px;
    height: 36px;
    border: 1px solid var(--staking-border);
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--staking-gray);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    border-color: var(--staking-primary);
    color: var(--staking-primary);
    transform: translateY(-1px);
}

/* Rewards History Tab */
.rewards-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.rewards-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.summary-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.summary-icon {
    width: 48px;
    height: 48px;
    background: var(--staking-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--staking-primary);
    font-size: 1.25rem;
}

.summary-info {
    display: flex;
    flex-direction: column;
}

.summary-label {
    font-size: 0.875rem;
    color: var(--staking-gray);
    margin-bottom: 0.25rem;
}

.summary-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--staking-dark);
}

.rewards-history {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--staking-border);
}

.table-header h3 {
    font-size: 1.25rem;
    color: var(--staking-dark);
}

.table-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.filter-select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--staking-border);
    border-radius: 8px;
    background: white;
    color: var(--staking-dark);
}

.table-container {
    overflow-x: auto;
}

.rewards-history table {
    width: 100%;
    border-collapse: collapse;
}

.rewards-history th {
    text-align: left;
    padding: 1.25rem 1.5rem;
    background: var(--staking-light);
    color: var(--staking-gray);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rewards-history td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--staking-border);
}

.rewards-history tr:hover {
    background: var(--staking-light);
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--staking-success);
}

.badge.warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--staking-warning);
}

.status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status.completed {
    background: rgba(16, 185, 129, 0.1);
    color: var(--staking-success);
}

.status.pending {
    background: rgba(245, 158, 11, 0.1);
    color: var(--staking-warning);
}

/* Staking Calculator */
.staking-calculator {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-top: 3rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.section-title {
    font-size: 1.75rem;
    color: var(--staking-dark);
    margin-bottom: 2rem;
}

.calculator-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.calculator-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--staking-dark);
}

.form-control {
    padding: 0.75rem 1rem;
    border: 1px solid var(--staking-border);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--staking-primary);
    box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.1);
}

.range-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    color: var(--staking-gray);
    font-size: 0.875rem;
}

.calculator-results {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 12px;
    padding: 2rem;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--staking-border);
}

.result-header h3 {
    font-size: 1.25rem;
    color: var(--staking-dark);
}

.result-apy {
    padding: 0.5rem 1rem;
    background: var(--staking-success);
    color: white;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
}

.result-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: 8px;
}

.result-label {
    color: var(--staking-gray);
}

.result-value {
    font-weight: 700;
    color: var(--staking-dark);
    font-size: 1.1rem;
}

.result-chart {
    height: 200px;
    background: white;
    border-radius: 8px;
    padding: 1rem;
}

.chart-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 1rem;
}

.chart-bars {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 2rem;
    height: 80%;
}

.chart-bar {
    width: 40px;
    border-radius: 8px 8px 0 0;
}

.chart-labels {
    display: flex;
    justify-content: center;
    gap: 2rem;
    color: var(--staking-gray);
    font-size: 0.875rem;
}

/* Footer */
.footer {
    background: var(--staking-light);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-brand .logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--staking-dark);
}

.footer-brand p {
    color: var(--staking-gray);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--staking-dark);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.social-links a:hover {
    background: var(--staking-primary);
    color: white;
    transform: translateY(-2px);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.link-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.link-group h4 {
    color: var(--staking-dark);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.link-group a {
    color: var(--staking-gray);
    text-decoration: none;
    transition: all 0.3s ease;
}

.link-group a:hover {
    color: var(--staking-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--staking-border);
    color: var(--staking-gray);
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

.disclaimer {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .pools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .my-stats {
        grid-template-columns: 1fr;
    }
    
    .rewards-summary {
        grid-template-columns: 1fr;
    }
    
    .calculator-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .staking-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .staking-stats {
        width: 100%;
        flex-direction: column;
    }
    
    .stat-card {
        width: 100%;
    }
    
    .tabs-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .tabs-list {
        justify-content: center;
    }
    
    .tab-actions {
        flex-direction: column;
    }
    
    .search-bar input {
        width: 100%;
    }
    
    .pools-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
}



















