/* Theme Variables */
:root {
    /* Brand Colors */
    --primary-color: #427770; /* Booty Bay */
    --secondary-color: #6caaa9; /* Aqua Sea */
    --accent-color: #a5e4da; /* Spinnaker */
    
    /* UI Colors */
    --bg-primary: #ffffff; /* Pure White */
    --bg-secondary: #f0f4f5; /* Very soft light gray-blue */
    --text-primary: #04262b; /* Deep Navy */
    --text-secondary: #445c5c; /* Softer, elegant secondary text */
    --border-color: #cdd8d8; /* Light border, clean look */
    
    /* Interactive States */
    --hover-bg: #e1f2f1; /* Very soft aqua for hover */
    --active-bg: #84c4bb; /* Booty Bay */
    --shadow-color: rgba(4, 38, 43, 0.08); /* Very light soft shadow */
    
    /* Additional Variables */
    --gradient-primary: linear-gradient(135deg, #427770, #6caaa9);
    --gradient-success: linear-gradient(135deg, #a5e4da, #6caaa9);
    --warning-color: #ff9f80; /* Soft Peach Warning */
}

[data-theme="dark"] {
    /* Brand Colors */
    --primary-color: #84c4bb; /* Booty Bay */
    --secondary-color: #6caaa9; /* Aqua Sea */
    --accent-color: #a5e4da; /* Spinnaker */
    
    /* UI Colors */
    --bg-primary: #0b1c1e; /* Deep neutral dark, very elegant */
    --bg-secondary: #16282a; /* Soft dark for sections/cards */
    --text-primary: #eff9f9; /* Very soft almost white text */
    --text-secondary: #9ec3c3; /* Soft muted secondary text */
    --border-color: #355c5e; /* Muted teal-gray border */
    
    /* Interactive States */
    --hover-bg: #1d3c3f; /* Slightly lighter hover */
    --active-bg: #6caaa9; /* Aqua Sea */
    --shadow-color: rgba(0, 0, 0, 0.5); /* Proper dark mode shadow */
    
    /* Additional Variables */
    --gradient-primary: linear-gradient(135deg, #84c4bb, #6caaa9);
    --gradient-success: linear-gradient(135deg, #a5e4da, #6caaa9);
    --warning-color: #ffb285; /* Soft Warm Warning */
}

/* General Styling */
body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    padding-top: 76px;
}

/* Credits Hero Section */
.credits-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 4rem 0;
    color: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.credits-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(4, 38, 43, 0.95), rgba(4, 38, 43, 0.8));
    z-index: 1;
}

.credits-hero .container {
    position: relative;
    z-index: 2;
}

.credits-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.credits-hero .lead {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.current-balance {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.current-balance h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.balance-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
}

.credit-illustration {
    text-align: center;
}

.credit-illustration i {
    font-size: 8rem;
    color: var(--accent-color);
    opacity: 0.8;
}

/* Credit Plans Section */
.credit-plans {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 600;
}

.plan-card {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 12px var(--shadow-color);
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.plan-card:hover {
    transform: translateY(-5px);
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.plan-credits {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.plan-price {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.plan-features li i {
    color: var(--primary-color);
}

.btn-purchase {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--bg-primary);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: auto;
}

.btn-purchase:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(4, 38, 43, 0.2);
}

/* Transaction History Section */
.transaction-history {
    padding: 4rem 0;
    background: var(--bg-primary);
}

.table {
    color: var(--text-primary);
}

.table thead th {
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
}

.table tbody tr {
    border-bottom: 1px solid var(--border-color);
}

.table tbody tr:last-child {
    border-bottom: none;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-completed {
    background: rgba(165, 228, 218, 0.2);
    color: var(--primary-color);
}

.status-pending {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.status-failed {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

/* Responsive Design */
@media (max-width: 991px) {
    .credits-hero {
        padding: 3rem 0;
    }

    .credits-hero h1 {
        font-size: 2rem;
    }

    .credit-illustration i {
        font-size: 6rem;
    }
}

@media (max-width: 768px) {
    .credits-hero {
        padding: 2rem 0;
    }

    .credits-hero h1 {
        font-size: 1.75rem;
    }

    .balance-amount {
        font-size: 1.5rem;
    }

    .plan-card {
        padding: 1.5rem;
    }

    .plan-credits {
        font-size: 2rem;
    }
} 