/* ==========================================================================
   VPN Tunnel Injector - Design System & Custom Properties
   ========================================================================== */
:root {
    /* Color Palette */
    --bg-dark: #090d16;
    --bg-card: rgba(18, 26, 43, 0.6);
    --bg-card-hover: rgba(28, 38, 62, 0.7);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-hover: rgba(34, 224, 28, 0.3);
    
    /* Neon Accents */
    --cyan-primary: #22e01c;
    --cyan-secondary: #8afb0b;
    --emerald-primary: #10b981;
    --emerald-glow: rgba(16, 185, 129, 0.4);
    --amber-connecting: #f59e0b;
    --amber-glow: rgba(245, 158, 11, 0.4);
    --red-disconnected: #ef4444;
    --red-glow: rgba(239, 68, 68, 0.3);

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    /* Shadows & Glows */
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --glow-cyan: 0 0 25px rgba(34, 224, 28, 0.35);
    --glow-emerald: 0 0 30px rgba(16, 185, 129, 0.45);
    --glow-amber: 0 0 25px rgba(245, 158, 11, 0.4);
    --glow-red: 0 0 20px rgba(239, 68, 68, 0.25);

    /* Typography & Radius */
    --font-heading: 'Outfit', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Reset & Box Sizing */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Ambient Background Ambient Glows */
.bg-effects {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    animation: floatOrb 18s infinite alternate ease-in-out;
}

.orb-1 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, #22e01c 0%, #8afb0b 100%);
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #10b981 0%, #059669 100%);
    bottom: -150px;
    right: -100px;
    animation-delay: -6s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #7c3aed 0%, #4f46e5 100%);
    top: 40%;
    left: 60%;
    animation-delay: -12s;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.4;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(60px, 40px) scale(1.1); }
    100% { transform: translate(-40px, 80px) scale(0.95); }
}

/* Glassmorphism Panel Base */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-glass);
    border-radius: var(--radius-lg);
}

/* Layout App Container */
.app-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1100px;
    padding: 20px;
    margin: 0 auto;
}

/* View Transition System */
.view {
    display: none;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity var(--transition-normal), transform var(--transition-normal);
}

.view.active-view {
    display: flex;
    flex-direction: column;
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   WELCOME VIEW & LANDING CARD STYLES
   ========================================================================== */
#welcome-view {
    display: none;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 40px);
    padding: 30px 15px;
    width: 100%;
}

#welcome-view.active-view {
    display: flex !important;
}

.welcome-card {
    width: 100%;
    max-width: 480px;
    padding: 36px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(34, 224, 28, 0.2);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(34, 224, 28, 0.12);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    animation: welcomeCardAppear 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

@keyframes welcomeCardAppear {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.welcome-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    width: 100%;
}

.welcome-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    background: rgba(34, 224, 28, 0.08);
    border: 1px solid rgba(34, 224, 28, 0.3);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    color: var(--cyan-primary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.welcome-badge .badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--cyan-primary);
    box-shadow: 0 0 10px var(--cyan-primary);
    animation: pulseDot 1.5s infinite;
}

.welcome-logo-box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 4px 0;
}

.welcome-logo-glow {
    position: absolute;
    width: 70px;
    height: 70px;
    background: radial-gradient(circle, rgba(34, 224, 28, 0.45) 0%, transparent 70%);
    filter: blur(12px);
    border-radius: 50%;
    z-index: 0;
}

.welcome-logo-box svg {
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 6px 12px rgba(34, 224, 28, 0.3));
}

.welcome-title {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #ffffff;
    margin: 0;
    line-height: 1.25;
}

.welcome-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    margin: 0;
    max-width: 380px;
}

/* Features List */
.welcome-features {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.welcome-feature-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    text-align: left;
    transition: all 0.25s ease;
    width: 100%;
    box-sizing: border-box;
}

.welcome-feature-card:hover {
    background: rgba(34, 224, 28, 0.06);
    border-color: rgba(34, 224, 28, 0.25);
    transform: translateX(3px);
}

.feature-icon-wrapper {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon-wrapper.cyan {
    background: rgba(34, 224, 28, 0.12);
    border: 1px solid rgba(34, 224, 28, 0.25);
    color: #22e01c;
}

.feature-icon-wrapper.emerald {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #10b981;
}

.feature-icon-wrapper.purple {
    background: rgba(168, 85, 247, 0.12);
    border: 1px solid rgba(168, 85, 247, 0.25);
    color: #a855f7;
}

.feature-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
}

.feature-title {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
}

.feature-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.3;
}

/* Footer & Button */
.welcome-footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.welcome-btn {
    width: 100%;
    height: 52px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #22e01c 0%, #8afb0b 100%);
    color: #04140a;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(34, 224, 28, 0.35);
    transition: all 0.25s ease;
}

.welcome-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(34, 224, 28, 0.5);
    filter: brightness(1.08);
}

.welcome-btn:active {
    transform: translateY(0);
}

.welcome-redirect-bar {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.redirect-progress-track {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    overflow: hidden;
}

.redirect-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #22e01c, #8afb0b);
    border-radius: 2px;
    box-shadow: 0 0 10px #22e01c;
}

.redirect-label {
    font-size: 12px;
    color: var(--text-muted);
}

.redirect-label strong {
    color: var(--cyan-primary);
}

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

.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.brand-logo.sm {
    font-size: 20px;
    gap: 10px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.brand-logo span {
    color: var(--text-primary);
    white-space: nowrap;
}

.brand-logo strong {
    background: linear-gradient(135deg, var(--cyan-primary), var(--cyan-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
}

.brand-tagline {
    color: var(--text-secondary);
    font-size: 13px;
    margin-top: 6px;
}

/* Auth Tabs Toggle */
.auth-tabs {
    position: relative;
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 4px;
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    padding: 10px 0;
    cursor: pointer;
    z-index: 2;
    transition: color var(--transition-fast);
}

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

.tab-indicator {
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 4px;
    width: calc(50% - 4px);
    background: linear-gradient(135deg, rgba(34, 224, 28, 0.2), rgba(138, 251, 11, 0.2));
    border: 1px solid rgba(34, 224, 28, 0.4);
    border-radius: var(--radius-sm);
    transition: transform var(--transition-bounce);
    z-index: 1;
}

.auth-tabs[data-active="signup"] .tab-indicator {
    transform: translateX(100%);
}

/* Forms */
.auth-form {
    display: none;
    flex-direction: column;
    gap: 18px;
}

.auth-form.active-form {
    display: flex;
}

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

.form-group label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    pointer-events: none;
    transition: color var(--transition-fast);
}

.input-wrapper input {
    width: 100%;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 14px 12px 42px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.input-wrapper input:focus {
    border-color: var(--cyan-primary);
    box-shadow: 0 0 0 3px rgba(34, 224, 28, 0.15);
}

.input-wrapper input:focus + .input-icon,
.input-wrapper input:focus ~ .input-icon {
    color: var(--cyan-primary);
}

.toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 4px;
    transition: color var(--transition-fast);
}

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

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

/* Custom Checkbox */
.checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 26px;
    cursor: pointer;
    color: var(--text-secondary);
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 18px;
    width: 18px;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: all var(--transition-fast);
}

.checkbox-container:hover input ~ .checkmark {
    border-color: var(--cyan-primary);
}

.checkbox-container input:checked ~ .checkmark {
    background: linear-gradient(135deg, var(--cyan-primary), var(--cyan-secondary));
    border-color: transparent;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 4px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.forgot-link, .checkbox-container a {
    color: var(--cyan-primary);
    text-decoration: none;
    transition: opacity var(--transition-fast);
}

.forgot-link:hover, .checkbox-container a:hover {
    text-decoration: underline;
}

/* Primary Button */
.btn-primary {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
    background: linear-gradient(135deg, var(--cyan-primary), var(--cyan-secondary));
    border: none;
    border-radius: var(--radius-md);
    padding: 14px;
    color: #040914;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(34, 224, 28, 0.3);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), opacity var(--transition-fast);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(34, 224, 28, 0.45);
}

.btn-primary:active {
    transform: translateY(0);
}

.auth-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

.security-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 12px;
}

/* ==========================================================================
   DASHBOARD VIEW
   ========================================================================== */
#dashboard-view {
    gap: 20px;
}

