/* ============================================================
   VPN SERVICE — UI STYLES
   ============================================================ */

/* ------------------------------------------------------------
   1. DESIGN TOKENS
   ------------------------------------------------------------ */

:root {
    /* Colors */
    --color-primary: #5546D8;
    --color-primary-dark: #3E32A8;
    --color-primary-hover: #493AC2;
    --color-primary-light: #EEEBFF;

    --color-sidebar-start: #5546D8;
    --color-sidebar-end: #3527A5;

    --color-background: #F8F9FC;
    --color-surface: #FFFFFF;
    --color-surface-subtle: #F5F6FA;

    --color-text: #111827;
    --color-text-secondary: #64748B;
    --color-text-muted: #94A3B8;

    --color-border: #E6E8EF;
    --color-border-subtle: #EEF0F4;
    --color-border-primary: #CFC9FF;

    --color-success: #16A34A;
    --color-success-bg: #EAF8EF;
    --color-success-border: #C9EFD7;

    --color-warning: #D97706;
    --color-warning-bg: #FFF7E8;
    --color-warning-border: #F5DFB3;

    --color-danger: #DC2626;
    --color-danger-bg: #FEF2F2;
    --color-danger-border: #FECACA;

    --color-info: #5546D8;
    --color-info-bg: #F5F3FF;
    --color-info-border: #E8E3FF;

    /* Typography */
    --font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    --font-size-xs: 12px;
    --font-size-sm: 13px;
    --font-size-md: 14px;
    --font-size-base: 15px;
    --font-size-lg: 18px;
    --font-size-xl: 20px;
    --font-size-2xl: 24px;
    --font-size-3xl: 32px;

    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.6;

    /* Font weights */
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Spacing */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    --space-20: 80px;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 10px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 20px;
    --radius-pill: 999px;

    /* Layout */
    --sidebar-width: 260px;
    --header-height: 72px;
    --content-max-width: 1180px;

    /* Shadows */
    --shadow-sm:
        0 1px 2px rgba(15, 23, 42, 0.03);

    --shadow-md:
        0 2px 8px rgba(15, 23, 42, 0.05),
        0 1px 2px rgba(15, 23, 42, 0.03);

    --shadow-lg:
        0 16px 40px rgba(15, 23, 42, 0.10);

    --shadow-login:
        0 24px 60px rgba(27, 20, 90, 0.20);

    /* Transitions */
    --transition-fast: 120ms ease;
    --transition-base: 180ms ease;
}


/* ------------------------------------------------------------
   2. RESET
   ------------------------------------------------------------ */

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

html {
    min-height: 100%;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    margin: 0;

    background: var(--color-background);
    color: var(--color-text);

    font-family: var(--font-family);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-normal);

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

h1,
h2,
h3,
h4,
p {
    margin: 0;
}


/* ------------------------------------------------------------
   3. APPLICATION LAYOUT
   ------------------------------------------------------------ */

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

.app__sidebar {
    position: fixed;
    inset: 0 auto 0 0;

    display: flex;
    flex-direction: column;

    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    height: 100vh;

    padding: 28px 20px;

    background:
        linear-gradient(
            180deg,
            var(--color-sidebar-start) 0%,
            var(--color-sidebar-end) 100%
        );

    color: #FFFFFF;
}

.app__main {
    display: flex;
    flex: 1;
    flex-direction: column;

    min-width: 0;
    min-height: 100vh;

    margin-left: var(--sidebar-width);
}

.app__content {
    width: 100%;
    max-width: var(--content-max-width);

    margin: 0 auto;
    padding: 40px 48px 64px;
}


/* ------------------------------------------------------------
   4. HEADER
   ------------------------------------------------------------ */

.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;
    height: var(--header-height);

    padding: 0 48px;

    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
}

.app-header__left,
.app-header__right {
    display: flex;
    align-items: center;
}

.app-header__right {
    gap: var(--space-4);
}

.app-header__greeting {
    color: var(--color-text-secondary);
    font-size: var(--font-size-md);
}

.app-header__greeting strong {
    color: var(--color-text);
    font-weight: var(--font-weight-semibold);
}


/* ------------------------------------------------------------
   5. BRAND / LOGO
   ------------------------------------------------------------ */

