/* My Crypto Trail - Milestone 1 Design System */
/* Synced 1:1 with Figma "My Crypto trail 2026 updated" (file 9OuHUh1FjtbDXtZC2NIpoH) */

:root {
    /* Color Palette — Figma variables */
    --color-base-bg: #010009;                      /* outer frame base */
    --color-primary-bg: rgba(1, 0, 9, 0.6);        /* outer frame fill */
    --color-panel-bg: rgba(1, 0, 9, 0.15);         /* Register Form panel fill */
    --color-panel-border: #6872FF;                 /* Register Form panel border */
    --geek-blue-0: #F0F5FF;                        /* Geek Blue/0 */
    --geek-blue-6: #2F54EB;                        /* Geek Blue/6 (checkbox, links) */
    --geek-blue-7: #1D39C4;                        /* Geek Blue/7 (primary button) */
    --color-input-bg: rgba(29, 57, 196, 0.15);     /* Geek Blue (Primary Opacity)/15% */
    --color-input-border: rgba(255, 255, 255, 0.1);
    --color-text-primary: #FFFFFF;
    --color-text-secondary: #95ACCB;               /* Neutrals/3 */
    --color-link: #85A5FF;
    --color-success: #22C55E;
    --color-warning: #F59E0B;
    --color-danger: #EF4444;

    /* Typography — Figma text styles */
    --font-family: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-family-alt: 'Space Grotesk', var(--font-family);

    /* Heading/H1 (auth titles) */
    --font-size-auth-title: 40px;
    --line-height-auth-title: 30px;
    --tracking-auth-title: 0;

    /* Heading/H4/Regular (auth subtitle) */
    --font-size-auth-subtitle: 18px;
    --line-height-auth-subtitle: 24px;
    --tracking-auth-subtitle: 0;

    /* Body/Body1 */
    --font-size-body: 16px;
    --line-height-body: 20px;
    --tracking-body: 0;

    /* Body/Body2 */
    --font-size-small: 14px;
    --line-height-small: 18px;
    --tracking-small: 0;

    /* Button (large CTA) */
    --font-size-button: 20px;
    --line-height-button: 26px;
    --tracking-button: 0;

    /* Spacing — Figma variables */
    --space-6sm: 6px;
    --space-5sm: 8px;   /* 5sm */
    --space-2sm: 16px;  /* 2sm */
    --space-md: 24px;   /* md */
    --space-lg: 32px;   /* lg */
    --space-2xl: 48px;  /* 2xl */

    /* Radius — Figma variables */
    --radius-input: 10px;
    --radius-button: 12px;
    --radius-panel: 16px;
    --radius-3xl: 24px;
    --radius-checkbox: 4px;

    /* Shadows — Figma Button/Shadow */
    --shadow-button: 0 0 12px rgba(29, 57, 196, 0.2);
    --shadow-button-figma: 0 0 24px rgba(29, 57, 196, 0.2);

    /* Layout */
    --sidebar-width-expanded: 240px;
    --sidebar-width-collapsed: 64px;
    --dashboard-sidebar-width-collapsed: 64px;
}

/* Self-hosted fonts — same files bundled by the macOS app (QuickRecorder/Fonts) */
@font-face {
    font-family: 'Barlow';
    src: url('../fonts/Barlow-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Barlow';
    src: url('../fonts/Barlow-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Barlow';
    src: url('../fonts/Barlow-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Barlow';
    src: url('../fonts/Barlow-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Space Grotesk';
    src: url('../fonts/SpaceGrotesk-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Reset & Base Styles */
.milestone1-body {
    font-family: var(--font-family);
    background-color: var(--color-base-bg);
    color: var(--color-text-primary);
    margin: 0;
    padding: 0;
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
}

/* ============ Auth Layout (Figma: 40666 auth screens) ============ */
.milestone1-auth-layout {
    width: 100%;
    display: flex;
    gap: var(--space-2xl);
    align-items: stretch;
    min-height: 100vh;
    padding: var(--space-md);
    box-sizing: border-box;
    background: var(--color-primary-bg);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-3xl);
}

.milestone1-auth-layout-media-right {
    flex-direction: row-reverse;
}

.milestone1-auth-panel,
.milestone1-auth-left {
    flex: 0 0 calc((100% - var(--space-2xl)) / 2);
    width: calc((100% - var(--space-2xl)) / 2);
    min-width: 0;
    min-height: calc(100vh - 48px);
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    align-items: center;
    justify-content: safe center;
    padding: 0 var(--space-2xl);
    background: var(--color-panel-bg);
    border: 0.5px solid var(--color-panel-border);
    border-radius: var(--radius-panel);
    backdrop-filter: blur(29px);
}

.milestone1-auth-panel::before,
.milestone1-auth-left::before {
    content: '';
    position: absolute;
    width: 322px;
    height: 322px;
    left: 472px;
    top: -122px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(47, 84, 235, 0.55) 0%, rgba(47, 84, 235, 0) 70%);
    filter: blur(68px);
    pointer-events: none;
}

.milestone1-auth-panel::after,
.milestone1-auth-left::after {
    content: '';
    position: absolute;
    width: 522px;
    height: 522px;
    left: -196px;
    top: 665px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(47, 84, 235, 0.45) 0%, rgba(47, 84, 235, 0) 70%);
    filter: blur(88px);
    pointer-events: none;
}

.milestone1-auth-media,
.milestone1-auth-right {
    flex: 0 0 calc((100% - var(--space-2xl)) / 2);
    width: calc((100% - var(--space-2xl)) / 2);
    min-width: 0;
    min-height: calc(100vh - 48px);
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-panel);
    display: flex;
    align-items: center;
    justify-content: center;
}

.milestone1-auth-hero {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.milestone1-auth-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(22.6deg, rgba(0, 0, 0, 0.76) 22.28%, rgba(0, 0, 0, 0) 44.23%);
    pointer-events: none;
}

.milestone1-hero-text {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 34px;
    width: calc(100% - 48px);
    max-width: 624px;
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
    z-index: 1;
}

.milestone1-hero-copy {
    display: flex;
    flex-direction: column;
    gap: var(--space-2sm);
}

.milestone1-hero-heading {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 36px;
    line-height: 30px;
    letter-spacing: 0;
    color: var(--geek-blue-0);
    margin: 0;
}

.milestone1-hero-body {
    font-family: var(--font-family-alt);
    font-weight: 400;
    font-size: 20px;
    line-height: 26px;
    letter-spacing: 0;
    color: var(--color-text-primary);
    margin: 0;
}

.milestone1-hero-dots {
    display: flex;
    gap: var(--space-5sm);
    align-items: center;
}

.milestone1-hero-dot {
    height: 6px;
    width: 8px;
    border-radius: 40px;
    background: var(--geek-blue-0);
    opacity: 0.2;
}

.milestone1-hero-dot.active {
    width: 32px;
    opacity: 1;
}

.milestone1-hero-bar {
    display: block;
    width: 230px;
    height: 6px;
    border-radius: 40px;
    background: linear-gradient(90deg, var(--geek-blue-6) 0%, rgba(47, 84, 235, 0) 100%);
}

/* ============ Auth Form ============ */
.milestone1-auth-card {
    width: 100%;
    max-width: 576px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.milestone1-auth-heading {
    display: flex;
    flex-direction: column;
    gap: var(--space-2sm);
    align-items: center;
    text-align: center;
}

.milestone1-auth-title {
    font-size: var(--font-size-auth-title);
    line-height: var(--line-height-auth-title);
    letter-spacing: var(--tracking-auth-title);
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0;
}

.milestone1-auth-title-left {
    text-align: left;
    align-self: flex-start;
}

.milestone1-auth-subtitle {
    font-size: var(--font-size-auth-subtitle);
    line-height: var(--line-height-auth-subtitle);
    letter-spacing: var(--tracking-auth-subtitle);
    font-weight: 400;
    color: var(--color-text-primary);
    margin: 0;
}

.milestone1-auth-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    width: 100%;
}

.milestone1-auth-fields {
    display: flex;
    flex-direction: column;
    gap: var(--space-2sm);
    width: 100%;
}

.milestone1-field-row {
    display: flex;
    gap: var(--space-2sm);
    width: 100%;
}

.milestone1-field-row > .milestone1-form-group {
    flex: 1 0 0;
    min-width: 0;
}

/* Form Components */
.milestone1-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 0;
}

.milestone1-form-label {
    display: block;
    font-size: var(--font-size-body);
    line-height: var(--line-height-body);
    letter-spacing: var(--tracking-body);
    font-weight: 700;
    color: var(--color-text-secondary);
    margin-bottom: 0;
}

.milestone1-form-input {
    width: 100%;
    box-sizing: border-box;
    height: 32px;
    padding: 5px 12px 7px;
    background: var(--color-input-bg);
    border: 0.5px solid var(--color-input-border);
    border-radius: var(--radius-input);
    color: var(--color-text-primary);
    font-family: var(--font-family);
    font-size: var(--font-size-body);
    line-height: var(--line-height-body);
    letter-spacing: var(--tracking-body);
    transition: all 0.2s ease;
}

.milestone1-form-input::placeholder {
    color: var(--color-text-secondary);
}

.milestone1-form-input:focus {
    outline: none;
    border-color: var(--geek-blue-6);
    box-shadow: 0 0 0 1px rgba(47, 84, 235, 0.35);
}

.milestone1-form-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.milestone1-form-input:-webkit-autofill,
.milestone1-form-input:-webkit-autofill:hover,
.milestone1-form-input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--color-text-primary);
    -webkit-box-shadow: 0 0 0 1000px var(--color-input-bg) inset;
    box-shadow: 0 0 0 1000px var(--color-input-bg) inset;
    caret-color: var(--color-text-primary);
    transition: background-color 5000s ease-in-out 0s;
}

.milestone1-form-input-error {
    border-color: var(--color-input-border);
}

.milestone1-form-error {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 16px;
    font-size: 13px;
    line-height: 16px;
    font-weight: 500;
    color: #F95656;
    margin-top: 0;
}

.milestone1-error-icon {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #010009;
    background: #F95656;
    font-size: 10px;
    line-height: 1;
    font-weight: 700;
    flex: 0 0 auto;
}

.milestone1-forgot-link {
    color: var(--color-link);
    font-size: 12px;
    line-height: 16px;
    font-weight: 500;
    text-decoration: none;
}

.milestone1-forgot-link:hover {
    text-decoration: underline;
}

.milestone1-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    flex: 1 1 auto;
    min-width: 0;
}

.milestone1-input-wrapper > input {
    width: 100%;
    min-width: 0;
}

.milestone1-input-wrapper .milestone1-form-input,
.milestone1-input-wrapper .settings-input,
.milestone1-input-wrapper .custom-input-control {
    padding-right: 44px;
}

.milestone1-input-eye {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 12px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    line-height: 0;
}

.milestone1-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-text-secondary);
    font-size: var(--font-size-small);
    font-weight: 600;
    text-decoration: none;
    align-self: flex-start;
    transition: color 0.2s ease;
}

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

.milestone1-form-success {
    font-size: var(--font-size-small);
    color: var(--color-success);
    background: rgba(34, 197, 94, 0.1);
    border: 0.5px solid var(--color-success);
    border-radius: var(--radius-input);
    padding: var(--space-2sm);
}

/* Checkbox — Figma: 16px, #2F54EB, radius 4 */
.milestone1-checkbox {
    display: flex;
    align-items: center;
    gap: var(--space-2sm);
    cursor: pointer;
}

