/* ============================================================
   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;
    }
}

.form-error {
    margin-top: 16px;
    padding: 12px 14px;

    color: var(--color-danger);
    background: var(--color-danger-border);

    border: 1px solid rgba(220, 38, 38, 0.18);
    border-radius: var(--radius-md);

    font-size: var(--font-size-sm);
    line-height: 20px;
}


/* ------------------------------------------------------------
   30. SUMRAK LOGIN
   Scoped to the login page so the remaining UI can migrate
   independently.
   ------------------------------------------------------------ */

@font-face {
    font-family: "Commissioner";
    src: url("../fonts/commissioner.woff2") format("woff2");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

body.sumrak-auth {
    --sumrak-black: #030504;
    --sumrak-ink: #f4f7f5;
    --sumrak-muted: #949b97;
    --sumrak-line: rgba(255, 255, 255, 0.14);
    --sumrak-green: #45ff68;
    --sumrak-blue: #0046ff;

    min-height: 100svh;
    overflow-x: hidden;
    background: var(--sumrak-black);
    color: var(--sumrak-ink);
    font-family: "Commissioner", Arial, sans-serif;
}

.sumrak-auth ::selection {
    background: var(--sumrak-green);
    color: var(--sumrak-black);
}

.sumrak-auth__skip-link {
    position: fixed;
    z-index: 100;
    top: 1rem;
    left: 1rem;
    padding: 0.7rem 1rem;
    transform: translateY(-200%);
    background: var(--sumrak-ink);
    color: var(--sumrak-black);
}

.sumrak-auth__skip-link:focus {
    transform: none;
}

.sumrak-auth__frame {
    position: relative;
    min-height: 100svh;
    overflow: hidden;
    background:
        linear-gradient(var(--sumrak-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--sumrak-line) 1px, transparent 1px),
        var(--sumrak-black);
    background-size: 25vw 25vw;
    isolation: isolate;
}

.sumrak-auth__frame::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background:
        radial-gradient(circle at 28% 46%, rgba(69, 255, 104, 0.09), transparent 30%),
        linear-gradient(180deg, transparent 55%, var(--sumrak-black) 100%);
    content: "";
}

.sumrak-auth__frame::after {
    position: absolute;
    z-index: 5;
    inset: 0;
    pointer-events: none;
    opacity: 0.09;
    background: repeating-linear-gradient(
        180deg,
        transparent 0,
        transparent 3px,
        rgba(255, 255, 255, 0.12) 4px
    );
    content: "";
}

.sumrak-auth__header {
    position: absolute;
    z-index: 10;
    top: 0;
    left: 0;
    display: flex;
    width: 100%;
    height: 5.25rem;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(1.25rem, 4vw, 4.5rem);
    border-bottom: 1px solid var(--sumrak-line);
}

.sumrak-auth__brand {
    display: inline-flex;
    width: 2.65rem;
    align-items: center;
}

.sumrak-auth__brand img {
    width: 100%;
    height: auto;
}

.sumrak-auth__status {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--sumrak-muted);
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.sumrak-auth__status span {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--sumrak-green);
    box-shadow: 0 0 1rem var(--sumrak-green);
}

.sumrak-auth__main {
    display: grid;
    min-height: 100svh;
    grid-template-columns: minmax(0, 1.3fr) minmax(27rem, 0.7fr);
    padding-top: 5.25rem;
}

.sumrak-auth__identity {
    position: relative;
    display: flex;
    min-width: 0;
    align-items: center;
    padding: clamp(4rem, 7vw, 8rem) clamp(1.5rem, 5vw, 6rem);
    overflow: hidden;
    border-right: 1px solid var(--sumrak-line);
}

.sumrak-auth__coordinates {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    display: flex;
    gap: 1rem;
    color: rgba(244, 247, 245, 0.38);
    font-size: 0.58rem;
    font-weight: 550;
    letter-spacing: 0.14em;
}

.sumrak-auth__identity-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 58rem;
}

