:root {
    --obsidian: #0a0a0f;
    --obsidian-light: #12121a;
    --obsidian-lighter: #1a1a28;
    --gold: #d4a843;
    --gold-dim: #a67c2e;
    --gold-bright: #f0c960;
    --amber: #f4a261;
    --papyrus: #f5f0e1;
    --papyrus-dim: #c8c0a8;
    --scarlet: #c9302c;
    --scarlet-dim: #8b2020;
    --lapis: #1a3a5c;
    --lapis-bright: #2a5a8c;
    --emerald: #2d6b4f;
    --text-primary: #e8e0d0;
    --text-secondary: #9a937f;
    --text-muted: #5a5548;
    --border: rgba(212, 168, 67, 0.12);
    --border-hover: rgba(212, 168, 67, 0.3);
    --glow: rgba(212, 168, 67, 0.08);
    --radius: 4px;
    --radius-lg: 8px;
    --font-display: 'Cinzel Decorative', 'Cinzel', serif;
    --font-heading: 'Cinzel', serif;
    --font-body: 'Cormorant Garamond', Georgia, serif;
    --font-mono: 'Menlo', 'Monaco', 'Courier New', monospace;
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-primary);
    background: var(--obsidian);
    min-height: 100vh;
    overflow-x: hidden;
}

#app { min-height: 100vh; }

/* ═══ HIEROGLYPH BACKGROUND PATTERN ═══ */
.hiero-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.045;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cdefs%3E%3Cstyle%3Epath,circle,line%7Bfill:none;stroke:%23d4a843;stroke-linecap:round%7D%3C/style%3E%3C/defs%3E%3Cg opacity='1'%3E%3Ccircle cx='30' cy='30' r='8' stroke-width='1.2'/%3E%3Ccircle cx='30' cy='30' r='3' stroke-width='1'/%3E%3Cpath d='M22 30 Q26 24 30 24 Q34 24 38 30 Q34 36 30 36 Q26 36 22 30Z' stroke-width='1'/%3E%3Cpath d='M38 30 L50 30' stroke-width='0.8'/%3E%3Cpath d='M130 20 L130 50 M120 35 L140 35 M120 25 L140 25' stroke-width='1'/%3E%3Ccircle cx='130' cy='15' r='4' stroke-width='0.8'/%3E%3Cpath d='M70 70 L90 70 L80 55Z' stroke-width='1'/%3E%3Cpath d='M75 70 L75 85 M85 70 L85 85' stroke-width='0.8'/%3E%3Cpath d='M73 85 L87 85' stroke-width='0.8'/%3E%3Cpath d='M180 60 C180 45 195 45 195 60 C195 75 180 75 180 60Z' stroke-width='1'/%3E%3Cpath d='M185 52 L190 48 L195 52' stroke-width='0.6'/%3E%3Cpath d='M185 68 L190 72 L195 68' stroke-width='0.6'/%3E%3Cpath d='M30 140 L30 170 M25 140 L35 140 M22 170 L38 170' stroke-width='1'/%3E%3Cpath d='M25 152 L35 152' stroke-width='0.6'/%3E%3Cpath d='M25 160 L35 160' stroke-width='0.6'/%3E%3Ccircle cx='160' cy='140' r='10' stroke-width='1'/%3E%3Cpath d='M150 140 L170 140 M160 130 L160 150' stroke-width='0.8'/%3E%3Cpath d='M153 133 L167 147 M167 133 L153 147' stroke-width='0.5'/%3E%3Cpath d='M90 160 L90 180 L100 190 L110 180 L110 160Z' stroke-width='1'/%3E%3Cpath d='M95 168 L105 168' stroke-width='0.6'/%3E%3Cpath d='M95 175 L105 175' stroke-width='0.6'/%3E%3Cpath d='M200 160 Q200 140 215 150 Q230 140 230 160 Q215 175 200 160Z' stroke-width='1'/%3E%3Cpath d='M70 120 L55 120 L55 100 L70 100 M55 110 L65 110' stroke-width='1'/%3E%3Cpath d='M190 100 L210 100 L210 115 L190 115Z M195 105 L205 105 M195 110 L205 110' stroke-width='0.8'/%3E%3Cpath d='M30 210 L50 210 M30 220 L45 220 M30 230 L40 230' stroke-width='0.8'/%3E%3Ccircle cx='170' cy='210' r='6' stroke-width='0.8'/%3E%3Cpath d='M164 210 L176 210' stroke-width='1.2'/%3E%3Cpath d='M164 204 L170 198 L176 204' stroke-width='0.6'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 240px 240px;
}

