/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --event-primary: #D4A574;
    --event-secondary: #8B6F47;
    --event-background: #1A1A1A;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--event-background);
    color: #FFFFFF;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

html, body {
    max-width: 100%;
}

img,
video,
iframe {
    max-width: 100%;
    height: auto;
}

/* Top Header */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: var(--event-background);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-left {
    display: flex;
    align-items: center;
    position: relative;
}

.logo-link {
    text-decoration: none;
    display: inline-block;
    z-index: 2;
    position: relative;
}

.logo {
    height: 40px;
    width: auto;
    z-index: 2;
    position: relative;
}

.powered-by {
    font-size: 0.75rem;
    color: #B0B0B0;
    margin-left: 1rem;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.header-center {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.event-title-dropdown {
    font-size: 1.1rem;
    font-weight: 500;
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.dropdown-icon {
    font-size: 0.8rem;
    opacity: 0.7;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.icon-btn {
    background: none;
    border: none;
    color: #FFFFFF;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.icon-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.user-avatar {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
}

.user-avatar svg,
.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    color: #FFFFFF;
}

/* User Menu Container */
.user-menu-container {
    position: relative;
}

/* User Menu Dropdown */
.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    width: 250px;
    background-color: #2A2A2A;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
    z-index: 1001;
    overflow: hidden;
}

.user-menu-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 8px;
    width: 12px;
    height: 12px;
    background-color: #2A2A2A;
    transform: rotate(45deg);
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    color: #FFFFFF;
    text-decoration: none;
    transition: background-color 0.2s;
    position: relative;
    z-index: 1;
}

.user-menu-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.user-menu-item svg {
    flex-shrink: 0;
    color: #B0B0B0;
}

.user-menu-item span {
    font-size: 0.95rem;
    font-weight: 500;
}

.download-app-mobile-only {
    display: none !important;
}

/* Notifications */
.notification-container {
    position: relative;
}

.notification-btn {
    position: relative;
}

.notification-badge {
    position: absolute;
    top: -1px;
    right: -1px;
    background-color: #EF4444;
    color: #FFFFFF;
    font-size: 0.625rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.notifications-panel {
    position: absolute;
    top: calc(100% + 1rem);
    right: 0;
    width: 420px;
    max-width: 90vw;
    background-color: #2A2A2A;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
    z-index: 1001;
}

.notifications-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notifications-panel::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 16px;
    height: 16px;
    background-color: #2A2A2A;
    transform: rotate(45deg);
}

.notifications-content {
    position: relative;
    z-index: 1;
    padding: 1.5rem;
    max-height: 500px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: #333333;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.notification-item:last-of-type {
    margin-bottom: 1.5rem;
}

.notification-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background-color: var(--event-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #F5E6D3;
}

.notification-icon svg {
    width: 24px;
    height: 24px;
}

.notification-content {
    flex: 1;
    min-width: 0;
    text-align: center;
    width: 100%;
}

.notification-title {
    font-size: 1rem;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.notification-description {
    font-size: 0.875rem;
    color: #B3B3B3;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.notification-link {
    font-size: 0.875rem;
    color: #FFFFFF;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    word-break: break-all;
}

.notification-link:hover {
    text-decoration: underline;
}

.notification-time {
    font-size: 0.8rem;
    color: #808080;
    display: block;
    margin-top: 0.5rem;
}

.mark-read-btn {
    width: 100%;
    padding: 0.875rem;
    background: none;
    border: none;
    color: #B3B3B3;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    transition: color 0.2s;
    border-radius: 6px;
}

.mark-read-btn:hover {
    color: #FFFFFF;
    background-color: rgba(255, 255, 255, 0.05);
}

/* Main Container */
.main-container {
    display: flex;
    min-height: calc(100vh - 80px);
}

/* Header People Tabs */
.people-tabs {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: center;
}

.people-tab {
    padding: 0.5rem 1rem;
    color: #B0B0B0;
    text-decoration: none;
    font-size: 0.9rem;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.people-tab:hover {
    color: #FFFFFF;
}

.people-tab.active {
    color: var(--event-primary);
    border-bottom-color: var(--event-primary);
}

/* Schedule Tabs */
.schedule-tabs {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: center;
}

.schedule-tab {
    padding: 0.5rem 1rem;
    color: #B0B0B0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.schedule-tab:hover {
    color: #FFFFFF;
}

.schedule-tab.active {
    color: #FFFFFF;
    font-weight: 600;
}

/* Header Search */
.header-search {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-right: 1rem;
}

.search-input {
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #FFFFFF;
    font-size: 0.9rem;
    width: 300px;
}

.search-input::placeholder {
    color: #B0B0B0;
}

.search-input:focus {
    outline: none;
    border-color: var(--event-primary);
    background-color: rgba(255, 255, 255, 0.15);
}

.filter-btn {
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #FFFFFF;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--event-primary);
}

/* Filter and Settings Buttons */
.filter-header-btn,
.settings-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #FFFFFF;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.filter-header-btn:hover,
.settings-btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--event-primary);
}

.filter-header-btn span,
.settings-btn span {
    font-size: 0.9rem;
}

/* Left Sidebar */
.left-sidebar {
    padding-top: 30px !important;
    width: 15%;
    min-width: 200px;
    background-color: var(--event-background);
    padding: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    overflow-y: auto;
}

/* ── Event badge in sidebar ────────────────────────── */
.sidebar-event-badge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.85rem 1.25rem;
    background: color-mix(in srgb, var(--event-primary) 8%, transparent);
    border-bottom: 1px solid color-mix(in srgb, var(--event-primary) 20%, transparent);
    border-top: 1px solid color-mix(in srgb, var(--event-primary) 10%, transparent);
    margin-bottom: 1rem;
}