.milestone1-checkbox-input {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 0.5px solid var(--color-input-border);
    border-radius: var(--radius-checkbox);
    background: var(--color-input-bg);
    margin: 0;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
    align-self: center;
}

.milestone1-checkbox-input:checked {
    background: var(--geek-blue-6);
    border-color: var(--geek-blue-6);
}

.milestone1-checkbox-input:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 1.5px 1.5px 0;
    transform: translate(-50%, -60%) rotate(45deg);
}

.milestone1-checkbox-label {
    font-size: var(--font-size-body);
    line-height: var(--line-height-body);
    letter-spacing: var(--tracking-body);
    font-weight: 700;
    color: var(--color-text-secondary);
}

.milestone1-checkbox-label a,
.milestone1-checkbox-label .milestone1-auth-link {
    color: var(--geek-blue-6);
}

/* ============ Buttons ============ */
.milestone1-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 12px 24px 14px;
    border-radius: var(--radius-button);
    font-family: var(--font-family);
    font-size: var(--font-size-button);
    line-height: var(--line-height-button);
    letter-spacing: var(--tracking-button);
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: var(--space-5sm);
}

.milestone1-btn-primary {
    background: var(--geek-blue-7);
    color: var(--color-text-primary);
    box-shadow: var(--shadow-button);
}

.milestone1-btn-primary:hover {
    background: var(--geek-blue-6);
    box-shadow: var(--shadow-button-figma);
}

.milestone1-btn-primary:active {
    background: var(--geek-blue-7);
}

.milestone1-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Smaller CTA (2FA Continue) */
.milestone1-btn-sm {
    font-size: var(--font-size-body);
    line-height: var(--line-height-body);
    letter-spacing: var(--tracking-body);
}

.milestone1-btn-secondary {
    background: var(--color-input-bg);
    color: var(--color-text-primary);
    border: 0.5px solid var(--color-input-border);
}

.milestone1-btn-secondary:hover {
    background: rgba(29, 57, 196, 0.25);
}

.milestone1-btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Social Login Button — Figma: input-style bg, py-14, Barlow Bold 16 */
.milestone1-social-btn {
    width: 100%;
    box-sizing: border-box;
    height: 50px;
    padding: 14px 24px 16px;
    background: var(--color-input-bg);
    border: 0.5px solid var(--color-input-border);
    border-radius: var(--radius-button);
    color: var(--color-text-primary);
    font-family: var(--font-family);
    font-size: var(--font-size-body);
    line-height: var(--line-height-body);
    letter-spacing: var(--tracking-body);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-6sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.milestone1-social-btn:hover {
    background: rgba(29, 57, 196, 0.25);
}

.milestone1-social-icon {
    width: 16px;
    height: 16px;
}

/* Auth footer links — Barlow SemiBold 14 */
.milestone1-auth-footer {
    text-align: center;
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
    letter-spacing: var(--tracking-small);
    font-weight: 600;
    color: var(--color-text-secondary);
}

.milestone1-auth-link {
    color: var(--color-link);
    text-decoration: none;
}

.milestone1-auth-link:hover {
    text-decoration: underline;
}

.milestone1-or-divider {
    text-align: left;
    width: auto;
    align-self: flex-start;
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
    letter-spacing: var(--tracking-small);
    font-weight: 600;
    color: var(--color-text-secondary);
}

.milestone1-auth-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    align-items: center;
    width: 100%;
}

.milestone1-auth-actions .milestone1-btn,
.milestone1-auth-actions .milestone1-social-btn {
    width: 100%;
}

/* ============ Register screen refinements ============ */
.milestone1-auth-layout-signup {
    width: 100%;
    max-width: none;
    min-height: calc(100vh - 48px);
    justify-content: flex-start;
}

.milestone1-auth-layout-signup.milestone1-auth-layout-media-right {
    flex-direction: row;
}

.milestone1-auth-panel-signup {
    order: 1;
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    min-height: min(976px, calc(100vh - 48px));
    justify-content: flex-start;
    gap: 32px;
    padding: 42px 48px 34px;
    border-radius: 16px;
    border-width: 0.5px;
}

.milestone1-auth-media-signup {
    order: 2;
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    min-height: min(976px, calc(100vh - 48px));
    background: #050714;
    border-radius: 0;
}

.milestone1-auth-media-signup .milestone1-auth-hero,
.milestone1-auth-media-signup .milestone1-auth-hero-overlay {
    left: 0;
    right: 0;
    width: 100%;
}

.milestone1-auth-media-signup .milestone1-auth-hero {
    object-fit: cover;
    object-position: center center;
}

.milestone1-auth-card-signup {
    max-width: 576px;
    gap: 32px;
}

.milestone1-auth-card-signup .milestone1-auth-heading {
    gap: 16px;
    margin-top: 28px;
}

.milestone1-auth-card-signup .milestone1-auth-title {
    font-size: 40px;
    line-height: 46px;
}

.milestone1-auth-card-signup .milestone1-auth-subtitle {
    font-size: 18px;
    line-height: 24px;
    color: var(--geek-blue-0);
}

.milestone1-auth-card-signup .milestone1-auth-form {
    gap: 32px;
}

.milestone1-auth-card-signup .milestone1-auth-fields {
    gap: 16px;
}

.milestone1-auth-card-signup .milestone1-field-row {
    gap: 16px;
}

.milestone1-auth-card-signup .milestone1-form-group {
    gap: 8px;
}

.milestone1-auth-card-signup .milestone1-form-label {
    font-size: 16px;
    line-height: 20px;
}

.milestone1-auth-card-signup .milestone1-form-input {
    height: 48px;
    padding: 12px 16px;
    font-size: 16px;
    line-height: 20px;
}

.milestone1-auth-card-signup .milestone1-checkbox {
    gap: 10px;
    align-items: flex-start;
}

.milestone1-auth-card-signup .milestone1-checkbox-label {
    font-size: 16px;
    line-height: 20px;
}

.milestone1-auth-card-signup .milestone1-auth-actions {
    gap: 14px;
}

.milestone1-auth-card-signup .milestone1-btn {
    min-height: 56px;
    padding: 14px 24px 16px;
    font-size: 20px;
    line-height: 26px;
}

.milestone1-auth-card-signup .milestone1-or-divider {
    align-self: center;
    width: 100%;
    text-align: center;
    font-size: 14px;
    line-height: 18px;
}

.milestone1-auth-card-signup .milestone1-social-btn {
    height: 50px;
    padding: 14px 24px 16px;
    font-size: 16px;
    line-height: 20px;
}

.milestone1-auth-card-signup .milestone1-auth-footer {
    font-size: 14px;
    line-height: 18px;
}

.milestone1-auth-layout-login {
    justify-content: space-between;
}

.milestone1-auth-panel-login {
    justify-content: center;
    padding: 0 48px;
}

.milestone1-auth-card-login {
    max-width: 576px;
    gap: 32px;
}

.milestone1-auth-card-login .milestone1-auth-heading {
    gap: 12px;
}

.milestone1-auth-card-login .milestone1-auth-title {
    font-size: 40px;
    line-height: 46px;
}

.milestone1-auth-card-login .milestone1-auth-subtitle {
    font-size: 18px;
    line-height: 24px;
    color: var(--geek-blue-0);
}

.milestone1-auth-card-login .milestone1-auth-form {
    gap: 32px;
}

.milestone1-auth-card-login .milestone1-auth-fields {
    gap: 16px;
}

.milestone1-auth-card-login .milestone1-form-group {
    gap: 8px;
}

.milestone1-auth-card-login .milestone1-form-label {
    font-size: 16px;
    line-height: 20px;
}

.milestone1-auth-card-login .milestone1-form-input {
    height: 48px;
    padding: 12px 16px;
    font-size: 16px;
    line-height: 20px;
}

.milestone1-auth-card-login .milestone1-checkbox {
    gap: 10px;
    align-items: center;
}

.milestone1-auth-card-login .milestone1-checkbox-label {
    font-size: 16px;
    line-height: 20px;
}

.milestone1-auth-card-login .milestone1-auth-actions {
    gap: 20px;
}

.milestone1-auth-card-login .milestone1-btn {
    min-height: 56px;
    padding: 14px 24px 16px;
    font-size: 20px;
    line-height: 26px;
}

.milestone1-auth-card-login .milestone1-btn-primary {
    background: var(--geek-blue-7) !important;
    color: var(--color-text-primary) !important;
    box-shadow: 0 12px 28px rgba(47, 84, 235, 0.28);
    border: 0;
}

.milestone1-auth-card-login .milestone1-btn-primary:hover {
    background: var(--geek-blue-6) !important;
    color: var(--color-text-primary) !important;
    box-shadow: 0 16px 32px rgba(47, 84, 235, 0.34);
}

.milestone1-auth-card-login .milestone1-btn-primary:active {
    background: var(--geek-blue-7) !important;
    color: var(--color-text-primary) !important;
}

.milestone1-auth-footer-login {
    width: 100%;
    text-align: center;
}

.milestone1-auth-card-login .milestone1-social-btn {
    height: 50px;
    padding: 14px 24px 16px;
    font-size: 16px;
    line-height: 20px;
}

.milestone1-auth-media-login {
    border-radius: 0;
}

.milestone1-auth-media-login .milestone1-auth-hero,
.milestone1-auth-media-login .milestone1-auth-hero-overlay {
    border-radius: 0;
}

.milestone1-auth-media-login .milestone1-hero-text {
    left: 32px;
    right: 32px;
    bottom: 28px;
    transform: none;
    width: auto;
    max-width: 560px;
    gap: 18px;
}

.milestone1-auth-media-login .milestone1-hero-copy {
    gap: 10px;
}

.milestone1-auth-media-login .milestone1-hero-heading {
    font-size: 30px;
    line-height: 34px;
}

.milestone1-auth-media-login .milestone1-hero-body {
    font-size: 16px;
    line-height: 20px;
    max-width: 540px;
}

.milestone1-auth-media-login .milestone1-hero-bar {
    width: 160px;
}

.milestone1-auth-media-signup .milestone1-hero-text {
    left: 24px;
    right: 24px;
    bottom: 32px;
    transform: none;
    width: auto;
    max-width: 430px;
    gap: 16px;
}

.milestone1-auth-media-signup .milestone1-hero-copy {
    gap: 8px;
}

.milestone1-auth-media-signup .milestone1-hero-heading {
    font-size: 30px;
    line-height: 32px;
}

.milestone1-auth-media-signup .milestone1-hero-body {
    font-size: 14px;
    line-height: 20px;
}

/* ============ 2FA ============ */
.milestone1-auth-card-2fa .milestone1-auth-title-left {
    align-self: center;
    text-align: center;
}

.milestone1-auth-card-2fa .milestone1-btn-sm {
    min-height: 46px;
    padding: 10px 24px 12px;
}

.milestone1-option-card {
    width: 100%;
    min-height: 84px;
    box-sizing: border-box;
    display: flex;
    gap: var(--space-2sm);
    align-items: center;
    padding: 14px 24px;
    background: var(--color-input-bg);
    border: 0.5px solid var(--color-input-border);
    border-radius: var(--radius-button);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    color: var(--color-text-primary);
}

.milestone1-option-card-disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.milestone1-option-card:hover,
.milestone1-option-card.selected {
    border-color: var(--geek-blue-6);
}

.milestone1-option-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.milestone1-option-copy {
    display: flex;
    flex-direction: column;
    gap: var(--space-5sm);
}

.milestone1-option-title {
    font-size: 22px;
    line-height: 28px;
    letter-spacing: 0;
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0;
}