.sumrak-auth__eyebrow {
    margin: 0 0 1.25rem;
    color: var(--sumrak-green);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.sumrak-auth__wordmark {
    width: min(100%, 45rem);
    height: auto;
    margin-bottom: clamp(2.5rem, 6vh, 5rem);
    filter:
        drop-shadow(0 0 0.35rem rgba(91, 255, 119, 0.6))
        drop-shadow(0 0 2.6rem rgba(38, 255, 72, 0.28));
}

.sumrak-auth__identity h1 {
    margin: 0;
    color: var(--sumrak-ink);
    font-size: clamp(3.1rem, 5.3vw, 6.5rem);
    font-weight: 420;
    letter-spacing: -0.065em;
    line-height: 0.88;
    text-transform: uppercase;
}

.sumrak-auth__identity h1 span {
    color: var(--sumrak-muted);
}

.sumrak-auth__lead {
    max-width: 34rem;
    margin: 2rem 0 0;
    color: #b7bdb9;
    font-size: clamp(0.9rem, 1.2vw, 1.08rem);
    line-height: 1.55;
}

.sumrak-auth__signal {
    position: absolute;
    right: 0;
    bottom: 3.5rem;
    left: 0;
    display: flex;
    height: 4rem;
    align-items: flex-end;
    gap: 1px;
    opacity: 0.42;
}

.sumrak-auth__signal span {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--sumrak-green));
    box-shadow: 0 0 1rem rgba(69, 255, 104, 0.36);
}

.sumrak-auth__signal span:nth-child(2) { height: 1.4rem; opacity: 0.45; }
.sumrak-auth__signal span:nth-child(3) { height: 3.5rem; opacity: 0.8; }
.sumrak-auth__signal span:nth-child(4) { height: 2rem; opacity: 0.55; }

.sumrak-auth__access {
    position: relative;
    z-index: 6;
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding: clamp(3rem, 6vw, 6rem) clamp(2rem, 4vw, 4.5rem) 4.5rem;
    background: rgba(3, 5, 4, 0.86);
    backdrop-filter: blur(1rem);
}

.sumrak-auth__access-inner {
    width: 100%;
    max-width: 27rem;
    margin: auto;
}

.sumrak-auth__section-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: clamp(3rem, 7vh, 5.5rem);
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--sumrak-line);
    color: #5e6561;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.sumrak-auth__form-header {
    margin-bottom: 2.5rem;
}

.sumrak-auth__form-header h2 {
    margin: 0;
    color: var(--sumrak-ink);
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: 430;
    letter-spacing: -0.055em;
    line-height: 0.95;
    text-transform: uppercase;
}

.sumrak-auth__form-header > p:last-child {
    max-width: 22rem;
    margin: 1rem 0 0;
    color: var(--sumrak-muted);
    font-size: 0.88rem;
}

.sumrak-auth .sumrak-auth__form {
    gap: 1.35rem;
}

.sumrak-auth .form-field {
    gap: 0.55rem;
}

