/* ===================================
   TRANSACTIONS PAGE STYLES
   =================================== */

/* Page Header */
.page-header {
    padding: 80px 0 60px;
    text-align: center;
    background: linear-gradient(180deg, #0D0E12 0%, rgba(26, 28, 36, 0.5) 100%);
}

.header-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 20px;
    color: #00D9FF;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.2px;
    margin-bottom: 24px;
}

.page-title {
    font-size: 48px;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #00D9FF, #8B5CF6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: 18px;
    color: #9CA3AF;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Connect Prompt */
.connect-prompt {
    padding: 80px 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prompt-card {
    background: linear-gradient(145deg, #1A1C24, #0D0E12);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 24px;
    padding: 60px 40px;
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.prompt-icon {
    margin-bottom: 24px;
}

.prompt-icon svg {
    color: #00D9FF;
}

.prompt-card h2 {
    font-size: 32px;
    margin-bottom: 16px;
    color: #FFFFFF;
}

.prompt-card p {
    font-size: 16px;
    color: #9CA3AF;
    margin-bottom: 32px;
    line-height: 1.6;
}

/* Statistics Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.stat-card {
    background: linear-gradient(145deg, #1A1C24, #0D0E12);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    gap: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, currentColor, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 217, 255, 0.3);
    box-shadow: 0 12px 32px rgba(0, 217, 255, 0.15);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card.earnings {
    color: #00FF9C;
}

.stat-card.spending {
    color: #FF6B6B;
}

.stat-card.balance {
    color: #00D9FF;
}

.stat-card.activity {
    color: #8B5CF6;
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.stat-card.earnings .stat-icon {
    background: rgba(0, 255, 156, 0.1);
    color: #00FF9C;
}

.stat-card.spending .stat-icon {
    background: rgba(255, 107, 107, 0.1);
    color: #FF6B6B;
}

.stat-card.balance .stat-icon {
    background: rgba(0, 217, 255, 0.1);
    color: #00D9FF;
}

.stat-card.activity .stat-icon {
    background: rgba(139, 92, 246, 0.1);
    color: #8B5CF6;
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 13px;
    color: #9CA3AF;
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 4px;
    font-family: 'Courier New', monospace;
}

.stat-value-usd {
    font-size: 16px;
    color: #6B7280;
    margin-bottom: 12px;
}

.stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.stat-badge.positive {
    background: rgba(0, 255, 156, 0.1);
    color: #00FF9C;
}

.stat-badge.negative {
    background: rgba(255, 107, 107, 0.1);
    color: #FF6B6B;
}

.stat-badge.neutral {
    background: rgba(0, 217, 255, 0.1);
    color: #00D9FF;
}

.stat-badge.info {
    background: rgba(139, 92, 246, 0.1);
    color: #8B5CF6;
}

/* Transaction Filters */
.transaction-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 20px;
}

/* Missing Payout Banner */
.missing-payout-banner {
    background: linear-gradient(135deg, rgba(255, 182, 32, 0.1), rgba(255, 107, 107, 0.1));
    border: 1px solid rgba(255, 182, 32, 0.3);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: 0 4px 16px rgba(255, 182, 32, 0.1);
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.banner-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 182, 32, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFB020;
    flex-shrink: 0;
}

.banner-text {
    flex: 1;
    min-width: 250px;
}

.banner-text h3 {
    font-size: 18px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 4px 0;
}

.banner-text p {
    font-size: 14px;
    color: #D1D5DB;
    margin: 0;
    line-height: 1.5;
}

.btn-claim {
    padding: 12px 24px;
    background: linear-gradient(135deg, #FFB020, #FF6B6B);
    border: none;
    border-radius: 10px;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(255, 182, 32, 0.3);
    flex-shrink: 0;
}

.btn-claim:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 182, 32, 0.4);
}

.btn-claim svg {
    width: 20px;
    height: 20px;
}

.transaction-filters .section-title {
    font-size: 28px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0;
}

.filter-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #1A1C24;
    border: 1px solid #2A2D3A;
    border-radius: 10px;
    color: #9CA3AF;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: #00D9FF;
    color: #00D9FF;
}

.filter-btn.active {
    background: linear-gradient(135deg, #00D9FF, #8B5CF6);
    border-color: transparent;
    color: #FFFFFF;
}

.filter-btn svg {
    width: 16px;
    height: 16px;
}

/* Loading State */
.transactions-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    gap: 20px;
}

.transactions-loading.hidden {
    display: none;
}

.transactions-loading p {
    color: #9CA3AF;
    font-size: 16px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-state.hidden {
    display: none;
}

.empty-icon {
    margin-bottom: 24px;
}

.empty-icon svg {
    color: #6B7280;
}

.empty-state h3 {
    font-size: 24px;
    color: #FFFFFF;
    margin-bottom: 12px;
}

.empty-state p {
    font-size: 16px;
    color: #9CA3AF;
    margin-bottom: 32px;
    line-height: 1.6;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Transactions List */
.transactions-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.transactions-list.hidden {
    display: none;
}

.transaction-card {
    background: linear-gradient(145deg, #1A1C24, #0D0E12);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.transaction-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: currentColor;
}

.transaction-card.earning {
    color: #00FF9C;
}

.transaction-card.payment {
    color: #FF6B6B;
}

.transaction-card:hover {
    transform: translateX(4px);
    border-color: rgba(0, 217, 255, 0.3);
    box-shadow: 0 8px 24px rgba(0, 217, 255, 0.1);
}

.transaction-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.transaction-card.earning .transaction-icon {
    background: rgba(0, 255, 156, 0.1);
    color: #00FF9C;
}

.transaction-card.payment .transaction-icon {
    background: rgba(255, 107, 107, 0.1);
    color: #FF6B6B;
}

.transaction-details {
    flex: 1;
    min-width: 0;
}

.transaction-type {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
}

.transaction-card.earning .transaction-type {
    color: #00FF9C;
}

.transaction-card.payment .transaction-type {
    color: #FF6B6B;
}

.transaction-description {
    font-size: 16px;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 4px;
}

.transaction-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.transaction-date {
    font-size: 13px;
    color: #6B7280;
    display: flex;
    align-items: center;
    gap: 4px;
}

.transaction-link {
    font-size: 13px;
    color: #00D9FF;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.3s ease;
}

.transaction-link:hover {
    color: #00FF9C;
}

.transaction-amount {
    text-align: right;
    flex-shrink: 0;
}

.amount-bnb {
    font-size: 20px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    margin-bottom: 4px;
}

.transaction-card.earning .amount-bnb {
    color: #00FF9C;
}

.transaction-card.payment .amount-bnb {
    color: #FF6B6B;
}

.amount-usd {
    font-size: 14px;
    color: #6B7280;
}

.commission-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    color: #8B5CF6;
}

/* Transactions Content */
.transactions-content {
    padding: 40px 0 80px;
}

.transactions-content.hidden {
    display: none;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 60px 0 40px;
    }

    .page-title {
        font-size: 36px;
    }

    .page-subtitle {
        font-size: 16px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .stat-card {
        padding: 20px;
    }

    .stat-icon {
        width: 48px;
        height: 48px;
    }

    .stat-value {
        font-size: 24px;
    }

    .missing-payout-banner {
        padding: 20px;
    }

    .banner-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-claim {
        width: 100%;
        justify-content: center;
    }

    .transaction-filters {
        flex-direction: column;
        align-items: flex-start;
    }

    .transaction-filters .section-title {
        font-size: 24px;
    }

    .filter-buttons {
        width: 100%;
        justify-content: flex-start;
    }

    .transaction-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }

    .transaction-details {
        width: 100%;
    }

    .transaction-amount {
        text-align: left;
        width: 100%;
    }

    .transaction-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .prompt-card {
        padding: 40px 30px;
    }

    .prompt-card h2 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 48px 0 32px;
    }

    .page-title {
        font-size: 28px;
    }

    .page-subtitle {
        font-size: 14px;
    }

    .stat-card {
        padding: 16px;
        gap: 16px;
    }

    .stat-icon {
        width: 44px;
        height: 44px;
    }

    .stat-value {
        font-size: 20px;
    }

    .stat-value-usd {
        font-size: 14px;
    }

    .missing-payout-banner {
        padding: 16px;
    }

    .banner-icon {
        width: 40px;
        height: 40px;
    }

    .banner-text h3 {
        font-size: 16px;
    }

    .banner-text p {
        font-size: 13px;
    }

    .transaction-filters .section-title {
        font-size: 20px;
    }

    .filter-btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    .transaction-card {
        padding: 16px;
    }

    .transaction-icon {
        width: 48px;
        height: 48px;
    }

    .transaction-description {
        font-size: 14px;
    }

    .amount-bnb {
        font-size: 18px;
    }

    .amount-usd {
        font-size: 13px;
    }

    .prompt-card {
        padding: 32px 24px;
    }

    .prompt-card h2 {
        font-size: 24px;
    }

    .prompt-card p {
        font-size: 14px;
    }

    .prompt-icon svg {
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 359px) {
    .page-title {
        font-size: 24px;
    }

    .stats-grid {
        gap: 12px;
    }

    .stat-value {
        font-size: 18px;
    }

    .filter-buttons {
        flex-direction: column;
        width: 100%;
    }

    .filter-btn {
        width: 100%;
        justify-content: center;
    }
}