/* ══════════════════════════════════════════════════════════════
   Enginefall Clan Hub — Redesigned Stylesheet
   Big Shoulders + #ffce0d + grungy industrial aesthetic
   ══════════════════════════════════════════════════════════════ */

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

:root {
    --yellow: #ffce0d;
    --yellow-dim: rgba(255, 206, 13, 0.18);
    --yellow-glow: rgba(255, 206, 13, 0.5);
    --yellow-hover: #ffe04a;
    --yellow-border: rgba(255, 206, 13, 0.15);
    --yellow-border-hover: rgba(255, 206, 13, 0.4);
    --red: #8B0000;
    --red-light: #A52A2A;
    --bg-dark: #0d0d0d;
    --bg-card: #141414;
    --bg-card-hover: #1a1a1a;
    --bg-input: #141414;
    --text-primary: #ffffff;
    --text-secondary: #999999;
    --text-muted: #555555;
    --accent-cyan: #00D4AA;
    --border-color: #2a2a2a;
    --border-hover: rgba(255, 206, 13, 0.35);
    --success: #4ade80;
    --error: #ef4444;
    --steam-blue: #1b2838;
    --steam-light: #2a475e;
    --font-display: 'Big Shoulders Display', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ── Atmospheric layers ─────────────────────────────────────── */
.bg-atmosphere {
    position: fixed; inset: 0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(255, 206, 13, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 60%, rgba(255, 206, 13, 0.03) 0%, transparent 40%),
        radial-gradient(ellipse at 70% 80%, rgba(139, 0, 0, 0.03) 0%, transparent 50%),
        var(--bg-dark);
    z-index: 0; pointer-events: none;
}

.grain-overlay {
    position: fixed; inset: 0;
    opacity: 0.04; z-index: 1; pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.particles-container {
    position: fixed; inset: 0;
    z-index: 1; pointer-events: none; overflow: hidden;
}

.particle {
    position: absolute; border-radius: 50%;
    pointer-events: none; animation: particle-float linear infinite;
}

@keyframes particle-float {
    0% { transform: translateY(100vh) translateX(0) scale(0); opacity: 0; }
    5% { opacity: 0.8; transform: translateY(95vh) translateX(0) scale(0.5); }
    25% { transform: translateY(70vh) translateX(var(--drift, 20px)) scale(1); opacity: 1; }
    50% { transform: translateY(45vh) translateX(calc(var(--drift, 20px) * -0.5)) scale(0.8); opacity: 0.9; }
    75% { transform: translateY(20vh) translateX(var(--drift, 20px)) scale(0.6); opacity: 0.7; }
    95% { opacity: 0.2; }
    100% { transform: translateY(-5vh) translateX(0) scale(0.3); opacity: 0; }
}

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

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.2;
}

.page-title {
    font-family: var(--font-display);
    font-size: 3.2rem;
    font-weight: 900;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--yellow);
    text-shadow: 0 0 40px rgba(255, 206, 13, 0.3), 0 0 80px rgba(255, 206, 13, 0.1);
    opacity: 0;
}

.page-subtitle {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 1rem;
    color: var(--text-secondary);
    opacity: 0;
}

.section-title {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--yellow);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title::before {
    content: '';
    width: 3px; height: 16px;
    background: var(--yellow);
    border-radius: 1px;
}

/* ── Grungy broken line ─────────────────────────────────────── */
.grungy-line {
    height: 2px;
    background: linear-gradient(90deg,
        transparent 5%, var(--yellow) 5%, var(--yellow) 25%,
        transparent 25%, transparent 28%, var(--yellow) 28%, var(--yellow) 50%,
        transparent 50%, transparent 55%, var(--yellow) 55%, var(--yellow) 70%,
        transparent 70%, transparent 75%, var(--yellow) 75%, var(--yellow) 95%,
        transparent 95%);
    opacity: 0.6;
}

.grungy-line-card {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        var(--yellow) 0%, var(--yellow) 30%,
        transparent 30%, transparent 35%,
        var(--yellow) 35%, var(--yellow) 60%,
        transparent 60%, transparent 70%,
        var(--yellow) 70%, var(--yellow) 90%,
        transparent 90%);
    opacity: 0.25;
}

/* ── Layout ─────────────────────────────────────────────────── */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 2;
}

