/* ============================================================
   InstantArt — Unified Theme & Layout System
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;600;700&display=swap');

/* ---------- Theme Variables (dark = default) ---------- */
:root {
    --accent: #6c5ce7;
    --accent-hover: #5a4bd1;
    --accent-subtle: rgba(108,92,231,.12);
    --accent-gradient: linear-gradient(135deg, #6c5ce7, #a29bfe);

    --bg-primary: #0f0f11;
    --bg-secondary: #18181b;
    --bg-card: #1e1e23;
    --bg-elevated: #26262c;
    --bg-input: #1a1a1f;
    --bg-hover: rgba(255,255,255,.04);
    --bg-hero-gradient: linear-gradient(160deg, #0f0f11 0%, #1a1033 50%, #0f0f11 100%);

    --text-primary: #f0f0f2;
    --text-secondary: #9d9da5;
    --text-muted: #5c5c66;
    --text-inverse: #0f0f11;

    --border: rgba(255,255,255,.07);
    --border-strong: rgba(255,255,255,.14);

    --shadow-sm: 0 1px 2px rgba(0,0,0,.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,.4);
    --shadow-lg: 0 8px 30px rgba(0,0,0,.5);

    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;

    --sidebar-width: 240px;
    --sidebar-collapsed: 64px;
    --sidebar-bg: #131316;
    --sidebar-border: rgba(255,255,255,.06);

    --bottombar-height: 60px;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --transition-fast: .15s ease;
    --transition-base: .25s ease;
    --transition-slow: .4s ease;
}

/* ---------- Light theme ---------- */
[data-theme="light"] {
    --bg-primary: #f5f5f7;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-elevated: #f0f0f2;
    --bg-input: #f5f5f7;
    --bg-hover: rgba(0,0,0,.03);
    --bg-hero-gradient: linear-gradient(160deg, #f5f5f7 0%, #e8e0f0 50%, #f5f5f7 100%);

    --text-primary: #1a1a1e;
    --text-secondary: #5c5c66;
    --text-muted: #9d9da5;
    --text-inverse: #f0f0f2;

    --border: rgba(0,0,0,.08);
    --border-strong: rgba(0,0,0,.15);

    --shadow-sm: 0 1px 2px rgba(0,0,0,.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,.12);

    --sidebar-bg: #ffffff;
    --sidebar-border: rgba(0,0,0,.08);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: background var(--transition-base), color var(--transition-base);
    min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; display: block; }

/* ---------- App Layout ---------- */
.app-layout { display: flex; min-height: 100vh; }

.main-content {
    flex: 1;
    margin-left: var(--sidebar-collapsed);
    padding: 32px;
    transition: margin-left var(--transition-base);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.sidebar-expanded .main-content { margin-left: var(--sidebar-width); }
.main-content > .page-content { flex: 1; }

/* ---------- Sidebar ---------- */
.sidebar {
    position: fixed;
    top: 0; left: 0;
    width: var(--sidebar-collapsed);
    height: 100vh;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--sidebar-border);
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: width var(--transition-base);
    overflow: hidden;
}

.sidebar-expanded .sidebar { width: var(--sidebar-width); }

.sidebar-logo {
    height: 64px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    border-bottom: 1px solid var(--sidebar-border);
    flex-shrink: 0;
    overflow: hidden;
    white-space: nowrap;
}

.sidebar-logo .logo-icon {
    width: 32px; height: 32px;
    border-radius: var(--radius-sm);
    background: var(--accent-gradient);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    font-weight: 700; font-size: 16px; color: #fff;
}

.sidebar-logo .logo-text {
    margin-left: 12px;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.sidebar-expanded .sidebar-logo .logo-text { opacity: 1; }

.sidebar-nav {
    flex: 1;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast);
    white-space: nowrap;
    text-decoration: none;
    position: relative;
}

.sidebar-nav-item:hover { background: var(--bg-hover); color: var(--text-primary); }
.sidebar-nav-item.active { background: var(--accent-subtle); color: var(--accent); }
.sidebar-nav-item svg { width: 20px; height: 20px; flex-shrink: 0; }

.sidebar-nav-item .nav-label {
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.sidebar-expanded .sidebar-nav-item .nav-label { opacity: 1; }

.sidebar-nav-item[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    left: calc(100% + 8px);
    top: 50%; transform: translateY(-50%);
    background: var(--bg-elevated);
    color: var(--text-primary);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: var(--shadow-md);
    z-index: 200;
}

.sidebar-expanded .sidebar-nav-item[data-tooltip]:hover::after { display: none; }

.sidebar-section-label {
    padding: 16px 12px 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted);
    opacity: 0;
    transition: opacity var(--transition-fast);
    white-space: nowrap;
}

.sidebar-expanded .sidebar-section-label { opacity: 1; }
.sidebar-spacer { flex: 1; }

.sidebar-footer {
    padding: 8px;
    border-top: 1px solid var(--sidebar-border);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px;
    border-radius: var(--radius-md);
    cursor: pointer;
    color: var(--text-muted);
    transition: background var(--transition-fast), color var(--transition-fast);
    border: none;
    background: transparent;
    font-size: 14px;
}

.sidebar-toggle:hover { background: var(--bg-hover); color: var(--text-primary); }
.sidebar-toggle svg { width: 20px; height: 20px; transition: transform var(--transition-base); }
.sidebar-expanded .sidebar-toggle svg { transform: rotate(180deg); }

/* ---------- Bottom Tab Bar ---------- */
.bottom-bar {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: var(--bottombar-height);
    background: var(--sidebar-bg);
    border-top: 1px solid var(--sidebar-border);
    z-index: 100;
    backdrop-filter: blur(12px);
}

.bottom-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-around;
    height: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.bottom-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 12px;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 500;
    text-decoration: none;
    transition: color var(--transition-fast);
    -webkit-tap-highlight-color: transparent;
}

.bottom-bar-item svg { width: 22px; height: 22px; }
.bottom-bar-item.active { color: var(--accent); }
.bottom-bar-item:hover { color: var(--text-primary); }

/* ---------- Cards ---------- */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: background var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    line-height: 1.4;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 2px 8px rgba(108,92,231,.3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(108,92,231,.4);
    color: #fff;
}

.btn-secondary {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-strong);
}

.btn-secondary:hover { background: var(--bg-hover); border-color: var(--accent); }

.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { color: var(--text-primary); background: var(--bg-hover); }

.btn-lg { padding: 14px 32px; font-size: 16px; border-radius: var(--radius-lg); }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-danger { background: var(--error); color: #fff; }
.btn-danger:hover { opacity: .9; }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 20px; }

.form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: .02em;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 14px;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-subtle);
}

