:root {
    --primary: #818cf8;
    --primary-dark: #6366f1;
    --accent: #f43f5e;
    --accent-glow: rgba(244, 63, 94, 0.4);
    --bg-dark: #020617;
    --glass: rgba(15, 23, 42, 0.65);
    --glass-border: rgba(148, 163, 184, 0.15);
    --glass-highlight: rgba(255, 255, 255, 0.03);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --nav-height: 72px;
}

:root {
    --primary: #818cf8;
    --primary-dark: #6366f1;
    --accent: #f43f5e;
    --accent-glow: rgba(244, 63, 94, 0.4);
    --bg-dark: #020617;
    --glass: rgba(15, 23, 42, 0.65);
    --glass-border: rgba(148, 163, 184, 0.15);
    --glass-highlight: rgba(255, 255, 255, 0.03);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --nav-height: 72px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', sans-serif;
    background: radial-gradient(circle at 10% 20%, #1e293b 0%, #0f172a 100%);
    color: #f8fafc;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow-x: hidden;
    padding: 20px;
}

.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    filter: blur(80px);
    opacity: 0.4;
}

.blob {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
}

.blob-1 {
    background: var(--primary);
    top: -100px;
    left: -100px;
    animation: move 20s infinite alternate;
}

.blob-2 {
    background: var(--accent);
    bottom: -100px;
    right: -100px;
    animation: move 25s infinite alternate-reverse;
}

@keyframes move {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(100px, 50px) scale(1.2);
    }
}

.hub-container {
    width: 100%;
    max-width: 900px;
    padding: 24px 16px;
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: none;
    /* Controlled by JS */
}

#view-init {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    min-width: 220px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.18);
    backdrop-filter: blur(14px);
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.35);
    z-index: 20;
    pointer-events: none;
}

.view-active {
    display: block;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* nav icons next to avatar */
.nav-icons {
    display: flex;
    align-items: center;
    margin-right: 12px;
    gap: 10px;
}

.nav-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 999px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.nav-action-btn i {
    font-size: 1rem;
}

.nav-action-btn.inactive {
    color: #94a3b8;
}

.nav-action-btn.active {
    color: #c7d2fe;
    border-color: rgba(99, 102, 241, 0.45);
    background: rgba(99, 102, 241, 0.14);
}

.nav-action-btn:hover {
    border-color: rgba(99, 102, 241, 0.45);
    background: rgba(255, 255, 255, 0.1);
}

.nav-action-label {
    white-space: nowrap;
}

/* simple text button for telegram connect */
.text-btn {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 1rem;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

.text-btn:hover {
    color: var(--accent);
    opacity: 0.8;
}

.header {
    text-align: center;
    margin-bottom: 30px;
}

.header h1 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 700;
    background: linear-gradient(to right, #818cf8, #f43f5e);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.header p {
    color: #94a3b8;
    font-size: clamp(0.9rem, 3vw, 1.1rem);
}

/* --- Login View --- */
#view-login {
    text-align: center;
    padding: 40px 20px;
}

.google-btn-container {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

/* --- Hub View --- */
.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.hub-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 24px;
    border-radius: 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hub-card-topline {
    display: flex;
    justify-content: flex-end;
}

.hub-card-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.hub-card-badge.active {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
}

.hub-card-badge.recommended {
    color: #c7d2fe;
    background: rgba(99, 102, 241, 0.16);
}

.hub-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    border-color: var(--primary);
}

.hub-card.disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}

.hub-card.disabled:hover {
    background: var(--glass);
    transform: none;
    border-color: var(--glass-border);
}

.hub-card h4 {
    font-size: 1.1rem;
    color: #fff;
}

.hub-card p {
    font-size: 0.85rem;
    color: #94a3b8;
}

/* --- Onboarding Styles (Restored) --- */
.onboarding-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .onboarding-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .hub-container {
        padding: 40px;
    }
}

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

