@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');
* { margin:0; padding:0; box-sizing:border-box; }
:root {
    --primary:#1B6B4F; --primary-light:#2A9D8F; --primary-dark:#0E4A3A;
    --accent:#E9C46A; --accent-light:#F2D88C;
    --danger:#e05c5c; --warning:#f0a500; --success:#3aaa6a;
    --dark:#121e1b; --dark-2:#1a2e2a; --dark-soft:#243630;
    --card-bg:rgba(255,255,255,0.055); --card-bg-hover:rgba(255,255,255,0.09);
    --border:rgba(255,255,255,0.09); --border-hover:rgba(255,255,255,0.2);
    --text-primary:#FFF; --text-secondary:rgba(255,255,255,0.85);
    --text-tertiary:rgba(255,255,255,0.6); --text-muted:rgba(255,255,255,0.4);
    --max-width:1200px;
    --radius:16px; --radius-lg:24px; --radius-xl:32px;
}
html { scroll-behavior:smooth; }
body { font-family:'Montserrat',sans-serif; background:var(--dark); color:var(--text-primary); line-height:1.6; overflow-x:hidden; min-height:100vh; }
.simple-gradient { position:fixed; inset:0; background:radial-gradient(ellipse at 15% 20%,rgba(42,157,143,.18) 0%,transparent 50%),radial-gradient(ellipse at 80% 75%,rgba(233,196,106,.12) 0%,transparent 50%); z-index:-1; }

/* ========== NAV WRAPPER ========== */
.nav-wrapper {
    position:sticky; top:0; z-index:100;
    padding:0.7rem 1.5rem;
    /* no background — nav itself handles it */
}
.eco-nav {
    max-width:var(--max-width);
    margin:0 auto;
    display:flex; align-items:center; justify-content:space-between;
    padding:0.6rem 1.2rem;
    border-radius:60px;
    border:1px solid transparent;
    transition:all 0.35s ease;
    position:relative;
}
/* scrolled state */
.nav-wrapper.scrolled .eco-nav {
    background:rgba(18,30,27,0.92);
    backdrop-filter:blur(18px);
    border-color:var(--border);
    box-shadow:0 4px 32px rgba(0,0,0,.35);
}