.brand {
    display: flex;
    align-items: center;
    gap: 10px;

    color: #FFFFFF;
}

.brand__icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;
}

.brand__icon svg {
    width: 30px;
    height: 30px;
}

.brand__name {
    font-size: 16px;
    font-weight: var(--font-weight-bold);
    letter-spacing: -0.01em;
}

.brand__tagline {
    margin-top: 2px;

    color: rgba(255, 255, 255, 0.60);
    font-size: 11px;
}


/* ------------------------------------------------------------
   6. SIDEBAR
   ------------------------------------------------------------ */

.sidebar__brand {
    padding: 0 12px 40px;
}

.sidebar__navigation {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar__item {
    display: flex;
    align-items: center;
    gap: 12px;

    height: 44px;

    padding: 0 14px;

    color: rgba(255, 255, 255, 0.88);

    border-radius: var(--radius-md);

    font-size: var(--font-size-md);
    font-weight: var(--font-weight-medium);

    transition:
        background var(--transition-base),
        color var(--transition-base);
}

.sidebar__item:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.10);
}

.sidebar__item--active {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.16);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.sidebar__item svg {
    flex: 0 0 auto;

    width: 20px;
    height: 20px;

    stroke-width: 1.8;
}

.sidebar__divider {
    height: 1px;

    margin: 28px 16px;

    background: rgba(255, 255, 255, 0.14);
}

.sidebar__bottom {
    display: flex;
    flex-direction: column;

    margin-top: auto;
}

.sidebar__footer {
    margin-top: 32px;
    padding: 0 12px;

    color: rgba(255, 255, 255, 0.58);

    font-size: var(--font-size-xs);
    line-height: 1.7;
}


/* ------------------------------------------------------------
   7. USER MENU
   ------------------------------------------------------------ */

.user-menu {
    display: flex;
    align-items: center;
    gap: 10px;

    color: var(--color-text);
}

.user-menu__email {
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-medium);
}

.user-menu__arrow {
    color: var(--color-text-muted);
}

.user-menu__avatar {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 36px;
    height: 36px;

    color: var(--color-primary);
    background: var(--color-primary-light);

    border-radius: 50%;

    font-size: 14px;
    font-weight: var(--font-weight-semibold);
}


/* ------------------------------------------------------------
   8. PAGE HEADER
   ------------------------------------------------------------ */

.page-header {
    margin-bottom: 32px;
}

.page-header__title {
    color: var(--color-text);

    font-size: var(--font-size-3xl);
    line-height: 40px;
    font-weight: var(--font-weight-bold);

    letter-spacing: -0.025em;
}

.page-header__subtitle {
    margin-top: 6px;

    color: var(--color-text-secondary);

    font-size: var(--font-size-base);
    line-height: 24px;
}

.section-header {
    margin-bottom: 20px;
}

.section-header__title {
    color: var(--color-text);

    font-size: var(--font-size-xl);
    line-height: 28px;
    font-weight: var(--font-weight-semibold);
}

.section-header__subtitle {
    margin-top: 4px;

    color: var(--color-text-secondary);

    font-size: var(--font-size-md);
}


/* ------------------------------------------------------------
   9. CARDS
   ------------------------------------------------------------ */

.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);

    box-shadow: var(--shadow-md);
}

.card--flat {
    box-shadow: none;
}

.card--small {
    border-radius: var(--radius-lg);
    padding: 20px;
}

.card--large {
    padding: 28px;
}

.card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding-bottom: 20px;

    border-bottom: 1px solid var(--color-border);
}

.card__title {
    color: var(--color-text);

    font-size: var(--font-size-lg);
    line-height: 26px;
    font-weight: var(--font-weight-semibold);
}

.card__body {
    padding-top: 20px;
}


/* ------------------------------------------------------------
   10. PROFILE
   ------------------------------------------------------------ */

.profile-card {
    padding: 28px;
}

.profile-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding-bottom: 20px;

    border-bottom: 1px solid var(--color-border);
}

.profile-card__identity {
    display: flex;
    align-items: center;
    gap: 16px;
}

