:root {
    --bg: #F7F5F0;
    --surface: #FFFFFF;
    --ink: #0F1623;
    --ink-muted: #5A6070;
    --accent: #1A56FF;
    --accent-light: #EBF0FF;
    --accent-hover: #0040D8;
    --accent2: #FF5C35;
    --border: #E2DDD6;
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --shadow-sm: 0 2px 8px rgba(15, 22, 35, 0.06);
    --shadow-md: 0 8px 32px rgba(15, 22, 35, 0.10);
    --shadow-lg: 0 16px 48px rgba(15, 22, 35, 0.14);
    --nav-h: 72px;
    --font-sans: 'DM Sans', sans-serif;
    --font-display: 'Syne', sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans), serif;
    background: var(--bg);
    color: var(--ink);
    min-height: 100vh;
    font-size: 16px;
    line-height: 1.6;
}

.page-shell {
    min-height: calc(100vh - var(--nav-h));
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ============================================
    BUTTONS
   ============================================ */
.btn-primary,
.btn-secondary,
.btn-auth,
.btn-submit,
.btn-discord {
    display: inline-block;
    font-family: var(--font-sans), serif;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    border-radius: 9px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    white-space: nowrap;
}

.btn-primary {
    background: var(--ink);
    color: #fff;
    padding: 12px 24px;
}
.btn-primary:hover {
    background: var(--accent);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--ink);
    border-color: var(--border);
    padding: 11px 22px;
}
.btn-secondary:hover {
    border-color: var(--accent);
    background: var(--accent-light);
    color: var(--accent);
}

.btn-auth {
    background: var(--ink);
    color: #fff;
    padding: 8px 20px;
}
.btn-auth:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.btn-submit {
    width: 100%;
    background: var(--accent);
    color: #fff;
    padding: 13px;
}
.btn-submit:hover {
    background: var(--accent-hover);
}

.btn-discord {
    background: #fff;
    color: #5865F2;
    padding: 12px 24px;
}
.btn-discord:hover {
    background: var(--ink);
    color: #fff;
    transform: translateY(-1px);
}

/* ============================================
   NAVIGATION
   ============================================ */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--nav-h);
    background: rgba(247, 245, 240, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 48px;
    gap: 24px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}
.logo-box {
    width: 40px;
    height: 40px;
    background: var(--ink);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display), serif;
    font-weight: 800;
    font-size: 18px;
    color: #fff;
}
.brand-text {
    font-family: var(--font-display), serif;
    font-weight: 700;
    font-size: 17px;
    line-height: 1.1;
}
.brand-sub {
    font-size: 11px;
    font-weight: 400;
    color: var(--ink-muted);
}

.nav-links {
    display: none;
    gap: 6px;
    list-style: none;
    margin-left: 16px;
}
.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-muted);
    padding: 6px 14px;
    border-radius: 8px;
}
.nav-links a:hover,
.nav-links a.active {
    background: var(--accent-light);
    color: var(--accent);
}

.nav-right {
    margin-left: auto;
    display: none;
    gap: 12px;
    align-items: center;
}

.nav-user-label {
    cursor: default;
}

.nav-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: 2px solid var(--border);
    border-radius: 9px;
    cursor: pointer;
    margin-left: auto;
}
.nav-hamburger span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile-menu {
    display: none;
    position: fixed;
    top: var(--nav-h);
    right: 0;
    bottom: 0;
    width: min(360px, 100%);
    background: rgba(247, 245, 240, 0.98);
    backdrop-filter: blur(14px);
    border-left: 1px solid var(--border);
    padding: 16px 24px 24px;
    z-index: 99;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}
.nav-mobile-menu.open {
    display: flex;
}
.nav-mobile-menu a {
    font-size: 15px;
    font-weight: 500;
    color: var(--ink-muted);
    padding: 12px 14px;
    border-radius: 9px;
}
.nav-mobile-menu a:hover,
.nav-mobile-menu a.active {
    background: var(--accent-light);
    color: var(--accent);
}
.nav-mobile-divider {
    height: 1px;
    background: var(--border);
    margin: 8px 0;
}
.nav-mobile-menu .btn-auth {
    margin-top: 4px;
    text-align: center;
    display: block;
}
.nav-mobile-menu .btn-secondary {
    margin-top: 8px;
    text-align: center;
    display: block;
}

.nav-mobile-user {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    padding: 4px 2px 8px;
}

/* ============================================
   HERO BANNER
   ============================================ */