.nav-logo { display:flex; align-items:center; gap:0.6rem; text-decoration:none; }
.logo-image { height:38px; width:auto; }
.logo-text { font-size:1.3rem; font-weight:800; background:linear-gradient(135deg,#fff,var(--accent-light)); -webkit-background-clip:text; -webkit-text-fill-color:transparent; }

.nav-links-desktop { display:flex; gap:0.25rem; background:rgba(255,255,255,0.05); padding:0.35rem; border-radius:50px; border:1px solid var(--border); }
.nav-link { color:var(--text-secondary); text-decoration:none; font-weight:600; font-size:0.8rem; padding:0.5rem 1.1rem; border-radius:50px; transition:all 0.2s; white-space:nowrap; }
.nav-link:hover { color:#fff; background:rgba(255,255,255,0.08); }
.nav-link.active { color:#fff; background:var(--primary); box-shadow:0 3px 12px rgba(27,107,79,.4); }

.nav-actions { display:flex; gap:0.6rem; align-items:center; }
.login-btn { background:var(--primary); color:#fff; border:none; padding:0.5rem 1.3rem; border-radius:50px; font-size:0.82rem; font-weight:700; cursor:pointer; text-decoration:none; transition:all 0.2s; font-family:inherit; box-shadow:0 3px 12px rgba(27,107,79,.3); }
.login-btn:hover { background:var(--primary-light); transform:translateY(-1px); }

.user-menu-container { position:relative; }
.user-menu-btn { display:flex; align-items:center; gap:0.5rem; background:rgba(255,255,255,0.07); border:1px solid var(--border); color:var(--text-primary); padding:0.45rem 0.9rem; border-radius:50px; cursor:pointer; font-family:inherit; font-size:0.82rem; font-weight:600; transition:all 0.2s; }
.user-menu-btn:hover { border-color:var(--accent); }
.user-name { max-width:110px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.org-badge { background:var(--primary); color:#fff; padding:0.1rem 0.4rem; border-radius:4px; font-size:0.62rem; font-weight:700; }
.user-arrow { font-size:0.6rem; color:var(--text-muted); transition:transform 0.2s; }
.user-menu-container:hover .user-arrow { transform:rotate(180deg); }
.user-dropdown { position:absolute; top:calc(100% + 8px); right:0; background:var(--dark-2); border:1px solid var(--border); border-radius:var(--radius); padding:0.5rem; min-width:196px; opacity:0; visibility:hidden; transform:translateY(-8px); transition:all 0.2s; box-shadow:0 12px 40px rgba(0,0,0,.4); backdrop-filter:blur(16px); }
.user-menu-container:hover .user-dropdown { opacity:1; visibility:visible; transform:translateY(0); }
.dropdown-item { display:flex; align-items:center; gap:0.7rem; padding:0.6rem 0.8rem; color:var(--text-secondary); text-decoration:none; border-radius:10px; font-size:0.87rem; font-weight:500; transition:all 0.15s; }
.dropdown-item:hover { background:var(--card-bg-hover); color:#fff; }
.dropdown-item.logout:hover { background:rgba(224,92,92,.15); color:var(--danger); }
.dropdown-item i { width:16px; text-align:center; opacity:.7; }
.dropdown-divider { height:1px; background:var(--border); margin:0.4rem 0; }

/* mobile toggle */
.menu-toggle { display:none; background:none; border:none; width:30px; height:22px; cursor:pointer; flex-direction:column; justify-content:space-between; padding:0; }
.menu-toggle span { display:block; width:100%; height:2px; background:var(--text-secondary); border-radius:2px; transition:all 0.3s; }
.menu-toggle.open span:nth-child(1) { transform:translateY(10px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity:0; }
.menu-toggle.open span:nth-child(3) { transform:translateY(-10px) rotate(-45deg); }

/* MOBILE MENU */
.mobile-menu { position:fixed; inset:0; background:rgba(12,22,19,.98); backdrop-filter:blur(20px); z-index:200; padding:1.5rem; transform:translateX(100%); transition:transform 0.35s cubic-bezier(.4,0,.2,1); overflow-y:auto; }
.mobile-menu.open { transform:translateX(0); }
.mobile-menu-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:2rem; padding-bottom:1.5rem; border-bottom:1px solid var(--border); }
.close-menu { background:var(--card-bg); border:1px solid var(--border); color:var(--text-secondary); width:40px; height:40px; border-radius:50%; font-size:1.2rem; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:all 0.2s; }
.close-menu:hover { background:var(--card-bg-hover); }
.mobile-menu-body { display:flex; flex-direction:column; gap:0.5rem; }
.mobile-link { display:flex; align-items:center; gap:1rem; padding:1rem 1.2rem; color:var(--text-secondary); text-decoration:none; border-radius:var(--radius); font-weight:600; font-size:1.05rem; border:1px solid transparent; transition:all 0.2s; }
.mobile-link:hover, .mobile-link.active { background:var(--card-bg); border-color:var(--primary); color:#fff; }
.mobile-link i { width:20px; text-align:center; color:var(--primary-light); }
.mobile-auth { display:flex; flex-direction:column; gap:0.8rem; margin-top:1rem; }
.mobile-login-btn { background:var(--primary); color:#fff; text-align:center; padding:1rem; border-radius:var(--radius); font-weight:700; text-decoration:none; display:block; }
.mobile-register-btn { border:1px solid var(--border); color:var(--text-secondary); text-align:center; padding:1rem; border-radius:var(--radius); font-weight:700; text-decoration:none; display:block; }

/* FLASH */
.flash-messages { position:fixed; top:90px; right:1.5rem; z-index:300; display:flex; flex-direction:column; gap:0.6rem; max-width:360px; }
.flash-message { display:flex; align-items:center; gap:0.8rem; padding:1rem 1.2rem; border-radius:var(--radius); background:var(--dark-2); border:1px solid var(--border); box-shadow:0 8px 30px rgba(0,0,0,.35); backdrop-filter:blur(16px); animation:slideIn 0.3s ease; }
@keyframes slideIn { from{opacity:0;transform:translateX(20px)} to{opacity:1;transform:translateX(0)} }
.flash-success{border-color:rgba(58,170,106,.4)} .flash-error{border-color:rgba(224,92,92,.4)} .flash-warning{border-color:rgba(240,165,0,.4)} .flash-info{border-color:rgba(42,157,143,.4)}
.flash-icon{font-size:1.1rem;flex-shrink:0} .flash-text{flex:1;font-size:0.875rem;font-weight:500;color:var(--text-secondary)} .flash-close{background:none;border:none;color:var(--text-muted);cursor:pointer;font-size:1.1rem;padding:0;line-height:1;flex-shrink:0}
.flash-close:hover{color:#fff}

/* MAIN */
.main-content { flex:1; max-width:var(--max-width); margin:0 auto; width:100%; padding:0 1.5rem; }

/* ========== HERO ========== */
.eco-hero { padding:4.5rem 0 3.5rem; min-height:76vh; display:flex; align-items:center; }
.hero-content { max-width:580px; }
.hero-title { font-size:clamp(2.4rem,5vw,3.8rem); font-weight:800; line-height:1.1; margin-bottom:1.2rem; letter-spacing:-1px; }
.text-highlight { background:linear-gradient(135deg,#6ddbad,var(--accent-light)); -webkit-background-clip:text; -webkit-text-fill-color:transparent; }
.hero-description { font-size:1.05rem; color:var(--text-tertiary); max-width:460px; margin-bottom:2rem; line-height:1.7; }
.hero-stats { display:flex; gap:2rem; margin-bottom:2.5rem; flex-wrap:wrap; }
.hero-stat { display:flex; flex-direction:column; }
.stat-value { font-size:2rem; font-weight:800; color:var(--accent-light); line-height:1; }
.stat-label { font-size:0.78rem; color:var(--text-muted); font-weight:500; margin-top:0.2rem; }
.hero-actions { display:flex; gap:1rem; flex-wrap:wrap; }

/* BUTTONS */
.btn { display:inline-flex; align-items:center; gap:0.6rem; padding:0.72rem 1.8rem; border-radius:50px; font-family:inherit; font-size:0.9rem; font-weight:700; cursor:pointer; text-decoration:none; border:none; transition:all 0.25s; white-space:nowrap; }
.btn-primary { background:var(--primary); color:#fff; box-shadow:0 4px 16px rgba(27,107,79,.35); }
.btn-primary:hover { background:var(--primary-light); transform:translateY(-2px); box-shadow:0 8px 24px rgba(27,107,79,.45); }
.btn-outline { background:transparent; color:var(--text-secondary); border:1px solid var(--border-hover); }
.btn-outline:hover { background:var(--card-bg); border-color:var(--primary-light); color:#fff; }
.btn-danger { background:rgba(224,92,92,.12); color:var(--danger); border:1px solid rgba(224,92,92,.25); }
.btn-danger:hover { background:rgba(224,92,92,.22); }
.btn-warning { background:rgba(240,165,0,.12); color:var(--warning); border:1px solid rgba(240,165,0,.25); }
.btn-success { background:rgba(58,170,106,.12); color:var(--success); border:1px solid rgba(58,170,106,.25); }
.btn-success:hover { background:rgba(58,170,106,.22); }
.btn-sm { padding:0.45rem 1.1rem; font-size:0.8rem; }
.btn-xs { padding:0.3rem 0.7rem; font-size:0.75rem; border-radius:8px; }
button:disabled,.btn[disabled]{opacity:.45;cursor:not-allowed;transform:none!important}

/* SECTIONS */
.section-title { font-size:clamp(1.6rem,3vw,2.4rem); font-weight:800; letter-spacing:-.5px; }
.section-title .accent { color:var(--accent-light); }
.section-header { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:1rem; margin-bottom:2rem; }

/* CATEGORY FILTERS */
.categories-section { margin-bottom:2rem; }
.category-filters { display:flex; gap:0.5rem; flex-wrap:wrap; }
.category-filter { padding:0.5rem 1.1rem; border-radius:50px; border:1px solid var(--border); background:var(--card-bg); color:var(--text-tertiary); font-family:inherit; font-size:0.82rem; font-weight:600; cursor:pointer; transition:all 0.2s; }
.category-filter:hover { border-color:var(--primary-light); color:#fff; }
.category-filter.active { background:var(--primary); border-color:var(--primary); color:#fff; }

/* EVENT CARDS */
.events-feed { margin-bottom:4rem; }
.events-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:1.5rem; }
.event-card { background:var(--card-bg); border:1px solid var(--border); border-radius:var(--radius-lg); overflow:hidden; transition:all 0.3s; cursor:pointer; display:flex; flex-direction:column; }
.event-card:hover { border-color:rgba(42,157,143,.35); background:var(--card-bg-hover); transform:translateY(-4px); box-shadow:0 16px 40px rgba(0,0,0,.3); }
.event-card.past-event { opacity:.55; }
.event-card.hidden { display:none; }
.event-media { height:128px; background:linear-gradient(135deg,var(--primary-dark),var(--dark-soft)); display:flex; align-items:center; justify-content:center; position:relative; }
.event-emoji-placeholder { font-size:3.5rem; filter:drop-shadow(0 4px 12px rgba(0,0,0,.4)); }
.event-category { position:absolute; top:0.8rem; left:0.8rem; background:rgba(18,30,27,.75); backdrop-filter:blur(8px); color:#6ddbad; padding:0.3rem 0.7rem; border-radius:6px; font-size:0.72rem; font-weight:600; border:1px solid rgba(109,219,173,.2); text-transform:capitalize; }
.event-impact { position:absolute; top:0.8rem; right:0.8rem; background:rgba(18,30,27,.75); backdrop-filter:blur(8px); color:var(--text-secondary); padding:0.3rem 0.7rem; border-radius:6px; font-size:0.8rem; border:1px solid var(--border); }
.event-content { padding:1.2rem; flex:1; display:flex; flex-direction:column; gap:0.65rem; }
.event-meta { display:flex; gap:0.8rem; flex-wrap:wrap; align-items:center; }
.event-date,.event-time { display:flex; align-items:center; gap:0.3rem; font-size:0.78rem; color:var(--text-muted); font-weight:500; }
.event-title { font-size:1rem; font-weight:700; line-height:1.35; }
.event-description { font-size:0.85rem; color:var(--text-tertiary); line-height:1.6; flex:1; }
.progress-info { display:flex; justify-content:space-between; margin-bottom:0.4rem; }
.progress-label,.progress-value { font-size:0.75rem; color:var(--text-muted); font-weight:500; }
.progress-bar { height:4px; background:rgba(255,255,255,.08); border-radius:4px; overflow:hidden; }
.progress-fill { height:100%; background:linear-gradient(90deg,var(--primary),var(--primary-light)); border-radius:4px; transition:width 0.5s ease; }
.event-footer { display:flex; gap:1rem; flex-wrap:wrap; }
.event-location,.event-organizer { display:flex; align-items:center; gap:0.3rem; font-size:0.78rem; color:var(--text-muted); }
.event-location i,.event-organizer i { color:var(--primary-light); font-size:0.7rem; }
.btn-join { display:flex; align-items:center; justify-content:center; gap:0.5rem; width:100%; padding:0.7rem; background:rgba(27,107,79,.15); border:1px solid rgba(27,107,79,.3); border-radius:10px; color:#6ddbad; font-family:inherit; font-size:0.85rem; font-weight:700; cursor:pointer; transition:all 0.2s; margin-top:auto; }
.btn-join:hover { background:var(--primary); border-color:var(--primary); color:#fff; }

/* YANDEX MAP */
.ya-map-container { width:100%; height:420px; border-radius:var(--radius-xl); overflow:hidden; border:1px solid var(--border); background:var(--card-bg); }

/* MODAL */
.modal { position:fixed; inset:0; background:rgba(0,0,0,.75); backdrop-filter:blur(6px); z-index:400; display:none; align-items:center; justify-content:center; padding:1rem; }
.modal.open { display:flex; }
.modal-content { background:var(--dark-2); border:1px solid var(--border); border-radius:var(--radius-xl); width:100%; max-width:580px; max-height:90vh; overflow-y:auto; animation:modalIn 0.3s cubic-bezier(.34,1.56,.64,1); }
@keyframes modalIn { from{opacity:0;transform:scale(.92) translateY(16px)} to{opacity:1;transform:scale(1) translateY(0)} }
.modal-header { display:flex; justify-content:space-between; align-items:flex-start; padding:1.5rem 1.5rem 0; gap:1rem; }
.modal-header h2 { font-size:1.2rem; font-weight:700; line-height:1.3; }
.modal-close { background:var(--card-bg); border:1px solid var(--border); color:var(--text-muted); width:36px; height:36px; border-radius:50%; font-size:1rem; cursor:pointer; flex-shrink:0; transition:all 0.2s; display:flex; align-items:center; justify-content:center; }
.modal-close:hover { background:var(--card-bg-hover); color:#fff; }
.modal-body { padding:1.5rem; }
.modal-emoji { font-size:3rem; text-align:center; padding:1rem 0 0.5rem; }
.modal-info-grid { display:grid; grid-template-columns:1fr 1fr; gap:0.9rem; margin-bottom:1.2rem; }
.modal-info-item { display:flex; flex-direction:column; gap:0.2rem; background:rgba(255,255,255,.03); border:1px solid var(--border); border-radius:10px; padding:0.7rem 0.9rem; }
.modal-info-label { font-size:0.68rem; color:var(--text-muted); font-weight:600; text-transform:uppercase; letter-spacing:.5px; }
.modal-info-value { font-size:0.9rem; color:#fff; font-weight:600; }
.modal-tags { display:flex; gap:0.5rem; flex-wrap:wrap; margin-bottom:1.2rem; }
.modal-tag { background:rgba(27,107,79,.15); border:1px solid rgba(27,107,79,.3); color:#6ddbad; padding:0.25rem 0.7rem; border-radius:6px; font-size:0.75rem; font-weight:600; }
.modal-description { font-size:0.9rem; color:var(--text-tertiary); line-height:1.7; margin-bottom:1.2rem; }
.modal-progress { margin-bottom:1.5rem; }
.modal-actions { display:flex; gap:0.8rem; }
.modal-actions .btn { flex:1; justify-content:center; }
.loading-spinner { width:36px; height:36px; border:3px solid var(--border); border-top-color:var(--primary-light); border-radius:50%; animation:spin 0.8s linear infinite; margin:2rem auto; }
@keyframes spin { to{transform:rotate(360deg)} }

/* FOOTER */
.eco-footer { background:rgba(0,0,0,.2); border-top:1px solid var(--border); padding:3rem 1.5rem 2rem; }
.footer-grid { display:grid; grid-template-columns:2fr 1fr 1fr; gap:3rem; max-width:var(--max-width); margin:0 auto 2rem; }
.footer-logo { display:flex; align-items:center; gap:0.6rem; margin-bottom:1rem; font-size:1.2rem; font-weight:800; }
.footer-logo-image { height:32px; }
.footer-text { color:var(--text-muted); font-size:0.875rem; line-height:1.6; max-width:280px; }
.eco-footer h4 { color:var(--text-secondary); font-size:0.875rem; font-weight:700; margin-bottom:1rem; text-transform:uppercase; letter-spacing:.5px; }
.eco-footer ul { list-style:none; display:flex; flex-direction:column; gap:0.5rem; }
.eco-footer ul li a { color:var(--text-muted); text-decoration:none; font-size:0.875rem; transition:color 0.2s; }
.eco-footer ul li a:hover { color:var(--text-secondary); }
.social-links { display:flex; gap:0.8rem; }
.social-links a { width:38px; height:38px; border-radius:50%; border:1px solid var(--border); display:flex; align-items:center; justify-content:center; color:var(--text-muted); text-decoration:none; transition:all 0.2s; font-size:0.9rem; }
.social-links a:hover { border-color:var(--primary-light); color:var(--primary-light); }
.footer-bottom { text-align:center; padding-top:2rem; border-top:1px solid var(--border); max-width:var(--max-width); margin:0 auto; }
.footer-bottom p { color:var(--text-muted); font-size:0.82rem; }

/* ========== EVENTS PAGE LAYOUT ========== */
.events-page-header { padding:3rem 0 2rem; }
.events-page-header h1 { font-size:clamp(2rem,4vw,3rem); font-weight:800; margin-bottom:0.5rem; }
.events-page-header p { color:var(--text-tertiary); }
.events-page-layout { display:grid; grid-template-columns:280px 1fr; gap:2rem; align-items:start; margin-bottom:5rem; }
.events-sidebar { display:flex; flex-direction:column; gap:1.2rem; position:sticky; top:100px; }
.events-sidebar-card { background:var(--card-bg); border:1px solid var(--border); border-radius:var(--radius-lg); padding:1.2rem; }
.sidebar-section-title { font-size:0.82rem; font-weight:700; color:var(--text-muted); text-transform:uppercase; letter-spacing:.5px; margin-bottom:1rem; }
.events-main {}
.events-filters { display:flex; gap:0.8rem; margin-bottom:1.5rem; flex-wrap:wrap; }
.filter-select { background:var(--card-bg); border:1px solid var(--border); color:var(--text-secondary); padding:0.6rem 1rem; border-radius:var(--radius); font-family:inherit; font-size:0.85rem; cursor:pointer; transition:all 0.2s; }
.filter-select:focus { outline:none; border-color:var(--primary-light); }
.filter-select option { background:var(--dark-2); }
.search-input-wrap { position:relative; flex:1; min-width:200px; }
.search-input-wrap i { position:absolute; left:1rem; top:50%; transform:translateY(-50%); color:var(--text-muted); font-size:0.85rem; }
.search-input { width:100%; background:var(--card-bg); border:1px solid var(--border); color:var(--text-primary); padding:0.6rem 1rem 0.6rem 2.6rem; border-radius:var(--radius); font-family:inherit; font-size:0.85rem; transition:all 0.2s; }
.search-input:focus { outline:none; border-color:var(--primary-light); background:var(--card-bg-hover); }
.search-input::placeholder { color:var(--text-muted); }

/* ========== MINI CALENDAR ========== */
.mini-cal-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:0.8rem; }
.mini-cal-title { font-size:0.88rem; font-weight:700; color:var(--text-primary); }
.mini-cal-nav { background:none; border:none; color:var(--text-muted); font-size:1.1rem; cursor:pointer; padding:0.2rem 0.4rem; border-radius:6px; transition:all 0.15s; }
.mini-cal-nav:hover { background:var(--card-bg-hover); color:#fff; }
.mini-cal-grid { display:grid; grid-template-columns:repeat(7,1fr); gap:2px; margin-bottom:4px; }
.mini-cal-dow { text-align:center; font-size:0.65rem; font-weight:700; color:var(--text-muted); padding:0.25rem 0; text-transform:uppercase; }
.mini-cal-days { display:grid; grid-template-columns:repeat(7,1fr); gap:2px; }
.cal-day { text-align:center; font-size:0.78rem; padding:0.3rem; border-radius:6px; cursor:default; color:var(--text-tertiary); line-height:1; position:relative; }
.cal-day.other-month { color:var(--text-muted); opacity:.4; }
.cal-day.today { background:rgba(42,157,143,.2); color:#6ddbad; font-weight:700; }
.cal-day.has-event { cursor:pointer; }
.cal-day.has-event::after { content:''; position:absolute; bottom:2px; left:50%; transform:translateX(-50%); width:4px; height:4px; border-radius:50%; background:var(--accent); }
.cal-day.has-event:hover { background:rgba(27,107,79,.2); color:#fff; }
.cal-day.selected { background:var(--primary); color:#fff!important; font-weight:700; }
.cal-day.selected::after { background:#fff; }

/* Upcoming compact list */
.upcoming-compact-list { display:flex; flex-direction:column; gap:0.6rem; max-height:360px; overflow-y:auto; }
.upcoming-compact-list::-webkit-scrollbar { width:3px; }
.upcoming-compact-list::-webkit-scrollbar-thumb { background:var(--border); border-radius:3px; }
.upcoming-compact-item { display:flex; gap:0.8rem; padding:0.7rem 0.8rem; border-radius:10px; background:rgba(255,255,255,.03); border:1px solid rgba(255,255,255,.05); cursor:pointer; transition:all 0.2s; }
.upcoming-compact-item:hover { background:var(--card-bg-hover); border-color:var(--primary-light); }
.upcoming-compact-date { font-size:0.72rem; font-weight:800; color:var(--accent-light); white-space:nowrap; min-width:52px; line-height:1.3; }
.upcoming-compact-body { min-width:0; }
.upcoming-compact-title { font-size:0.82rem; font-weight:700; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; margin-bottom:0.15rem; }
.upcoming-compact-meta { font-size:0.72rem; color:var(--text-muted); }

/* ========== PROFILE ========== */
.profile-container { padding:2.5rem 0 5rem; }
.profile-header { display:flex; align-items:center; gap:2rem; margin-bottom:2rem; padding:1.8rem 2rem; background:var(--card-bg); border:1px solid var(--border); border-radius:var(--radius-xl); flex-wrap:wrap; }
.profile-avatar { width:80px; height:80px; border-radius:50%; background:linear-gradient(135deg,var(--primary),var(--primary-light)); display:flex; align-items:center; justify-content:center; font-size:2.4rem; flex-shrink:0; box-shadow:0 8px 24px rgba(27,107,79,.3); }
.profile-info { flex:1; min-width:200px; }
.profile-info h1 { font-size:1.5rem; font-weight:800; margin-bottom:0.3rem; }
.profile-info p { color:var(--text-tertiary); font-size:0.88rem; margin-bottom:0.2rem; }
.district-badge { display:inline-flex; align-items:center; gap:0.3rem; background:rgba(27,107,79,.15); border:1px solid rgba(27,107,79,.3); color:#6ddbad; padding:0.2rem 0.7rem; border-radius:6px; font-size:0.75rem; font-weight:600; margin-top:0.3rem; }
.profile-qr-block { display:flex; flex-direction:column; align-items:center; gap:0.4rem; flex-shrink:0; }
.profile-qr-block canvas, .profile-qr-block img { border-radius:8px; border:2px solid rgba(255,255,255,.1); }
.profile-qr-label { font-size:0.68rem; color:var(--text-muted); font-weight:600; text-transform:uppercase; letter-spacing:.4px; }
.stats-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); gap:1rem; margin-bottom:2rem; }
.stat-card { background:var(--card-bg); border:1px solid var(--border); border-radius:var(--radius-lg); padding:1.2rem; text-align:center; transition:all 0.2s; }
.stat-card:hover { border-color:var(--primary-light); transform:translateY(-2px); }
.stat-card .stat-icon { font-size:1.8rem; margin-bottom:0.4rem; display:block; }
.stat-card .stat-value { display:block; font-size:1.8rem; font-weight:800; color:var(--accent-light); }
.stat-card .stat-label { color:var(--text-muted); font-size:0.78rem; font-weight:500; }
.profile-tabs { display:flex; gap:0.4rem; background:var(--card-bg); border:1px solid var(--border); border-radius:var(--radius); padding:0.35rem; margin-bottom:2rem; flex-wrap:wrap; }
.profile-tab-btn { flex:1; min-width:100px; padding:0.6rem 0.8rem; border-radius:10px; border:none; background:transparent; color:var(--text-muted); font-family:inherit; font-size:0.82rem; font-weight:600; cursor:pointer; transition:all 0.2s; white-space:nowrap; }
.profile-tab-btn.active { background:var(--primary); color:#fff; box-shadow:0 3px 10px rgba(27,107,79,.3); }
.profile-tab-btn:hover:not(.active) { color:#fff; background:rgba(255,255,255,.05); }
.profile-tab-content { display:none; }
.profile-tab-content.active { display:block; }
.profile-form { background:var(--card-bg); border:1px solid var(--border); border-radius:var(--radius-lg); padding:1.5rem; margin-bottom:1.5rem; }
.profile-form h2 { font-size:1.1rem; font-weight:700; margin-bottom:1.5rem; display:flex; align-items:center; gap:0.5rem; }
.form-group { margin-bottom:1.2rem; }
.form-label { display:block; font-size:0.8rem; font-weight:600; color:var(--text-muted); margin-bottom:0.4rem; text-transform:uppercase; letter-spacing:.4px; }
.form-input,.form-select,.form-textarea { width:100%; background:rgba(255,255,255,.04); border:1px solid var(--border); color:var(--text-primary); padding:0.72rem 1rem; border-radius:var(--radius); font-family:inherit; font-size:0.9rem; transition:all 0.2s; }
.form-input:focus,.form-select:focus,.form-textarea:focus { outline:none; border-color:var(--primary-light); background:rgba(255,255,255,.07); }
.form-input::placeholder,.form-textarea::placeholder { color:var(--text-muted); }
.form-select option { background:var(--dark-2); }
.form-textarea { min-height:100px; resize:vertical; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
.registration-list { display:flex; flex-direction:column; gap:0.8rem; }
.registration-item { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:1rem 1.2rem; background:var(--card-bg); border:1px solid var(--border); border-radius:var(--radius); transition:all 0.2s; }
.registration-item:hover { border-color:var(--primary-light); background:var(--card-bg-hover); }
.reg-info { flex:1; min-width:0; }
.reg-title { font-weight:700; font-size:0.9rem; margin-bottom:0.25rem; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.reg-meta { font-size:0.78rem; color:var(--text-muted); display:flex; gap:0.8rem; flex-wrap:wrap; }
.reg-actions { display:flex; gap:0.5rem; flex-shrink:0; }
.empty-state { text-align:center; padding:3rem 1rem; color:var(--text-muted); }
.empty-state-icon { font-size:3rem; margin-bottom:0.8rem; opacity:.5; display:block; }
.empty-state h3 { font-size:1rem; font-weight:600; margin-bottom:0.4rem; color:var(--text-tertiary); }
.empty-state p { font-size:0.875rem; margin-bottom:1.5rem; }

/* ========== ADMIN LAYOUT ========== */
.admin-layout { display:grid; grid-template-columns:220px 1fr; gap:2rem; padding:2rem 0 5rem; }
.admin-sidebar { background:var(--card-bg); border:1px solid var(--border); border-radius:var(--radius-lg); padding:1.2rem; height:fit-content; position:sticky; top:100px; }
.admin-sidebar-title { font-size:0.68rem; font-weight:700; color:var(--text-muted); text-transform:uppercase; letter-spacing:.8px; padding:0.5rem 0.8rem; margin-bottom:0.5rem; }
.sidebar-link { display:flex; align-items:center; gap:0.7rem; padding:0.7rem 0.8rem; border-radius:10px; color:var(--text-tertiary); text-decoration:none; font-size:0.875rem; font-weight:600; transition:all 0.2s; }
.sidebar-link:hover { background:rgba(255,255,255,.05); color:#fff; }
.sidebar-link.active { background:rgba(27,107,79,.15); color:#6ddbad; }
.sidebar-link i { width:18px; text-align:center; font-size:0.85rem; }
.sidebar-badge { margin-left:auto; background:var(--accent); color:var(--dark); padding:0.1rem 0.45rem; border-radius:4px; font-size:0.68rem; font-weight:700; }
.admin-page-title { font-size:1.8rem; font-weight:800; margin-bottom:0.3rem; }
.admin-page-subtitle { color:var(--text-muted); font-size:0.875rem; margin-bottom:2rem; }
.admin-stats-row { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:1rem; margin-bottom:2rem; }
.admin-stat { background:var(--card-bg); border:1px solid var(--border); border-radius:var(--radius-lg); padding:1.2rem; display:flex; align-items:center; gap:1rem; transition:all 0.2s; }
.admin-stat:hover { border-color:var(--primary-light); transform:translateY(-2px); }
.admin-stat-icon { width:44px; height:44px; border-radius:12px; display:flex; align-items:center; justify-content:center; font-size:1.3rem; flex-shrink:0; }
.admin-stat-icon.green{background:rgba(27,107,79,.2)} .admin-stat-icon.yellow{background:rgba(233,196,106,.2)} .admin-stat-icon.blue{background:rgba(42,157,143,.2)} .admin-stat-icon.red{background:rgba(224,92,92,.2)}
.admin-stat-value { font-size:1.7rem; font-weight:800; line-height:1; display:block; }
.admin-stat-label { font-size:0.75rem; color:var(--text-muted); font-weight:500; }

/* TABLE */
.table-wrap { background:var(--card-bg); border:1px solid var(--border); border-radius:var(--radius-lg); overflow:hidden; }
.table-header { display:flex; justify-content:space-between; align-items:center; padding:1.2rem 1.5rem; border-bottom:1px solid var(--border); }
.table-title { font-size:0.95rem; font-weight:700; }
.table { width:100%; border-collapse:collapse; }
.table th { text-align:left; padding:0.8rem 1rem; font-size:0.7rem; font-weight:700; color:var(--text-muted); text-transform:uppercase; letter-spacing:.5px; border-bottom:1px solid var(--border); background:rgba(255,255,255,.02); }
.table td { padding:0.9rem 1rem; font-size:0.875rem; color:var(--text-secondary); border-bottom:1px solid rgba(255,255,255,.04); vertical-align:middle; }
.table tr:last-child td { border-bottom:none; }
.table tr:hover td { background:rgba(255,255,255,.025); }
.table-actions { display:flex; gap:0.5rem; align-items:center; flex-wrap:wrap; }
.badge { display:inline-flex; align-items:center; gap:0.3rem; padding:0.25rem 0.65rem; border-radius:6px; font-size:0.72rem; font-weight:700; }
.badge-success{background:rgba(58,170,106,.15);color:#3aaa6a;border:1px solid rgba(58,170,106,.3)}
.badge-warning{background:rgba(240,165,0,.15);color:#f0a500;border:1px solid rgba(240,165,0,.3)}
.badge-danger{background:rgba(224,92,92,.15);color:var(--danger);border:1px solid rgba(224,92,92,.3)}
.badge-info{background:rgba(42,157,143,.15);color:#2A9D8F;border:1px solid rgba(42,157,143,.3)}
.badge-muted{background:rgba(255,255,255,.06);color:var(--text-muted);border:1px solid var(--border)}

/* TOGGLE */
.attended-toggle { display:flex; align-items:center; gap:0.6rem; cursor:pointer; }
.toggle-switch { width:38px; height:20px; background:rgba(255,255,255,.1); border-radius:20px; position:relative; transition:background 0.25s; flex-shrink:0; }
.toggle-switch::after { content:''; position:absolute; top:2px; left:2px; width:16px; height:16px; border-radius:50%; background:#fff; transition:transform 0.25s; }
.toggle-switch.on { background:var(--primary); }
.toggle-switch.on::after { transform:translateX(18px); }

/* ORG LAYOUT */
.org-layout { display:grid; grid-template-columns:220px 1fr; gap:2rem; padding:2rem 0 5rem; }

/* AUTH */
.auth-page { display:grid; grid-template-columns:1fr 1fr; min-height:calc(100vh - 80px); gap:3rem; align-items:center; padding:2rem 0; }
.auth-promo h1 { font-size:2.6rem; font-weight:800; line-height:1.15; margin-bottom:1rem; letter-spacing:-.5px; }
.auth-promo p { font-size:1rem; color:var(--text-tertiary); line-height:1.7; }
.auth-tabs { display:flex; gap:0.4rem; background:var(--card-bg); border:1px solid var(--border); border-radius:var(--radius); padding:0.3rem; margin-bottom:1.5rem; }
.auth-tab { flex:1; padding:0.6rem; border:none; border-radius:10px; background:transparent; color:var(--text-muted); font-family:inherit; font-size:0.82rem; font-weight:700; cursor:pointer; transition:all 0.2s; }
.auth-tab.active { background:var(--primary); color:#fff; }
.auth-box { background:var(--card-bg); border:1px solid var(--border); border-radius:var(--radius-xl); padding:2rem; }
.auth-form { display:none; }
.auth-form.active { display:block; }
.auth-form h2 { font-size:1.2rem; font-weight:700; margin-bottom:1.5rem; }
.auth-submit { width:100%; padding:0.8rem; background:var(--primary); color:#fff; border:none; border-radius:var(--radius); font-family:inherit; font-size:0.9rem; font-weight:700; cursor:pointer; transition:all 0.2s; box-shadow:0 4px 16px rgba(27,107,79,.3); margin-top:1rem; }
.auth-submit:hover { background:var(--primary-light); transform:translateY(-1px); }

/* EVENT FORM */
.event-form-page { padding:2rem 0 5rem; max-width:700px; }
.event-form-page h1 { font-size:2rem; font-weight:800; margin-bottom:2rem; }
.form-card { background:var(--card-bg); border:1px solid var(--border); border-radius:var(--radius-lg); padding:1.5rem; margin-bottom:1.2rem; }
.form-card-title { font-size:0.82rem; font-weight:700; color:var(--text-muted); text-transform:uppercase; letter-spacing:.5px; margin-bottom:1.2rem; }
.tag-input-area { display:flex; flex-wrap:wrap; gap:0.5rem; align-items:center; background:rgba(255,255,255,.04); border:1px solid var(--border); border-radius:var(--radius); padding:0.6rem 1rem; min-height:48px; cursor:text; transition:border-color 0.2s; }
.tag-input-area:focus-within { border-color:var(--primary-light); }
.tag-chip { display:flex; align-items:center; gap:0.3rem; background:rgba(27,107,79,.2); border:1px solid rgba(27,107,79,.35); color:#6ddbad; padding:0.2rem 0.6rem; border-radius:6px; font-size:0.78rem; font-weight:600; }
.tag-chip button { background:none; border:none; color:inherit; cursor:pointer; padding:0; font-size:0.8rem; opacity:.7; }
.tag-chip button:hover { opacity:1; }
.tag-hidden-input { border:none; background:transparent; color:var(--text-primary); font-family:inherit; font-size:0.875rem; outline:none; min-width:60px; flex:1; }

/* ERROR PAGE */
.error-page { display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:60vh; text-align:center; padding:2rem; }
.error-code { font-size:8rem; font-weight:800; color:var(--primary); opacity:.3; line-height:1; }
.error-title { font-size:2rem; font-weight:700; margin-bottom:0.8rem; }
.error-desc { color:var(--text-muted); margin-bottom:2rem; }

/* SCAN QR */
.scan-result-box { padding:1rem 1.2rem; border-radius:var(--radius); margin-bottom:1rem; font-weight:700; font-size:1rem; display:flex; align-items:center; gap:0.8rem; }
.scan-result-box.success{background:rgba(58,170,106,.15);border:1px solid rgba(58,170,106,.4);color:#3aaa6a}
.scan-result-box.error{background:rgba(224,92,92,.15);border:1px solid rgba(224,92,92,.4);color:var(--danger)}
.scan-result-box.warning{background:rgba(240,165,0,.15);border:1px solid rgba(240,165,0,.4);color:var(--warning)}
.scan-log-item{display:flex;align-items:center;gap:.7rem;padding:.6rem .8rem;background:var(--card-bg);border-radius:10px;font-size:.85rem}

/* RESPONSIVE */
@media(max-width:1024px){
    .admin-layout,.org-layout{grid-template-columns:1fr}
    .admin-sidebar{position:relative;top:0;display:flex;gap:.4rem;flex-wrap:wrap;padding:.8rem}
    .admin-sidebar-title{display:none}
    .events-page-layout{grid-template-columns:1fr}
    .events-sidebar{position:relative;top:0;display:grid;grid-template-columns:1fr 1fr;gap:1rem}
    .auth-page{grid-template-columns:1fr}
    .auth-promo{display:none}
    .footer-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:768px){
    .nav-links-desktop{display:none}
    .menu-toggle{display:flex}
    .main-content{padding:0 1rem}
    .eco-hero{padding:2.5rem 0 2rem;min-height:auto}
    .hero-stats{gap:1.2rem}
    .hero-stat .stat-value{font-size:1.5rem}
    .events-grid{grid-template-columns:1fr}
    .profile-header{flex-direction:column;text-align:center}
    .profile-qr-block{margin-top:.5rem}
    .form-row{grid-template-columns:1fr}
    .modal-info-grid{grid-template-columns:1fr}
    .flash-messages{right:1rem;left:1rem;max-width:none}
    .footer-grid{grid-template-columns:1fr;gap:1.5rem}
    .table{font-size:.78rem}
    .table th,.table td{padding:.55rem .7rem}
    .events-sidebar{grid-template-columns:1fr}
}
@media(max-width:480px){
    .hero-title{font-size:2rem}
    .hero-actions{flex-direction:column}
    .hero-actions .btn{width:100%;justify-content:center}
    .stats-grid{grid-template-columns:1fr 1fr}
    .profile-tabs{flex-direction:column}
    .profile-tab-btn{text-align:center}
    .nav-wrapper{padding:.5rem 1rem}
}