.profile-card__avatar {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 64px;
    height: 64px;

    flex: 0 0 auto;

    color: var(--color-primary);
    background: var(--color-primary-light);

    border-radius: 50%;

    font-size: 24px;
    font-weight: var(--font-weight-semibold);
}

.profile-card__name {
    color: var(--color-text);

    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
}

.profile-card__role {
    margin-top: 3px;

    color: var(--color-text-secondary);
    font-size: var(--font-size-md);
}

.profile-fields {
    display: flex;
    flex-direction: column;

    padding-top: 8px;
}

.profile-field {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    align-items: center;

    min-height: 56px;

    border-bottom: 1px solid var(--color-border-subtle);
}

.profile-field:last-child {
    border-bottom: none;
}

.profile-field__label {
    color: var(--color-text-secondary);

    font-size: var(--font-size-md);
    font-weight: var(--font-weight-medium);
}

.profile-field__value {
    min-width: 0;

    color: var(--color-text);

    font-size: var(--font-size-md);
    font-weight: var(--font-weight-medium);

    overflow-wrap: anywhere;
}


/* ------------------------------------------------------------
   11. STATUS BADGES
   ------------------------------------------------------------ */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    min-height: 30px;

    padding: 6px 10px;

    border-radius: var(--radius-sm);

    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);

    white-space: nowrap;
}

.badge__dot {
    width: 6px;
    height: 6px;

    flex: 0 0 auto;

    border-radius: 50%;
}

.badge--success {
    color: #15803D;
    background: var(--color-success-bg);
}

.badge--success .badge__dot {
    background: var(--color-success);
}

.badge--warning {
    color: #B45309;
    background: var(--color-warning-bg);
}

.badge--warning .badge__dot {
    background: var(--color-warning);
}

.badge--danger {
    color: #B91C1C;
    background: var(--color-danger-bg);
}

.badge--danger .badge__dot {
    background: var(--color-danger);
}

.badge--muted {
    color: var(--color-text-secondary);
    background: var(--color-surface-subtle);
}


/* ------------------------------------------------------------
   12. INFORMATION / ALERT BLOCKS
   ------------------------------------------------------------ */

.alert {
    display: flex;
    align-items: flex-start;
    gap: 14px;

    padding: 16px 20px;

    border-radius: var(--radius-lg);

    font-size: var(--font-size-md);
    line-height: 21px;
}

.alert__icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    width: 24px;
    height: 24px;
}

.alert__content {
    min-width: 0;
}

.alert__title {
    margin-bottom: 3px;

    font-weight: var(--font-weight-semibold);
}

.alert--info {
    color: #475569;

    background: var(--color-info-bg);
    border: 1px solid var(--color-info-border);
}

.alert--info .alert__icon {
    color: var(--color-info);
}

.alert--success {
    color: #166534;

    background: var(--color-success-bg);
    border: 1px solid var(--color-success-border);
}

.alert--warning {
    color: #92400E;

    background: var(--color-warning-bg);
    border: 1px solid var(--color-warning-border);
}

.alert--danger {
    color: #991B1B;

    background: var(--color-danger-bg);
    border: 1px solid var(--color-danger-border);
}


/* ------------------------------------------------------------
   13. DASHBOARD GRID
   ------------------------------------------------------------ */

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;

    margin-bottom: 32px;
}

.dashboard-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-grid--profile {
    grid-template-columns: minmax(0, 1.8fr) minmax(320px, 1fr);
}

.dashboard-card {
    min-height: 140px;
    padding: 20px;

    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-sm);
}

.dashboard-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    margin-bottom: 16px;

    color: var(--color-primary);
    background: var(--color-primary-light);

    border-radius: 50%;
}

.dashboard-card__label {
    color: var(--color-text-secondary);

    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
}

.dashboard-card__value {
    margin-top: 5px;

    color: var(--color-text);

    font-size: var(--font-size-lg);
    line-height: 26px;
    font-weight: var(--font-weight-semibold);
}

.dashboard-card__description {
    margin-top: 4px;

    color: var(--color-text-muted);

    font-size: var(--font-size-xs);
}


/* ------------------------------------------------------------
   14. FEATURE CARDS
   ------------------------------------------------------------ */

