/* Billing Page Styles - InstaLab Lab Theme */

/* Background Elements */
.billing-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(1200px 800px at 20% -10%, rgba(20,255,114,0.2), transparent),
                radial-gradient(1000px 900px at 120% 10%, rgba(0,255,136,0.15), transparent),
                linear-gradient(180deg, #071b0f 0%, #03140b 100%);
    z-index: -1;
    pointer-events: none;
}

.billing-background .floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.billing-background .shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(0, 212, 255, 0.1), rgba(230, 193, 74, 0.1));
    animation: float 20s infinite linear;
}

.billing-background .shape-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.billing-background .shape-2 {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 15%;
    animation-delay: 5s;
}

.billing-background .shape-3 {
    width: 60px;
    height: 60px;
    top: 80%;
    left: 20%;
    animation-delay: 10s;
}

.billing-background .shape-4 {
    width: 100px;
    height: 100px;
    top: 40%;
    right: 30%;
    animation-delay: 15s;
}

.billing-background .shape-5 {
    width: 70px;
    height: 70px;
    top: 10%;
    right: 50%;
    animation-delay: 8s;
}

.billing-background .shape-6 {
    width: 90px;
    height: 90px;
    bottom: 20%;
    left: 60%;
    animation-delay: 12s;
}

.billing-background .gradient-orbs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.billing-background .orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    animation: pulse 8s infinite ease-in-out;
}

.billing-background .orb-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    left: -150px;
    animation-delay: 0s;
}

.billing-background .orb-2 {
    width: 200px;
    height: 200px;
    top: 50%;
    right: -100px;
    animation-delay: 2s;
}

.billing-background .orb-3 {
    width: 250px;
    height: 250px;
    bottom: -125px;
    left: 30%;
    animation-delay: 4s;
}

.billing-background .orb-4 {
    width: 180px;
    height: 180px;
    top: 30%;
    right: 20%;
    animation-delay: 6s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.6; }
}

/* Main Container */
.billing-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 2rem 40px;
    min-height: 100vh;
}

/* Billing Header */
.billing-header {
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease-out;
    text-align: center;
}

.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.header-left {
    flex: 1;
    text-align: center;
}

.billing-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-align: center;
    background: linear-gradient(90deg, #e6c14a, #fff1a8, #00ff88, #e6c14a);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleShine 6s linear infinite;
}

.title-icon {
    font-size: 2.5rem;
    margin-right: 15px;
    display: inline-block;
    animation: bounce 2s infinite;
}

.billing-subtitle {
    font-size: 1.2rem;
    color: #b8f5d3;
    font-weight: 400;
    line-height: 1.6;
    text-align: center;
}



/* Billing Tabs */
.billing-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    background: rgba(7, 27, 15, 0.8);
    padding: 8px;
    border-radius: 15px;
    border: 1px solid rgba(20, 255, 114, 0.2);
    backdrop-filter: blur(20px);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    border: none;
    background: transparent;
    color: #b8f5d3;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.tab-btn:hover::before {
    left: 100%;
}

.tab-btn:hover {
    color: #e9ffee;
    background: rgba(0, 255, 136, 0.1);
    transform: translateY(-2px);
}

.tab-btn.active {
    background: linear-gradient(45deg, #00ff88, #e6c14a);
    color: #071b0f;
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.3);
    transform: translateY(-2px);
}

.tab-icon {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Tab Content */
.tab-content {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* Overview Tab */
.overview-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 40px;
    width: 100%;
}

.plan-card {
    background: linear-gradient(135deg, rgba(7, 27, 15, 0.9) 0%, rgba(3, 20, 11, 0.9) 100%);
    border: 1px solid rgba(20, 255, 114, 0.3);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00ff88, #e6c14a);
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 255, 136, 0.2);
    border-color: #00ff88;
}

.current-plan {
    border-color: #e6c14a;
    box-shadow: 0 0 30px rgba(230, 193, 74, 0.2);
}

.plan-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.plan-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background: linear-gradient(45deg, #00ff88, #e6c14a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #071b0f;
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.3);
}

.plan-info {
    flex: 1;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e9ffee;
    margin-bottom: 5px;
}

.plan-description {
    color: #b8f5d3;
    font-size: 1rem;
}

