/* ================================================================
   billing.css — UnityKit SaaS Billing UI
   ================================================================ */

/* ─── Trial Banner (top of page) ─────────────────────────────── */
.trial-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    background: linear-gradient(90deg, #f97316 0%, #fb923c 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 900;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.35);
}

.trial-banner__icon {
    font-size: 16px;
    flex-shrink: 0;
}

.trial-banner__text {
    flex: 1;
}

.trial-banner__days {
    background: rgba(255, 255, 255, 0.25);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-left: 6px;
}

.trial-banner__cta {
    background: #fff;
    color: #f97316;
    padding: 6px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    transition: background 0.15s, transform 0.1s;
    white-space: nowrap;
    flex-shrink: 0;
}

.trial-banner__cta:hover {
    background: #fff7ed;
    transform: translateY(-1px);
}

/* Warning banner (< 5 days left) */
.trial-banner--warning {
    background: linear-gradient(90deg, #dc2626 0%, #ef4444 100%);
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.35);
}

.trial-banner--warning .trial-banner__cta {
    color: #dc2626;
}

/* ─── Unverified Email Banner ──────────────────────────────────── */
.verify-email-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    background: linear-gradient(90deg, #6366f1, #818cf8);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.verify-email-banner a {
    color: #fff;
    text-decoration: underline;
    opacity: 0.85;
}

.verify-email-banner a:hover {
    opacity: 1;
}

/* ─── Blocked Screen (full-page overlay) ─────────────────────── */
.billing-blocked {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at top, #1e1b4b 0%, #0f0f1a 100%);
    padding: 40px 20px;
    text-align: center;
    color: #fff;
}

.billing-blocked__icon {
    font-size: 64px;
    margin-bottom: 24px;
    opacity: 0.9;
    animation: pulse-icon 2s ease-in-out infinite;
}

@keyframes pulse-icon {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.08); }
}

.billing-blocked__title {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 12px;
    background: linear-gradient(135deg, #f97316, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.billing-blocked__subtitle {
    font-size: 16px;
    color: #94a3b8;
    margin: 0 0 40px;
    max-width: 440px;
}

.billing-blocked__plans {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 40px;
}

.billing-plan-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 28px 24px;
    width: 200px;
    transition: transform 0.2s, background 0.2s, border-color 0.2s;
    cursor: pointer;
}

.billing-plan-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(249, 115, 22, 0.5);
}

.billing-plan-card--highlight {
    border-color: #f97316;
    background: rgba(249, 115, 22, 0.1);
}

.billing-plan-card__name {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #fff;
}

.billing-plan-card__price {
    font-size: 14px;
    color: #94a3b8;
    margin: 0 0 16px;
}

.billing-plan-card__price strong {
    font-size: 22px;
    color: #f97316;
    font-weight: 800;
}

.billing-plan-card__cta {
    display: block;
    background: #f97316;
    color: #fff;
    border-radius: 8px;
    padding: 10px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: background 0.15s;
}

.billing-plan-card__cta:hover {
    background: #ea6c0a;
}

.billing-blocked__contact {
    font-size: 13px;
    color: #64748b;
}

.billing-blocked__contact a {
    color: #f97316;
    text-decoration: none;
}

/* ─── Billing Dashboard ───────────────────────────────────────── */
.billing-dashboard {
    max-width: 900px;
    margin: 0 auto;
    padding: 32px 24px;
}

.billing-current-plan {
    background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
    border-radius: 16px;
    padding: 32px;
    color: #fff;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.billing-current-plan__info {}
.billing-current-plan__plan-name {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 4px;
}
.billing-current-plan__meta {
    font-size: 14px;
    opacity: 0.85;
}

.billing-current-plan__btn {
    background: #fff;
    color: #f97316;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.15s, transform 0.1s;
}

.billing-current-plan__btn:hover {
    background: #fff7ed;
    transform: translateY(-1px);
}

/* Usage meters */
.billing-usage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.billing-usage-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
}

.billing-usage-card__label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 8px;
}

.billing-usage-card__value {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
}

.billing-usage-card__limit {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 12px;
}

.billing-progress-bar {
    height: 6px;
    background: #e2e8f0;
    border-radius: 99px;
    overflow: hidden;
}

.billing-progress-bar__fill {
    height: 100%;
    border-radius: 99px;
    background: #22c55e;
    transition: width 0.5s ease;
}

.billing-progress-bar__fill--warning { background: #f59e0b; }
.billing-progress-bar__fill--danger  { background: #ef4444; }

/* ─── Register page ───────────────────────────────────────────── */
.register-page {
    min-height: 100vh;
    display: flex;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
}

.register-page__left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
    color: #fff;
}

.register-page__right {
    width: 480px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255,255,255,0.07);
}

.register-card {
    width: 100%;
    max-width: 400px;
}

.register-card__title {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 6px;
}

.register-card__subtitle {
    font-size: 14px;
    color: #94a3b8;
    margin: 0 0 32px;
}

.register-feature-list {
    list-style: none;
    padding: 0;
    margin: 24px 0;
}

.register-feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: #cbd5e1;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.register-feature-list li:last-child { border-bottom: none; }

.register-feature-list li .icon {
    color: #22c55e;
    font-size: 16px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .register-page { flex-direction: column; }
    .register-page__left { padding: 40px 24px 20px; }
    .register-page__right { width: 100%; border-left: none; border-top: 1px solid rgba(255,255,255,.07); }
}