.page-content { padding: 2rem 0 5rem; }

/* ── Header ─────────────────────────────────────────────────── */
header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 206, 13, 0.18);
    padding: 0 1.5rem;
}

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

.logo {
    display: flex; align-items: center;
    gap: 0.75rem; text-decoration: none;
}

.logo-icon { width: 32px; height: 32px; border-radius: 6px; }

.logo-text {
    font-family: var(--font-display);
    font-size: 1.1rem; font-weight: 900;
    letter-spacing: 3px; text-transform: uppercase;
    color: var(--text-primary);
}

.logo-subtitle {
    font-family: var(--font-display);
    font-size: 0.8rem; font-weight: 800;
    color: var(--yellow);
    letter-spacing: 3px; text-transform: uppercase;
    margin-top: -2px;
}

.header-links {
    display: flex; align-items: center; gap: 0.5rem;
}

.header-link {
    font-family: var(--font-display);
    font-weight: 800; font-size: 18px;
    text-transform: uppercase; letter-spacing: 1.5px;
    color: #777; padding: 6px 14px;
    border-radius: 4px; transition: all 0.3s;
}
.header-link:hover { color: var(--yellow); }

/* Bell */
.nav-bell {
    position: relative; cursor: pointer;
    padding: 6px; color: #666; transition: color 0.3s;
}
.nav-bell:hover { color: var(--yellow); }

.bell-badge {
    position: absolute; top: 0; right: 0;
    width: 16px; height: 16px;
    background: var(--error); border-radius: 50%;
    font-size: 0.55rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    color: white; border: 2px solid var(--bg-dark);
}
.bell-badge.hidden { display: none; }

/* User pill */
.nav-user {
    display: flex; align-items: center;
    gap: 0.5rem; padding: 3px 12px 3px 3px;
    border-radius: 8px; border: 1px solid var(--border-color);
    cursor: pointer; transition: all 0.3s;
}
.nav-user:hover { border-color: rgba(255, 206, 13, 0.25); }
.nav-user img { width: 28px; height: 28px; border-radius: 6px; }
.nav-user span {
    font-family: var(--font-display);
    font-size: 18px; font-weight: 600;
    color: #ccc; letter-spacing: 0.5px;
}

/* Steam button */
.btn-steam {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 6px 16px;
    background: var(--steam-blue); border: 1px solid var(--steam-light);
    border-radius: 4px; color: #c7d5e0;
    font-family: var(--font-display); font-weight: 700;
    font-size: 13px; text-transform: uppercase;
    letter-spacing: 1.5px; cursor: pointer; transition: all 0.3s;
}
.btn-steam:hover {
    background: #2a475e; border-color: #66c0f4;
    color: #66c0f4; box-shadow: 0 0 12px rgba(102, 192, 244, 0.2);
}
.btn-steam img { height: 16px; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 0.5rem; padding: 8px 24px;
    font-family: var(--font-display); font-weight: 700;
    font-size: 14px; text-transform: uppercase;
    letter-spacing: 2px; border: none;
    border-radius: 4px; cursor: pointer;
    transition: all 0.3s; white-space: nowrap;
}

.btn-primary {
    background: var(--yellow); color: #0d0d0d;
    box-shadow: 0 2px 12px rgba(255, 206, 13, 0.3);
}
.btn-primary:hover {
    background: var(--yellow-hover);
    box-shadow: 0 4px 24px rgba(255, 206, 13, 0.45);
    transform: translateY(-1px); color: #0d0d0d;
}

.btn-secondary {
    background: transparent; color: #999;
    border: 1px solid var(--border-color);
}
.btn-secondary:hover {
    border-color: var(--yellow); color: var(--yellow);
}

.btn-danger {
    background: transparent; color: var(--red-light);
    border: 1px solid var(--red);
}
.btn-danger:hover { background: rgba(139, 0, 0, 0.15); }

.btn-success {
    background: var(--success); color: #0d0d0d;
    border: none;
}
.btn-success:hover { box-shadow: 0 4px 12px rgba(74, 222, 128, 0.3); transform: translateY(-1px); }

.btn-sm { padding: 6px 16px; font-size: 12px; letter-spacing: 1.5px; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; }

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

