/**
 * AurID Stylesheet
 * Mobile-first, responsive design
 * Light & Dark themes
 */

/* CSS Variables for theming */
:root {
    --color-bg: #FFF7E9;
    --color-card: #F5E8D8;
    --color-accent: #DAA520;
    --color-accent-hover: #C4941A;
    --color-secondary: #3A86FF;
    --color-secondary-hover: #2A76EF;
    --color-text: #2B2B2F;
    --color-text-secondary: #6B6460;
    --color-border: #E5D8C8;
    --color-error: #E63946;
    --color-success: #2A9D8F;
    --color-warning: #F4A261;
    --color-info: #3A86FF;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.2s ease;
}

/* Dark theme */
[data-theme="dark"] {
    --color-bg: #1C1C1E;
    --color-card: #2A2622;
    --color-accent: #F2CB05;
    --color-accent-hover: #E2BB00;
    --color-secondary: #3A86FF;
    --color-secondary-hover: #4A96FF;
    --color-text: #F5E8D8;
    --color-text-secondary: #B0A9A0;
    --color-border: #3A3632;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.2);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.3);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.4);
}

/* Reset and base styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
    transition: var(--transition);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5em;
}

h1 { font-size: 1.875rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-secondary-hover);
    text-decoration: underline;
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.container-narrow {
    max-width: 480px;
}

.container-wide {
    max-width: 1400px;
}

/* Header */
.header {
    background-color: var(--color-card);
    border-bottom: 1px solid var(--color-border);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent);
    text-decoration: none;
}

.logo:hover {
    color: var(--color-accent-hover);
    text-decoration: none;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-secondary));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    color: var(--color-text);
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
}

.nav-link:hover {
    background-color: var(--color-bg);
    color: var(--color-text);
    text-decoration: none;
}

.nav-link.active {
    background-color: var(--color-accent);
    color: white;
}

/* Main content */
.main {
    min-height: calc(100vh - 70px);
    padding: 1.5rem 0;
}

/* Cards */
.card {
    background-color: var(--color-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 1rem;
}

.card-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.card-subtitle {
    color: var(--color-text-secondary);
    font-size: 0.875rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text);
}

.form-label .optional {
    color: var(--color-text-secondary);
    font-weight: normal;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    background-color: var(--color-bg);
    color: var(--color-text);
    transition: var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

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

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

.form-hint {
    margin-top: 0.375rem;
    font-size: 0.75rem;
    color: var(--color-text-secondary);
}

.form-error {
    margin-top: 0.375rem;
    font-size: 0.75rem;
    color: var(--color-error);
}

/* Input with icon */
.input-group {
    position: relative;
}

.input-group .form-input {
    padding-right: 3rem;
}

.input-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-secondary);
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.25rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn:hover {
    text-decoration: none;
}

.btn-primary {
    background-color: var(--color-accent);
    color: white;
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    color: white;
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--color-secondary-hover);
    color: white;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--color-border);
    color: var(--color-text);
}

.btn-outline:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.btn-ghost {
    background-color: transparent;
    color: var(--color-text);
}

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

.btn-danger {
    background-color: var(--color-error);
    color: white;
}

.btn-danger:hover {
    background-color: #D52B38;
    color: white;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Alerts */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.alert-error {
    background-color: rgba(230, 57, 70, 0.1);
    color: var(--color-error);
    border: 1px solid rgba(230, 57, 70, 0.2);
}

.alert-success {
    background-color: rgba(42, 157, 143, 0.1);
    color: var(--color-success);
    border: 1px solid rgba(42, 157, 143, 0.2);
}

.alert-warning {
    background-color: rgba(244, 162, 97, 0.1);
    color: var(--color-warning);
    border: 1px solid rgba(244, 162, 97, 0.2);
}

.alert-info {
    background-color: rgba(58, 134, 255, 0.1);
    color: var(--color-info);
    border: 1px solid rgba(58, 134, 255, 0.2);
}

/* Auth pages */
.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.auth-header {
    padding: 1rem 0;
    text-align: center;
}

.auth-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.auth-card {
    width: 100%;
    max-width: 420px;
}

.auth-footer {
    text-align: center;
    padding: 1.5rem;
    color: var(--color-text-secondary);
    font-size: 0.875rem;
}

/* Step indicator */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.step {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--color-border);
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
}

.step.active {
    background-color: var(--color-accent);
    color: white;
}

.step.completed {
    background-color: var(--color-success);
    color: white;
}

.step-line {
    flex: 1;
    max-width: 40px;
    height: 2px;
    background-color: var(--color-border);
}

.step-line.completed {
    background-color: var(--color-success);
}