.hero-img {
    width: 100%;
    height: 25vh;
    min-height: 180px;
    max-height: 320px;
    background: linear-gradient(135deg, #0F1623 0%, #1A2540 40%, #1A56FF 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-img::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-blob,
.hero-blob2 {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.hero-blob {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(26, 86, 255, 0.4) 0%, transparent 70%);
    top: -150px;
    right: 10%;
}
.hero-blob2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 92, 53, 0.25) 0%, transparent 70%);
    bottom: -100px;
    left: 15%;
}
.hero-text {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 0 24px;
}
.hero-text h1 {
    font-family: var(--font-display), serif;
    font-size: clamp(22px, 4vw, 42px);
    font-weight: 800;
    letter-spacing: -1px;
}
.hero-text p {
    font-size: clamp(13px, 1.5vw, 16px);
    opacity: 0.7;
    margin-top: 8px;
}

/* ============================================
   CONTENT
   ============================================ */
.content {
    max-width: 1160px;
    margin: 0 auto;
    padding: 56px 40px 80px;
}
.section-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 10px;
}
.section-title {
    font-family: var(--font-display), serif;
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 32px;
}
.divider {
    height: 1px;
    background: var(--border);
    margin: 48px 0;
}

/* ============================================
    EVENTS
   ============================================ */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 56px;
}
.event-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-md);
    padding: 24px;
    display: flex;
    gap: 18px;
    transition: box-shadow 0.2s, transform 0.2s;
}
.event-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.event-date {
    background: var(--accent-light);
    border-radius: 10px;
    padding: 10px 14px;
    text-align: center;
    flex-shrink: 0;
    min-width: 56px;
}
.event-date .day {
    font-family: var(--font-display), serif;
    font-size: 26px;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}
.event-date .month {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
}
.event-date .time {
    font-size: 11px;
    font-weight: 600;
    margin-top: 4px;
}
.event-info h3 {
    font-family: var(--font-display), serif;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 6px;
}
.event-info p {
    font-size: 13px;
    color: var(--ink-muted);
}
.event-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}
.event-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 30px;
}
.tag-online { background: #EBF8F0; color: #1A8A4A; }
.tag-osobne { background: #FFF4EE; color: #D94F10; }
.tag-hybrid { background: var(--accent-light); color: var(--accent); }
.tag-flat,
.tag-oblast { background: #F3F0FF; color: #5B3FD9; }
.tag-audience { background: #EBF0FF; color: #1A56FF; }
.tag-category { background: #FFF4EE; color: #D94F10; }
.tag-area { background: #F3F0FF; color: #5B3FD9; }

/* ============================================
   FILTERS
   ============================================ */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}
.filter-chip {
    font-size: 13px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 30px;
    border: 2px solid var(--border);
    background: var(--surface);
    color: var(--ink-muted);
    cursor: pointer;
    transition: all 0.15s;
}
.filter-chip:hover,
.filter-chip.active {
    background: var(--accent-light);
    border-color: var(--accent);
    color: var(--accent);
}
.filter-reset {
    font-family: var(--font-sans), serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    background: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.filter-reset:hover {
    opacity: 0.7;
}

/* ============================================
   DISCORD BANNER
   ============================================ */
.discord-banner {
    background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
    border-radius: var(--border-radius-lg);
    padding: 36px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 56px;
    position: relative;
    overflow: hidden;
}
.home-banner {
    margin-bottom: 0;
}
.discord-banner h2 {
    font-family: var(--font-display), serif;
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
}
.discord-banner p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
}
.discord-icon {
    font-size: 48px;
    flex-shrink: 0;
}

/* ============================================
   EXPERTS
   ============================================ */
.experts-cta {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-lg);
    padding: 36px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.experts-cta h2 {
    font-family: var(--font-display), serif;
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 800;
    margin-bottom: 6px;
}
.experts-cta p {
    font-size: 14px;
    color: var(--ink-muted);
    max-width: 480px;
}

.home-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: -24px;
}

.events-cta-banner {
    background: linear-gradient(135deg, #0F1623 0%, #1A2540 40%, #1A56FF 100%);
    border-radius: var(--border-radius-lg);
    padding: 36px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: #fff;
}

.events-cta-banner h2 {
    font-family: var(--font-display), serif;
    font-size: clamp(20px, 2.4vw, 28px);
    font-weight: 800;
    margin-bottom: 8px;
}

.events-cta-banner p {
    max-width: 620px;
    color: rgba(255, 255, 255, 0.82);
    margin: 0;
}

.events-cta-banner .btn-primary {
    background: #fff;
    color: var(--ink);
}

.events-cta-banner .btn-primary:hover {
    background: #EBF0FF;
    color: var(--accent);
}

.experts-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
}
.expert-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-md);
    padding: 20px 22px;
    display: flex;
    gap: 16px;
}
.expert-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--accent-light);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display), serif;
    font-weight: 700;
    font-size: 18px;
    color: var(--accent);
    overflow: hidden;
}
.expert-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.expert-info h3 {
    font-family: var(--font-display), serif;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 3px;
}
.expert-field {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}
.expert-info p {
    font-size: 13px;
    color: var(--ink-muted);
    margin: 0;
}
.expert-contact-list {
    display: grid;
    gap: 6px;
    margin-top: 6px;
    font-size: 13px;
    color: var(--ink-muted);
}
.expert-contact-list a {
    color: var(--accent);
    text-decoration: none;
}
.expert-contact-list a:hover {
    text-decoration: underline;
}
.expert-admin-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
    margin-top: 18px;
    padding-top: 0;
    border-top: 0;
}
.expert-admin-actions .btn-secondary,
.expert-admin-actions .btn-submit {
    width: auto;
    min-width: 0;
}
.experts-empty {
    display: none;
    text-align: center;
    padding: 56px 24px;
    color: var(--ink-muted);
}
.experts-empty.visible {
    display: block;
}
.experts-login-wall {
    text-align: center;
    padding: 64px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-lg);
    margin-top: 32px;
}
.experts-login-wall h3 {
    font-family: var(--font-display), serif;
    font-weight: 800;
    font-size: 22px;
    margin-bottom: 10px;
}
.experts-login-wall-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 24px;
}