.form-label {
    display: block;
    font-family: var(--font-display); font-weight: 700;
    font-size: 12px; text-transform: uppercase;
    letter-spacing: 2px; color: #888; margin-bottom: 6px;
}

.form-input, .form-select, .form-textarea {
    width: 100%; padding: 8px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 4px; color: var(--text-primary);
    font-family: var(--font-body); font-size: 14px;
    transition: all 0.3s;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none; border-color: var(--yellow);
    box-shadow: 0 0 0 2px rgba(255, 206, 13, 0.1);
}

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

.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 12px center;
    padding-right: 36px;
    font-family: var(--font-display);
    letter-spacing: 1px; text-transform: uppercase;
}

.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.form-error { font-size: 12px; color: var(--error); margin-top: 4px; }

/* ── File Upload ────────────────────────────────────────────── */
.file-upload {
    border: 2px dashed var(--border-color);
    border-radius: 8px; padding: 2rem;
    text-align: center; cursor: pointer;
    transition: all 0.3s; background: rgba(255, 255, 255, 0.01);
}
.file-upload:hover { border-color: var(--yellow); background: rgba(255, 206, 13, 0.02); }
.file-upload.has-file { border-color: var(--success); background: rgba(74, 222, 128, 0.03); }
.file-upload-icon { font-size: 2rem; margin-bottom: 0.5rem; color: var(--text-muted); }
.file-upload-text { font-size: 13px; color: var(--text-secondary); }
.file-upload-preview { margin: 12px auto 0; max-height: 120px; border-radius: 6px; }

/* ── Clan Cards ─────────────────────────────────────────────── */
.clan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.clan-card {
    background: var(--bg-card);
    border: 1px solid var(--yellow-border);
    border-radius: 12px; overflow: hidden;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    opacity: 0; transform: translateY(30px);
}

.clan-card:hover {
    border-color: var(--yellow-border-hover);
    box-shadow: 0 0 30px rgba(255, 206, 13, 0.1), 0 4px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-3px);
}

.clan-card-banner {
    width: 100%; height: 110px; object-fit: cover;
    background: linear-gradient(135deg, #1a1510 0%, #211a12 50%, #181210 100%);
    position: relative;
}

/* Grungy line at bottom of every card banner */
.clan-card-banner::after {
    content: '';
    position: absolute; bottom: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        var(--yellow) 0%, var(--yellow) 25%,
        transparent 25%, transparent 30%,
        var(--yellow) 30%, var(--yellow) 55%,
        transparent 55%, transparent 65%,
        var(--yellow) 65%, var(--yellow) 85%,
        transparent 85%);
    opacity: 0.3;
}

.clan-card-body {
    padding: 14px 16px 16px; position: relative;
}

