body {
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 28%),
        radial-gradient(circle at right center, rgba(249, 115, 22, 0.09), transparent 24%),
        linear-gradient(180deg, #f5f7fb 0%, #edf2fb 100%);
    color: #122033;
    min-height: 100vh;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.app-shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #0f172a 0%, #111c36 55%, #15264b 100%);
    color: #fff;
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 18px 0 45px rgba(15, 23, 42, 0.18);
}

.brand-box {
    padding: 20px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-box .text-muted {
    color: rgba(248, 250, 252, 0.88) !important;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.92);
    padding: 13px 16px;
    border-radius: 16px;
    font-weight: 500;
}

.sidebar .nav-link.active,
.sidebar .nav-link:hover {
    color: #fff;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.28), rgba(255, 255, 255, 0.10));
}

.plan-card {
    padding: 20px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #f8fafc;
}

.plan-card .text-muted {
    color: rgba(248, 250, 252, 0.88) !important;
}

.sidebar .small,
.sidebar .text-muted,
.sidebar .fw-semibold,
.sidebar strong,
.sidebar h4,
.sidebar .plan-card,
.sidebar .plan-card * {
    color: #f8fafc !important;
}

.sidebar .btn-outline-light {
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.76);
}

.sidebar .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.96);
}

.content {
    flex: 1;
    padding: 36px;
}

.content-auth {
    width: 100%;
    display: grid;
    place-items: center;
    padding: 36px 20px;
}

.metric-card {
    background: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 18px 40px rgba(18, 32, 51, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.75);
}

.metric-label {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
}

.card {
    border-radius: 24px !important;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 40px rgba(18, 32, 51, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.75) !important;
}

.btn {
    border-radius: 14px;
    font-weight: 600;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border: none;
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b, #f97316);
    border: none;
    color: #fff;
}

.btn-google {
    background: #ffffff;
    border: 1px solid #d9e2f0;
    color: #122033;
}

.btn-google:hover {
    background: #f8fbff;
    color: #122033;
    border-color: #c8d7ef;
}

.table thead th {
    color: #64748b;
    font-weight: 600;
    border-bottom-width: 1px;
}

.table td,
.table th {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.invoice-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #edf2f7;
}

.actions-cell {
    white-space: nowrap;
}

.renew-wrap {
    max-width: 680px;
    margin: 8vh auto;
}

.invoice-sheet {
    max-width: 900px;
    margin: 0 auto;
}

.auth-showcase {
    width: min(1180px, 100%);
    min-height: 720px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    background: rgba(255, 255, 255, 0.68);
    backdrop-filter: blur(16px);
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.72);
}

.auth-showcase-single {
    grid-template-columns: 1fr;
    min-height: auto;
    max-width: 760px;
}

.auth-panel {
    padding: 56px 52px;
}

.auth-panel-dark {
    color: #fff;
    background:
        radial-gradient(circle at top right, rgba(96, 165, 250, 0.28), transparent 30%),
        linear-gradient(180deg, #0f172a 0%, #172554 100%);
}

.auth-panel-dark h1 {
    font-size: 3.25rem;
    line-height: 1.05;
    font-weight: 700;
    margin: 16px 0 18px;
    max-width: 420px;
}

.auth-panel-dark p {
    color: rgba(255, 255, 255, 0.78);
    max-width: 520px;
    font-size: 1.05rem;
}

.auth-badge {
    display: inline-flex;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.auth-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 42px;
}

.auth-stat {
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-stat strong {
    display: block;
    font-size: 1.25rem;
    margin-bottom: 6px;
}

.auth-stat span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.92rem;
}

.auth-panel-light {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.92));
}

.auth-form-wrap {
    width: min(100%, 390px);
}

.auth-form-wide {
    width: min(100%, 560px);
}

.auth-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.auth-copy {
    color: #64748b;
    margin-bottom: 28px;
}

.auth-divider {
    position: relative;
    margin: 22px 0;
    text-align: center;
}

.auth-divider::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    border-top: 1px solid #dbe4f0;
}

.auth-divider span {
    position: relative;
    z-index: 1;
    background: #fff;
    padding: 0 14px;
    color: #64748b;
    font-size: 0.92rem;
}

.form-control,
.form-select {
    border-radius: 14px;
    border: 1px solid #d9e2f0;
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
}

.form-control:focus,
.form-select:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.14);
}

.password-toggle-group {
    display: flex;
    gap: 10px;
}

.password-toggle-group .form-control {
    flex: 1;
}

.admin-table tbody tr td {
    vertical-align: middle;
}

.admin-table .badge {
    border-radius: 999px;
    padding: 0.45rem 0.7rem;
}

@media (max-width: 991px) {
    .app-shell {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .auth-showcase {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .auth-panel {
        padding: 32px 24px;
    }

    .auth-panel-dark h1 {
        font-size: 2.2rem;
    }

    .auth-stat-grid {
        grid-template-columns: 1fr;
    }
}