/* Seed phrase display */
.seed-phrase {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.seed-word {
    background-color: var(--color-bg);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    text-align: center;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    font-weight: 600;
}

.seed-word-number {
    display: block;
    font-size: 0.625rem;
    color: var(--color-text-secondary);
    margin-bottom: 0.25rem;
}

.seed-word-text {
    display: block;
}

/* Seed action buttons - responsive wrap on small screens */
.seed-actions {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.seed-actions .seed-action-btn {
    /* Default: full width (stack) on small screens */
    flex: 1 1 100%;
    min-width: 0;
}

/* On wider screens (>=501px) place buttons side-by-side */
@media (min-width: 501px) {
    .seed-actions {
        flex-wrap: nowrap;
    }
    .seed-actions .seed-action-btn {
        flex: 1 1 calc(50% - 0.75rem);
        min-width: 120px;
    }
}

.seed-warning {
    background-color: rgba(230, 57, 70, 0.1);
    border: 1px solid rgba(230, 57, 70, 0.2);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.seed-warning-icon {
    color: var(--color-error);
    flex-shrink: 0;
}

.seed-warning-text {
    font-size: 0.875rem;
    color: var(--color-text);
}

/* Checkbox */
.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--color-accent);
    cursor: pointer;
}

.checkbox-label {
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Language selector */
.lang-selector {
    position: relative;
}

.lang-selector-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: none;
    border: none;
    color: var(--color-text);
    font-size: 0.875rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
}

.lang-selector-btn:hover {
    background-color: var(--color-bg);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 160px;
    display: none;
    z-index: 100;
}

.lang-dropdown.show {
    display: block;
}

.lang-option {
    display: block;
    padding: 0.625rem 1rem;
    color: var(--color-text);
    font-size: 0.875rem;
    text-decoration: none;
}

.lang-option:hover {
    background-color: var(--color-bg);
    text-decoration: none;
}

.lang-option.active {
    color: var(--color-accent);
    font-weight: 500;
}

/* Theme toggle */
.theme-toggle {
    background: none;
    border: none;
    color: var(--color-text);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background-color: var(--color-bg);
}

/* Console layout */
.console-layout {
    display: flex;
    min-height: calc(100vh - 70px);
}

/* Sidebar */
.sidebar {
    width: 260px;
    background-color: var(--color-card);
    border-right: 1px solid var(--color-border);
    padding: 1.5rem 0;
    position: fixed;
    height: 100%;
    overflow-y: auto;
    z-index: 50;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.sidebar.open {
    transform: translateX(0);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 40;
    display: none;
}

.sidebar-overlay.show {
    display: block;
}

.sidebar-nav {
    list-style: none;
    padding: 0;
}

.sidebar-nav-item {
    margin: 0.25rem 0;
}

.sidebar-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: var(--color-text);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border-left: 3px solid transparent;
}

.sidebar-nav-link:hover {
    background-color: var(--color-bg);
    text-decoration: none;
}

.sidebar-nav-link.active {
    background-color: var(--color-bg);
    border-left-color: var(--color-accent);
    color: var(--color-accent);
}

.sidebar-nav-icon {
    width: 20px;
    text-align: center;
}

/* Console content */
.console-content {
    flex: 1;
    margin: 0 auto;
    max-width: 1200px;
    padding: 1.5rem;
    width: 100%;
    box-sizing: border-box;
}

/* Show burger only on very small screens and hide header controls there */
@media (max-width: 422px) {
    /* show right-side burger, hide left one */
    .menu-toggle-right {
        display: flex;
    }
    .menu-toggle {
        display: none;
    }
    .lang-selector,
    .theme-toggle {
        display: none;
    }
    /* keep profile avatar visible but hide text */
    .user-menu-btn .user-info { display: none; }
    .user-menu-btn { gap: 0.5rem; }
}

.console-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.console-title {
    font-size: 1.5rem;
    font-weight: 600;
}

/* Mobile menu toggle */
.menu-toggle {
    background: none;
    border: none;
    color: var(--color-text);
    cursor: pointer;
    padding: 0.5rem;
    display: none;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 300;
}

.menu-toggle-right {
    background: none;
    border: none;
    color: var(--color-text);
    cursor: pointer;
    padding: 0.5rem;
    display: none;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 300;
}

/* Stats cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background-color: var(--color-card);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.stat-value {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

/* Tables */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    background-color: var(--color-card);
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.table th,
.table td {
    padding: 0.875rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.table th {
    font-weight: 600;
    color: var(--color-text-secondary);
    background-color: var(--color-bg);
}

.table tr:last-child td {
    border-bottom: none;
}

.table tr:hover td {
    background-color: var(--color-bg);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
}

.badge-success {
    background-color: rgba(42, 157, 143, 0.1);
    color: var(--color-success);
}

.badge-error {
    background-color: rgba(230, 57, 70, 0.1);
    color: var(--color-error);
}

.badge-warning {
    background-color: rgba(244, 162, 97, 0.1);
    color: var(--color-warning);
}

.badge-info {
    background-color: rgba(58, 134, 255, 0.1);
    color: var(--color-info);
}

/* Tabs */
.tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 1.5rem;
    overflow-x: auto;
}

.tab {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    cursor: pointer;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
}

.tab:hover {
    color: var(--color-text);
}

.tab.active {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal {
    background-color: var(--color-card);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.95);
    transition: var(--transition);
}

.modal-overlay.show .modal {
    transform: scale(1);
}

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

.modal-title {
    font-size: 1.125rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: var(--color-text-secondary);
    cursor: pointer;
    padding: 0.25rem;
}

.modal-close:hover {
    color: var(--color-text);
}

.modal-body {
    padding: 1.25rem;
}

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

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
}

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

