/* ROU VPN — FlipOS dashboard (colors, responsive UX) */

:root {
    --rou-primary: #D90F32;
    --rou-primary-dark: #B00D29;
    --rou-primary-soft: rgba(217, 15, 50, 0.08);
    --rou-primary-ring: rgba(217, 15, 50, 0.14);
    --rou-secondary: #F97316;
    --rou-cream: #FFF7ED;
    --rou-surface: #FFFFFF;
    --rou-surface-muted: #F8F8F7;
    --rou-surface-hover: #F3F4F6;
    --rou-border: #E5E7EB;
    --rou-border-strong: #D4D4D8;
    --rou-text: #3F3F46;
    --rou-text-strong: #1E1E1E;
    --rou-text-light: #71717A;
    --rou-text-muted: #9CA3AF;
    --rou-text-on-primary: #FFFFFF;
    --rou-success: #16A34A;
    --rou-success-soft: rgba(22, 163, 74, 0.12);
    --rou-danger: #DC2626;
    --rou-danger-soft: rgba(220, 38, 38, 0.08);
    --rou-font-display: 'Poppins', 'Inter', system-ui, sans-serif;
    --rou-font-body: 'Inter', 'Poppins', system-ui, sans-serif;
    --rou-radius-sm: 8px;
    --rou-radius: 12px;
    --rou-radius-lg: 16px;
    --rou-shadow-sm: 0 1px 3px rgba(28, 25, 23, 0.05), 0 4px 12px rgba(28, 25, 23, 0.04);
    --rou-shadow-md: 0 10px 30px rgba(28, 25, 23, 0.08);
    --rou-ease: cubic-bezier(0.05, 0.7, 0.1, 1);
    --rou-nav-height: 4rem;
    --rou-content-max: 56rem;
    --rou-touch: 2.75rem;
    --rou-glass-panel: rgba(255, 255, 255, 0.88);
    --rou-glass-border: rgba(255, 255, 255, 0.55);
    --rou-overlay: rgba(28, 25, 23, 0.32);
    --rou-overlay-blur: 14px;
}

/* --- Shell --- */
html {
    scroll-behavior: smooth;
}

html,
body.rou-vpn,
body.rou-vpn.bg-gray-50,
body.rou-vpn.dark\:bg-neutral-800 {
    background: var(--rou-cream) !important;
    color: var(--rou-text) !important;
    font-family: var(--rou-font-body) !important;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex !important;
    flex-direction: column !important;
}

body.rou-vpn::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 80% 50% at 12% 0%, rgba(217, 15, 50, 0.05) 0%, transparent 55%),
        radial-gradient(ellipse 60% 40% at 100% 0%, rgba(249, 115, 22, 0.04) 0%, transparent 50%);
}

body.rou-vpn #app {
    position: relative;
    z-index: 1;
    flex: 1;
    width: 100%;
}

/* --- Nav --- */
.rou-vpn-nav {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(255, 247, 237, 0.98);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.rou-vpn-nav__inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
    min-height: var(--rou-nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.rou-vpn-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
}

.rou-vpn-logo:focus-visible {
    outline: 2px solid var(--rou-primary);
    outline-offset: 3px;
    border-radius: 0.5rem;
}

.rou-vpn-logo__word {
    font-family: var(--rou-font-display);
    font-size: clamp(1.35rem, 3vw, 1.625rem);
    font-weight: 700;
    color: var(--rou-primary);
    letter-spacing: -0.03em;
    line-height: 1;
}

/* Hide wg-easy square logo images — wordmark only */
body.rou-vpn img[src*="logo.svg"],
body.rou-vpn img[src*="logo.png"],
body.rou-vpn h1 img {
    display: none !important;
}

.rou-vpn-logo--footer .rou-vpn-logo__word {
    color: #fff;
}

.rou-vpn-nav__badge {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--rou-text-light);
    padding: 0.4rem 0.75rem;
    border-radius: 9999px;
    background: var(--rou-primary-soft);
    border: 1px solid var(--rou-primary-ring);
    white-space: nowrap;
}

/* --- Hero --- */
.rou-vpn-hero {
    max-width: var(--rou-content-max);
    margin: 0 auto;
    padding: clamp(1.25rem, 4vw, 2rem) 1rem 1rem;
}

.rou-vpn-hero__eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--rou-primary);
    margin-bottom: 0.4rem;
}

.rou-vpn-hero h2 {
    font-family: var(--rou-font-display);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--rou-text-strong);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 0.4rem;
}