/* Header */
.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 28px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-status-tag {
    font-size: 12px;
    font-weight: 600;
    color: var(--emerald-primary);
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 6px 14px;
    border-radius: var(--radius-full);
}

.user-status-tag.expired-tag {
    color: var(--red-disconnected);
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.user-status-tag.expired-tag strong {
    color: var(--red-disconnected);
}

.expired-dot {
    background-color: var(--red-disconnected) !important;
    box-shadow: 0 0 8px var(--red-disconnected) !important;
}

/* Subscription modal must render above everything */
.subscription-backdrop {
    z-index: 9999;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: var(--emerald-primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--emerald-primary);
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0% { opacity: 0.4; }
    50% { opacity: 1; }
    100% { opacity: 0.4; }
}

.btn-icon {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    padding: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.btn-icon:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: var(--red-disconnected);
}

/* Dashboard Content Layout */
.dash-content {
    width: 100%;
}

.dash-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 20px;
}

/* Main Control Card */
.main-vpn-card {
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 480px;
    position: relative;
}

/* Status Pill */
.vpn-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all var(--transition-normal);
}

.status-indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

/* Status: Disconnected */
.vpn-status-pill.disconnected {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--red-disconnected);
}

.vpn-status-pill.disconnected .status-indicator-dot {
    background: var(--red-disconnected);
    box-shadow: 0 0 8px var(--red-disconnected);
}

/* Status: Inactive / Amber */
.vpn-status-pill.inactive,
.vpn-status-pill.connecting,
.vpn-status-pill.fetching,
.vpn-status-pill.synchronizing {
    background: rgba(245, 158, 11, 0.14);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: var(--amber-connecting);
}

.vpn-status-pill.inactive .status-indicator-dot,
.vpn-status-pill.connecting .status-indicator-dot,
.vpn-status-pill.fetching .status-indicator-dot,
.vpn-status-pill.synchronizing .status-indicator-dot {
    background: var(--amber-connecting);
    box-shadow: 0 0 10px var(--amber-connecting);
    animation: blink 0.7s infinite alternate;
}

/* Status: Connected */
.vpn-status-pill.connected {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--emerald-primary);
}

.vpn-status-pill.connected .status-indicator-dot {
    background: var(--emerald-primary);
    box-shadow: 0 0 10px var(--emerald-primary);
}

@keyframes blink {
    0% { opacity: 0.2; }
    100% { opacity: 1; }
}

/* Center Power Switch Component & Tap Prompt */
.vpn-switch-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    margin: 8px 0 18px;
}

.vpn-switch-container {
    position: relative;
    width: 220px;
    height: 220px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
}

/* Executive Hand Indicator & Frosted Pill Call-To-Action */
.tap-connect-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    margin-top: 6px;
    position: relative;
    z-index: 10;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: transform var(--transition-fast);
}

.tap-hand-indicator {
    width: 26px;
    height: 26px;
    margin-bottom: -2px;
    z-index: 2;
    color: var(--cyan-primary);
    filter: drop-shadow(0 0 8px rgba(34, 224, 28, 0.7));
    animation: handPointPulse 1.8s infinite ease-in-out;
    transition: transform var(--transition-fast), filter var(--transition-fast);
}

.tap-finger-icon {
    width: 100%;
    height: 100%;
}

.tap-prompt-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(14, 22, 38, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(34, 224, 28, 0.25);
    border-radius: 9999px;
    padding: 8px 22px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45), 0 0 15px rgba(34, 224, 28, 0.1);
    transition: all 0.25s ease;
}

.tap-prompt-text {
    font-family: var(--font-heading);
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.4px;
    color: #f1f5f9;
    transition: color 0.2s ease, text-shadow 0.2s ease;
    white-space: nowrap;
}

.tap-connect-prompt:hover .tap-hand-indicator {
    transform: translateY(-6px) scale(1.12);
    filter: drop-shadow(0 0 14px rgba(34, 224, 28, 1));
}

.tap-connect-prompt:hover .tap-prompt-pill {
    border-color: rgba(34, 224, 28, 0.55);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 25px rgba(34, 224, 28, 0.25);
    transform: translateY(-1px);
}

.tap-connect-prompt:hover .tap-prompt-text {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(34, 224, 28, 0.6);
}

.tap-connect-prompt:active {
    transform: translateY(0) scale(0.97);
}

@keyframes handPointPulse {
    0%, 100% {
        transform: translateY(0);
        filter: drop-shadow(0 0 6px rgba(34, 224, 28, 0.5));
    }
    50% {
        transform: translateY(-5px);
        filter: drop-shadow(0 0 14px rgba(34, 224, 28, 0.95));
    }
}

/* Pulse Rings */
.pulse-rings {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid transparent;
    opacity: 0;
    transition: all var(--transition-normal);
}

/* Disconnected Ring Pulse */
.pulse-rings.disconnected .ring-1 {
    border-color: rgba(239, 68, 68, 0.35);
    inset: -12px;
    opacity: 1;
    animation: ringPulseRed 2.5s infinite ease-in-out;
}

.pulse-rings.disconnected .ring-2 {
    border-color: rgba(239, 68, 68, 0.18);
    inset: -24px;
    opacity: 1;
    animation: ringPulseRed 2.5s infinite ease-in-out 0.4s;
}

/* Connecting / Fetching / Synchronizing Ring Animation */
.pulse-rings.connecting .ring,
.pulse-rings.fetching .ring,
.pulse-rings.synchronizing .ring,
.vpn-switch-container.connecting .ring,
.vpn-switch-container.fetching .ring,
.vpn-switch-container.synchronizing .ring {
    border-color: var(--amber-connecting);
    animation: ringExpand 2s infinite ease-out;
}

.pulse-rings.connecting .ring-1,
.pulse-rings.fetching .ring-1,
.pulse-rings.synchronizing .ring-1,
.vpn-switch-container.connecting .ring-1,
.vpn-switch-container.fetching .ring-1,
.vpn-switch-container.synchronizing .ring-1 { animation-delay: 0s; }

.pulse-rings.connecting .ring-2,
.pulse-rings.fetching .ring-2,
.pulse-rings.synchronizing .ring-2,
.vpn-switch-container.connecting .ring-2,
.vpn-switch-container.fetching .ring-2,
.vpn-switch-container.synchronizing .ring-2 { animation-delay: 0.6s; }

.pulse-rings.connecting .ring-3,
.pulse-rings.fetching .ring-3,
.pulse-rings.synchronizing .ring-3,
.vpn-switch-container.connecting .ring-3,
.vpn-switch-container.fetching .ring-3,
.vpn-switch-container.synchronizing .ring-3 { animation-delay: 1.2s; }

/* Connected Ring Glow */
.pulse-rings.connected .ring-1,
.vpn-switch-container.connected .ring-1 {
    border-color: rgba(16, 185, 129, 0.4);
    inset: -12px;
    opacity: 1;
    animation: ringPulseGreen 2.5s infinite ease-in-out;
}

.pulse-rings.connected .ring-2,
.vpn-switch-container.connected .ring-2 {
    border-color: rgba(16, 185, 129, 0.2);
    inset: -24px;
    opacity: 1;
    animation: ringPulseGreen 2.5s infinite ease-in-out 0.4s;
}

@keyframes ringExpand {
    0% {
        transform: scale(0.85);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.35);
        opacity: 0;
    }
}

@keyframes ringPulseRed {
    0% {
        transform: scale(0.98);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.85;
    }
    100% {
        transform: scale(0.98);
        opacity: 0.3;
    }
}

@keyframes ringPulseGreen {
    0% {
        transform: scale(0.98);
        opacity: 0.35;
    }
    50% {
        transform: scale(1.06);
        opacity: 0.9;
    }
    100% {
        transform: scale(0.98);
        opacity: 0.35;
    }
}

