/* SorularBenden - Modern Responsive UI */
:root {
    --bg: #0a0a0f;
    --bg-card: #12121a;
    --bg-elevated: #1a1a24;
    --bg-hover: #22222e;
    --text: #f0f0f5;
    --text-muted: #8b8b9a;
    --accent: #6366f1;
    --accent-light: #818cf8;
    --accent-glow: rgba(99, 102, 241, 0.4);
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --font: 'Outfit', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);
    --transition: 0.2s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover {
    color: var(--accent-light);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.25rem 1rem;
}
@media (min-width: 768px) {
    .container { padding: 2rem 1.5rem; }
}

/* Navbar */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    background: rgba(18, 18, 26, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}
@media (min-width: 768px) {
    .navbar { padding: 1rem 1.5rem; }
}

.navbar .logo {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text);
    letter-spacing: -0.02em;
}
@media (min-width: 768px) {
    .navbar .logo { font-size: 1.3rem; }
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xs);
    cursor: pointer;
    transition: var(--transition);
}
.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    border-radius: 1px;
    transition: var(--transition);
}
.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}
@media (min-width: 768px) {
    .nav-toggle { display: none; }
}

.nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    flex-direction: column;
    padding: 1rem;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: var(--shadow-lg);
}
.nav-links.open {
    display: flex;
}
@media (min-width: 768px) {
    .nav-links {
        display: flex;
        position: static;
        flex-direction: row;
        background: none;
        border: none;
        box-shadow: none;
        padding: 0;
        gap: 1.5rem;
    }
}

.nav-links a {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-xs);
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: var(--transition);
    min-height: 44px;
    display: flex;
    align-items: center;
}
.nav-links a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.user-badge {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}
.user-badge:hover { color: var(--accent); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.25rem;
    min-height: 44px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}
@media (min-width: 768px) {
    .btn { min-height: 40px; padding: 0.6rem 1.25rem; }
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #5b5ee8);
    color: white;
    box-shadow: 0 4px 14px var(--accent-glow);
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--accent-glow);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text);
}
.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}
.btn-danger:hover {
    background: var(--danger);
    color: white;
}

.btn-warning { background: rgba(245, 158, 11, 0.2); color: var(--warning); }
.btn-secondary { background: rgba(255, 255, 255, 0.08); color: var(--text); }
.btn-success { background: rgba(34, 197, 94, 0.2); color: var(--success); }

.btn-sm {
    padding: 0.45rem 0.9rem;
    font-size: 0.875rem;
    min-height: 36px;
}

/* Auth */
.auth-card {
    max-width: 400px;
    margin: 2rem auto;
    padding: 2rem 1.5rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: var(--shadow);
}
@media (min-width: 480px) {
    .auth-card { padding: 2.5rem; margin: 3rem auto; }
}

.auth-card h1 {
    text-align: center;
    margin-bottom: 0.5rem;
    font-size: 1.6rem;
}
.auth-card .subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}
.auth-form input {
    display: block;
    width: 100%;
    padding: 0.875rem 1rem;
    margin-bottom: 1rem;
    min-height: 48px;
    background: var(--bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}
.auth-form input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Alerts */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
}
.alert-success {
    background: rgba(34, 197, 94, 0.12);
    color: var(--success);
    border: 1px solid rgba(34, 197, 94, 0.2);
}
.alert-error {
    background: rgba(239, 68, 68, 0.12);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Cards */
.card {
    background: var(--bg-card);
    padding: 1.25rem;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}
@media (min-width: 768px) {
    .card { padding: 1.5rem; }
}

.card h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}
.card form input[type="text"],
.card form textarea {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    min-height: 44px;
    background: var(--bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
}
.card form textarea {
    resize: vertical;
    min-height: 80px;
}
.card form label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}
.card form input[type="color"] {
    width: 48px;
    height: 36px;
    border: none;
    cursor: pointer;
    background: transparent;
    padding: 2px;
}
.hidden { display: none !important; }

/* Page header */
.page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.page-header h1 {
    flex: 1;
    font-size: 1.4rem;
    font-weight: 600;
}
@media (min-width: 768px) {
    .page-header h1 { font-size: 1.6rem; }
}

