/* Billing Page Styles - Lucius Component */

/* Page Base */
.billing-page {
    background: #0a0a0a;
    color: #e5e5e5;
    font-family: 'Inter', -apple-system, sans-serif;
    min-height: 100vh;
}

.billing-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 48px 24px;
}

/* Header */
.billing-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.billing-header .brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.billing-header .brand img {
    width: 48px;
    height: 48px;
    filter: drop-shadow(0 0 20px rgba(255, 147, 41, 0.5));
}

.billing-header .brand h1 {
    font-family: 'Orbitron', monospace;
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ff9329, #ff6b4a);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 3px;
    margin: 0;
}

.billing-header .brand p {
    font-size: 11px;
    color: #666;
    margin: 2px 0 0;
}

.manage-btn {
    background: rgba(255, 147, 41, 0.1);
    border: 1px solid rgba(255, 147, 41, 0.3);
    color: #ff9329;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.manage-btn:hover {
    background: rgba(255, 147, 41, 0.2);
    transform: translateY(-1px);
}

/* Credit Section */
.credit-section {
    background: linear-gradient(135deg, rgba(255, 147, 41, 0.08), rgba(255, 107, 74, 0.04));
    border: 1px solid rgba(255, 147, 41, 0.2);
    border-radius: 12px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.credit-info {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.credit-label {
    font-size: 10px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.credit-amount {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    font-weight: 900;
    color: #ff9329;
}

.credit-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.credit-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff9329, #ff6b4a);
    border-radius: 3px;
    transition: width 0.5s ease;
}

/* Gift Banner */
.gift-banner {
    background: linear-gradient(90deg, rgba(76, 175, 80, 0.1), rgba(129, 199, 132, 0.05));
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 10px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.gift-icon {
    font-size: 20px;
}

.gift-banner strong {
    color: #81c784;
    font-weight: 600;
    font-size: 13px;
}

.gift-banner span {
    color: #aaa;
    font-size: 12px;
}

/* Section Title */
.section-title {
    font-family: 'Orbitron', monospace;
    font-size: 10px;
    font-weight: 600;
    color: #ff9329;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

/* Value Grid */
.value-section {
    margin-bottom: 28px;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.value-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 14px;
    text-align: center;
    position: relative;
}

.value-card.coming-soon::after {
    content: 'SOON';
    position: absolute;
    top: 6px;
    right: 6px;
    background: linear-gradient(90deg, #9c27b0, #673ab7);
    color: #fff;
    font-size: 7px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 3px;
}

.value-icon {
    font-size: 22px;
    margin-bottom: 8px;
}

.value-title {
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.value-desc {
    font-size: 10px;
    color: #777;
}

/* Project Tags */
.projects-section {
    margin-bottom: 28px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tag {
    background: rgba(255, 147, 41, 0.08);
    border: 1px solid rgba(255, 147, 41, 0.2);
    border-radius: 16px;
    padding: 6px 12px;
    font-size: 11px;
    color: #ccc;
}

/* Apple-Style Accordion Pricing */
.pricing-section {
    margin-bottom: 24px;
}

.tier-accordion {
    background: rgba(15, 15, 15, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    margin-bottom: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.tier-accordion.current {
    border-color: rgba(255, 147, 41, 0.4);
    box-shadow: 0 0 20px rgba(255, 147, 41, 0.1);
}

.tier-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    transition: background 0.2s;
}

.tier-header:hover {
    background: rgba(255, 255, 255, 0.02);
}

.tier-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tier-badge {
    background: #ff9329;
    color: #0a0a0a;
    font-size: 8px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.tier-name {
    font-family: 'Orbitron', monospace;
    font-size: 12px;
    font-weight: 600;
    color: #888;
    letter-spacing: 1px;
}

.tier-name.indie {
    color: #64b5f6;
}

.tier-name.pro {
    color: #ff9329;
}

.tier-name.studio {
    color: #ce93d8;
}

.tier-tagline {
    font-size: 11px;
    color: #666;
}

.tier-price-wrap {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.tier-price {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.tier-period {
    font-size: 11px;
    color: #666;
}

.tier-arrow {
    margin-left: 12px;
    color: #666;
    font-size: 10px;
    transition: transform 0.3s ease;
}

.tier-accordion.open .tier-arrow {
    transform: rotate(180deg);
}

/* Accordion Details */
.tier-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 20px;
}

.tier-accordion.open .tier-details {
    max-height: 500px;
    padding: 0 20px 20px;
}

.tier-features {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    columns: 2;
    column-gap: 20px;
}

.tier-features li {
    font-size: 12px;
    color: #aaa;
    padding: 6px 0;
    break-inside: avoid;
}

.feat-val {
    color: #fff;
    font-weight: 600;
}

.feat-val.highlight {
    color: #ff9329;
}

.feat-limit {
    color: #666;
}

.coming {
    color: #9c27b0;
    font-size: 10px;
    font-style: italic;
}

.tier-cta {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.tier-cta.outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #aaa;
}

.tier-cta.outline:hover {
    border-color: #ff9329;
    color: #ff9329;
}

.tier-cta.filled {
    background: #ff9329;
    border: none;
    color: #0a0a0a;
}

.tier-cta:disabled {
    opacity: 0.5;
    cursor: default;
}

/* Extras Section */
.extras-section {
    background: rgba(15, 15, 15, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    margin-bottom: 24px;
    overflow: hidden;
}

.extras-header {
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
    font-size: 12px;
    color: #888;
}

.extras-header:hover {
    color: #aaa;
}

.extras-arrow {
    transition: transform 0.2s;
}

.extras-section.open .extras-arrow {
    transform: rotate(180deg);
}

.extras-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 20px;
}

.extras-section.open .extras-content {
    max-height: 300px;
    padding: 0 20px 20px;
}

.extras-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.extra-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.extra-card:hover {
    border-color: rgba(255, 147, 41, 0.4);
    transform: translateY(-2px);
}

.extra-label {
    font-size: 8px;
    color: #ff9329;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.extra-price {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.extra-desc {
    font-size: 9px;
    color: #666;
    margin-top: 4px;
}

/* Footer */
.billing-footer {
    text-align: center;
    font-size: 10px;
    color: #555;
    padding-top: 16px;
}

.billing-footer span {
    color: #81c784;
}

/* Responsive */
@media (max-width: 768px) {

    .value-grid,
    .extras-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tier-features {
        columns: 1;
    }

    .billing-header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}