/* ═══════════════════════════════════════════════════════════════════════════════
   FFF — Farley's Fitness Fury
   Dark, aggressive, grungy theme. Black/charcoal/dark red.
   ═══════════════════════════════════════════════════════════════════════════════ */

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

:root {
    --black: #0a0a0a;
    --charcoal: #141414;
    --charcoal-light: #1e1e1e;
    --charcoal-lighter: #2a2a2a;
    --dark-red: #8b1a1a;
    --red: #c62828;
    --red-bright: #e53935;
    --red-glow: rgba(198, 40, 40, 0.3);
    --text-primary: #e0e0e0;
    --text-secondary: #999;
    --text-muted: #666;
    --green: #2e7d32;
    --green-bright: #43a047;
    --yellow: #f9a825;
    --yellow-dark: #f57f17;
    --border: #333;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;
    --radius: 4px;
    --radius-lg: 8px;
    --shadow: 0 2px 8px rgba(0,0,0,0.5);
    --shadow-lg: 0 4px 20px rgba(0,0,0,0.7);
    --transition: 0.2s ease;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--black);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

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

a:hover {
    color: #ff5252;
}

/* ─── Navbar ───────────────────────────────────────────────────────────────── */
.navbar {
    background: var(--charcoal);
    border-bottom: 2px solid var(--dark-red);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 2px;
}

.nav-logo:hover { color: var(--text-primary); }

.logo-accent {
    color: var(--red);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.nav-links a {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
    background: var(--charcoal-lighter);
}

.nav-links a.active {
    border-bottom: 2px solid var(--red);
}

.nav-logout {
    color: var(--text-muted) !important;
    margin-left: 0.5rem;
}

.nav-logout:hover {
    color: var(--red-bright) !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition);
}

/* ─── Main Content ─────────────────────────────────────────────────────────── */
.main-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
}

/* ─── Flash Messages ───────────────────────────────────────────────────────── */
.flash-container {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.flash {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    border-left: 4px solid;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: flashIn 0.3s ease;
}

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

.flash-error {
    background: rgba(198, 40, 40, 0.15);
    border-color: var(--red);
    color: #ef9a9a;
}

.flash-success {
    background: rgba(46, 125, 50, 0.15);
    border-color: var(--green);
    color: #a5d6a7;
}

.flash-warning {
    background: rgba(249, 168, 37, 0.15);
    border-color: var(--yellow);
    color: #fff176;
}

.flash-info {
    background: rgba(100, 100, 100, 0.15);
    border-color: var(--text-muted);
    color: var(--text-secondary);
}

.flash-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.6;
    padding: 0 0.25rem;
}

.flash-close:hover { opacity: 1; }

/* ─── Typography ───────────────────────────────────────────────────────────── */
.page-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.page-title .accent {
    color: var(--red);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

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

.card-danger {
    border-color: var(--dark-red);
    box-shadow: 0 0 15px var(--red-glow);
}

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

.form-label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    background: var(--charcoal-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 2px var(--red-glow);
}

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

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23999' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
}

.form-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* ─── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--red);
    color: #fff;
}

.btn-primary:hover {
    background: var(--red-bright);
    color: #fff;
    box-shadow: 0 0 15px var(--red-glow);
}

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

.btn-secondary:hover {
    background: var(--border);
    color: #fff;
}

.btn-danger {
    background: var(--dark-red);
    color: #fff;
}

.btn-danger:hover {
    background: var(--red);
    box-shadow: 0 0 15px var(--red-glow);
}

.btn-success {
    background: var(--green);
    color: #fff;
}

.btn-success:hover {
    background: var(--green-bright);
}

.btn-sm {
    font-size: 0.8rem;
    padding: 0.4rem 0.75rem;
}

.btn-full {
    width: 100%;
}

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

