:root {
    --primary: #111827;
    --brand-primary: #111827;
    --primary-color: #111827;

    --secondary: #4F46E5;
    --brand-secondary: #4F46E5;
    --accent-color: #4F46E5;

    --brand-light: #F8FAFC;
    --background-color: #F8FAFC;

    --dark: #111827;
    --brand-dark: #111827;
    --text-color: #111827;

    --white: #ffffff;
    --surface: #ffffff;
    --surface-soft: #F8FAFC;
    --surface-muted: #F1F5F9;

    --border-color: #E2E8F0;
    --border-soft: #EEF2F7;
    --muted-color: #64748B;

    --success-color: #16A34A;
    --warning-color: #F59E0B;
    --danger-color: #DC2626;
    --info-color: #0284C7;

    --sidebar-width: 292px;

    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --shadow-sm: 0 8px 24px rgba(15, 23, 42, .06);
    --shadow-md: 0 16px 45px rgba(15, 23, 42, .09);
    --shadow-lg: 0 24px 80px rgba(15, 23, 42, .14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    direction: rtl;
    text-align: right;
    min-height: 100vh;
    margin: 0;
    font-family: "Cairo", "Tahoma", sans-serif;
    font-size: 15px;
    color: var(--brand-dark);
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--brand-secondary) 10%, transparent), transparent 34%),
        radial-gradient(circle at bottom right, color-mix(in srgb, var(--brand-secondary) 7%, transparent), transparent 32%),
        var(--brand-light);
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

/* ===============================
   Main Layout
================================ */

.app-shell {
    min-height: 100vh;
    display: flex;
}

.sidebar {
    width: var(--sidebar-width);
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 20;
    padding: 24px 18px;
    overflow-y: auto;
    color: #fff;
    background:
        radial-gradient(circle at 20% 0%, color-mix(in srgb, var(--brand-secondary) 34%, transparent), transparent 28%),
        linear-gradient(180deg, var(--brand-primary) 0%, color-mix(in srgb, var(--brand-primary) 86%, #000) 100%);
    border-left: 1px solid rgba(255, 255, 255, .08);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 8px 24px;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .10);
}

.sidebar-logo-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 16px;
    background: rgba(255, 255, 255, .10);
    padding: 7px;
    border: 1px solid rgba(255, 255, 255, .14);
}

.brand-mark {
    width: 50px;
    height: 50px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    color: #fff;
    font-size: 16px;
    font-weight: 900;
    box-shadow: 0 14px 35px color-mix(in srgb, var(--brand-secondary) 35%, transparent);
}

.brand-title {
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.2;
}

.brand-subtitle {
    margin-top: 4px;
    color: rgba(255, 255, 255, .60);
    font-size: 12px;
    font-weight: 700;
}

.sidebar-nav {
    margin-top: 22px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    color: rgba(255, 255, 255, .68);
    padding: 13px 14px;
    border-radius: 16px;
    margin-bottom: 8px;
    font-weight: 800;
    transition: .18s ease;
}

.sidebar-nav a i {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
}

.sidebar-nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, .08);
}

.sidebar-nav a.active {
    color: #fff;
    background: rgba(255, 255, 255, .12);
    box-shadow: inset 3px 0 0 var(--brand-secondary);
}