.feature-card {
    display: flex;
    flex-direction: column;

    min-height: 180px;

    padding: 24px;

    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);

    box-shadow: var(--shadow-sm);
}

.feature-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;

    margin-bottom: 18px;

    color: var(--color-primary);
    background: var(--color-primary-light);

    border-radius: 50%;
}

.feature-card__title {
    color: var(--color-text);

    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
}

.feature-card__description {
    margin-top: 6px;

    color: var(--color-text-secondary);

    font-size: var(--font-size-md);
    line-height: 21px;
}

.feature-card__footer {
    margin-top: auto;
    padding-top: 20px;
}


/* ------------------------------------------------------------
   15. BUTTONS
   ------------------------------------------------------------ */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-height: 44px;

    padding: 0 18px;

    border: 1px solid transparent;
    border-radius: var(--radius-md);

    font-size: var(--font-size-md);
    font-weight: var(--font-weight-semibold);

    line-height: 1;

    transition:
        background var(--transition-base),
        border-color var(--transition-base),
        color var(--transition-base),
        box-shadow var(--transition-base),
        transform var(--transition-fast);
}

.button:active {
    transform: translateY(1px);
}

.button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.button--primary {
    color: #FFFFFF;
    background: var(--color-primary);
}

.button--primary:hover {
    background: var(--color-primary-hover);
}

.button--secondary {
    color: var(--color-primary);
    background: var(--color-surface);
    border-color: var(--color-border-primary);
}

.button--secondary:hover {
    background: var(--color-primary-light);
}

.button--ghost {
    color: var(--color-text-secondary);
    background: transparent;
}

.button--ghost:hover {
    color: var(--color-text);
    background: var(--color-surface-subtle);
}

.button--danger {
    color: #FFFFFF;
    background: var(--color-danger);
}

.button--danger:hover {
    background: #B91C1C;
}

.button--small {
    min-height: 36px;
    padding: 0 14px;

    font-size: var(--font-size-sm);
}

.button--large {
    min-height: 48px;
    padding: 0 22px;
}


/* ------------------------------------------------------------
   16. LINKS
   ------------------------------------------------------------ */

.link {
    color: var(--color-primary);

    font-size: inherit;
    font-weight: var(--font-weight-medium);

    transition: color var(--transition-fast);
}

.link:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}


/* ------------------------------------------------------------
   17. FORMS
   ------------------------------------------------------------ */

.form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-field__label {
    color: var(--color-text);

    font-size: var(--font-size-md);
    font-weight: var(--font-weight-medium);
}

.form-field__hint {
    color: var(--color-text-muted);

    font-size: var(--font-size-xs);
    line-height: 18px;
}

.form-field__error {
    color: var(--color-danger);

    font-size: var(--font-size-xs);
    line-height: 18px;
}


/* ------------------------------------------------------------
   18. INPUTS
   ------------------------------------------------------------ */

.input {
    width: 100%;
    height: 46px;

    padding: 0 14px;

    color: var(--color-text);
    background: var(--color-surface);

    border: 1px solid #D9DDE7;
    border-radius: var(--radius-md);

    outline: none;

    font-size: var(--font-size-md);

    transition:
        border-color var(--transition-base),
        box-shadow var(--transition-base);
}

.input::placeholder {
    color: var(--color-text-muted);
}

.input:hover {
    border-color: #C8CDD8;
}

.input:focus {
    border-color: var(--color-primary);

    box-shadow:
        0 0 0 3px rgba(85, 70, 216, 0.12);
}

.input--error {
    border-color: var(--color-danger);
}

.input--error:focus {
    box-shadow:
        0 0 0 3px rgba(220, 38, 38, 0.10);
}


/* ------------------------------------------------------------
   19. CHECKBOX
   ------------------------------------------------------------ */

.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;

    color: var(--color-text-secondary);

    font-size: var(--font-size-sm);
}

.checkbox input {
    width: 16px;
    height: 16px;

    margin: 0;

    accent-color: var(--color-primary);
}


/* ------------------------------------------------------------
   20. LOGIN PAGE
   ------------------------------------------------------------ */

.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 100vh;
    padding: 32px;

    background:
        linear-gradient(
            135deg,
            var(--color-sidebar-start) 0%,
            var(--color-sidebar-end) 100%
        );
}

