/* Deep Space body / container */
body {
    margin: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: radial-gradient(circle at top left, #060612 0%, #010516 45%, #000000 100%);
    color: #ffffff;
}

.dashboard-container {
    background: transparent;
}

/* Shared centered shell for avatar, tabs, alerts, content */
.account-shell {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

@media (min-width: 992px) {
    .dashboard-container {
        padding: 20px;
        gap: 20px;
    }
}
@media (min-width: 1200px) {
    .dashboard-container {
        padding: 40px;
        gap: 40px;
    }
}

/* Navbar – slim, matches app vibe */
.api-navbar {
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
}

.api-navbar .navbar-brand {
    color: #bbc7ff;
    font-weight: 600;
    font-size: 1.1rem;
}

.api-navbar .nav-link {
    color: #b2bce7;
    font-size: 0.95rem;
    transition: color 0.2s ease-in-out;
}

.api-navbar .nav-link:hover {
    color: #7ad2ff;
}

.api-navbar .btn-outline-danger {
    border-radius: 999px;
    border-width: 1px;
}

/* Avatar / profile header */
.profile-avatar {
    width: 100px;
    height: 100px;
    font-size: 36px;
    background: linear-gradient(90deg, #525fcd, #7a80c8);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(91, 104, 225, 0.6);
}

@media (max-width: 767.98px) {
    .profile-avatar {
        width: 80px;
        height: 80px;
        font-size: 28px;
    }
}

/* Tabs styled like pricing-tabs */
.pricing-tabs {
    border-bottom: none;
}

.pricing-tabs .nav-link {
    color: #ddd;
    background-color: transparent;
    border: none;
    border-radius: 25px;
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    margin: 0 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.pricing-tabs .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.pricing-tabs .nav-link.active {
    background: linear-gradient(90deg, #5b68e1, #7a80c8);
    color: white;
    box-shadow: 0 4px 12px rgba(91, 104, 225, 0.5);
}

/* Glassy card container */
.container-primary {
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.7);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    color: #fff;
}

@media (max-width: 767.98px) {
    .container-primary {
        padding: 1.5rem;
    }
}

.card-section {
    background: radial-gradient(ellipse at top left, #090c1a 0%, #06070d 100%);
    border: 1px solid rgba(100, 100, 255, 0.2);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 0 15px rgba(0, 100, 255, 0.05);
    color: #d0d0ff;
}

.card-section h5 {
    color: #bbc7ff;
}

/* Buttons */
.btn {
    border-radius: 25px;
    padding: 0.55rem 1.6rem;
    font-size: 0.95rem;
    font-weight: 500;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(90deg, #5b68e1, #7a80c8);
    color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(90deg, #7a80c8, #5b68e1);
    transform: translateY(-2px);
    box-shadow: 0 6px 9px rgba(0, 0, 0, 0.6);
}

.btn-outline-light {
    background: transparent !important;
    color: #f8f9fa !important;
    border: 1px solid #f8f9fa !important;
}

.btn-outline-light:hover,
.btn-outline-light:focus {
    /* background: #f8f9fa !important; */
    /* background: linear-gradient(90deg, #7a80c8, #5b68e1) !important; */
    background: linear-gradient(45deg, #7a80c8, #5b68e1) !important;
    border-color: #08121d !important;
    text-shadow: none !important;
}

/* Optional pressed state */
.btn-outline-light:active,
.btn-outline-light.active {
    background: #e9ecef !important;
    color: #000 !important;
    border-color: #e9ecef !important;
}

.btn-outline-light:hover {
    background: linear-gradient(45deg, #0a0149 10%, rgb(0,0,0) 100%);
    transform: translateY(-2px);
}
/* Restore classic Bootstrap outline danger style (overrides global .btn) */
.btn-outline-danger {
    background-color: transparent !important;
    color: var(--bs-danger) !important;
    border: 1px solid var(--bs-danger) !important;
    border-radius: .375rem !important; /* revert pill radius */
    box-shadow: none !important;
}

/* Hover / focus states */
.btn-outline-danger:hover,
.btn-outline-danger:focus {
    background-color: var(--bs-danger) !important;
    color: #fff !important;
    border-color: var(--bs-danger) !important;
    box-shadow: 0 0 0 .25rem rgba(var(--bs-danger-rgb), .25) !important;
}

/* Active state */
.btn-outline-danger:active,
.btn-outline-danger.active {
    background-color: var(--bs-danger) !important;
    color: #fff !important;
}

/* Disabled state clarity */
.btn-outline-danger:disabled,
.btn-outline-danger.disabled {
    color: var(--bs-danger) !important;
    background-color: transparent !important;
    opacity: .65;
}

/* Forms */
.form-label, .card-title, h2, h3 {
    color: #e6e6e6;
}

.form-control {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

.form-control:focus {
    border-color: #7a80c8;
    box-shadow: 0 0 0 0.2rem rgba(122, 128, 200, 0.25);
    background-color: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.metric-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    text-align: center;
}

.metric-box .label {
    font-size: 0.85rem;
    color: #a0a0d0;
}

.metric-box .value {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
}

.small-label {
    font-size: 0.85rem;
    color: #a0a0d0;
}

.text-light-50 {
    color: rgba(230, 230, 255, 0.7);
}

/* Alerts similar to profile template */
.alert-custom {
    background: rgba(0, 0, 0, 0.7);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    color: #fff;
    font-weight: 500;
    padding: 1.25rem 1.75rem;
    border-radius: 20px;
}
.alert-success { border-left: 4px solid #28a745; }
.alert-danger  { border-left: 4px solid #dc3545; }
.alert-info    { border-left: 4px solid #17a2b8; }
.alert-warning { border-left: 4px solid #ffc107; }
.alert-dismissible .btn-close {
    filter: invert(1);
}

footer.footer {
    background: transparent;
    color: #ccc;
    font-size: 0.9rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Plan cards */
.plan-card {
    cursor: default;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative; /* enables absolute children (badge in corner) */
}
.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 16px rgba(91, 104, 225, 0.5);
}
.badge-plan {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 1;
}
.badge-soft {
    background-color: rgba(91, 104, 225, 0.15);
    border: 1px solid rgba(91, 104, 225, 0.3);
    color: #d2d7ff;
}

.dashboard-card canvas {
    max-width: 100% !important;
    height: auto !important;
}

/* center subscription plan cards row */
.plan-row {
    justify-content: center;
}

/* Give each card a consistent width on desktop */
.plan-col {
    flex: 0 0 290px;
    max-width: 290px;
}

/* On small screens, let cards go full width */
@media (max-width: 767.98px) {
    .plan-col {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.quick-actions-grid {
    display: flex;
    flex-direction: column;
    gap: 0.9rem; /* increased spacing */
}
.quick-actions-box .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}
.quick-actions-box .btn + .btn {
    box-shadow: 0 -4px 0 -2px rgba(255,255,255,0.05); /* subtle separation */
}
@media (min-width: 992px) {
    .quick-actions-grid {
        gap: 1rem;
    }
}

 .billing-summary-row {
    justify-content: center;  /* center the two cards inside the row */
    align-items: stretch;      /* ensure equal height columns */
}

.billing-summary-row .card-section {
    display: flex;
    flex-direction: column;    /* enables pushing footer to bottom */
    text-align: center;        /* center headings and details */
}

.billing-summary-row .summary-footer {
    margin-top: auto;
    display: flex;
    justify-content: center;   /* center the button horizontally */
}

.kv-wrap {
    display: flex;
    justify-content: center; /* centers the grid block in the card */
}

.kv-grid {
    display: inline-grid;                 /* shrink to content width */
    grid-template-columns: max-content max-content; /* align col starts */
    column-gap: 5rem;
    row-gap: 0.6rem;
    text-align: left;                     /* align first character per column */
}
@media (min-width: 992px)  { .kv-grid { column-gap: 10rem; } }
@media (min-width: 1600px) { .kv-grid { column-gap: 15rem; } }

.kv-grid .v {
    text-align: center;
}
/* .kv-grid .k { color: #a0a0d0; }
.kv-grid .v { color: #ffffff; }   */

.subscription-card.selected {
    box-shadow: 0 0 18px rgba(91, 104, 225, 0.75);
    border-color: rgba(122, 128, 200, 0.9);
    transform: translateY(-3px);
}

/* Action badge showing Upgrade/Downgrade/Default */
.action-badge {
    position: absolute;
    left: 8px;
    top: 8px;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
}


/* Neon "Free Trial" badge — scoped to subscription cards */
.subscription-card .badge-free-trial {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(90deg, #5b68e1, #7a80c8) !important;
    color: #fff !important;

    /* font-size: 0.72rem; */
    letter-spacing: 0.2px;
    text-transform: uppercase;
    white-space: nowrap;

    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow:
        0 0 14px rgba(91, 104, 225, 0.45),
        0 0 26px rgba(122, 128, 200, 0.25) !important;
}

/* .subscription-card .badge-free-trial .bi {
    font-size: 0.85rem;
    opacity: 0.95;
} */