.empty-state-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.empty-state-text {
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
}

/* User avatar */
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-accent), var(--color-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
}

.avatar-lg {
    width: 64px;
    height: 64px;
    font-size: 1.25rem;
}

.avatar-sm {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 180px;
    display: none;
    z-index: 100;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1rem;
    color: var(--color-text);
    font-size: 0.875rem;
    text-decoration: none;
}

.dropdown-item:hover {
    background-color: var(--color-bg);
    text-decoration: none;
}

.dropdown-divider {
    height: 1px;
    background-color: var(--color-border);
    margin: 0.5rem 0;
}

/* User menu */
.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.375rem 0.75rem 0.375rem 0.375rem;
    background: none;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    color: var(--color-text);
}

.user-menu-btn:hover {
    background-color: var(--color-bg);
}

.user-info {
    text-align: left;
    display: none;
}

.user-name {
    font-size: 0.875rem;
    font-weight: 600;
    display: block;
}

.user-email {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    display: block;
}

/* Responsive breakpoints */
/* 415-639px: 3 columns */
@media (min-width: 415px) and (max-width: 639px) {
    .seed-phrase {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .seed-phrase {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop layout: show sidebar on wide screens only */
@media (min-width: 1024px) {
    .sidebar {
        position: relative;
        transform: none;
        display: block;
    }

    .sidebar-overlay {
        display: none !important;
    }

    .console-content {
        padding-left: 260px;
        margin: 0 auto;
        max-width: 1200px;
    }

    .menu-toggle {
        display: none;
    }

    .user-info {
        display: block;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    /* Hide mobile bottom navigation on desktop */
    .bottom-nav {
        display: none;
    }
}

/* Mobile / Tablet: hide left sidebar and use a right-side drawer for mobile menu */
.sidebar {
    display: none;
}

/* Bottom navigation bar */
.bottom-nav {
    display: flex;
    align-items: center;
    justify-content: space-around;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 60px;
    background: var(--color-card);
    border-top: 1px solid var(--color-border);
    z-index: 200;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.04);
}
.bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.75rem;
}
.bottom-nav .icon {
    font-size: 18px;
    margin-bottom: 2px;
}
.bottom-nav .label { font-size: 11px; }

/* Ensure main content has space for bottom nav on small screens */
@media (max-width: 1023px) {
    .console-content { padding-bottom: 80px; }
}

/* Right-side drawer for mobile menu */
.right-drawer {
    position: fixed;
    right: 0;
    top: 0;
    height: 100%;
    width: 280px;
    background-color: var(--color-card);
    border-left: 1px solid var(--color-border);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 400;
    padding: 1rem;
    box-shadow: var(--shadow-lg);
}
.right-drawer.open {
    transform: translateX(0);
}
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.45);
    z-index: 350;
    display: none;
}
.drawer-overlay.show {
    display: block;
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
    
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .seed-phrase {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1280px) {
    .console-content {
        padding: 2rem;
    }
}

/* Print styles for seed phrase */
@media print {
    body * {
        visibility: hidden;
    }
    
    .seed-phrase,
    .seed-phrase * {
        visibility: visible;
    }
    
    .seed-phrase {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        grid-template-columns: repeat(4, 1fr);
    }
}

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

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

.fade-in {
    animation: fadeIn 0.3s ease;
}

.slide-up {
    animation: slideUp 0.3s ease;
}

/* Loading spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-border);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Utility classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.5rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.5rem; }

.hidden { display: none !important; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
