* {
    box-sizing: border-box;
}

:root {
    --bg: #f5f7fb;
    --surface: #ffffff;
    --surface-2: #f8fafc;
    --text: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --soft: #f8fafc;
    --primary: #2563eb;
    --white: #ffffff;
    --shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
    --radius: 18px;
    --container: 1180px;
}

html {
    scroll-behavior: smooth;
}

html[data-theme="dark"] {
    --bg: #081120;
    --surface: #0f172a;
    --surface-2: #111827;
    --text: #e5e7eb;
    --muted: #94a3b8;
    --line: #243244;
    --primary: #4f46e5;
    --white: #ffffff;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    transition: background-color 0.2s ease, color 0.2s ease;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

code {
    font-family: Consolas, Monaco, monospace;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}

html[data-theme="dark"] .site-header {
    background: rgba(8, 17, 32, 0.92);
    border-bottom-color: var(--line);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    min-height: 72px;
}

.brand {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    word-break: break-word;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.nav a,
.nav button {
    white-space: nowrap;
}

.nav form {
    margin: 0;
}

/* Hero / sections */
.hero {
    padding: clamp(56px, 8vw, 96px) 0;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

html[data-theme="dark"] .hero {
    background: linear-gradient(180deg, #081120 0%, #0f172a 100%);
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 30px;
    align-items: center;
}

.hero-copy h1 {
    margin: 0 0 16px;
    font-size: clamp(2.1rem, 4.5vw, 3.4rem);
    line-height: 1.1;
}

.hero-copy p {
    margin: 0 0 24px;
    color: var(--muted);
    font-size: 18px;
    max-width: 680px;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-card {
    display: flex;
    justify-content: center;
}

.hero-notice {
    display: inline-block;
    margin-bottom: 18px;
    padding: 10px 16px;
    border-radius: 999px;
    background: #fff7ed;
    border: 1px solid #fdba74;
    color: #b45309;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}

html[data-theme="dark"] .hero-notice {
    background: #3a2610;
    border-color: #9a6700;
    color: #fdba74;
}

.section {
    padding: clamp(48px, 6vw, 80px) 0;
}

.section-alt {
    background: var(--soft);
}

html[data-theme="dark"] .section-alt {
    background: #0b1424;
}

.section-heading {
    margin-bottom: 28px;
}

.section-heading h1,
.section-heading h2 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    line-height: 1.2;
}

/* Grid */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    align-items: start;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

/* Card */
.stat-card,
.card,
.pricing-card,
.auth-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    color: var(--text);
}

html[data-theme="dark"] .stat-card,
html[data-theme="dark"] .card,
html[data-theme="dark"] .pricing-card,
html[data-theme="dark"] .auth-card {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.card,
.pricing-card,
.auth-card,
.stat-card {
    height: 100%;
}

.card,
.pricing-card {
    padding: 24px;
}

.stat-card {
    padding: 24px;
    width: 100%;
    max-width: 360px;
}

.card h3,
.pricing-card h3,
.stat-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.card p:last-child,
.pricing-card p:last-child,
.stat-card p:last-child {
    margin-bottom: 0;
}

.price {
    margin: 0 0 12px;
    font-size: 28px;
    font-weight: 700;
}

/* Button */
.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    border: 1px solid transparent;
    cursor: pointer;
    text-align: center;
}

button.btn {
    appearance: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-outline {
    background: var(--surface);
    color: var(--text);
    border-color: #d1d5db;
}

html[data-theme="dark"] .btn-outline {
    background: #111827;
    border-color: var(--line);
}

.btn-block {
    width: 100%;
}

/* Auth */
.auth-page {
    padding: clamp(40px, 6vw, 72px) 0;
    background: var(--soft);
}

.auth-wrap {
    display: flex;
    justify-content: center;
}

.auth-card {
    width: 100%;
    max-width: 560px;
    padding: 28px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    background: var(--surface);
    color: var(--text);
}

html[data-theme="dark"] .form-group input {
    background: #0b1220;
    border-color: var(--line);
}

.auth-note {
    margin-top: 16px;
    color: var(--muted);
    font-size: 14px;
}

.auth-actions-inline {
    margin-top: 16px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.auth-actions-inline form {
    margin: 0;
}

/* Alert */
.alert {
    margin-bottom: 16px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--line);
}

.alert ul {
    margin: 0;
    padding-left: 18px;
}

.alert-error {
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.alert-success {
    border: 1px solid #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

html[data-theme="dark"] .alert-error {
    border-color: #7f1d1d;
    background: #2a1111;
    color: #fecaca;
}

html[data-theme="dark"] .alert-success {
    border-color: #14532d;
    background: #0f1f17;
    color: #bbf7d0;
}

/* 2FA setup */
.setup-block {
    margin-bottom: 18px;
}

.setup-label {
    margin-bottom: 6px;
    font-weight: 700;
    font-size: 14px;
    color: var(--text);
}

.setup-value {
    font-size: 16px;
    color: var(--text);
    word-break: break-word;
}

.setup-qr-wrap {
    margin: 16px 0;
}

.setup-qr-image {
    width: 180px;
    max-width: 100%;
    margin: 0 auto;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    padding: 8px;
    box-sizing: border-box;
}

.setup-qr-svg svg {
    display: block;
    width: 100%;
    height: auto;
}

.manual-key {
    display: block;
    padding: 12px;
    border-radius: 12px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    color: var(--text);
    word-break: break-all;
    white-space: pre-wrap;
    font-size: 14px;
    line-height: 1.5;
}

.mt-24 {
    margin-top: 24px;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--line);
    padding: 22px 0;
    background: var(--surface);
}

.footer-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-left,
.footer-center,
.footer-right {
    display: flex;
    align-items: center;
}

.footer-left {
    justify-content: flex-start;
    flex: 1;
}

.footer-center {
    justify-content: center;
    flex: 1;
}

.footer-right {
    justify-content: flex-end;
    flex: 1;
    gap: 14px;
    flex-wrap: wrap;
}

.footer-copy {
    margin: 0;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}

.footer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.footer-item-trustpilot {
    justify-content: flex-end;
    padding-top: 18px;
}

.footer-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    line-height: 1;
}

.footer-icon-link {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    overflow: hidden;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.footer-icon-link:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

.footer-icon-link svg {
    width: 16px;
    height: 16px;
    display: block;
    flex: 0 0 auto;
}

.footer-trustpilot-link {
    width: auto;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.footer-trustpilot-link svg {
    width: 14px;
    height: 14px;
}

.theme-toggle {
    position: static;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    padding: 10px 16px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    min-width: 130px;
    transition: opacity 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.theme-toggle:hover {
    opacity: 0.95;
}

/* Tablet */
@media (max-width: 980px) {
    .hero-inner {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .hero-card {
        justify-content: flex-start;
    }

    .grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }
}

/* Footer responsive */
@media (max-width: 860px) {
    .footer-bar {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-left,
    .footer-center,
    .footer-right {
        justify-content: center;
        flex: unset;
    }

    .footer-right {
        gap: 12px;
    }

    .footer-item-trustpilot {
        padding-top: 0;
    }
}

/* Mobile */
@media (max-width: 640px) {
    .container {
        padding: 0 16px;
    }

    .site-header {
        position: static;
    }

    .header-inner {
        min-height: auto;
        padding: 14px 0;
        align-items: flex-start;
        flex-direction: column;
    }

    .nav {
        width: 100%;
        justify-content: flex-start;
    }

    .hero-copy p {
        font-size: 16px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .auth-card,
    .card,
    .pricing-card,
    .stat-card {
        padding: 20px;
    }

    .setup-qr-image {
        width: min(100%, 220px);
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .auth-actions-inline {
        flex-direction: column;
    }

    .auth-actions-inline .btn {
        width: 100%;
    }
}

/* Devtools overlay */
.devtools-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(3, 7, 18, 0.82);
    backdrop-filter: blur(8px);
}

.devtools-overlay[hidden] {
    display: none !important;
}

.devtools-overlay-card {
    width: min(100%, 520px);
    padding: 28px;
    border-radius: 18px;
    background: #ffffff;
    color: #111827;
    border: 1px solid #e5e7eb;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.30);
    text-align: center;
}

.devtools-overlay-card h3 {
    margin: 0 0 10px;
    font-size: 24px;
    line-height: 1.2;
}

.devtools-overlay-card p {
    margin: 0;
    color: #4b5563;
    font-size: 15px;
}

html[data-theme="dark"] .devtools-overlay-card {
    background: #0f172a;
    color: #e5e7eb;
    border-color: #243244;
}

html[data-theme="dark"] .devtools-overlay-card p {
    color: #94a3b8;
}

html.devtools-overlay-active,
html.devtools-overlay-active body {
    overflow: hidden;
}

.logout-inline-form {
    margin: 0;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    line-height: 1;
}

.brand-logo-img {
    display: block;
    width: auto;
    max-width: 220px;
    height: 44px;
    object-fit: contain;
}

.brand-logo-text {
    font-size: 28px;
    font-weight: 700;
    color: inherit;
}

@media (max-width: 768px) {
    .brand-logo-img {
        height: 38px;
        max-width: 180px;
    }

    .brand-logo-text {
        font-size: 24px;
    }
}

/* Dashboard shell */
.dashboard-shell {
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.04) 0%, rgba(255, 255, 255, 0) 100%);
}

.page-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 24px;
    align-items: stretch;
    margin-bottom: 28px;
}

.page-lead {
    margin: 10px 0 0;
    max-width: 760px;
    color: var(--muted);
    font-size: 16px;
}

.hero-badge-card {
    background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-badge-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    margin-bottom: 10px;
}

.hero-badge-value {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 8px;
}

.hero-badge-meta {
    color: var(--muted);
    font-size: 14px;
    word-break: break-word;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 26px;
}

.metric-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 22px;
}

.metric-label {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
}

.metric-value {
    font-size: clamp(1.5rem, 2vw, 2rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 8px;
}

.metric-meta {
    font-size: 14px;
    color: var(--muted);
}

.panel-grid {
    display: grid;
    gap: 22px;
    margin-bottom: 22px;
}

.panel-grid-1 {
    grid-template-columns: 1fr;
}

.panel-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 24px;
}

.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
}

.panel-head h2 {
    margin: 0 0 6px;
    font-size: 22px;
    line-height: 1.2;
}

.panel-head p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.form-stack .btn {
    margin-top: 6px;
}

.feature-callout {
    padding: 16px 18px;
    margin-bottom: 18px;
    border-radius: 16px;
    border: 1px solid #dbeafe;
    background: #eff6ff;
    color: #1d4ed8;
}

.feature-callout-success {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

html[data-theme="dark"] .feature-callout {
    border-color: #1e3a8a;
    background: rgba(30, 58, 138, 0.18);
    color: #bfdbfe;
}

html[data-theme="dark"] .feature-callout-success {
    border-color: #14532d;
    background: rgba(20, 83, 45, 0.25);
    color: #bbf7d0;
}

.feature-callout-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
}

.feature-callout-text {
    font-size: 14px;
    line-height: 1.6;
}

.list-panel {
    display: grid;
    gap: 12px;
}

.list-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface-2);
}

.list-row-link {
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.list-row-link:hover {
    transform: translateY(-1px);
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.list-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 4px;
}

.list-desc {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
}

.list-badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

@media (max-width: 980px) {
    .page-hero,
    .panel-grid-2,
    .metric-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .hero-badge-card,
    .panel-card,
    .metric-card {
        padding: 18px;
    }

    .list-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* App shell professional layout */
.app-shell {
    min-height: calc(100vh - 72px);
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 28%),
        linear-gradient(180deg, rgba(37, 99, 235, 0.03) 0%, rgba(255,255,255,0) 100%);
}

.app-sidebar {
    position: sticky;
    top: 72px;
    align-self: start;
    min-height: calc(100vh - 72px);
    background: var(--surface);
    border-right: 1px solid var(--line);
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.app-sidebar-head {
    padding: 4px 8px 0;
}

.app-sidebar-eyebrow {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 10px;
}

.app-sidebar-brand {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 4px;
}

.app-sidebar-sub {
    color: var(--muted);
    font-size: 13px;
    word-break: break-word;
}

.app-menu {
    display: grid;
    gap: 18px;
}

.app-menu-group {
    display: grid;
    gap: 8px;
}

.app-menu-title {
    padding: 0 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

.app-menu-link {
    display: block;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid transparent;
    background: transparent;
    transition: all 0.18s ease;
}

.app-menu-link span {
    display: block;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--text);
}

.app-menu-link small {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.4;
}

.app-menu-link:hover {
    background: var(--surface-2);
    border-color: var(--line);
}

.app-menu-link.active {
    background: rgba(37, 99, 235, 0.10);
    border-color: rgba(37, 99, 235, 0.18);
}

.app-menu-link.active span,
.app-menu-link.active small {
    color: var(--primary);
}

.app-menu-link-muted {
    opacity: 0.78;
    cursor: default;
}

.app-sidebar-foot {
    margin-top: auto;
    padding: 0 6px;
}

.app-content {
    min-width: 0;
    padding: 28px;
}

.app-topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.app-page-title {
    margin: 6px 0 10px;
    font-size: clamp(2rem, 4vw, 2.75rem);
    line-height: 1.08;
}

.app-page-subtitle {
    margin: 0;
    max-width: 860px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
}

/* refine existing cards */
.metric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.metric-card,
.panel-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.metric-card {
    padding: 22px;
}

.panel-card {
    padding: 24px;
}

.list-row {
    background: var(--surface);
}

.list-row-link:hover {
    background: var(--surface-2);
}

@media (max-width: 1100px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .app-sidebar {
        position: static;
        min-height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .app-content {
        padding: 22px;
    }
}

@media (max-width: 640px) {
    .app-content {
        padding: 18px 16px;
    }

    .app-sidebar {
        padding: 18px 14px;
    }

    .app-page-title {
        font-size: 2rem;
    }

    .metric-grid,
    .panel-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* Account dropdown */
.account-menu {
    position: relative;
}

.account-menu[open] {
    z-index: 30;
}

.account-menu summary {
    list-style: none;
}

.account-menu summary::-webkit-details-marker {
    display: none;
}

.account-menu-trigger {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 46px;
    padding: 6px 8px 6px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.account-menu-trigger:hover {
    background: var(--surface-2);
}

.account-menu-name {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}

.account-menu-avatar {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.12);
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.account-menu-caret {
    font-size: 10px;
    color: var(--muted);
}

.account-menu-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    min-width: 220px;
    padding: 10px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
}

.account-menu-link,
.account-menu-button {
    width: 100%;
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 12px;
    border: 0;
    background: transparent;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.account-menu-link:hover,
.account-menu-button:hover {
    background: var(--surface-2);
}

.account-menu-form {
    margin: 0;
}

.account-menu-button {
    cursor: pointer;
}

@media (max-width: 640px) {
    .account-menu-name {
        max-width: 120px;
    }

    .account-menu-trigger {
        gap: 10px;
        padding-left: 12px;
    }
}