.main-content {
    width: calc(100% - var(--sidebar-width));
    min-height: 100vh;
    margin-right: var(--sidebar-width);
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 15;
    min-height: 96px;
    padding: 22px 34px;
    background: color-mix(in srgb, var(--brand-light) 86%, #ffffff);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226, 232, 240, .8);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.topbar h1 {
    margin: 0;
    color: var(--brand-dark);
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -.3px;
}

.topbar p {
    margin: 7px 0 0;
    color: var(--muted-color);
    font-size: 14px;
    font-weight: 700;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 14px;
}

.user-info {
    min-width: 140px;
    text-align: left;
}

.user-info strong {
    display: block;
    color: var(--brand-dark);
    font-size: 14px;
    font-weight: 900;
}

.user-info span {
    display: block;
    margin-top: 2px;
    color: var(--muted-color);
    font-size: 12px;
    font-weight: 700;
}

.content-area {
    padding: 34px;
}

/* ===============================
   Shared UI
================================ */

.ui-card,
.stat-card,
.table-card,
.settings-panel,
.settings-menu,
.auth-card,
.dashboard-card,
.metric-card {
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(226, 232, 240, .9);
    box-shadow: var(--shadow-sm);
}

.ui-card {
    padding: 28px;
    border-radius: var(--radius-xl);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 26px;
}

.section-title {
    margin: 0;
    color: var(--brand-dark);
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -.3px;
}

.section-subtitle {
    margin-top: 8px;
    color: var(--muted-color);
    font-weight: 700;
    line-height: 1.8;
}

.btn {
    border-radius: 14px;
    font-weight: 900;
}

.btn-ui {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    border: 0;
    color: #fff;
    padding: 11px 20px;
    box-shadow: 0 12px 28px color-mix(in srgb, var(--brand-secondary) 24%, transparent);
}

.btn-ui:hover,
.btn-ui:focus {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 16px 36px color-mix(in srgb, var(--brand-secondary) 30%, transparent);
}

.btn-soft {
    background: #EEF2F7;
    border: 1px solid #E2E8F0;
    color: var(--brand-dark);
    padding: 10px 16px;
}

.btn-soft:hover {
    background: #E2E8F0;
    color: var(--brand-dark);
}

.form-label {
    color: #334155;
    font-weight: 900;
    margin-bottom: 8px;
}

.form-control,
.form-select {
    min-height: 48px;
    border-radius: 16px;
    border: 1px solid #DDE4EE;
    background-color: #fff;
    color: var(--brand-dark);
    font-weight: 700;
    padding: 11px 14px;
    box-shadow: none;
}

.form-control:focus,
.form-select:focus {
    border-color: color-mix(in srgb, var(--brand-secondary) 70%, #ffffff);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-secondary) 12%, transparent);
}

.form-control::placeholder {
    color: #94A3B8;
    font-weight: 600;
}

.field-error {
    min-height: 18px;
    margin-top: 6px;
    color: var(--danger-color);
    font-size: 13px;
    font-weight: 800;
}

.form-hint {
    margin-top: 8px;
    color: var(--muted-color);
    font-size: 13px;
    font-weight: 700;
}

.is-invalid {
    border-color: var(--danger-color) !important;
}

/* ===============================
   Login Page
================================ */

.login-page {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    padding: 32px;
    background:
        radial-gradient(circle at top right, color-mix(in srgb, var(--brand-secondary) 16%, transparent), transparent 34%),
        radial-gradient(circle at bottom left, color-mix(in srgb, var(--brand-secondary) 12%, transparent), transparent 34%),
        var(--brand-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-bg-shape {
    position: absolute;
    border-radius: 999px;
    filter: blur(4px);
    pointer-events: none;
}

.shape-one {
    width: 340px;
    height: 340px;
    right: -120px;
    top: -120px;
    background: color-mix(in srgb, var(--brand-secondary) 12%, transparent);
}

.shape-two {
    width: 420px;
    height: 420px;
    left: -160px;
    bottom: -160px;
    background: color-mix(in srgb, var(--brand-secondary) 10%, transparent);
}

.login-shell {
    position: relative;
    z-index: 2;
    width: min(1120px, 100%);
    min-height: 660px;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    background: rgba(255, 255, 255, .74);
    border: 1px solid rgba(226, 232, 240, .9);
    border-radius: 38px;
    overflow: hidden;
    box-shadow: 0 28px 90px rgba(15, 23, 42, .14);
    backdrop-filter: blur(18px);
}

.login-brand-panel {
    position: relative;
    overflow: hidden;
    padding: 46px;
    color: #fff;
    background:
        radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--brand-secondary) 32%, transparent), transparent 34%),
        linear-gradient(145deg, var(--brand-primary) 0%, color-mix(in srgb, var(--brand-primary) 78%, var(--brand-secondary)) 100%);
}

.login-brand-panel::before {
    content: "";
    position: absolute;
    inset: auto -90px -120px auto;
    width: 360px;
    height: 360px;
    border-radius: 999px;
    border: 42px solid rgba(255, 255, 255, .06);
}

.login-brand-panel::after {
    content: "";
    position: absolute;
    right: 46px;
    bottom: 46px;
    width: 180px;
    height: 180px;
    border-radius: 44px;
    background: color-mix(in srgb, var(--brand-secondary) 24%, transparent);
    transform: rotate(12deg);
}

.login-brand-content {
    position: relative;
    z-index: 2;
    max-width: 480px;
}

.login-logo-wrap {
    width: 112px;
    height: 112px;
    border-radius: 32px;
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .16);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 34px;
}

.login-logo-wrap img {
    max-width: 88px;
    max-height: 88px;
    object-fit: contain;
}

.login-brand-panel h1 {
    margin: 0 0 18px;
    font-size: 44px;
    font-weight: 900;
    letter-spacing: -.5px;
}

.login-brand-panel p {
    margin: 0;
    color: rgba(255, 255, 255, .76);
    font-size: 18px;
    font-weight: 700;
    line-height: 2;
}

.login-feature-list {
    margin-top: 42px;
    display: grid;
    gap: 16px;
}

.login-feature-list div {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, .88);
    font-weight: 800;
}

.login-feature-list i {
    width: 30px;
    height: 30px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--brand-secondary) 18%, transparent);
    color: #fff;
}

.login-form-panel {
    padding: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-form-card {
    width: 100%;
    max-width: 430px;
}

.login-form-header {
    margin-bottom: 30px;
}

.login-eyebrow,
.dashboard-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 12px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--brand-secondary) 12%, #ffffff);
    color: var(--brand-secondary);
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 14px;
}