.sidebar-event-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.sidebar-event-label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--event-primary);
    text-transform: uppercase;
}

.sidebar-event-title {
    font-size: 0.78rem;
    color: color-mix(in srgb, var(--event-primary) 45%, #FFFFFF);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
    line-height: 1.3;
}

.sidebar-change-event {
    color: var(--event-primary);
    font-size: 0.8rem;
    flex-shrink: 0;
    padding: 0.3rem;
    border-radius: 5px;
    transition: background 0.18s, color 0.18s;
    line-height: 1;
}

.sidebar-change-event:hover {
    background: color-mix(in srgb, var(--event-primary) 15%, transparent);
    color: color-mix(in srgb, var(--event-primary) 60%, #FFFFFF);
}

.sidebar-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #B0B0B0;
    padding: 0 1.5rem;
    margin-bottom: 2rem;
    padding-top: 2rem;
}

/* Sidebar Logo */
.sidebar-logo {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
}

.liv-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFFFFF;
    display: block;
    margin-bottom: 0.5rem;
}

.logo-pattern-small {
    width: 100%;
    height: 40px;
    background-image: 
        repeating-linear-gradient(45deg, 
            rgba(255, 255, 255, 0.02) 0px, 
            rgba(255, 255, 255, 0.02) 10px,
            transparent 10px, 
            transparent 20px);
    opacity: 0.3;
}

.sidebar-section {
    margin-bottom: 2rem;
}

.sidebar-section-title {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #B0B0B0;
    padding: 0 1.5rem;
    margin-bottom: 1rem;
}

.nav-menu {
    list-style: none;
}

.nav-item {
    margin-bottom: 0.25rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1.5rem;
    color: #FFFFFF;
    text-decoration: none;
    transition: all 0.2s;
    position: relative;
}

.nav-item.active .nav-link {
    background-color: var(--event-secondary);
    color: #FFFFFF;
}

.nav-item.active .nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: var(--event-primary);
}

.nav-link:hover:not(.nav-item.active .nav-link) {
    background-color: rgba(255, 255, 255, 0.05);
}