.sumrak-auth .form-field__label {
    color: #b9bfbb;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.sumrak-auth .input {
    height: 3.65rem;
    padding: 0 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.15rem;
    outline: none;
    background: rgba(7, 10, 8, 0.88);
    color: var(--sumrak-ink);
    caret-color: var(--sumrak-green);
    font-size: 0.92rem;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.sumrak-auth .input::placeholder {
    color: #626965;
}

.sumrak-auth .input:hover {
    border-color: rgba(255, 255, 255, 0.38);
}

.sumrak-auth .input:focus {
    border-color: var(--sumrak-green);
    background: #080c09;
    box-shadow: 0 0 0 1px var(--sumrak-green), 0 0 1.4rem rgba(69, 255, 104, 0.1);
}

.sumrak-auth .form-actions {
    margin-top: 0.15rem;
}

.sumrak-auth .checkbox {
    color: var(--sumrak-muted);
    font-size: 0.75rem;
}

.sumrak-auth .checkbox input {
    width: 1rem;
    height: 1rem;
    accent-color: var(--sumrak-green);
}

.sumrak-auth .form-actions__link,
.sumrak-auth .link {
    color: var(--sumrak-green);
    font-size: 0.75rem;
    font-weight: 550;
    text-decoration: none;
}

.sumrak-auth .form-actions__link:hover,
.sumrak-auth .link:hover {
    color: #8aff9f;
    text-decoration: none;
}

.sumrak-auth .form-error {
    margin: 0;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(255, 91, 91, 0.48);
    border-radius: 0.15rem;
    background: rgba(112, 13, 13, 0.2);
    color: #ff9999;
    font-size: 0.78rem;
}

.sumrak-auth .button.button--primary {
    display: flex;
    width: 100%;
    min-height: 3.75rem;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.35rem;
    padding: 0 0 0 1.35rem;
    border: 0;
    border-radius: 0.15rem;
    background: var(--sumrak-blue);
    color: #fff;
    font-size: 0.76rem;
    font-weight: 650;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sumrak-auth .button.button--primary:hover {
    background: #1f5cff;
    transform: translateY(-2px);
}

.sumrak-auth__button-arrow {
    display: grid;
    width: 3.5rem;
    height: 3.75rem;
    place-items: center;
    border-left: 1px solid rgba(255, 255, 255, 0.32);
    font-size: 1.3rem;
}

.sumrak-auth .auth-card__footer {
    margin-top: 1.5rem;
    color: var(--sumrak-muted);
    font-size: 0.75rem;
    text-align: left;
}

.sumrak-auth__access-footer {
    position: absolute;
    right: clamp(2rem, 4vw, 4.5rem);
    bottom: 1.4rem;
    left: clamp(2rem, 4vw, 4.5rem);
    display: flex;
    justify-content: space-between;
    color: #4e5551;
    font-size: 0.55rem;
    font-weight: 600;
    letter-spacing: 0.14em;
}

.sumrak-auth a:focus-visible,
.sumrak-auth button:focus-visible,
.sumrak-auth input:focus-visible {
    outline: 2px solid var(--sumrak-green);
    outline-offset: 0.25rem;
}

@media (max-width: 900px) {
    .sumrak-auth__main {
        grid-template-columns: 1fr;
    }

    .sumrak-auth__identity {
        min-height: 32rem;
        border-right: 0;
        border-bottom: 1px solid var(--sumrak-line);
    }

    .sumrak-auth__wordmark {
        max-width: 35rem;
        margin-bottom: 2.75rem;
    }

    .sumrak-auth__access {
        min-height: 46rem;
    }
}

@media (max-width: 520px) {
    .sumrak-auth__header {
        height: 4.5rem;
    }

    .sumrak-auth__status {
        font-size: 0;
    }

    .sumrak-auth__main {
        padding-top: 4.5rem;
    }

    .sumrak-auth__identity {
        min-height: 27rem;
        padding: 5rem 1.25rem 4rem;
    }

    .sumrak-auth__coordinates {
        right: 1.25rem;
        left: 1.25rem;
        justify-content: space-between;
    }

    .sumrak-auth__identity h1 {
        font-size: clamp(2.65rem, 13vw, 4rem);
    }

    .sumrak-auth__lead {
        font-size: 0.85rem;
    }

    .sumrak-auth__access {
        min-height: 43rem;
        padding: 3.5rem 1.25rem 4.5rem;
    }

    .sumrak-auth__section-label {
        margin-bottom: 3rem;
    }

    .sumrak-auth .form-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.8rem;
    }

    .sumrak-auth__access-footer {
        right: 1.25rem;
        left: 1.25rem;
    }
}


/* Simple centered login variant. */

.sumrak-login {
    display: grid;
    min-height: 100svh;
    padding: 1.25rem;
    place-items: center;
}

.sumrak-login__card {
    width: 100%;
    max-width: 25rem;
    padding: clamp(1.75rem, 5vw, 2.5rem);
    border: 1px solid var(--sumrak-line);
    border-radius: 0.2rem;
    background: #070908;
    box-shadow: 0 1.5rem 5rem rgba(0, 0, 0, 0.38);
}

.sumrak-login__logo {
    width: 3.6rem;
    height: auto;
    margin: 0 auto 1.75rem;
    filter: drop-shadow(0 0 1.25rem rgba(69, 255, 104, 0.16));
}

.sumrak-login__title {
    margin: 0 0 2rem;
    color: var(--sumrak-ink);
    font-size: 1.65rem;
    font-weight: 450;
    letter-spacing: -0.035em;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
}

@media (max-width: 520px) {
    .sumrak-login {
        padding: 1rem;
    }

    .sumrak-login__card {
        padding: 1.75rem 1.25rem;
    }
}


/* ------------------------------------------------------------
   31. SUMRAK ACCOUNT PANEL
   ------------------------------------------------------------ */

body.sumrak-panel {
    --sumrak-black: #030504;
    --sumrak-surface: #070908;
    --sumrak-surface-hover: #0a0d0b;
    --sumrak-ink: #f4f7f5;
    --sumrak-muted: #949b97;
    --sumrak-line: rgba(255, 255, 255, 0.14);
    --sumrak-green: #45ff68;
    --sumrak-blue: #0046ff;
    --sumrak-sidebar-width: 15rem;

    min-height: 100svh;
    background: var(--sumrak-black);
    color: var(--sumrak-ink);
    font-family: "Commissioner", Arial, sans-serif;
}

.sumrak-panel ::selection {
    background: var(--sumrak-green);
    color: var(--sumrak-black);
}

.sumrak-panel__header {
    position: fixed;
    z-index: 20;
    inset: 0 auto 0 0;
    display: flex;
    width: var(--sumrak-sidebar-width);
    min-height: 100svh;
    flex-direction: column;
    align-items: stretch;
    padding: 2rem 1.25rem 1.25rem;
    border-right: 1px solid var(--sumrak-line);
    background: rgba(3, 5, 4, 0.92);
    backdrop-filter: blur(1rem);
}

.sumrak-panel__logo {
    display: inline-flex;
    width: 2.65rem;
    align-items: center;
    margin: 0 0 3.5rem 0.75rem;
}

.sumrak-panel__logo img {
    width: 100%;
    height: auto;
}

.sumrak-panel__nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
}