.plan-status {
    display: flex;
    align-items: center;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.active {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.plan-details {
    margin-bottom: 25px;
}

.plan-price {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin-bottom: 20px;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: #e9ffee;
}

.price-period {
    font-size: 1rem;
    color: #b8f5d3;
}

.plan-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-item {
    display: flex;
    align-items: center;
    
    color: #b8f5d3;
    font-size: 0.95rem;
}

.feature-item i {
    color: #00ff88;
    font-size: 0.9rem;
}

.plan-actions {
    display: flex;
    gap: 15px;
}

/* Cards */
.billing-summary-card,
.usage-stats-card {
    background: linear-gradient(135deg, rgba(7, 27, 15, 0.9) 0%, rgba(3, 20, 11, 0.9) 100%);
    border: 1px solid rgba(20, 255, 114, 0.3);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.billing-summary-card::before,
.usage-stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00ff88, #e6c14a);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #e9ffee;
}

.card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(0, 255, 136, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00ff88;
    font-size: 1.1rem;
}

/* Summary Content */
.summary-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(20, 255, 114, 0.1);
}

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

.summary-item.total {
    font-weight: 700;
    font-size: 1.1rem;
    color: #e9ffee;
    padding-top: 20px;
    border-top: 2px solid rgba(0, 255, 136, 0.3);
    border-bottom: none;
}

.summary-label {
    color: #b8f5d3;
    font-size: 0.95rem;
}

.summary-value {
    color: #e9ffee;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Usage Content */
.usage-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.usage-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.usage-label {
    color: #b8f5d3;
    font-size: 0.9rem;
    font-weight: 500;
}

.usage-bar {
    width: 100%;
    height: 8px;
    background: rgba(20, 255, 114, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.usage-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ff88, #e6c14a);
    border-radius: 4px;
    transition: width 0.8s ease;
    position: relative;
}

.usage-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: shimmer 2s infinite;
}

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

.usage-value {
    color: #e9ffee;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: right;
}

/* Quick Actions */
.actions-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}


/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(45deg, #00ff88, #e6c14a);
    color: #071b0f;
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 255, 136, 0.4);
}

.btn-secondary {
    background: rgba(0, 255, 136, 0.1);
    color: #00ff88;
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.btn-secondary:hover {
    background: rgba(0, 255, 136, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.2);
}

.btn-danger {
    background: rgba(255, 68, 68, 0.1);
    color: #ff4444;
    border: 1px solid rgba(255, 68, 68, 0.3);
}

.btn-danger:hover {
    background: rgba(255, 68, 68, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 68, 68, 0.2);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes titleShine {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .billing-container {
        padding: 120px 1.5rem 40px;
    }
    
    .overview-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
    }
}

/* Tablet breakpoint for subscription options */
@media (max-width: 1024px) and (min-width: 769px) {
    .subscription-options {
        grid-template-columns: 1fr 1fr !important;
        gap: 25px !important;
        display: grid !important;
        width: 100% !important;
        max-width: 800px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    .subscription-option {
        width: 100% !important;
        min-width: 0 !important;
        flex: 1 1 auto !important;
    }
    
    /* Force grid layout for subscription tab */
    #subscription-tab .subscription-options {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 25px !important;
    }
}

@media (max-width: 768px) {
    .billing-container {
        padding: 100px 1rem 30px;
    }
    
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    
    .billing-title {
        font-size: 2.2rem;
    }
    
    .billing-tabs {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .tab-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .overview-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .plan-card,
    .billing-summary-card,
    .usage-stats-card {
        padding: 25px;
    }
}

/* Subscription Tab */
.subscription-content {
    animation: fadeInUp 0.8s ease-out;
}

.subscription-header {
    text-align: center;
    margin-bottom: 40px;
}

.subscription-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #e9ffee;
    margin-bottom: 15px;
    background: linear-gradient(90deg, #e6c14a, #fff1a8, #00ff88, #e6c14a);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleShine 6s linear infinite;
}

.subscription-header p {
    color: #b8f5d3;
    font-size: 1.1rem;
}

.subscription-options {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 30px;
    margin-bottom: 40px;
    align-items: stretch;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Ensure desktop layout works properly */
@media (min-width: 1025px) {
    .subscription-options {
        grid-template-columns: 1fr 1fr 1fr !important;
        display: grid !important;
    }
}

.subscription-option {
    background: linear-gradient(135deg, rgba(7, 27, 15, 0.9) 0%, rgba(3, 20, 11, 0.9) 100%);
    border: 1px solid rgba(20, 255, 114, 0.3);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(20px);
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    min-width: 0;
}

.subscription-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00ff88, #e6c14a);
}

.subscription-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 255, 136, 0.2);
    border-color: #00ff88;
}