.rou-vpn-hero__sub {
    font-size: clamp(0.9375rem, 2vw, 1rem);
    color: var(--rou-text-light);
    line-height: 1.6;
    max-width: 36rem;
}

/* --- Layout --- */
body.rou-vpn .container.mx-auto.max-w-3xl {
    max-width: var(--rou-content-max) !important;
    padding: 0 1rem clamp(2rem, 5vw, 2.5rem) !important;
    margin-top: 0 !important;
}

body.rou-vpn .flex.flex-col-reverse.xxs\:flex-row {
    justify-content: flex-end !important;
    align-items: center !important;
    margin: 0 0 0.5rem !important;
    padding: 0 !important;
}

body.rou-vpn h1.text-4xl {
    display: none !important;
}

body.rou-vpn .grow-0.gap-3 > button,
body.rou-vpn .grow-0.gap-3 > label {
    display: none !important;
}

body.rou-vpn .grow-0.gap-3 span.text-sm.cursor-pointer {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.25rem !important;
    min-height: var(--rou-touch) !important;
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    color: var(--rou-text) !important;
    padding: 0.5rem 1rem !important;
    border-radius: 9999px !important;
    border: 1px solid var(--rou-border) !important;
    background: var(--rou-surface) !important;
    transition: all 200ms var(--rou-ease) !important;
}

body.rou-vpn .grow-0.gap-3 span.text-sm.cursor-pointer:hover {
    color: var(--rou-primary) !important;
    border-color: rgba(217, 15, 50, 0.28) !important;
    background: var(--rou-primary-soft) !important;
}

/* --- Login page --- */
body.rou-vpn:has(.rou-vpn-login-page) .rou-vpn-footer {
    display: none;
}

body.rou-vpn:has(.rou-vpn-login-page) .container.mx-auto.max-w-3xl {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: calc(100dvh - var(--rou-nav-height)) !important;
    padding: 2rem 1rem 3rem !important;
    max-width: 100% !important;
}

body.rou-vpn:has(.rou-vpn-login-page)::before {
    background:
        radial-gradient(ellipse 90% 60% at 50% -10%, rgba(217, 15, 50, 0.09) 0%, transparent 55%),
        radial-gradient(ellipse 70% 50% at 100% 50%, rgba(249, 115, 22, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 0% 80%, rgba(217, 15, 50, 0.04) 0%, transparent 45%),
        var(--rou-cream);
}

.rou-vpn-login-page {
    width: 100%;
    max-width: 24rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: rou-vpn-login-in 0.55s var(--rou-ease) both;
}

@keyframes rou-vpn-login-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rou-vpn-login-head {
    text-align: center;
    margin-bottom: 1.75rem;
    max-width: 20rem;
}

.rou-vpn-login-head__eyebrow {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--rou-primary);
    margin: 0 0 0.65rem;
}

.rou-vpn-login-head__title {
    font-family: var(--rou-font-display);
    font-size: clamp(1.75rem, 5vw, 2.125rem);
    font-weight: 700;
    color: var(--rou-text-strong);
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin: 0 0 0.5rem;
}

.rou-vpn-login-head__sub {
    font-size: 0.9375rem;
    color: var(--rou-text-light);
    line-height: 1.55;
    margin: 0;
}

body.rou-vpn .rou-vpn-login-legacy {
    display: none !important;
}

body.rou-vpn .rou-vpn-login-page form.shadow.rounded-md,
body.rou-vpn .rou-vpn-login-page form[class*="shadow rounded-md"] {
    width: 100% !important;
    margin: 0 !important;
    padding: 1.75rem 1.5rem 1.5rem !important;
    background: var(--rou-glass-panel) !important;
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border: 1px solid var(--rou-glass-border) !important;
    border-radius: 20px !important;
    box-shadow:
        0 24px 48px rgba(28, 25, 23, 0.1),
        0 8px 20px rgba(28, 25, 23, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.75) !important;
    overflow: visible !important;
}

body.rou-vpn .rou-vpn-login-page form.shadow.rounded-md::before,
body.rou-vpn .rou-vpn-login-page form[class*="shadow rounded-md"]::before {
    content: "";
    display: block;
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1.25rem;
    border-radius: 14px;
    background-color: var(--rou-primary-soft);
    border: 1px solid var(--rou-primary-ring);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23D90F32' stroke-width='1.75'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M16.5 10.5V6.75a4.5 4.5 0 1 0-9 0v3.75m-.75 11.25h10.5a2.25 2.25 0 0 0 2.25-2.25v-6.75a2.25 2.25 0 0 0-2.25-2.25H6.75a2.25 2.25 0 0 0-2.25 2.25v6.75a2.25 2.25 0 0 0 2.25 2.25Z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 1.35rem;
}