.nav-badge {
    margin-left: auto;
    background: var(--event-primary);
    color: #1A1A1A;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.nav-icon {
    flex-shrink: 0;
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

/* Main Content */
.main-content {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    max-width: none;
    padding: 2rem;
}

/* Notification Banner */
.notification-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background-color: rgba(139, 111, 71, 0.2);
    border-radius: 8px;
    margin-bottom: 2rem;
}

.notification-content {
    align-items: center;
    gap: 0.75rem;
}

.notification-icon {
    color: var(--event-primary);
}

.notification-actions {
    display: flex;
    gap: 1.5rem;
}

.notification-link {
    color: var(--event-primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: opacity 0.2s;
}

.notification-link:hover {
    opacity: 0.8;
}

/* Hero Section */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #2A2A2A 0%, var(--event-background) 100%);
    border-radius: 12px;
    padding: 2.5rem 2.25rem;
    min-height: 260px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url(../images/plazzo_serbelloni.jpeg);
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.65rem;
    line-height: 1.2;
    color: #FFFFFF;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #E0E0E0;
    margin-bottom: 1rem;
    font-weight: 400;
    line-height: 1.45;
}

.hero-date {
    font-size: 1.05rem;
    color: #FFFFFF;
    margin-bottom: 0.35rem;
    font-weight: 500;
}

.hero-location {
    font-size: 1rem;
    color: #B0B0B0;
}

/* Event Home — section cards below hero */
.event-home-sections {
    margin-bottom: 2rem;
}

.event-home-sections-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #B0B0B0;
    margin-bottom: 1rem;
}

.event-home-sections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.event-home-section-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    background-color: #252525;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 1.5rem;
    min-height: 220px;
    transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.event-home-section-card:hover {
    background-color: #2c2c2c;
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
    transform: translateY(-2px);
}

.event-home-section-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-bottom: 1.1rem;
    background: var(--event-secondary);
    color: #FFFFFF;
    font-size: 1.1rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.event-home-section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.event-home-section-desc {
    font-size: 0.875rem;
    color: #B0B0B0;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex: 1;
}

.event-home-section-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--event-primary);
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: auto;
    transition: gap 0.2s, opacity 0.2s;
}

.event-home-section-card:hover .event-home-section-cta {
    gap: 0.7rem;
}

.event-home-section-cta i {
    font-size: 0.72rem;
    transition: transform 0.2s;
}

.event-home-section-card:hover .event-home-section-cta i {
    transform: translateX(2px);
}