.auth-card {
    width: 100%;
    max-width: 420px;

    padding: 40px;

    background: var(--color-surface);
    border-radius: var(--radius-2xl);

    box-shadow: var(--shadow-login);
}

.auth-card__header {
    margin-bottom: 32px;

    text-align: center;
}

.auth-card__logo {
    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 28px;
}

.auth-card__logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    margin-right: 10px;

    color: var(--color-primary);
}

.auth-card__logo-text {
    color: var(--color-text);

    font-size: 17px;
    font-weight: var(--font-weight-bold);
}

.auth-card__title {
    color: var(--color-text);

    font-size: var(--font-size-2xl);
    line-height: 32px;
    font-weight: var(--font-weight-bold);

    letter-spacing: -0.02em;
}

.auth-card__subtitle {
    margin-top: 6px;

    color: var(--color-text-secondary);

    font-size: var(--font-size-md);
}

.auth-card__footer {
    margin-top: 24px;

    color: var(--color-text-secondary);

    font-size: var(--font-size-sm);
    text-align: center;
}

.auth-card__footer + .auth-card__footer {
    margin-top: 12px;
}


/* ------------------------------------------------------------
   21. LOGIN FORM ACTIONS
   ------------------------------------------------------------ */

.form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-top: 4px;
}

.form-actions__link {
    color: var(--color-primary);

    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
}

.form-actions__link:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

.form-submit {
    width: 100%;
    margin-top: 4px;
}


/* ------------------------------------------------------------
   22. EMPTY STATES
   ------------------------------------------------------------ */

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-height: 260px;

    padding: 40px;

    text-align: center;
}

.empty-state__icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 64px;
    height: 64px;

    margin-bottom: 20px;

    color: var(--color-primary);
    background: var(--color-primary-light);

    border-radius: 50%;
}

.empty-state__title {
    color: var(--color-text);

    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
}

.empty-state__description {
    max-width: 460px;

    margin-top: 6px;

    color: var(--color-text-secondary);

    font-size: var(--font-size-md);
    line-height: 21px;
}


/* ------------------------------------------------------------
   23. TABLES
   ------------------------------------------------------------ */

.table-wrapper {
    width: 100%;
    overflow-x: auto;

    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
}

.table {
    width: 100%;
    border-collapse: collapse;

    font-size: var(--font-size-md);
}

.table th {
    padding: 14px 20px;

    color: var(--color-text-secondary);
    background: var(--color-surface-subtle);

    border-bottom: 1px solid var(--color-border);

    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    text-align: left;
}

.table td {
    padding: 16px 20px;

    color: var(--color-text);

    border-bottom: 1px solid var(--color-border-subtle);
}

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


/* ------------------------------------------------------------
   24. BALANCE / PAYMENT CARDS
   ------------------------------------------------------------ */

.balance-card {
    padding: 24px;

    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);

    box-shadow: var(--shadow-sm);
}

.balance-card__label {
    color: var(--color-text-secondary);

    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
}

.balance-card__amount {
    margin-top: 6px;

    color: var(--color-text);

    font-size: 28px;
    line-height: 36px;
    font-weight: var(--font-weight-bold);

    letter-spacing: -0.02em;
}

.balance-card__actions {
    display: flex;
    gap: 8px;

    margin-top: 20px;
}


/* ------------------------------------------------------------
   25. VPN STATUS
   ------------------------------------------------------------ */

.vpn-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-height: 300px;

    padding: 40px;

    text-align: center;
}

.vpn-status__icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 88px;
    height: 88px;

    margin-bottom: 24px;

    color: var(--color-primary);

    background:
        radial-gradient(
            circle,
            var(--color-primary-light) 0%,
            #F7F7FC 70%,
            transparent 71%
        );

    border-radius: 50%;
}

.vpn-status__title {
    color: var(--color-text);

    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
}

.vpn-status__description {
    margin-top: 6px;
    color: var(--color-text-secondary);
    font-size: var(--font-size-md);
    line-height: 21px;
}

.vpn-status__action {
    margin-top: 20px;
}


/* ------------------------------------------------------------
   26. FOOTER
   ------------------------------------------------------------ */