.milestone1-option-subtitle {
    font-size: var(--font-size-body);
    line-height: var(--line-height-body);
    letter-spacing: var(--tracking-body);
    font-weight: 400;
    color: var(--color-text-primary);
    margin: 0;
}

.milestone1-google-letter {
    color: #FFFFFF;
    font-size: 38px;
    line-height: 32px;
    font-weight: 700;
    font-family: Arial, sans-serif;
}

.milestone1-qr-card {
    width: 100%;
    padding: var(--space-md);
    border-radius: var(--radius-button);
    border: 0.5px solid var(--color-input-border);
    background: var(--color-input-bg);
    display: flex;
    flex-direction: column;
    gap: var(--space-2sm);
    align-items: center;
    text-align: center;
}

.milestone1-qr-card img {
    width: 150px;
    height: 150px;
    border-radius: 8px;
}

.milestone1-helper-text {
    margin: 0;
    color: var(--color-text-secondary);
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
}

.milestone1-secret-key {
    color: var(--color-text-primary);
    font-weight: 700;
    word-break: break-all;
}

/* OTP Input */
.milestone1-otp-container {
    display: flex;
    gap: var(--space-2sm);
    width: 100%;
}

.milestone1-otp-input {
    flex: 1 0 0;
    min-width: 0;
    height: 58px;
    box-sizing: border-box;
    background: var(--color-input-bg);
    border: 0.5px solid var(--color-input-border);
    border-radius: var(--radius-button);
    color: var(--color-text-primary);
    font-family: var(--font-family);
    font-size: 20px;
    text-align: center;
    transition: all 0.2s ease;
}

.milestone1-otp-input:focus {
    outline: none;
    border-color: var(--geek-blue-6);
    box-shadow: 0 0 0 1px rgba(47, 84, 235, 0.35);
}

/* ============ Legacy aliases (kept for non-auth pages) ============ */
.milestone1-page-title {
    font-size: 32px;
    line-height: 40px;
    font-weight: 700;
    color: var(--color-text-primary);
}

.milestone1-section-title {
    font-size: 22px;
    line-height: 28px;
    font-weight: 700;
    color: var(--color-text-primary);
}

.milestone1-card-title {
    font-size: 20px;
    line-height: 26px;
    font-weight: 700;
    color: var(--color-text-primary);
}

.milestone1-body-text {
    font-size: var(--font-size-body);
    line-height: var(--line-height-body);
    font-weight: 400;
    color: var(--color-text-secondary);
}

.milestone1-small-text {
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
    color: var(--color-text-secondary);
}

.milestone1-card {
    background: var(--color-input-bg);
    border: 0.5px solid var(--color-input-border);
    border-radius: var(--radius-panel);
    padding: var(--space-md);
}

.milestone1-card-elevated {
    background: var(--color-input-bg);
    border: 0.5px solid var(--color-panel-border);
    border-radius: var(--radius-3xl);
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
    .milestone1-auth-layout {
        flex-direction: column;
        gap: var(--space-md);
    }

    .milestone1-auth-layout-signup {
        width: 100%;
        min-height: auto;
    }

    .milestone1-auth-media,
    .milestone1-auth-right {
        flex: none;
        width: 100%;
        min-height: 360px;
    }

    .milestone1-auth-panel,
    .milestone1-auth-left {
        flex: none;
        width: 100%;
        min-height: auto;
        padding: var(--space-2xl);
    }

    .milestone1-auth-panel-signup {
        flex: none;
        width: 100%;
        min-height: auto;
        padding: var(--space-2xl);
    }

    .milestone1-auth-panel-login {
        padding: var(--space-2xl);
    }

    .milestone1-auth-card-signup {
        max-width: 520px;
    }

    .milestone1-auth-card-login {
        max-width: 520px;
    }

    .milestone1-auth-media-signup {
        flex: none;
        width: 100%;
        min-height: 360px;
    }

    .milestone1-auth-media-signup .milestone1-auth-hero,
    .milestone1-auth-media-signup .milestone1-auth-hero-overlay {
        left: 0;
        right: 0;
    }
}

@media (max-width: 768px) {
    .milestone1-auth-layout {
        padding: var(--space-2sm);
        border-radius: 0;
    }

    .milestone1-auth-media,
    .milestone1-auth-right {
        min-height: 300px;
    }

    .milestone1-auth-media-bar {
        min-height: 380px;
    }

    .milestone1-auth-panel,
    .milestone1-auth-left {
        padding: var(--space-lg) var(--space-md);
    }

    .milestone1-auth-panel-signup {
        width: 100%;
        min-height: auto;
        padding: var(--space-lg) var(--space-md);
    }

    .milestone1-auth-panel-login {
        padding: var(--space-lg) var(--space-md);
    }

    .milestone1-auth-title {
        font-size: 32px;
        line-height: 38px;
    }

    .milestone1-field-row {
        flex-direction: column;
    }

    .milestone1-hero-text {
        bottom: 22px;
        gap: var(--space-md);
    }

    .milestone1-auth-media-signup .milestone1-hero-text {
        left: 24px;
        right: 24px;
        bottom: 20px;
    }

    .milestone1-auth-media-login .milestone1-hero-text {
        left: 24px;
        right: 24px;
        bottom: 20px;
    }

    .milestone1-hero-heading {
        font-size: 28px;
        line-height: 30px;
    }

    .milestone1-hero-body {
        font-size: 16px;
        line-height: 22px;
    }
}

@media (max-width: 520px) {
    .milestone1-auth-layout {
        padding: 0;
        gap: 0;
    }

    .milestone1-auth-media,
    .milestone1-auth-right {
        min-height: 240px;
        border-radius: 0;
    }

    .milestone1-auth-media-bar {
        min-height: 360px;
    }

    .milestone1-auth-panel,
    .milestone1-auth-left {
        border-left: 0;
        border-right: 0;
        border-radius: 0;
        padding: var(--space-lg) var(--space-2sm);
    }

    .milestone1-auth-card-signup {
        max-width: 100%;
    }

    .milestone1-checkbox-label {
        font-size: 14px;
        line-height: 18px;
    }
}

/* Utility Classes */
.milestone1-text-center { text-align: center; }

.milestone1-mt-1 { margin-top: var(--space-5sm); }
.milestone1-mt-2 { margin-top: var(--space-2sm); }
.milestone1-mt-3 { margin-top: var(--space-md); }
.milestone1-mt-4 { margin-top: var(--space-lg); }

.milestone1-mb-1 { margin-bottom: var(--space-5sm); }
.milestone1-mb-2 { margin-bottom: var(--space-2sm); }
.milestone1-mb-3 { margin-bottom: var(--space-md); }
.milestone1-mb-4 { margin-bottom: var(--space-lg); }

.milestone1-w-100 { width: 100%; }
.milestone1-d-flex { display: flex; }
.milestone1-align-center { align-items: center; }
.milestone1-justify-center { justify-content: center; }
.milestone1-justify-between { justify-content: space-between; }

/* ============ Dashboard ============ */

/* Sidebar section labels & badge */
.sidebar-section-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #657997;
    padding: 16px 8px 6px;
    display: block;
    text-transform: uppercase;
}

.nav-icon-wrap {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 4px;
    flex-shrink: 0;
}

.sidebar-badge {
    background: rgba(29,57,196,0.2);
    color: #85A5FF;
    border: 0.5px solid rgba(255,255,255,0.05);
    font-size: 10px;
    font-weight: 700;
    border-radius: 6px;
    padding: 3px 8px;
    margin-left: auto;
    flex-shrink: 0;
}

/* Sidebar wallets block */
.sidebar-wallets-block {
    margin-bottom: 16px;
    min-height: 0;
}

.sidebar-wallets-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 0 8px;
}

.sidebar-wallet-add {
    background: rgba(29,57,196,0.3);
    border: none;
    color: #fff;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.sidebar-wallet-item {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    padding: 0 8px;
}

.sidebar-wallet-emoji {
    font-size: 13px;
    flex-shrink: 0;
}

.sidebar-wallet-name {
    font-size: 12px;
    color: #95ACCB;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-wallet-bar {
    width: 32px;
    height: 6px;
    flex-shrink: 0;
    background: rgba(255,255,255,0.08);
    border-radius: 4px;
    overflow: hidden;
}

.sidebar-wallet-pct {
    font-size: 11px;
    color: #657997;
    flex-shrink: 0;
    min-width: 28px;
    text-align: right;
}

.sidebar-wallet-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.sidebar-wallet-list {
    min-height: 0;
    overflow: hidden;
}

.sidebar-wallet-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
    padding: 0 8px;
    color: #8ea2ff;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.sidebar-wallet-more:hover {
    color: #c7d0ff;
}

/* Directions card */
.directions-card {
    position: relative;
    width: 204px;
    height: 130px;
    box-sizing: border-box;
    overflow: hidden;
    align-items: stretch;
    justify-content: flex-start;
    background: #0308521A;
    border: 0.5px solid #6872ff;
    border-radius: 28px;
    padding: 24px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: center;
}

.directions-card::before {
    content: '';
    position: absolute;
    inset: auto 16px 50px;
    height: 48px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(91, 125, 255, 0.4) 0%, rgba(91, 125, 255, 0) 72%);
    filter: blur(18px);
    pointer-events: none;
}

.directions-title {
    position: relative;
    z-index: 1;
    font-size: 20px;
    line-height: 26px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.directions-button {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 48px;
    padding: 14px 16px 16px;
    border-radius: 20px;
    font-size: 14px;
    line-height: 16px;
    text-decoration: none;
    background: var(--geek-blue-7);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

/* Dashboard top row */
.db-top-row {
    display: grid;
    grid-template-columns: minmax(0, 568px) minmax(0, 1fr);
    gap: 16px;
    margin: 16px 16px 16px;
    align-items: start;
    min-height: 0;
    height: auto;
    width: calc(100% - 32px);
}

.db-hero-card {
    flex: none;
    align-self: flex-start;
    border-radius: 32px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--color-input-border);
    height: 896px;
    min-height: 896px;
    max-height: 896px;
    min-width: 0;
    width: 100%;
    max-width: 568px;
    background: rgba(29,57,196,0.1);
}

.db-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
    display: block;
}

.db-hero-img-collapsed {
    display: none;
}

.db-hero-route {
    position: absolute;
    left: 18%;
    top: 18.5%;
    width: 58%;
    height: 82%;
    object-fit: fill;
    pointer-events: none;
    opacity: 0.95;
}

.db-hero-outline {
    position: absolute;
    left: 51.5%;
    top: 15.8%;
    width: 20.5%;
    transform: translateX(-50%);
    pointer-events: none;
    filter: drop-shadow(0 0 8px rgba(205,254,44,0.85));
}

.db-stats-panel {
    flex: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 896px;
    min-height: 896px;
    max-height: 896px;
    min-width: 0;
    width: 100%;
    max-width: none;
    justify-self: stretch;
}

/* Wraps the 3 stat boxes in one card */
.db-stat-card {
    width: 100%;
    background: rgba(29,57,196,0.1);
    border: 0.5px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 16px;
    backdrop-filter: blur(16px);
    height: 230px;
    flex: 0 0 auto;
    overflow: hidden;
}

.db-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
        "vaults trails"
        "health empty";
    column-gap: 8px;
    row-gap: 8px;
    grid-template-rows: 94px 96px;
    height: 198px;
    width: 100%;
}

.db-stat-box-vaults { grid-area: vaults; }

.db-stat-box-trails { grid-area: trails; }

.db-stat-health-box { grid-area: health; }

.db-stat-box {
    background: rgba(29,57,196,0.1);
    border: 0.5px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 8px 16px;
    min-height: 94px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 12px;
}