h3 {
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 8px;
    border-left: 4px solid var(--primary);
    padding-left: 12px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.section-note {
    color: #94a3b8;
    font-size: 0.82rem;
    line-height: 1.5;
}

.hidden {
    display: none;
}

.link-btn {
    align-self: flex-start;
    background: transparent;
    border: none;
    color: #a5b4fc;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    padding: 2px 0;
}

.link-btn:hover {
    color: #c7d2fe;
    text-decoration: underline;
}

刻 {
    font-size: 0.85rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

input {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--glass-border);
    padding: 14px 18px;
    border-radius: 12px;
    color: #fff;
    font-family: inherit;
    transition: all 0.3s ease;
}

input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

.modules-selection {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 480px) {
    .modules-selection {
        grid-template-columns: repeat(2, 1fr);
    }
}

.module-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 12px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.module-card.selected {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary);
}

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

.module-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.module-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #f8fafc;
}

.module-desc {
    font-size: 0.7rem;
    color: #64748b;
}

.full-width {
    grid-column: span 1;
}

刻 {
    display: flex;
    flex-direction: column;
}

.onboard-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 18px;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.onboard-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.4);
}

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

.status-msg {
    text-align: center;
    padding: 15px;
    border-radius: 12px;
    margin-top: 20px;
    display: none;
}

.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid #22c55e;
    color: #4ade80;
}

.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    color: #f87171;
}

@media (min-width: 768px) {

    .full-width,
    .onboard-btn,
    .status-msg {
        grid-column: span 2;
    }
}

/* --- Loader --- */
#loader {
    display: flex;
    align-items: center;
    gap: 10px;
}

#loader p {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: #cbd5e1;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(148, 163, 184, 0.25);
    border-top: 2px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* --- App Bar --- */
#app-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: var(--glass);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#app-bar.nav-active {
    display: flex;
    animation: fadeIn 0.4s ease-out;
}

/* dashboard cards */
.home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

/* Dashboard Sections */
.dashboard-section {
    margin-bottom: 60px;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title::before {
    content: "";
    width: 4px;
    height: 20px;
    background: var(--primary);
    border-radius: 2px;
}

/* Activator Cards */
.activator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.activator-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    cursor: default;
    position: relative;
    overflow: hidden;
}

.activator-card:hover {
    background: var(--glass-highlight);
    border-color: var(--glass-border);
    transform: none;
    box-shadow: none;
}

.activator-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.activator-card.active .activator-icon {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary);
}

.activator-info h4 {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 4px;
}

.activator-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.activator-status {
    margin-left: auto;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 99px;
    background: rgba(0, 0, 0, 0.3);
}

.activator-card.active .activator-status {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
}

/* Module Cards */
.module-item-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: default;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.module-item-card:hover {
    border-color: var(--primary);
    background: var(--glass-highlight);
    transform: translateY(-4px);
}

.module-item-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.module-item-icon {
    font-size: 1.2rem;
    color: var(--primary);
}

.module-item-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-main);
}

.module-item-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Hero Section */
.hub-hero {
    margin-bottom: 48px;
    text-align: left;
}

.hub-hero h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-main);
}

.hub-hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(148, 163, 184, 0.25);
    border-top: 2px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* --- App Bar --- */
#app-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: var(--glass);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#app-bar.nav-active {
    display: flex;
    animation: fadeIn 0.4s ease-out;
}

/* dashboard cards */
.home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

/* Dashboard Sections */
.dashboard-section {
    margin-bottom: 60px;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title::before {
    content: "";
    width: 4px;
    height: 20px;
    background: var(--primary);
    border-radius: 2px;
}

/* Activator Cards */
.activator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.activator-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.activator-card:hover {
    background: var(--glass-highlight);
    border-color: var(--glass-border);
    transform: none;
    box-shadow: none;
}

.activator-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.activator-card.active .activator-icon {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary);
}

.activator-info h4 {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 4px;
}