.app-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-top: 48px;
    padding-top: 24px;

    border-top: 1px solid var(--color-border);

    color: var(--color-text-muted);

    font-size: var(--font-size-xs);
}

.app-footer__links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.app-footer__link {
    color: var(--color-text-secondary);

    transition: color var(--transition-fast);
}

.app-footer__link:hover {
    color: var(--color-primary);
}


/* ------------------------------------------------------------
   27. UTILITIES
   ------------------------------------------------------------ */

.text-primary {
    color: var(--color-primary);
}

.text-secondary {
    color: var(--color-text-secondary);
}

.text-muted {
    color: var(--color-text-muted);
}

.text-success {
    color: var(--color-success);
}

.text-warning {
    color: var(--color-warning);
}

.text-danger {
    color: var(--color-danger);
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.font-medium {
    font-weight: var(--font-weight-medium);
}

.font-semibold {
    font-weight: var(--font-weight-semibold);
}

.font-bold {
    font-weight: var(--font-weight-bold);
}

.mt-1 {
    margin-top: var(--space-1);
}

.mt-2 {
    margin-top: var(--space-2);
}

.mt-4 {
    margin-top: var(--space-4);
}

.mt-6 {
    margin-top: var(--space-6);
}

.mt-8 {
    margin-top: var(--space-8);
}

.mb-2 {
    margin-bottom: var(--space-2);
}

.mb-4 {
    margin-bottom: var(--space-4);
}

.mb-6 {
    margin-bottom: var(--space-6);
}

.mb-8 {
    margin-bottom: var(--space-8);
}

.w-full {
    width: 100%;
}


/* ------------------------------------------------------------
   28. RESPONSIVE
   ------------------------------------------------------------ */

@media (max-width: 1200px) {
    :root {
        --sidebar-width: 240px;
    }

    .app__content {
        padding-right: 32px;
        padding-left: 32px;
    }

    .app-header {
        padding-right: 32px;
        padding-left: 32px;
    }

    .dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-grid--profile {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 900px) {
    :root {
        --sidebar-width: 220px;
    }

    .app__content {
        padding: 32px 24px 48px;
    }

    .app-header {
        padding: 0 24px;
    }

    .page-header__title {
        font-size: 28px;
        line-height: 36px;
    }

    .profile-field {
        grid-template-columns: 150px minmax(0, 1fr);
    }
}


@media (max-width: 720px) {
    .app {
        display: block;
    }

    .app__sidebar {
        position: static;

        width: 100%;
        min-width: 0;
        height: auto;

        padding: 16px;
    }

    .sidebar__brand {
        padding: 0 8px 20px;
    }

    .sidebar__navigation {
        flex-direction: row;
        overflow-x: auto;
    }

    .sidebar__item {
        flex: 0 0 auto;
    }

    .sidebar__divider,
    .sidebar__bottom {
        display: none;
    }

    .sidebar__footer {
        display: none;
    }

    .app__main {
        margin-left: 0;
    }

    .app-header {
        height: 64px;
        padding: 0 20px;
    }

    .app__content {
        padding: 28px 20px 40px;
    }

    .dashboard-grid,
    .dashboard-grid--two,
    .dashboard-grid--three {
        grid-template-columns: 1fr;
    }

    .profile-field {
        grid-template-columns: 1fr;
        gap: 4px;

        padding: 12px 0;
    }

    .profile-field__value {
        padding-bottom: 4px;
    }

    .app-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}


@media (max-width: 520px) {
    .app-header__greeting {
        display: none;
    }

    .user-menu__email {
        display: none;
    }

    .page-header {
        margin-bottom: 24px;
    }

    .page-header__title {
        font-size: 26px;
        line-height: 34px;
    }

    .card--large,
    .profile-card {
        padding: 20px;
    }

    .profile-card__header {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    .auth-page {
        padding: 16px;
    }

    .auth-card {
        padding: 28px 20px;
        border-radius: var(--radius-xl);
    }

    .form-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .app-footer__links {
        flex-wrap: wrap;
        gap: 12px 20px;
    }
}


/* ------------------------------------------------------------
   29. REDUCED MOTION
   ------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}