body.rou-vpn .rou-vpn-login-page form .h-20.w-20.rounded-full {
    display: none !important;
}

body.rou-vpn .rou-vpn-login-page input[name="password"] {
    margin-bottom: 1rem !important;
}

body.rou-vpn .rou-vpn-login-page input[name="password"]::placeholder {
    color: var(--rou-text-muted) !important;
}

body.rou-vpn .rou-vpn-login-page input[type="submit"].bg-red-800 {
    transition: background 200ms var(--rou-ease), transform 200ms var(--rou-ease), box-shadow 200ms var(--rou-ease) !important;
}

body.rou-vpn .rou-vpn-login-page input[type="submit"].bg-red-800:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(217, 15, 50, 0.28) !important;
}

body.rou-vpn .rou-vpn-login-page button[type="submit"] {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: var(--rou-touch) !important;
    border-radius: var(--rou-radius-sm) !important;
    background: var(--rou-primary) !important;
}

body.rou-vpn .rou-vpn-login-page form::after {
    content: "Protected by ROU infrastructure";
    display: block;
    margin-top: 1rem;
    text-align: center;
    font-size: 0.75rem;
    color: var(--rou-text-muted);
    letter-spacing: 0.01em;
}

/* --- Login (shared inputs) --- */
body.rou-vpn div[v-if="authenticated === false"] {
    padding: 0;
}

body.rou-vpn input[type="password"],
body.rou-vpn input[type="text"] {
    width: 100% !important;
    min-height: var(--rou-touch) !important;
    border: 1px solid var(--rou-border-strong) !important;
    border-radius: var(--rou-radius-sm) !important;
    background: var(--rou-surface) !important;
    color: var(--rou-text-strong) !important;
    padding: 0.65rem 0.85rem !important;
    font-size: 1rem !important;
}

body.rou-vpn input::placeholder {
    color: var(--rou-text-muted) !important;
    opacity: 1;
}

body.rou-vpn input:focus,
body.rou-vpn input.focus\:border-red-800:focus {
    border-color: var(--rou-primary) !important;
    box-shadow: 0 0 0 3px var(--rou-primary-ring) !important;
    outline: none !important;
}

body.rou-vpn input[type="submit"],
body.rou-vpn button[type="submit"] {
    min-height: var(--rou-touch) !important;
    width: 100% !important;
    margin-top: 0.25rem !important;
    font-size: 0.9375rem !important;
    font-weight: 600 !important;
    border-radius: var(--rou-radius-sm) !important;
    cursor: pointer !important;
}

body.rou-vpn input[type="submit"].bg-red-800,
body.rou-vpn input[type="submit"].dark\:bg-red-800 {
    background: var(--rou-primary) !important;
    color: var(--rou-text-on-primary) !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(217, 15, 50, 0.22) !important;
}

body.rou-vpn input[type="submit"].bg-red-800:hover {
    background: var(--rou-primary-dark) !important;
}

body.rou-vpn form.shadow.rounded-md input[type="password"] {
    margin-bottom: 1rem !important;
}

body.rou-vpn .shadow-md.rounded-lg input.rounded.px-1.border-2,
body.rou-vpn .shadow-md.rounded-lg input[class*="border-gray-100"] {
    border: 1px solid var(--rou-border-strong) !important;
    border-radius: var(--rou-radius-sm) !important;
    padding: 0.35rem 0.5rem !important;
    font-size: 0.875rem !important;
    background: var(--rou-surface) !important;
    color: var(--rou-text-strong) !important;
}

body.rou-vpn .fixed.z-10.inset-0 .flex-grow.mt-3,
body.rou-vpn .fixed.z-10.inset-0 .sm\:ml-4 {
    margin-top: 0 !important;
    margin-left: 0 !important;
    text-align: left !important;
}

body.rou-vpn .fixed.z-10.inset-0 .hidden.sm\:inline-block {
    display: none !important;
}

body.rou-vpn input[type="submit"].bg-gray-200,
body.rou-vpn input[type="submit"].dark\:bg-neutral-800 {
    background: var(--rou-surface-muted) !important;
    color: var(--rou-text-muted) !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
}