.form-textarea { resize: vertical; min-height: 120px; }

/* ---------- Alerts ---------- */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
}

.alert-error {
    background: rgba(239,68,68,.1);
    color: var(--error);
    border: 1px solid rgba(239,68,68,.2);
}

.alert-success {
    background: rgba(16,185,129,.1);
    color: var(--success);
    border: 1px solid rgba(16,185,129,.2);
}

.flash-message {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
    background: var(--accent-subtle);
    color: var(--accent);
    border: 1px solid rgba(108,92,231,.2);
}

/* ---------- Chips ---------- */
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
    padding: 6px 16px;
    border-radius: var(--radius-xl);
    font-size: 13px;
    font-weight: 500;
    background: var(--bg-elevated);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all var(--transition-fast);
    user-select: none;
}

.chip:hover { border-color: var(--accent); color: var(--text-primary); }

.chip.selected {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 2px 8px rgba(108,92,231,.3);
}

/* ---------- Progress Bar ---------- */
.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-elevated);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 4px;
    transition: width var(--transition-base);
}

/* ---------- Grid ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Gallery Cards ---------- */
.gallery-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--bg-elevated);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    cursor: pointer;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.gallery-card:hover img { transform: scale(1.05); }

.gallery-card-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 16px;
    background: linear-gradient(transparent, rgba(0,0,0,.7));
    color: #fff;
    transform: translateY(100%);
    transition: transform var(--transition-base);
}

.gallery-card:hover .gallery-card-overlay { transform: translateY(0); }

/* ---------- Hero ---------- */
.hero {
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--bg-hero-gradient);
    padding: 60px 24px;
    position: relative;
    overflow: hidden;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .3;
    pointer-events: none;
    will-change: transform;
}

.hero-orb-1 {
    width: 350px; height: 350px;
    background: rgba(108,92,231,.4);
    top: 10%; left: 15%;
    animation: float 8s ease-in-out infinite;
}

.hero-orb-2 {
    width: 250px; height: 250px;
    background: rgba(162,155,254,.35);
    bottom: 15%; right: 10%;
    animation: float 10s ease-in-out 2s infinite;
}

.hero-orb-3 {
    width: 200px; height: 200px;
    background: rgba(108,92,231,.25);
    top: 50%; left: 60%;
    animation: float 12s ease-in-out 4s infinite;
}

[data-theme="light"] .hero-orb { opacity: .2; }

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.hero-accent {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.section-heading {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.section-sub {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 24px;
}

/* ---------- Theme toggle ---------- */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 8px;
    border-radius: var(--radius-md);
    transition: background var(--transition-fast), color var(--transition-fast);
}

.theme-toggle:hover { background: var(--bg-hover); color: var(--text-primary); }
.theme-toggle svg { width: 20px; height: 20px; }

/* Dark mode (default): show sun icon (click to go light) */
.theme-toggle .icon-sun { display: block; }
.theme-toggle .icon-moon { display: none; }
/* Light mode: show moon icon (click to go dark) */
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }

/* ---------- Loading overlay ---------- */
.overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.65);
    backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.overlay.active {
    display: flex;
}

.loading-content {
    text-align: center;
    animation: scaleIn .3s ease both;
}

.loading-spinner {
    width: 52px; height: 52px;
    border: 3px solid rgba(255,255,255,.12);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin .8s linear infinite;
    margin: 0 auto 20px;
}

.loading-text {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}