.subscription-option.current {
    border-color: #e6c14a;
    box-shadow: 0 0 30px rgba(230, 193, 74, 0.2);
}

.current-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(45deg, #e6c14a, #ffd700);
    color: #071b0f;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.popular-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(45deg, #00ff88, #e6c14a);
    color: #071b0f;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.option-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    
}

.option-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: transparent;
    
    
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 20px;
    
}

.option-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e9ffee;
    margin-bottom: 10px;
}

.option-price {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin-bottom: 20px;
}

.option-features {
    display: flex;
    flex-direction: column;
    
    
    flex-grow: 1;
}

.option-btn {
    width: 100%;
    padding: 15px 25px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
}

.option-btn:not(:disabled) {
    background: linear-gradient(45deg, #00ff88, #e6c14a);
    color: #071b0f;
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.3);
}

.option-btn:not(:disabled):hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 255, 136, 0.4);
}

.option-btn:disabled {
    background: rgba(184, 245, 211, 0.1);
    color: #b8f5d3;
    cursor: not-allowed;
}

.option-btn.current {
    background: linear-gradient(45deg, #00ff88, #e6c14a);
    color: black;
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
    border: none;
    opacity: 0.8;
    cursor: not-allowed;
}

.option-btn.current:hover {
    transform: none;
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

.subscription-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Payment Methods Tab */
.payment-methods-content {
    animation: fadeInUp 0.8s ease-out;
}

.payment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.payment-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #e9ffee;
    background: linear-gradient(90deg, #e6c14a, #fff1a8, #00ff88, #e6c14a);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleShine 6s linear infinite;
}

.payment-methods-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.payment-method-card {
    background: linear-gradient(135deg, rgba(7, 27, 15, 0.9) 0%, rgba(3, 20, 11, 0.9) 100%);
    border: 1px solid rgba(20, 255, 114, 0.3);
    border-radius: 15px;
    padding: 25px;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.payment-method-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00ff88, #e6c14a);
}

.payment-method-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 255, 136, 0.2);
    border-color: #00ff88;
}

.payment-method-card.primary {
    border-color: #e6c14a;
    box-shadow: 0 0 25px rgba(230, 193, 74, 0.2);
}

.method-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.method-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(0, 255, 136, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #00ff88;
}

.method-info {
    flex: 1;
}

.method-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #e9ffee;
    margin-bottom: 5px;
}

.method-details {
    color: #b8f5d3;
    font-size: 0.9rem;
}

.method-status {
    display: flex;
    align-items: center;
}

.status-badge.primary {
    background: rgba(230, 193, 74, 0.2);
    color: #e6c14a;
    border: 1px solid rgba(230, 193, 74, 0.3);
}

.method-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.billing-address {
    background: linear-gradient(135deg, rgba(7, 27, 15, 0.9) 0%, rgba(3, 20, 11, 0.9) 100%);
    border: 1px solid rgba(20, 255, 114, 0.3);
    border-radius: 15px;
    padding: 25px;
    backdrop-filter: blur(20px);
}

.billing-address h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #e9ffee;
    margin-bottom: 20px;
}

.address-card {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.address-info {
    flex: 1;
}

.address-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e9ffee;
    margin-bottom: 8px;
}

.address-line {
    color: #b8f5d3;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

/* Invoices Tab */
.invoices-content {
    animation: fadeInUp 0.8s ease-out;
}

.invoices-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.invoices-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #e9ffee;
    background: linear-gradient(90deg, #e6c14a, #fff1a8, #00ff88, #e6c14a);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleShine 6s linear infinite;
}

.invoices-filters {
    display: flex;
    gap: 15px;
}

.filter-select {
    padding: 10px 15px;
    border: 1px solid rgba(20, 255, 114, 0.3);
    background: rgba(0, 255, 136, 0.05);
    color: #b8f5d3;
    border-radius: 10px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #00ff88;
    background: rgba(0, 255, 136, 0.1);
}

.invoices-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.invoice-item {
    background: linear-gradient(135deg, rgba(7, 27, 15, 0.9) 0%, rgba(3, 20, 11, 0.9) 100%);
    border: 1px solid rgba(20, 255, 114, 0.3);
    border-radius: 15px;
    padding: 25px;
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.invoice-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00ff88, #e6c14a);
}

.invoice-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 255, 136, 0.2);
    border-color: #00ff88;
}