/* ============================================
   EVENTS DETAIL
   ============================================ */
.event-detail-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 48px;
    align-items: start;
}
.event-detail-content {
    overflow: hidden;
}
.event-detail-header {
    margin-bottom: 32px;
}
.event-detail-date-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--accent-light);
    border-radius: 10px;
    padding: 10px 18px;
    margin-bottom: 20px;
}
.event-detail-date-badge .day {
    font-family: var(--font-display), serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--accent);
}
.event-detail-title {
    font-family: var(--font-display), serif;
    font-size: clamp(24px, 3.5vw, 38px);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}
.event-detail-content p {
    font-size: 15px;
    color: var(--ink-muted);
    line-height: 1.75;
    margin-bottom: 14px;
}
.event-detail-content h3 {
    font-family: var(--font-display), serif;
    font-weight: 700;
    font-size: 18px;
    margin: 28px 0 12px;
}
.event-sidebar-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-lg);
    padding: 28px;
    position: sticky;
    top: calc(var(--nav-h) + 24px);
}
.event-sidebar-card h3 {
    font-family: var(--font-display), serif;
    font-weight: 800;
    font-size: 18px;
    margin-bottom: 20px;
}
.event-info-list {
    list-style: none;
    margin-bottom: 24px;
}
.event-info-list li {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    color: var(--ink-muted);
}
.event-info-list li:last-child {
    border-bottom: none;
}
.ei-icon {
    font-size: 16px;
    flex-shrink: 0;
}
.ei-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    display: block;
}
.ei-value {
    font-size: 14px;
    color: var(--ink);
    font-weight: 500;
}
.capacity-bar {
    margin-bottom: 20px;
}
.capacity-label {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 6px;
}
.capacity-track {
    height: 6px;
    background: var(--border);
    border-radius: 6px;
    overflow: hidden;
}
.capacity-fill {
    height: 100%;
    background: var(--accent);
    width: 0;
    transition: width 0.4s ease;
}
.event-sidebar-card .btn-primary,
.event-sidebar-card .btn-secondary {
    width: 100%;
    margin-bottom: 10px;
}

/* ============================================
   REPORTS (PDF)
   ============================================ */