/* ─── Stat Cards ───────────────────────────────────────────────────────────── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--charcoal);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    text-align: center;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-value.green { color: var(--green-bright); }
.stat-value.red { color: var(--red-bright); }
.stat-value.yellow { color: var(--yellow); }

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

/* ─── Status Badge ─────────────────────────────────────────────────────────── */
.status-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-done {
    background: rgba(46, 125, 50, 0.2);
    color: var(--green-bright);
    border: 1px solid var(--green);
}

.status-missed {
    background: rgba(198, 40, 40, 0.2);
    color: var(--red-bright);
    border: 1px solid var(--red);
}

.status-pending {
    background: rgba(249, 168, 37, 0.2);
    color: var(--yellow);
    border: 1px solid var(--yellow-dark);
}

/* ─── Roast Feed ───────────────────────────────────────────────────────────── */
.roast-feed {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.roast-item {
    background: var(--charcoal-light);
    border-left: 3px solid var(--red);
    padding: 1rem 1.25rem;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.roast-text {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.roast-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.roast-source {
    color: var(--red);
    font-weight: 600;
    text-transform: uppercase;
}

/* ─── Friends List ─────────────────────────────────────────────────────────── */
.friend-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.friend-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: var(--charcoal-light);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.friend-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.friend-name {
    font-weight: 600;
    color: var(--text-primary);
}

.friend-stats {
    font-size: 0.8rem;
    color: var(--text-muted);
}

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

/* ─── Leaderboard ──────────────────────────────────────────────────────────── */
.board-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.board-table {
    width: 100%;
    border-collapse: collapse;
}

.board-table th {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    padding: 0.5rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.board-table td {
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid rgba(51, 51, 51, 0.5);
    font-size: 0.9rem;
}

.board-table tr:hover td {
    background: var(--charcoal-light);
}

.rank-num {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-muted);
    width: 2rem;
}

.rank-1 { color: var(--yellow) !important; }
.rank-2 { color: #b0bec5 !important; }
.rank-3 { color: #a1887f !important; }

.board-value {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
}

/* ─── Landing Page ─────────────────────────────────────────────────────────── */
.landing {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1.5rem;
    background:
        radial-gradient(ellipse at center, rgba(139, 26, 26, 0.15) 0%, transparent 70%),
        var(--black);
}

.hero-logo {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 700;
    letter-spacing: 6px;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.hero-logo .accent { color: var(--red); }

.hero-tagline {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.hero-quote {
    font-size: 1.15rem;
    font-style: italic;
    color: var(--red-bright);
    max-width: 600px;
    margin: 1.5rem auto 2.5rem;
    padding: 1rem 1.5rem;
    border-left: 3px solid var(--red);
    background: rgba(198, 40, 40, 0.08);
    border-radius: 0 var(--radius) var(--radius) 0;
    text-align: left;
}

.hero-quote .sig {
    display: block;
    margin-top: 0.5rem;
    font-style: normal;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hero-actions .btn {
    padding: 0.85rem 2rem;
    font-size: 1rem;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    max-width: 800px;
    width: 100%;
    margin-top: 2rem;
}

.feature {
    text-align: center;
    padding: 1.25rem;
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.feature-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.feature-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ─── Auth Pages ───────────────────────────────────────────────────────────── */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background:
        radial-gradient(ellipse at top, rgba(139, 26, 26, 0.1) 0%, transparent 60%),
        var(--black);
}

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

.auth-logo {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-logo a {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 3px;
}

.auth-logo .accent { color: var(--red); }

.auth-footer {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ─── Onboarding ───────────────────────────────────────────────────────────── */
.onboarding-page {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.onboarding-header {
    text-align: center;
    margin-bottom: 2rem;
}

.onboarding-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

.step-indicator {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.step-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
    transition: all var(--transition);
}

.step-dot.active {
    background: var(--red);
    box-shadow: 0 0 8px var(--red-glow);
}

.mode-select {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.mode-option {
    position: relative;
}

.mode-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.mode-option label {
    display: block;
    padding: 1rem;
    background: var(--charcoal-light);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
}

.mode-option input:checked + label {
    border-color: var(--red);
    background: rgba(198, 40, 40, 0.1);
    box-shadow: 0 0 10px var(--red-glow);
}

.mode-option label:hover {
    border-color: var(--text-muted);
}

.mode-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.mode-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ─── Dashboard Specifics ──────────────────────────────────────────────────── */
.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.checkin-cta {
    text-align: center;
    padding: 2rem;
    background:
        linear-gradient(135deg, rgba(198, 40, 40, 0.1), transparent);
    border: 1px dashed var(--red);
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
}

.checkin-cta p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.checkin-done {
    text-align: center;
    padding: 1.5rem;
    background: rgba(46, 125, 50, 0.08);
    border: 1px solid rgba(46, 125, 50, 0.3);
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
}

.checkin-done p {
    color: var(--green-bright);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.telegram-link {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--charcoal-light);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.telegram-link p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.link-code {
    font-family: monospace;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--yellow);
    background: var(--charcoal);
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    display: inline-block;
    letter-spacing: 2px;
    user-select: all;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* ─── Check-in Page ────────────────────────────────────────────────────────── */
.effort-rating {
    display: flex;
    gap: 0.5rem;
}

.effort-option {
    position: relative;
    flex: 1;
}

.effort-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.effort-option label {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem 0.5rem;
    background: var(--charcoal-light);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
}

.effort-option input:checked + label {
    border-color: var(--red);
    background: rgba(198, 40, 40, 0.15);
}

.effort-option label:hover {
    border-color: var(--text-muted);
}

.effort-num {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

.effort-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

/* ─── Empty States ─────────────────────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ─── Pending Requests ─────────────────────────────────────────────────────── */
.pending-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.75rem;
    background: rgba(249, 168, 37, 0.05);
    border: 1px solid rgba(249, 168, 37, 0.2);
    border-radius: var(--radius);
}

.pending-info {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ─── User Grid & Roast ────────────────────────────────────────────────────── */
.user-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.user-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.user-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.user-name {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.user-card-stats {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.mode-badge {
    font-size: 1.2rem;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

.page-subtitle {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.target-info {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.roast-preview-text {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    background: rgba(183, 28, 28, 0.08);
    border: 1px solid rgba(183, 28, 28, 0.3);
    border-radius: var(--radius);
    color: var(--text-primary);
}

.roast-form .form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

/* ─── Settings ─────────────────────────────────────────────────────────────── */
.settings-form .form-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.settings-form .form-section:last-of-type {
    border-bottom: none;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-hint {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.telegram-status {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.telegram-status.connected {
    color: var(--green-bright);
}

.telegram-status code {
    background: rgba(255, 255, 255, 0.08);
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    font-size: 0.85rem;
}

/* ─── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .navbar {
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    .nav-container {
        position: relative;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--charcoal);
        border-bottom: 2px solid var(--dark-red);
        flex-direction: column;
        padding: 0.5rem;
        z-index: 999;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        padding: 0.75rem 1rem;
        width: 100%;
        display: block;
    }

    .nav-logout {
        margin-left: 0 !important;
    }

    .hero-logo {
        font-size: 3.5rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .board-grid {
        grid-template-columns: 1fr;
    }

    .two-col {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .page-title {
        font-size: 1.5rem;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .friend-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .friend-actions {
        width: 100%;
    }
}

    .user-grid {
        grid-template-columns: 1fr;
    }

    .roast-preview-text {
        font-size: 0.95rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
        text-align: center;
    }

    .target-info {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero-logo {
        font-size: 2.8rem;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .effort-rating {
        flex-wrap: wrap;
    }

    .effort-option {
        flex: 0 0 calc(33.33% - 0.33rem);
    }

    .mode-select {
        grid-template-columns: 1fr;
    }

    .stat-value {
        font-size: 2rem;
    }
}