.db-stat-health-box {
    background: rgba(29,57,196,0.1);
    border: 0.5px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 8px 16px;
    min-height: 94px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 12px;
}

.db-stat-empty {
    grid-area: empty;
    visibility: hidden;
    min-height: 94px;
    border-radius: 16px;
}

.db-stat-health-box .db-stat-value {
    min-width: 92px;
}

.db-stat-label {
    font-size: 14px;
    color: #fff;
    margin-bottom: 0;
    font-weight: 600;
    line-height: 18px;
    letter-spacing: 0.14px;
}

.db-stat-value {
    font-size: 18px;
    line-height: 24px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.18px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 8px;
    min-width: 48px;
    min-height: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    box-sizing: border-box;
}

.db-stat-health {
    color: #fff;
    font-size: 18px;
    line-height: 24px;
    font-weight: 700;
    padding-inline: 8px;
}

/* Task card */
.db-task-card {
    background: rgba(29,57,196,0.1);
    border: 0.5px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 20px 0 16px;
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.db-task-card-header {
    padding: 0 16px;
    margin-bottom: 0;
    min-height: auto;
}

.db-task-title {
    font-size: 18px;
    line-height: 24px;
    font-weight: 700;
    letter-spacing: 0.18px;
    color: #fff;
    margin: 0 0 8px;
}

.db-task-subtitle {
    font-size: 12px;
    line-height: 16px;
    font-weight: 500;
    letter-spacing: 0.12px;
    color: #95ACCB;
    margin: 0;
}

.db-task-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 16px 0;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: none;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.db-task-list::-webkit-scrollbar { width: 0; height: 0; }

.db-task-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    height: 48px;
    box-sizing: border-box;
    background: color-mix(in srgb, var(--geek-blue-7) 50%, transparent);
    border: 0.5px solid var(--color-input-border);
    border-radius: 16px;
    padding: 8px 12px;
    min-height: 48px;
    backdrop-filter: blur(16px);
}

.db-task-icon-wrap {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    background: #030852;
    overflow: hidden;
}