/* --- Clients card --- */
body.rou-vpn .shadow-md.rounded-lg.bg-white,
body.rou-vpn .shadow-md.rounded-lg.dark\:bg-neutral-700 {
    background: var(--rou-surface) !important;
    border: 1px solid var(--rou-border) !important;
    border-radius: var(--rou-radius-lg) !important;
    box-shadow: var(--rou-shadow-md) !important;
    overflow: hidden !important;
}

body.rou-vpn .shadow-md.rounded-lg > .flex-row.flex-auto.items-center.p-3.px-5 {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1rem !important;
    background: var(--rou-surface-muted) !important;
    border-bottom: 1px solid var(--rou-border) !important;
    padding: 1rem 1.25rem !important;
}

body.rou-vpn .shadow-md.rounded-lg .text-2xl.font-medium,
body.rou-vpn .shadow-md.rounded-lg .dark\:text-neutral-200 {
    font-family: var(--rou-font-display) !important;
    font-size: 1.0625rem !important;
    font-weight: 700 !important;
    color: var(--rou-text-strong) !important;
}

/* Toolbar */
body.rou-vpn .flex.md\:block.md\:flex-shrink-0 {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
    width: 100%;
}

@media (min-width: 640px) {
    body.rou-vpn .flex.md\:block.md\:flex-shrink-0 {
        width: auto;
        justify-content: flex-end;
    }
}

body.rou-vpn .flex.md\:block.md\:flex-shrink-0 label,
body.rou-vpn .flex.md\:block.md\:flex-shrink-0 a,
body.rou-vpn .flex.md\:block.md\:flex-shrink-0 button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.35rem !important;
    min-height: var(--rou-touch) !important;
    padding: 0.5rem 0.95rem !important;
    border-radius: var(--rou-radius-sm) !important;
    border: 1px solid var(--rou-border-strong) !important;
    background: var(--rou-surface) !important;
    color: var(--rou-text) !important;
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    transition: background 200ms, border-color 200ms, color 200ms, box-shadow 200ms !important;
    box-shadow: none !important;
    cursor: pointer !important;
}

body.rou-vpn .flex.md\:block.md\:flex-shrink-0 .rounded-l-full,
body.rou-vpn .flex.md\:block.md\:flex-shrink-0 .rounded-r-full {
    border-radius: var(--rou-radius-sm) !important;
}

body.rou-vpn .flex.md\:block.md\:flex-shrink-0 label:hover,
body.rou-vpn .flex.md\:block.md\:flex-shrink-0 a:hover {
    border-color: rgba(217, 15, 50, 0.35) !important;
    color: var(--rou-primary) !important;
    background: var(--rou-primary-soft) !important;
}

body.rou-vpn .flex.md\:block.md\:flex-shrink-0 button:last-child {
    background: var(--rou-primary) !important;
    border-color: var(--rou-primary) !important;
    color: var(--rou-text-on-primary) !important;
    box-shadow: 0 4px 14px rgba(217, 15, 50, 0.2) !important;
    flex: 1;
}

@media (min-width: 640px) {
    body.rou-vpn .flex.md\:block.md\:flex-shrink-0 button:last-child {
        flex: none;
    }
}

body.rou-vpn .flex.md\:block.md\:flex-shrink-0 button:last-child:hover {
    background: var(--rou-primary-dark) !important;
    border-color: var(--rou-primary-dark) !important;
}

/* Client rows */
body.rou-vpn .relative.overflow-hidden.border-b {
    border-color: var(--rou-border) !important;
}

body.rou-vpn .relative.overflow-hidden.border-b:last-child {
    border-bottom: none !important;
}

body.rou-vpn .relative.overflow-hidden.border-b:hover {
    background: var(--rou-surface-hover) !important;
}

body.rou-vpn .relative.py-3.md\:py-5.px-3 {
    padding: 1rem 1.25rem !important;
}

body.rou-vpn .relative.py-3.md\:py-5 .flex-col.sm\:flex-row {
    gap: 0.75rem !important;
}

body.rou-vpn .relative.py-3.md\:py-5 .flex.gap-3.md\:gap-4.w-full.items-center {
    align-items: center !important;
}

body.rou-vpn .h-10.w-10.rounded-full.bg-gray-50,
body.rou-vpn .h-10.w-10.mt-2.self-start.rounded-full.bg-gray-50 {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 2.75rem !important;
    height: 2.75rem !important;
    margin-top: 0 !important;
    align-self: center !important;
    background: var(--rou-primary-soft) !important;
    border-radius: var(--rou-radius-sm) !important;
    flex-shrink: 0;
    position: relative;
}