/* Power Button */
.vpn-power-btn {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: linear-gradient(145deg, #182238, #0e1424);
    border: 3px solid var(--border-color);
    padding: 12px;
    cursor: pointer;
    outline: none;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.1);
    transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.power-btn-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(10, 15, 26, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: background var(--transition-normal);
}

.power-icon {
    width: 60px;
    height: 60px;
    color: var(--text-muted);
    transition: color var(--transition-normal), filter var(--transition-normal);
}

/* Button State: Disconnected (Pulsing Red) */
.vpn-power-btn.disconnected {
    border-color: var(--red-disconnected);
    box-shadow: 0 0 25px rgba(239, 68, 68, 0.45), 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: pulseRedButton 2.2s infinite ease-in-out;
}

.vpn-power-btn.disconnected .power-btn-inner {
    background: radial-gradient(circle, rgba(239, 68, 68, 0.14) 0%, rgba(10, 15, 26, 0.9) 80%);
}

.vpn-power-btn.disconnected .power-icon {
    color: var(--red-disconnected);
    filter: drop-shadow(0 0 10px rgba(239, 68, 68, 0.65));
}

.vpn-power-btn.disconnected:hover {
    box-shadow: 0 0 40px rgba(239, 68, 68, 0.7), 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: scale(1.04);
}

@keyframes pulseRedButton {
    0% {
        box-shadow: 0 0 16px rgba(239, 68, 68, 0.35), inset 0 2px 4px rgba(255, 255, 255, 0.1);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 35px rgba(239, 68, 68, 0.7), 0 0 15px rgba(239, 68, 68, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.2);
        transform: scale(1.035);
    }
    100% {
        box-shadow: 0 0 16px rgba(239, 68, 68, 0.35), inset 0 2px 4px rgba(255, 255, 255, 0.1);
        transform: scale(1);
    }
}

/* Button State: Inactive (Pulsing Amber) */
.vpn-power-btn.inactive,
.vpn-power-btn.connecting,
.vpn-power-btn.fetching,
.vpn-power-btn.synchronizing {
    border-color: var(--amber-connecting);
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.6), 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: pulseAmberButton 1.5s infinite ease-in-out;
}

.vpn-power-btn.inactive .power-btn-inner,
.vpn-power-btn.connecting .power-btn-inner,
.vpn-power-btn.fetching .power-btn-inner,
.vpn-power-btn.synchronizing .power-btn-inner {
    background: radial-gradient(circle, rgba(245, 158, 11, 0.18) 0%, rgba(10, 15, 26, 0.9) 80%);
}

.vpn-power-btn.inactive .power-icon,
.vpn-power-btn.connecting .power-icon,
.vpn-power-btn.fetching .power-icon,
.vpn-power-btn.synchronizing .power-icon {
    color: var(--amber-connecting);
    filter: drop-shadow(0 0 12px var(--amber-connecting));
}

.vpn-power-btn.inactive:hover {
    box-shadow: 0 0 45px rgba(245, 158, 11, 0.8), 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: scale(1.04);
}

@keyframes pulseAmberButton {
    0% {
        box-shadow: 0 0 18px rgba(245, 158, 11, 0.35), inset 0 2px 4px rgba(255, 255, 255, 0.1);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 40px rgba(245, 158, 11, 0.75), 0 0 18px rgba(245, 158, 11, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.2);
        transform: scale(1.035);
    }
    100% {
        box-shadow: 0 0 18px rgba(245, 158, 11, 0.35), inset 0 2px 4px rgba(255, 255, 255, 0.1);
        transform: scale(1);
    }
}

/* Button State: Connected (Pulsing Green) */
.vpn-power-btn.connected {
    border-color: var(--emerald-primary);
    box-shadow: 0 0 35px rgba(16, 185, 129, 0.6), 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: pulseGreenButton 2.2s infinite ease-in-out;
}

.vpn-power-btn.connected .power-btn-inner {
    background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, rgba(10, 15, 26, 0.9) 80%);
}

.vpn-power-btn.connected .power-icon {
    color: var(--emerald-primary);
    filter: drop-shadow(0 0 14px rgba(16, 185, 129, 0.85));
}

.vpn-power-btn.connected:hover {
    transform: scale(1.04);
    box-shadow: 0 0 50px rgba(16, 185, 129, 0.8);
}

@keyframes pulseGreenButton {
    0% {
        box-shadow: 0 0 20px rgba(16, 185, 129, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.1);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 45px rgba(16, 185, 129, 0.8), 0 0 20px rgba(16, 185, 129, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.2);
        transform: scale(1.035);
    }
    100% {
        box-shadow: 0 0 20px rgba(16, 185, 129, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.1);
        transform: scale(1);
    }
}

/* Inline Plans Box Under Power Button */
.plans-promo-box {
    margin: 12px 0 16px 0;
    padding: 14px 16px;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    max-width: 440px;
    width: 100%;
    box-sizing: border-box;
}

.plans-promo-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
}

.plans-no-active-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: var(--amber-connecting);
}

.plans-no-active-pill .warning-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--amber-connecting);
    box-shadow: 0 0 8px var(--amber-connecting);
    animation: blink 0.8s infinite alternate;
}

.plans-promo-subtitle {
    font-size: 11.5px;
    color: var(--text-secondary);
    margin: 0;
}

/* Inline Plans Grid */
.inline-plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    width: 100%;
}

.inline-plan-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 8px 10px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.inline-plan-card:hover {
    background: rgba(34, 224, 28, 0.06);
    border-color: rgba(34, 224, 28, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.inline-plan-card.popular {
    border-color: rgba(34, 224, 28, 0.4);
    background: rgba(34, 224, 28, 0.05);
}

.inline-plan-card.best-val {
    border-color: rgba(245, 158, 11, 0.35);
}

.inline-pop-tag {
    position: absolute;
    top: -8px;
    background: linear-gradient(135deg, #22e01c, #8afb0b);
    color: #04140a;
    font-size: 8px;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 6px;
    letter-spacing: 0.4px;
    box-shadow: 0 2px 6px rgba(34, 224, 28, 0.3);
}

.inline-pop-tag.gold {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

.inline-plan-header {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin-top: 2px;
}

.inline-plan-name {
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
}

.inline-plan-dur {
    font-size: 10px;
    color: var(--text-muted);
}

.inline-plan-devices {
    font-size: 9.5px;
    font-weight: 600;
    color: var(--cyan-primary);
    background: rgba(34, 224, 28, 0.08);
    border: 1px solid rgba(34, 224, 28, 0.2);
    border-radius: 4px;
    padding: 1px 5px;
    margin: 2px 0 1px 0;
    display: inline-block;
}

.inline-plan-price {
    display: flex;
    align-items: baseline;
    gap: 2px;
    margin: 2px 0;
}

.inline-curr {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-secondary);
}

.inline-amt {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 800;
    color: var(--cyan-primary);
}

.btn-inline-plan {
    width: 100%;
    padding: 4px 0;
    font-size: 10.5px;
    font-weight: 700;
    border-radius: 6px;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.15s ease;
}

.inline-plan-card:hover .btn-inline-plan,
.btn-inline-plan.popular-btn {
    background: linear-gradient(135deg, var(--cyan-primary), var(--cyan-secondary));
    color: #04140a;
}

.plans-promo-footer-note {
    font-size: 11px;
    line-height: 1.45;
    color: var(--text-secondary);
    text-align: center;
    margin: 4px 0 0 0;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.025);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.plans-promo-footer-note strong {
    color: var(--text-primary);
    font-weight: 600;
}

.duration-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    margin-top: 4px;
}

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

.duration-value {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--emerald-primary);
}

/* Network provider badges on server selector & list */
.server-network-badge {
    display: inline-block;
    padding: 2px 7px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    color: #10b981;
    margin-left: 6px;
}

.server-network-pill {
    display: inline-block;
    padding: 2px 6px;
    background: rgba(34, 224, 28, 0.1);
    border: 1px solid rgba(34, 224, 28, 0.25);
    border-radius: 6px;
    font-size: 10.5px;
    font-weight: 600;
    color: var(--cyan-primary);
}

/* Server Selector Card */
.server-selector-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 20px;
    width: 100%;
    max-width: 420px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.server-selector-card:hover {
    background: rgba(0, 0, 0, 0.4);
    border-color: var(--cyan-primary);
    box-shadow: 0 4px 16px rgba(34, 224, 28, 0.15);
}

.server-flag {
    font-size: 26px;
    line-height: 1;
}

.server-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.server-name-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
}