/* ═══ SUNRAY GRADIENT ═══ */
.sunray {
    position: fixed;
    top: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: 140%;
    height: 80%;
    background: radial-gradient(ellipse at center, rgba(212, 168, 67, 0.09) 0%, rgba(212, 168, 67, 0.03) 40%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ═══ NOISE TEXTURE ═══ */
.noise {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
    background-size: 512px 512px;
    opacity: 1;
}

/* ═══ LOGIN SCREEN ═══ */
.login-screen {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
}

.login-emblem {
    width: 120px;
    height: 120px;
    margin-bottom: 2rem;
    animation: emblemReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

@keyframes emblemReveal {
    0% { opacity: 0; transform: scale(0.7) rotate(-10deg); filter: blur(8px); }
    100% { opacity: 1; transform: scale(1) rotate(0deg); filter: blur(0); }
}

.login-title {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.08em;
    margin-bottom: 0.3rem;
    text-shadow: 0 0 40px rgba(212, 168, 67, 0.15);
    animation: textReveal 0.8s 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.login-subtitle {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--text-secondary);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 3rem;
    animation: textReveal 0.8s 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

@keyframes textReveal {
    0% { opacity: 0; transform: translateY(12px); }
    100% { opacity: 1; transform: translateY(0); }
}

.login-form {
    width: 100%;
    max-width: 380px;
    animation: formReveal 0.8s 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

@keyframes formReveal {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gold-dim);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.85rem 1rem;
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: var(--text-primary);
    background: var(--obsidian-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input:focus {
    border-color: var(--gold-dim);
    box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.08);
}

.form-input::placeholder {
    color: var(--text-muted);
    font-style: italic;
}

.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    font-size: 1.2rem;
    transition: color var(--transition);
}

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

/* ═══ BUTTONS ═══ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, var(--gold-dim), var(--gold));
    color: var(--obsidian);
    box-shadow: 0 2px 12px rgba(212, 168, 67, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--gold), var(--gold-bright));
    box-shadow: 0 4px 20px rgba(212, 168, 67, 0.3);
    transform: translateY(-1px);
}

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

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

.btn-secondary {
    background: var(--obsidian-lighter);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--border-hover);
    background: rgba(212, 168, 67, 0.05);
}

.btn-ghost {
    background: transparent;
    color: var(--gold-dim);
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
}

.btn-ghost:hover { color: var(--gold); }

.btn-danger {
    background: var(--scarlet-dim);
    color: var(--papyrus);
}

.btn-danger:hover { background: var(--scarlet); }

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: var(--radius);
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid transparent;
    font-size: 1.1rem;
}

.btn-icon:hover {
    color: var(--gold);
    border-color: var(--border);
    background: var(--glow);
}

/* ═══ LOADING SPINNER — EYE OF RA ═══ */
.spinner-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 2px solid var(--border);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ═══ VAULT LAYOUT ═══ */
.vault-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 260px 1fr;
    grid-template-rows: 64px 1fr;
    min-height: 100vh;
}

.vault-header {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    background: var(--obsidian-light);
    border-bottom: 1px solid var(--border);
}

.vault-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.vault-logo svg { width: 32px; height: 32px; }

.vault-logo-text {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.06em;
}

.vault-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vault-sidebar {
    background: var(--obsidian-light);
    border-right: 1px solid var(--border);
    padding: 1rem 0;
    overflow-y: auto;
}

.sidebar-section-title {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 1rem 1.25rem 0.5rem;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1.25rem;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition);
    border-left: 2px solid transparent;
}

.sidebar-item:hover {
    color: var(--text-primary);
    background: var(--glow);
}

.sidebar-item.active {
    color: var(--gold);
    border-left-color: var(--gold);
    background: rgba(212, 168, 67, 0.05);
}

.sidebar-item-icon {
    font-size: 1.1rem;
    width: 1.5rem;
    text-align: center;
}

.sidebar-item-count {
    margin-left: auto;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-heading);
}

.vault-main {
    padding: 1.5rem 2rem;
    overflow-y: auto;
    max-height: calc(100vh - 64px);
}

/* ═══ SEARCH BAR ═══ */
.search-bar {
    position: relative;
    margin-bottom: 1.5rem;
}

.search-bar-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
}

.search-bar input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--obsidian-lighter);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.search-bar input:focus {
    border-color: var(--gold-dim);
    box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.06);
}

.search-bar input::placeholder {
    color: var(--text-muted);
    font-style: italic;
}

/* ═══ VAULT ITEMS — CARTOUCHES ═══ */
.vault-items { display: flex; flex-direction: column; gap: 0.5rem; }

.vault-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1.2rem;
    background: var(--obsidian-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.vault-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gold-dim);
    opacity: 0;
    transition: opacity var(--transition);
}

.vault-item:hover {
    border-color: var(--border-hover);
    background: rgba(212, 168, 67, 0.03);
    transform: translateX(2px);
}

.vault-item:hover::before { opacity: 1; }

