
        :root {
            --dark: var(--navy-900,#0d1b2a);
            --accent: var(--brand-400,#00d084);
            --accent-dark: var(--brand-700,#00b070);
            --accent-light: rgba(0,208,132,0.10);
            --page-bg: #f8fafb;
            --radius: 16px;
            --t: all 0.3s ease;
        }
        * { box-sizing: border-box; margin: 0; padding: 0; }
        html, body { overflow-x: clip; } /* clip, not hidden — hidden breaks the sticky navbar */
        body {
            font-family: 'Inter', sans-serif;
            background: var(--page-bg, #f8fafb);
            color: var(--text-primary, #1a2332);
        }
        ::-webkit-scrollbar { width: 4px; }
        ::-webkit-scrollbar-thumb { background: var(--accent); border-radius: var(--radius,10px); }

        /* ── NAVBAR ── */
        .top-navbar {
            background: var(--dark);
            padding: 0.8rem 1.5rem;
            position: sticky; top: 0; z-index: 1050;
            box-shadow: 0 2px 24px rgba(0,0,0,0.35);
            display: flex; align-items: center;
            justify-content: space-between; gap: 1rem;
        }
        .navbar-brand {
            font-size: 1.3rem; font-weight: 800;
            color: white; text-decoration: none;
        }
        .back-btn {
            display: flex; align-items: center; gap: 0.4rem;
            color: rgba(255,255,255,0.6); text-decoration: none;
            font-size: 0.83rem; transition: var(--t);
        }
        .back-btn:hover { color: var(--accent); }

        /* ── HERO ── */
        .event-hero {
            background: var(--dark);
            padding: 3.5rem 1.5rem 2.5rem;
            position: relative; overflow: hidden;
        }
        .event-hero::before {
            content: '';
            position: absolute; inset: 0;
            background: linear-gradient(to bottom, rgba(13,27,42,0.45) 0%, var(--dark) 100%);
            z-index: 1;
        }
        .event-hero-bg {
            position: absolute; inset: 0;
            background-size: cover; background-position: center;
            filter: blur(2px) brightness(0.35);
            transform: scale(1.05);
        }
        .event-hero-content { position: relative; z-index: 2; }
        .event-wrap { max-width: 760px; }

        /* ── DETAILS / EVENT BODY ── */
        .event-description {
            font-size: 1rem;
            line-height: 1.85;
            color: #2d3748;
            white-space: pre-line;
        }

        .cta-card {
            background: var(--dark);
            border-radius: var(--radius);
            padding: 1.5rem;
            display: flex; align-items: center; justify-content: space-between;
            flex-wrap: wrap; gap: 1rem;
            margin: 1.75rem 0;
        }
        .btn-register-cta {
            background: var(--accent); color: var(--dark); border: none;
            border-radius: var(--radius,10px); padding: 0.75rem 1.6rem; font-size: 0.92rem;
            font-weight: 700; cursor: pointer; text-decoration: none;
            display: inline-flex; align-items: center; gap: 0.5rem;
            transition: var(--t);
        }
        .btn-register-cta:hover { background: var(--accent-dark); color: white; }

        /* ── ENGAGEMENT BAR ── */
        .engagement-bar {
            background: var(--surface,#fff);
            border-radius: var(--radius);
            border: 1.5px solid #e4ede8;
            padding: 1rem 1.25rem;
            display: flex; align-items: center;
            justify-content: space-between; flex-wrap: wrap; gap: 0.75rem;
            position: sticky; bottom: 1rem; z-index: 50;
            box-shadow: 0 8px 32px rgba(0,0,0,0.1);
            margin: 1.5rem 0;
        }

        .engage-btn {
            display: inline-flex; align-items: center; gap: 0.45rem;
            border: 1.5px solid #e4ede8; background: var(--surface,#fff);
            border-radius: var(--radius-pill,999px); padding: 0.5rem 1.1rem;
            font-size: 0.82rem; font-weight: 600; color: var(--text-secondary,#475569);
            cursor: pointer; font-family: 'Inter', sans-serif;
            transition: var(--t); text-decoration: none;
        }
        .engage-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }
        .engage-btn.liked { background: rgba(255,67,101,0.08); border-color: rgba(255,67,101,0.3); color: #ff4365; }
        .engage-btn.liked i { color: #ff4365; }

        .stat-chip {
            display: inline-flex; align-items: center; gap: 0.35rem;
            font-size: 0.78rem; color: var(--text-faint,#94a3b8); font-weight: 500;
        }

        /* ── SHARE DROPDOWN ── */
        .share-menu {
            position: absolute; bottom: calc(100% + 8px); right: 0;
            background: var(--dark); border-radius: var(--radius,10px);
            box-shadow: 0 8px 32px rgba(0,0,0,0.25);
            border: 1px solid rgba(255,255,255,0.08);
            overflow: hidden; min-width: 200px; max-width: calc(100vw - 2rem);
            display: none; z-index: 100;
        }
        .share-menu.open { display: block; }
        .share-option {
            display: flex; align-items: center; gap: 0.6rem;
            padding: 0.7rem 1rem; color: rgba(255,255,255,0.8);
            text-decoration: none; font-size: 0.82rem; font-weight: 500;
            transition: var(--t); cursor: pointer; border: none; background: none;
            font-family: 'Inter', sans-serif; width: 100%;
        }
        .share-option:hover { background: rgba(0,208,132,0.1); color: var(--accent); }

        /* ── COMMENTS ── */
        .comments-section {
            background: var(--surface,#fff); border-radius: var(--radius-lg,16px);
            border: 1.5px solid #e4ede8; overflow: hidden;
        }
        .comments-header {
            padding: 1.25rem 1.5rem; border-bottom: 1px solid #f0f7f2;
            display: flex; align-items: center; gap: 0.75rem;
        }
        .comment-count-badge {
            background: var(--accent-light); color: var(--accent);
            font-size: 0.72rem; font-weight: 700;
            padding: 3px 10px; border-radius: var(--radius-pill,999px);
        }

        .comment-form-wrap {
            padding: 1.25rem 1.5rem; border-bottom: 1px solid #f0f7f2;
            background: #fafdf8;
        }
        .comment-avatar {
            width: 40px; height: 40px; border-radius: 50%;
            background: var(--accent); display: flex; align-items: center;
            justify-content: center; font-size: 0.95rem; font-weight: 800;
            color: var(--dark); flex-shrink: 0;
        }
        .comment-textarea {
            width: 100%; border: 1.5px solid #e4ede8; border-radius: var(--radius,10px);
            padding: 0.75rem 1rem; font-size: 0.88rem; font-family: 'Inter', sans-serif;
            color: #1a2332; outline: none; resize: none; transition: var(--t);
            background: var(--surface,#fff);
        }
        .comment-textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,208,132,0.1); }
        .comment-input {
            width: 100%; border: 1.5px solid #e4ede8; border-radius: var(--radius,10px);
            padding: 0.6rem 0.9rem; font-size: 0.85rem; font-family: 'Inter', sans-serif;
            color: #1a2332; outline: none; transition: var(--t); background: var(--surface,#fff);
        }
        .comment-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,208,132,0.1); }
        .btn-comment-submit {
            background: var(--accent); color: var(--dark); border: none;
            border-radius: var(--radius,10px); padding: 0.55rem 1.4rem; font-size: 0.83rem;
            font-weight: 700; cursor: pointer; font-family: 'Inter', sans-serif;
            transition: var(--t); display: inline-flex; align-items: center; gap: 0.4rem;
        }
        .btn-comment-submit:hover { background: var(--accent-dark); color: white; }

        .comment-item {
            padding: 1.1rem 1.5rem; border-bottom: 1px solid #f5faf7;
            transition: background 0.2s;
        }
        .comment-item:last-child { border-bottom: none; }
        .comment-item:hover { background: #fafdf8; }

        .comment-avatar-sm {
            width: 34px; height: 34px; border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            font-size: 0.78rem; font-weight: 800; flex-shrink: 0;
        }
        .comment-name { font-size: 0.83rem; font-weight: 700; color: var(--text-primary,#0d1b2a); }
        .comment-date { font-size: 0.7rem; color: var(--text-faint,#94a3b8); }
        .comment-body {
            font-size: 0.88rem; color: #3d5050; line-height: 1.7;
            margin: 0.45rem 0 0.6rem 0;
        }
        .btn-reply {
            background: none; border: none; color: var(--text-faint,#94a3b8);
            font-size: 0.73rem; font-weight: 600; cursor: pointer;
            font-family: 'Inter', sans-serif; padding: 0; transition: var(--t);
        }
        .btn-reply:hover { color: var(--accent); }
        .btn-delete-comment {
            background: none; border: none; color: var(--text-faint,#94a3b8);
            font-size: 0.73rem; cursor: pointer;
            font-family: 'Inter', sans-serif; padding: 0 0 0 0.75rem; transition: var(--t);
        }
        .btn-delete-comment:hover { color: #ef4444; }

        .reply-thread {
            margin-top: 0.75rem; padding-left: 1rem;
            border-left: 2px solid rgba(0,208,132,0.2);
        }
        .reply-form { display: none; margin-top: 0.6rem; }
        .reply-form.open { display: block; }

        /* ── SIDEBAR ── */
        .sidebar-card {
            background: var(--surface,#fff); border-radius: var(--radius);
            border: 1.5px solid #e4ede8; overflow: hidden; margin-bottom: 1.25rem;
        }
        .sidebar-card-header {
            padding: 0.9rem 1.1rem; border-bottom: 1px solid #f0f7f2;
            font-size: 0.85rem; font-weight: 700; color: var(--text-primary,#0d1b2a);
            display: flex; align-items: center; gap: 0.5rem;
        }
        .detail-row {
            display: flex; align-items: flex-start; gap: 0.65rem;
            padding: 0.85rem 1.1rem; border-bottom: 1px solid #f5faf7;
            font-size: 0.85rem; color: #3d5050;
        }
        .detail-row:last-child { border-bottom: none; }
        .detail-row i { color: var(--accent); font-size: 0.9rem; margin-top: 2px; }

        .related-card {
            display: flex; gap: 0.75rem; padding: 0.85rem 1.1rem;
            border-bottom: 1px solid #f5faf7; text-decoration: none; color: inherit;
            transition: var(--t);
        }
        .related-card:last-child { border-bottom: none; }
        .related-card:hover { background: var(--accent-light); }
        .related-img {
            width: 60px; height: 52px; border-radius: var(--radius,10px);
            object-fit: cover; flex-shrink: 0;
        }
        .related-placeholder {
            width: 60px; height: 52px; border-radius: var(--radius,10px);
            background: linear-gradient(135deg, #e8f5ef, #f0faf3);
            display: flex; align-items: center; justify-content: center;
            font-size: 1.2rem; flex-shrink: 0;
        }

        /* ── TOAST ── */
        .toast-msg {
            position: fixed; bottom: 5.5rem; left: 50%;
            transform: translateX(-50%) translateY(20px);
            background: var(--dark); color: white;
            border-radius: var(--radius-pill,999px); padding: 0.6rem 1.4rem;
            font-size: 0.82rem; font-weight: 600;
            box-shadow: 0 4px 20px rgba(0,0,0,0.25);
            opacity: 0; transition: all 0.35s; z-index: 9999;
            display: flex; align-items: center; gap: 0.4rem;
            white-space: nowrap; pointer-events: none;
        }
        .toast-msg.show { opacity: 1; transform: translateX(-50%) translateY(0); }

        @media (max-width: 767px) {
            .event-hero { padding: 2.5rem 1rem 2rem; }
            .engagement-bar { bottom: 0.5rem; border-radius: var(--radius,10px); padding: 0.75rem 1rem; }
            .comments-header, .comment-form-wrap, .comment-item { padding-left: 1rem; padding-right: 1rem; }
            .engage-btn span { display: none; }
            .engage-btn { padding: 0.5rem 0.85rem; }
            .cta-card { flex-direction: column; align-items: stretch; text-align: center; }
        }
        @media (max-width: 400px) {
            .stat-chip span { display: none; }
        }
    