body.rou-vpn .h-10.w-10.rounded-full.bg-gray-50 svg {
    display: block !important;
    width: 1.25rem !important;
    height: 1.25rem !important;
    margin: 0 !important;
    color: var(--rou-primary) !important;
    opacity: 0.55;
}

body.rou-vpn .text-gray-700.dark\:text-neutral-200,
body.rou-vpn .font-medium.text-gray-700 {
    font-family: var(--rou-font-display) !important;
    font-weight: 600 !important;
    color: var(--rou-text-strong) !important;
    font-size: 0.9375rem !important;
    line-height: 1.35 !important;
}

body.rou-vpn .text-xs.text-gray-400,
body.rou-vpn .text-xs.dark\:text-neutral-500 {
    color: var(--rou-text-light) !important;
    font-size: 0.75rem !important;
}

/* Online indicator */
body.rou-vpn .bg-red-800.dark\:bg-red-600.rounded-full {
    background: var(--rou-success) !important;
}

body.rou-vpn .animate-ping.bg-red-100 {
    background: var(--rou-success-soft) !important;
}

/* Toggle switches */
body.rou-vpn .rounded-full.w-10.h-6.bg-red-800 {
    background: var(--rou-primary) !important;
    border: 1px solid var(--rou-primary-dark) !important;
}

body.rou-vpn .rounded-full.w-10.h-6.bg-gray-200,
body.rou-vpn .rounded-full.w-10.h-6.dark\:bg-neutral-400 {
    background: var(--rou-border-strong) !important;
    border: 1px solid var(--rou-border) !important;
}

