:root {
    --c-accent: #5e17eb;
    --c-red: #e63946;
    --c-green: #16a34a;
    --c-teal: #0d9488;
    --c-bg: #F5F5F5;
    --c-card: #ffffff;
    --c-border: #e3e1d9;
    --c-text: #1c1b18;
    --c-muted: #78716c;
    --c-input-bg: #f8f7f4;
    --radius: 14px;
    font-family: 'DM Sans', sans-serif;
    color: var(--c-text);
    width: 100%;
    min-width: 0;
}

/* html,
body {
    overflow-x: hidden !important;
} */

.main-content {
    overflow-x: hidden !important;
    min-width: 0 !important;
}

/* ── TOKENS ───────────────────────────────────────────── */
.stg {
    --c-accent: #5e17eb;
    --c-red: #e63946;
    --c-green: #16a34a;
    --c-teal: #0d9488;
    --c-bg: #F5F5F5;
    --c-card: #ffffff;
    --c-border: #e3e1d9;
    --c-text: #1c1b18;
    --c-muted: #78716c;
    --c-input-bg: #f8f7f4;
    --radius: 14px;
    font-family: 'DM Sans', sans-serif;
    color: var(--c-text);
    width: 100%;
    min-width: 0;
}

.stg *,
.stg *::before,
.stg *::after {
    box-sizing: border-box;
}

.stg__inner {
    padding: 20px 18px;
    width: 100%;
}

/* ── PAGE HEADER ──────────────────────────────────────── */
.stg-header {
    margin-bottom: 22px;
}

.stg-header h4 {
    font-family: 'Sora', sans-serif;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 4px;
}

.stg-header p {
    font-size: 13px;
    color: var(--c-muted);
    margin: 0;
}

/* ── TAB STRIP ────────────────────────────────────────── */
.stg-tabs {
    display: flex;
    gap: 4px;
    background: var(--c-card);
    border-radius: var(--radius);
    padding: 6px;
    margin-bottom: 20px;
    border: 1px solid var(--c-border);
    flex-wrap: wrap;
}

.stg-tabs .nav-item {
    flex: 1;
    min-width: 100px;
}

.stg-tabs .nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    padding: 9px 14px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--c-muted);
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all .18s ease;
    white-space: nowrap;
}

.stg-tabs .nav-link i {
    font-size: 16px;
}

.stg-tabs .nav-link:hover {
    background: var(--c-bg);
    color: var(--c-text);
}

.stg-tabs .nav-link.active {
    background: var(--c-accent);
    color: #fff;
    box-shadow: 0 3px 12px rgba(26, 26, 46, .2);
}

/* ── CARD ─────────────────────────────────────────────── */
.stg-card {
    background: var(--c-card);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--c-border);
    width: 100%;
    min-width: 0;
}

.stg-card h5 {
    font-family: 'Sora', sans-serif;
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 3px;
}

.stg-card>p {
    font-size: 13px;
    color: var(--c-muted);
    margin: 0 0 20px;
}

/* ── TWO-COLUMN GRID ──────────────────────────────────── */
.stg-grid {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.stg-grid>.stg-card {
    flex: 1 1 300px;
    min-width: 0;
}

.stg-grid--full>.stg-card {
    flex: 1 1 100%;
}

/* ── SECTION DIVIDER ──────────────────────────────────── */
.stg-divider {
    border: none;
    border-top: 1px solid var(--c-border);
    margin: 18px 0;
}

/* ── EDITABLE FIELD ───────────────────────────────────── */
.stg-field {
    margin-bottom: 18px;
}

.stg-field label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--c-muted);
    margin-bottom: 6px;
}

.stg-editable-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--c-input-bg);
    border: 1px solid var(--c-border);
    border-radius: 10px;
    padding: 10px 14px;
    transition: border-color .18s;
}

.stg-editable-row:focus-within {
    border-color: var(--c-teal);
}

.stg-editable-row [contenteditable] {
    flex: 1;
    outline: none;
    font-size: 14px;
    min-width: 0;
    background: transparent;
}

.stg-editable-row .stg-change-btn {
    font-size: 12px;
    color: var(--c-teal);
    cursor: pointer;
    white-space: nowrap;
    font-weight: 500;
    border: none;
    background: none;
    padding: 0;
    text-decoration: underline;
    flex-shrink: 0;
}

.stg-static-row {
    background: var(--c-input-bg);
    border: 1px solid var(--c-border);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
    color: var(--c-muted);
}