.clan-card-icon {
    width: 48px; height: 48px;
    border-radius: 8px;
    border: 2px solid var(--bg-dark);
    position: absolute; top: -24px; left: 16px;
    background: var(--bg-card); object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.clan-card-header {
    margin-top: 28px;
    display: flex; align-items: center;
    gap: 8px; margin-bottom: 4px;
}

.clan-card-name {
    font-family: var(--font-display);
    font-weight: 700; font-size: 15px;
    text-transform: uppercase; letter-spacing: 1px;
    color: var(--text-primary);
}

.clan-card-tag {
    font-family: var(--font-display);
    font-weight: 700; font-size: 11px;
    color: var(--yellow);
    background: rgba(255, 206, 13, 0.2);
    border: 1px solid rgba(255, 206, 13, 0.25);
    padding: 2px 8px; border-radius: 3px;
    letter-spacing: 1px;
}

.clan-card-verified {
    color: var(--yellow);
    font-size: 14px;
    text-shadow: 0 0 8px var(--yellow-glow);
}

.clan-card-desc {
    font-size: 12px; color: #777;
    line-height: 1.5; margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.clan-card-meta {
    display: flex; align-items: center;
    gap: 12px; font-size: 12px; color: #555;
    font-family: var(--font-display);
    font-weight: 600; letter-spacing: 1px;
    text-transform: uppercase;
}
.clan-card-meta span { display: flex; align-items: center; gap: 4px; }
.clan-card-region { margin-left: auto; font-size: 1.1rem; }

/* ── Filters Bar ────────────────────────────────────────────── */
.filters-bar {
    display: flex; align-items: center;
    gap: 10px; flex-wrap: wrap;
    margin-bottom: 20px; padding: 12px 16px;
    background: rgba(20, 20, 20, 0.7);
    border: 1px solid var(--yellow-border);
    border-radius: 8px;
    opacity: 0; transform: translateY(20px);
}
.filters-bar .search-input { flex: 1; min-width: 180px; }
.filters-bar .form-select { width: auto; min-width: 150px; }

/* ── Clan Hero ──────────────────────────────────────────────── */
.clan-hero {
    position: relative; border-radius: 12px;
    overflow: hidden; margin-bottom: 24px;
    border: 1px solid var(--yellow-border);
}

.clan-hero-banner {
    width: 100%; height: 220px; object-fit: cover;
    background: linear-gradient(135deg, #1a1510 0%, #211a12 30%, #181210 70%, #0d0d0d 100%);
    position: relative;
}

.clan-hero-banner::after {
    content: '';
    position: absolute; bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 2%, var(--yellow) 2%, var(--yellow) 20%,
        transparent 20%, transparent 25%,
        var(--yellow) 25%, var(--yellow) 55%,
        transparent 55%, transparent 62%,
        var(--yellow) 62%, var(--yellow) 80%,
        transparent 80%, transparent 88%,
        var(--yellow) 88%, var(--yellow) 98%,
        transparent 98%);
    opacity: 0.5;
}

.clan-hero-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 20px 24px;
    background: linear-gradient(transparent, rgba(13, 13, 13, 0.97));
    display: flex; align-items: end; gap: 16px;
}

.clan-hero-icon {
    width: 64px; height: 64px;
    border-radius: 10px; border: 3px solid var(--bg-dark);
    object-fit: cover; flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.clan-hero-info { flex: 1; }

.clan-hero-name {
    font-family: var(--font-display);
    font-size: 1.8rem; font-weight: 900;
    letter-spacing: 3px; text-transform: uppercase;
    display: flex; align-items: center; gap: 10px;
    color: var(--text-primary);
}

.clan-hero-stats {
    display: flex; gap: 16px; margin-top: 4px;
    font-size: 13px; color: #888;
    font-family: var(--font-display);
    font-weight: 600; letter-spacing: 1px;
    text-transform: uppercase;
}
.clan-hero-stats span { display: flex; align-items: center; gap: 4px; }

/* Content grid */
.clan-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 16px;
}
@media (max-width: 900px) { .clan-content { grid-template-columns: 1fr; } }

/* ── Info Cards ─────────────────────────────────────────────── */
.info-card {
    background: var(--bg-card);
    border: 1px solid var(--yellow-border);
    border-radius: 12px; padding: 20px;
    margin-bottom: 16px;
    transition: border-color 0.3s;
}
.info-card:hover { border-color: rgba(255, 206, 13, 0.25); }

.info-card-title {
    font-family: var(--font-display);
    font-weight: 700; font-size: 13px;
    text-transform: uppercase; letter-spacing: 3px;
    color: var(--yellow);
    margin-bottom: 14px;
    display: flex; align-items: center; gap: 8px;
}

/* ── Members ────────────────────────────────────────────────── */
.member-item {
    display: flex; align-items: center;
    gap: 10px; padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.member-item:last-child { border-bottom: none; }
.member-avatar { width: 32px; height: 32px; border-radius: 6px; flex-shrink: 0; }
.member-info { flex: 1; }
.member-name { font-weight: 500; font-size: 13px; }

.member-role {
    font-size: 11px; text-transform: uppercase;
    letter-spacing: 1.5px; font-weight: 700;
    font-family: var(--font-display);
}
.role-leader { color: var(--yellow); text-shadow: 0 0 6px var(--yellow-glow); }
.role-officer { color: var(--accent-cyan); }
.role-member { color: var(--text-muted); }

/* ── Activity Log ───────────────────────────────────────────── */
.log-item {
    display: flex; gap: 8px; padding: 6px 0;
    font-size: 12px; color: #777;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.log-item:last-child { border-bottom: none; }

.log-dot {
    width: 7px; height: 7px; border-radius: 50%;
    margin-top: 5px; flex-shrink: 0;
}
.log-dot.created { background: var(--success); box-shadow: 0 0 4px rgba(74, 222, 128, 0.5); }
.log-dot.joined { background: var(--accent-cyan); box-shadow: 0 0 4px rgba(0, 212, 170, 0.4); }
.log-dot.left { background: var(--text-muted); }
.log-dot.kicked { background: var(--red-light); box-shadow: 0 0 4px rgba(139, 0, 0, 0.5); }
.log-dot.promoted { background: var(--yellow); box-shadow: 0 0 4px var(--yellow-glow); }
.log-dot.demoted { background: var(--accent-cyan); }
.log-dot.transfer { background: var(--yellow); box-shadow: 0 0 4px var(--yellow-glow); }
.log-time { color: var(--text-muted); font-size: 11px; white-space: nowrap; }

/* ── Dashboard Tabs ─────────────────────────────────────────── */
.dash-tabs {
    display: flex; gap: 2px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.dash-tab {
    padding: 10px 20px;
    font-family: var(--font-display); font-weight: 700;
    font-size: 13px; text-transform: uppercase;
    letter-spacing: 2px; color: #555;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
    background: none; border-top: none; border-left: none; border-right: none;
}
.dash-tab:hover { color: #888; }
.dash-tab.active { color: var(--yellow); border-bottom-color: var(--yellow); }

.dash-tab-badge {
    background: var(--error); color: white;
    font-size: 10px; padding: 1px 6px;
    border-radius: 10px; margin-left: 6px;
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── Request/Invite cards ───────────────────────────────────── */
.request-card {
    display: flex; align-items: center;
    gap: 12px; padding: 12px 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px; margin-bottom: 8px;
    transition: border-color 0.3s;
}
.request-card:hover { border-color: rgba(255, 206, 13, 0.15); }
.request-card-info { flex: 1; }
.request-card-name { font-weight: 600; font-size: 14px; }
.request-card-msg { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.request-card-actions { display: flex; gap: 6px; }

/* ── Notifications ──────────────────────────────────────────── */
.notif-dropdown {
    position: absolute; top: calc(100% + 8px); right: 0;
    width: 340px; max-height: 400px; overflow-y: auto;
    background: rgba(20, 20, 20, 0.97); backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 206, 13, 0.1);
    border-radius: 12px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    z-index: 200; display: none;
}
.notif-dropdown.open { display: block; }

.notif-header {
    padding: 12px 14px; border-bottom: 1px solid var(--border-color);
    display: flex; align-items: center; justify-content: space-between;
    font-family: var(--font-display); font-weight: 700;
    font-size: 13px; text-transform: uppercase;
    letter-spacing: 2px; color: var(--yellow);
}

.notif-item {
    padding: 10px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    cursor: pointer; transition: background 0.2s;
}
.notif-item:hover { background: rgba(255, 206, 13, 0.02); }
.notif-item.unread { border-left: 3px solid var(--yellow); }
.notif-title { font-weight: 600; font-size: 13px; margin-bottom: 2px; }
.notif-msg { font-size: 12px; color: var(--text-secondary); }
.notif-time { font-size: 11px; color: var(--text-muted); margin-top: 3px; }
.notif-empty { padding: 2rem; text-align: center; color: var(--text-muted); font-size: 13px; }

/* ── Wizard ─────────────────────────────────────────────────── */
.wizard-steps { display: flex; gap: 4px; margin-bottom: 2rem; }

.wizard-step {
    flex: 1; height: 3px;
    background: var(--border-color); border-radius: 1px;
    transition: all 0.5s;
}
.wizard-step.active { background: var(--yellow); box-shadow: 0 0 6px var(--yellow-glow); }
.wizard-step.done { background: var(--success); }

.wizard-panel { display: none; }
.wizard-panel.active { display: block; }

.wizard-nav {
    display: flex; justify-content: space-between;
    margin-top: 2rem; padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* ── Pagination ─────────────────────────────────────────────── */
.pagination {
    display: flex; align-items: center;
    justify-content: center; gap: 6px; margin-top: 2rem;
}

.page-btn {
    padding: 6px 14px;
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: 4px; color: #888;
    font-family: var(--font-display); font-weight: 700;
    font-size: 13px; cursor: pointer; transition: all 0.3s;
    letter-spacing: 1px;
}
.page-btn:hover { border-color: var(--yellow); color: var(--yellow); }
.page-btn.active { background: var(--yellow); border-color: var(--yellow); color: #0d0d0d; }

/* ── Modals ─────────────────────────────────────────────────── */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(6px);
    z-index: 300; display: none;
    align-items: center; justify-content: center;
}
.modal-overlay.open { display: flex; }

.modal {
    background: #141414;
    border: 1px solid rgba(255, 206, 13, 0.1);
    border-radius: 12px; padding: 28px;
    max-width: 460px; width: 90%;
    max-height: 80vh; overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.modal-title {
    font-family: var(--font-display);
    font-size: 1.3rem; font-weight: 900;
    letter-spacing: 2px; text-transform: uppercase;
    color: var(--yellow); margin-bottom: 14px;
}

.modal-actions {
    display: flex; justify-content: flex-end;
    gap: 8px; margin-top: 20px;
}

/* ── Toast ──────────────────────────────────────────────────── */
.toast-container {
    position: fixed; top: 76px; right: 1.5rem;
    z-index: 400; display: flex;
    flex-direction: column; gap: 8px;
}

.toast {
    padding: 10px 18px;
    background: rgba(20, 20, 20, 0.97);
    border: 1px solid var(--border-color);
    border-radius: 8px; font-size: 13px;
    color: var(--text-primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    animation: toastSlide 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 340px;
}
.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid var(--error); }
.toast.info { border-left: 3px solid var(--yellow); }

@keyframes toastSlide {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ── Hero Badge ─────────────────────────────────────────────── */
.hero-badge {
    display: inline-block; padding: 6px 18px;
    background: var(--yellow-dim);
    border: 1px solid rgba(255, 206, 13, 0.2);
    border-radius: 3px;
    font-family: var(--font-display); font-weight: 700;
    font-size: 12px; text-transform: uppercase;
    letter-spacing: 2px; color: var(--yellow);
    margin-bottom: 1rem; opacity: 0;
}

/* ── Error page ─────────────────────────────────────────────── */
.error-page { text-align: center; padding: 5rem 1.5rem; }
.error-page h1 { font-size: 4rem; color: var(--error); margin-bottom: 12px; }
.error-page p { color: var(--text-secondary); font-size: 1rem; margin-bottom: 2rem; }

/* ── Skeleton ───────────────────────────────────────────────── */
.skeleton {
    background: linear-gradient(90deg, #141414 25%, #1a1a1a 50%, #141414 75%);
    background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 6px;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ── Quill content ──────────────────────────────────────────── */
.ql-content h1 { font-size: 1.4rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--text-primary); }
.ql-content h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--text-primary); }
.ql-content h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--text-primary); }
.ql-content p { margin-bottom: 0.5rem; }
.ql-content strong { color: var(--text-primary); }
.ql-content a { color: var(--yellow); text-decoration: underline; }
.ql-content a:hover { color: var(--yellow-hover); }
.ql-content ul, .ql-content ol { padding-left: 1.5rem; margin-bottom: 0.5rem; }
.ql-content li { margin-bottom: 0.25rem; }
.ql-content blockquote {
    border-left: 3px solid var(--yellow); padding-left: 1rem;
    margin: 0.5rem 0; color: var(--text-secondary); font-style: italic;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
    .clan-grid { grid-template-columns: 1fr; }
    .filters-bar { flex-direction: column; }
    .filters-bar .search-input, .filters-bar .form-select { min-width: 100%; }
    .page-title { font-size: 2rem; letter-spacing: 3px; }
    .clan-hero-banner { height: 160px; }
    .clan-hero-name { font-size: 1.3rem; }
    .header-links .header-link { display: none; }
    .clan-hero-overlay { flex-wrap: wrap; }
}

/* ── anime.js fallback ──────────────────────────────────────── */
.no-anime .clan-card, .no-anime .info-card, .no-anime .page-title,
.no-anime .page-subtitle, .no-anime .hero-badge, .no-anime .filters-bar {
    opacity: 1 !important; transform: none !important;
}

/* ── Utility ────────────────────────────────────────────────── */
.text-yellow { color: var(--yellow); }
.text-red { color: var(--red-light); }
.text-green { color: var(--success); }
.text-cyan { color: var(--accent-cyan); }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.hidden { display: none !important; }