.sumrak-panel__nav a {
    position: relative;
    display: flex;
    min-height: 3rem;
    align-items: center;
    padding: 0 1rem;
    border: 1px solid transparent;
    border-radius: 0.15rem;
    color: var(--sumrak-muted);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: color 160ms ease;
}

.sumrak-panel__nav a::after {
    position: absolute;
    top: 0.7rem;
    bottom: 0.7rem;
    left: -1px;
    width: 1px;
    transform: scaleY(0);
    background: var(--sumrak-green);
    box-shadow: 0 0 0.9rem rgba(69, 255, 104, 0.55);
    content: "";
    transition: transform 160ms ease;
}

.sumrak-panel__nav a:hover,
.sumrak-panel__nav a.is-active {
    color: var(--sumrak-ink);
    background: var(--sumrak-surface);
    border-color: var(--sumrak-line);
}

.sumrak-panel__nav a.is-active::after {
    transform: scaleY(1);
}

.sumrak-panel__account {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: auto;
    padding: 1.25rem 1rem 0;
    border-top: 1px solid var(--sumrak-line);
    font-size: 0.72rem;
}

.sumrak-panel__account span {
    overflow: hidden;
    color: var(--sumrak-muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sumrak-panel__logout {
    margin: 0;
}

.sumrak-panel__logout button {
    padding: 0;
    color: var(--sumrak-ink);
    background: none;
    border: 0;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sumrak-panel__logout button:hover {
    color: var(--sumrak-green);
}

.sumrak-panel__content {
    width: min(calc(100% - var(--sumrak-sidebar-width)), 72rem);
    margin-right: auto;
    margin-left: max(var(--sumrak-sidebar-width), calc(50vw - 28.5rem));
    padding: clamp(3rem, 7vw, 6rem) clamp(1.25rem, 4vw, 4.5rem) 6rem;
}

.sumrak-panel__page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: clamp(2rem, 5vw, 4rem);
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--sumrak-line);
}

.sumrak-panel__page-header p,
.sumrak-panel__label {
    margin: 0;
    color: var(--sumrak-green);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.sumrak-panel__page-header h1 {
    margin: 0;
    color: var(--sumrak-ink);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 430;
    letter-spacing: -0.06em;
    line-height: 0.88;
    text-transform: uppercase;
}

.sumrak-panel__card {
    border: 1px solid var(--sumrak-line);
    border-radius: 0.2rem;
    background: var(--sumrak-surface);
}

.sumrak-profile {
    padding: clamp(1.5rem, 4vw, 3rem);
}

.sumrak-profile__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    padding-bottom: clamp(2rem, 5vw, 3.5rem);
}

.sumrak-profile__identity {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 1.25rem;
}

.sumrak-profile__avatar {
    display: grid;
    width: 4rem;
    height: 4rem;
    flex: 0 0 4rem;
    place-items: center;
    border: 1px solid rgba(69, 255, 104, 0.7);
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(69, 255, 104, 0.08), transparent 68%),
        #0a0d0b;
    color: var(--sumrak-ink);
    box-shadow:
        0 0 0 1px rgba(69, 255, 104, 0.12),
        0 0 1.6rem rgba(69, 255, 104, 0.38);
}