/* ── PASSWORD FORM ────────────────────────────────────── */
.stg-input-wrap {
    display: flex;
    align-items: center;
    background: var(--c-input-bg);
    border: 1px solid var(--c-border);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color .18s;
}

.stg-input-wrap:focus-within {
    border-color: var(--c-teal);
}

.stg-input-wrap input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 14px;
    font-size: 14px;
    outline: none;
    min-width: 0;
}

.stg-input-wrap .eye-btn {
    padding: 0 14px;
    cursor: pointer;
    color: var(--c-muted);
    border: none;
    background: none;
    font-size: 14px;
}

.stg-input-wrap input.is-valid {
    box-shadow: inset 3px 0 0 var(--c-green);
}

.stg-input-wrap input.is-invalid {
    box-shadow: inset 3px 0 0 var(--c-red);
}

.stg-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    font-family: 'Sora', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .18s ease;
    text-decoration: none;
}

.stg-btn-primary {
    background: var(--c-accent);
    color: #fff;
}

.stg-btn-primary:hover {
    background: #2d2d52;
    box-shadow: 0 4px 14px rgba(26, 26, 46, .2);
    transform: translateY(-1px);
}

.stg-btn-teal {
    background: var(--c-teal);
    color: #fff;
}

.stg-btn-teal:hover {
    background: #0f766e;
    box-shadow: 0 4px 14px rgba(13, 148, 136, .25);
    transform: translateY(-1px);
}

.stg-btn-outline {
    background: #fff;
    color: var(--c-accent);
    border: 1.5px solid var(--c-accent);
}

.stg-btn-outline:hover {
    background: var(--c-accent);
    color: #fff;
}

.stg-btn-danger {
    background: #fff;
    color: var(--c-red);
    border: 1.5px solid var(--c-red);
}

.stg-btn-danger:hover {
    background: var(--c-red);
    color: #fff;
}

.stg-btn-sm {
    padding: 7px 14px;
    font-size: 12px;
}

.stg-btn-success {
    background: var(--c-green);
    color: #fff;
}

/* ── STATUS BADGES ────────────────────────────────────── */
.stg-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.stg-badge-active {
    background: #dcfce7;
    color: #15803d;
}

.stg-badge-expired {
    background: #fee2e2;
    color: #b91c1c;
}

.stg-badge-cancelled {
    background: #fef9c3;
    color: #92400e;
}

/* ── PLAN DISPLAY ─────────────────────────────────────── */
.stg-plan-name {
    font-family: 'Sora', sans-serif;
    font-size: 22px;
    font-weight: 700;
    margin: 10px 0 6px;
}

.stg-plan-meta {
    font-size: 13px;
    color: var(--c-muted);
    margin: 4px 0;
}

.stg-plan-meta strong {
    color: var(--c-text);
}

/* ── WALLET AMOUNT ────────────────────────────────────── */
.stg-wallet-amount {
    font-family: 'Sora', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--c-teal);
    margin: 10px 0;
}

/* ── BILLING TABLE ────────────────────────────────────── */
.stg-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-top: 4px;
}

.stg-table thead th {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--c-muted);
    font-weight: 600;
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid var(--c-border);
}

.stg-table tbody td {
    padding: 11px 12px;
    border-bottom: 1px solid var(--c-border);
    vertical-align: middle;
}

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

.stg-table tbody tr:nth-child(even) {
    background: #faf9f6;
}

.stg-table a {
    color: var(--c-teal);
    text-decoration: none;
}

.stg-table a:hover {
    text-decoration: underline;
}

/* ── SECTION SPACING ──────────────────────────────────── */
.stg-section {
    margin-bottom: 20px;
}

.stg-mt {
    margin-top: 20px;
}

.stg-mb {
    margin-bottom: 40px;
}

/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 700px) {
    .stg-tabs .nav-link span {
        display: none;
    }

    .stg-tabs .nav-link {
        padding: 10px;
    }

    .stg-grid {
        flex-direction: column;
    }

    .stg-grid>.stg-card {
        flex: none;
        width: 100%;
    }

    .stg-table {
        font-size: 12px;
    }

    .stg-table thead th,
    .stg-table tbody td {
        padding: 8px 8px;
    }
}

/* ── TAB CONTENT ─────────────────────────────────────── */
.tab-content .tab-pane {
    display: none;
}

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