.login-form-header h2 {
    margin: 0;
    color: var(--brand-dark);
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -.4px;
}

.login-form-header p {
    margin: 10px 0 0;
    color: var(--muted-color);
    font-weight: 700;
    line-height: 1.8;
}

.input-icon {
    position: relative;
}

.input-icon i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748B;
    z-index: 2;
}

.input-icon .form-control {
    padding-right: 44px;
}

.login-check {
    color: #475569;
    font-weight: 800;
}

.login-submit-btn {
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.login-support {
    margin-top: 24px;
    text-align: center;
    color: var(--muted-color);
    font-weight: 700;
}

.login-support span {
    color: var(--brand-dark);
    font-weight: 900;
}

/* ===============================
   Dashboard
================================ */

.dashboard-hero {
    position: relative;
    overflow: hidden;
    min-height: 230px;
    padding: 34px;
    margin-bottom: 28px;
    border-radius: 34px;
    color: #fff;
    background:
        radial-gradient(circle at 18% 15%, color-mix(in srgb, var(--brand-secondary) 32%, transparent), transparent 30%),
        linear-gradient(135deg, var(--brand-primary) 0%, color-mix(in srgb, var(--brand-primary) 76%, var(--brand-secondary)) 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .16);
}

.dashboard-hero::after {
    content: "";
    position: absolute;
    left: -80px;
    bottom: -110px;
    width: 310px;
    height: 310px;
    border-radius: 999px;
    border: 42px solid rgba(255, 255, 255, .06);
}

.dashboard-hero > * {
    position: relative;
    z-index: 2;
}

.dashboard-hero .dashboard-eyebrow {
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

.dashboard-hero h2 {
    margin: 0;
    font-size: 36px;
    font-weight: 900;
    letter-spacing: -.5px;
}

.dashboard-hero p {
    max-width: 620px;
    margin: 14px 0 0;
    color: rgba(255, 255, 255, .72);
    font-size: 16px;
    line-height: 2;
    font-weight: 700;
}

.dashboard-hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-hero-primary {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    color: #fff;
    border: 0;
    padding: 11px 18px;
    box-shadow: 0 14px 35px color-mix(in srgb, var(--brand-secondary) 24%, transparent);
}

.btn-hero-primary:hover {
    color: #fff;
    transform: translateY(-1px);
}

.metric-card {
    min-height: 152px;
    padding: 24px;
    border-radius: 30px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    position: relative;
    overflow: hidden;
}

.metric-card::after {
    content: "";
    position: absolute;
    left: -34px;
    bottom: -42px;
    width: 130px;
    height: 130px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--brand-secondary) 8%, transparent);
}

.metric-icon {
    width: 54px;
    height: 54px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    font-size: 22px;
    flex: 0 0 auto;
}

.metric-card span {
    display: block;
    color: #64748B;
    font-weight: 900;
    margin-bottom: 8px;
}

.metric-card strong {
    display: block;
    color: var(--brand-dark);
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 4px;
}

.metric-card small {
    color: #94A3B8;
    font-weight: 800;
}