.server-city {
    color: var(--text-secondary);
    font-weight: 400;
}

.server-latency {
    font-size: 12px;
    color: var(--emerald-primary);
    margin-top: 2px;
}

.btn-change-server {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
}

/* Side Panel Layout */
.side-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

/* Stats Card */
.stats-card {
    padding: 22px;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px;
}

.stat-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon.download { background: rgba(34, 224, 28, 0.12); color: var(--cyan-primary); }
.stat-icon.upload { background: rgba(168, 85, 247, 0.12); color: #a855f7; }
.stat-icon.data { background: rgba(245, 158, 11, 0.12); color: var(--amber-connecting); }
.stat-icon.security { background: rgba(16, 185, 129, 0.12); color: var(--emerald-primary); }
.stat-icon.subscription-status { background: rgba(239, 68, 68, 0.12); color: var(--red-disconnected); }

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
}

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

/* Protocol Selector Card */
.protocol-card {
    padding: 22px;
}

.protocol-pills {
    display: flex;
    gap: 8px;
}

.proto-btn {
    flex: 1;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 4px;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.proto-btn:hover {
    border-color: var(--cyan-primary);
    color: var(--text-primary);
}

.proto-btn.active {
    background: linear-gradient(135deg, rgba(34, 224, 28, 0.15), rgba(138, 251, 11, 0.15));
    border-color: var(--cyan-primary);
    color: var(--cyan-primary);
}

/* ==========================================================================
   SERVER SELECTION MODAL
   ========================================================================== */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(5, 8, 15, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity var(--transition-fast), visibility var(--transition-fast);
}

.modal-backdrop.active {
    opacity: 1 !important;
    pointer-events: auto !important;
    visibility: visible !important;
}

.subscription-backdrop {
    z-index: 100000 !important;
}

.modal-panel {
    width: 100%;
    max-width: 480px;
    max-height: 80vh;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transform: translateY(20px);
    transition: transform var(--transition-fast);
}

.modal-backdrop.active .modal-panel {
    transform: translateY(0);
}

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

.modal-header h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
}

.modal-close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    transition: color var(--transition-fast);
}

.modal-close-btn:hover {
    color: var(--text-primary);
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box svg {
    position: absolute;
    left: 12px;
    color: var(--text-muted);
}

.search-box input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 12px 10px 38px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
}

.search-box input:focus {
    border-color: var(--cyan-primary);
}

.server-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    max-height: 380px;
    padding-right: 4px;
}

/* Custom Scrollbar */
.server-list::-webkit-scrollbar {
    width: 6px;
}

.server-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.server-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

.server-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.server-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--cyan-primary);
}

.server-item.selected {
    background: rgba(34, 224, 28, 0.1);
    border-color: var(--cyan-primary);
}

.server-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.server-item-flag {
    font-size: 22px;
}

.server-item-info {
    display: flex;
    flex-direction: column;
}

.server-item-country {
    font-size: 14px;
    font-weight: 600;
}

.server-item-city {
    font-size: 12px;
    color: var(--text-muted);
}

.server-item-ping {
    font-size: 12px;
    color: var(--emerald-primary);
    font-weight: 600;
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    min-width: 280px;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    animation: toastIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.toast.info { border-left: 4px solid var(--cyan-primary); }
.toast.success { border-left: 4px solid var(--emerald-primary); }
.toast.error { border-left: 4px solid var(--red-disconnected); }

@keyframes toastIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

/* Tablets and Mobile Landscape (<900px) */
@media (max-width: 900px) {
    .dash-grid {
        grid-template-columns: 1fr;
    }

    .main-vpn-card {
        min-height: 420px;
        padding: 30px 20px;
    }

    .vpn-switch-wrapper {
        margin: 6px 0 12px;
    }

    .vpn-switch-container {
        width: 190px;
        height: 190px;
    }

    .vpn-power-btn {
        width: 145px;
        height: 145px;
    }

    .tap-connect-prompt {
        margin-top: -8px;
    }

    .power-icon {
        width: 50px;
        height: 50px;
    }
}

/* Mobile Screens (<576px) */
@media (max-width: 576px) {
    .app-container {
        padding: 12px;
    }

    #auth-view {
        min-height: calc(100vh - 24px);
    }

    .auth-card {
        padding: 24px 18px;
    }

    .dash-header {
        padding: 12px 16px;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }

    .brand-logo.sm {
        font-size: 15px;
        gap: 8px;
        white-space: nowrap;
        display: inline-flex;
        align-items: center;
        flex-shrink: 0;
    }

    .brand-logo.sm span {
        white-space: nowrap;
        font-size: 15px;
    }

    .brand-logo.sm strong {
        white-space: nowrap;
    }

    .brand-logo.sm svg {
        width: 28px;
        height: 28px;
        flex-shrink: 0;
    }

    .main-vpn-card {
        padding: 24px 14px;
    }

    .vpn-switch-wrapper {
        margin: 4px 0 10px;
    }

    .vpn-switch-container {
        width: 170px;
        height: 170px;
    }

    .vpn-power-btn {
        width: 130px;
        height: 130px;
    }

    .tap-connect-prompt {
        margin-top: -6px;
    }

    .tap-finger-icon {
        width: 24px;
        height: 24px;
    }

    .tap-prompt-text {
        font-size: 12px;
    }

    .power-icon {
        width: 44px;
        height: 44px;
    }

    .server-selector-card {
        padding: 10px 14px;
    }

    .modal-panel {
        padding: 18px;
    }
}

/* ==========================================================================
   SUBSCRIPTION RENEWAL MODAL STYLES
   ========================================================================== */
.sub-modal-panel {
    max-width: 780px;
    width: 95%;
    max-height: 90vh;
    padding: 26px 28px;
    background: rgba(14, 21, 37, 0.88);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 40px rgba(245, 158, 11, 0.15);
}

.sub-modal-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.sub-header-left {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding-right: 12px;
}

.sub-header-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
}

.sub-header-text h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.sub-modal-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
    line-height: 1.45;
}

/* Plans Grid */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 18px 0 14px;
}

.plan-card {
    position: relative;
    background: rgba(18, 26, 43, 0.65);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 22px 16px 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all var(--transition-normal);
    cursor: pointer;
}

.plan-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-color-hover);
    background: rgba(28, 38, 62, 0.8);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.plan-card.selected {
    border-color: var(--cyan-primary);
    background: rgba(34, 224, 28, 0.08);
    box-shadow: var(--glow-cyan);
}

.plan-tag {
    position: absolute;
    top: -11px;
    right: 14px;
    padding: 3px 10px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-full);
}