body.rou-vpn .rounded-full.w-10.h-6 .bg-white {
    background: var(--rou-text-on-primary) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

/* Icon action buttons */
body.rou-vpn .bg-gray-100.dark\:bg-neutral-600.p-2.rounded,
body.rou-vpn a.bg-gray-100.p-2.rounded,
body.rou-vpn button.bg-gray-100.p-2.rounded {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: var(--rou-touch) !important;
    min-height: var(--rou-touch) !important;
    padding: 0.5rem !important;
    border-radius: var(--rou-radius-sm) !important;
    border: 1px solid var(--rou-border) !important;
    background: var(--rou-surface) !important;
    color: var(--rou-text-light) !important;
    transition: all 180ms var(--rou-ease) !important;
}

body.rou-vpn .bg-gray-100.p-2.rounded:hover,
body.rou-vpn a.bg-gray-100.p-2.rounded:hover {
    border-color: rgba(217, 15, 50, 0.35) !important;
    background: var(--rou-primary-soft) !important;
    color: var(--rou-primary) !important;
}

body.rou-vpn .flex.items-center.justify-end > button:last-child:hover {
    background: var(--rou-danger-soft) !important;
    border-color: rgba(220, 38, 38, 0.35) !important;
    color: var(--rou-danger) !important;
}

body.rou-vpn .is-disabled,
body.rou-vpn [disabled] {
    opacity: 0.45 !important;
    pointer-events: none !important;
}

body.rou-vpn .flex.items-center.justify-end {
    flex-wrap: wrap !important;
    gap: 0.35rem !important;
}

/* Empty / loading states */
body.rou-vpn .text-center.m-10.text-gray-400 {
    color: var(--rou-text-light) !important;
    padding: 2.5rem 1.5rem !important;
    line-height: 1.6 !important;
}

body.rou-vpn .text-center.m-10 button {
    margin-top: 0.5rem !important;
    min-height: var(--rou-touch) !important;
    padding: 0.65rem 1.25rem !important;
    background: var(--rou-primary) !important;
    color: var(--rou-text-on-primary) !important;
    border-radius: var(--rou-radius-sm) !important;
    font-weight: 600 !important;
    border: none !important;
}

body.rou-vpn div[v-if="authenticated === null"] {
    color: var(--rou-text-muted) !important;
    padding: 4rem 1rem !important;
}

/* --- Modals & overlays (glass) --- */
body.rou-vpn .fixed.z-10.inset-0.overflow-y-auto {
    background: transparent !important;
    padding: 0 !important;
    z-index: 300 !important;
}

body.rou-vpn .fixed.z-10.inset-0.overflow-y-auto > .flex.min-h-screen,
body.rou-vpn .fixed.z-10.inset-0 .flex.items-center.justify-center.min-h-screen {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    padding: 1.25rem !important;
    margin: 0 !important;
    text-align: center !important;
}

body.rou-vpn .fixed.z-10.inset-0 .hidden.sm\:inline-block {
    display: none !important;
}

/* New client modal — simple glass card, no icon badge */
body.rou-vpn div[v-if="clientCreate"] .mx-auto.flex-shrink-0.flex.items-center.justify-center {
    display: none !important;
}

body.rou-vpn div[v-if="clientCreate"] .flex-grow.mt-3,
body.rou-vpn div[v-if="clientCreate"] .sm\:ml-4 {
    margin: 0 !important;
    width: 100% !important;
    text-align: left !important;
}

body.rou-vpn div[v-if="clientCreate"] [role="dialog"] > .bg-white.px-4,
body.rou-vpn div[v-if="clientCreate"] [role="dialog"] > .dark\:bg-neutral-700.px-4 {
    padding: 1.5rem 1.5rem 1rem !important;
}

body.rou-vpn .fixed.z-10.inset-0 .fixed.inset-0.transition-opacity {
    z-index: 0 !important;
}

body.rou-vpn .fixed.z-10.inset-0 .fixed.inset-0.transition-opacity .absolute.inset-0,
body.rou-vpn .fixed.z-10.inset-0 .dark\:bg-black.opacity-75,
body.rou-vpn .fixed.z-10.inset-0 .bg-gray-500.opacity-75 {
    background: var(--rou-overlay) !important;
    opacity: 1 !important;
    backdrop-filter: blur(var(--rou-overlay-blur)) saturate(120%);
    -webkit-backdrop-filter: blur(var(--rou-overlay-blur)) saturate(120%);
}

body.rou-vpn .fixed.z-10.inset-0 .inline-block.align-bottom.bg-white,
body.rou-vpn .fixed.z-10.inset-0 .inline-block.align-bottom.dark\:bg-neutral-700 {
    position: relative !important;
    z-index: 1 !important;
    width: min(100%, 22.5rem) !important;
    max-width: 22.5rem !important;
    margin: 0 !important;
    vertical-align: middle !important;
    background: var(--rou-glass-panel) !important;
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    border: 1px solid var(--rou-glass-border) !important;
    border-radius: 20px !important;
    box-shadow:
        0 24px 48px rgba(28, 25, 23, 0.14),
        0 8px 16px rgba(28, 25, 23, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.65) !important;
    overflow: hidden !important;
    transform: none !important;
}

body.rou-vpn .fixed.z-10.inset-0 [role="dialog"] > .bg-white.px-4,
body.rou-vpn .fixed.z-10.inset-0 [role="dialog"] > .dark\:bg-neutral-700.px-4 {
    padding: 1.5rem 1.5rem 0.75rem !important;
    background: transparent !important;
}

body.rou-vpn .fixed.z-10.inset-0 [role="dialog"] .sm\:flex.sm\:items-start {
    gap: 0.875rem !important;
    align-items: flex-start !important;
}

body.rou-vpn .fixed.z-10.inset-0 .h-12.w-12.rounded-full.bg-red-800,
body.rou-vpn .fixed.z-10.inset-0 .h-10.w-10.rounded-full.bg-red-800 {
    width: 2.75rem !important;
    height: 2.75rem !important;
    margin: 0 !important;
    background: var(--rou-primary-soft) !important;
    border: 1px solid var(--rou-primary-ring) !important;
    box-shadow: none !important;
}

body.rou-vpn .fixed.z-10.inset-0 .h-12.w-12.rounded-full.bg-red-800 svg,
body.rou-vpn .fixed.z-10.inset-0 .h-10.w-10.rounded-full.bg-red-800 svg {
    color: var(--rou-primary) !important;
    width: 1.25rem !important;
    height: 1.25rem !important;
}

body.rou-vpn .fixed.z-10.inset-0 .h-12.w-12.rounded-full.bg-red-100,
body.rou-vpn .fixed.z-10.inset-0 .h-10.w-10.rounded-full.bg-red-100 {
    width: 2.75rem !important;
    height: 2.75rem !important;
    margin: 0 !important;
    background: var(--rou-danger-soft) !important;
    border: 1px solid rgba(220, 38, 38, 0.15) !important;
}

body.rou-vpn .fixed.z-10.inset-0 .text-red-600 {
    color: var(--rou-danger) !important;
}

body.rou-vpn .fixed.z-10.inset-0 h3.text-lg {
    font-family: var(--rou-font-display) !important;
    font-size: 1.0625rem !important;
    font-weight: 700 !important;
    color: var(--rou-text-strong) !important;
    line-height: 1.35 !important;
    margin: 0 !important;
}

body.rou-vpn .fixed.z-10.inset-0 [role="dialog"] .mt-2 {
    margin-top: 0.75rem !important;
}

body.rou-vpn .fixed.z-10.inset-0 [role="dialog"] .mt-2 p.text-sm {
    margin: 0 !important;
    color: var(--rou-text-light) !important;
    line-height: 1.55 !important;
}

body.rou-vpn .fixed.z-10.inset-0 [role="dialog"] input[type="text"] {
    margin: 0 !important;
    border: 1px solid var(--rou-border-strong) !important;
    border-radius: var(--rou-radius-sm) !important;
    padding: 0.65rem 0.85rem !important;
    font-size: 0.9375rem !important;
}

body.rou-vpn .fixed.z-10.inset-0 .bg-gray-50.px-4.py-3,
body.rou-vpn .fixed.z-10.inset-0 .dark\:bg-neutral-700.px-4.py-3 {
    display: flex !important;
    flex-direction: row-reverse !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0.5rem !important;
    padding: 1rem 1.5rem 1.5rem !important;
    margin: 0 !important;
    background: transparent !important;
    border-top: 1px solid var(--rou-border) !important;
}

body.rou-vpn .fixed.z-10.inset-0 .bg-gray-50 button,
body.rou-vpn .fixed.z-10.inset-0 .dark\:bg-neutral-700 button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 2.5rem !important;
    padding: 0.5rem 1rem !important;
    margin: 0 !important;
    width: auto !important;
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    border-radius: var(--rou-radius-sm) !important;
    box-shadow: none !important;
    transition: all 180ms var(--rou-ease) !important;
}