.invoice-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.invoice-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(0, 255, 136, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #00ff88;
}

.invoice-details {
    flex: 1;
}

.invoice-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e9ffee;
    margin-bottom: 5px;
}

.invoice-date {
    color: #b8f5d3;
    font-size: 0.9rem;
    margin-bottom: 3px;
}

.invoice-id {
    color: #b8f5d3;
    font-size: 0.85rem;
    opacity: 0.8;
}

.invoice-amount {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    margin-right: 20px;
}

.amount {
    font-size: 1.3rem;
    font-weight: 700;
    color: #e9ffee;
}

.status.paid {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.invoice-actions {
    display: flex;
    gap: 10px;
}

/* Usage Tab */
.usage-content {
    animation: fadeInUp 0.8s ease-out;
}

.usage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.usage-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #e9ffee;
    background: linear-gradient(90deg, #e6c14a, #fff1a8, #00ff88, #e6c14a);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleShine 6s linear infinite;
}

.usage-period {
    display: flex;
    gap: 15px;
}

.period-select {
    padding: 10px 15px;
    border: 1px solid rgba(20, 255, 114, 0.3);
    background: rgba(0, 255, 136, 0.05);
    color: #b8f5d3;
    border-radius: 10px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.period-select:focus {
    outline: none;
    border-color: #00ff88;
    background: rgba(0, 255, 136, 0.1);
}

.usage-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.usage-stat-card {
    background: linear-gradient(135deg, rgba(7, 27, 15, 0.9) 0%, rgba(3, 20, 11, 0.9) 100%);
    border: 1px solid rgba(20, 255, 114, 0.3);
    border-radius: 15px;
    padding: 25px;
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.usage-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00ff88, #e6c14a);
}

.usage-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 255, 136, 0.2);
    border-color: #00ff88;
}

.stat-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.stat-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: rgba(0, 255, 136, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #00ff88;
}

.stat-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e9ffee;
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #e9ffee;
    text-align: center;
}

.stat-limit {
    color: #b8f5d3;
    font-size: 0.9rem;
    text-align: center;
}

.stat-progress {
    width: 100%;
}

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

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ff88, #e6c14a);
    border-radius: 4px;
    transition: width 0.8s ease;
    position: relative;
}

.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: shimmer 2s infinite;
}

.stat-percentage {
    color: #b8f5d3;
    font-size: 0.9rem;
    text-align: center;
    font-weight: 500;
}

.usage-chart {
    background: linear-gradient(135deg, rgba(7, 27, 15, 0.9) 0%, rgba(3, 20, 11, 0.9) 100%);
    border: 1px solid rgba(20, 255, 114, 0.3);
    border-radius: 15px;
    padding: 30px;
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.usage-chart::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00ff88, #e6c14a);
}

.usage-chart h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #e9ffee;
    margin-bottom: 25px;
}

.chart-container {
    width: 100%;
    height: 400px;
    position: relative;
}

#usage-chart {
    width: 100%;
    height: 100%;
}

@media (max-width: 480px) {
    .billing-title {
        font-size: 1.8rem;
    }
    
    .title-icon {
        font-size: 2rem;
        margin-right: 10px;
    }
    
    .billing-subtitle {
        font-size: 1rem;
    }
    
    .plan-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .plan-price {
        margin-bottom: 15px;
    }
    
    .price-amount {
        font-size: 2rem;
    }
    
    .subscription-options {
        grid-template-columns: 1fr !important;
        align-items: stretch;
    }
    
    .subscription-option {
        height: auto;
        min-height: 400px;
    }
    
    .payment-header,
    .invoices-header,
    .usage-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .invoice-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .invoice-amount {
        align-items: flex-start;
        margin-right: 0;
    }
    
    .usage-stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .billing-container {
        padding: 100px 0.8rem 30px;
    }
}