.metric-success .metric-icon {
    background: linear-gradient(135deg, #16A34A, #22C55E);
}

.metric-warning .metric-icon {
    background: linear-gradient(135deg, #F59E0B, #F97316);
}

.metric-danger .metric-icon {
    background: linear-gradient(135deg, #DC2626, #FB7185);
}

.metric-info .metric-icon {
    background: linear-gradient(135deg, #0284C7, #06B6D4);
}

.dashboard-card {
    min-height: 100%;
    padding: 28px;
    border-radius: 32px;
}

.dashboard-card-header {
    margin-bottom: 24px;
}

.dashboard-card-header h3 {
    margin: 0;
    color: var(--brand-dark);
    font-size: 22px;
    font-weight: 900;
}

.dashboard-card-header p {
    margin: 8px 0 0;
    color: #64748B;
    font-weight: 700;
    line-height: 1.8;
}

.setup-list {
    display: grid;
    gap: 14px;
}

.setup-item {
    display: flex;
    gap: 14px;
    padding: 18px;
    border-radius: 22px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    color: inherit;
    transition: .18s ease;
}

.setup-item:hover {
    color: inherit;
    transform: translateY(-2px);
    background: color-mix(in srgb, var(--brand-secondary) 10%, #ffffff);
    border-color: color-mix(in srgb, var(--brand-secondary) 25%, #ffffff);
}

.setup-item > span {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    background: color-mix(in srgb, var(--brand-secondary) 12%, #ffffff);
    color: var(--brand-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    flex: 0 0 auto;
}

.setup-item.done > span {
    background: #DCFCE7;
    color: #166534;
}

.setup-item h4 {
    margin: 0;
    color: var(--brand-dark);
    font-size: 16px;
    font-weight: 900;
}

.setup-item p {
    margin: 6px 0 0;
    color: #64748B;
    font-weight: 700;
    line-height: 1.7;
}

.brand-summary {
    text-align: center;
}

.brand-summary-logo {
    width: 116px;
    height: 116px;
    margin: 0 auto 18px;
    border-radius: 34px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-summary-logo img {
    max-width: 86px;
    max-height: 86px;
    object-fit: contain;
}

.brand-summary-logo span {
    width: 74px;
    height: 74px;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

.brand-summary h4 {
    margin: 0;
    color: var(--brand-dark);
    font-size: 22px;
    font-weight: 900;
}

.brand-summary p {
    margin: 10px 0 18px;
    color: #64748B;
    line-height: 1.8;
    font-weight: 700;
}

.brand-colors {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.brand-colors span {
    width: 34px;
    height: 34px;
    border-radius: 13px;
    border: 1px solid #E2E8F0;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.quick-action {
    min-height: 116px;
    padding: 20px;
    border-radius: 24px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    display: flex;
    gap: 14px;
    color: var(--brand-dark);
    transition: .18s ease;
}

.quick-action:hover {
    transform: translateY(-2px);
    background: color-mix(in srgb, var(--brand-secondary) 10%, #ffffff);
    border-color: color-mix(in srgb, var(--brand-secondary) 25%, #ffffff);
    color: var(--brand-dark);
}

.quick-action i {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex: 0 0 auto;
}

.quick-action strong {
    display: block;
    font-weight: 900;
    margin-bottom: 6px;
}

.quick-action span {
    color: #64748B;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.6;
}

.subscription-card {
    text-align: center;
}

.subscription-icon {
    width: 74px;
    height: 74px;
    border-radius: 26px;
    margin: 0 auto 18px;
    background: color-mix(in srgb, var(--brand-secondary) 14%, #ffffff);
    color: var(--brand-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.subscription-card h3 {
    font-weight: 900;
    margin-bottom: 12px;
}

.subscription-card p {
    color: #64748B;
    font-weight: 700;
    line-height: 1.8;
}

.subscription-note {
    margin-top: 18px;
    background: #F8FAFC;
    border-radius: 20px;
    padding: 16px;
    color: #475569;
    font-weight: 800;
    line-height: 1.8;
}

/* ===============================
   Settings Page
================================ */

.settings-layout {
    direction: ltr;
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 26px;
    align-items: start;
}

.settings-side,
.settings-content {
    direction: rtl;
}

.settings-side {
    position: sticky;
    top: 122px;
}

.settings-brand-preview {
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 30px;
    border-radius: 30px;
    margin-bottom: 18px;
    background:
        radial-gradient(circle at 16% 10%, color-mix(in srgb, var(--brand-secondary) 34%, transparent), transparent 34%),
        linear-gradient(145deg, var(--brand-primary) 0%, color-mix(in srgb, var(--brand-primary) 78%, var(--brand-secondary)) 100%);
    box-shadow: var(--shadow-md);
}

.settings-brand-preview::after {
    content: "";
    position: absolute;
    left: -45px;
    bottom: -45px;
    width: 150px;
    height: 150px;
    border-radius: 999px;
    border: 28px solid rgba(255, 255, 255, .06);
}

.settings-logo-preview-wide {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 92px;
    border-radius: 24px;
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .16);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    margin-bottom: 22px;
}

.settings-logo-preview-wide img {
    max-width: 100%;
    max-height: 68px;
    object-fit: contain;
}

.preview-logo-box {
    position: relative;
    z-index: 1;
    width: 78px;
    height: 78px;
    border-radius: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .16);
}

.preview-logo-box img {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.preview-logo-box span {
    width: 56px;
    height: 56px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    color: #fff;
    font-weight: 900;
}

.settings-brand-preview h3 {
    position: relative;
    z-index: 1;
    margin: 0 0 10px;
    font-size: 25px;
    font-weight: 900;
}

.settings-brand-preview p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: rgba(255, 255, 255, .72);
    line-height: 1.9;
    font-size: 14px;
    font-weight: 700;
}

.settings-menu {
    padding: 10px;
    border-radius: 26px;
}

.settings-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    color: #475569;
    padding: 13px 15px;
    border-radius: 18px;
    font-weight: 900;
    transition: .18s ease;
}

.settings-menu a i {
    color: #64748B;
}

.settings-menu a:hover,
.settings-menu a.active {
    background: color-mix(in srgb, var(--brand-secondary) 12%, #ffffff);
    color: var(--brand-secondary);
}

.settings-menu a:hover i,
.settings-menu a.active i {
    color: var(--brand-secondary);
}

.settings-panel {
    padding: 30px;
    border-radius: 30px;
    margin-bottom: 24px;
}

.panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 26px;
    padding-bottom: 22px;
    border-bottom: 1px solid #EDF2F7;
}

.panel-header h2 {
    margin: 0;
    color: var(--brand-dark);
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -.3px;
}

.panel-header p {
    margin: 8px 0 0;
    color: var(--muted-color);
    line-height: 1.7;
    font-weight: 700;
}

.panel-badge {
    background: color-mix(in srgb, var(--brand-secondary) 12%, #ffffff);
    color: var(--brand-secondary);
    border: 1px solid color-mix(in srgb, var(--brand-secondary) 18%, #ffffff);
    border-radius: 999px;
    padding: 8px 13px;
    font-size: 12px;
    font-weight: 900;
}

.upload-box {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 104px;
    padding: 16px;
    border-radius: 22px;
    background: #F8FAFC;
    border: 1px dashed #CBD5E1;
}

.upload-box img {
    width: 76px;
    height: 76px;
    object-fit: contain;
    border-radius: 20px;
    background: #fff;
    border: 1px solid #E2E8F0;
    padding: 8px;
}

.upload-box .logo-preview-wide {
    width: 170px;
    height: 76px;
    object-fit: contain;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #E2E8F0;
    padding: 10px;
}

.color-field {
    min-height: 50px;
    border-radius: 17px;
    padding: 6px 8px;
    background: #fff;
    border: 1px solid #DDE4EE;
    display: flex;
    align-items: center;
    gap: 10px;
}

.color-field input[type="color"] {
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
}

.color-field span {
    direction: ltr;
    color: #334155;
    font-size: 13px;
    font-weight: 900;
}

.pro-color-field {
    height: 52px;
    padding: 6px;
    gap: 8px;
}

.pro-color-field input[type="color"] {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
}

.pro-color-field .js-color-code {
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--brand-dark);
    font-weight: 900;
    font-size: 14px;
    text-align: left;
    direction: ltr;
    padding: 0 6px;
}

.pro-color-field .js-color-code:focus {
    box-shadow: none;
}

.pro-color-field .js-color-code.is-invalid {
    color: var(--danger-color);
}

.settings-actions {
    position: sticky;
    bottom: 20px;
    z-index: 10;
    display: flex;
    justify-content: flex-end;
    padding: 16px;
    border-radius: 26px;
    background: rgba(255, 255, 255, .72);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(226, 232, 240, .9);
    box-shadow: var(--shadow-md);
}

/* ===============================
   Tables / Badges
================================ */

.table-card {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
}

.table {
    margin: 0;
}

.table thead th {
    background: #F8FAFC;
    color: #475569;
    border-bottom: 1px solid #E2E8F0;
    padding: 15px 16px;
    font-size: 13px;
    font-weight: 900;
}

.table tbody td {
    vertical-align: middle;
    padding: 15px 16px;
    color: var(--brand-dark);
    border-bottom: 1px solid #F1F5F9;
    font-weight: 700;
}

.badge-ui {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.badge-success {
    color: #166534;
    background: #DCFCE7;
}

.badge-warning {
    color: #92400E;
    background: #FEF3C7;
}

.badge-danger {
    color: #991B1B;
    background: #FEE2E2;
}

.empty-state {
    padding: 46px 20px;
    text-align: center;
    color: var(--muted-color);
}

/* ===============================
   SweetAlert2
================================ */

.app-toast {
    font-family: "Cairo", "Tahoma", sans-serif !important;
    border-radius: 18px !important;
    box-shadow: var(--shadow-md) !important;
}

.app-confirm {
    font-family: "Cairo", "Tahoma", sans-serif !important;
    border-radius: 28px !important;
}

/* ===============================
   Responsive
================================ */

@media (max-width: 1200px) {
    .settings-layout {
        grid-template-columns: 300px minmax(0, 1fr);
    }
}

@media (max-width: 991px) {
    .app-shell {
        display: block;
    }

    .sidebar {
        position: static;
        width: 100%;
        border-left: 0;
        border-bottom: 1px solid rgba(255,255,255,.08);
    }

    .main-content {
        width: 100%;
        margin-right: 0;
    }

    .topbar {
        position: static;
        display: block;
    }

    .topbar-user {
        margin-top: 18px;
        justify-content: space-between;
    }

    .content-area {
        padding: 22px;
    }

    .settings-layout {
        direction: rtl;
        grid-template-columns: 1fr;
    }

    .settings-side {
        position: static;
    }

    .login-shell {
        grid-template-columns: 1fr;
    }

    .login-brand-panel {
        min-height: 380px;
    }

    .dashboard-hero {
        display: block;
    }

    .dashboard-hero-actions {
        margin-top: 22px;
    }

    .quick-actions-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .content-area {
        padding: 16px;
    }

    .ui-card,
    .settings-panel,
    .auth-card,
    .dashboard-card {
        padding: 22px;
        border-radius: 24px;
    }

    .section-header,
    .panel-header {
        display: block;
    }

    .panel-badge {
        display: inline-flex;
        margin-top: 14px;
    }

    .login-page {
        padding: 16px;
    }

    .login-brand-panel,
    .login-form-panel {
        padding: 28px;
    }

    .dashboard-hero {
        padding: 26px;
        border-radius: 26px;
    }

    .dashboard-hero h2 {
        font-size: 28px;
    }
}

/* ===============================
   CRUD / Tables / Forms
================================ */

.filter-bar {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 24px;
    padding: 18px;
    margin-bottom: 22px;
}

.table-title {
    color: var(--brand-dark);
    font-weight: 900;
    margin-bottom: 4px;
}

.table-subtitle {
    color: var(--muted-color);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.7;
}

.text-primary-ui {
    color: var(--brand-secondary) !important;
}

.badge-muted {
    color: #475569;
    background: #F1F5F9;
}

.action-group {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-icon {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #F1F5F9;
    color: var(--brand-dark);
    transition: .18s ease;
}

.btn-icon:hover {
    background: color-mix(in srgb, var(--brand-secondary) 12%, #ffffff);
    color: var(--brand-secondary);
}

.btn-icon-danger:hover {
    background: #FEE2E2;
    color: #DC2626;
}

.btn-icon:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.table-loading {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .74);
    backdrop-filter: blur(4px);
}

.table-loading > div {
    position: absolute;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
}

.ajax-pagination {
    margin-top: 18px;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}

.pagination-info {
    color: var(--muted-color);
    font-size: 13px;
    font-weight: 800;
}

.pagination-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.form-section {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 26px;
    padding: 22px;
}

.form-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--brand-dark);
    font-size: 17px;
    font-weight: 900;
    margin-bottom: 22px;
}

.form-section-title i {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    background: color-mix(in srgb, var(--brand-secondary) 12%, #ffffff);
    color: var(--brand-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.form-switch-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 22px;
    padding: 18px;
}

.switch-ui {
    position: relative;
    width: 58px;
    height: 32px;
    flex: 0 0 auto;
}

.switch-ui input {
    display: none;
}

.switch-ui span {
    position: absolute;
    inset: 0;
    cursor: pointer;
    border-radius: 999px;
    background: #CBD5E1;
    transition: .18s ease;
}

.switch-ui span::before {
    content: "";
    position: absolute;
    width: 26px;
    height: 26px;
    right: 3px;
    top: 3px;
    border-radius: 50%;
    background: #fff;
    transition: .18s ease;
    box-shadow: 0 5px 14px rgba(15, 23, 42, .18);
}

.switch-ui input:checked + span {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
}

.switch-ui input:checked + span::before {
    right: 29px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.code-badge {
    display: inline-flex;
    direction: ltr;
    background: #F1F5F9;
    color: var(--brand-dark);
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 900;
}

.permissions-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.permission-module-card {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 24px;
    padding: 18px;
}

.permission-module-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #E2E8F0;
}

.permission-module-header h3 {
    margin: 0;
    color: var(--brand-dark);
    font-size: 18px;
    font-weight: 900;
}

.permission-module-header span {
    display: block;
    margin-top: 4px;
    color: var(--muted-color);
    font-size: 12px;
    font-weight: 800;
}

.permission-check-all {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    color: var(--brand-secondary);
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
}

.permission-list {
    display: grid;
    gap: 10px;
}

.permission-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 12px;
    cursor: pointer;
    transition: .18s ease;
}

.permission-item:hover {
    border-color: color-mix(in srgb, var(--brand-secondary) 25%, #ffffff);
    background: color-mix(in srgb, var(--brand-secondary) 7%, #ffffff);
}

.permission-item input {
    margin-top: 4px;
}

.permission-item strong {
    display: block;
    color: var(--brand-dark);
    font-size: 14px;
    font-weight: 900;
}

.permission-item small {
    display: block;
    direction: ltr;
    text-align: left;
    color: var(--muted-color);
    font-size: 12px;
    font-weight: 800;
    margin-top: 3px;
}

@media (max-width: 991px) {
    .permissions-grid {
        grid-template-columns: 1fr;
    }
}

.select2-container {
    width: 100% !important;
    direction: rtl;
}

.select2-container--bootstrap-5 .select2-selection {
    min-height: 46px;
    border-radius: 14px;
    border-color: #e5e7eb;
    padding: 0.35rem 0.75rem;
}

.select2-container--bootstrap-5.select2-container--focus .select2-selection,
.select2-container--bootstrap-5.select2-container--open .select2-selection {
    border-color: var(--secondary);
    box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.12);
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice {
    border-radius: 999px;
    background: var(--brand-light);
    border-color: #e5e7eb;
    color: var(--dark);
    padding-inline: 8px;
}

.select2-dropdown {
    direction: rtl;
    text-align: right;
}

/* =========================================================
   Premium Dashboard
========================================================= */

.dashboard-premium {
    position: relative;
}

.dashboard-hero-card {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    padding: 34px;
    min-height: 260px;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.20), transparent 35%),
        linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    box-shadow: 0 24px 70px rgba(17, 24, 39, 0.22);
}

.dashboard-hero-card::before {
    content: "";
    position: absolute;
    inset: -80px auto auto -80px;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
}

.dashboard-hero-card::after {
    content: "";
    position: absolute;
    right: -70px;
    bottom: -90px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.dashboard-hero-content {
    position: relative;
    z-index: 2;
    max-width: 560px;
}

.dashboard-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    margin-bottom: 18px;
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.88);
    font-size: 13px;
    font-weight: 800;
}

.dashboard-hero-title {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.dashboard-hero-text {
    max-width: 520px;
    margin-bottom: 26px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.9;
    font-weight: 600;
}

.dashboard-hero-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.dashboard-hero-grid > div {
    padding: 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
}

.dashboard-hero-grid span {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    font-weight: 700;
}

.dashboard-hero-grid strong {
    display: block;
    font-size: 18px;
    font-weight: 900;
    color: #fff;
}

.dashboard-hero-icon {
    position: absolute;
    left: 34px;
    bottom: 28px;
    z-index: 1;
    width: 92px;
    height: 92px;
    border-radius: 28px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.85);
    font-size: 38px;
}

.premium-kpi-card {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    padding: 28px;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 18px 55px rgba(15, 23, 42, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.premium-kpi-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.10);
}

.premium-kpi-card::after {
    content: "";
    position: absolute;
    left: -45px;
    top: -45px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: rgba(79, 70, 229, 0.08);
}

.premium-kpi-icon {
    position: relative;
    z-index: 2;
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    margin-bottom: 26px;
    background: var(--brand-light);
    color: var(--secondary);
    font-size: 22px;
}

.premium-kpi-label {
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 8px;
}

.premium-kpi-value {
    color: var(--dark);
    font-size: 26px;
    font-weight: 900;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.premium-kpi-hint {
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.mini-stats-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.mini-stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.05);
}

.mini-stat-icon {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: var(--brand-light);
    color: var(--secondary);
    font-size: 19px;
}

.mini-stat-card span {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 4px;
}

.mini-stat-card strong {
    display: block;
    color: var(--dark);
    font-size: 18px;
    font-weight: 900;
}

.premium-panel {
    border-radius: 28px;
    box-shadow: 0 18px 55px rgba(15, 23, 42, 0.06);
}

.premium-table-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.premium-list-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: 20px;
    background: #f8fafc;
    border: 1px solid rgba(226, 232, 240, 0.9);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.premium-list-row:hover {
    background: #fff;
    border-color: rgba(79, 70, 229, 0.18);
    transform: translateY(-2px);
}

.premium-list-main {
    min-width: 0;
}

.premium-list-title {
    display: block;
    color: var(--dark);
    font-weight: 900;
    margin-bottom: 5px;
    text-decoration: none;
}

a.premium-list-title:hover {
    color: var(--secondary);
}

.premium-list-subtitle {
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.premium-list-side {
    text-align: left;
    flex-shrink: 0;
}

.premium-list-side strong {
    display: block;
    color: var(--dark);
    font-weight: 900;
    margin-bottom: 5px;
}

.premium-list-side span {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.ranked-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ranked-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-radius: 20px;
    background: #f8fafc;
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.ranked-number {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--secondary);
    color: #fff;
    font-weight: 900;
}

.ranked-content {
    flex: 1;
    min-width: 0;
}

.ranked-content strong {
    display: block;
    color: var(--dark);
    font-weight: 900;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ranked-content span {
    display: block;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.ranked-value {
    color: var(--dark);
    font-weight: 900;
    text-align: left;
    flex-shrink: 0;
}

.dashboard-premium .text-success {
    color: #16a34a !important;
}

.dashboard-premium .text-danger {
    color: #dc2626 !important;
}

/* Responsive */
@media (max-width: 1199.98px) {
    .mini-stats-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dashboard-hero-icon {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .dashboard-hero-card {
        padding: 24px;
        border-radius: 24px;
    }

    .dashboard-hero-title {
        font-size: 24px;
    }

    .dashboard-hero-grid {
        grid-template-columns: 1fr;
    }

    .mini-stats-grid {
        grid-template-columns: 1fr;
    }

    .premium-list-row,
    .ranked-item {
        align-items: flex-start;
        flex-direction: column;
    }

    .premium-list-side,
    .ranked-value {
        text-align: right;
    }
}

/* =========================================================
   Dashboard Skeleton
========================================================= */

.dashboard-skeleton-card,
.dashboard-skeleton-mini,
.dashboard-skeleton-panel {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 18px 55px rgba(15, 23, 42, 0.05);
}

.dashboard-skeleton-card {
    min-height: 220px;
}

.dashboard-skeleton-card.hero {
    min-height: 260px;
}

.dashboard-skeleton-mini {
    height: 82px;
    border-radius: 22px;
}

.dashboard-skeleton-panel {
    min-height: 330px;
}

.dashboard-skeleton-card::after,
.dashboard-skeleton-mini::after,
.dashboard-skeleton-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(100%);
    background: linear-gradient(
        90deg,
        transparent,
        rgba(248, 250, 252, 0.9),
        transparent
    );
    animation: dashboardSkeleton 1.2s infinite;
}

@keyframes dashboardSkeleton {
    100% {
        transform: translateX(-100%);
    }
}

/* Dashboard Cache Note */
.dashboard-cache-note {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 18px;
    background: rgba(79, 70, 229, 0.08);
    border: 1px solid rgba(79, 70, 229, 0.14);
    color: var(--dark);
}

.dashboard-cache-note-icon {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: #fff;
    color: var(--secondary);
    font-size: 18px;
}

.dashboard-cache-note strong {
    display: block;
    margin-bottom: 2px;
    font-size: 13px;
    font-weight: 900;
}

.dashboard-cache-note span {
    display: block;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.7;
}

/* Dashboard Cache Note */
.dashboard-cache-note {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 18px;
    background: rgba(79, 70, 229, 0.08);
    border: 1px solid rgba(79, 70, 229, 0.14);
    color: var(--dark);
}

.dashboard-cache-note-icon {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: #fff;
    color: var(--secondary);
    font-size: 18px;
}

.dashboard-cache-note-content {
    flex: 1;
    min-width: 0;
}

.dashboard-cache-note strong {
    display: block;
    margin-bottom: 2px;
    font-size: 13px;
    font-weight: 900;
}

.dashboard-cache-note span {
    display: block;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.7;
}

.dashboard-cache-note-close {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: #fff;
    color: #64748b;
    font-size: 13px;
    cursor: pointer;
    transition: 0.2s ease;
}

.dashboard-cache-note-close:hover {
    background: var(--secondary);
    color: #fff;
}

/* =========================================================
   Subscription Expired Page
========================================================= */

.subscription-expired-page {
    max-width: 780px;
    margin: 0 auto;
}

.subscription-expired-card {
    padding: 44px 34px;
    border-radius: 30px;
}

.subscription-expired-icon {
    width: 82px;
    height: 82px;
    border-radius: 28px;
    display: grid;
    place-items: center;
    margin: 0 auto 24px;
    background: rgba(220, 38, 38, 0.08);
    color: #dc2626;
    font-size: 34px;
}

.subscription-expired-title {
    font-size: 28px;
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 12px;
}

.subscription-expired-text {
    max-width: 560px;
    margin: 0 auto 28px;
    color: #64748b;
    font-weight: 700;
    line-height: 1.9;
}

.subscription-expired-info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 28px auto;
    max-width: 620px;
}

.subscription-expired-info > div {
    padding: 16px;
    border-radius: 20px;
    background: #f8fafc;
    border: 1px solid rgba(226, 232, 240, 0.9);
    text-align: right;
}

.subscription-expired-info span {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 6px;
}

.subscription-expired-info strong {
    display: block;
    color: var(--dark);
    font-size: 15px;
    font-weight: 900;
}

.subscription-expired-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

@media (max-width: 767.98px) {
    .subscription-expired-card {
        padding: 32px 20px;
    }

    .subscription-expired-title {
        font-size: 22px;
    }

    .subscription-expired-info {
        grid-template-columns: 1fr;
    }

    .subscription-expired-actions {
        flex-direction: column;
    }

    .subscription-expired-actions .btn,
    .subscription-expired-actions form {
        width: 100%;
    }

    .subscription-expired-actions form .btn {
        width: 100%;
    }
}

/* =========================================================
   Account Page
========================================================= */

.account-subscription-card {
    padding: 22px;
    border-radius: 24px;
    background:
        radial-gradient(circle at top left, rgba(79, 70, 229, 0.10), transparent 36%),
        #fff;
    border: 1px solid rgba(226, 232, 240, 0.95);
}

.account-subscription-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
}

.account-subscription-label {
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 6px;
}

.account-subscription-head h3 {
    color: var(--dark);
    font-size: 22px;
    font-weight: 900;
    margin: 0;
}

.account-subscription-message {
    color: #64748b;
    font-weight: 700;
    line-height: 1.9;
    margin-bottom: 20px;
}

.account-subscription-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.account-subscription-grid > div {
    padding: 15px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.account-subscription-grid span {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 6px;
}

.account-subscription-grid strong {
    display: block;
    color: var(--dark);
    font-size: 15px;
    font-weight: 900;
}

@media (max-width: 767.98px) {
    .account-subscription-head {
        flex-direction: column;
    }

    .account-subscription-grid {
        grid-template-columns: 1fr;
    }
}