.back-link {
    width: 100%;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* Dashboard */
.dashboard h1 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}
@media (min-width: 768px) {
    .dashboard h1 { font-size: 1.75rem; }
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 2rem;
}
@media (min-width: 480px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

.stat-card {
    background: var(--bg-card);
    padding: 1.25rem;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}
.stat-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
}
.stat-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent);
    font-family: var(--font-mono);
}
.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.section h2 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

/* Deck grid */
.deck-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 480px) {
    .deck-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
    .deck-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 1.25rem;
    }
}

.deck-card {
    background: var(--bg-card);
    padding: 1.25rem;
    border-radius: var(--radius);
    border-left: 4px solid var(--deck-color, var(--accent));
    text-decoration: none;
    color: inherit;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    display: block;
}
.deck-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-left-color: var(--accent-light);
}

.deck-icon {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}
.deck-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}
.deck-card h3 a {
    color: inherit;
}
.deck-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}
.deck-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.deck-actions .btn { flex-shrink: 0; }

.empty-state {
    color: var(--text-muted);
    padding: 2rem 1rem;
    text-align: center;
}

/* Deck detail */
.deck-detail .deck-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
}
.deck-desc {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}
.deck-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}
.cards-list h3 { margin-bottom: 1rem; }

.card-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg);
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.04);
}
.card-num {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: white;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 600;
}
.card-content { flex: 1; min-width: 0; }
.card-back {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Study page */
.study-page {
    max-width: 560px;
    margin: 0 auto;
    padding: 1.5rem 0;
}
@media (min-width: 768px) {
    .study-page { padding: 2rem 0; }
}

.study-progress {
    text-align: center;
    margin-bottom: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--text-muted);
}

.flashcard-container {
    perspective: 1000px;
    margin-bottom: 1.5rem;
}
.flashcard {
    position: relative;
    min-height: 180px;
}
@media (min-width: 480px) {
    .flashcard { min-height: 220px; }
}

.flashcard-inner {
    position: relative;
    width: 100%;
    min-height: inherit;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}
.flashcard.flipped .flashcard-inner {
    transform: rotateY(180deg);
}

.flashcard-front,
.flashcard-back {
    position: absolute;
    width: 100%;
    min-height: inherit;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 2px solid rgba(99, 102, 241, 0.25);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
@media (min-width: 480px) {
    .flashcard-front, .flashcard-back { padding: 2rem; }
}

.flashcard-back { transform: rotateY(180deg); }

.flashcard-front p,
.flashcard-back p {
    font-size: 1.1rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}
@media (min-width: 480px) {
    .flashcard-front p, .flashcard-back p { font-size: 1.25rem; }
}

.study-buttons {
    text-align: center;
    margin-bottom: 1.5rem;
}
.study-buttons p {
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.study-buttons .btn {
    margin: 0.25rem;
    min-width: 80px;
}
@media (max-width: 480px) {
    .study-buttons .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
}

#show-answer {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
}
.study-exit {
    display: block;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 0.5rem;
}
.study-done {
    text-align: center;
    padding: 3rem 1.5rem;
}
.study-done h2 {
    margin-bottom: 1rem;
    font-size: 1.75rem;
}
.study-done p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Dashboard recommendations */
.dashboard-recommendations {
    background: var(--bg-card);
    padding: 1.25rem;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 2rem;
}
.dashboard-recommendations h3 { margin-bottom: 1rem; }
.rec-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.rec-item:last-of-type { border-bottom: none; }
.rec-item p { margin: 0; font-size: 0.95rem; flex: 1; min-width: 0; }
.rec-more {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.9rem;
}

/* Analytics */
.analytics-page { max-width: 900px; }
.analytics-desc {
    color: var(--text-muted);
    margin-bottom: 2rem;
}
.recommendations-section { margin-bottom: 2rem; }
.recommendations-list { display: flex; flex-direction: column; gap: 0.75rem; }
.recommendation-card {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--text-muted);
    background: var(--bg-card);
}
.recommendation-card.priority-high { border-left-color: var(--danger); }
.recommendation-card.priority-medium { border-left-color: var(--warning); }
.recommendation-card.priority-low { border-left-color: var(--success); }
.rec-message { margin: 0 0 0.5rem 0; }

.analytics-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}
@media (min-width: 700px) {
    .analytics-grid { grid-template-columns: 1fr 1fr; }
}

.stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}
.stat-mini {
    background: var(--bg);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
}
.stat-mini .stat-value { font-size: 1.25rem; font-weight: 700; color: var(--accent); }
.stat-mini .stat-label { font-size: 0.8rem; color: var(--text-muted); }

.analytics-table {
    width: 100%;
    border-collapse: collapse;
    overflow-x: auto;
    display: block;
}
@media (min-width: 600px) {
    .analytics-table { display: table; }
}

.analytics-table th,
.analytics-table td {
    padding: 0.6rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.analytics-table th {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}
.deck-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.5rem;
    vertical-align: middle;
}
.text-success { color: var(--success) !important; }
.text-warning { color: var(--warning) !important; }
.text-danger { color: var(--danger) !important; }
.text-muted { color: var(--text-muted); font-size: 0.9rem; }

.trend-chart {
    display: flex;
    align-items: flex-end;
    gap: 0.35rem;
    padding: 1rem 0;
    overflow-x: auto;
}
.trend-bar-wrap {
    flex: 1;
    min-width: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.trend-bar {
    width: 100%;
    max-width: 40px;
    min-height: 4px;
    background: var(--accent);
    border-radius: 4px 4px 0 0;
    transition: height 0.3s;
}
.trend-label { font-size: 0.7rem; color: var(--text-muted); margin-top: 0.5rem; }
.trend-value { font-size: 0.65rem; color: var(--text-muted); margin-top: 0.25rem; }

.deck-grid.compact { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.deck-card-small h3 { font-size: 1rem; }

/* Users / Tabs */
.users-tabs,
.deck-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
}
.users-tabs .tab,
.deck-tabs .tab {
    padding: 0.6rem 1rem;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: var(--transition);
}
.users-tabs .tab:hover,
.deck-tabs .tab:hover { color: var(--text); }
.users-tabs .tab.active,
.deck-tabs .tab.active {
    background: var(--bg-card);
    color: var(--accent);
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.search-form .search-input-wrap { width: 100%; }
.search-form input[type="text"],
#user-search {
    width: 100%;
    padding: 0.75rem 1rem;
    min-height: 48px;
    background: var(--bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 1rem;
}
.search-form input:focus,
#user-search:focus {
    outline: none;
    border-color: var(--accent);
}

.user-items { list-style: none; }
.user-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
}
.user-item:last-child { border-bottom: none; }

.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    background: rgba(99, 102, 241, 0.25);
    color: var(--accent-light);
    border-radius: var(--radius-xs);
    margin-left: 0.5rem;
}
.badge-public { background: rgba(34, 197, 94, 0.25); color: var(--success); }
.badge-followers { background: rgba(245, 158, 11, 0.25); color: var(--warning); }

/* Deck settings */
.deck-settings,
.deck-share,
.deck-visibility { margin-bottom: 1.5rem; }
.deck-settings .settings-row,
.share-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}
/* Modern select styling */
select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding: 0.7rem 2.5rem 0.7rem 1rem;
    min-height: 46px;
    background: var(--bg) 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='%238b8b9a' 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") no-repeat right 0.85rem center;
    background-size: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--text);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}
select:hover {
    border-color: rgba(255, 255, 255, 0.2);
}
select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}
select option {
    background: var(--bg-card);
    color: var(--text);
    padding: 0.5rem;
}

.deck-settings select,
.share-form select {
    flex: 1;
    min-width: 180px;
}

.follow-btn.following { background: rgba(34, 197, 94, 0.2); color: var(--success); }
.muted { color: var(--text-muted); }

.shared-list { list-style: none; margin-top: 0.5rem; }
.shared-list li {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

/* Profile */
.profile-header {
    margin-bottom: 1.5rem;
    text-align: center;
}
.profile-header h1 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}
.profile-header form {
    display: inline-block;
    margin-top: 0.25rem;
}
.profile-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
@media (min-width: 480px) {
    .profile-stats {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}

.profile-stats .stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.profile-stats .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}
.profile-stats .stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}
.profile-top-deck { margin-top: 0.75rem; font-size: 0.9rem; color: var(--text-muted); text-align: center; }
.profile-decks h2 { margin-bottom: 1rem; }

.user-name {
    color: var(--text);
    text-decoration: none;
    transition: color var(--transition);
}
.user-name:hover { color: var(--accent); }

/* Safe area for notched devices */
@supports (padding: max(0px)) {
    .navbar {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }
    .container {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