.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}
.report-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-md);
    padding: 22px 24px;
    transition: box-shadow 0.2s, transform 0.2s;
}
.report-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.report-card-icon {
    font-size: 32px;
    margin-bottom: 10px;
}
.report-card h3 {
    font-family: var(--font-display), serif;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 8px;
}
.report-card p {
    font-size: 13px;
    color: var(--ink-muted);
    margin-bottom: 12px;
}
.report-card-date {
    font-size: 12px;
    color: var(--ink-muted);
    font-weight: 500;
}
.report-card-download {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ============================================
   USERS PROFILE
   ============================================ */
.profile-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 48px;
    align-items: start;
}
.profile-sidebar {
    position: sticky;
    top: calc(var(--nav-h) + 24px);
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.profile-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-lg);
    padding: 28px;
    text-align: center;
}
.profile-avatar {
    width: 96px;
    height: 96px;
    margin: 0 auto 16px;
    background: var(--accent-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display), serif;
    font-weight: 800;
    font-size: 32px;
    color: var(--accent);
    position: relative;
    overflow: hidden;
}
.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.profile-avatar-edit {
    position: absolute;
    inset: 0;
    background: rgba(15, 22, 35, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.18s;
    cursor: pointer;
}
.profile-avatar:hover .profile-avatar-edit {
    opacity: 1;
}
.profile-name {
    font-family: var(--font-display), serif;
    font-weight: 800;
    font-size: 20px;
    margin-bottom: 4px;
}
.profile-role-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 30px;
    background: var(--accent-light);
    color: var(--accent);
    margin-bottom: 14px;
}
.profile-bio {
    font-size: 13px;
    color: var(--ink-muted);
    margin-bottom: 20px;
    text-align: left;
}
.profile-stats {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-lg);
    padding: 20px 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    text-align: center;
}
.profile-stat-value {
    font-family: var(--font-display), serif;
    font-size: 24px;
    font-weight: 800;
}
.profile-stat-label {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--ink-muted);
}
.profile-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg);
    border-radius: var(--border-radius-md);
    padding: 4px;
    margin-bottom: 28px;
}
.profile-tab {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    border: none;
    background: none;
    border-radius: 9px;
    padding: 9px 16px;
    cursor: pointer;
    color: var(--ink-muted);
    text-align: center;
}
.profile-tab.active {
    background: var(--surface);
    color: var(--ink);
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.profile-tab-content {
    display: none;
}
.profile-tab-content.active {
    display: block;
}
.profile-edit-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-lg);
    padding: 28px;
}
.profile-edit-form h3 {
    font-family: var(--font-display), serif;
    font-weight: 800;
    font-size: 18px;
    margin-bottom: 24px;
}
.profile-edit-form ul.errors {
    list-style: none;
    margin: 0 0 16px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #FFF1EC;
    color: #B5451B;
    font-size: 13px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.profile-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.profile-form-actions .btn-submit {
    width: auto;
    min-width: 220px;
}

/* ============================================
   ACTIVITIES
   ============================================ */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}
.activity-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-md);
    padding: 22px 24px;
    transition: box-shadow 0.2s, transform 0.2s;
}
.activity-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.activity-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}
.activity-type-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 30px;
    background: var(--accent-light);
    color: var(--accent);
}
.activity-year {
    font-size: 12px;
    color: var(--ink-muted);
}
.activity-card h3 {
    font-family: var(--font-display), serif;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 8px;
}
.activity-card p {
    font-size: 13px;
    color: var(--ink-muted);
}

/* ============================================
    FORMS
   ============================================ */
.form-group {
    margin-bottom: 16px;
}
.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--ink-muted);
    margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    font-family: var(--font-sans), serif;
    font-size: 14px;
    color: var(--ink);
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: 9px;
    padding: 10px 14px;
    outline: none;
    transition: border-color 0.18s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    background: #fff;
}
.form-divider {
    height: 1px;
    background: var(--border);
    margin: 20px 0;
}
.form-notice {
    font-size: 12px;
    color: var(--ink-muted);
    margin-bottom: 16px;
}

.form-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-lg);
    padding: 28px;
}

.form-card select[multiple] {
    min-height: 150px;
}

.form-card ul.errors {
    list-style: none;
    margin: 0 0 16px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #FFF1EC;
    color: #B5451B;
    font-size: 13px;
}

.auth-form-shell form {
    margin: 0;
}

.auth-form-shell table,
.auth-form-shell tbody,
.auth-form-shell tr,
.auth-form-shell th,
.auth-form-shell td {
    display: block;
    width: 100%;
}

.auth-form-shell tr {
    margin-bottom: 14px;
}

.auth-form-shell th {
    margin-bottom: 6px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--ink-muted);
}

.auth-form-shell td {
    padding: 0;
}

.auth-form-shell input,
.auth-form-shell select,
.auth-form-shell textarea,
.auth-form-shell button {
    width: 100%;
}

.auth-form-shell input,
.auth-form-shell select,
.auth-form-shell textarea {
    font-family: var(--font-sans), serif;
    font-size: 14px;
    color: var(--ink);
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: 9px;
    padding: 10px 14px;
    outline: none;
    transition: border-color 0.18s;
}

.auth-form-shell input:focus,
.auth-form-shell select:focus,
.auth-form-shell textarea:focus {
    border-color: var(--accent);
    background: #fff;
}