.sumrak-profile__avatar svg {
    width: 2rem;
    height: 2rem;
}

.sumrak-profile__header h2,
.sumrak-connection h2,
.sumrak-subscription h2,
.sumrak-panel__section-header h2,
.sumrak-history h2 {
    margin: 0.75rem 0 0;
    color: var(--sumrak-ink);
    font-size: clamp(1.55rem, 3vw, 2.4rem);
    font-weight: 450;
    letter-spacing: -0.04em;
    line-height: 1;
}

.sumrak-profile__role {
    margin: 0.75rem 0 0;
    color: var(--sumrak-muted);
    font-size: 0.8rem;
}

.sumrak-profile__details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
    border-top: 1px solid var(--sumrak-line);
    border-left: 1px solid var(--sumrak-line);
}

.sumrak-profile__details > div {
    min-width: 0;
    padding: 1.25rem;
    border-right: 1px solid var(--sumrak-line);
    border-bottom: 1px solid var(--sumrak-line);
}

.sumrak-profile__details dt {
    margin-bottom: 0.65rem;
    color: var(--sumrak-muted);
    font-size: 0.61rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.sumrak-profile__details dd {
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--sumrak-ink);
    font-size: 0.88rem;
}

.sumrak-panel__code {
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 0.75rem !important;
}

.sumrak-connection,
.sumrak-subscription {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: clamp(1.5rem, 4vw, 2.5rem);
}

.sumrak-subscription {
    margin-top: 1rem;
}

.sumrak-subscription__date {
    flex: 0 0 auto;
    text-align: right;
}

.sumrak-subscription__date span,
.sumrak-balance__amount span {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--sumrak-muted);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.sumrak-subscription__date strong {
    color: var(--sumrak-ink);
    font-size: 1rem;
    font-weight: 500;
}

.sumrak-panel__button {
    display: inline-flex;
    min-height: 3.6rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0 0 0 1.25rem;
    border: 0;
    border-radius: 0.15rem;
    background: var(--sumrak-blue);
    color: #fff;
    font-family: inherit;
    font-size: 0.68rem;
    font-weight: 650;
    letter-spacing: 0.07em;
    line-height: 1.2;
    text-align: left;
    text-transform: uppercase;
    transition: background-color 160ms ease, transform 160ms ease;
}

.sumrak-panel__button > span:last-child {
    display: grid;
    width: 3.25rem;
    align-self: stretch;
    place-items: center;
    border-left: 1px solid rgba(255, 255, 255, 0.32);
    font-size: 1.15rem;
}

.sumrak-panel__button:hover {
    background: #1f5cff;
    transform: translateY(-2px);
}

.sumrak-panel__section {
    margin-top: clamp(3rem, 7vw, 5.5rem);
}

.sumrak-panel__section-header {
    margin-bottom: 1.5rem;
}