.popular-tag {
    background: linear-gradient(135deg, #22e01c, #8afb0b);
    color: #090d16;
    box-shadow: 0 0 12px rgba(34, 224, 28, 0.4);
}

.value-tag {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

.plan-header {
    display: flex;
    flex-direction: column;
}

.plan-badge {
    font-size: 11px;
    font-weight: 600;
    color: var(--cyan-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.plan-name {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.plan-price-wrap {
    display: flex;
    align-items: baseline;
    gap: 2px;
    margin-bottom: 2px;
}

.plan-currency {
    font-size: 15px;
    font-weight: 700;
    color: var(--cyan-primary);
    margin-right: 4px;
}

.plan-amount {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
}

.plan-duration {
    font-size: 12px;
    color: var(--text-secondary);
}

.plan-duration strong {
    color: var(--cyan-primary);
}

.plan-features {
    list-style: none;
    margin: 16px 0 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.plan-features li {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-select-plan {
    width: 100%;
    padding: 10px 0;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-select-plan:hover {
    background: rgba(255, 255, 255, 0.12);
}

.plan-card.selected .btn-select-plan {
    background: var(--cyan-primary);
    color: #090d16;
    border-color: var(--cyan-primary);
    font-weight: 700;
    box-shadow: 0 0 15px rgba(34, 224, 28, 0.3);
}

/* Payment Step View */
.payment-step-view {
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: toastIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.selected-plan-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(34, 224, 28, 0.1), rgba(138, 251, 11, 0.05));
    border: 1.5px solid var(--cyan-primary);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    box-shadow: var(--glow-cyan);
}

.selected-plan-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.selected-plan-tag {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--cyan-primary);
    letter-spacing: 0.5px;
}

.selected-plan-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.selected-plan-duration-text {
    font-size: 12px;
    color: var(--text-secondary);
}

.selected-plan-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.selected-plan-price {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    color: var(--cyan-primary);
}

.btn-change-plan-link {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    transition: color var(--transition-fast);
    padding: 0;
}

.btn-change-plan-link:hover {
    color: var(--cyan-primary);
}

.mpesa-hint {
    font-size: 11px;
    color: var(--text-muted);
}

.btn-back-plans {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 12px;
    transition: color var(--transition-fast);
}

.btn-back-plans:hover {
    color: var(--text-primary);
}

/* M-Pesa Checkout Box */
.mpesa-checkout-box {
    background: rgba(16, 185, 129, 0.08);
    border: 1.5px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    margin: 4px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mpesa-input-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mpesa-badge-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--emerald-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mpesa-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--emerald-primary);
    box-shadow: 0 0 10px var(--emerald-primary);
    animation: pulseDot 1.5s infinite;
}

.mpesa-amount-summary {
    font-size: 13px;
    color: var(--text-secondary);
}

.mpesa-amount-summary strong {
    color: var(--emerald-primary);
    font-size: 16px;
    font-family: var(--font-heading);
}

.mpesa-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.mpesa-phone-icon {
    position: absolute;
    left: 14px;
    color: var(--emerald-primary);
    pointer-events: none;
}

.mpesa-input-wrapper input {
    width: 100%;
    background: rgba(10, 15, 26, 0.9);
    border: 1.5px solid rgba(16, 185, 129, 0.35);
    border-radius: var(--radius-sm);
    padding: 12px 14px 12px 42px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    outline: none;
    transition: all var(--transition-fast);
}

.mpesa-input-wrapper input:focus {
    border-color: var(--emerald-primary);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.35);
}

/* STK Prompt Screen */
.stk-prompt-screen {
    background: rgba(14, 21, 37, 0.95);
    border: 1.5px solid rgba(16, 185, 129, 0.4);
    border-radius: var(--radius-md);
    padding: 28px 20px;
    margin: 12px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    box-shadow: 0 0 35px rgba(16, 185, 129, 0.25);
    animation: toastIn 0.3s ease;
}

.stk-prompt-icon-wrap {
    position: relative;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.15);
    border: 1.5px solid rgba(16, 185, 129, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.stk-radar-pulse {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 2px solid var(--emerald-primary);
    animation: ringExpand 1.6s infinite ease-out;
}

.stk-prompt-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.stk-prompt-desc {
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 460px;
    line-height: 1.5;
}

.stk-prompt-desc strong {
    color: var(--emerald-primary);
}

.stk-status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    color: var(--emerald-primary);
}

.spinner-sm {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-top-color: var(--emerald-primary);
    border-radius: 50%;
    animation: spin 0.8s infinite linear;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.btn-cancel-stk {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 12px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    cursor: pointer;
    margin-top: 6px;
    transition: all var(--transition-fast);
}

.btn-cancel-stk:hover {
    color: var(--red-disconnected);
    border-color: var(--red-disconnected);
}

/* STK Prompt Screen: failed state with retry */
.btn-retry-stk,
.stk-prompt-screen.is-failed .stk-radar-pulse,
.stk-prompt-screen.is-failed .spinner-sm,
.stk-prompt-screen.is-failed .stk-prompt-desc {
    display: none;
}

.stk-prompt-screen.is-failed .btn-retry-stk {
    display: inline-flex;
    width: auto;
    margin-top: 6px;
}

.stk-prompt-screen.is-failed {
    border-color: rgba(239, 68, 68, 0.4);
    box-shadow: 0 0 35px rgba(239, 68, 68, 0.15);
}

.stk-prompt-screen.is-failed .stk-prompt-icon-wrap {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.4);
}

.stk-prompt-screen.is-failed .stk-phone-svg {
    stroke: var(--red-disconnected);
}

.stk-prompt-screen.is-failed .stk-status-indicator {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-md);
    color: var(--red-disconnected);
    max-width: 460px;
}

/* Modal Footer */
.sub-modal-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

.btn-renew-action {
    width: 100%;
    max-width: 360px;
    padding: 13px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 700;
    background: linear-gradient(135deg, #10b981, #059669);
    border-color: #10b981;
    color: #ffffff;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.btn-renew-action:hover {
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.6);
}

.sub-guarantee {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

/* Media Query for Subscription Grid */
@media (max-width: 680px) {
    .plans-grid {
        grid-template-columns: 1fr;
        max-height: 50vh;
        overflow-y: auto;
        padding-right: 4px;
    }

    .sub-modal-panel {
        padding: 20px 16px;
    }
}


/* ==========================================================================
   SKIZA LOANS ADDITIONS (logo, guide hands, plan colours, file delivery, setup guide)
   ========================================================================== */

/* Skiza Loans brand variables used by the Skiza Loans-only rules below */
:root {
  --primary: #22e01c;
  --secondary: #8afb0b;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --bg-card-border: rgba(34, 224, 28, 0.15);
  --bg-card-border-hover: rgba(34, 224, 28, 0.4);
  --radius-xl: 28px;
}

.brand-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(34, 224, 28, 0.35));
}

.delivery-tabs {
  display: flex;
  gap: 0.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1.5rem;
}

.delivery-tab-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.6rem 1rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  flex: 1;
  justify-content: center;
}

.delivery-tab-btn:hover {
  color: #fff;
}

.delivery-tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.code-viewer-box {
  background: #060911;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 1rem;
  position: relative;
  margin-bottom: 1.5rem;
}

.code-viewer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.code-filename {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 600;
}

.code-copy-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.2s;
}

.code-copy-btn:hover {
  background: rgba(34, 224, 28, 0.15);
  border-color: var(--primary);
  color: #fff;
}

.code-content {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #cbd5e1;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 220px;
  overflow-y: auto;
}

.qr-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: #080c16;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1.5rem;
}

.qr-code-box {
  background: #ffffff;
  padding: 14px;
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(34, 224, 28, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.qr-code-box canvas {
  display: block;
}

.qr-caption {
  font-size: 0.82rem;
  color: var(--text-secondary);
  text-align: center;
}

.guide-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.guide-step-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1rem;
  display: flex;
  gap: 1rem;
}

.guide-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #000;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.guide-step-content h4 {
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
  color: #fff;
}

.guide-step-content p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.toast.toast-warning {
  border-color: rgba(245, 158, 11, 0.55);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 15px rgba(245, 158, 11, 0.25);
}

.pay-success-banner {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(34, 224, 28, 0.1);
  border: 1px solid rgba(34, 224, 28, 0.35);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.92rem;
}

@media (max-width: 480px) {
  .delivery-tab-btn {
    font-size: 0.8rem;
    padding: 0.55rem 0.4rem;
  }
}

.next-steps {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
}

.next-steps-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 0.8rem;
}

.next-steps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.next-steps-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.next-steps-list strong {
  color: var(--text-primary);
}

.step-num {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(34, 224, 28, 0.12);
  border: 1px solid rgba(34, 224, 28, 0.35);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 800;
}

.inline-icon {
  display: inline-block;
  vertical-align: -2px;
  color: var(--primary);
}

.btn-outline.next-steps-btn {
  width: 100%;
  justify-content: center;
  padding: 0.75rem 1rem;
  font-size: 0.92rem;
}

#nav-app-download.attention {
  border-color: var(--primary);
  color: var(--primary);
  animation: attention-pulse 1s ease-in-out 4;
}