body.rou-vpn .fixed.z-10.inset-0 .bg-gray-50 button.bg-red-800,
body.rou-vpn .fixed.z-10.inset-0 .bg-gray-50 button[class*="bg-red-800"] {
    background: var(--rou-primary) !important;
    border: 1px solid var(--rou-primary) !important;
    color: var(--rou-text-on-primary) !important;
}

body.rou-vpn .fixed.z-10.inset-0 .bg-gray-50 button.bg-red-800:hover {
    background: var(--rou-primary-dark) !important;
    border-color: var(--rou-primary-dark) !important;
}

body.rou-vpn .fixed.z-10.inset-0 .bg-gray-50 button.bg-gray-200 {
    background: var(--rou-surface-muted) !important;
    border: 1px solid var(--rou-border) !important;
    color: var(--rou-text-muted) !important;
    cursor: not-allowed !important;
}

body.rou-vpn .fixed.z-10.inset-0 .bg-gray-50 button.border-gray-300,
body.rou-vpn .fixed.z-10.inset-0 .bg-gray-50 button.dark\:border-neutral-500 {
    background: var(--rou-surface) !important;
    border: 1px solid var(--rou-border-strong) !important;
    color: var(--rou-text) !important;
}

body.rou-vpn .fixed.z-10.inset-0 .bg-gray-50 button.border-gray-300:hover {
    border-color: rgba(217, 15, 50, 0.28) !important;
    color: var(--rou-primary) !important;
    background: var(--rou-primary-soft) !important;
}

body.rou-vpn .fixed.z-10.inset-0 .bg-gray-50 button.mt-3,
body.rou-vpn .fixed.z-10.inset-0 .bg-gray-50 button.sm\:mt-0 {
    margin-top: 0 !important;
}

body.rou-vpn .fixed.z-10.inset-0 .bg-gray-50 button.shadow-sm,
body.rou-vpn .fixed.z-10.inset-0 .bg-gray-50 button.border-transparent:not(.border-gray-300) {
    border: 1px solid transparent !important;
}

/* QR overlay */
body.rou-vpn div[v-if="qrcode"] .bg-black.bg-opacity-50,
body.rou-vpn div[v-if="qrcode"] .fixed.top-0.right-0.left-0.bottom-0 {
    background: var(--rou-overlay) !important;
    backdrop-filter: blur(var(--rou-overlay-blur)) saturate(120%);
    -webkit-backdrop-filter: blur(var(--rou-overlay-blur)) saturate(120%);
    z-index: 400 !important;
}

body.rou-vpn div[v-if="qrcode"] .bg-white.rounded-md.shadow-lg {
    background: var(--rou-glass-panel) !important;
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    border: 1px solid var(--rou-glass-border) !important;
    border-radius: 20px !important;
    padding: 1.5rem !important;
    box-shadow:
        0 24px 48px rgba(28, 25, 23, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.65) !important;
}

