/* #000101 */

:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-light: rgba(99, 102, 241, 0.1);
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.2s ease;
}

/* Light Theme (default) */
[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #fafbfc;
    --bg-tertiary: #f8fafc;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --text-placeholder: #94a3b8;
    --border: #e2e8f0;
    --primary-light: #eef2ff;
    --card-bg: #ffffff;
    --input-bg: #ffffff;
    --hover-bg: #f8fafc;
}

/* Dark Theme */
[data-theme="dark"] {
    --bg-primary: #1a1a1a;
    --bg-secondary: #0f0f0f;
    --bg-tertiary: #252525;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --text-placeholder: #52525b;
    --border: #27272a;
    --primary-light: rgba(99, 102, 241, 0.15);
    --card-bg: #1a1a1a;
    --input-bg: #252525;
    --hover-bg: #2a2a2a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-y: scroll;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    transition: background 0.3s ease, color 0.3s ease;
}

/* ===== LAYOUT ===== */
.layout {
    display: flex;
    min-height: 100vh;
}

/* ===== SIDEBAR NAVIGATION ===== */
.sidebar {
    width: 260px;
    background: var(--bg-primary);
    border-right: 1px solid var(--border);
    padding: 24px 16px;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    transition: transform 0.3s ease;
    will-change: transform;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 12px;
    margin-bottom: 32px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 18px;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.sidebar-nav {
    list-style: none;
}

.sidebar-nav-item {
    margin-bottom: 4px;
}

.sidebar-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
    cursor: pointer;
}

.sidebar-nav-link:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.sidebar-nav-link.active {
    background: var(--primary-light);
    color: var(--primary);
}

.sidebar-nav-link svg {
    width: 20px;
    height: 20px;
}

.sidebar-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    transition: border-color 0.3s ease;
}

.sidebar-section-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 16px;
    margin-bottom: 8px;
}