.loading-subtext {
    color: rgba(255,255,255,.5);
    font-size: 13px;
}

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

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

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

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-16px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(108,92,231,.4); }
    50% { box-shadow: 0 0 20px 4px rgba(108,92,231,.15); }
}

.animate-in { animation: fadeInUp .5s ease both; }
.animate-in-delay-1 { animation: fadeInUp .5s ease .1s both; }
.animate-in-delay-2 { animation: fadeInUp .5s ease .2s both; }
.animate-in-delay-3 { animation: fadeInUp .5s ease .3s both; }
.animate-in-delay-4 { animation: fadeInUp .5s ease .4s both; }

/* Page content entrance */
.page-content { animation: fadeIn .4s ease both; }

/* Hero animations */
.hero h1 { animation: fadeInUp .7s ease .1s both; }
.hero p { animation: fadeInUp .7s ease .25s both; }
.hero > div { animation: fadeInUp .7s ease .4s both; }

/* Card entrance when in viewport */
.card { animation: fadeInUp .5s ease both; }

/* Chip interaction */
.chip {
    transition: all .2s cubic-bezier(.4,0,.2,1);
}

.chip:active { transform: scale(.95); }

.chip.selected {
    animation: chipSelect .3s ease;
}

@keyframes chipSelect {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

/* Button press effect */
.btn { transition: all .2s cubic-bezier(.4,0,.2,1); }
.btn:active { transform: scale(.97); }
.btn-primary { animation: pulse-glow 3s ease infinite; }
.btn-primary:hover { animation: none; }

/* Gallery card entrance */
.gallery-card {
    animation: scaleIn .5s ease both;
}

.grid .gallery-card:nth-child(1) { animation-delay: 0s; }
.grid .gallery-card:nth-child(2) { animation-delay: .05s; }
.grid .gallery-card:nth-child(3) { animation-delay: .1s; }
.grid .gallery-card:nth-child(4) { animation-delay: .15s; }
.grid .gallery-card:nth-child(5) { animation-delay: .2s; }
.grid .gallery-card:nth-child(6) { animation-delay: .25s; }
.grid .gallery-card:nth-child(7) { animation-delay: .3s; }
.grid .gallery-card:nth-child(8) { animation-delay: .35s; }

/* Sidebar nav items */
.sidebar-nav-item {
    transition: background .2s ease, color .2s ease, transform .15s ease;
}

.sidebar-nav-item:active { transform: scale(.97); }

.sidebar-nav-item.active {
    position: relative;
}

.sidebar-nav-item.active::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 3px; height: 20px;
    background: var(--accent);
    border-radius: 0 3px 3px 0;
}

/* Bottom bar active indicator */
.bottom-bar-item {
    transition: color .2s ease, transform .15s ease;
    position: relative;
}

.bottom-bar-item:active { transform: scale(.9); }

.bottom-bar-item.active::after {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 20px; height: 3px;
    background: var(--accent);
    border-radius: 0 0 3px 3px;
}

/* Flash message entrance */
.flash-message { animation: fadeInDown .4s ease both; }

/* Alert entrance */
.alert { animation: fadeInDown .4s ease both; }

/* Auth card entrance */
.auth-card { animation: scaleIn .5s ease both; }

/* Progress bar fill */
.progress-fill {
    transition: width .6s cubic-bezier(.4,0,.2,1);
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
    background-size: 200% 100%;
    animation: shimmer 2s ease infinite;
}

/* Form focus glow */
.form-input:focus,
.form-textarea:focus {
    box-shadow: 0 0 0 3px var(--accent-subtle), 0 0 16px rgba(108,92,231,.1);
}

/* Section heading underline */
.section-heading {
    position: relative;
    display: inline-block;
}

/* Logo icon subtle animation */
.sidebar-logo .logo-icon {
    transition: transform .3s ease;
}

.sidebar-logo:hover .logo-icon {
    transform: rotate(-8deg) scale(1.05);
}

/* Smooth scrollbar for sidebar */
.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-track { background: transparent; }
.sidebar-nav::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.sidebar-nav::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }

/* ---------- Footer ---------- */
.site-footer {
    padding: 24px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.site-footer p { margin: 4px 0; }

/* ---------- Auth pages (login/register/forgot) ---------- */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-hero-gradient);
    padding: 40px 16px;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px 32px;
    box-shadow: var(--shadow-lg);
}

.auth-card h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 28px;
}

/* ---------- Bottom bar button reset ---------- */
.bottom-bar-item.theme-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
    flex-direction: column;
    gap: 2px;
    padding: 6px 12px;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .sidebar { display: none !important; }

    .main-content {
        margin-left: 0 !important;
        padding: 20px 16px calc(var(--bottombar-height) + 16px) 16px;
    }

    .bottom-bar { display: block; }
    .hero { min-height: 75vh; padding: 40px 16px; }
    .grid-3 { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-2 { grid-template-columns: 1fr; }
    .auth-card { padding: 28px 20px; }

    .gallery-card { animation-delay: 0s !important; }
}

@media (min-width: 769px) {
    .bottom-bar { display: none !important; }
}

@media (max-width: 480px) {
    .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