/* Right Sidebar */
.right-sidebar {
    width: 25%;
    min-width: 300px;
    padding: 2rem;
    background-color: var(--event-background);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cards */
.profile-card,
.announcement-card {
    background-color: #252525;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.profile-info {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.profile-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: #FFFFFF;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0;
    flex-shrink: 0;
    object-fit: cover;
}

.profile-details {
    flex: 1;
}

.profile-name {
    font-size: 1rem;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 0.25rem;
}

.profile-title {
    font-size: 0.875rem;
    color: #B0B0B0;
}

.card-toggle {
    background: none;
    border: none;
    color: #B0B0B0;
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.card-toggle:hover {
    color: #fff;
}

.card-toggle i {
    transition: transform 0.25s ease;
}

.profile-card.collapsed .card-toggle i {
    transform: rotate(180deg);
}

.card-body {
    margin-bottom: 1rem;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, margin 0.3s ease;
    max-height: 500px;
    opacity: 1;
}

.profile-card.collapsed .card-body {
    max-height: 0;
    opacity: 0;
    margin-bottom: 0;
}

.card-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
    max-height: 100px;
    opacity: 1;
}

.profile-card.collapsed .card-footer {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    border-top-color: transparent;
}

.profile-description,
.announcement-text {
    font-size: 0.9rem;
    color: #E0E0E0;
    line-height: 1.6;
}

.profile-edit-link {
    color: var(--event-primary);
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: opacity 0.2s;
}

.profile-edit-link:hover {
    opacity: 0.8;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #FFFFFF;
}

.card-time {
    font-size: 0.875rem;
    color: #B0B0B0;
}

/* Past Sessions Section */
.past-sessions {
    padding: 2rem;
    background-color: var(--event-background);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sessions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.sessions-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.view-schedule-link {
    color: var(--event-primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: opacity 0.2s;
}

.view-schedule-link:hover {
    opacity: 0.8;
}

.sessions-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.sessions-scroll::-webkit-scrollbar {
    height: 8px;
}

.sessions-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.sessions-scroll::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.session-card {
    background-color: #252525;
    border-radius: 8px;
    padding: 1.25rem;
    min-width: 250px;
    flex-shrink: 0;
}

.session-time {
    font-size: 0.75rem;
    color: #B0B0B0;
    margin-bottom: 0.5rem;
}

.session-date {
    font-size: 0.75rem;
    color: #B0B0B0;
    margin-bottom: 0.5rem;
}

.session-status {
    display: inline-block;
    font-size: 0.75rem;
    color: #B0B0B0;
    padding: 0.25rem 0.5rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.session-title {
    font-size: 1rem;
    font-weight: 500;
    color: #FFFFFF;
    line-height: 1.4;
}

/* Hamburger Menu Button */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    margin-right: 1rem;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background-color: #FFFFFF;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger-btn.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Sidebar backdrop (mobile only) */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .left-sidebar {
        width: 20%;
    }
    
    .right-sidebar {
        width: 30%;
    }
    
    .search-input {
        width: 250px;
    }
}

@media (max-width: 768px) {
    /* Show hamburger menu */
    .hamburger-btn {
        display: flex;
    }

    /* Show sidebar backdrop */
    .sidebar-overlay {
        display: block;
    }

    /* Sidebar becomes a slide-in drawer */
    .left-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        width: 260px !important;
        min-width: 0;
        z-index: 2000;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        padding-top: 0 !important;
    }

    .left-sidebar.mobile-open {
        transform: translateX(0);
    }
    
    /* Hide powered by text on mobile */
    .powered-by {
        display: none;
    }
    
    /* Adjust header */
    .top-header {
        padding: 1rem 1rem;
        position: relative;
    }
    
    .header-left {
        position: static;
        flex: 1;
        justify-content: center;
    }
    
    .hamburger-btn {
        position: absolute;
        left: 1rem;
        z-index: 10;
    }
    
    .logo-link {
        margin: 0 auto;
    }
    
    .header-center {
        display: none;
    }
    
    .header-right {
        gap: 1rem;
        position: absolute;
        right: 1rem;
    }
    
    .header-right .icon-btn {
        padding: 0.25rem;
    }
    
    .header-right .icon-btn span {
    }
    
    .user-avatar {
        width: 35px;
        height: 35px;
    }
    
    /* User menu responsive */
    .user-menu-dropdown {
        width: 220px;
        right: -0.5rem;
    }
    
    .user-menu-dropdown::before {
        right: 1rem;
    }
    
    .user-menu-item {
        padding: 0.875rem 1rem;
    }
    
    .user-menu-item span {
        font-size: 0.9rem;
    }

    .download-app-mobile-only {
        display: block !important;
    }

    a.download-app-mobile-only,
    .user-menu-item.download-app-mobile-only {
        display: flex !important;
    }
    
    /* Mobile notification styles */
    .notification-container {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .notification-btn {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .notification-badge {
        position: absolute;
        top: -5px;
        right: -5px;
        width: 18px;
        height: 18px;
        font-size: 0.65rem;
        z-index: 100;
        pointer-events: none;
    }
    
    /* Main container adjustments */
    .main-container {
        flex-direction: column;
    }
    
    .right-sidebar {
        width: 100%;
        min-width: auto;
    }
    
    .main-content {
        max-width: none;
        width: auto;
        padding: 1.5rem 1rem;
    }
    
    .hero-title {
        font-size: 1.35rem;
        margin-bottom: 0.35rem;
        line-height: 1.25;
    }
    
    .hero-subtitle {
        display: none;
    }
    
    .hero-date {
        font-size: 0.88rem;
        margin-bottom: 0.15rem;
    }
    
    .hero-location {
        font-size: 0.78rem;
        line-height: 1.35;
    }
    
    .hero-section {
        padding: 1rem 0.9rem;
        min-height: 0;
        margin-bottom: 0.85rem;
        border-radius: 10px;
    }

    .event-home-sections {
        margin-bottom: 1.25rem;
    }

    .event-home-sections-label {
        margin-bottom: 0.55rem;
    }

    .event-home-sections-grid {
        grid-template-columns: 1fr;
        gap: 0.45rem;
    }

    .event-home-section-card {
        display: grid;
        grid-template-columns: auto 1fr auto;
        grid-template-rows: auto auto;
        align-items: center;
        column-gap: 0.7rem;
        row-gap: 0.12rem;
        padding: 0.65rem 0.8rem;
        min-height: 0;
        border-radius: 10px;
    }

    .event-home-section-card:hover {
        transform: none;
        box-shadow: none;
    }

    .event-home-section-icon {
        grid-column: 1;
        grid-row: 1 / span 2;
        align-self: center;
        width: 34px;
        height: 34px;
        margin-bottom: 0;
        border-radius: 8px;
        font-size: 0.85rem;
    }

    .event-home-section-title {
        grid-column: 2;
        grid-row: 1;
        flex: none;
        min-width: 0;
        margin-bottom: 0;
        font-size: 0.92rem;
        line-height: 1.2;
    }

    .event-home-section-desc {
        grid-column: 2;
        grid-row: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 1;
        overflow: hidden;
        margin: 0;
        font-size: 0.74rem;
        line-height: 1.3;
        color: #999;
    }

    .event-home-section-cta {
        grid-column: 3;
        grid-row: 1 / span 2;
        align-self: center;
        margin-top: 0;
        margin-left: 0;
        flex-shrink: 0;
        font-size: 0;
        gap: 0;
    }

    .event-home-section-cta i {
        font-size: 0.72rem;
    }
    
    .header-search {
        flex-direction: column;
        gap: 0.5rem;
        margin-right: 0;
    }
    
    .search-input {
        width: 100%;
    }
    
    .people-tabs {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .people-tab {
        font-size: 0.8rem;
    }
    
    .event-title-dropdown {
        font-size: 0.9rem;
    }
    
    .notifications-panel {
        width: calc(100vw - 4rem);
        right: -0.5rem;
    }
}

@media (max-width: 480px) {
    .logo {
        height: 32px;
    }

    .main-content {
        padding: 1rem 0.75rem;
    }

    .hero-title {
        font-size: 1.15rem;
    }
    
    .hero-date {
        font-size: 0.82rem;
    }
    
    .hero-location {
        font-size: 0.74rem;
    }

    .hero-section {
        padding: 0.85rem 0.75rem;
        margin-bottom: 0.75rem;
    }

    .event-home-section-card {
        padding: 0.55rem 0.7rem;
        gap: 0.6rem;
    }

    .event-home-section-icon {
        width: 30px;
        height: 30px;
        font-size: 0.78rem;
    }

    .event-home-section-desc {
        font-size: 0.7rem;
    }
}

/* Temporary hide */
.announcement-card {
    display: none;
}

/* ── Toast Notifications ── */
#toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    min-width: 260px;
    max-width: 380px;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.4;
    color: #fff;
    background: #1a1a1a;
    box-shadow: 0 4px 20px rgba(0,0,0,0.35);
    pointer-events: all;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast--visible {
    opacity: 1;
    transform: translateY(0);
}

.toast--success { background: #1a7a4a; }
.toast--error   { background: #b53030; }
.toast--info    { background: #1a1a1a; }
.toast--warning { background: #8a5a00; }

.toast__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.toast__message {
    flex: 1;
}

.toast__close {
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    padding: 0;
    transition: color 0.15s;
}

.toast__close:hover {
    color: #fff;
}