.vault-item-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    background: var(--obsidian-lighter);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    overflow: hidden;
}

.vault-item-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.vault-item-info { flex: 1; min-width: 0; }

.vault-item-name {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vault-item-username {
    font-size: 0.9rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vault-item-actions {
    display: flex;
    gap: 0.25rem;
    opacity: 0;
    transition: opacity var(--transition);
}

.vault-item:hover .vault-item-actions { opacity: 1; }

/* ═══ ITEM DETAIL PANEL ═══ */
.detail-panel {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    width: 480px;
    max-width: 90vw;
    background: var(--obsidian-light);
    border-left: 1px solid var(--border);
    z-index: 100;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.detail-panel.open { transform: translateX(0); }

.detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.detail-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gold);
}

.detail-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.detail-field {
    margin-bottom: 1.5rem;
}

.detail-field-label {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.detail-field-value {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
    background: var(--obsidian);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-primary);
    word-break: break-all;
}

.detail-field-value .field-text { flex: 1; }

.detail-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 0.75rem;
}

/* ═══ MODAL / OVERLAY ═══ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
    background: var(--obsidian-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 480px;
    max-height: 85vh;
    overflow-y: auto;
    animation: modalSlide 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlide {
    from { opacity: 0; transform: translateY(16px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 0.05em;
}

.modal-body { padding: 1.5rem; }

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* ═══ PASSWORD GENERATOR ═══ */
.generator-output {
    font-family: var(--font-mono);
    font-size: 1.15rem;
    padding: 1rem;
    background: var(--obsidian);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--gold-bright);
    text-align: center;
    letter-spacing: 0.05em;
    word-break: break-all;
    margin-bottom: 1rem;
    min-height: 3rem;
}

.generator-strength {
    height: 4px;
    background: var(--obsidian-lighter);
    border-radius: 2px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.generator-strength-bar {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s ease, background 0.3s ease;
}

.strength-weak { width: 25%; background: var(--scarlet); }
.strength-fair { width: 50%; background: var(--amber); }
.strength-good { width: 75%; background: var(--gold); }
.strength-strong { width: 100%; background: var(--emerald); }

.generator-controls { display: flex; flex-direction: column; gap: 1rem; }

.generator-slider-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.generator-slider-row label {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    min-width: 80px;
}

.generator-slider-row input[type="range"] {
    flex: 1;
    -webkit-appearance: none;
    height: 4px;
    background: var(--obsidian-lighter);
    border-radius: 2px;
    outline: none;
}

.generator-slider-row input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--gold);
    cursor: pointer;
    box-shadow: 0 0 8px rgba(212, 168, 67, 0.3);
}

.generator-slider-row .slider-value {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--gold);
    min-width: 2rem;
    text-align: right;
}

.generator-toggle-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toggle {
    position: relative;
    width: 40px;
    height: 22px;
    flex-shrink: 0;
}

.toggle input { opacity: 0; width: 0; height: 0; }

.toggle-track {
    position: absolute;
    inset: 0;
    background: var(--obsidian-lighter);
    border: 1px solid var(--border);
    border-radius: 11px;
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition);
}

.toggle-track::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    left: 2px;
    top: 2px;
    background: var(--text-muted);
    border-radius: 50%;
    transition: transform var(--transition), background var(--transition);
}

.toggle input:checked + .toggle-track {
    background: rgba(212, 168, 67, 0.15);
    border-color: var(--gold-dim);
}

.toggle input:checked + .toggle-track::after {
    transform: translateX(18px);
    background: var(--gold);
}

.generator-toggle-row span {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ═══ TOAST NOTIFICATIONS ═══ */
.toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 300;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    padding: 0.75rem 1.25rem;
    background: var(--obsidian-lighter);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 320px;
}

.toast.success { border-left: 3px solid var(--emerald); }
.toast.error { border-left: 3px solid var(--scarlet); }
.toast.info { border-left: 3px solid var(--gold); }

@keyframes toastIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ═══ EMPTY STATE ═══ */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
    text-align: center;
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state-text {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

/* ═══ LOGIN ERROR ═══ */
.login-error {
    background: rgba(201, 48, 44, 0.1);
    border: 1px solid rgba(201, 48, 44, 0.3);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    color: #e87070;
    margin-bottom: 1rem;
    text-align: center;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 768px) {
    .vault-layout {
        grid-template-columns: 1fr;
    }
    .vault-sidebar {
        display: none;
    }
    .vault-sidebar.mobile-open {
        display: block;
        position: fixed;
        left: 0;
        top: 64px;
        bottom: 0;
        width: 280px;
        z-index: 90;
    }
    .vault-main {
        padding: 1rem;
    }
    .detail-panel {
        width: 100%;
        max-width: 100vw;
    }
    .login-title {
        font-size: 2rem;
    }
}