.sumrak-plans {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.sumrak-plan {
    display: flex;
    min-height: 16rem;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
    padding: clamp(1.5rem, 3vw, 2rem);
}

.sumrak-plan h3 {
    margin: 0;
    color: var(--sumrak-ink);
    font-size: 1.5rem;
    font-weight: 450;
    letter-spacing: -0.035em;
}

.sumrak-plan p {
    max-width: 28rem;
    margin: 0.75rem 0 0;
    color: var(--sumrak-muted);
    font-size: 0.8rem;
}

.sumrak-plan .sumrak-panel__button {
    width: 100%;
}

.sumrak-balance {
    padding: clamp(1.5rem, 4vw, 2.5rem);
}

.sumrak-balance__amount {
    margin: 1.25rem 0 0;
    color: var(--sumrak-ink);
    font-size: clamp(3.5rem, 8vw, 7rem);
    font-weight: 350;
    letter-spacing: -0.075em;
    line-height: 0.85;
}

.sumrak-balance__amount span {
    display: inline;
    margin-left: 0.5rem;
}

.sumrak-payment-methods {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.sumrak-payment-method {
    display: flex;
    min-height: 5rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    color: var(--sumrak-ink);
    font-size: 0.82rem;
    font-weight: 600;
    transition: border-color 160ms ease, background-color 160ms ease;
}

.sumrak-payment-method:hover {
    border-color: rgba(69, 255, 104, 0.55);
    background: var(--sumrak-surface-hover);
}

form.sumrak-payment-method {
    padding: 0;
}

.sumrak-payment-method button {
    display: flex;
    width: 100%;
    min-height: 5rem;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border: 0;
    background: transparent;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
}

.sumrak-payment-method > span:last-child,
.sumrak-payment-method button > span:last-child {
    color: var(--sumrak-green);
    font-size: 1.1rem;
}

.sumrak-panel__empty {
    grid-column: 1 / -1;
    padding: 2rem;
    color: var(--sumrak-muted);
    font-size: 0.82rem;
}

.sumrak-history {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-top: clamp(3rem, 7vw, 5.5rem);
    padding: clamp(1.5rem, 4vw, 2.5rem);
}

.sumrak-history > p {
    margin: 0;
    color: var(--sumrak-muted);
    font-size: 0.8rem;
}

.sumrak-panel a:focus-visible,
.sumrak-panel button:focus-visible {
    outline: 2px solid var(--sumrak-green);
    outline-offset: 0.25rem;
}

@media (max-width: 800px) {
    .sumrak-panel__header {
        position: sticky;
        inset: 0;
        width: 100%;
        min-height: auto;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 0 1.25rem;
        padding: 0.85rem 1.25rem 0;
        border-right: 0;
        border-bottom: 1px solid var(--sumrak-line);
    }

    .sumrak-panel__logo {
        margin: 0;
    }

    .sumrak-panel__account {
        flex-direction: row;
        align-items: center;
        gap: 1.25rem;
        margin-top: 0;
        margin-left: auto;
        padding: 0;
        border-top: 0;
        min-width: 0;
    }

    .sumrak-panel__nav {
        order: 3;
        width: 100%;
        height: 3.5rem;
        flex-direction: row;
        align-items: stretch;
        justify-content: center;
    }

    .sumrak-panel__nav a {
        min-height: 3.5rem;
        padding: 0 0.5rem;
        border: 0;
        background: transparent !important;
    }

    .sumrak-panel__nav a::after {
        top: auto;
        right: 0;
        bottom: -1px;
        left: 0;
        width: auto;
        height: 1px;
        transform: scaleX(0);
    }

    .sumrak-panel__nav a.is-active::after {
        transform: scaleX(1);
    }

    .sumrak-panel__content {
        width: min(100%, 72rem);
        margin: 0 auto;
    }

    .sumrak-panel__page-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 600px) {
    .sumrak-panel__account span {
        display: none;
    }

    .sumrak-panel__nav {
        justify-content: space-between;
        gap: 1rem;
    }

    .sumrak-panel__content {
        padding-top: 3rem;
        padding-bottom: 4rem;
    }

    .sumrak-profile,
    .sumrak-connection,
    .sumrak-subscription,
    .sumrak-balance,
    .sumrak-history {
        padding: 1.25rem;
    }

    .sumrak-profile__header,
    .sumrak-connection,
    .sumrak-subscription,
    .sumrak-history {
        align-items: flex-start;
        flex-direction: column;
    }

    .sumrak-profile__identity {
        align-items: flex-start;
    }

    .sumrak-profile__details,
    .sumrak-plans,
    .sumrak-payment-methods {
        grid-template-columns: 1fr;
    }

    .sumrak-subscription__date {
        text-align: left;
    }

    .sumrak-connection .sumrak-panel__button {
        width: 100%;
    }

    .sumrak-plan {
        min-height: 14rem;
    }
}