.activator-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.activator-status {
    margin-left: auto;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 99px;
    background: rgba(0, 0, 0, 0.3);
}

.activator-card.active .activator-status {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
}

/* Module Cards */
.module-item-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.module-item-card:hover {
    border-color: var(--primary);
    background: var(--glass-highlight);
    transform: translateY(-4px);
}

.module-item-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.module-item-icon {
    font-size: 1.2rem;
    color: var(--primary);
}

.module-item-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-main);
}

.module-item-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Hero Section */
.hub-hero {
    margin-bottom: 48px;
    text-align: left;
}

.hub-hero h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-main);
}

.hub-hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.nav-brand {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}

.brand-sub {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-left: 6px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

.nav-launcher-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    cursor: pointer;
    font: inherit;
    transition: all 0.2s;
}

.nav-launcher-toggle:hover,
.nav-launcher-toggle.active {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
}

.nav-launcher-panel {
    position: absolute;
    top: calc(100% + 14px);
    right: 88px;
    width: min(560px, calc(100vw - 32px));
    background: #0f172a;
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 18px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.65);
    display: none;
    z-index: 1100;
}

.nav-launcher-panel.active {
    display: block;
}

.launcher-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
}

.launcher-panel-header h3 {
    margin: 4px 0 0;
    font-size: 1.1rem;
}

.launcher-eyebrow,
.launcher-section-title {
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.launcher-tenant-label {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.15);
    color: #c7d2fe;
    font-size: 0.8rem;
}

.launcher-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.launcher-app-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 124px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(148, 163, 184, 0.18);
    color: inherit;
    text-decoration: none;
    transition: all 0.2s;
}

.launcher-app-card:hover {
    transform: translateY(-1px);
    border-color: rgba(99, 102, 241, 0.5);
    background: rgba(99, 102, 241, 0.08);
}

.launcher-app-card.disabled {
    opacity: 0.55;
    cursor: default;
}

.launcher-app-tag {
    margin-top: auto;
    font-size: 0.72rem;
    font-weight: 700;
    color: #c7d2fe;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.launcher-app-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(99, 102, 241, 0.18);
    color: #c7d2fe;
    font-size: 1rem;
}

.launcher-app-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
}

.launcher-app-desc {
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--text-muted);
}

.launcher-panel-section {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--glass-border);
}

.launcher-tenant-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.tenant-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    color: #cbd5e1;
    cursor: pointer;
    transition: all 0.2s;
}

.tenant-chip:hover,
.tenant-chip.active {
    background: rgba(99, 102, 241, 0.14);
    border-color: rgba(99, 102, 241, 0.45);
    color: #fff;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    transition: all 0.2s;
}

.nav-user:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
}

.nav-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: var(--bg-dark);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: #1e293b;
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    min-width: 280px;
    padding: 8px;
    display: none;
    flex-direction: column;
    gap: 6px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.65);
    z-index: 1200;
}

.user-dropdown.active {
    display: flex;
}

.dropdown-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px 14px;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 4px;
}

.dropdown-user-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
}

.dropdown-user-email {
    font-size: 0.8rem;
    color: var(--text-muted);
    overflow-wrap: anywhere;
}

.dropdown-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: #e2e8f0;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.dropdown-item i {
    width: 18px;
    text-align: center;
    color: #c7d2fe;
}

.dropdown-divider {
    height: 1px;
    margin: 4px 6px;
    background: var(--glass-border);
}

.dropdown-item-danger {
    color: #fda4af;
}

.dropdown-item-danger i {
    color: #fda4af;
}

.footer-divider {
    opacity: 0.3;
}

.powered-by strong {
    color: #fff;
    font-weight: 700;
}

@media (max-width: 720px) {
    .nav-right {
        gap: 12px;
    }

    .nav-launcher-toggle span {
        display: none;
    }

    .nav-launcher-panel {
        right: 0;
        left: auto;
        width: min(92vw, 560px);
    }
}