@keyframes attention-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 224, 28, 0.6); }
  50% { box-shadow: 0 0 0 8px rgba(34, 224, 28, 0); }
}

.guide-install {
  margin-top: 1.25rem;
}

.guide-install[hidden] {
  display: none;
}

.btn-primary.guide-install-btn {
  width: 100%;
  justify-content: center;
  padding: 1rem;
}

.guide-install-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.6rem;
}

.guide-install-locked {
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
}

.guide-install-locked[hidden] {
  display: none;
}

.guide-install-locked strong {
  color: var(--primary);
}

.guide-hand {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  margin: 0.45rem auto 0;
  color: #9dff8a;
  pointer-events: none;
}

.guide-hand-icon {
  width: 34px;
  height: 34px;
  filter: drop-shadow(0 0 8px rgba(157, 255, 138, 0.7));
  animation: guide-hand-pulse 1.1s ease-in-out infinite;
}

@keyframes guide-hand-pulse {
  0%, 100% { transform: translateY(0) scale(1); opacity: 1; }
  50% { transform: translateY(-7px) scale(1.12); opacity: 0.8; }
}

.guide-hand-msg {
  font-size: 0.78rem;
  font-weight: 700;
  color: #9dff8a;
  background: rgba(157, 255, 138, 0.1);
  border: 1px solid rgba(157, 255, 138, 0.35);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  text-align: center;
  line-height: 1.35;
}

.welcome-hand,
body[data-guide="plans"] .guide-hand[data-step="plans"],
body[data-guide="phone"] .guide-hand[data-step="phone"],
body[data-guide="download"] .guide-hand[data-step="download"],
body[data-guide="home"] .guide-hand[data-step="home"],
body[data-guide="install"] .guide-hand[data-step="install"] {
  display: flex;
}

body[data-guide="nav"]:not([data-view="welcome"]) .guide-hand[data-step="nav"] {
  display: flex;
}

.plans-hand {
  width: 100%;
  align-items: center;
  margin-top: -0.2rem;
}

.plans-hand-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  width: 100%;
  justify-items: center;
}

.plan-hand {
  display: flex;
}

.plan-hand.tier-premium {
  color: var(--primary);
}

.plan-hand.tier-premium .guide-hand-icon {
  fill: rgba(34, 224, 28, 0.2);
  filter: drop-shadow(0 0 8px rgba(34, 224, 28, 0.7));
  animation-delay: 0.15s;
}

.plan-hand.tier-ultimate {
  color: #fbbf24;
}

.plan-hand.tier-ultimate .guide-hand-icon {
  fill: rgba(251, 191, 36, 0.22);
  filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.75));
  animation-delay: 0.3s;
}

.guide-hand.nav-hand {
  position: absolute;
  top: calc(100% + 4px);
  right: -4px;
  margin: 0;
  align-items: flex-end;
  z-index: 120;
}

.nav-hand .guide-hand-icon {
  margin-right: 7px;
}

.nav-hand .guide-hand-msg {
  white-space: nowrap;
  background: rgba(6, 9, 19, 0.92);
}

@keyframes guide-waves {
  0% {
    box-shadow: 0 0 0 0 rgba(157, 255, 138, 0.65), 0 0 0 0 rgba(157, 255, 138, 0.4);
  }
  60% {
    box-shadow: 0 0 0 10px rgba(157, 255, 138, 0), 0 0 0 4px rgba(157, 255, 138, 0.25);
  }
  100% {
    box-shadow: 0 0 0 18px rgba(157, 255, 138, 0), 0 0 0 12px rgba(157, 255, 138, 0);
  }
}

[data-guide-target="welcome"],
body[data-guide="plans"] [data-guide-target="plans"],
body[data-guide="phone"] [data-guide-target="phone"],
body[data-guide="download"] [data-guide-target="download"],
body[data-guide="home"] [data-guide-target="home"],
body[data-guide="install"] [data-guide-target="install"],
body[data-guide="nav"]:not([data-view="welcome"]) [data-guide-target="nav"] {
  animation: guide-waves 1.4s ease-out infinite;
}

body[data-guide="home"] [data-guide-target="home"],
body[data-guide="nav"] [data-guide-target="nav"] {
  border-color: #9dff8a;
  color: #9dff8a;
}

.inline-plan-card.tier-premium {
  border-color: rgba(34, 224, 28, 0.55);
  background: linear-gradient(180deg, rgba(34, 224, 28, 0.14), rgba(34, 224, 28, 0.04));
  box-shadow: 0 0 18px rgba(34, 224, 28, 0.15);
}

.inline-plan-card.tier-premium .btn-inline-plan {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #060913;
}

.inline-plan-card.tier-ultimate {
  border-color: rgba(245, 180, 40, 0.6);
  background: linear-gradient(180deg, rgba(245, 180, 40, 0.14), rgba(245, 180, 40, 0.04));
  box-shadow: 0 0 18px rgba(245, 180, 40, 0.15);
}

.inline-plan-card.tier-ultimate .inline-plan-name,
.inline-plan-card.tier-ultimate .inline-amt {
  color: #fbbf24;
}

.inline-plan-card.tier-ultimate .inline-plan-devices {
  color: #fbbf24;
  background: rgba(245, 180, 40, 0.1);
  border-color: rgba(245, 180, 40, 0.35);
}

.inline-plan-card.tier-ultimate .btn-inline-plan,
.inline-plan-card.tier-ultimate:hover .btn-inline-plan {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #1a1200;
}

.inline-plan-card.tier-ultimate:hover,
.inline-plan-card.tier-ultimate:focus-visible {
  border-color: #fbbf24;
  background: linear-gradient(180deg, rgba(245, 180, 40, 0.2), rgba(245, 180, 40, 0.06));
}

@keyframes guide-waves-green {
  0% { box-shadow: 0 0 0 0 rgba(34, 224, 28, 0.65), 0 0 0 0 rgba(34, 224, 28, 0.4); }
  60% { box-shadow: 0 0 0 10px rgba(34, 224, 28, 0), 0 0 0 4px rgba(34, 224, 28, 0.25); }
  100% { box-shadow: 0 0 0 18px rgba(34, 224, 28, 0), 0 0 0 12px rgba(34, 224, 28, 0); }
}

@keyframes guide-waves-gold {
  0% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.65), 0 0 0 0 rgba(251, 191, 36, 0.4); }
  60% { box-shadow: 0 0 0 10px rgba(251, 191, 36, 0), 0 0 0 4px rgba(251, 191, 36, 0.25); }
  100% { box-shadow: 0 0 0 18px rgba(251, 191, 36, 0), 0 0 0 12px rgba(251, 191, 36, 0); }
}

body[data-guide="plans"] .tier-premium [data-guide-target="plans"] {
  animation: guide-waves-green 1.4s ease-out 0.15s infinite;
}

body[data-guide="plans"] .tier-ultimate [data-guide-target="plans"] {
  animation: guide-waves-gold 1.4s ease-out 0.3s infinite;
}

/* ==========================================================================
   SKIZA LOANS EXTRAS ON TOP OF THE VPN DESIGN
   ========================================================================== */

/* Logo */
.skizaloans-brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(34, 224, 28, 0.35));
}

.skizaloans-brand strong {
  color: var(--cyan-primary);
}

.welcome-logo-img {
  position: relative;
  z-index: 1;
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(34, 224, 28, 0.3));
}

.header-right {
  gap: 10px;
}

/* Long modals scroll inside the panel */
.modal-panel {
  overflow-y: auto;
}

/* File ready state */
.plans-no-active-pill.is-ready {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
  color: var(--emerald-primary);
}

.plans-no-active-pill.is-ready .warning-dot {
  background: var(--emerald-primary);
  box-shadow: 0 0 8px var(--emerald-primary);
}

.file-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red-disconnected);
  box-shadow: 0 0 8px var(--red-disconnected);
}

.file-dot.ready {
  background: var(--emerald-primary);
  box-shadow: 0 0 8px var(--emerald-primary);
}

#stat-file-status {
  display: flex;
  align-items: center;
  gap: 6px;
}