.auth-form-shell input[type='submit'],
.auth-form-shell button,
.auth-form-shell .button {
    border: 0;
    border-radius: 9px;
    background: var(--accent);
    color: #fff;
    padding: 13px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.auth-form-shell input[type='submit']:hover,
.auth-form-shell button:hover,
.auth-form-shell .button:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.auth-form-shell ul.error,
.auth-form-shell ul.errors {
    list-style: none;
    margin: 0 0 14px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #FFF1EC;
    color: #B5451B;
    font-size: 13px;
}

/* ============================================
   MODAL WINDOW
   ============================================ */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 22, 35, 0.5);
    backdrop-filter: blur(6px);
    z-index: 999;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.modal-overlay.open {
    display: flex;
}
.auth-modal {
    background: var(--surface);
    border-radius: 18px;
    padding: 36px;
    width: 100%;
    max-width: 440px;
    position: relative;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
}
.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--bg);
    border: none;
    border-radius: var(--border-radius-sm);
    width: 32px;
    height: 32px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-close:hover {
    background: var(--border);
}
.auth-modal h2 {
    font-family: var(--font-display), serif;
    font-weight: 800;
    font-size: 22px;
    margin-bottom: 4px;
}
.modal-sub {
    font-size: 14px;
    color: var(--ink-muted);
    margin-bottom: 26px;
}
.modal-tabs {
    display: flex;
    background: var(--bg);
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 24px;
    gap: 4px;
}
.modal-tab {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    border: none;
    background: none;
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    color: var(--ink-muted);
}
.modal-tab.active {
    background: var(--surface);
    color: var(--ink);
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

/* ============================================
    FLASH MESSAGES
   ============================================ */
.flash-messages {
    max-width: 1160px;
    margin: 0 auto;
    padding: 16px 40px 0;
}
.flash {
    padding: 12px 18px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    border: 2px solid transparent;
}
.flash-success {
    background: #EBF8F0;
    color: #1A8A4A;
    border-color: #B3E9CE;
}
.flash-error {
    background: #FFF0EE;
    color: #C0371A;
    border-color: #FFCCBB;
}
.flash-info {
    background: var(--accent-light);
    color: var(--accent);
    border-color: #C5D5FF;
}

/* ============================================
   EMPTY STATES
   ============================================ */
.empty-state {
    text-align: center;
    padding: 64px 24px;
    color: var(--ink-muted);
}
.empty-state-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
}
.empty-state h3 {
    font-family: var(--font-display), serif;
    font-weight: 700;
    font-size: 18px;
    color: var(--ink);
    margin-bottom: 8px;
}
.empty-state p {
    max-width: 360px;
    margin: 0 auto 24px;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    border-top: 1px solid var(--border);
    padding: 28px 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-brand {
    font-family: var(--font-display), serif;
    font-size: 14px;
    font-weight: 700;
}
.footer-links {
    display: flex;
    gap: 20px;
}
.footer-links a {
    font-size: 12px;
    color: var(--ink-muted);
}
.footer-links a:hover {
    color: var(--accent);
}

/* ============================================
   RESPONSIVITY
   ============================================ */
@media (max-width: 1024px) {
    nav {
        padding: 0 24px;
    }
    .content {
        padding: 40px 24px 64px;
    }
    .event-detail-layout {
        grid-template-columns: 1fr 300px;
        gap: 32px;
    }
    .profile-layout {
        grid-template-columns: 260px 1fr;
        gap: 32px;
    }
    footer {
        padding: 24px;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 0 20px;
    }
    .content {
        padding: 32px 20px 56px;
    }
    .calendar-grid {
        grid-template-columns: 1fr;
    }
    .discord-banner {
        flex-direction: column;
        text-align: center;
        padding: 28px 24px;
    }
    .events-cta-banner {
        flex-direction: column;
        text-align: center;
        padding: 28px 24px;
    }
    .experts-cta {
        flex-direction: column;
        text-align: center;
    }
    .event-detail-layout,
    .profile-layout {
        grid-template-columns: 1fr;
    }
    .event-sidebar-card,
    .profile-sidebar {
        position: static;
    }
    .profile-tabs {
        overflow-x: auto;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .activities-grid,
    .reports-grid {
        grid-template-columns: 1fr;
    }
    .flash-messages {
        padding: 12px 20px 0;
    }
    footer {
        padding: 24px 20px;
    }
    .auth-modal {
        padding: 24px 20px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 22px;
    }
    .event-card,
    .expert-card,
    .activity-card,
    .report-card {
        padding: 16px;
    }
    .filter-chip {
        font-size: 12px;
        padding: 5px 11px;
    }
    .profile-tab {
        font-size: 13px;
        padding: 8px 10px;
    }
    .event-detail-title {
        font-size: 24px;
    }
}