/* No Payment Methods State */
.no-payment-methods {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    background: rgba(10, 42, 26, 0.3);
    border: 2px dashed rgba(20, 255, 114, 0.3);
    border-radius: 16px;
    margin: 20px 0;
}

.no-methods-icon {
    font-size: 4rem;
    color: rgba(20, 255, 114, 0.5);
    margin-bottom: 20px;
}

.no-payment-methods h3 {
    color: #e9ffee;
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.no-payment-methods p {
    color: rgba(233, 255, 238, 0.7);
    font-size: 1rem;
    margin-bottom: 30px;
    max-width: 300px;
}

.no-payment-methods .btn {
    background: linear-gradient(135deg, #14ff72, #0bd25d);
    color: #071b0f;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.no-payment-methods .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(20, 255, 114, 0.3);
}

.no-payment-methods .btn i {
    font-size: 1.1rem;
}

/* Payment Modal Styles */
.payment-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.payment-modal {
    background: linear-gradient(135deg, #0a2a1a 0%, #071b0f 100%);
    border: 2px solid rgba(20, 255, 114, 0.3);
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease-out;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(20, 255, 114, 0.2);
}

.modal-header h3 {
    color: #e9ffee;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: #14ff72;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: #0bd25d;
    background: rgba(20, 255, 114, 0.1);
}

.modal-content {
    padding: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group label {
    display: block;
    color: #e9ffee;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(10, 42, 26, 0.5);
    border: 2px solid rgba(20, 255, 114, 0.2);
    border-radius: 8px;
    color: #e9ffee;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #14ff72;
    box-shadow: 0 0 0 3px rgba(20, 255, 114, 0.1);
}

.form-group input::placeholder {
    color: rgba(233, 255, 238, 0.5);
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(20, 255, 114, 0.2);
}

.form-actions .btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-actions .btn-secondary {
    background: rgba(233, 255, 238, 0.1);
    color: rgba(233, 255, 238, 0.8);
    border: 1px solid rgba(233, 255, 238, 0.3);
}

.form-actions .btn-secondary:hover {
    background: rgba(233, 255, 238, 0.2);
    color: #e9ffee;
}

.form-actions .btn-primary {
    background: linear-gradient(135deg, #14ff72, #0bd25d);
    color: #071b0f;
}

.form-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(20, 255, 114, 0.3);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .payment-modal {
        width: 95%;
        margin: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Limit Modal Message */
.limit-message {
    text-align: center;
    padding: 20px 0;
}

.limit-icon {
    font-size: 3rem;
    color: #e6c14a;
    margin-bottom: 20px;
}

.limit-message h4 {
    color: #e9ffee;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.limit-message p {
    color: rgba(233, 255, 238, 0.8);
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

/* Enhanced Invoice Styles */
.invoices-subtitle {
    color: rgba(233, 255, 238, 0.7);
    font-size: 1rem;
    margin-top: 8px;
    margin-bottom: 0;
}

.current-invoice-section {
    margin-bottom: 40px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #e9ffee;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(20, 255, 114, 0.3);
}

.section-title i {
    color: #14ff72;
    font-size: 1.2rem;
}

/* Current Invoice Card */
.invoice-card.current-invoice {
    background: linear-gradient(135deg, rgba(20, 255, 114, 0.1), rgba(0, 212, 255, 0.05));
    border: 2px solid rgba(20, 255, 114, 0.3);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.invoice-card.current-invoice::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #14ff72, #00d4ff, #e6c14a);
}

.invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(20, 255, 114, 0.2);
}

.invoice-title {
    color: #e9ffee;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.invoice-period {
    color: rgba(233, 255, 238, 0.8);
    font-size: 1rem;
    margin: 0 0 5px 0;
}

.invoice-id {
    color: rgba(233, 255, 238, 0.6);
    font-size: 0.9rem;
    margin: 0;
    font-family: 'Courier New', monospace;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.status-badge.paid {
    background: rgba(20, 255, 114, 0.2);
    color: #14ff72;
    border: 1px solid rgba(20, 255, 114, 0.4);
}

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

/* Purchase Items */
.purchase-items {
    margin-bottom: 25px;
}

.items-title {
    color: #e9ffee;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(20, 255, 114, 0.2);
}

.item-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.purchase-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(10, 42, 26, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(20, 255, 114, 0.1);
    transition: all 0.3s ease;
}

.purchase-item:hover {
    background: rgba(10, 42, 26, 0.5);
    border-color: rgba(20, 255, 114, 0.3);
    transform: translateY(-2px);
}

.item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.item-name {
    color: #e9ffee;
    font-weight: 600;
    font-size: 1rem;
}

.item-description {
    color: rgba(233, 255, 238, 0.7);
    font-size: 0.9rem;
}

.item-price {
    color: #14ff72;
    font-weight: 700;
    font-size: 1rem;
    min-width: 80px;
    text-align: right;
}

/* Invoice Summary */
.invoice-summary {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid rgba(20, 255, 114, 0.2);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(20, 255, 114, 0.1);
}

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

.summary-row.total {
    font-weight: 700;
    font-size: 1.1rem;
    padding-top: 15px;
    margin-top: 10px;
    border-top: 2px solid rgba(20, 255, 114, 0.3);
}

.summary-label {
    color: rgba(233, 255, 238, 0.8);
    font-size: 1rem;
}

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

.summary-row.total .summary-label {
    color: #e9ffee;
    font-size: 1.1rem;
}

.summary-row.total .summary-value {
    color: #14ff72;
    font-size: 1.2rem;
}

/* Invoice Footer */
.invoice-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(20, 255, 114, 0.2);
}

.invoice-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(233, 255, 238, 0.7);
    font-size: 0.9rem;
}

.invoice-date i {
    color: #14ff72;
    font-size: 0.8rem;
}

.invoice-actions {
    display: flex;
    gap: 12px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.action-btn.primary {
    background: linear-gradient(135deg, #14ff72, #0bd25d);
    color: #071b0f;
}

.action-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(20, 255, 114, 0.3);
}

.action-btn.secondary {
    background: rgba(233, 255, 238, 0.1);
    color: rgba(233, 255, 238, 0.9);
    border: 1px solid rgba(233, 255, 238, 0.3);
}

.action-btn.secondary:hover {
    background: rgba(233, 255, 238, 0.2);
    color: #e9ffee;
    border-color: rgba(233, 255, 238, 0.5);
}


/* Mobile Responsive for Invoice */
@media (max-width: 768px) {
    .invoice-card.current-invoice {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .invoice-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .invoice-footer {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .invoice-actions {
        width: 100%;
        justify-content: stretch;
    }
    
    .action-btn {
        flex: 1;
        justify-content: center;
    }
    
    
    .purchase-item {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .item-price {
        text-align: left;
        min-width: auto;
    }
}

/* Simplified Invoice Styles */
.current-invoice-section {
    margin-bottom: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: var(--lab-green);
}

.invoice-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 15px;
    padding: 25px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.invoice-info h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 5px 0;
}

.invoice-period {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-badge.paid {
    background: rgba(0, 184, 148, 0.2);
    color: var(--lab-green);
    border: 1px solid rgba(0, 184, 148, 0.3);
}

.purchase-summary {
    margin: 20px 0;
}

.plan-purchase {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(0, 212, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(0, 212, 255, 0.1);
}

.plan-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.plan-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--lab-green);
}

.invoice-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.invoice-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.invoice-date i {
    color: var(--lab-green);
}

/* Empty Invoice State */
.empty-invoice-state {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px dashed rgba(0, 212, 255, 0.3);
    border-radius: 20px;
    margin: 40px 0;
}

.empty-state-icon {
    font-size: 4rem;
    color: rgba(0, 212, 255, 0.5);
    margin-bottom: 20px;
}

.empty-state-icon i {
    animation: pulse 2s infinite;
}

.empty-invoice-state h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 15px 0;
}

.empty-invoice-state p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin: 0 0 30px 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.empty-state-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.empty-state-actions .btn {
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.empty-state-actions .btn-primary {
    background: linear-gradient(135deg, var(--lab-green), #0bd25d);
    color: var(--bg-primary);
    border: none;
}

.empty-state-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(20, 255, 114, 0.3);
}

.empty-state-actions .btn-secondary {
    background: rgba(0, 212, 255, 0.1);
    color: var(--lab-blue);
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.empty-state-actions .btn-secondary:hover {
    background: rgba(0, 212, 255, 0.2);
    transform: translateY(-2px);
}

/* All Invoices Section */
.all-invoices-section {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
}

.invoices-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.invoice-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}


.invoice-item-info {
    flex: 1;
}

.invoice-item-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 5px 0;
}

.invoice-item-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.invoice-item-amount {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    margin-right: 15px;
}

.invoice-item-amount .amount {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--lab-green);
}

.invoice-item-arrow {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}


/* Invoice Actions */
.invoice-actions {
    display: flex;
    gap: 10px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-outline {
    background: transparent;
    color: var(--lab-blue);
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.btn-outline:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .empty-state-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .empty-state-actions .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .invoice-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .invoice-item-amount {
        align-items: flex-start;
        margin-right: 0;
    }
    
    .invoice-item-arrow {
        align-self: flex-end;
    }
}

/* Loading State Styles */
.billing-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 40px 20px;
    text-align: center;
}

.loading-spinner {
    margin-bottom: 20px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(0, 255, 136, 0.2);
    border-top: 4px solid #00ff88;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-text {
    color: #b8f5d3;
    font-size: 16px;
    font-weight: 500;
    margin: 0;
}

/* Hide loading state when content is ready */
.billing-loading.hidden {
    display: none;
}

/* Show content when ready */
#overview-content.ready {
    display: grid !important;
}

/* Crypto Payment Refresh Button */
.btn-refresh-payment {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.btn-refresh-payment:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(20, 255, 114, 0.3);
}

.btn-refresh-payment:active {
    transform: translateY(0);
}

.btn-refresh-payment i {
    transition: transform 0.3s ease;
}

.btn-refresh-payment:hover i {
    transform: rotate(180deg);
}

/* Crypto payment indicator */
.invoice-item .fab.fa-bitcoin {
    margin-right: 4px;
}

/* License Key Display */
.license-key-display {
    animation: slideIn 0.3s ease;
}

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

.btn-copy-key:hover {
    background: rgba(20, 255, 114, 0.3) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(20, 255, 114, 0.2);
}

.btn-copy-key:active {
    transform: translateY(0);
}

/* License Keys Tab */
.license-keys-content {
    padding: 20px;
}

.license-keys-header {
    margin-bottom: 30px;
}

.license-keys-header h2 {
    color: #e9ffee;
    font-size: 28px;
    margin-bottom: 8px;
}

.license-keys-subtitle {
    color: rgba(233, 255, 238, 0.7);
    font-size: 14px;
}

.license-keys-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.license-key-card {
    background: rgba(20, 255, 114, 0.05);
    border: 1px solid rgba(20, 255, 114, 0.2);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
}

.license-key-card:hover {
    border-color: rgba(20, 255, 114, 0.4);
    box-shadow: 0 4px 16px rgba(20, 255, 114, 0.1);
    transform: translateY(-2px);
}

.key-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(20, 255, 114, 0.1);
}

.key-plan {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #14ff72;
    font-weight: 600;
    font-size: 16px;
}

.key-plan i {
    color: #e6c14a;
}

.key-status {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.key-status.used {
    background: rgba(20, 255, 114, 0.1);
    color: #14ff72;
}

.key-status.available {
    background: rgba(230, 193, 74, 0.1);
    color: #e6c14a;
}

.key-value-container {
    margin-bottom: 20px;
}

.key-label {
    color: rgba(233, 255, 238, 0.7);
    font-size: 12px;
    margin-bottom: 8px;
}

.key-value {
    font-family: 'Courier New', monospace;
    font-size: 18px;
    font-weight: 600;
    color: #14ff72;
    background: rgba(20, 255, 114, 0.05);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(20, 255, 114, 0.2);
    word-break: break-all;
    margin-bottom: 12px;
}

.btn-copy-key-card {
    width: 100%;
    padding: 10px;
    background: rgba(20, 255, 114, 0.1);
    border: 1px solid rgba(20, 255, 114, 0.3);
    border-radius: 8px;
    color: #14ff72;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-copy-key-card:hover {
    background: rgba(20, 255, 114, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(20, 255, 114, 0.2);
}

.btn-copy-key-card:active {
    transform: translateY(0);
}

.key-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.meta-label {
    color: rgba(233, 255, 238, 0.6);
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-value {
    color: #e9ffee;
    font-weight: 500;
}

@media (max-width: 768px) {
    .license-keys-grid {
        grid-template-columns: 1fr;
    }
}