.text-expired {
  color: var(--red-disconnected);
}

.stat-icon.subscription-status.is-ready {
  background: rgba(16, 185, 129, 0.12);
  color: var(--emerald-primary);
}

.sub-header-icon.is-ready {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.sub-header-icon.is-ready svg {
  stroke: var(--emerald-primary);
}

/* Four protocol buttons fit on one line */
.protocol-card .proto-btn {
  font-size: 12px;
  padding: 10px 2px;
}

/* Big package cards in the modal: Premium green, Ultimate gold */
.plan-card.tier-premium {
  border-color: rgba(34, 224, 28, 0.55);
  background: linear-gradient(180deg, rgba(34, 224, 28, 0.12), rgba(18, 26, 43, 0.65));
}

.plan-card.tier-premium .btn-select-plan {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #04140a;
  border-color: transparent;
}

.plan-card.tier-ultimate {
  border-color: rgba(245, 180, 40, 0.6);
  background: linear-gradient(180deg, rgba(245, 180, 40, 0.12), rgba(18, 26, 43, 0.65));
}

.plan-card.tier-ultimate .plan-name,
.plan-card.tier-ultimate .plan-amount {
  color: #fbbf24;
}

.plan-card.tier-ultimate .btn-select-plan {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #1a1200;
  border-color: transparent;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* M-Pesa step hand sits right under the number box */
.payment-step-view > .guide-hand[data-step="phone"] {
  margin-top: -4px;
}

/* File delivery step */
.deliver-step-view .pay-success-banner {
  margin-bottom: 14px;
}

.deliver-download-btn {
  margin: 0 auto;
}

.deliver-step-view .next-steps-btn {
  width: 100%;
  margin-top: 4px;
}

.deliver-step-view .qr-code-box {
  background: #fff;
  padding: 10px;
  border-radius: 12px;
  width: fit-content;
  margin: 0 auto;
}

.deliver-step-view .qr-caption {
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 10px;
}

.deliver-step-view .code-viewer-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.deliver-step-view .code-viewer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-color);
  font-size: 12px;
}

.deliver-step-view .code-copy-btn {
  background: rgba(34, 224, 28, 0.12);
  border: 1px solid rgba(34, 224, 28, 0.3);
  color: var(--cyan-primary);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
}

.deliver-step-view .code-content {
  padding: 12px;
  font-size: 11.5px;
  line-height: 1.5;
  color: #cbd5e1;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 260px;
  overflow: auto;
}

/* Setup guide */
#guides-modal .guide-tabs {
  margin-bottom: 0;
}

#guides-modal .guide-install-btn {
  max-width: none;
  text-decoration: none;
}

/* Warning toasts */
.toast.warning {
  border-left: 4px solid var(--amber-connecting);
}

/* Tall modals scroll instead of squashing their sections */
.modal-panel > *,
.payment-step-view > *,
.deliver-step-view > * {
  flex-shrink: 0;
}

#guides-modal .guide-tabs .proto-btn {
  padding: 10px 6px;
}

/* Package tick lines (validity + devices) */
.inline-plan-ticks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 4px 0 2px;
  padding: 0;
  text-align: left;
}

.inline-plan-ticks li {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  font-size: 10px;
  line-height: 1.3;
  color: var(--text-secondary);
}

.inline-plan-ticks svg {
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--cyan-primary);
}

.inline-plan-card.tier-ultimate .inline-plan-ticks svg {
  color: #fbbf24;
}

.plan-features li svg {
  color: var(--cyan-primary);
}

.plan-card.tier-ultimate .plan-features li svg {
  color: #fbbf24;
}

/* Longer package button text */
.btn-inline-plan {
  line-height: 1.25;
  padding: 5px 4px;
  white-space: normal;
}

/* Big button: Wi-Fi signal filling up red -> orange -> yellow -> green */
.wifi-icon .wifi-bar {
  stroke: rgba(255, 255, 255, 0.14);
  animation-duration: 2.4s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}

.wifi-icon .wifi-1 {
  fill: rgba(255, 255, 255, 0.14);
  stroke: none;
  animation-name: wifi-red;
}

.wifi-icon .wifi-2 { animation-name: wifi-orange; }
.wifi-icon .wifi-3 { animation-name: wifi-yellow; }
.wifi-icon .wifi-4 { animation-name: wifi-green; }

@keyframes wifi-red {
  0%, 100% { fill: rgba(255, 255, 255, 0.14); filter: none; }
  8%, 85% { fill: #ef4444; filter: drop-shadow(0 0 4px #ef4444); }
}

@keyframes wifi-orange {
  0%, 20%, 100% { stroke: rgba(255, 255, 255, 0.14); filter: none; }
  28%, 85% { stroke: #f97316; filter: drop-shadow(0 0 4px #f97316); }
}

@keyframes wifi-yellow {
  0%, 40%, 100% { stroke: rgba(255, 255, 255, 0.14); filter: none; }
  48%, 85% { stroke: #facc15; filter: drop-shadow(0 0 4px #facc15); }
}

@keyframes wifi-green {
  0%, 60%, 100% { stroke: rgba(255, 255, 255, 0.14); filter: none; }
  68%, 85% { stroke: #22e01c; filter: drop-shadow(0 0 5px #22e01c); }
}

/* Wi-Fi icon: bigger and not muted by the button's amber glow */
.vpn-power-btn .power-icon.wifi-icon {
  width: 78px;
  height: 78px;
  filter: none;
  overflow: visible;
}

@media (max-width: 576px) {
  .vpn-power-btn .power-icon.wifi-icon {
    width: 66px;
    height: 66px;
  }
}

/* ==========================================================================
   PACKAGE MODAL: clean compact list
   ========================================================================== */
.sub-modal-panel {
  max-width: 460px;
  gap: 14px;
}

.sub-modal-header {
  align-items: flex-start;
  padding-bottom: 14px;
}

.sub-header-left {
  gap: 12px;
  align-items: center;
}

.sub-header-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
}

.sub-header-icon svg {
  width: 20px;
  height: 20px;
}

.sub-header-text h3 {
  font-size: 18px;
  line-height: 1.2;
  white-space: nowrap;
}

.sub-modal-subtitle {
  font-size: 12.5px;
  margin-top: 2px;
}

#plans-grid-view.plans-grid {
  display: flex !important;
  flex-direction: column;
  gap: 10px;
  max-height: none;
  overflow: visible;
  padding: 0;
}

#plans-grid-view[style*="display: none"] {
  display: none !important;
}

.pkg-intro {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 2px;
}

.pkg-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 14px 14px 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid var(--border-color);
  border-left: 4px solid var(--cyan-primary);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.pkg-option:hover,
.pkg-option:focus-visible {
  outline: none;
  background: rgba(34, 224, 28, 0.06);
  border-color: rgba(34, 224, 28, 0.45);
  transform: translateY(-1px);
}

.pkg-option.tier-premium {
  border-left-color: #10b981;
  background: rgba(16, 185, 129, 0.05);
}

.pkg-option.tier-ultimate {
  border-left-color: #fbbf24;
  background: rgba(251, 191, 36, 0.05);
}

.pkg-option.tier-ultimate:hover,
.pkg-option.tier-ultimate:focus-visible {
  background: rgba(251, 191, 36, 0.09);
  border-color: rgba(251, 191, 36, 0.5);
  border-left-color: #fbbf24;
}

.pkg-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.pkg-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.pkg-name {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
}

.pkg-dur {
  font-size: 11px;
  font-weight: 700;
  color: var(--cyan-primary);
  background: rgba(34, 224, 28, 0.1);
  border-radius: 999px;
  padding: 2px 8px;
}

.tier-ultimate .pkg-name,
.tier-ultimate .pkg-price {
  color: #fbbf24;
}

.tier-ultimate .pkg-dur {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
}

.pkg-ticks {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: 12px;
  color: var(--text-secondary);
}

.pkg-ticks span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.pkg-ticks svg {
  color: var(--cyan-primary);
  flex-shrink: 0;
}

.tier-ultimate .pkg-ticks svg {
  color: #fbbf24;
}

.pkg-side {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.pkg-price {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: var(--cyan-primary);
  white-space: nowrap;
}

.pkg-price small {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-right: 3px;
}

.pkg-go {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.pkg-option:hover .pkg-go {
  background: var(--cyan-primary);
  color: #04140a;
}

.tier-ultimate:hover .pkg-go {
  background: #fbbf24;
  color: #1a1200;
}

.pkg-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 4px;
}

@media (max-width: 420px) {
  .sub-header-text h3 {
    font-size: 17px;
  }

  .pkg-option {
    padding: 12px 10px 12px 12px;
  }

  .pkg-ticks {
    flex-direction: column;
    gap: 3px;
    font-size: 11.5px;
  }

  .pkg-price {
    font-size: 18px;
  }

  .pkg-go {
    width: 26px;
    height: 26px;
  }
}

/* Ticks always stacked for a consistent look */
.pkg-ticks {
  flex-direction: column;
  gap: 3px;
}

/* ==========================================================================
   INTRO: the Skiza Loans S is "written", then the store opens (3 s)
   ========================================================================== */
#welcome-view.splash-view {
  position: fixed;
  inset: 0;
  z-index: 50;
  align-items: center;
  justify-content: center;
  background: var(--bg-dark);
}

#welcome-view.splash-view.active-view {
  display: flex;
}