body.rou-vpn div[v-if="qrcode"] button.absolute.right-4.top-4 {
    right: 0.75rem !important;
    top: 0.75rem !important;
    width: 2.25rem !important;
    height: 2.25rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 9999px !important;
    border: 1px solid var(--rou-border) !important;
    background: var(--rou-surface) !important;
    color: var(--rou-text-light) !important;
}

body.rou-vpn div[v-if="qrcode"] button.absolute.right-4.top-4:hover {
    color: var(--rou-primary) !important;
    border-color: rgba(217, 15, 50, 0.25) !important;
}

body.rou-vpn div[v-if="qrcode"] button svg {
    width: 1rem !important;
    height: 1rem !important;
}

/* --- Global border normalization --- */
body.rou-vpn .border-2 {
    border-width: 1px !important;
}

body.rou-vpn .border-b-2 {
    border-bottom-width: 1px !important;
}

/* Force readable text on light surfaces (override wg-easy dark classes) */
body.rou-vpn .dark\:text-neutral-200,
body.rou-vpn .dark\:text-neutral-300,
body.rou-vpn .dark\:text-neutral-400,
body.rou-vpn .text-gray-400,
body.rou-vpn .text-gray-500,
body.rou-vpn .text-gray-700 {
    color: inherit;
}

body.rou-vpn .shadow-md.rounded-lg .dark\:text-neutral-200 {
    color: var(--rou-text-strong) !important;
}

body.rou-vpn .text-gray-400.dark\:text-neutral-400 {
    color: var(--rou-text-light) !important;
}

/* Page-level dark bg overrides — but NOT modals */
body.rou-vpn .bg-gray-50.dark\:bg-neutral-800,
body.rou-vpn .dark\:bg-neutral-800 {
    background: var(--rou-cream) !important;
}

body.rou-vpn .bg-red-800,
body.rou-vpn .dark\:bg-red-800,
body.rou-vpn .dark\:bg-red-600 {
    background: var(--rou-primary) !important;
    color: var(--rou-text-on-primary) !important;
}

body.rou-vpn .hover\:bg-red-700:hover,
body.rou-vpn .hover\:bg-red-800:hover {
    background: var(--rou-primary-dark) !important;
}

/* Hide wg-easy noise */
body.rou-vpn p.text-xs.text-center.m-10,
body.rou-vpn div[v-if="latestRelease"],
body.rou-vpn .text-sm.text-gray-400.mb-5:empty {
    display: none !important;
}

/* --- Footer --- */
.rou-vpn-footer {
    margin-top: auto;
    background: var(--rou-text-strong);
    color: rgba(255, 255, 255, 0.88);
    padding: clamp(1.5rem, 4vw, 2rem) 1rem;
}

.rou-vpn-footer__inner {
    max-width: 80rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .rou-vpn-footer__inner {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }
}

.rou-vpn-footer__brand p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.62);
    margin-top: 0.35rem;
    line-height: 1.55;
    max-width: 22rem;
}

.rou-vpn-footer__copy {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.42);
}

/* --- Responsive --- */
@media (max-width: 639px) {
    .rou-vpn-nav__badge {
        display: none;
    }

    body.rou-vpn .shadow-md.rounded-lg > .flex-row.flex-auto.items-center.p-3.px-5 {
        flex-direction: column;
        align-items: stretch;
    }

    body.rou-vpn .flex.md\:block.md\:flex-shrink-0 label span.max-md\:hidden,
    body.rou-vpn .flex.md\:block.md\:flex-shrink-0 a span.max-md\:hidden {
        display: none !important;
    }

    body.rou-vpn .flex.md\:block.md\:flex-shrink-0 label,
    body.rou-vpn .flex.md\:block.md\:flex-shrink-0 a {
        flex: 1;
    }

    body.rou-vpn .relative.py-3.md\:py-5 .flex.items-center.justify-end {
        width: 100%;
        justify-content: flex-start !important;
        padding-top: 0.75rem;
        margin-top: 0.75rem;
        border-top: 1px solid var(--rou-border);
    }

    body.rou-vpn .rou-vpn-hero__sub {
        font-size: 0.9375rem;
    }
}

/* --- Accessibility --- */
body.rou-vpn button:focus-visible,
body.rou-vpn a:focus-visible,
body.rou-vpn input:focus-visible,
body.rou-vpn label:focus-visible {
    outline: 2px solid var(--rou-primary);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .rou-vpn-login-page {
        animation: none;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