.db-task-icon-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.db-icon-exodus  { background: #6872FF; }
.db-icon-coinbase { background: #0052FF; }
.db-icon-ledger  { background: #1D1D1B; border: 1px solid rgba(255,255,255,0.2); }

.db-task-text {
    flex: 1;
    font-size: 15px;
    line-height: 20px;
    font-weight: 400;
    color: #F0F5FF;
    letter-spacing: 0;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.db-task-item--completed .db-task-text {
    text-decoration: line-through;
}

.db-task-badge {
    min-height: 32px;
    font-size: 14px;
    line-height: 18px;
    font-weight: 700;
    letter-spacing: 0;
    border-radius: 12px;
    padding: 7px 16px;
    flex-shrink: 0;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.db-badge-start {
    background: #FA541C;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}

.db-badge-completed {
    background: #13C2C2;
    color: #fff;
}

.db-task-close {
    width: 24px;
    height: 24px;
    background: #fff;
    border: none;
    cursor: pointer;
    padding: 0;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 1;
    transition: opacity 0.2s;
    color: var(--geek-blue-7);
}

.db-task-close:hover { opacity: 1; }

.db-task-close svg {
    width: 12px;
    height: 12px;
}

/* Vault section */
.db-vault-section {
    background: rgba(29,57,196,0.1);
    border: 0.5px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 16px;
    width: 100%;
    height: 845px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 845px;
    overflow: hidden;
}

.db-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: auto;
    padding: 0 16px;
}

.db-section-title {
    font-size: 18px;
    line-height: 24px;
    font-weight: 700;
    letter-spacing: 0.18px;
    color: #fff;
    margin: 0 0 8px;
}

.db-section-subtitle {
    font-size: 12px;
    line-height: 16px;
    font-weight: 500;
    letter-spacing: 0.12px;
    color: #95ACCB;
    margin: 0;
}

.db-create-btn {
    font-size: 14px;
    font-weight: 700;
    line-height: 16px;
    letter-spacing: 0.14px;
    height: 48px;
    min-height: 48px;
    padding: 14px 24px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    box-shadow: 0 0 24px rgba(29,57,196,0.2);
    border-radius: 12px;
}

/* Vault grid */
.db-vault-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    align-items: stretch;
    padding: 0 16px;
}

.db-vault-card {
    background: rgba(29,57,196,0.2);
    border: 0.5px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 16px;
    backdrop-filter: blur(16px);
    height: 366.5px;
    min-height: 366.5px;
    overflow: hidden;
}

.db-vault-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.db-vault-count {
    font-size: 10px;
    line-height: 14px;
    font-weight: 700;
    color: #85A5FF;
    letter-spacing: 0.1px;
    text-transform: uppercase;
    background: rgba(29,57,196,0.2);
    padding: 3px 8px;
    border-radius: 6px;
}

.db-vault-menu {
    background: none;
    border: none;
    color: #95ACCB;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.db-vault-menu:hover { color: #fff; }

.db-vault-action-menu {
    background: #10164b;
    border: 0.5px solid rgba(133,165,255,0.28);
    border-radius: 8px;
    box-shadow: 0 18px 44px rgba(0,0,0,0.32);
    padding: 6px;
    backdrop-filter: blur(16px);
}

.db-vault-action {
    width: 100%;
    border: 0;
    background: transparent;
    color: #F0F5FF;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border-radius: 6px;
    padding: 9px 10px;
    font-size: 13px;
    font-weight: 700;
    line-height: 16px;
    text-align: left;
}

.db-vault-action:hover {
    background: rgba(96,175,255,0.14);
}

.db-vault-action-danger {
    color: #FF9D9D;
}

.db-vault-action-danger:hover {
    background: rgba(239,68,68,0.14);
    color: #FFD1D1;
}

.db-vault-name {
    font-size: 16px;
    line-height: 20px;
    letter-spacing: 0.16px;
    font-weight: 700;
    color: #F0F5FF;
    margin: 10px 0 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.db-vault-divider {
    height: 0;
    border-top: 0.5px solid rgba(255,255,255,0.12);
    margin-bottom: 10px;
}

.db-wallet-group {
    margin-bottom: 8px;
}

.db-wallet-group-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font: 700 14px/1.3 'Barlow', sans-serif;
    color: #e3e3e3;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.db-wallet-type-emoji {
    font-size: 16px;
    line-height: 1;
}

.db-wallet-name-item {
    font: 400 14px/1.3 'Barlow', sans-serif;
    color: #e3e3e3;
    padding: 4px 0 4px 20px;
    border-left: 1.5px solid rgba(255,255,255,0.15);
    margin-left: 8px;
    margin-bottom: 2px;
}

/* Dashboard Modal */
.db-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(1,0,9,0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.db-modal {
    background: rgba(10,14,60,0.96);
    backdrop-filter: blur(16px);
    border: 0.5px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    width: 100%;
    max-width: 560px;
    padding: 0;
    box-shadow: 0 0 60px rgba(29,57,196,0.4);
    overflow: hidden;
}

.db-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 20px 24px 16px;
}

.db-modal-title {
    font-family: var(--font-family);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.2px;
    color: #fff;
    margin: 0 0 4px;
    line-height: 26px;
}

.db-modal-subtitle {
    font-size: 12px;
    font-weight: 500;
    color: #95ACCB;
    margin: 0;
    line-height: 16px;
    letter-spacing: 0.12px;
}

.db-modal-divider {
    height: 0;
    border: none;
    border-top: 0.5px solid rgba(255,255,255,0.1);
    margin: 0;
}

.db-modal-close {
    background: none;
    border: none;
    color: #95ACCB;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-top: 2px;
    transition: color 0.2s;
}
.db-modal-close:hover { color: #fff; }

.db-modal-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 24px;
}

/* Each card section */
.db-modal-section {
    background: rgba(29,57,196,0.2);
    border-radius: 12px;
    padding: 16px;
}

/* Field label inside section */
.db-field-label {
    display: block;
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 700;
    color: #e3e3e3;
    letter-spacing: 0.16px;
    margin-bottom: 10px;
    line-height: 20px;
}

/* Text input */
.db-field-input {
    width: 100%;
    box-sizing: border-box;
    background: rgba(29,57,196,0.2);
    border: 0.5px solid #85A5FF;
    border-radius: 12px;
    padding: 14px 12px;
    color: #fff;
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.16px;
    line-height: 20px;
    outline: none;
    transition: border-color 0.2s;
    text-align: left;
}
.db-field-input::placeholder { color: #95ACCB; }
.db-field-input:focus { border-color: #6872FF; }

.db-field-error {
    display: block;
    color: #ef4444;
    font-size: 12px;
    margin-top: 6px;
}

/* Wallet trigger button */
.db-wallet-trigger {
    background: rgba(29,57,196,0.2);
    border: 0.5px solid #85A5FF;
    border-radius: 12px;
    padding: 14px 12px;
    width: 100%;
    box-sizing: border-box;
    cursor: pointer;
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Footer buttons */
.db-modal-footer {
    display: flex;
    gap: 16px;
    padding: 16px 24px 20px;
}

.db-btn-cancel {
    flex: 1;
    height: 48px;
    background: rgba(29,57,196,0.15);
    border: 0.5px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    color: #fff;
    font-family: var(--font-family);
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}
.db-btn-cancel:hover { background: rgba(29,57,196,0.25); }

.db-btn-create {
    flex: 1;
    height: 48px;
    background: var(--geek-blue-7);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-family: var(--font-family);
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 0 12px rgba(29,57,196,0.4);
    transition: background 0.2s, opacity 0.2s;
}
.db-btn-create:hover { background: var(--geek-blue-6); }
.db-btn-create:disabled { opacity: 0.6; cursor: not-allowed; }

/* Wallet dropdown panel (fixed) */
.db-wallet-panel {
    background: rgba(18,22,70,0.98);
    backdrop-filter: blur(16px);
    border: 0.5px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    overflow: hidden;
    max-height: 260px;
    display: flex;
    flex-direction: column;
}

.db-wallet-panel-header {
    padding: 12px 16px 10px;
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 700;
    color: #F0F5FF;
    letter-spacing: 0.16px;
    flex-shrink: 0;
}

.db-wallet-panel-divider {
    height: 0;
    border-top: 0.5px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
}

.db-wallet-panel-body {
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    padding: 8px 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(104,114,255,0.3) transparent;
}

.db-wl-group-label {
    padding: 8px 16px 4px;
    font-size: 13px;
    font-weight: 700;
    color: #e3e3e3;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.db-wl-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px 9px 24px;
    cursor: pointer;
    color: #e3e3e3;
    font-family: var(--font-family);
    font-size: 14px;
    transition: background 0.12s;
    user-select: none;
}
.db-wl-row:hover { background: rgba(104,114,255,0.12); }
.db-wl-row--checked { background: rgba(96,175,255,0.08); }
.db-wl-row--checked:hover { background: rgba(96,175,255,0.14); }

.db-wl-bullet {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    flex-shrink: 0;
}
.db-wl-row--checked .db-wl-bullet { background: #60AFFF; }

.db-wl-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.db-wl-tick { flex-shrink: 0; }

.db-color-swatches {
    display: flex;
    gap: 10px;
}

.db-swatch {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.15s, border-color 0.15s;
}

.db-swatch:hover { transform: scale(1.1); }

.db-swatch-active {
    border-color: #fff;
    transform: scale(1.1);
}

/* Wallet Trail List */
.db-wallet-hint {
    color: var(--color-text-secondary);
    font-size: 13px;
    margin: 0 0 10px;
}

.db-wallet-list {
    background: rgba(29,57,196,0.08);
    border: 0.5px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    max-height: 200px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(104,114,255,0.3) transparent;
}

.db-wallet-loading,
.db-wallet-empty {
    padding: 16px;
    font-size: 13px;
    color: var(--color-text-secondary);
    text-align: center;
    margin: 0;
}

.db-wl-group-label {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    background: rgba(255,255,255,0.03);
    border-bottom: 0.5px solid rgba(255,255,255,0.06);
}

.db-wl-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    background: none;
    border: none;
    border-bottom: 0.5px solid rgba(255,255,255,0.04);
    color: var(--color-text-primary);
    font-family: var(--font-family);
    font-size: 14px;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s;
}

.db-wl-row:last-child { border-bottom: none; }

.db-wl-row:hover { background: rgba(104,114,255,0.1); }

.db-wl-row--checked { background: rgba(104,114,255,0.15); }
.db-wl-row--checked:hover { background: rgba(104,114,255,0.2); }

.db-wl-check {
    width: 18px;
    height: 18px;
    border: 1.5px solid rgba(255,255,255,0.2);
    border-radius: 5px;
    background: rgba(29,57,196,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s;
}

.db-wl-row--checked .db-wl-check {
    background: #6872FF;
    border-color: #6872FF;
}

.db-wl-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Selected chips */
.db-chips-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
    min-height: 0;
}

.db-wallet-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(104,114,255,0.15);
    border: 1px solid rgba(104,114,255,0.35);
    border-radius: 20px;
    font-size: 12px;
    color: var(--color-text-primary);
}

.db-chip-remove {
    background: none;
    border: none;
    color: var(--color-text-secondary);
    cursor: pointer;
    padding: 0;
    font-size: 15px;
    line-height: 1;
    display: flex;
    align-items: center;
    transition: color 0.15s;
}

.db-chip-remove:hover { color: #ef4444; }

/* Dashboard responsive */
@media (max-width: 960px) {
    .db-vault-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .db-top-row {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 0;
    }
    .db-stats-panel {
        flex: none;
        height: auto;
        min-height: 0;
        max-height: none;
        width: 100%;
        justify-self: stretch;
    }
    .db-hero-card {
        flex: none;
        height: 220px;
        min-height: 0;
        width: 100%;
        max-width: none;
    }
}

@media (max-width: 768px) {
    .db-vault-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .db-hero-card { height: 160px; }
    .db-stat-card { padding: 10px; gap: 8px; }
    .db-stat-box { padding: 8px 10px; }
    .db-stat-label { font-size: 11px; margin-bottom: 4px; }
    .db-stat-value { font-size: 14px; padding: 6px; min-width: 36px; min-height: 36px; }
    .db-stat-health-box { padding: 8px 10px; }
    .db-stats-grid { column-gap: 6px; row-gap: 6px; }
    .db-section-header { flex-direction: column; align-items: flex-start; gap: 8px; }
    .db-create-btn { width: 100%; }
    .db-vault-grid { grid-template-columns: 1fr; }
    .db-modal { width: calc(100vw - 24px); padding: 16px; }
}

/* ============ My Trails ============ */
.mt-shell {
    min-height: calc(100vh - 120px);
    padding: 16px;
    border: .5px solid rgba(255,255,255,.1);
    border-radius: 20px;
    background: rgba(29,57,196,.1);
    color: #fff;
}

.mt-heading { padding: 0 0 16px; }
.mt-heading h2 { margin: 0 0 8px; font-size: 18px; line-height: 24px; font-weight: 700; }
.mt-heading p { margin: 0; font-size: 12px; line-height: 16px; font-weight: 500; }

.mt-toolbar,
.mt-filters,
.mt-actions,
.mt-card-top,
.mt-card-bottom,
.mt-detail-header,
.mt-detail-meta,
.mt-detail-actions,
.mt-media-actions {
    display: flex;
    align-items: center;
}

.mt-toolbar { justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.mt-filters, .mt-actions { gap: 16px; }

.mt-filter,
.mt-btn {
    min-height: 40px;
    border: .5px solid rgba(255,255,255,.1);
    border-radius: 12px;
    color: #fff;
    background: rgba(29,57,196,.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    font: 700 14px/16px 'Barlow', sans-serif;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .15s, background .15s, transform .15s;
}

.mt-filter span { width: 10px; height: 10px; border: 3px solid var(--filter-color); border-radius: 50%; }
.mt-filter.active { background: color-mix(in srgb, var(--filter-color) 80%, transparent); border-color: #fff; }
.mt-filter.active span { border-color: #fff; }
.mt-btn:hover, .mt-filter:hover { color: #fff; border-color: rgba(255,255,255,.5); transform: translateY(-1px); }
.mt-btn-primary { min-height: 48px; background: var(--geek-blue-7); box-shadow: var(--shadow-button); }
.mt-btn-muted { min-height: 48px; padding-inline: 24px; }
.mt-btn-action { min-height: 32px; padding: 8px 16px; border-radius: 10px; background: rgba(29,57,196,.5); }

.mt-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.mt-card,
.mt-detail-header,
.mt-question-tab,
.mt-question-panel {
    border: .5px solid rgba(255,255,255,.1);
    border-radius: 16px;
    background: rgba(29,57,196,.2);
    backdrop-filter: blur(16px);
}

.mt-card {
    min-height: 136px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: #e3e3e3;
    text-decoration: none;
    transition: background .15s, border-color .15s, transform .15s;
}

.mt-card:hover { color: #fff; border-color: rgba(255,255,255,.35); background: rgba(29,57,196,.32); transform: translateY(-2px); }
.mt-card-top, .mt-card-bottom { justify-content: space-between; gap: 8px; }
.mt-card-top strong, .mt-detail-header strong { font: 700 14px/18px 'Barlow', sans-serif; }
.mt-emoji { margin-right: 8px; font: 400 16px/20px 'Barlow', sans-serif; }
.mt-card-detail { min-height: 39px; margin-left: 8px; padding: 10px 8px; border-left: 2px solid rgba(104,114,255,.65); font: 400 14px/18px 'Barlow', sans-serif; }

.mt-type {
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(29,57,196,.35);
    color: #1890ff;
    font: 700 10px/14px 'Barlow', sans-serif;
    text-transform: uppercase;
    white-space: nowrap;
}
.mt-type-hot-wallet { color: #fa541c; background: rgba(250,84,28,.2); }
.mt-type-exchange { color: #13c2c2; background: rgba(19,194,194,.2); }

.mt-status { display: inline-flex; align-items: center; gap: 6px; color: #13c2c2; font: 400 12px/16px 'Barlow', sans-serif; white-space: nowrap; }
.mt-status i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.mt-status-good { color: #d4b106; }
.mt-status-needs-update { color: #fa541c; }

.mt-empty { grid-column: 1 / -1; padding: 64px 24px; text-align: center; border: 1px dashed rgba(255,255,255,.18); border-radius: 16px; }
.mt-empty > span { font-size: 32px; color: #85a5ff; }
.mt-empty h3 { margin: 12px 0 4px; font-size: 18px; }
.mt-empty p { color: #95accb; }
.mt-empty .mt-btn { margin-top: 16px; }

.mt-detail-shell { padding: 16px; }
.mt-back { margin: 0 16px 16px; }
.mt-detail-header { min-height: 88px; padding: 24px 16px; justify-content: space-between; gap: 16px; }
.mt-detail-meta { gap: 12px; margin-top: 8px; color: #e3e3e3; font: 400 14px/18px 'Barlow', sans-serif; }
.mt-detail-actions { gap: 16px; margin-top: 0; }

.mt-question-layout { margin-top: 16px; display: grid; grid-template-columns: 1fr; gap: 16px; }
.mt-question-nav { display: none; }
.mt-question-tab, .mt-question-panel-title { color: #e3e3e3; }
.mt-question-tab {
    min-height: 64px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    font: 700 14px/18px 'Barlow', sans-serif;
}
.mt-question-tab.active { background: rgba(29,57,196,.4); border-color: #fff; }
.mt-question-label { display: flex; align-items: center; gap: 16px; }
.mt-question-label i { width: 20px; height: 17px; border: 1.5px solid #fff; border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; font: 700 11px/1 'Barlow', sans-serif; }
.mt-question-panels { display: flex; flex-direction: column; gap: 16px; }
.mt-question-panel { overflow: hidden; }
.mt-question-panel-title { width: 100%; min-height: 72px; padding: 20px 24px; border: 0; background: transparent; display: flex; align-items: center; justify-content: space-between; font: 700 14px/18px 'Barlow', sans-serif; text-align: left; }
.mt-question-content { display: none; padding: 0 20px 20px; }
.mt-question-panel.active .mt-question-content { display: block; }
.mt-question-panel.active .mt-chevron { transform: rotate(90deg); }
.mt-media-actions { gap: 16px; }
.mt-media-actions .mt-btn { flex: 1; min-height: 48px; }
.mt-media-grid { margin-top: 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.mt-media-card { min-height: 104px; padding: 20px; border: 1px solid rgba(255,255,255,.1); border-radius: 16px; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-decoration: none; text-align: center; }
.mt-media-card:hover { color: #fff; border-color: rgba(255,255,255,.45); }
.mt-media-card strong { font: 700 14px/16px 'Barlow', sans-serif; word-break: break-word; }
.mt-media-add { border-style: dashed; }

@media (min-width: 1100px) {
    .mt-question-layout.split-view { grid-template-columns: 327px minmax(0, 1fr); align-items: start; }
    .mt-question-layout.split-view .mt-question-nav { display: flex; flex-direction: column; gap: 16px; }
    .mt-question-layout.split-view .mt-question-panels { display: block; }
    .mt-question-layout.split-view .mt-question-panel { display: none; }
    .mt-question-layout.split-view .mt-question-panel.active { display: block; }
    .mt-question-layout.split-view .mt-question-panel-title .mt-chevron { display: none; }
}

@media (max-width: 1180px) {
    .mt-toolbar { align-items: flex-start; }
    .mt-filters { flex-wrap: wrap; }
    .mt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .mt-shell { padding: 12px; }
    .mt-toolbar, .mt-detail-header { flex-direction: column; align-items: stretch; }
    .mt-actions, .mt-detail-actions { justify-content: stretch; }
    .mt-actions .mt-btn, .mt-detail-actions .mt-btn { flex: 1; }
    .mt-grid, .mt-media-grid { grid-template-columns: 1fr; }
    .mt-filters { gap: 8px; }
    .mt-filter { flex: 1 1 calc(50% - 8px); padding-inline: 10px; }
    .mt-detail-meta { flex-wrap: wrap; }
    .mt-media-actions { flex-direction: column; align-items: stretch; }
}

/* ============ Authenticated Layout (shared by all auth pages) ============ */

.authenticated-layout {
    display: flex;
    height: calc(100vh - 16px);
    min-height: calc(100vh - 16px);
    margin: 8px;
    border-radius: 24px;
    background: #010009;
}

.authenticated-sidebar {
    width: 240px;
    background: rgba(255,255,255,0.05);
    border: 0.5px solid rgba(255,255,255,0.1);
    border-right: none;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    transition: width 0.3s ease;
    position: fixed;
    height: calc(100vh - 16px);
    z-index: 100;
    overflow: visible !important;
}
.authenticated-sidebar.collapsed {
    width: 64px !important;
    min-width: 64px !important;
    max-width: 64px !important;
}

.authenticated-main {
    flex: 1;
    margin-left: 248px;
    transition: margin-left 0.3s ease;
    height: calc(100vh - 16px);
    min-height: calc(100vh - 16px);
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    background:
        linear-gradient(180deg, rgba(111, 128, 228, 0.94) 0%, rgba(103, 121, 224, 0.92) 100%);
    border: 0.5px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    position: relative;
    isolation: isolate;
}
.authenticated-main::before,
.authenticated-main::after {
    content: '';
    position: absolute;
    pointer-events: none;
    z-index: 0;
}
.authenticated-main::before {
    top: -120px;
    right: -80px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(30,100,255,0.35) 0%, rgba(20,60,220,0.15) 40%, transparent 70%);
    filter: blur(6px);
}
.authenticated-main::after {
    bottom: -80px;
    left: -60px;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(110,30,220,0.38) 0%, rgba(80,10,180,0.18) 40%, transparent 70%);
    filter: blur(10px);
}
.authenticated-header,
.authenticated-content {
    position: relative;
    z-index: 1;
}
.authenticated-main {
    scrollbar-width: thin;
    scrollbar-color: rgba(133,165,255,0.45) rgba(255,255,255,0.05);
}
.authenticated-main::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
.authenticated-main::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
    border-radius: 999px;
}
.authenticated-main::-webkit-scrollbar-thumb {
    background: rgba(133,165,255,0.45);
    border-radius: 999px;
}
.authenticated-sidebar.collapsed + .authenticated-main { margin-left: 72px !important; }

.authenticated-layout:has(.authenticated-sidebar.collapsed) .authenticated-main {
    margin-left: 72px !important;
}

body:has(.db-top-row) .authenticated-main {
    border: 0;
    flex: 0 0 calc(100% - 248px);
    margin-left: 248px;
    outline: 0.5px solid rgba(255,255,255,0.1);
    outline-offset: -0.5px;
    width: calc(100% - 248px);
    max-width: none;
    background: rgba(255,255,255,0.05);
}
body:has(.db-top-row) .authenticated-main::before {
    top: -120px;
    right: -80px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(30,100,255,0.35) 0%, rgba(20,60,220,0.15) 40%, transparent 70%);
}
body:has(.db-top-row) .authenticated-main::after {
    display: none;
}

.authenticated-sidebar.collapsed {
    width: 64px !important;
    min-width: 64px !important;
    max-width: 64px !important;
}

.authenticated-sidebar.collapsed + .authenticated-main {
    margin-left: 72px !important;
    width: calc(100% - 72px);
    max-width: none;
    flex-basis: calc(100% - 72px);
}

body:has(.db-top-row) .authenticated-layout:has(.authenticated-sidebar.collapsed) .authenticated-main {
    margin-left: 72px !important;
}

body:has(.db-top-row) .authenticated-content {
    padding: 0;
    width: 100%;
    max-width: none;
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(133,165,255,0.45) rgba(255,255,255,0.05);
}

body:has(.db-top-row) .authenticated-content::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

body:has(.db-top-row) .authenticated-content::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
    border-radius: 999px;
}

body:has(.db-top-row) .authenticated-content::-webkit-scrollbar-thumb {
    background: rgba(133,165,255,0.45);
    border-radius: 999px;
}

.authenticated-sidebar.collapsed + .authenticated-main .authenticated-content {
    width: 100%;
    max-width: none;
}

.authenticated-sidebar.collapsed + .authenticated-main .db-top-row {
    width: calc(100% - 32px);
}

.authenticated-sidebar.collapsed + .authenticated-main .db-stats-panel {
    flex-basis: auto;
    width: auto;
}

.authenticated-sidebar.collapsed + .authenticated-main .db-vault-section {
    width: 100%;
}

.authenticated-sidebar.collapsed + .authenticated-main .db-hero-card {
    height: 896px;
    min-height: 896px;
}

.authenticated-sidebar.collapsed + .authenticated-main .db-hero-img-expanded {
    display: none;
}

.authenticated-sidebar.collapsed + .authenticated-main .db-hero-img-collapsed {
    display: block;
}

@media (min-width: 1440px) {
    body:has(.db-top-row) .authenticated-layout {
        width: calc(100% - 16px);
        min-width: 1424px;
        margin: 8px;
    }

    .authenticated-sidebar {
        left: auto;
    }
}

body:has(.db-top-row) {
    min-height: 100vh;
    overflow: hidden;
}

body:has(.db-top-row) .authenticated-layout {
    position: relative;
    height: calc(100vh - 16px);
    min-height: calc(100vh - 16px);
    align-items: stretch;
}

.authenticated-sidebar {
    position: fixed;
    left: 8px;
    top: 8px;
    height: calc(100vh - 16px);
    min-height: calc(100vh - 16px);
}

body:has(.db-top-row) .authenticated-main {
    height: calc(100vh - 16px);
    min-height: calc(100vh - 16px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

body:has(.db-top-row) .authenticated-header {
    flex: 0 0 auto;
    z-index: 20;
    position: relative;
    overflow: visible;
}

body:has(.db-top-row) .authenticated-header::after {
    content: '';
    position: absolute;
    top: -140px;
    right: -110px;
    width: 460px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(30,100,255,0.42) 0%, rgba(20,60,220,0.18) 42%, rgba(20,60,220,0) 74%);
    filter: blur(20px);
    pointer-events: none;
    z-index: 0;
}

body:has(.db-top-row) .authenticated-header > * {
    position: relative;
    z-index: 1;
}

.authenticated-header {
    width: 100%;
    box-sizing: border-box;
    height: 72px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 0.5px solid rgba(255,255,255,0.1);
    background: transparent;
    position: sticky;
    top: 0;
    z-index: 90;
}
.authenticated-content { padding: 16px; }

/* Sidebar logo */
.sidebar-logo {
    padding: 24px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 0.5px solid #597ef7;
    flex-shrink: 0;
}
.sidebar-logo img { object-fit: contain; }
.sidebar-logo-collapsed { display: none; }
.authenticated-sidebar.collapsed .sidebar-logo-expanded { display: none; }
.authenticated-sidebar.collapsed .sidebar-logo-collapsed { display: block; }
.authenticated-sidebar.collapsed .sidebar-logo {
    min-height: 54px;
    padding: 12px 10px 10px;
}
.authenticated-sidebar.collapsed .sidebar-logo img {
    width: 24px;
    height: 24px;
    max-width: none;
    object-fit: contain;
    object-position: center;
}

.authenticated-sidebar {
    background: #090911;
    border-color: rgba(255,255,255,0.1);
    box-shadow: none;
    overflow: visible !important;
    z-index: 120 !important;
}

.authenticated-sidebar .sidebar-logo {
    min-height: 72px;
    padding: 18px 14px 16px;
    border-bottom-color: rgba(47, 84, 235, 0.55);
}

.authenticated-sidebar .sidebar-logo-expanded {
    display: block;
    width: 176px !important;
    height: 28px;
    max-width: none !important;
}

.authenticated-sidebar .sidebar-logo-collapsed {
    display: none;
}

.authenticated-sidebar .nav-item {
    color: #95ACCB;
}

.authenticated-sidebar .nav-item.active {
    background: rgba(29,57,196,0.76);
    border-color: rgba(255,255,255,0.05);
    color: #fff;
}

.authenticated-sidebar .sidebar-toggle {
    right: -13px !important;
    top: 24px;
    width: 24px;
    height: 24px;
    background: var(--geek-blue-7);
    box-shadow: 0 4px 14px rgba(47, 84, 235, 0.35);
    z-index: 130 !important;
    overflow: visible;
}

.authenticated-sidebar.collapsed .sidebar-toggle {
    right: -13px !important;
}

.authenticated-sidebar.collapsed .sidebar-toggle svg {
    transform: rotate(180deg) !important;
}

.authenticated-sidebar .directions-card {
    width: 204px;
    box-shadow: 0 18px 34px rgba(16, 26, 116, 0.32);
}

/* Sidebar scroll area */
.sidebar-scroll {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 0;
}
.sidebar-nav {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 16px;
    scrollbar-width: thin;
    scrollbar-color: rgba(133,165,255,0.45) transparent;
}
.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}
.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(133,165,255,0.45);
    border-radius: 999px;
}
.sidebar-bottom-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    margin-top: 0;
    flex-shrink: 0;
}
.authenticated-sidebar.collapsed .sidebar-nav {
    padding: 0 8px;
    display: flex;
    flex-direction: column;
}
.authenticated-sidebar.collapsed .sidebar-section-label {
    display: block;
    width: auto;
    min-width: 0;
    margin-left: 0;
    padding: 0;
    font-size: 9px;
    line-height: 12px;
    letter-spacing: 0.08em;
    text-align: center;
    color: #7f93b2;
    white-space: nowrap;
    align-self: center;
    position: static;
    transform: none;
}
.authenticated-sidebar.collapsed .sidebar-section-label-menu {
    order: 1;
    margin: 12px 0 10px;
}
.authenticated-sidebar.collapsed .nav-item-menu {
    order: 2;
}
.authenticated-sidebar.collapsed .sidebar-wallets-block {
    display: block;
    order: 3;
    margin: 10px 0 0;
}
.authenticated-sidebar.collapsed .sidebar-wallets-header {
    justify-content: center;
    margin-bottom: 10px;
}
.authenticated-sidebar.collapsed .sidebar-wallet-add {
    display: none;
}
.authenticated-sidebar.collapsed .sidebar-wallet-list {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.authenticated-sidebar.collapsed .sidebar-wallet-more {
    display: flex;
    font-size: 10px;
    justify-content: center;
}
.authenticated-sidebar.collapsed .sidebar-wallet-item {
    justify-content: center;
    margin-bottom: 0;
}
.authenticated-sidebar.collapsed .sidebar-section-label-account {
    order: 4;
    margin: 18px 0 10px;
}
.authenticated-sidebar.collapsed .nav-item-account {
    order: 5;
}
.authenticated-sidebar.collapsed .sidebar-wallet-name,
.authenticated-sidebar.collapsed .sidebar-wallet-bar,
.authenticated-sidebar.collapsed .sidebar-wallet-pct {
    display: none;
}
.authenticated-sidebar.collapsed .sidebar-wallet-emoji {
    font-size: 18px;
    line-height: 1;
}

/* Nav items */
.nav-item {
    padding: 6px 8px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #95ACCB;
    text-decoration: none;
    margin-bottom: 4px;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.nav-item:hover { background: rgba(29,57,196,0.2); color: #fff; }
.nav-item.active { background: rgba(29,57,196,0.4); border: 0.5px solid rgba(255,255,255,0.05); color: #fff; }
.nav-icon { width: 16px; height: 16px; flex-shrink: 0; }
.nav-label { font-size: 14px; font-weight: 600; letter-spacing: 0.14px; flex: 1; }
.authenticated-sidebar.collapsed .nav-label,
.authenticated-sidebar.collapsed .sidebar-badge { display: none; }
.authenticated-sidebar.collapsed .nav-item {
    justify-content: center;
    padding: 8px;
}

.authenticated-sidebar.collapsed .sidebar-bottom-card {
    display: flex;
    justify-content: center;
    padding: 14px 0 18px;
}

.authenticated-sidebar.collapsed .directions-card {
    width: 48px;
    min-height: 116px;
    padding: 12px 6px;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    box-sizing: border-box;
}

.authenticated-sidebar.collapsed .directions-card::before {
    content: '';
    width: 18px;
    height: 18px;
    border: 1.5px solid #F0F5FF;
    border-radius: 50%;
    box-shadow: inset 0 0 0 4.5px rgba(255,255,255,0.05);
}

.authenticated-sidebar.collapsed .directions-title {
    display: none;
}

.authenticated-sidebar.collapsed .directions-button {
    width: 32px;
    min-width: 32px;
    min-height: 32px;
    height: 32px;
    padding: 0;
    border-radius: 10px;
    font-size: 0;
    flex-shrink: 0;
}

.authenticated-sidebar.collapsed .directions-button::before {
    content: '';
    width: 13px;
    height: 13px;
    border: 2px solid #fff;
    border-radius: 4px;
    transform: rotate(-12deg);
}

.authenticated-sidebar.collapsed .sidebar-logo {
    min-height: 54px;
    padding: 12px 10px 10px;
}

.authenticated-sidebar.collapsed .sidebar-logo img {
    width: 24px;
    height: 24px;
    max-width: none;
    object-fit: contain;
    object-position: center;
}

.authenticated-sidebar.collapsed .sidebar-logo-expanded {
    display: none;
}

.authenticated-sidebar.collapsed .sidebar-logo-collapsed {
    display: block;
}

.authenticated-sidebar.collapsed {
    background: #090911;
    border-color: rgba(255,255,255,0.1);
}

.authenticated-sidebar.collapsed .sidebar-nav {
    padding: 2px 16px 0;
    display: flex;
    flex-direction: column;
}

.authenticated-sidebar.collapsed .nav-item {
    width: 32px;
    height: 32px;
    padding: 8px;
    margin-bottom: 8px;
    border-radius: 10px;
}

.authenticated-sidebar.collapsed .sidebar-section-label {
    display: block;
    width: auto;
    min-width: 0;
    margin-left: 0;
    padding: 0;
    font-size: 9px;
    line-height: 12px;
    letter-spacing: 0.08em;
    text-align: center;
    color: #7f93b2;
    white-space: nowrap;
    align-self: center;
    position: static;
    transform: none;
}
.authenticated-sidebar.collapsed .sidebar-wallets-block {
    display: block;
    order: 3;
    margin: 10px 0 0;
}

.authenticated-sidebar.collapsed .sidebar-bottom-card {
    display: flex;
    justify-content: center;
    padding: 14px 0 18px;
}

.authenticated-sidebar.collapsed .directions-card {
    width: 48px;
    min-height: 116px;
    border-radius: 24px;
    padding: 12px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    background: rgba(3,8,82,0.1);
    border: 0.5px solid #6872ff;
    box-shadow: none;
    box-sizing: border-box;
}

.authenticated-sidebar.collapsed .directions-card::before {
    content: '';
    width: 18px;
    height: 18px;
    border: 1.5px solid #F0F5FF;
    border-radius: 50%;
    box-shadow: inset 0 0 0 4.5px rgba(255,255,255,0.05);
}

.authenticated-sidebar.collapsed .directions-title {
    display: none;
}

.authenticated-sidebar.collapsed .directions-button {
    width: 32px;
    min-width: 32px;
    min-height: 32px;
    height: 32px;
    padding: 0;
    border-radius: 10px;
    font-size: 0;
    flex-shrink: 0;
}

.authenticated-sidebar.collapsed .directions-button::before {
    content: '';
    width: 13px;
    height: 13px;
    border: 2px solid #fff;
    border-radius: 4px;
    transform: rotate(-12deg);
}

@media (max-height: 850px) {
    .authenticated-sidebar .sidebar-logo {
        min-height: 58px;
        padding-top: 14px;
        padding-bottom: 12px;
    }

    .authenticated-sidebar .sidebar-nav {
        padding-inline: 12px;
    }

    .authenticated-sidebar .sidebar-section-label {
        padding: 10px 0 6px;
    }

    .authenticated-sidebar .nav-item {
        min-height: 28px;
        padding: 4px 8px;
        margin-bottom: 2px;
    }

    .authenticated-sidebar .sidebar-wallets-block {
        margin-top: 8px;
    }

    .authenticated-sidebar .sidebar-wallet-list {
        overflow: hidden;
    }

    .authenticated-sidebar .sidebar-wallet-item {
        margin-bottom: 4px;
    }

    .authenticated-sidebar .sidebar-bottom-card {
        padding: 10px 16px 14px;
    }

    .authenticated-sidebar .directions-card {
        padding: 14px 16px 12px;
        gap: 12px;
    }

    .authenticated-sidebar.collapsed .sidebar-logo {
        min-height: 46px;
        padding-top: 10px;
        padding-bottom: 8px;
    }

    .authenticated-sidebar.collapsed .sidebar-nav {
        padding-inline: 16px;
    }

    .authenticated-sidebar.collapsed .sidebar-bottom-card {
        justify-content: center;
        padding: 10px 0 14px;
    }
}

@media (max-width: 1024px) {
    body:has(.db-top-row) {
        overflow-y: auto;
    }

    body:has(.db-top-row) .authenticated-layout {
        min-width: 0;
        width: calc(100% - 8px);
        height: calc(100vh - 8px);
        min-height: calc(100vh - 8px);
    }

    .authenticated-sidebar {
        left: 4px;
        top: 4px;
        height: calc(100vh - 8px);
        min-height: calc(100vh - 8px);
    }

    body:has(.db-top-row) .authenticated-main,
    .authenticated-sidebar.collapsed + .authenticated-main,
    body:has(.db-top-row) .authenticated-layout:has(.authenticated-sidebar.collapsed) .authenticated-main {
        margin-left: 0 !important;
        width: 100%;
        flex-basis: 100%;
        height: calc(100vh - 8px);
        min-height: calc(100vh - 8px);
    }
}

@media (max-width: 480px) {
    body:has(.db-top-row) .authenticated-layout {
        width: 100vw;
        height: 100vh;
        min-height: 100vh;
        margin: 0;
    }

    .authenticated-sidebar {
        left: 0;
        top: 0;
        height: 100vh;
        min-height: 100vh;
    }

    body:has(.db-top-row) .authenticated-main,
    .authenticated-sidebar.collapsed + .authenticated-main,
    body:has(.db-top-row) .authenticated-layout:has(.authenticated-sidebar.collapsed) .authenticated-main {
        height: 100vh;
        min-height: 100vh;
    }
}

/* Sidebar toggle button */
.sidebar-toggle {
    position: absolute;
    top: 24px;
    right: -13px;
    width: 24px;
    height: 24px;
    background: var(--geek-blue-7);
    border: 0.5px solid rgba(255,255,255,0.15);
    border-radius: 100px;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 130;
    color: #fff;
    overflow: visible;
}

.authenticated-sidebar.collapsed .sidebar-toggle svg {
    transform: rotate(180deg);
}

/* Hamburger — mobile only */
.hamburger-btn {
    display: none;
    background: rgba(29,57,196,0.3);
    border: 0.5px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    flex-shrink: 0;
}

/* Header page identifier */
.header-page-id { display: flex; align-items: center; gap: 12px; }
.header-page-icon {
    background: var(--geek-blue-7);
    padding: 6px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}
.header-title {
    font-size: 20px;
    line-height: 26px;
    font-weight: 700;
    letter-spacing: 0.2px;
    color: #fff;
    margin: 0;
    font-family: 'Barlow', sans-serif;
}

.header-profile-wrap {
    position: relative;
    margin-left: auto;
}

/* Header profile card */
.header-profile-card {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(29,57,196,0.15);
    border: 0.5px solid #6872ff;
    border-radius: 12px;
    padding: 8px;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

body:has(.db-top-row) .authenticated-header {
    width: 100%;
    box-sizing: border-box;
    height: 72px;
    min-height: 72px;
    padding: 20px 24px;
    align-items: center;
}

body:has(.db-top-row) .header-page-id {
    gap: 14px;
}

body:has(.db-top-row) .header-page-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
}

body:has(.db-top-row) .header-title {
    font-size: 22px;
    line-height: 28px;
    letter-spacing: 0;
}

body:has(.db-top-row) .header-profile-card {
    width: 274px;
    min-height: 58px;
    gap: 12px;
    padding: 10px 16px 10px 12px;
    border-radius: 18px;
    box-shadow: 0 0 28px rgba(47, 84, 235, 0.28), 0 0 54px rgba(47, 84, 235, 0.16);
}

body:has(.db-top-row) .header-profile-card .user-info {
    flex: 1 1 auto;
    gap: 6px;
}

body:has(.db-top-row) .header-profile-card .user-name {
    max-width: 136px;
    font-size: 16px;
    line-height: 20px;
    letter-spacing: 0;
}

body:has(.db-top-row) .header-profile-card .plan-badge {
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 10px;
    line-height: 12px;
    letter-spacing: 0.2px;
}

body:has(.db-top-row) .header-profile-divider {
    height: 44px;
}

body:has(.db-top-row) .user-avatar {
    width: 44px;
    height: 44px;
}

body:has(.db-top-row) .notification-bell {
    width: 24px;
    height: 24px;
}

body:has(.db-top-row) .notification-indicator {
    top: 1px;
    right: -1px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #b6c3ec;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--geek-blue-7);
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
    object-fit: cover;
    overflow: hidden;
}
.user-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.user-name {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.14px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90px;
}
.plan-badge {
    display: inline-block;
    padding: 1px 6px;
    background: rgba(19,194,194,0.2);
    color: #13C2C2;
    border-radius: 4px;
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08px;
}
.header-profile-divider { width: 0.5px; height: 40px; background: #597ef7; flex-shrink: 0; }

/* Notification bell */
.notification-bell {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    color: #fff;
}

.notification-bell-icon {
    display: block;
    width: 20px;
    height: 20px;
}
.notification-indicator {
    position: absolute;
    top: 1px;
    right: -1px;
    width: 9px;
    height: 9px;
    background: #FF6B72;
    border: 2px solid var(--geek-blue-7);
    border-radius: 50%;
}

/* Profile dropdown */
.header-profile-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #1a1f35;
    border: 0.5px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 8px;
    min-width: 160px;
    z-index: 200;
    display: none;
}
.header-profile-dropdown.open { display: block; }
.header-profile-dropdown a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    color: #95ACCB;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.15s;
}
.header-profile-dropdown a:hover { background: rgba(255,255,255,0.05); color: #fff; }
.header-profile-dropdown-divider { height: 0.5px; background: rgba(255,255,255,0.08); margin: 4px 0; }

/* Responsive */
@media (max-width: 1024px) {
    .authenticated-sidebar {
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        background: #010009;
    }
    .authenticated-sidebar.expanded { transform: translateX(0); }
    .authenticated-main { margin-left: 0; }
    .sidebar-toggle { display: none; }
    .hamburger-btn { display: flex; }
}
@media (max-width: 768px) {
    .authenticated-header { padding: 0 12px; }
    .authenticated-content { padding: 12px; }
    .header-title { font-size: 16px; }
    .authenticated-layout { margin: 4px; height: calc(100vh - 8px); min-height: calc(100vh - 8px); border-radius: 16px; }
    .authenticated-main { height: calc(100vh - 8px); min-height: calc(100vh - 8px); }
}
@media (max-width: 480px) {
    .authenticated-layout { margin: 0; height: 100vh; min-height: 100vh; border-radius: 0; width: 100vw; }
    .authenticated-main { height: 100vh; min-height: 100vh; }
    .authenticated-content { padding: 16px; }
}


/* ── Create Trail dialog — Figma-accurate ──────────────────────────────── */
.ct-dialog {
    position: relative;
    font-family: 'Barlow', sans-serif;
    background:
        radial-gradient(120% 80% at 80% 0%, rgba(19,194,194,0.06), transparent 60%),
        radial-gradient(120% 90% at 0% 100%, rgba(29,57,196,0.10), transparent 55%),
        #050D2E;
    border-radius: 16px;
    overflow: hidden;
}
.ct-dialog * { font-family: 'Barlow', sans-serif; }

.ct-dialog-header { padding: 12px 12px 8px; }
.ct-dialog-title { color: #fff; font-size: 12px; font-weight: 700; line-height: 16px; letter-spacing: 0.12px; margin: 0; }
.ct-dialog-subtitle { color: #95ACCB; font-size: 8px; font-weight: 500; line-height: 12px; margin: 0; }
.ct-close-btn { background: none; border: none; cursor: pointer; padding: 4px; line-height: 1; }
.ct-close-btn:hover svg circle { stroke: #fff; }
.ct-close-btn:hover svg path { stroke: #fff; }

/* Tabs — rounded pills */
.ct-tabs { display: flex; gap: 12px; padding: 0 12px 4px; }
.ct-tab {
    flex: 1;
    background: rgba(29,57,196,0.10);
    border: 0.5px solid rgba(255,255,255,0.10);
    color: #fff;
    height: 30px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
}
.ct-tab:focus { outline: none; }
.ct-tab.active {
    background: #13C2C2;
    border: 1px solid #5BE0D4;
    color: #030852;
}
.ct-tab:not(.active):hover { border-color: rgba(19,194,194,0.6); }

.ct-tab-body { padding: 10px; }

/* Section cards */
.ct-section {
    background: linear-gradient(180deg, rgba(133,165,255,0.10), rgba(29,57,196,0.06));
    border: 0.5px solid rgba(133,165,255,0.16);
    border-radius: 8px;
    padding: 8px;
    margin-bottom: 6px;
}
.ct-section-label { color: #fff; font-size: 10px; font-weight: 700; line-height: 14px; letter-spacing: 0.1px; margin-bottom: 6px; display: block; }

/* Brand grid */
.ct-brand-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 8px; }
.ct-brand-btn { display: block; cursor: pointer; margin: 0; }
.ct-brand-btn input[type="radio"] { display: none; }
.ct-brand-btn-inner {
    background: rgba(29,57,196,0.10);
    border: 0.5px solid rgba(255,255,255,0.10);
    border-radius: 6px;
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6px 8px;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1px;
    transition: all 0.2s;
    user-select: none;
}
.ct-brand-btn input[type="radio"]:checked + .ct-brand-btn-inner {
    background: #13C2C2;
    border: 1px solid #5BE0D4;
    color: #030852;
}
.ct-brand-btn:hover .ct-brand-btn-inner { border-color: rgba(19,194,194,0.6); }

/* Brand header (credentials section) */
.ct-brand-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.ct-brand-header img { width: 22px; height: 22px; object-fit: contain; }
.ct-brand-header span { color: #fff; font-size: 14px; font-weight: 700; line-height: 18px; letter-spacing: 0.14px; }

/* Inputs */
.ct-input-wrap {
    background: rgba(3,8,82,0.35);
    border: 0.5px solid rgba(133,165,255,0.25);
    border-radius: 6px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    margin-bottom: 6px;
    height: 30px;
}
.ct-input-wrap:last-child { margin-bottom: 0; }
.ct-input-wrap svg { width: 16px; height: 16px; flex-shrink: 0; }
.ct-input-wrap img { width: 16px; height: 16px; flex-shrink: 0; object-fit: contain; }
.ct-input-wrap input { background: transparent; border: none; outline: none; color: #fff; font-size: 10px; flex: 1; padding: 0 8px; }
.ct-input-wrap input::placeholder { color: #95ACCB; }
.ct-input-wrap:focus-within { border-color: #13C2C2; }

/* Textarea */
.ct-textarea {
    width: 100%;
    background: rgba(3,8,82,0.35);
    border: 0.5px solid rgba(133,165,255,0.25);
    border-radius: 6px;
    color: #fff;
    padding: 10px;
    font-size: 10px;
    resize: vertical;
    min-height: 52px;
    outline: none;
}
.ct-textarea::placeholder { color: #95ACCB; }
.ct-textarea:focus { border-color: #13C2C2; }

/* ── Notification dropdown ─────────────────────────────────────────────── */
.milestone1-notification-dropdown {
    width: min(498px, calc(100vw - 24px));
    min-height: 176px;
    padding: 0;
    background:
        radial-gradient(130% 120% at 0% 100%, rgba(107, 133, 255, 0.16) 0%, rgba(107, 133, 255, 0) 50%),
        linear-gradient(135deg, rgba(47, 84, 235, 0.2) 0%, rgba(29, 57, 196, 0.3) 100%),
        color-mix(in srgb, var(--geek-blue-7) 30%, transparent);
    border: 0.5px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.42), 0 0 24px rgba(47, 84, 235, 0.16);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: #fff;
    font-family: 'Barlow', sans-serif;
    overflow: hidden;
}

.milestone1-notification-dropdown .dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 32px 32px 24px;
    margin: 0;
    border-bottom: 0.5px solid rgba(133, 165, 255, 0.28);
    background: transparent;
}

.milestone1-notification-dropdown .dropdown-header h3 {
    margin: 0;
    color: #fff;
    font-size: 16px;
    line-height: 22px;
    font-weight: 700;
    letter-spacing: 0;
}

.notification-unread-count {
    color: rgba(255,255,255,0.9);
    font-family: 'Barlow', sans-serif;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.milestone1-notification-dropdown .notification-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-height: 252px;
    overflow-y: auto;
    padding: 8px 32px 0;
}

.milestone1-notification-dropdown.expanded .notification-list {
    max-height: min(60vh, 420px);
}

.milestone1-notification-dropdown .notification-item {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 36px;
    padding: 12px 0;
    background: transparent;
    border: 0;
}

.milestone1-notification-dropdown .notification-dot {
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: rgba(149, 172, 203, 0.56);
    flex: 0 0 auto;
}

.milestone1-notification-dropdown .notification-item.unread .notification-dot {
    background: #13C2C2;
    box-shadow: 0 0 10px rgba(19, 194, 194, 0.45);
}

.milestone1-notification-dropdown .notification-content {
    min-width: 0;
    flex: 1;
}

.milestone1-notification-dropdown .notification-title {
    color: #FFFFFF;
    font-family: 'Barlow', sans-serif;
    font-size: 18px;
    line-height: 24px;
    font-weight: 500;
    letter-spacing: 0;
}

.milestone1-notification-dropdown .notification-body,
.milestone1-notification-dropdown .notification-time {
    display: block;
    color: #95ACCB;
    font-family: 'Barlow', sans-serif;
    font-size: 11px;
    line-height: 15px;
    margin-top: 2px;
}

.milestone1-notification-dropdown .dropdown-footer {
    padding: 20px 32px 28px;
    margin: 0;
    border: 0;
    text-align: center;
}

.notification-view-all {
    color: #13C2C2;
    background: transparent;
    border: 0;
    font-family: 'Barlow', sans-serif;
    font-size: 18px;
    line-height: 24px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
}

.notification-view-all:hover {
    color: #22D3EE;
    text-decoration: none;
}

/* Footer buttons */
.ct-footer { display: flex; gap: 8px; padding-top: 0; }
.ct-btn-cancel {
    flex: 1;
    background: rgba(29,57,196,0.15);
    border: 0.5px solid rgba(255,255,255,0.10);
    color: #fff;
    border-radius: 6px;
    height: 30px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1px;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ct-btn-cancel:hover { border-color: rgba(255,255,255,0.3); color: #fff; text-decoration: none; }
.ct-btn-primary {
    flex: 1;
    background: var(--geek-blue-7);
    border: none;
    color: #fff;
    border-radius: 6px;
    height: 30px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: var(--shadow-button);
}
.ct-btn-primary:hover { background: var(--geek-blue-6); color: #fff; }

/* Override old radio-parent styles inside ct-brand-grid */
.ct-brand-grid .radio-parent,
.ct-brand-grid .radio-parent-active {
    display: block;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    gap: 0;
}

/* ── Modal container ───────────────────────────────────────────────────── */
.ct-modal-dialog { max-width: 520px !important; margin: 32px auto !important; }
#add-trail-modal {
    overflow: hidden !important;
    z-index: 11000 !important;
}
#add-trail-modal .ct-dialog {
    background-color: #050D2E !important;
    background-image:
        radial-gradient(120% 80% at 80% 0%, rgba(19,194,194,0.06), transparent 60%),
        radial-gradient(120% 90% at 0% 100%, rgba(29,57,196,0.12), transparent 55%) !important;
    border: 0.5px solid rgba(133,165,255,0.18) !important;
    box-shadow: 0 32px 80px rgba(0,0,0,0.75) !important;
    max-height: calc(100vh - 64px) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
#add-trail-modal .modal-header { flex-shrink: 0 !important; padding: 0 !important; border: none !important; }
#add-trail-modal .modal-body { overflow-y: auto !important; flex: 1 1 auto !important; min-height: 0 !important; padding: 10px !important; }
#add-trail-modal .modal-body::-webkit-scrollbar { width: 4px; }
#add-trail-modal .modal-body::-webkit-scrollbar-track { background: transparent; }
#add-trail-modal .modal-body::-webkit-scrollbar-thumb { background: #2a3f65; border-radius: 4px; }

/* Backdrop: blur + blackout */
.modal-backdrop {
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    background-color: rgba(0,0,0,0.75) !important;
    opacity: 1 !important;
    z-index: 10990 !important;
}
.modal-backdrop.show { opacity: 1 !important; }

/* ── Create Trail — responsive ─────────────────────────────────────────── */
.ct-tab { white-space: nowrap; }
.ct-brand-btn-inner { line-height: 1.25; }

/* Tablet */
@media (max-width: 991px) {
    .ct-modal-dialog { max-width: none !important; margin: 16px !important; }
    #add-trail-modal .ct-dialog { max-height: calc(100vh - 32px) !important; }
    .ct-brand-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Phone */
@media (max-width: 768px) {
    .ct-modal-dialog { margin: 12px !important; }
    #add-trail-modal .ct-dialog { max-height: calc(100vh - 24px) !important; }
    .ct-dialog-header { padding: 12px 12px 8px; }
    .ct-dialog-title { font-size: 14px; line-height: 18px; }
    .ct-dialog-subtitle { font-size: 9px; line-height: 12px; }
    .ct-tabs { gap: 6px; padding: 0 12px 4px; }
    .ct-tab { height: 32px; font-size: 10.5px; padding: 0 4px; }
    .ct-tab-body, #add-trail-modal .modal-body { padding: 10px !important; }
    .ct-section { padding: 8px; margin-bottom: 6px; border-radius: 8px; }
    .ct-section-label { font-size: 10px; line-height: 14px; margin-bottom: 6px; }
    .ct-brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
    .ct-brand-btn-inner { font-size: 10px; min-height: 30px; padding: 6px; }
    .ct-brand-header img { width: 22px; height: 22px; }
    .ct-brand-header span { font-size: 14px; line-height: 18px; }
    .ct-input-wrap { height: 30px; padding: 0 10px; }
    .ct-input-wrap input, .ct-textarea { font-size: 10px; }
    .ct-textarea { min-height: 52px; }
    .ct-footer { gap: 8px; }
    .ct-btn-cancel, .ct-btn-primary { height: 30px; font-size: 10px; }
}

/* Small phone */
@media (max-width: 480px) {
    .ct-tabs { gap: 5px; }
    .ct-tab { font-size: 9.5px; letter-spacing: 0; padding: 0 3px; }
    .ct-brand-grid { gap: 5px; }
    .ct-brand-btn-inner { font-size: 9.5px; min-height: 28px; padding: 5px; }
}