/* Welcome screen: logo + "Skiza" + "Loans" banner on white, like the brand artwork */
#welcome-view.splash-view {
  background: #ffffff;
}

.sk-welcome {
  display: flex;
  align-items: center;
  gap: clamp(4px, 1.5vw, 18px);
  width: min(92vw, 760px);
  padding: 0 2vw;
}

.sk-logo {
  width: 38%;
  height: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 10px 14px rgba(0, 80, 0, 0.18));
}

.sk-words {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  font-family: 'Outfit', 'Inter', sans-serif;
  font-weight: 800;
  line-height: 1;
}

.sk-skiza {
  font-size: clamp(54px, 15vw, 150px);
  letter-spacing: -0.02em;
  color: #0d6b14;
  transform: skewX(-8deg);
  text-shadow: 0 3px 0 #0a4f10, 0 8px 16px rgba(0, 80, 0, 0.18);
}

.sk-loans {
  margin-top: 0.06em;
  margin-left: -4%;
  padding: 0.08em 0.4em 0.14em;
  font-size: clamp(44px, 12vw, 120px);
  color: #ffffff;
  border-radius: 0.32em;
  background: linear-gradient(100deg, #1a9a1f 0%, #34c51f 55%, #7fe21f 100%);
  transform: skewX(-8deg) rotate(-1.5deg);
  text-shadow: 0 3px 0 rgba(0, 70, 0, 0.35);
  box-shadow: 0 10px 20px rgba(20, 120, 20, 0.25), inset 0 2px 0 rgba(255, 255, 255, 0.35);
}

.sk-swoosh {
  width: 78%;
  height: clamp(4px, 0.9vw, 8px);
  margin: 0.6em 0 0 14%;
  border-radius: 50%;
  background: linear-gradient(90deg, transparent, #1fa51f 30%, #7fe21f);
  transform: rotate(-2deg);
}

/* Phones: logo on top, words below, centred */
@media (max-width: 600px) {
  .sk-welcome { flex-direction: column; gap: 10px; }
  .sk-logo { width: min(62vw, 260px); }
  .sk-words { align-items: center; flex: none; }
  .sk-skiza { font-size: clamp(56px, 22vw, 96px); }
  .sk-loans { margin-left: 0; font-size: clamp(46px, 18vw, 80px); }
  .sk-swoosh { margin-left: 0; }
}

/* Entrance animation */
.splash-view.is-writing .sk-logo { animation: sk-pop 0.7s cubic-bezier(0.2, 1.4, 0.4, 1) both; }
.splash-view.is-writing .sk-skiza { animation: sk-slide 0.6s ease-out 0.35s both; }
.splash-view.is-writing .sk-loans { animation: sk-slide 0.6s ease-out 0.6s both; }
.splash-view.is-writing .sk-swoosh { animation: sk-grow 0.6s ease-out 0.95s both; }

@keyframes sk-pop {
  from { opacity: 0; transform: scale(0.4) rotate(-12deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}
@keyframes sk-slide {
  from { opacity: 0; translate: 40px 0; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes sk-grow {
  from { opacity: 0; clip-path: inset(0 100% 0 0); }
  to { opacity: 1; clip-path: inset(0 0 0 0); }
}

@media (prefers-reduced-motion: reduce) {
  .splash-view.is-writing .sk-logo,
  .splash-view.is-writing .sk-skiza,
  .splash-view.is-writing .sk-loans,
  .splash-view.is-writing .sk-swoosh { animation: none; }
}

/* Header and guides stay hidden while the welcome screen shows */
body[data-view="welcome"] .app-container > #dashboard-view {
  display: none;
}

/* Big button: install icon on the website, Wi-Fi signal inside the app */
.vpn-power-btn .power-icon.install-icon {
  width: 64px;
  height: 64px;
}

body.in-app .vpn-power-btn .install-icon-unused,
body.in-app .vpn-power-btn .install-icon {
  display: none;
}

/* ==========================================================================
   WEBSITE vs APP: the website shows how to connect; subscriptions are in the app
   ========================================================================== */
.connect-steps {
  display: none;
  width: 100%;
  max-width: 440px;
  margin: 12px 0 16px;
  padding: 16px 18px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(34, 224, 28, 0.25);
  border-radius: var(--radius-md);
  box-sizing: border-box;
}

body:not(.in-app) .connect-steps {
  display: block;
}


.connect-steps-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 12px;
}

.connect-steps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.connect-steps-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.connect-steps-list strong {
  color: var(--text-primary);
}

.cs-num {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--cyan-primary), var(--cyan-secondary));
  color: #04140a;
  font-weight: 800;
  font-size: 13px;
}

/* Website: hide the side panel (Live Server Activity + Protocol); app keeps it */
body:not(.in-app) .side-panel {
  display: none !important;
}

body:not(.in-app) .dash-grid {
  grid-template-columns: 1fr;
  max-width: 620px;
  margin: 0 auto;
}

body:not(.in-app) .dash-header {
  width: 100%;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

/* Website install icon: the arrow keeps dropping into the tray (downloading) */
.install-icon {
  overflow: visible;
}

.install-icon .dl-arrow {
  animation: dl-drop 2.4s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

.install-icon .dl-tray {
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: dl-tray 2.4s ease-in-out infinite;
}

@keyframes dl-drop {
  0%   { transform: translateY(-7px); opacity: 0; }
  20%  { opacity: 1; }
  65%  { transform: translateY(2px); opacity: 1; }
  85%  { transform: translateY(4px); opacity: 0; }
  100% { transform: translateY(4px); opacity: 0; }
}

@keyframes dl-tray {
  0%, 55%, 100% { transform: scaleY(1); }
  70%           { transform: scaleY(0.82); }
}

/* Bold days and devices in the package ticks */
.inline-plan-ticks strong,
.pkg-ticks strong,
.plan-features strong {
  color: var(--text-primary);
  font-weight: 700;
}

/* Server selector now sits at the top of the main card */
.main-vpn-card > .server-selector-card {
  margin-top: 0;
  margin-bottom: 12px;
}

/* POPULAR tag on Premium */
.inline-plan-card.tier-premium {
  position: relative;
  overflow: visible;
}

.inline-plan-card.tier-premium .inline-pop-tag {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--cyan-primary), var(--cyan-secondary));
  color: #04140a;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 6px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(34, 224, 28, 0.35);
}

.inline-plans-grid {
  padding-top: 6px;
}

.pkg-popular {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #04140a;
  background: linear-gradient(135deg, var(--cyan-primary), var(--cyan-secondary));
  border-radius: 6px;
  padding: 2px 7px;
  align-self: center;
}

.pkg-dur {
  white-space: nowrap;
}

.pkg-title {
  flex-wrap: wrap;
  row-gap: 4px;
}