/* ===== SIDEBAR VERSION ===== */
.sidebar-version {
    margin-top: 24px;
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.version-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.version-number {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

/* ===== MAIN CONTENT ===== */
.content {
    flex: 1;
    margin-left: 260px;
    padding: 32px;
    max-width: calc(100vw - 260px);
}

.page {
    display: none;
    visibility: hidden;
    opacity: 0;
    transform: translateY(10px);
}

.page.active {
    display: block;
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.header {
    background: transparent;
    border-bottom: none;
    padding: 0 0 24px 0;
    position: static;
    z-index: 100;
    transition: background 0.3s ease, border-color 0.3s ease;
    margin: 0;
    border-radius: 0;
}

.header-content {
    max-width: 1200px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-title {
    text-align: left;
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-menu-btn {
    display: none;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    background: var(--hover-bg);
    color: var(--text-primary);
    border-color: var(--primary);
}

.mobile-menu-btn svg {
    width: 20px;
    height: 20px;
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    will-change: opacity;
}

.mobile-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 0;
    color: var(--text-primary);
    line-height: 1;
}

.page-subtitle {
    color: var(--text-secondary);
    margin-bottom: 0;
    font-size: 15px;
}

/* ===== HEADER ACTIONS - Styles moved to unified section below ===== */

/* ===== HEADER ACTION BUTTONS - Unified Style ===== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Theme Toggle - Unified with other buttons */
.theme-toggle {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 4px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
    height: 40px;
}

.theme-toggle:hover {
    border-color: var(--primary);
}

.theme-btn {
    background: transparent;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
}

.theme-btn.active {
    background: var(--primary);
    color: white;
}

.theme-btn svg {
    width: 16px;
    height: 16px;
}

/* Backup Button - Unified */
.btn-backup {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    padding: 0 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    height: 40px;
}

.btn-backup:hover {
    background: var(--hover-bg);
    color: var(--text-primary);
    border-color: var(--primary);
}

.btn-backup svg {
    width: 16px;
    height: 16px;
}

/* Alias Count Badge - Unified */
.alias-count {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    padding: 0 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
    transition: var(--transition);
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

/* Create Button - Unified */
.btn-create {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    height: 40px;
}

.btn-create:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-create svg {
    width: 16px;
    height: 16px;
}

/* ===== SEARCH BOX ===== */
.search-box input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    color: var(--text-primary);
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.search-box input::placeholder {
    color: var(--text-placeholder);
}

/* ===== FILTER BAR ===== */
.filter-bar {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-search {
    flex: 1;
    min-width: 250px;
}

.filter-search input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    color: var(--text-primary);
    transition: var(--transition);
}

.filter-search input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.filter-search input::placeholder {
    color: var(--text-placeholder);
}

.filter-controls {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group label {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
}

.filter-select {
    padding: 10px 36px 10px 14px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-primary);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23cbd5e1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 34px;
    min-width: 140px;
    transition: var(--transition);
    /* Fix for emoji alignment */
    line-height: 1.4;
    vertical-align: middle;
}

.filter-select option {
    padding: 10px 12px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 14px;
    /* Ensure text is centered vertically */
    line-height: 1.4;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* ===== STATS BAR ===== */
.stats-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    min-width: 70px;
    transition: var(--transition);
}

.stat-item:hover {
    border-color: var(--primary);
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.stat-item:first-child .stat-value {
    color: var(--text-primary);
}

.stat-label {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 4px;
    white-space: nowrap;
}

/* ===== ALIAS CARDS GRID ===== */
.aliases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
}

.alias-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.alias-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--primary);
    transform: translateY(-2px);
}



.alias-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.alias-service {
    display: flex;
    align-items: center;
    gap: 12px;
}

.alias-service-icon {
    width: 44px;
    height: 44px;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: background 0.3s ease;
}

/* Category-specific icon backgrounds matching badge colors */
.alias-card:has(.alias-category.bank) .alias-service-icon { background: rgba(239, 68, 68, 0.2); }
.alias-card:has(.alias-category.betting) .alias-service-icon { background: rgba(249, 115, 22, 0.2); }
.alias-card:has(.alias-category.cloud) .alias-service-icon { background: rgba(14, 165, 233, 0.2); }
.alias-card:has(.alias-category.crypto) .alias-service-icon { background: rgba(245, 158, 11, 0.2); }
.alias-card:has(.alias-category.delivery) .alias-service-icon { background: rgba(180, 83, 9, 0.2); }
.alias-card:has(.alias-category.finance) .alias-service-icon { background: rgba(34, 197, 94, 0.2); }
.alias-card:has(.alias-category.gaming) .alias-service-icon { background: rgba(168, 85, 247, 0.2); }
.alias-card:has(.alias-category.insurance) .alias-service-icon { background: rgba(20, 184, 166, 0.2); }
.alias-card:has(.alias-category.media) .alias-service-icon { background: rgba(236, 72, 153, 0.2); }
.alias-card:has(.alias-category.misc) .alias-service-icon { background: rgba(168, 162, 158, 0.2); }
.alias-card:has(.alias-category.services) .alias-service-icon { background: rgba(99, 102, 241, 0.2); }
.alias-card:has(.alias-category.shop) .alias-service-icon { background: rgba(16, 185, 129, 0.2); }
.alias-card:has(.alias-category.social) .alias-service-icon { background: rgba(59, 130, 246, 0.2); }
.alias-card:has(.alias-category.stream) .alias-service-icon { background: rgba(217, 70, 239, 0.2); }
.alias-card:has(.alias-category.telecommunications) .alias-service-icon { background: rgba(37, 99, 235, 0.2); }
.alias-card:has(.alias-category.travel) .alias-service-icon { background: rgba(6, 182, 212, 0.2); }
.alias-card:has(.alias-category.utilities) .alias-service-icon { background: rgba(100, 116, 139, 0.2); }
.alias-card:has(.alias-category.vpn) .alias-service-icon { background: rgba(139, 92, 246, 0.2); }
.alias-card:has(.alias-category.no-category) .alias-service-icon { background: rgba(107, 114, 128, 0.2); }

.alias-service-name {
    font-weight: 600;
    font-size: 16px;
    color: var(--text-primary);
    line-height: 22px;
}

.alias-category {
    font-size: 11px;
    padding: 2px 8px;
    background: var(--bg-tertiary);
    border-radius: 20px;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: capitalize;
    transition: background 0.3s ease, color 0.3s ease;
    display: inline-block;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 18px;
}

.alias-category.bank { background: rgba(239, 68, 68, 0.2); color: #f87171; }
.alias-category.betting { background: rgba(249, 115, 22, 0.2); color: #fb923c; }
.alias-category.cloud { background: rgba(14, 165, 233, 0.2); color: #38bdf8; }
.alias-category.crypto { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.alias-category.delivery { background: rgba(180, 83, 9, 0.2); color: #d97706; }
.alias-category.finance { background: rgba(34, 197, 94, 0.2); color: #4ade80; }
.alias-category.gaming { background: rgba(168, 85, 247, 0.2); color: #c084fc; }
.alias-category.insurance { background: rgba(20, 184, 166, 0.2); color: #2dd4bf; }
.alias-category.media { background: rgba(236, 72, 153, 0.2); color: #f472b6; }
.alias-category.misc { background: rgba(168, 162, 158, 0.2); color: #a8a29e; }
.alias-category.services { background: rgba(99, 102, 241, 0.2); color: #818cf8; }
.alias-category.shop { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.alias-category.social { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.alias-category.stream { background: rgba(217, 70, 239, 0.2); color: #e879f9; }
.alias-category.telecommunications { background: rgba(37, 99, 235, 0.2); color: #3b82f6; }
.alias-category.travel { background: rgba(6, 182, 212, 0.2); color: #22d3ee; }
.alias-category.utilities { background: rgba(100, 116, 139, 0.2); color: #64748b; }
.alias-category.vpn { background: rgba(139, 92, 246, 0.2); color: #a78bfa; }
.alias-category.no-category { background: rgba(107, 114, 128, 0.2); color: #9ca3af; }

.alias-email {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 15px;
    color: var(--primary);
    background: var(--primary-light);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    word-break: break-all;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: background 0.3s ease, color 0.3s ease;
}

.alias-email-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.alias-email-copy {
    background: transparent;
    border: none;
    color: var(--primary);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: var(--transition);
    flex-shrink: 0;
}

.alias-email-copy:hover {
    background: rgba(99, 102, 241, 0.1);
}

.alias-email-copy svg {
    width: 18px;
    height: 18px;
}

.alias-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    transition: border-color 0.3s ease;
}

.alias-date {
    font-size: 13px;
    color: var(--text-muted);
}

.alias-url {
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.alias-url:hover {
    color: var(--primary);
}

/* ===== ALIAS CARD THREE-DOTS MENU ===== */
.alias-menu-wrapper {
    position: relative;
}

.alias-menu-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.alias-menu-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.alias-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    min-width: 140px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: var(--transition);
    overflow: hidden;
}

.alias-menu-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(4px);
}

.alias-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}

.alias-menu-item:hover {
    background: var(--bg-tertiary);
}

.alias-menu-item.danger {
    color: var(--danger);
}

.alias-menu-item.danger:hover {
    background: rgba(239, 68, 68, 0.1);
}

.alias-menu-item svg {
    flex-shrink: 0;
}

/* Legacy alias-actions - kept for compatibility but hidden by default */
.alias-actions {
    display: none;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 80px 32px;
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 2px dashed var(--border);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.empty-state.hidden {
    display: none;
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 32px;
    color: var(--primary);
    transition: background 0.3s ease;
}

.empty-state h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    transform: scale(0.95) translateY(20px);
    transition: var(--transition);
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal-header {
    padding: 24px 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-close {
    background: var(--bg-tertiary);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--hover-bg);
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-label span {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 12px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    color: var(--text-primary);
    background: var(--input-bg);
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-input::placeholder {
    color: var(--text-placeholder);
    opacity: 1;
}

.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    color: var(--text-primary);
    background: var(--input-bg);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23cbd5e1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 44px;
}

.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.modal-footer {
    padding: 0 24px 24px;
    display: flex;
    gap: 12px;
}



.btn-modal {
    flex: 1;
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-modal-primary {
    background: var(--primary);
    color: white;
}

.btn-modal-primary:hover {
    background: var(--primary-hover);
}

.btn-modal-secondary {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-modal-secondary:hover {
    background: var(--hover-bg);
    color: var(--text-primary);
}

/* ===== RESULT SECTION ===== */
.result-section {
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-top: 24px;
    display: none;
    transition: background 0.3s ease;
}

.result-section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.result-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-email {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--primary-light);
    padding: 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    transition: background 0.3s ease;
}

.result-email-text {
    flex: 1;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 16px;
    color: var(--primary);
    font-weight: 600;
}

.result-actions {
    display: flex;
    gap: 8px;
}

.result-btn {
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.result-btn-copy {
    background: var(--primary);
    color: white;
    flex: 1;
}

.result-btn-copy:hover {
    background: var(--primary-hover);
}

.result-btn-close {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.result-btn-close:hover {
    background: var(--hover-bg);
}

/* ===== TOAST NOTIFICATION ===== */
.toast {
    position: fixed;
    bottom: 32px;
    right: 32px;
    background: var(--text-primary);
    color: var(--bg-primary);
    padding: 16px 24px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-lg);
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition);
    z-index: 2000;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.success {
    background: var(--success);
    color: white;
}

.toast svg {
    width: 20px;
    height: 20px;
}

/* ===== POPUP DIALOGS ===== */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-dialog {
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    transform: scale(0.95) translateY(20px);
    transition: var(--transition);
}

.popup-dialog-small {
    max-width: 400px;
}

.popup-overlay.active .popup-dialog {
    transform: scale(1) translateY(0);
}

.popup-header {
    padding: 20px 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.popup-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.popup-close {
    background: var(--bg-tertiary);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
}

.popup-close:hover {
    background: var(--hover-bg);
    color: var(--text-primary);
}

.popup-body {
    padding: 20px 24px;
}

.popup-field {
    margin-bottom: 16px;
}

.popup-field:last-child {
    margin-bottom: 0;
}

.popup-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.popup-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    color: var(--text-primary);
    background: var(--input-bg);
    transition: var(--transition);
}

.popup-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.popup-input[readonly] {
    background: var(--bg-secondary);
    color: var(--text-muted);
    cursor: not-allowed;
}

.popup-message {
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 16px;
    text-align: center;
}

.popup-alias-info {
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 16px;
    text-align: center;
}

.popup-alias-email {
    display: block;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 15px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 4px;
    word-break: break-all;
}

.popup-alias-service {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
}

.popup-warning {
    font-size: 13px;
    color: var(--danger);
    text-align: center;
    margin: 0;
}

.popup-footer {
    padding: 0 24px 24px;
    display: flex;
    gap: 12px;
}

.btn-modal-danger {
    background: var(--danger);
    color: white;
}

.btn-modal-danger:hover {
    background: #dc2626;
}

/* ===== PAGE CONTAINER ===== */
.page-container {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

/* ===== CARDS ===== */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.card h2 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

/* ===== FORM ELEMENTS ===== */
.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    font-size: 0.9375rem;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn.primary {
    background: var(--primary);
    color: white;
}

.btn.primary:hover {
    background: var(--primary-hover);
}

.btn.primary:disabled {
    background: var(--border-color);
    color: var(--text-muted);
    cursor: not-allowed;
}

.btn.secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn.secondary:hover {
    background: var(--hover-bg);
}

.btn.danger {
    background: var(--danger);
    color: white;
}

.btn.danger:hover {
    background: #dc2626;
}

.btn.small {
    padding: 6px 12px;
    font-size: 0.8125rem;
}

/* ===== SYNC CONTROLS ===== */
.sync-controls {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.sync-controls .btn {
    flex: 1;
    min-width: 120px;
}

.sync-status {
    display: block;
    width: 100%;
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.sync-status.success {
    color: var(--success);
}

.sync-status.error {
    color: var(--danger);
}

.sync-status.loading {
    color: var(--primary);
}

/* ===== ARCHIVE ACTIONS ===== */
.archive-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.archive-actions .btn {
    flex: 1;
    min-width: 100px;
    padding: 10px 14px;
}

/* ===== TOKEN STATUS ===== */
.token-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.6875rem;
    font-weight: 500;
    margin-left: 8px;
    vertical-align: middle;
}

.token-status.saved {
    background: rgba(92, 184, 92, 0.2);
    color: var(--success);
    border: 1px solid var(--success);
}

.token-status.not-saved {
    background: rgba(217, 83, 79, 0.2);
    color: var(--danger);
    border: 1px solid var(--danger);
}

/* ===== INFO TEXT ===== */
.info-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.5;
}

/* ===== BACKUP STYLES ===== */
.backup-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.backup-actions .btn {
    flex: 1;
    min-width: 140px;
}

.backup-list {
    max-height: 400px;
    overflow-y: auto;
}

.backup-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 12px 14px;
    margin-bottom: 8px;
}

.backup-item-info {
    flex: 1;
}

.backup-timestamp {
    font-size: 0.875rem;
    color: var(--text-primary);
}

.backup-count {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-left: 8px;
    background: var(--bg-hover);
    padding: 2px 6px;
    border-radius: 4px;
}

.backup-item-actions {
    display: flex;
    gap: 8px;
}

.backup-item-actions .btn {
    padding: 6px 12px;
    font-size: 0.8125rem;
}

/* ===== DANGER ZONE ===== */
.danger-zone {
    border-color: var(--danger);
    background: rgba(217, 83, 79, 0.05);
}

.danger-zone h3 {
    color: var(--danger);
}

.warning-text {
    font-size: 0.8125rem;
    color: var(--warning);
    margin-bottom: 16px;
    padding: 12px;
    background: rgba(240, 173, 78, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(240, 173, 78, 0.3);
}

/* ===== HELP SECTION ===== */
.help-section {
    margin-bottom: 24px;
}

.help-section:last-child {
    margin-bottom: 0;
}

.help-section h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.help-section p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== FOOTER ===== */
.app-footer {
    display: none;
}

/* ===== EMPTY MESSAGE ===== */
.empty-message {
    text-align: center;
    color: var(--text-muted);
    padding: 20px;
}

/* ===== HIDDEN ===== */
.hidden {
    display: none !important;
}

/* ===== SCROLLBAR ===== */
.backup-list::-webkit-scrollbar,
.archive-list::-webkit-scrollbar {
    width: 8px;
}

.backup-list::-webkit-scrollbar-track,
.archive-list::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

.backup-list::-webkit-scrollbar-thumb,
.archive-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.backup-list::-webkit-scrollbar-thumb:hover,
.archive-list::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
        z-index: 1000;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-overlay {
        display: block;
    }

    .content {
        margin-left: 0;
        max-width: 100vw;
    }
}

/* ===== SKELETON LOADING ===== */
.skeleton {
    background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-secondary) 50%, var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite ease-in-out;
    border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.skeleton-text {
    height: 16px;
    margin-bottom: 8px;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-text.medium {
    width: 80%;
}

.skeleton-text.long {
    width: 100%;
}

.skeleton-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
}

.skeleton-badge {
    width: 80px;
    height: 20px;
    border-radius: 20px;
}

.skeleton-email {
    height: 44px;
    width: 100%;
    border-radius: var(--radius-sm);
}

.skeleton-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    min-height: 180px;
}

.skeleton-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.skeleton-service {
    display: flex;
    align-items: center;
    gap: 12px;
}

.skeleton-stat {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    min-width: 70px;
    text-align: center;
}

.skeleton-stat-value {
    width: 30px;
    height: 20px;
    margin: 0 auto 4px;
}

.skeleton-stat-label {
    width: 50px;
    height: 12px;
    margin: 0 auto;
}

/* Aliases grid skeleton */
.aliases-skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
}

/* Stats bar skeleton */
.stats-skeleton {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.stats-skeleton .skeleton-stat {
    flex-shrink: 0;
}

/* Header skeleton */
.header-skeleton {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.header-skeleton .skeleton-text {
    width: 200px;
    height: 28px;
}

/* Backup list skeleton */
.backup-list-skeleton {
    max-height: 400px;
    overflow-y: auto;
}

.backup-item-skeleton {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 12px 14px;
    margin-bottom: 8px;
}

.backup-item-skeleton .skeleton-text {
    margin-bottom: 0;
    width: 150px;
}

.backup-item-skeleton .skeleton-text.short {
    width: 80px;
}

.backup-actions-skeleton {
    display: flex;
    gap: 8px;
}

.backup-actions-skeleton .skeleton {
    width: 80px;
    height: 32px;
}

/* Loading overlay */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: var(--radius);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== PAGE TRANSITIONS ===== */
/* Simple fade transitions for pages */

/* Fade transition */
.fade-in {
    animation: fadeIn 0.3s ease forwards;
}

.fade-out {
    animation: fadeOut 0.3s ease forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Scale transition for cards */
.alias-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    animation: cardFadeIn 0.4s ease forwards;
    opacity: 0;
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alias-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Staggered animation for cards */
.alias-card:nth-child(1) { animation-delay: 0.05s; }
.alias-card:nth-child(2) { animation-delay: 0.1s; }
.alias-card:nth-child(3) { animation-delay: 0.15s; }
.alias-card:nth-child(4) { animation-delay: 0.2s; }
.alias-card:nth-child(5) { animation-delay: 0.25s; }
.alias-card:nth-child(6) { animation-delay: 0.3s; }
.alias-card:nth-child(7) { animation-delay: 0.35s; }
.alias-card:nth-child(8) { animation-delay: 0.4s; }
.alias-card:nth-child(9) { animation-delay: 0.45s; }
.alias-card:nth-child(10) { animation-delay: 0.5s; }

/* Smooth button transitions */
.btn-create:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-create:active {
    transform: translateY(0);
}

/* Toast animation */
.toast {
    position: fixed;
    bottom: 32px;
    right: 32px;
    background: var(--text-primary);
    color: var(--bg-primary);
    padding: 16px 24px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-lg);
    transform: translateY(100px) scale(0.95);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    z-index: 2000;
}

.toast.show {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.toast.success {
    background: var(--success);
    color: white;
}

/* Modal animation */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

/* Popup animation */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-dialog {
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.popup-overlay.active .popup-dialog {
    transform: scale(1) translateY(0);
}

/* Sidebar nav link transition */
.sidebar-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    cursor: pointer;
}

.sidebar-nav-link:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    transform: translateX(4px);
}

.sidebar-nav-link.active {
    background: var(--primary-light);
    color: var(--primary);
}

/* Menu dropdown animation */
.alias-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    min-width: 140px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.95);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    overflow: hidden;
}

.alias-menu-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(4px) scale(1);
}

.alias-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
    text-align: left;
}

.alias-menu-item:hover {
    background: var(--bg-tertiary);
    transform: translateX(2px);
}

.alias-menu-item.danger:hover {
    background: rgba(239, 68, 68, 0.1);
}

@media (max-width: 768px) {
    .aliases-skeleton-grid {
        grid-template-columns: 1fr;
    }
    
    .header-skeleton {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .stats-skeleton {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    .stats-skeleton .skeleton-stat {
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .card {
        padding: 16px;
    }

    .page-title {
        font-size: 24px;
    }

    .header-actions {
        gap: 8px;
    }

    .alias-count {
        display: none;
    }

    .theme-toggle {
        padding: 3px;
        height: 36px;
    }

    .theme-btn {
        width: 28px;
        height: 28px;
    }

    .btn-backup {
        padding: 0 12px;
        height: 36px;
        font-size: 13px;
    }

    .btn-create {
        padding: 0 14px;
        height: 36px;
        font-size: 13px;
    }

    .btn-create svg,
    .btn-backup svg {
        width: 14px;
        height: 14px;
    }
}
