.bio-avatar-wrap,
.profile-avatar-wrap {
    position: relative;
    display: inline-block;
}

.avatar-edit-cluster {
    position: absolute;
    right: 6px;
    bottom: 6px;
    display: flex;
    gap: 0.4rem;
}

.profile-avatar-wrap .avatar-edit-cluster {
    right: -10px;
    bottom: -10px;
}

.avatar-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity var(--transition-fast, 0.2s), transform var(--transition-fast, 0.2s);
    box-shadow: var(--shadow-sm);
}

.avatar-action-btn:hover:not(:disabled) {
    opacity: 0.85;
    transform: translateY(-1px);
}

.avatar-action-btn:disabled {
    opacity: 0.6;
    cursor: default;
}

.avatar-action-btn.danger {
    background: #e53e3e;
}

:root {
    /* Color Palette */
    --soft-sky-blue: #C7DBF7;
    --muted-lavender: #BFC7DE;
    --warm-rose-taupe: #C59594;
    --deep-graphite-gray: #75708C;
    --true-black: #010101;

    /* Semantic Colors */
    --primary-color: var(--soft-sky-blue);
    --secondary-color: var(--muted-lavender);
    --accent-color: var(--warm-rose-taupe);
    --text-heading: var(--true-black);
    --text-body: var(--deep-graphite-gray);
    --bg-gradient-start: var(--soft-sky-blue);
    --bg-gradient-end: var(--muted-lavender);
    --neutral-white: #ffffff;
    --neutral-light: #f8f9fa;
    --neutral-grey: var(--deep-graphite-gray);
    /* Alias for compatibility */
    --neutral-dark: var(--true-black);
    --success-green: #48bb78;
    --danger-red: #e53e3e;
    --warning-yellow: #f6ad55;
    --info-blue: #4299e1;

    /* Typography */
    --font-heading: 'Poppins', 'Montserrat', sans-serif;
    --font-body: 'Inter', 'Nunito Sans', sans-serif;
    --font-accent: 'Playfair Display', 'Lora', serif;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(1, 1, 1, 0.08), 0 1px 2px rgba(1, 1, 1, 0.06);
    --shadow-md: 0 4px 8px rgba(1, 1, 1, 0.1), 0 2px 4px rgba(1, 1, 1, 0.08);
    --shadow-lg: 0 10px 20px rgba(1, 1, 1, 0.12), 0 4px 8px rgba(1, 1, 1, 0.1);
    --shadow-glow: 0 0 20px rgba(197, 149, 148, 0.3);

    /* Gradients */
    --accent-gradient: linear-gradient(135deg, var(--warm-rose-taupe), #b07a79);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    margin: 0;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    background-attachment: fixed;
    color: var(--text-body);
    overflow-x: hidden;
    line-height: 1.7;
    font-weight: 400;
}

#root {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex-grow: 1;
    padding-bottom: 2rem;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-heading);
    line-height: 1.3;
    margin: 0 0 1rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
}

p {
    color: var(--text-body);
    font-family: var(--font-body);
    line-height: 1.7;
}

.accent-text {
    font-family: var(--font-accent);
    font-style: italic;
}

/* ===== BUTTONS ===== */
.btn {
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    font-family: var(--font-body);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--neutral-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    background: linear-gradient(135deg, var(--accent-color) 0%, #d4a5a4 100%);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: var(--neutral-white);
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background-color: var(--accent-color);
    color: var(--neutral-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-sm {
    padding: 0.625rem 1.25rem;
    font-size: 0.9rem;
}

.w-100 {
    width: 100%;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.2rem;
    color: var(--deep-graphite-gray);
    transition: all var(--transition-normal);
    border-radius: 50%;
}

.icon-btn:hover {
    color: var(--accent-color);
    background: rgba(197, 149, 148, 0.1);
    transform: scale(1.1);
}

.icon-btn .saved {
    color: var(--accent-color);
}

/* ===== AMBASSADOR DASHBOARD ===== */
.apply-section {
    background: var(--neutral-white);
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.leaderboard-table {
    margin-top: 1rem;
    background: var(--neutral-white);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    overflow-x: auto;
}

.leaderboard-table table {
    width: 100%;
    border-collapse: collapse;
}

.leaderboard-table th,
.leaderboard-table td {
    padding: 0.875rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(117, 112, 140, 0.15);
}

.leaderboard-table th {
    background: rgba(197, 149, 148, 0.1);
    font-weight: 600;
    color: var(--text-heading);
}

.leaderboard-table tbody tr:hover {
    background: rgba(199, 219, 247, 0.2);
}

/* ===== EVENT LOGISTICS TOOLKIT ===== */
.task-section {
    background: var(--neutral-white);
    padding: 1.75rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.task-input {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.task-input input {
    flex: 1 1 240px;
    padding: 0.875rem 1rem;
    border: 2px solid rgba(117, 112, 140, 0.2);
    border-radius: 12px;
    font-family: var(--font-body);
    transition: border var(--transition-normal), box-shadow var(--transition-normal);
}

.task-input input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(197, 149, 148, 0.1);
}

.task-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.task-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    background: rgba(199, 219, 247, 0.25);
    border: 1px solid rgba(117, 112, 140, 0.1);
    box-shadow: var(--shadow-sm);
}

.task-card.completed {
    background: rgba(72, 187, 120, 0.2);
    border-color: rgba(72, 187, 120, 0.4);
}

.task-card p {
    margin: 0;
    font-weight: 600;
    color: var(--text-heading);
}

/* ===== LOGIN PAGE ===== */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    padding: 2rem;
}

.login-box {
    background: var(--neutral-white);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 450px;
    text-align: center;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.login-box:hover {
    box-shadow: var(--shadow-lg), 0 0 30px rgba(197, 149, 148, 0.2);
}

.login-box h1 {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.login-box p {
    color: var(--text-body);
    margin-bottom: 2rem;
    font-family: var(--font-accent);
    font-style: italic;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-heading);
    font-family: var(--font-body);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid rgba(117, 112, 140, 0.2);
    border-radius: 12px;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: all var(--transition-normal);
    background: var(--neutral-white);
    color: var(--text-body);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(197, 149, 148, 0.1);
}

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

.form-group .error {
    color: var(--danger-red);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--text-body);
    opacity: 0.7;
}

/* ===== PRE-LOGIN LANDING PAGE ===== */
.landing-page {
    min-height: 100vh;
    background: transparent;
}

.public-navbar {
    gap: 1rem;
    padding: 0.5rem 1.25rem;
}

.landing-nav-links {
    gap: 1.1rem;
    flex-wrap: wrap;
}

.landing-nav-links a {
    font-size: 0.85rem;
}

.landing-nav-cta {
    gap: 0.65rem;
}

.landing-main {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.landing-hero {
    position: relative;
    padding: 7rem 0 5rem;
    overflow: hidden;
}

.landing-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.35), transparent 45%),
        radial-gradient(circle at 85% 10%, rgba(197, 149, 148, 0.2), transparent 40%);
    pointer-events: none;
}

.landing-hero-content {
    position: relative;
    z-index: 1;
    max-width: 860px;
    text-align: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.landing-logo-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(117, 112, 140, 0.2);
    background: rgba(255, 255, 255, 0.55);
    box-shadow: var(--shadow-sm);
    padding: 0.45rem 0.95rem;
    color: var(--text-heading);
    font-weight: 700;
    margin-bottom: 1rem;
}

.landing-logo-chip i {
    color: var(--accent-color);
}

.landing-title {
    font-size: clamp(2.4rem, 5vw, 4rem);
    margin: 0 0 1rem;
}

.landing-subtitle {
    font-size: 1.1rem;
    margin: 0 auto;
    max-width: 760px;
}

.landing-cta-group {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.8rem;
}

.landing-section {
    margin-bottom: 0.25rem;
}

.landing-section > h2 {
    text-align: center;
    margin-bottom: 1.4rem;
}

.landing-problem-grid .feature-card,
.landing-step-card,
.landing-section .feature-card {
    background: var(--neutral-white);
    border: 1px solid rgba(117, 112, 140, 0.08);
    box-shadow: var(--shadow-sm);
}

.landing-solution-wrap {
    margin: 0;
}

.landing-solution-wrap .feature-section-content {
    padding: 2rem;
}

.landing-solution-wrap p {
    margin-top: 0;
    margin-bottom: 1.5rem;
    text-align: center;
}

.landing-final-cta {
    padding-top: 4rem;
    padding-bottom: 4rem;
    margin-top: 0.5rem;
}

.landing-final-cta .btn {
    margin-top: 1.2rem;
}

.landing-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.landing-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== NAVBAR ===== */
.navbar {
    background: var(--true-black);
    padding: 0.5rem 1.5rem;
    height: 56px;
    box-shadow: var(--shadow-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    gap: 1.5rem;
    transition: all var(--transition-normal);
}

.navbar .logo {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--soft-sky-blue);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-heading);
    transition: all var(--transition-normal);
    white-space: nowrap;
}

.navbar .logo:hover {
    color: var(--accent-color);
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--soft-sky-blue);
    font-weight: 600;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    padding: 0.5rem 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width var(--transition-normal);
}

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-links a:hover::after {
    width: 100%;
}

.search-bar {
    flex: 1;
    max-width: 400px;
    position: relative;
    display: flex;
    align-items: center;
}

.search-bar i {
    position: absolute;
    left: 1rem;
    color: var(--deep-graphite-gray);
    z-index: 1;
}

.search-bar input {
    width: 100%;
    padding: 0.5rem 1rem 0.5rem 2.25rem;
    border-radius: 50px;
    border: 2px solid rgba(199, 219, 247, 0.3);
    font-size: 0.85rem;
    transition: all var(--transition-normal);
    background: rgba(255, 255, 255, 0.1);
    color: var(--neutral-white);
    font-family: var(--font-body);
}

.search-bar input::placeholder {
    color: rgba(199, 219, 247, 0.7);
}

.search-bar input:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(197, 149, 148, 0.2);
}

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

.notification-icon {
    position: relative;
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.2rem;
    color: var(--soft-sky-blue);
    transition: all var(--transition-normal);
    border-radius: 50%;
}

.notification-icon:hover {
    color: var(--accent-color);
    background: rgba(197, 149, 148, 0.2);
    transform: scale(1.1);
}

.badge-count {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: var(--shadow-sm);
}

.notification-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    min-width: 300px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1001;
    border: 1px solid rgba(117, 112, 140, 0.1);
}

.notification-dropdown h4 {
    padding: 1rem;
    margin: 0;
    border-bottom: 1px solid rgba(117, 112, 140, 0.1);
    color: var(--text-heading);
}

.notification-item {
    padding: 1rem;
    border-bottom: 1px solid rgba(117, 112, 140, 0.05);
    transition: background var(--transition-fast);
}

.notification-item:hover {
    background: rgba(199, 219, 247, 0.1);
}

.notification-item small {
    display: block;
    color: var(--text-body);
    margin-top: 0.25rem;
    font-size: 0.8rem;
}

.user-menu {
    position: relative;
}

.notification-menu {
    position: relative;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-color);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.user-avatar:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: 50px;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 200px;
    max-height: min(70vh, 520px);
    overflow-y: auto;
    overscroll-behavior: contain;
    z-index: 1001;
    border: 1px solid rgba(117, 112, 140, 0.1);
}

.dropdown-menu button {
    padding: 0.875rem 1.5rem;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background var(--transition-fast);
    color: var(--text-body);
    font-family: var(--font-body);
}

.dropdown-menu button:hover {
    background-color: rgba(199, 219, 247, 0.1);
    color: var(--accent-color);
}

/* ===== DASHBOARD ===== */
.dashboard-layout {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.sidebar {
    width: 280px;
    flex-shrink: 0;
}

.filter-box {
    background: var(--neutral-white);
    padding: 1.75rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
    transition: all var(--transition-normal);
    border: 1px solid rgba(117, 112, 140, 0.05);
}

.filter-box:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.filter-box h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-heading);
    font-family: var(--font-heading);
}

.clear-filters {
    background: none;
    border: none;
    color: var(--accent-color);
    cursor: pointer;
    font-size: 0.875rem;
    text-decoration: underline;
    padding: 0;
    font-family: var(--font-body);
    transition: color var(--transition-fast);
}

.clear-filters:hover {
    color: var(--warm-rose-taupe);
}

.filter-box .tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: rgba(199, 219, 247, 0.3);
    padding: 0.5rem 0.875rem;
    border-radius: 20px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: inline-block;
    font-family: var(--font-body);
    color: var(--text-body);
    border: 1px solid transparent;
}

.tag:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.tag.active {
    background: var(--accent-color);
    color: white;
    box-shadow: var(--shadow-sm);
}

.event-feed {
    flex-grow: 1;
}

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

.feed-header h2 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-heading);
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-controls select {
    padding: 0.625rem 1rem;
    border-radius: 12px;
    border: 2px solid rgba(117, 112, 140, 0.2);
    font-family: var(--font-body);
    background: var(--neutral-white);
    color: var(--text-body);
    transition: all var(--transition-normal);
}

.sort-controls select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(197, 149, 148, 0.1);
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-body);
}

/* ===== EVENT CARDS ===== */
.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.event-card {
    background: var(--neutral-white);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid rgba(117, 112, 140, 0.05);
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border-color: rgba(197, 149, 148, 0.3);
}

.popular-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--accent-color);
    color: white;
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    z-index: 1;
    box-shadow: var(--shadow-sm);
}

.event-card-image {
    height: 180px;
    background: linear-gradient(135deg, var(--soft-sky-blue) 0%, var(--muted-lavender) 100%);
    background-size: cover;
    background-position: center;
    transition: transform var(--transition-slow);
}

.event-card:hover .event-card-image {
    transform: scale(1.05);
}

.event-card-content {
    padding: 1.75rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

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

.college-badge {
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 0.875rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    box-shadow: var(--shadow-sm);
}

.status-badge {
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    color: white;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
}

.event-card-content h3 {
    margin: 0 0 0.875rem;
    font-size: 1.25rem;
    line-height: 1.4;
    color: var(--text-heading);
}

.event-meta {
    color: var(--text-body);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tags-container {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.event-description {
    flex-grow: 1;
    color: var(--text-body);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.event-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.event-card-footer {
    padding: 1.25rem 1.75rem;
    border-top: 1px solid rgba(117, 112, 140, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(199, 219, 247, 0.1);
}

/* ===== EVENT DETAIL ===== */
.event-detail-header {
    background: linear-gradient(135deg, var(--soft-sky-blue) 0%, var(--muted-lavender) 100%);
    color: var(--text-heading);
    padding: 3.5rem;
    border-radius: 24px;
    margin-top: 2rem;
    box-shadow: var(--shadow-lg);
}

.event-detail-badge {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.event-detail-header h1 {
    margin: 0 0 1rem;
    font-size: 2.75rem;
    color: var(--text-heading);
}

.event-detail-meta {
    display: flex;
    gap: 2rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.event-detail-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-body);
}

.event-detail-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.attendees-section {
    margin-top: 2rem;
    background: var(--neutral-white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(117, 112, 140, 0.05);
}

.attendees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.attendee-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(199, 219, 247, 0.1);
    border-radius: 16px;
    transition: all var(--transition-normal);
    border: 1px solid transparent;
}

.attendee-card:hover {
    background: rgba(199, 219, 247, 0.2);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    border-color: rgba(197, 149, 148, 0.2);
}

.attendee-card .user-avatar {
    width: 50px;
    height: 50px;
}

.event-tabs {
    margin-top: 2rem;
}

.features-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid rgba(117, 112, 140, 0.1);
    margin-bottom: 2rem;
}

.tab-button {
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-body);
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
}

.tab-button:hover {
    color: var(--accent-color);
    background: rgba(197, 149, 148, 0.05);
}

.tab-button.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

.tab-content {
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== TEAM & RIDE POSTS ===== */
.team-post-card,
.ride-post-card {
    background: var(--neutral-white);
    padding: 1.75rem;
    border-radius: 16px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    border: 1px solid rgba(117, 112, 140, 0.05);
}

.team-post-card:hover,
.ride-post-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);

    .project-card {
        background: var(--neutral-white);
        border-radius: 16px;
        padding: 1.5rem;
        box-shadow: var(--shadow-sm);
        transition: all var(--transition-normal);
    }

    .project-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-md);
    }

    border-color: rgba(197, 149, 148, 0.2);
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.skill-tag {
    background: var(--accent-color);
    color: white;
    padding: 0.375rem 0.875rem;
    border-radius: 15px;
    font-size: 0.875rem;
    box-shadow: var(--shadow-sm);
}

.skill-tag.need {
    background: var(--info-blue);
}

.ride-route {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 1rem 0;
}

.route-point {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-heading);
}

.route-line {
    height: 30px;
    width: 2px;
    background: rgba(117, 112, 140, 0.2);
    margin-left: 11px;
}

.ride-type-badge {
    padding: 0.5rem 0.875rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: bold;
}

.ride-type-badge.offer {
    background: rgba(72, 187, 120, 0.2);
    color: #22543d;
}

.ride-type-badge.request {
    background: rgba(229, 62, 62, 0.2);
    color: #742a2a;
}

/* ===== PROFILE PAGE ===== */
.profile-header {
    background: linear-gradient(135deg, var(--soft-sky-blue) 0%, var(--muted-lavender) 100%);
    color: var(--text-heading);
    padding: 4rem 2rem;
    border-radius: 0 0 40px 40px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--neutral-white);
    color: var(--accent-color);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 4rem;
    font-weight: bold;
    border: 5px solid var(--neutral-white);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
}

.profile-avatar:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.profile-header h1 {
    margin: 0.5rem 0;
    font-size: 2.75rem;
    color: var(--text-heading);
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-item .count {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.count-number {
    font-size: 2rem;
    font-weight: bold;
    margin: 0.25rem 0;
    color: var(--text-heading);
}

.stat-item .label {
    font-size: 0.875rem;
    opacity: 0.9;
    color: var(--text-body);
}

.badge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
}

.badge-card {
    background: var(--neutral-white);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    border: 1px solid rgba(117, 112, 140, 0.05);
}

.badge-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border-color: rgba(197, 149, 148, 0.3);
}

.badge-card.locked {
    opacity: 0.5;
}

.badge-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.badge-card h4 {
    margin: 0.5rem 0;
    font-size: 1.1rem;
    color: var(--text-heading);
}

.badge-card p {
    color: var(--text-body);
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.badge-card small {
    display: block;
    color: var(--text-body);
    font-size: 0.8rem;
    margin-top: 0.5rem;
    font-style: italic;
}

.activity-timeline {
    background: var(--neutral-white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    margin-top: 1rem;
    border: 1px solid rgba(117, 112, 140, 0.05);
}

.timeline-item {
    display: flex;
    gap: 1rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(117, 112, 140, 0.1);
    transition: all var(--transition-fast);
}

.timeline-item:hover {
    padding-left: 0.5rem;
}

.timeline-item:last-child {
    border-bottom: none;
}

.timeline-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.timeline-content {
    flex-grow: 1;
}

/* ===== FEATURES PAGE ===== */
.features-page {
    background: transparent;
}

.features-hero {
    background: linear-gradient(135deg, var(--soft-sky-blue) 0%, var(--muted-lavender) 100%);
    color: var(--text-heading);
    padding: 5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.features-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--text-heading);
    font-family: var(--font-heading);
}

.features-hero p {
    font-size: 1.35rem;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-body);
    font-family: var(--font-accent);
    font-style: italic;
}

.feature-section {
    background: var(--neutral-white);
    margin: 2rem auto;
    max-width: 1200px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    border: 1px solid rgba(117, 112, 140, 0.05);
    transition: all var(--transition-normal);
}

.feature-section:hover {
    box-shadow: var(--shadow-lg);
}

.feature-section-header {
    padding: 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background var(--transition-normal);
}

.feature-section-header:hover {
    background: rgba(199, 219, 247, 0.1);
}

.feature-section-header h2 {
    margin: 0 0 0.5rem;
    display: flex;
    align-items: center;
    color: var(--text-heading);
}

.feature-section-header p {
    color: var(--text-body);
    margin: 0;
    font-family: var(--font-accent);
    font-style: italic;
}

.feature-section-content {
    padding: 2.5rem;
    border-top: 1px solid rgba(117, 112, 140, 0.1);
    animation: slideDown 0.3s;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }

    to {
        opacity: 1;
        max-height: 2000px;
    }
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: rgba(199, 219, 247, 0.1);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    transition: all var(--transition-normal);
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    background: rgba(199, 219, 247, 0.2);
    border-color: rgba(197, 149, 148, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin: 0.5rem 0;
    font-size: 1.1rem;
    color: var(--text-heading);
}

.feature-card p {
    color: var(--text-body);
    font-size: 0.9rem;
    margin: 0;
}

.features-cta {
    text-align: center;
    padding: 5rem 2rem;
}

.features-cta h2 {
    font-size: 2.75rem;
    margin-bottom: 1rem;
    color: var(--text-heading);
}

.features-cta p {
    font-size: 1.35rem;
    color: var(--text-body);
    max-width: 700px;
    margin: 0 auto;
    font-family: var(--font-accent);
    font-style: italic;
}

.stat-box {
    background: var(--neutral-white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all var(--transition-normal);
    border: 1px solid rgba(117, 112, 140, 0.05);
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(197, 149, 148, 0.2);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--warm-rose-taupe) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.stat-label {
    color: var(--text-body);
    font-size: 1rem;
}

/* ===== TOASTS ===== */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    background: var(--true-black);
    color: white;
    padding: 1.25rem 1.75rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    animation: slideInRight 0.5s forwards;
    min-width: 300px;
    font-family: var(--font-body);
}

.toast-success {
    background: var(--success-green);
}

.toast-error {
    background: var(--danger-red);
}

.toast-info {
    background: var(--accent-color);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(1, 1, 1, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    animation: fadeIn 0.3s;
}

.modal-content {
    background: var(--neutral-white);
    padding: 2.5rem;
    border-radius: 24px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(117, 112, 140, 0.1);
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

.modal-header h2 {
    color: var(--text-heading);
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-body);
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    border-radius: 50%;
}

.close-btn:hover {
    color: var(--accent-color);
    background: rgba(197, 149, 148, 0.1);
    transform: rotate(90deg);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .dashboard-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: row !important;
        height: 60px !important;
        padding: 0 1rem !important;
        gap: 0.75rem !important;
    }

    .public-navbar {
        height: auto !important;
        min-height: 56px;
        padding: 0.5rem 1rem !important;
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 0.45rem;
    }

    .public-navbar .logo {
        width: 100%;
        justify-content: center;
    }

    .public-navbar .landing-nav-links {
        width: 100%;
        justify-content: center;
        gap: 0.65rem;
    }

    .public-navbar .landing-nav-links a {
        font-size: 0.78rem;
        white-space: nowrap;
    }

    .public-navbar .landing-nav-cta {
        width: 100%;
        justify-content: center;
    }

    .navbar .logo {
        font-size: 1rem;
        white-space: nowrap;
    }

    .search-bar {
        flex: 1;
        max-width: none;
    }

    .search-bar input {
        font-size: 0.8rem;
        padding: 0.4rem 0.75rem 0.4rem 2rem;
    }

    .navbar-right {
        gap: 0.5rem;
        flex-shrink: 0;
    }

    .event-grid {
        grid-template-columns: 1fr;
    }

    .features-hero h1 {
        font-size: 2.25rem;
    }

    .features-hero p {
        font-size: 1.1rem;
    }

    .profile-stats {
        gap: 1rem;
    }

    .stat-item .count-number {
        font-size: 1.5rem;
    }

    .event-detail-header h1 {
        font-size: 2rem;
    }

    .event-detail-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }

    .login-box {
        padding: 2rem 1.5rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .badge-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.25rem;
    }
}

.attendees-section select {
    border: 2px solid rgba(117, 112, 140, 0.2);
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 12px;
    padding: 0.625rem 1rem;
    font-family: var(--font-body);
    background: var(--neutral-white);
    color: var(--text-body);
    transition: all var(--transition-normal);
}

.attendees-section select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(197, 149, 148, 0.1);
}

/* Verified badge box */
.verified-badge-box {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.verified-pill {
    background: linear-gradient(90deg, var(--accent-color), var(--warm-rose-taupe));
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-weight: 700;
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
}

.verified-list {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.project-item a {
    color: var(--text-heading);
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    background: rgba(199, 219, 247, 0.06);
}

/* AI skill button */
.ai-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* small screens */
@media (max-width:768px) {
    .complete-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* modal + complete banner + profile styling for the Complete Profile flow */
.complete-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, rgba(199, 219, 247, 0.06), rgba(197, 149, 148, 0.02));
    border: 1px solid rgba(117, 112, 140, 0.06);
}

.complete-banner.incomplete {
    border-left: 4px solid #f6b24a;
}

.complete-banner.complete {
    border-left: 4px solid #33cc88;
}

.complete-banner .small-muted {
    color: var(--text-body);
    font-size: 0.9rem;
    margin-top: 4px;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4000;
}

.modal-content {
    width: 95%;
    max-width: 720px;
    background: white;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.modal-body input {
    width: 100%;
    padding: 0.6rem;
    margin-top: 0.35rem;
    margin-bottom: 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.modal-body input.input-error {
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.15);
}

.field-error {
    color: #e53e3e;
    font-size: 0.8rem;
    margin-top: -0.35rem;
    margin-bottom: 0.6rem;
}

.profile-bio-box {
    background: var(--neutral-white);
    padding: 1rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.bio-header {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 0.5rem;
}

.bio-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow-sm);
}

.bio-social {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.bio-social a {
    background: rgba(199, 219, 247, 0.06);
    padding: 0.3rem 0.6rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--accent-color);
    font-weight: 600;
}

.bio-phone {
    margin-top: 0.5rem;
    color: var(--text-body);
}

.bio-phone i {
    margin-right: 0.4rem;
}

.bio-skills {
    margin-top: 0.75rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.skill-tag {
    background: linear-gradient(90deg, var(--accent-color), var(--warm-rose-taupe));
    color: #fff;
    padding: 0.3rem 0.6rem;
    border-radius: 10px;
    font-size: 0.9rem;
}

.chat-button {
    position: fixed;
    bottom: 120px;
    right: 20px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 3500;
}

.chat-popup {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 320px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 3600;
}

.chat-header {
    background: #667eea;
    color: white;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-body {
    padding: 10px;
    height: 250px;
    overflow-y: auto;
    background: #f8fafc;
}

.user-msg {
    text-align: right;
    background: #e0e7ff;
    border-radius: 10px;
    padding: 6px;
    margin: 4px 0;
    word-break: break-word;
}

.bot-msg {
    text-align: left;
    background: #f1f5f9;
    border-radius: 10px;
    padding: 6px;
    margin: 4px 0;
    word-break: break-word;
}

.chat-input {
    display: flex;
    border-top: 1px solid #ddd;
}

.chat-input input {
    flex: 1;
    border: none;
    padding: 10px;
    font-family: var(--font-body);
}

.chat-input input:focus {
    outline: none;
}

.chat-input button {
    background: #667eea;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
}

/* --- Page containers --- */
.page-container {
    padding: 2rem;
    animation: fadeIn 0.4s ease-in;
}

.page-header {
    text-align: center;
    padding: 2rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
    color: #010101;
}

.gradient-bg {
    background: linear-gradient(135deg, #C7DBF7, #BFC7DE, #C59594);
    color: #010101;
}

.glass-bg {
    backdrop-filter: blur(10px);
    background: rgba(199, 219, 247, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #010101;
}

/* --- Resource Hub --- */
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.resource-card {
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.resource-card:hover {
    transform: translateY(-5px);
}

.resource-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.resource-content {
    padding: 1rem;
}

.owner-tag {
    font-size: 0.85rem;
    color: #75708C;
}

.card-buttons {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.modal-card {
    background: #fff;
    border-radius: 1rem;
    padding: 1.5rem;
    width: min(520px, 92vw);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-card form input,
.modal-card form textarea,
.modal-card form select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #BFC7DE;
    border-radius: 0.75rem;
    font-family: var(--font-body);
}

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

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* --- Mentor Section --- */
.mentor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.mentor-card {
    padding: 1.2rem;
    border-radius: 1rem;
    background: linear-gradient(145deg, #C7DBF7 20%, #BFC7DE 80%);
    color: #010101;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.mentor-card:hover {
    transform: translateY(-5px);
}

.glass {
    backdrop-filter: blur(12px);
    background: rgba(199, 219, 247, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.mentor-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatar {
    width: 60px;
    height: 60px;
    background: #75708C;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 600;
}

.mentor-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* --- Reusable Buttons --- */
.btn-primary {
    background: #010101;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
}

.btn-outline {
    background: transparent;
    border: 1px solid #010101;
    color: #010101;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
}

.btn-primary:hover {
    background: #75708C;
}

.btn-outline:hover {
    background: #010101;
    color: white;
}

/* --- Animations --- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* -------------------------
     Mentorship + Resource Hub styles
     ------------------------- */

/* Page container & headers */
.page-container {
    padding: 1.75rem;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.25rem;
}

.page-header .muted {
    color: #75708C;
    margin: 6px 0 0 0;
    font-size: 0.95rem;
}

.page-header.gradient-bg {
    background: linear-gradient(135deg, #C7DBF7 0%, #BFC7DE 60%, #C59594 100%);
    color: #010101;
}

.page-header.glass-bg {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(6px);
    color: #010101;
}

/* Search bar (professional) */
.search-bar {
    position: relative;
    max-width: 720px;
    margin: 0 auto 1.5rem auto;
}

.search-bar input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border-radius: 999px;
    border: none;
    box-shadow: 0 6px 18px rgba(11, 18, 31, 0.06);
    font-size: 1rem;
    outline: none;
}

.search-bar input:focus {
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.09);
    transform: translateY(-1px);
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #75708C;
    font-size: 16px;
}

/* Resource grid & cards */
.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 12px;
}

.resource-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(14, 20, 30, 0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.resource-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(14, 20, 30, 0.08);
}

.resource-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.placeholder {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 28px;
}

/* resource content */
.resource-content {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.owner-tag {
    font-size: 0.85rem;
    color: #75708C;
    margin-top: 6px;
}

.card-buttons {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}

/* Mentor grid & cards */
.mentor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    margin-top: 12px;
}

.mentor-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    background: linear-gradient(145deg, #fff 0%, rgba(199, 219, 247, 0.5) 100%);
    box-shadow: 0 8px 24px rgba(14, 20, 30, 0.04);
    transition: transform 0.18s ease;
}

.mentor-card:hover {
    transform: translateY(-6px);
}

.mentor-info {
    display: flex;
    gap: 12px;
    align-items: center;
}

.avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #75708C;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
}

.mentor-meta h3 {
    margin: 0;
}

.mentor-meta p {
    margin: 2px 0 0 0;
    color: #75708C;
    font-size: 0.95rem;
}

/* Buttons */
.btn-gradient {
    background: linear-gradient(90deg, #75708C, #C59594);
    color: white;
    padding: 10px 16px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.btn-primary {
    background: #010101;
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(1, 1, 1, 0.08);
    color: #010101;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
}

.btn-primary:hover,
.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(6, 8, 15, 0.45);
    z-index: 9999;
}

.modal-card {
    width: 520px;
    max-width: 94%;
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.3);
}

.modal-card input,
.modal-card select,
.modal-card textarea {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #e6e6e6;
    margin-top: 8px;
}

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

/* utility */
.muted {
    color: #75708C;
}

.small {
    font-size: 0.9rem;
}

.empty-state {
    padding: 28px;
    text-align: center;
    color: #75708C;
}

/* responsive */
@media (max-width:720px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .mentor-card,
    .resource-card {
        padding: 10px;
    }

    .resource-image img,
    .placeholder {
        height: 140px;
    }
}

/* --- Share Button Styling --- */
.btn-share {
    background: rgba(199, 219, 247, 0.35);
    color: #010101;
    border: 1px solid rgba(1, 1, 1, 0.12);
    padding: 8px 14px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-share:hover {
    background: linear-gradient(90deg, #C7DBF7, #BFC7DE);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.card-buttons .btn-share i {
    margin-right: 0;
}

/* =========================
   Sponsor Dashboard Styles
   ========================= */

.sponsor-summary {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin: 12px 0 20px;
}

.summary-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    min-width: 160px;
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.06);
    flex: 1;
}

.summary-card h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #75708C;
}

.summary-value {
    font-size: 22px;
    font-weight: 700;
    margin-top: 6px;
    color: #010101;
}

.summary-sub {
    font-size: 12px;
    color: #9aa0ad;
    margin-top: 6px;
}

.chart-card {
    display: flex;
    align-items: center;
    gap: 12px;
}

.campaigns-section {
    margin-top: 18px;
}

.campaigns-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
}

.campaigns-table th,
.campaigns-table td {
    text-align: left;
    padding: 10px 8px;
    border-bottom: 1px solid #f0f0f0;
}

.campaigns-table th {
    color: #75708C;
    font-weight: 600;
}

.mentorship-impact {
    margin-top: 18px;
    padding: 12px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(2, 6, 23, 0.04);
}

.sponsor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.sponsor-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(2, 6, 23, 0.04);
}

/* smaller utilities */
.page-header-with-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

/* 🎮 Mind Games */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.game-card {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(145deg, #C7DBF7, #BFC7DE);
    color: #010101;
    border-radius: 1rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    outline: none;
}

.game-card:hover,
.game-card:focus {
    transform: translateY(-5px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.12);
}

.game-card i {
    font-size: 2.2rem;
    margin-bottom: 0.6rem;
}

.game-container {
    text-align: center;
    margin-top: 1.5rem;
}

.memory-grid {
    display: grid;
    grid-template-columns: repeat(4, 60px);
    gap: 10px;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.memory-card {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.memory-card.flipped {
    transform: scale(1.05);
    background: #C7DBF7;
}

.number-grid {
    display: grid;
    grid-template-columns: repeat(3, 80px);
    gap: 10px;
    justify-content: center;
    margin: 1rem auto 1.5rem auto;
}

.number-btn {
    font-size: 20px;
    padding: 12px;
    border-radius: 8px;
    background: #C7DBF7;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
}

.number-btn:hover {
    transform: translateY(-2px);
}

.number-btn.done {
    background: #C59594;
    color: white;
}

.color-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 1rem;
}

.color-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.color-btn:hover {
    transform: translateY(-2px);
}

/* ===== PROFILE PAGE REDESIGN ===== */

/* Top bar: PROFILE title + complete banner */
.profile-page-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: var(--neutral-white);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(117, 112, 140, 0.08);
}

.profile-page-top-bar .profile-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--text-heading);
    letter-spacing: 0.5px;
}

.profile-page-top-bar .profile-complete-status {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    margin: 0 2rem;
}

.profile-page-top-bar .profile-complete-status .progress-bar-wrap {
    flex: 1;
    height: 8px;
    background: rgba(117, 112, 140, 0.12);
    border-radius: 8px;
    overflow: hidden;
}

.profile-page-top-bar .profile-complete-status .progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), var(--success-green));
    border-radius: 8px;
    transition: width 0.5s ease;
}

.profile-page-top-bar .profile-complete-status span {
    font-size: 0.85rem;
    color: var(--text-body);
    white-space: nowrap;
    font-weight: 600;
}

.profile-page-top-bar .btn-complete-now {
    padding: 0.6rem 1.4rem;
    border: none;
    border-radius: 50px;
    background: var(--accent-color);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
    font-family: var(--font-body);
}

.profile-page-top-bar .btn-complete-now:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

.profile-page-top-bar .btn-complete-now.completed {
    background: var(--success-green);
    cursor: default;
}

/* Profile Main Header: Avatar + Name + Social */
.profile-main-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--neutral-white);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(117, 112, 140, 0.05);
    position: relative;
}

.profile-main-header .profile-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-color);
    box-shadow: var(--shadow-md);
    background: rgba(199, 219, 247, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    font-family: var(--font-heading);
    overflow: hidden;
    flex-shrink: 0;
}

.profile-main-header .profile-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile-main-header .profile-name-block {
    flex: 1;
}

.profile-main-header .profile-name-block h2 {
    margin: 0 0 0.25rem;
    font-size: 1.6rem;
}

.profile-main-header .profile-name-block .profile-college-text {
    color: var(--text-body);
    font-size: 0.95rem;
    margin: 0;
}

.profile-main-header .profile-social-icons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.profile-main-header .profile-social-icons a {
    color: var(--text-body);
    font-size: 1.25rem;
    transition: all var(--transition-normal);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(199, 219, 247, 0.2);
}

.profile-main-header .profile-social-icons a:hover {
    color: var(--accent-color);
    background: rgba(197, 149, 148, 0.15);
    transform: translateY(-2px);
}

.profile-main-header .profile-edit-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: 2px solid rgba(117, 112, 140, 0.2);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-body);
    transition: all var(--transition-normal);
}

.profile-main-header .profile-edit-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: rgba(197, 149, 148, 0.08);
}

/* 5 Stat Boxes Row */
.profile-stats-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.profile-stats-row .stat-box {
    background: var(--neutral-white);
    border-radius: 16px;
    padding: 1.25rem 1rem;
    text-align: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.profile-stats-row .stat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-color);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.profile-stats-row .stat-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(197, 149, 148, 0.3);
}

.profile-stats-row .stat-box:hover::before {
    transform: scaleX(1);
}

.profile-stats-row .stat-box.active {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-md), var(--shadow-glow);
    background: linear-gradient(135deg, rgba(197, 149, 148, 0.05), rgba(199, 219, 247, 0.08));
}

.profile-stats-row .stat-box.active::before {
    transform: scaleX(1);
}

.profile-stats-row .stat-box .stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-heading);
    font-family: var(--font-heading);
    line-height: 1;
    margin-bottom: 0.4rem;
}

.profile-stats-row .stat-box .stat-label {
    font-size: 0.75rem;
    color: var(--text-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* About Section */
.profile-about-section {
    background: var(--neutral-white);
    padding: 1.75rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(117, 112, 140, 0.05);
}

.profile-about-section h3 {
    margin: 0 0 0.75rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-about-section textarea {
    width: 100%;
    min-height: 80px;
    padding: 0.875rem 1rem;
    border: 2px solid rgba(117, 112, 140, 0.15);
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-body);
    resize: vertical;
    transition: all var(--transition-normal);
    background: rgba(248, 249, 250, 0.5);
}

.profile-about-section textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(197, 149, 148, 0.1);
    background: var(--neutral-white);
}

.profile-about-section .about-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.75rem;
}

.profile-about-section .about-save-btn {
    padding: 0.5rem 1.25rem;
    border: none;
    border-radius: 50px;
    background: var(--accent-color);
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-family: var(--font-body);
}

.profile-about-section .about-save-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.profile-about-section .about-save-btn:disabled {
    opacity: 0.6;
    cursor: default;
    transform: none;
}

/* Project Form Section */
.profile-project-form {
    background: var(--neutral-white);
    padding: 1.75rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(117, 112, 140, 0.05);
}

.profile-project-form h3 {
    margin: 0 0 1.25rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-project-form .pf-field {
    margin-bottom: 1rem;
}

.profile-project-form .pf-field label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-heading);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.profile-project-form .pf-field input,
.profile-project-form .pf-field textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid rgba(117, 112, 140, 0.15);
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-body);
    transition: all var(--transition-normal);
    background: rgba(248, 249, 250, 0.5);
}

.profile-project-form .pf-field input:focus,
.profile-project-form .pf-field textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(197, 149, 148, 0.1);
}

.profile-project-form .pf-field textarea {
    min-height: 70px;
    resize: vertical;
}

.profile-project-form .pf-field .char-count {
    text-align: right;
    font-size: 0.8rem;
    color: var(--text-body);
    opacity: 0.6;
    margin-top: 0.25rem;
}

.profile-project-form .pf-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.profile-project-form .pf-tags .pf-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    background: rgba(199, 219, 247, 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-body);
    font-family: var(--font-body);
}

.profile-project-form .pf-tags .pf-tag .pf-tag-remove {
    cursor: pointer;
    font-weight: 700;
    color: var(--danger-red);
    opacity: 0.7;
    transition: opacity 0.2s;
    background: none;
    border: none;
    font-size: 0.9rem;
    padding: 0;
    line-height: 1;
}

.profile-project-form .pf-tags .pf-tag .pf-tag-remove:hover {
    opacity: 1;
}

.profile-project-form .add-tag-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.profile-project-form .add-tag-row input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 2px solid rgba(117, 112, 140, 0.15);
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 0.9rem;
}

.profile-project-form .add-tag-row input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.profile-project-form .add-tag-btn {
    padding: 0.5rem 1rem;
    border: 2px solid var(--accent-color);
    border-radius: 12px;
    background: transparent;
    color: var(--accent-color);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-family: var(--font-body);
    white-space: nowrap;
}

.profile-project-form .add-tag-btn:hover {
    background: var(--accent-color);
    color: white;
}

.profile-project-form .pf-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.profile-project-form .pf-cancel-btn {
    padding: 0.65rem 1.5rem;
    border: 2px solid rgba(117, 112, 140, 0.2);
    border-radius: 50px;
    background: transparent;
    color: var(--text-body);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-family: var(--font-body);
}

.profile-project-form .pf-cancel-btn:hover {
    border-color: var(--danger-red);
    color: var(--danger-red);
}

.profile-project-form .pf-submit-btn {
    padding: 0.65rem 1.5rem;
    border: none;
    border-radius: 50px;
    background: var(--accent-color);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-family: var(--font-body);
    box-shadow: var(--shadow-sm);
}

.profile-project-form .pf-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

/* Verified Projects Display */
.profile-verified-projects {
    background: var(--neutral-white);
    padding: 1.75rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(117, 112, 140, 0.05);
}

.profile-verified-projects .vp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.profile-verified-projects .vp-header h3 {
    margin: 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-verified-projects .vp-header-actions {
    display: flex;
    gap: 0.5rem;
}

.profile-verified-projects .vp-header-actions button {
    padding: 0.45rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-family: var(--font-body);
    border: 2px solid rgba(117, 112, 140, 0.2);
    background: transparent;
    color: var(--text-body);
}

.profile-verified-projects .vp-header-actions button:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-1px);
}

.profile-verified-projects .vp-header-actions button.vp-post-btn {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.profile-verified-projects .vp-header-actions button.vp-post-btn:hover {
    box-shadow: var(--shadow-sm);
}

.profile-verified-projects .vp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.profile-verified-projects .vp-card {
    padding: 1.25rem;
    border-radius: 16px;
    background: rgba(248, 249, 250, 0.8);
    border: 1px solid rgba(117, 112, 140, 0.1);
    transition: all var(--transition-normal);
}

.profile-verified-projects .vp-card:hover {
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.profile-verified-projects .vp-card h4 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.profile-verified-projects .vp-card .vp-card-desc {
    font-size: 0.9rem;
    color: var(--text-body);
    margin: 0 0 0.5rem;
    line-height: 1.5;
}

.profile-verified-projects .vp-card .vp-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.5rem;
}

.profile-verified-projects .vp-card .vp-card-tags span {
    padding: 0.2rem 0.6rem;
    background: rgba(199, 219, 247, 0.3);
    border-radius: 12px;
    font-size: 0.78rem;
    color: var(--text-body);
}

.profile-verified-projects .vp-card .vp-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.profile-verified-projects .vp-card .vp-card-link:hover {
    color: var(--warm-rose-taupe);
    text-decoration: underline;
}

.profile-verified-projects .vp-empty {
    text-align: center;
    color: var(--text-body);
    padding: 2rem;
    opacity: 0.7;
}

/* Expandable Panels (opened on stat click) */
.profile-panel-overlay {
    background: var(--neutral-white);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(117, 112, 140, 0.08);
    animation: panelSlideIn 0.35s ease;
    overflow: hidden;
}

@keyframes panelSlideIn {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(117, 112, 140, 0.1);
    background: rgba(248, 249, 250, 0.6);
}

.profile-panel-header h3 {
    margin: 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-panel-header .panel-close-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid rgba(117, 112, 140, 0.2);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-body);
    font-size: 1.1rem;
    transition: all var(--transition-normal);
}

.profile-panel-header .panel-close-btn:hover {
    border-color: var(--danger-red);
    color: var(--danger-red);
    background: rgba(229, 62, 62, 0.05);
}

.profile-panel-search {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(117, 112, 140, 0.06);
}

.profile-panel-search input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 2px solid rgba(117, 112, 140, 0.15);
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all var(--transition-normal);
    background: rgba(248, 249, 250, 0.5);
}

.profile-panel-search input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(197, 149, 148, 0.1);
}

.profile-panel-search {
    position: relative;
}

.profile-panel-search i {
    position: absolute;
    left: 2.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-body);
    opacity: 0.5;
}

.profile-panel-body {
    padding: 1rem 1.5rem 1.5rem;
    max-height: 500px;
    overflow-y: auto;
}

/* Panel Event Card */
.profile-panel-card {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 16px;
    border: 1px solid rgba(117, 112, 140, 0.1);
    background: rgba(248, 249, 250, 0.5);
    margin-bottom: 0.75rem;
    transition: all var(--transition-normal);
    align-items: stretch;
    flex-wrap: nowrap;
}

.profile-panel-card:hover {
    box-shadow: var(--shadow-sm);
    border-color: rgba(197, 149, 148, 0.2);
}

.profile-panel-card:last-child {
    margin-bottom: 0;
}

.profile-panel-card .panel-card-thumb {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(199, 219, 247, 0.4), rgba(191, 199, 222, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    align-self: flex-start;
}

.profile-panel-card .panel-card-info {
    flex: 0 0 auto;
    width: 200px;
    min-width: 150px;
    max-width: 220px;
}

.profile-panel-card .panel-card-info h4 {
    margin: 0 0 0.35rem;
    font-size: 0.95rem;
    line-height: 1.3;
}

.profile-panel-card .panel-card-info .panel-card-meta {
    font-size: 0.82rem;
    color: var(--text-body);
    line-height: 1.6;
}

.profile-panel-card .panel-card-info .panel-card-meta span {
    display: block;
}

.profile-panel-card .panel-card-desc {
    flex: 1 1 0%;
    padding: 0.85rem 1.1rem;
    background: rgba(199, 219, 247, 0.08);
    border: 1px solid rgba(117, 112, 140, 0.12);
    border-radius: 12px;
    font-size: 0.87rem;
    color: var(--text-body);
    line-height: 1.65;
    min-width: 0;
    align-self: stretch;
}

.profile-panel-card .panel-card-actions {
    display: flex;
    align-items: flex-start;
    flex-shrink: 0;
}

.profile-panel-card .panel-card-view-btn {
    padding: 0.45rem 1rem;
    border: 2px solid rgba(117, 112, 140, 0.2);
    border-radius: 50px;
    background: transparent;
    color: var(--text-body);
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-family: var(--font-body);
    white-space: nowrap;
}

.profile-panel-card .panel-card-view-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* Team Member Row in Panels */
.panel-inner-row {
    display: flex;
    gap: 1rem;
    align-items: stretch;
    width: 100%;
}

.profile-team-members {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(117, 112, 140, 0.1);
}

.profile-team-member-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0;
    flex-wrap: wrap;
}

.profile-team-member-row .tm-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.profile-team-member-row .tm-info {
    flex: 1;
    min-width: 120px;
}

.profile-team-member-row .tm-info .tm-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-heading);
}

.profile-team-member-row .tm-info .tm-college {
    font-size: 0.8rem;
    color: var(--text-body);
}

.profile-team-member-row .tm-badge {
    padding: 0.3rem 0.7rem;
    border-radius: 8px;
    border: 1px solid rgba(117, 112, 140, 0.15);
    font-size: 0.78rem;
    color: var(--text-body);
    font-weight: 600;
    background: rgba(248, 249, 250, 0.8);
}

.profile-panel-empty {
    text-align: center;
    padding: 2rem;
    color: var(--text-body);
    opacity: 0.6;
    font-size: 0.95rem;
}

/* Responsive - Profile */
@media (max-width: 900px) {
    .profile-stats-row {
        grid-template-columns: repeat(3, 1fr);
    }

    .profile-panel-card,
    .panel-inner-row {
        flex-direction: column;
        flex-wrap: wrap;
    }

    .profile-panel-card .panel-card-info {
        flex: 1 1 auto;
        width: auto;
        max-width: none;
    }

    .profile-panel-card .panel-card-desc {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .profile-page-top-bar {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .profile-page-top-bar .profile-complete-status {
        margin: 0;
        flex-direction: column;
        gap: 0.5rem;
    }

    .profile-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .profile-stats-row .stat-box:last-child {
        grid-column: span 2;
    }

    .profile-main-header {
        flex-direction: column;
        text-align: center;
    }

    .profile-main-header .profile-social-icons {
        justify-content: center;
    }

    .profile-project-form .pf-actions {
        flex-direction: column;
    }

    .profile-verified-projects .vp-header {
        flex-direction: column;
        text-align: center;
    }

    .profile-team-member-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ===== ACTIVITY TIMELINE ===== */

.activity-timeline-section {
    background: var(--neutral-white);
    padding: 1.75rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(117, 112, 140, 0.05);
}

.activity-timeline-section h3 {
    margin: 0 0 1rem;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.at-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    justify-content: flex-end;
}

.at-tabs button {
    padding: 0.55rem 1.4rem;
    border: 2px solid rgba(117, 112, 140, 0.2);
    border-radius: 50px;
    background: transparent;
    color: var(--text-body);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-family: var(--font-body);
}

.at-tabs button.active {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    box-shadow: var(--shadow-sm);
}

.at-tabs button:hover:not(.active) {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* Event card in timeline */
.at-event-card {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 16px;
    border: 1px solid rgba(117, 112, 140, 0.1);
    background: rgba(248, 249, 250, 0.5);
    margin-bottom: 0.75rem;
    transition: all var(--transition-normal);
    align-items: stretch;
    flex-wrap: nowrap;
}

.at-event-card:hover {
    box-shadow: var(--shadow-sm);
    border-color: rgba(197, 149, 148, 0.2);
}

.at-event-card .at-thumb {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(199, 219, 247, 0.4), rgba(191, 199, 222, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
    align-self: flex-start;
}

.at-event-card .at-info {
    flex: 0 0 auto;
    width: 200px;
    min-width: 150px;
    max-width: 220px;
}

.at-event-card .at-info h4 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
    line-height: 1.3;
}

.at-event-card .at-info .at-college {
    color: var(--text-body);
    font-size: 0.85rem;
    margin-bottom: 0.15rem;
}

.at-event-card .at-info .at-datetime {
    font-size: 0.8rem;
    color: var(--text-body);
    opacity: 0.7;
}

.at-event-card .at-desc {
    flex: 1 1 0%;
    padding: 0.85rem 1.1rem;
    background: rgba(199, 219, 247, 0.08);
    border: 1px solid rgba(117, 112, 140, 0.12);
    border-radius: 12px;
    font-size: 0.85rem;
    color: var(--text-body);
    line-height: 1.65;
    min-width: 0;
    align-self: stretch;
}

.at-event-card .at-actions {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    flex-shrink: 0;
}

.at-badge-upcoming {
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    background: rgba(199, 219, 247, 0.3);
    color: var(--text-heading);
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.at-badge-completed {
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    background: rgba(72, 187, 120, 0.15);
    color: var(--success-green);
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.at-btn-share,
.at-btn-review {
    padding: 0.4rem 0.9rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-family: var(--font-body);
    border: 2px solid rgba(117, 112, 140, 0.2);
    background: transparent;
    color: var(--text-body);
    white-space: nowrap;
}

.at-btn-share:hover,
.at-btn-review:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-1px);
}

.at-btn-review.has-review {
    background: rgba(199, 219, 247, 0.2);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* Review Form - Inline */
.at-review-form {
    padding: 1.5rem;
    border-radius: 16px;
    background: rgba(248, 249, 250, 0.8);
    border: 1px solid rgba(117, 112, 140, 0.12);
    margin: -0.25rem 0 0.75rem;
    animation: panelSlideIn 0.3s ease;
}

.at-review-form h4 {
    margin: 0 0 1rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(117, 112, 140, 0.1);
}

.at-review-field {
    margin-bottom: 1rem;
}

.at-review-field label {
    display: block;
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--text-heading);
    margin-bottom: 0.4rem;
}

.at-review-field textarea {
    width: 100%;
    min-height: 70px;
    padding: 0.75rem 1rem;
    border: 2px solid rgba(117, 112, 140, 0.15);
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: var(--text-body);
    resize: vertical;
    transition: all var(--transition-normal);
    background: var(--neutral-white);
}

.at-review-field textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(197, 149, 148, 0.1);
}

.at-review-field input[type="text"] {
    width: 100%;
    padding: 0.65rem 1rem;
    border: 2px solid rgba(117, 112, 140, 0.15);
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: var(--text-body);
    transition: all var(--transition-normal);
    background: var(--neutral-white);
}

.at-review-field input[type="text"]:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(197, 149, 148, 0.1);
}

/* Certificate upload area */
.at-cert-upload {
    border: 2px dashed rgba(117, 112, 140, 0.25);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    background: var(--neutral-white);
    color: var(--text-body);
}

.at-cert-upload:hover {
    border-color: var(--accent-color);
    background: rgba(197, 149, 148, 0.03);
}

.at-cert-upload i {
    font-size: 1.5rem;
    margin-bottom: 0.4rem;
    display: block;
    color: var(--accent-color);
}

.at-cert-upload span {
    font-size: 0.85rem;
    display: block;
}

.at-cert-upload .at-cert-added {
    color: var(--success-green);
    font-weight: 600;
}

/* Radio buttons */
.at-radio-group {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-top: 0.35rem;
}

.at-radio-group label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text-body);
    cursor: pointer;
    text-transform: none;
    letter-spacing: 0;
}

.at-radio-group input[type="radio"] {
    accent-color: var(--accent-color);
    width: 16px;
    height: 16px;
}

/* Star rating */
.at-star-rating {
    display: flex;
    gap: 0.3rem;
    margin-top: 0.35rem;
}

.at-star-rating .at-star {
    font-size: 1.6rem;
    cursor: pointer;
    color: rgba(117, 112, 140, 0.25);
    transition: color 0.15s, transform 0.15s;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
}

.at-star-rating .at-star.filled {
    color: #f5c518;
}

.at-star-rating .at-star:hover {
    transform: scale(1.2);
}

/* Review form actions */
.at-review-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(117, 112, 140, 0.1);
}

.at-review-actions .at-privacy {
    font-size: 0.78rem;
    color: var(--text-body);
    opacity: 0.6;
    font-style: italic;
    flex: 1;
}

.at-review-actions .at-review-btns {
    display: flex;
    gap: 0.5rem;
}

.at-review-close-btn {
    padding: 0.55rem 1.3rem;
    border: 2px solid rgba(117, 112, 140, 0.2);
    border-radius: 50px;
    background: transparent;
    color: var(--text-body);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-family: var(--font-body);
}

.at-review-close-btn:hover {
    border-color: var(--danger-red);
    color: var(--danger-red);
}

.at-review-submit-btn {
    padding: 0.55rem 1.3rem;
    border: none;
    border-radius: 50px;
    background: var(--accent-color);
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-family: var(--font-body);
    box-shadow: var(--shadow-sm);
}

.at-review-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

/* Read-only review view */
.at-review-readonly {
    padding: 1.25rem;
    border-radius: 16px;
    background: rgba(248, 249, 250, 0.8);
    border: 1px solid rgba(117, 112, 140, 0.1);
    margin: -0.25rem 0 0.75rem;
}

.at-review-readonly h4 {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.at-review-readonly .at-ro-field {
    margin-bottom: 0.75rem;
}

.at-review-readonly .at-ro-field label {
    display: block;
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    color: var(--text-heading);
    margin-bottom: 0.2rem;
    letter-spacing: 0.3px;
}

.at-review-readonly .at-ro-field p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-body);
    line-height: 1.5;
}

.at-review-readonly .at-ro-stars {
    font-size: 1.3rem;
    color: #f5c518;
    letter-spacing: 2px;
}

.at-review-readonly .at-ro-cert {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.7rem;
    background: rgba(72, 187, 120, 0.12);
    color: var(--success-green);
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
}

.at-empty-timeline {
    text-align: center;
    padding: 2rem;
    color: var(--text-body);
    opacity: 0.6;
    font-size: 0.95rem;
}

/* Responsive - Timeline */
@media (max-width: 640px) {
    .at-event-card {
        flex-direction: column;
    }

    .at-event-card .at-desc {
        flex: 1 1 auto;
    }

    .at-event-card .at-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .at-review-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* ===== SOCIAL MEDIA SECTION ===== */

.profile-social-section {
    background: var(--neutral-white);
    padding: 1.5rem 1.75rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(117, 112, 140, 0.05);
}

.profile-social-section h3 {
    margin: 0 0 1rem;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-icons-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.social-icon-link {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--neutral-white);
    text-decoration: none;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    position: relative;
}

.social-icon-link:hover {
    transform: translateY(-3px) scale(1.08);
    box-shadow: var(--shadow-md);
}

.social-icon-link.instagram {
    background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-icon-link.facebook {
    background: #1877F2;
}

.social-icon-link.linkedin {
    background: #0A66C2;
}

.social-icon-link.twitter {
    background: #1DA1F2;
}

.social-icon-link.google {
    background: linear-gradient(135deg, #4285F4, #34A853, #FBBC05, #EA4335);
}

.social-icon-link.github {
    background: #333;
}

.social-icon-link.empty {
    background: rgba(117, 112, 140, 0.1);
    color: rgba(117, 112, 140, 0.4);
    border: 2px dashed rgba(117, 112, 140, 0.2);
    box-shadow: none;
}

.social-icon-link.empty:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.social-edit-btn {
    margin-left: auto;
    padding: 0.4rem 1rem;
    border: 2px solid rgba(117, 112, 140, 0.2);
    border-radius: 50px;
    background: transparent;
    color: var(--text-body);
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-family: var(--font-body);
}

.social-edit-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* Social media inline edit form */
.social-edit-form {
    margin-top: 1rem;
    padding: 1.25rem;
    background: rgba(248, 249, 250, 0.7);
    border-radius: 16px;
    border: 1px solid rgba(117, 112, 140, 0.1);
    animation: panelSlideIn 0.3s ease;
}

.social-edit-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.social-edit-row .social-edit-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: white;
    flex-shrink: 0;
}

.social-edit-row input {
    flex: 1;
    padding: 0.55rem 0.9rem;
    border: 2px solid rgba(117, 112, 140, 0.15);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.88rem;
    color: var(--text-body);
    transition: all var(--transition-normal);
    background: var(--neutral-white);
}

.social-edit-row input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(197, 149, 148, 0.1);
}

.social-edit-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    margin-top: 0.5rem;
}

/* Demo badge */
.demo-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.6rem;
    background: rgba(199, 219, 247, 0.25);
    color: var(--accent-color);
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 0.5rem;
    vertical-align: middle;
}

/* ===== PEER FEEDBACK SECTION ===== */
.peer-feedback-section {
    background: #fff;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

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

.pf-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-heading);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pf-search {
    position: relative;
    max-width: 300px;
    width: 100%;
}

.pf-search input {
    width: 100%;
    padding: 0.6rem 1rem 0.6rem 2.2rem;
    border-radius: 50px;
    border: 1px solid rgba(117, 112, 140, 0.2);
    background: rgba(248, 249, 250, 0.5);
    font-size: 0.9rem;
    transition: all var(--transition-normal);
}

.pf-search input:focus {
    background: #fff;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    outline: none;
}

.pf-search i {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-body);
    font-size: 0.9rem;
}

/* Feedback Card */
.pf-card {
    border: 1px solid rgba(117, 112, 140, 0.2);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all var(--transition-normal);
    background: #fff;
}

.pf-card.expanded {
    box-shadow: var(--shadow-md);
    border-color: rgba(99, 102, 241, 0.3);
}

.pf-card-summary {
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: rgba(248, 249, 250, 0.3);
}

.pf-card-summary:hover {
    background: rgba(248, 249, 250, 0.8);
}

.pf-summary-left {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.pf-type-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pf-type-ride {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.pf-type-team {
    background: rgba(99, 102, 241, 0.1);
    color: #4f46e5;
}

.pf-event-name {
    font-weight: 600;
    color: var(--text-heading);
    font-size: 0.95rem;
}

.pf-event-date {
    font-size: 0.85rem;
    color: var(--text-body);
    margin-left: 0.5rem;
    opacity: 0.8;
}

.pf-card-body {
    padding: 1.5rem;
    border-top: 1px solid rgba(117, 112, 140, 0.1);
    animation: slideDown 0.3s ease-out;
}

/* Peer Review Row */
.pf-peer-row {
    border: 1px solid rgba(117, 112, 140, 0.15);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    background: #fff;
}

.pf-peer-row:last-child {
    margin-bottom: 0;
}

.pf-peer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.pf-peer-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pf-peer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.pf-peer-details h4 {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-heading);
}

.pf-peer-details span {
    font-size: 0.8rem;
    color: var(--text-body);
}

.pf-feedback-select {
    padding: 0.4rem 0.8rem;
    border: 1px solid rgba(117, 112, 140, 0.3);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-body);
    outline: none;
    cursor: pointer;
    background: #fff;
    min-width: 160px;
}

.pf-star-input {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
    align-items: center;
}

.pf-star-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    color: #d1d5db;
    transition: color 0.2s;
    padding: 0;
}

.pf-star-btn.active {
    color: #f59e0b;
}

.pf-feedback-text {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(117, 112, 140, 0.2);
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: var(--font-body);
    resize: vertical;
    min-height: 60px;
    margin-bottom: 0.5rem;
    background: rgba(248, 249, 250, 0.3);
}

.pf-feedback-text:focus {
    background: #fff;
    border-color: var(--accent-color);
    outline: none;
}

.pf-privacy-note {
    font-size: 0.8rem;
    color: var(--text-body);
    opacity: 0.7;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

@media (max-width: 640px) {
    .pf-header {
        flex-direction: column;
        align-items: stretch;
    }

    .pf-search {
        max-width: 100%;
    }

    .pf-summary-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .pf-event-date {
        margin-left: 0;
        font-size: 0.8rem;
    }

    .pf-peer-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .pf-feedback-select {
        width: 100%;
    }
}

/* ===== SECONDARY NAV BAR ===== */
.secondary-nav {
    display: flex;
    align-items: center;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid rgba(117, 112, 140, 0.15);
    padding: 0 2rem;
    height: 46px;
    overflow-x: auto;
    position: sticky;
    top: 56px;
    z-index: 999;
}

.secondary-nav-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0 1.25rem;
    height: 46px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-body);
    text-decoration: none;
    white-space: nowrap;
    transition: all var(--transition-normal);
    border-bottom: 3px solid transparent;
    text-transform: uppercase;
}

.secondary-nav-link:hover {
    color: var(--accent-color);
    background: rgba(99, 102, 241, 0.04);
}

.secondary-nav-link.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

/* ===== WIREFRAME DASHBOARD LAYOUT ===== */
.wf-dashboard-layout {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem 0;
    align-items: flex-start;
}

/* ===== WIREFRAME FILTER SIDEBAR ===== */
.wf-filter-sidebar {
    width: 260px;
    min-width: 260px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(117, 112, 140, 0.12);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
}

.wf-filter-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(117, 112, 140, 0.1);
}

.wf-filter-title h3 {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--text-heading);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.wf-clear-btn {
    background: none;
    border: none;
    color: var(--accent-color);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    transition: background 0.2s;
}

.wf-clear-btn:hover {
    background: rgba(99, 102, 241, 0.08);
}

.wf-filter-item {
    border-bottom: 1px solid rgba(117, 112, 140, 0.08);
}

.wf-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 1.25rem;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-heading);
    transition: background 0.2s;
}

.wf-filter-header:hover {
    background: rgba(248, 249, 250, 0.8);
}

.wf-filter-header i:last-child {
    font-size: 0.65rem;
    color: var(--text-body);
}

.wf-filter-item.open .wf-filter-header {
    background: rgba(99, 102, 241, 0.04);
    color: var(--accent-color);
}

.wf-filter-body {
    padding: 0.5rem 1.25rem 1rem;
    animation: slideDown 0.25s ease-out;
}

.wf-filter-option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-body);
}

.wf-filter-option input[type="radio"],
.wf-filter-option input[type="checkbox"] {
    accent-color: var(--accent-color);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.wf-filter-option span {
    font-weight: 500;
}

.wf-filter-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid rgba(117, 112, 140, 0.2);
    border-radius: 8px;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* ===== WIREFRAME EVENT FEED ===== */
.wf-event-feed {
    flex: 1;
    min-width: 0;
}

.wf-event-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ===== WIREFRAME EVENT CARD ===== */
.wf-event-card {
    display: flex;
    flex-wrap: wrap;
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(117, 112, 140, 0.12);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.wf-event-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-color: rgba(99, 102, 241, 0.2);
}

.wf-card-left {
    width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    gap: 0.5rem;
    flex-shrink: 0;
}

.wf-card-thumb {
    width: 90px;
    height: 90px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    border: 1px solid rgba(117, 112, 140, 0.1);
}

.wf-card-mode-badge {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent-color);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    background: rgba(99, 102, 241, 0.08);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.wf-card-date {
    font-size: 0.75rem;
    color: var(--text-body);
    font-weight: 500;
}

.wf-card-center {
    flex: 1;
    padding: 1rem 1rem 1rem 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.wf-card-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-heading);
    margin: 0;
    line-height: 1.3;
}

.wf-card-college {
    font-size: 0.85rem;
    color: var(--text-body);
    font-weight: 500;
}

.wf-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-body);
}

.wf-card-price {
    font-weight: 600;
    color: var(--text-heading);
}

.wf-card-separator {
    color: rgba(117, 112, 140, 0.3);
}

.wf-card-team {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.wf-card-location {
    font-size: 0.85rem;
    color: var(--text-body);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.wf-card-location i {
    color: var(--accent-color);
    font-size: 0.75rem;
}

.wf-card-prize-badge {
    display: inline-block;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #78350f;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    width: fit-content;
    margin-top: 0.25rem;
}

.wf-card-bottom {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-top: 1px solid rgba(117, 112, 140, 0.08);
    background: rgba(248, 249, 250, 0.3);
}

.wf-card-stats {
    display: flex;
    gap: 1.25rem;
    font-size: 0.8rem;
    color: var(--text-body);
    font-weight: 500;
}

.wf-card-stats span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.wf-card-actions {
    display: flex;
    gap: 0.5rem;
}

.wf-icon-btn {
    background: none;
    border: 1px solid rgba(117, 112, 140, 0.15);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-body);
    font-size: 0.9rem;
    transition: all 0.2s;
}

.wf-icon-btn:hover {
    background: rgba(99, 102, 241, 0.08);
    color: var(--accent-color);
    border-color: rgba(99, 102, 241, 0.3);
}

/* Responsive - Landing Page */
@media (max-width: 900px) {
    .public-navbar {
        height: auto;
        min-height: 56px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .public-navbar .logo {
        width: 100%;
        justify-content: center;
    }

    .landing-nav-links {
        justify-content: center;
        width: 100%;
        gap: 0.8rem;
    }

    .landing-nav-cta {
        width: 100%;
        justify-content: center;
    }

    .landing-hero {
        padding-top: 6.5rem;
        padding-bottom: 4rem;
    }

    .landing-subtitle {
        font-size: 1rem;
    }

    .landing-solution-wrap .feature-section-content {
        padding: 1.5rem;
    }

    .secondary-nav {
        padding: 0 1rem;
    }

    .secondary-nav-link {
        padding: 0.7rem 0.8rem;
        font-size: 0.7rem;
    }

    .wf-dashboard-layout {
        flex-direction: column;
    }

    .wf-filter-sidebar {
        width: 100%;
        min-width: unset;
        position: static;
        max-height: none;
    }

    .wf-card-left {
        width: 100px;
        padding: 0.75rem;
    }

    .wf-card-thumb {
        width: 70px;
        height: 70px;
    }

    .wf-card-title {
        font-size: 0.95rem;
    }

    .wf-card-stats {
        flex-wrap: wrap;
        gap: 0.75rem;
        font-size: 0.75rem;
    }
}

/* ============================================================
   EVENT DETAIL PAGE — 3-COLUMN LAYOUT
   ============================================================ */

.ed-page {
    display: grid;
    grid-template-columns: 200px 1fr 320px;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    align-items: start;
}

/* --- LEFT: Smart Section Sidebar --- */
.ed-smart-sidebar {
    position: sticky;
    top: 90px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(117, 112, 140, 0.12);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    overflow-y: auto;
    max-height: calc(100vh - 110px);
    padding: 0.75rem 0;
}

.ed-smart-sidebar .ed-sidebar-title {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--text-heading);
    padding: 0.75rem 1.25rem 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ed-smart-sidebar .ed-nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.25rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-body);
    cursor: pointer;
    transition: all 0.2s;
    border-left: 3px solid transparent;
    text-decoration: none;
}

.ed-smart-sidebar .ed-nav-link:hover {
    background: rgba(199, 219, 247, 0.12);
    color: var(--accent-color);
}

.ed-smart-sidebar .ed-nav-link.active {
    color: var(--accent-color);
    background: rgba(199, 219, 247, 0.15);
    border-left-color: var(--accent-color);
    font-weight: 700;
}

.ed-smart-sidebar .ed-nav-link i {
    width: 16px;
    text-align: center;
    font-size: 0.8rem;
}

/* --- CENTER: Main Content --- */
.ed-main-content {
    min-width: 0;
}

.ed-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: opacity 0.2s;
}

.ed-back-link:hover {
    opacity: 0.8;
}

/* Hero Section */
.ed-hero {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    min-height: 260px;
    display: flex;
    align-items: flex-end;
}

.ed-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.ed-hero-overlay {
    position: relative;
    z-index: 1;
    padding: 2rem;
    width: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
}

.ed-hero-overlay h1 {
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 0.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.ed-hero-college {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ed-hero-college i {
    font-size: 0.85rem;
}

/* Content Sections */
.ed-section {
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(117, 112, 140, 0.1);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    scroll-margin-top: 100px;
}

.ed-section h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-heading);
    margin: 0 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(199, 219, 247, 0.3);
}

.ed-section h2 i {
    color: var(--accent-color);
    font-size: 1rem;
}

.ed-section p,
.ed-section .ed-text {
    color: var(--text-body);
    line-height: 1.8;
    font-size: 0.95rem;
    white-space: pre-wrap;
}

/* Prize & Certificate Row */
.ed-prize-row {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.ed-prize-card {
    flex: 1;
    min-width: 140px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.08), rgba(245, 158, 11, 0.05));
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 14px;
    padding: 1.25rem;
    text-align: center;
}

.ed-prize-card .ed-prize-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.ed-prize-card .ed-prize-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-body);
    margin-bottom: 0.25rem;
}

.ed-prize-card .ed-prize-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-heading);
}

/* PPT Template */
.ed-ppt-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(199, 219, 247, 0.1);
    border-radius: 12px;
    padding: 1rem 1.25rem;
}

.ed-ppt-row span {
    font-weight: 600;
    color: var(--text-body);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ed-ppt-download {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.25rem;
    background: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.ed-ppt-download:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* --- RIGHT: Fixed Sidebar --- */
.ed-fixed-sidebar {
    position: sticky;
    top: 90px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(117, 112, 140, 0.12);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ed-sidebar-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ed-price-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
}

.ed-price-badge.free {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.ed-price-badge.paid {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.ed-sidebar-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.ed-sidebar-actions button {
    background: none;
    border: 1px solid rgba(117, 112, 140, 0.2);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-body);
    font-size: 0.9rem;
    transition: all 0.2s;
}

.ed-sidebar-actions button:hover {
    background: rgba(197, 149, 148, 0.1);
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.ed-sidebar-actions button.active {
    color: #ef4444;
    border-color: #ef4444;
}

.ed-register-btn {
    width: 100%;
    padding: 0.9rem;
    background: var(--accent-gradient);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.ed-register-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.ed-register-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.ed-register-btn.registered {
    background: linear-gradient(135deg, #059669, #10b981);
}

.ed-sidebar-hint {
    font-size: 0.8rem;
    color: var(--text-body);
    line-height: 1.5;
    text-align: center;
    font-style: italic;
    padding: 0 0.5rem;
}

.ed-sidebar-info {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 0.75rem 0;
    border-top: 1px solid rgba(117, 112, 140, 0.1);
    border-bottom: 1px solid rgba(117, 112, 140, 0.1);
}

.ed-sidebar-info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.88rem;
    color: var(--text-body);
}

.ed-sidebar-info-item i {
    width: 18px;
    text-align: center;
    color: var(--accent-color);
    font-size: 0.85rem;
}

.ed-sidebar-info-item strong {
    color: var(--text-heading);
    font-weight: 700;
}

.ed-sidebar-btns {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.ed-sidebar-link-btn {
    width: 100%;
    padding: 0.7rem;
    border: 2px solid rgba(117, 112, 140, 0.15);
    border-radius: 12px;
    background: transparent;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-heading);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.ed-sidebar-link-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: rgba(199, 219, 247, 0.08);
}

.ed-sidebar-link-btn.going {
    background: linear-gradient(135deg, #059669, #10b981);
    color: #fff;
    border-color: transparent;
}

/* ============================================================
   REGISTRATION MODAL
   ============================================================ */

.ed-reg-type-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1rem 0;
}

.ed-reg-type-card {
    border: 2px solid rgba(117, 112, 140, 0.15);
    border-radius: 16px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.ed-reg-type-card:hover {
    border-color: var(--accent-color);
    background: rgba(199, 219, 247, 0.05);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.ed-reg-type-card.selected {
    border-color: var(--accent-color);
    background: rgba(199, 219, 247, 0.1);
    box-shadow: 0 0 0 3px rgba(197, 149, 148, 0.15);
}

.ed-reg-type-card i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 0.75rem;
}

.ed-reg-type-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-heading);
    margin: 0 0 0.5rem;
}

.ed-reg-type-card p {
    font-size: 0.8rem;
    color: var(--text-body);
    margin: 0;
    line-height: 1.4;
}

.ed-reg-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.ed-reg-form .ed-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.ed-reg-form .form-group {
    margin-bottom: 0;
}

.ed-reg-form .form-group label {
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.ed-reg-form .form-group input,
.ed-reg-form .form-group select {
    padding: 0.7rem 0.9rem;
    border-radius: 10px;
    font-size: 0.9rem;
}

.ed-fee-split {
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    color: #92400e;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Member Slots */
.ed-member-slot {
    background: rgba(248, 249, 250, 0.6);
    border: 1px solid rgba(117, 112, 140, 0.12);
    border-radius: 14px;
    padding: 1.25rem;
    margin-top: 0.5rem;
}

.ed-member-slot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.ed-member-slot-header h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-heading);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ed-friends-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.75rem;
    background: rgba(99, 102, 241, 0.08);
    color: var(--accent-color);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.ed-friends-btn:hover {
    background: rgba(99, 102, 241, 0.15);
}

.ed-reg-actions {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(117, 112, 140, 0.1);
}

/* ============================================================
   STUDENTS GOING SECTION
   ============================================================ */

.ed-students-going {
    border: 2px solid rgba(16, 185, 129, 0.2);
    background: rgba(16, 185, 129, 0.02);
}

.ed-students-going h2 {
    border-bottom-color: rgba(16, 185, 129, 0.3);
}

.ed-sg-toolbar {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.ed-sg-search {
    flex: 1;
    min-width: 180px;
    position: relative;
}

.ed-sg-search input {
    width: 100%;
    padding: 0.7rem 1rem 0.7rem 2.5rem;
    border: 2px solid rgba(117, 112, 140, 0.15);
    border-radius: 12px;
    font-size: 0.88rem;
    font-family: var(--font-body);
    transition: all 0.2s;
}

.ed-sg-search input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(197, 149, 148, 0.1);
}

.ed-sg-search i {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-body);
    font-size: 0.85rem;
}

.ed-sg-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 1.25rem;
    border: 2px solid rgba(117, 112, 140, 0.15);
    border-radius: 12px;
    background: #fff;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-heading);
    cursor: pointer;
    transition: all 0.2s;
}

.ed-sg-filter-btn:hover,
.ed-sg-filter-btn.active {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: rgba(199, 219, 247, 0.08);
}

/* Student Card */
.ed-sg-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ed-student-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(117, 112, 140, 0.1);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
}

.ed-student-card:hover {
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.ed-student-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.ed-student-info {
    flex: 1;
    min-width: 0;
}

.ed-student-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-heading);
}

.ed-student-meta {
    font-size: 0.8rem;
    color: var(--text-body);
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.2rem;
}

.ed-student-tags {
    display: flex;
    gap: 0.4rem;
    flex-shrink: 0;
}

.ed-student-tag {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.ed-student-tag.ride {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.ed-student-tag.team {
    background: rgba(99, 102, 241, 0.1);
    color: #4f46e5;
}

/* Team Accordion */
.ed-team-card {
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.ed-team-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1rem;
    cursor: pointer;
    background: rgba(99, 102, 241, 0.03);
    transition: all 0.2s;
}

.ed-team-header:hover {
    background: rgba(99, 102, 241, 0.06);
}

.ed-team-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-heading);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ed-team-members-wrap {
    padding: 0.25rem 1rem 1rem;
    border-top: 1px solid rgba(117, 112, 140, 0.08);
}

/* Badge Display */
.ed-badge-wrap {
    display: flex;
    gap: 0.3rem;
    flex-shrink: 0;
}

.ed-badge {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    position: relative;
    cursor: default;
}

.ed-badge-tooltip {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--true-black);
    color: #fff;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.7rem;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 10;
}

.ed-badge:hover .ed-badge-tooltip {
    opacity: 1;
}

/* Need A Ride Popup */
.ed-ride-popup {
    text-align: center;
    padding: 1rem;
}

.ed-ride-popup i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.ed-ride-popup h3 {
    font-size: 1.2rem;
    margin: 0 0 0.5rem;
    color: var(--text-heading);
}

.ed-ride-popup p {
    font-size: 0.9rem;
    color: var(--text-body);
    margin-bottom: 1.5rem;
}

.ed-ride-popup-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* ============================================================
   FRIENDS LIST PICKER
   ============================================================ */
.ed-friends-picker {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid rgba(117, 112, 140, 0.12);
    border-radius: 12px;
    padding: 0.5rem;
}

.ed-friend-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.ed-friend-item:hover {
    background: rgba(199, 219, 247, 0.1);
}

.ed-friend-item.selected {
    background: rgba(197, 149, 148, 0.1);
    border: 1px solid rgba(197, 149, 148, 0.3);
}

.ed-friend-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.ed-friend-info {
    flex: 1;
}

.ed-friend-name {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-heading);
}

.ed-friend-college {
    font-size: 0.75rem;
    color: var(--text-body);
}

/* ============================================================
   CREATE EVENT FORM — NEW FIELDS
   ============================================================ */
.ed-create-section {
    background: rgba(248, 249, 250, 0.5);
    border: 1px solid rgba(117, 112, 140, 0.1);
    border-radius: 14px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

.ed-create-section h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-heading);
    margin: 0 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
    .ed-page {
        grid-template-columns: 1fr 280px;
        padding: 1rem;
    }

    .ed-smart-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .ed-page {
        grid-template-columns: 1fr;
    }

    .ed-fixed-sidebar {
        position: static;
        order: -1;
    }

    .ed-hero-overlay h1 {
        font-size: 1.4rem;
    }

    .ed-reg-type-grid {
        grid-template-columns: 1fr;
    }

    .ed-reg-form .ed-form-row {
        grid-template-columns: 1fr;
    }
}

/* ===== TEAM UP SECTION (Event Detail Inline) ===== */
.ed-teamup-section,
.ed-rideshare-section {
    border-radius: 16px;
    border: 2px solid transparent;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    scroll-margin-top: 120px;
}

.ed-teamup-section {
    background: linear-gradient(to bottom, rgba(251, 191, 36, 0.04), #fff 60px);
    border-color: rgba(251, 191, 36, 0.25);
}

.ed-rideshare-section {
    background: linear-gradient(to bottom, rgba(239, 68, 68, 0.04), #fff 60px);
    border-color: rgba(239, 68, 68, 0.25);
}

.ed-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
}

.ed-section-header h2 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: none;
    padding-bottom: 0;
}

.ed-teamup-section .ed-section-header h2 {
    color: #b45309;
}

.ed-rideshare-section .ed-section-header h2 {
    color: #dc2626;
}

.ed-section-toolbar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.ed-section-toolbar .ed-sg-search {
    flex: 1;
    min-width: 160px;
}

.ed-section-toolbar .ed-toolbar-btn {
    padding: 0.45rem 0.9rem;
    border-radius: 50px;
    border: 1px solid rgba(117, 112, 140, 0.2);
    background: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.2s;
    color: var(--text-body);
    white-space: nowrap;
}

.ed-section-toolbar .ed-toolbar-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.ed-section-toolbar .ed-toolbar-btn.active {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}

.ed-section-toolbar .ed-toolbar-btn.post-btn {
    background: var(--accent-gradient);
    color: #fff;
    border: none;
}

.ed-section-toolbar .ed-toolbar-btn.post-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Team Post Cards */
.ed-team-card {
    background: #fff;
    border: 1px solid rgba(117, 112, 140, 0.12);
    border-radius: 14px;
    padding: 1.25rem;
    margin-bottom: 0.75rem;
    transition: all 0.2s;
}

.ed-team-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border-color: rgba(251, 191, 36, 0.3);
}

.ed-team-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.ed-team-card-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    flex-shrink: 0;
}

.ed-team-card-user {
    flex: 1;
    min-width: 0;
}

.ed-team-card-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-heading);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.ed-team-card-name .verified-badge {
    font-size: 0.7rem;
    color: #10b981;
}

.ed-team-card-college {
    font-size: 0.78rem;
    color: var(--text-body);
}

.ed-team-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.6rem;
}

.ed-team-card-meta .meta-pill {
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    background: rgba(248, 249, 250, 0.8);
    color: var(--text-body);
    border: 1px solid rgba(117, 112, 140, 0.1);
}

.ed-team-card-meta .meta-pill.role {
    background: rgba(99, 102, 241, 0.08);
    color: #6366f1;
    border-color: rgba(99, 102, 241, 0.15);
}

.ed-team-card-meta .meta-pill.team-req {
    background: rgba(251, 191, 36, 0.1);
    color: #b45309;
    border-color: rgba(251, 191, 36, 0.2);
}

.ed-team-card-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-heading);
    margin-bottom: 0.4rem;
}

.ed-team-card-bio {
    font-size: 0.85rem;
    color: var(--text-body);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.ed-team-card-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
}

.ed-team-card-skills .have-tag {
    padding: 0.2rem 0.55rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.ed-team-card-skills .need-tag {
    padding: 0.2rem 0.55rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.ed-team-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.6rem;
    border-top: 1px solid rgba(117, 112, 140, 0.08);
}

.ed-team-card-footer .team-size-label {
    font-size: 0.78rem;
    color: var(--text-body);
    font-weight: 500;
}

.ed-team-card-footer .ed-team-actions {
    display: flex;
    gap: 0.4rem;
}

.ed-team-card-footer .ed-team-actions button {
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid;
}

.ed-team-card-footer .ed-team-actions .accept-btn {
    background: #10b981;
    color: #fff;
    border-color: #10b981;
}

.ed-team-card-footer .ed-team-actions .accept-btn:hover {
    background: #059669;
}

.ed-team-card-footer .ed-team-actions .reject-btn {
    background: #fff;
    color: #ef4444;
    border-color: #ef4444;
}

.ed-team-card-footer .ed-team-actions .reject-btn:hover {
    background: rgba(239, 68, 68, 0.05);
}

/* Ride Share Cards */
.ed-ride-card {
    background: #fff;
    border: 1px solid rgba(117, 112, 140, 0.12);
    border-radius: 14px;
    padding: 1.25rem;
    margin-bottom: 0.75rem;
    transition: all 0.2s;
}

.ed-ride-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border-color: rgba(239, 68, 68, 0.3);
}

.ed-ride-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.ed-ride-card-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ed-ride-card-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    flex-shrink: 0;
}

.ed-ride-type-badge {
    padding: 0.25rem 0.7rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.ed-ride-type-badge.offer {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.ed-ride-type-badge.request {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.ed-ride-route {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.75rem 0;
    padding: 0.75rem;
    background: rgba(248, 249, 250, 0.5);
    border-radius: 10px;
}

.ed-ride-route .route-from,
.ed-ride-route .route-to {
    flex: 1;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-heading);
}

.ed-ride-route .route-arrow {
    color: var(--accent-color);
    font-size: 1rem;
}

.ed-ride-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-body);
}

.ed-ride-details span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.ed-ride-details span i {
    color: var(--accent-color);
    font-size: 0.75rem;
}

.ed-ride-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.6rem;
    border-top: 1px solid rgba(117, 112, 140, 0.08);
}

.ed-ride-card-footer .ride-rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.ed-ride-card-footer .ride-rating i {
    color: #fbbf24;
}

.ed-ride-card-footer .ride-past {
    font-size: 0.78rem;
    color: var(--text-body);
}

.ed-ride-card-footer .same-college {
    padding: 0.2rem 0.55rem;
    border-radius: 50px;
    font-size: 0.68rem;
    font-weight: 600;
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.ed-ride-card-footer .ed-ride-actions {
    display: flex;
    gap: 0.4rem;
}

.ed-ride-card-footer .ed-ride-actions button {
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid;
}

.ed-ride-card-footer .ed-ride-actions .accept-btn {
    background: #10b981;
    color: #fff;
    border-color: #10b981;
}

.ed-ride-card-footer .ed-ride-actions .offer-btn {
    background: #fff;
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.ed-ride-card-footer .ed-ride-actions .offer-btn:hover {
    background: rgba(197, 149, 148, 0.05);
}

/* Post Form Modal - shared for Team and Ride */
.ed-inline-form {
    background: rgba(248, 249, 250, 0.6);
    border: 1px solid rgba(117, 112, 140, 0.12);
    border-radius: 14px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    animation: slideDown 0.25s ease-out;
}

.ed-inline-form h3 {
    margin: 0 0 1rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-heading);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ed-inline-form h3 button {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-body);
    font-size: 0.85rem;
}

.ed-inline-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.ed-inline-form .form-group {
    margin-bottom: 0.75rem;
}

.ed-inline-form .form-group label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 0.3rem;
}

.ed-inline-form .submit-row {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

/* ============================================================
   MY EVENTS PAGE — REDESIGN
   ============================================================ */
.me-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 1.5rem 1rem 3rem;
}

.me-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.me-header h1 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-heading);
    margin: 0;
    white-space: nowrap;
}

.me-search-wrap {
    flex: 1;
    min-width: 180px;
    position: relative;
}

.me-search-wrap i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--neutral-grey);
    font-size: 0.85rem;
}

.me-search-wrap input {
    width: 100%;
    padding: 0.6rem 0.75rem 0.6rem 2.2rem;
    border: 1px solid rgba(117, 112, 140, 0.18);
    border-radius: 10px;
    font-size: 0.88rem;
    background: #fff;
    color: var(--text-heading);
    transition: border-color 0.2s;
}

.me-search-wrap input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.08);
}

.me-filters-btn {
    padding: 0.55rem 1.1rem;
    border-radius: 10px;
    border: 1px solid rgba(201, 168, 76, 0.28);
    background: rgba(13, 27, 42, 0.9);
    font-size: 0.85rem;
    font-weight: 600;
    color: #F0EDE8;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s;
}

.me-filters-btn:hover {
    border-color: #C9A84C;
    color: #C9A84C;
    background: rgba(201, 168, 76, 0.12);
}

/* Filter pills row */
.me-filter-pills {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.me-filter-pill {
    padding: 0.4rem 1rem;
    border-radius: 50px;
    border: 1px solid rgba(201, 168, 76, 0.24);
    background: rgba(13, 27, 42, 0.88);
    font-size: 0.78rem;
    font-weight: 600;
    color: #A8B2C8;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.me-filter-pill:hover {
    border-color: #C9A84C;
    color: #C9A84C;
    background: rgba(201, 168, 76, 0.1);
}

.me-filter-pill.active {
    background: rgba(201, 168, 76, 0.22);
    color: #C9A84C;
    border-color: rgba(201, 168, 76, 0.45);
}

/* My Event Card */
.me-card {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    background: rgba(13, 27, 42, 0.9);
    border: 1px solid rgba(201, 168, 76, 0.22);
    border-radius: 14px;
    padding: 1.1rem;
    margin-bottom: 0.85rem;
    transition: all 0.25s;
    position: relative;
    cursor: pointer;
}

.me-card:hover {
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
    border-color: rgba(201, 168, 76, 0.42);
    transform: translateY(-2px);
}

.me-card-left {
    width: 100px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.me-card-thumb {
    width: 100px;
    height: 80px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    background-color: rgba(117, 112, 140, 0.08);
}

.me-card-mode {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #C9A84C;
}

.me-card-date {
    font-size: 0.72rem;
    color: #A8B2C8;
}

.me-card-center {
    flex: 1;
    min-width: 200px;
}

.me-card-top-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.35rem;
}

.me-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #F0EDE8;
    margin: 0;
    line-height: 1.3;
}

.me-card-college {
    font-size: 0.82rem;
    color: #A8B2C8;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    margin-bottom: 0.3rem;
}

.me-card-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.82rem;
    color: #A8B2C8;
    margin-bottom: 0.4rem;
    flex-wrap: wrap;
}

.me-card-price {
    font-weight: 700;
    color: #C9A84C;
}

.me-card-separator {
    color: rgba(201, 168, 76, 0.35);
}

.me-card-location {
    font-size: 0.78rem;
    color: #A8B2C8;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.me-card-location i {
    color: var(--accent-color);
    font-size: 0.72rem;
}

/* Status badges */
.me-status-badge {
    padding: 0.3rem 0.85rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    flex-shrink: 0;
}

.me-status-ongoing {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.me-status-upcoming {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.me-status-completed {
    background: rgba(117, 112, 140, 0.1);
    color: #64748b;
    border: 1px solid rgba(117, 112, 140, 0.2);
}

.me-days-left {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-color);
    white-space: nowrap;
}

/* Prize badge */
.me-prize-badge {
    display: inline-block;
    padding: 0.25rem 0.7rem;
    border-radius: 50px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    margin-top: 0.3rem;
}

/* Card bottom row */
.me-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    width: 100%;
    padding-top: 0.6rem;
    border-top: 1px solid rgba(201, 168, 76, 0.2);
    margin-top: 0.4rem;
}

.me-card-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.78rem;
    color: #A8B2C8;
}

.me-card-stats i {
    margin-right: 0.25rem;
    font-size: 0.72rem;
}

.me-card-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.me-completed-pill {
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    background: rgba(201, 168, 76, 0.14);
    color: #C9A84C;
    border: 1px solid rgba(201, 168, 76, 0.35);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.me-review-btn {
    padding: 0.3rem 0.85rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid rgba(201, 168, 76, 0.35);
    background: rgba(201, 168, 76, 0.12);
    color: #C9A84C;
}

.me-review-btn:hover {
    background: rgba(201, 168, 76, 0.2);
    border-color: #C9A84C;
}

.me-review-btn.reviewed {
    background: rgba(201, 168, 76, 0.08);
    color: #A8B2C8;
    border-color: rgba(201, 168, 76, 0.25);
    pointer-events: none;
}

.me-icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid rgba(201, 168, 76, 0.28);
    background: rgba(13, 27, 42, 0.88);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #A8B2C8;
    font-size: 0.82rem;
    transition: all 0.2s;
}

.me-icon-btn:hover {
    border-color: #C9A84C;
    color: #C9A84C;
    background: rgba(201, 168, 76, 0.12);
}

/* ============================================================
   REVIEW MODAL
   ============================================================ */
.review-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.2s ease-out;
}

.review-modal {
    background: #fff;
    border-radius: 18px;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.review-modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(117, 112, 140, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.review-modal-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-heading);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.review-modal-close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: rgba(117, 112, 140, 0.08);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-body);
    font-size: 1.1rem;
    transition: all 0.2s;
}

.review-modal-close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.review-modal-body {
    padding: 1.25rem 1.5rem;
}

.review-cert-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border: 1.5px dashed rgba(99, 102, 241, 0.35);
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.04);
    color: #6366f1;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 1.25rem;
}

.review-cert-btn:hover {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.08);
}

.review-cert-input {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.review-cert-input input {
    width: 100%;
    padding: 0.55rem 0.75rem;
    border: 1px solid rgba(117, 112, 140, 0.18);
    border-radius: 8px;
    font-size: 0.82rem;
}

.review-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-heading);
    margin-bottom: 0.5rem;
}

.review-textarea {
    width: 100%;
    min-height: 90px;
    padding: 0.75rem;
    border: 1px solid rgba(117, 112, 140, 0.18);
    border-radius: 10px;
    font-size: 0.88rem;
    font-family: inherit;
    resize: vertical;
    color: var(--text-heading);
    transition: border-color 0.2s;
    margin-bottom: 1.2rem;
}

.review-textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.08);
}

.review-radio-group {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.2rem;
}

.review-radio-group label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-heading);
    cursor: pointer;
}

.review-radio-group input[type="radio"] {
    accent-color: var(--accent-color);
    width: 16px;
    height: 16px;
}

.review-skills-input {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid rgba(117, 112, 140, 0.18);
    border-radius: 10px;
    font-size: 0.88rem;
    color: var(--text-heading);
    transition: border-color 0.2s;
    margin-bottom: 1.2rem;
}

.review-skills-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.08);
}

/* Star rating */
.review-star-rating {
    display: flex;
    gap: 0.3rem;
    margin-bottom: 1.2rem;
}

.review-star {
    font-size: 1.6rem;
    cursor: pointer;
    transition: transform 0.15s, color 0.15s;
    color: rgba(117, 112, 140, 0.25);
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
}

.review-star:hover {
    transform: scale(1.15);
}

.review-star.filled {
    color: #fbbf24;
}

.review-star.hovered {
    color: #f59e0b;
}

/* Footer */
.review-modal-footer {
    padding: 1rem 1.5rem 1.25rem;
    border-top: 1px solid rgba(117, 112, 140, 0.1);
}

.review-privacy-note {
    font-size: 0.75rem;
    color: var(--neutral-grey);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.review-privacy-note i {
    font-size: 0.7rem;
}

.review-footer-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.review-cancel-btn {
    padding: 0.55rem 1.2rem;
    border-radius: 10px;
    border: 1px solid rgba(117, 112, 140, 0.2);
    background: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-body);
    cursor: pointer;
    transition: all 0.2s;
}

.review-cancel-btn:hover {
    border-color: #ef4444;
    color: #ef4444;
}

.review-submit-btn {
    padding: 0.55rem 1.5rem;
    border-radius: 10px;
    border: none;
    background: var(--accent-gradient);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.review-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

.review-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Empty state */
.me-empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--neutral-grey);
}

.me-empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.me-empty-state p {
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 600px) {
    .me-header {
        flex-direction: column;
        align-items: stretch;
    }

    .me-card-left {
        width: 80px;
    }

    .me-card-thumb {
        width: 80px;
        height: 65px;
    }

    .me-card-title {
        font-size: 0.95rem;
    }

    .review-modal {
        max-width: 100%;
        border-radius: 14px;
    }
}

/* ========= [START] UI OVERHAUL STYLES ========= */
:root {
    /* LUXURY ACADEMIC COLOR PALETTE */
    --color-primary: #0A1628;
    /* Deep Navy */
    --color-primary-light: #112240;
    /* Navy Light */
    --color-accent: #C9A84C;
    /* Antique Gold */
    --color-accent-bright: #F0C040;
    /* Bright Gold */
    --color-accent-muted: #8B6914;
    /* Muted Gold */
    --color-surface: #0D1B2A;
    /* Dark Surface */
    --color-surface-2: #1A2744;
    /* Card Surface */
    --color-text-primary: #F0EDE8;
    /* Warm White */
    --color-text-secondary: #A8B2C8;
    /* Muted Blue-White */
    --color-border: rgba(201, 168, 76, 0.2);
    /* Gold Border */
    --color-glow: rgba(201, 168, 76, 0.15);
    /* Gold Glow */

    /* Typography Scale */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 4rem;
    --text-hero: clamp(3.5rem, 8vw, 7rem);

    /* Spacing Scale */
    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 32px;
    --space-5: 40px;
    --space-6: 48px;
    --space-8: 64px;
    --space-10: 80px;
    --space-12: 96px;
    --space-16: 128px;

    /* Borders & Shadows */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --shadow-gold: 0 8px 32px rgba(201, 168, 76, 0.2);

    /* OVERRIDING ORIGINAL VARIABLES TO FORCIBLY APPLY THEME */
    --primary-color: var(--color-primary);
    --secondary-color: var(--color-accent);
    --accent-color: var(--color-accent);
    --text-heading: var(--color-text-primary);
    --text-body: var(--color-text-secondary);
    --bg-gradient-start: var(--color-primary);
    --bg-gradient-end: var(--color-primary-light);
    --neutral-white: var(--color-surface-2);
    --neutral-light: var(--color-surface);
    --danger-red: #F28C8C;
    /* Coral accent */

    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'DM Sans', sans-serif;
    --font-accent: 'Space Mono', monospace;
}

[data-theme="light"] {
    /* Light theme overrides */
    --color-primary: #F8F6F0;
    --color-primary-light: #F0EDE8;
    --color-surface: #FFFFFF;
    --color-surface-2: #F8F6F0;
    --color-text-primary: #0A1628;
    --color-text-secondary: #3A4A6B;
    --color-border: rgba(201, 168, 76, 0.5);

    /* Variable mapping */
    --bg-gradient-start: var(--color-primary);
    --bg-gradient-end: var(--color-primary-light);
    --neutral-white: var(--color-surface);
    --neutral-light: var(--color-surface-2);
}

/* Base Body Styles */
body {
    background: var(--color-primary);
    color: var(--color-text-secondary);
    font-family: var(--font-body);
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* Typography Overrides */
h1,
h2,
h3,
h4,
h5,
h6,
.hero h1 {
    font-family: var(--font-heading) !important;
    color: var(--color-text-primary) !important;
}

h1 {
    font-size: var(--text-4xl);
}

h2 {
    font-size: var(--text-3xl);
}

h3 {
    font-size: var(--text-2xl);
}

/* Force space-mono on elements that need it */
.tag,
.badge-count,
small,
.stats-row {
    font-family: var(--font-accent) !important;
}

/* ════ PRELOADER ════ */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--color-primary);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#preloader.preloader-hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-crest {
    width: 60px;
    height: 60px;
    border: 3px solid transparent;
    border-top-color: var(--color-accent);
    border-bottom-color: var(--color-accent);
    border-radius: 50%;
    animation: spin 1.2s infinite linear;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ════ NAVBAR & THEME TOGGLE ════ */
.navbar {
    background: transparent !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
    height: 70px !important;
}

.navbar.scrolled {
    background: rgba(10, 22, 40, 0.85) !important;
    border-bottom: 1px solid var(--color-border) !important;
}

[data-theme="light"] .navbar.scrolled {
    background: rgba(248, 246, 240, 0.85) !important;
}

.navbar.nav-hidden {
    transform: translateY(-100%);
}

.nav-links a {
    font-family: var(--font-body);
    color: var(--color-text-primary) !important;
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a::after {
    background: var(--color-accent) !important;
}

.theme-toggle-btn {
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-accent);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 1rem;
}

.theme-toggle-btn:hover {
    background: var(--color-glow);
    transform: rotate(15deg) scale(1.1);
}

/* ════ HERO SECTION ════ */
.hero {
    position: relative;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--space-16);
    background: radial-gradient(circle at center, var(--color-primary-light) 0%, var(--color-primary) 100%) !important;
    overflow: hidden;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

.hero>* {
    z-index: 1;
    position: relative;
}

.hero-badge {
    display: inline-block;
    color: var(--color-accent);
    border: 1px solid var(--color-border);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-family: var(--font-accent);
    font-size: var(--text-xs);
    letter-spacing: 2px;
    margin-bottom: var(--space-4);
    background: var(--color-glow);
    text-transform: uppercase;
}

.hero h1 {
    font-size: var(--text-hero) !important;
    line-height: 1.1;
    margin-bottom: var(--space-4);
}

.hero p {
    font-size: var(--text-lg);
    max-width: 600px;
    margin: 0 auto var(--space-6);
    color: var(--color-text-secondary);
}

/* ════ BUTTONS ════ */
.btn-primary,
.btn-gradient,
button[type="submit"] {
    background: var(--color-accent) !important;
    color: #0A1628 !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    letter-spacing: 1px;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
    position: relative;
    overflow: hidden;
}

.btn-primary:after,
.btn-gradient:after,
button[type="submit"]:after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-20deg);
    transition: all 0.6s ease;
}

.btn-primary:hover:after,
.btn-gradient:hover:after,
button[type="submit"]:hover:after {
    left: 150%;
}

.btn-primary:hover,
.btn-gradient:hover,
button[type="submit"]:hover {
    background: var(--color-accent-bright) !important;
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: var(--shadow-gold) !important;
}

.btn-primary:active {
    transform: scale(0.97) !important;
}

.btn-secondary,
.btn-outline {
    background: transparent !important;
    border: 1px solid var(--color-accent) !important;
    color: var(--color-accent) !important;
    border-radius: 50px !important;
}

.btn-secondary:hover,
.btn-outline:hover {
    background: rgba(201, 168, 76, 0.1) !important;
    transform: translateY(-2px) scale(1.02) !important;
}

/* ════ EVENT CARDS & GLASSMORPHISM ════ */
.event-card,
.event-box,
.glass-card,
[style*="box-shadow:"] {
    background: rgba(26, 39, 68, 0.6) !important;
    backdrop-filter: blur(12px) !important;
    border: 1px solid var(--color-border) !important;
    border-top: 3px solid var(--color-accent) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-md) !important;
    color: var(--color-text-primary);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

[data-theme="light"] .event-card,
[data-theme="light"] .event-box,
[data-theme="light"] [style*="box-shadow:"] {
    background: rgba(255, 255, 255, 0.8) !important;
}

.event-card:hover,
.event-box:hover {
    transform: translateY(-8px) !important;
    box-shadow: var(--shadow-gold), inset 0 0 20px rgba(201, 168, 76, 0.05) !important;
    border-color: rgba(201, 168, 76, 0.4) !important;
}

.event-card img {
    transition: transform 0.4s ease, filter 0.4s ease;
}

.event-card:hover img {
    transform: scale(1.03);
    filter: brightness(1.1);
}

.event-card h3,
.event-box h3 {
    color: var(--color-text-primary) !important;
}

/* ════ FORMS & INPUTS ════ */
input,
select,
textarea {
    background: var(--color-surface-2) !important;
    color: var(--color-text-primary) !important;
    border: 1px solid var(--color-border) !important;
    border-radius: var(--radius-md) !important;
    font-family: var(--font-body) !important;
    transition: all 0.3s ease !important;
}

input:focus,
select:focus,
textarea:focus {
    outline: none !important;
    border-color: var(--color-accent) !important;
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.25) !important;
}

[data-theme="light"] input,
[data-theme="light"] select,
[data-theme="light"] textarea {
    background: #FFFFFF !important;
    color: #0A1628 !important;
}

/* ════ SCROLL TO TOP & PROGRESS BAR ════ */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--color-accent);
    z-index: 100000;
}

#scroll-to-top {
    position: fixed;
    bottom: var(--space-4);
    right: var(--space-4);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--color-accent);
    color: #0A1628;
    border: none;
    font-size: var(--text-lg);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: var(--shadow-gold);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 9999;
}

#scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#scroll-to-top:hover {
    background: var(--color-accent-bright);
}

#scroll-to-top:hover i {
    animation: bounceTop 1s infinite alternate;
}

@keyframes bounceTop {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-3px);
    }
}

/* ════ SCROLL REVEAL UTILS ════ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ════ HEADINGS DECORATION ════ */
.section-heading-container {
    position: relative;
    padding-bottom: var(--space-3);
    margin-bottom: var(--space-6);
    display: inline-block;
}

.section-heading-line {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: var(--color-accent);
    transition: width 1s ease;
}

.reveal.active .section-heading-line {
    width: 100%;
}

/* ════ FOOTER ════ */
.footer {
    background: var(--color-primary-light) !important;
    border-top: 1px solid var(--color-border);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, var(--color-glow), transparent);
    pointer-events: none;
}

.footer-text {
    font-family: var(--font-accent);
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

/* ============ LUXURY OVERHAUL FIXES ============ */

/* PROBLEM 1 - SECONDARY NAV */
.secondary-nav {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0 1.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: sticky;
    top: 70px;
    z-index: 999;
    height: 44px;
}

.secondary-nav::-webkit-scrollbar {
    display: none;
}

.secondary-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0 1rem;
    height: 44px;
    color: var(--color-text-secondary);
    text-decoration: none;
    font-family: var(--font-accent);
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.secondary-nav-link:hover {
    color: var(--color-accent);
    border-bottom-color: rgba(201, 168, 76, 0.4);
}

.secondary-nav-link.active {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

.secondary-nav-link i {
    font-size: 0.75rem;
}

/* Mobile: secondary nav becomes bottom tab bar */
@media (max-width: 768px) {
    .secondary-nav {
        position: fixed;
        bottom: 0;
        top: auto;
        left: 0;
        right: 0;
        width: 100%;
        height: 56px;
        z-index: 1000;
        padding: 0;
        justify-content: flex-start;
        border-top: 1px solid var(--color-border);
        border-bottom: none;
        gap: 0;
    }

    .secondary-nav-link {
        flex: 0 0 auto;
        flex-direction: column;
        gap: 2px;
        padding: 0 0.75rem;
        height: 56px;
        font-size: 0.55rem;
        letter-spacing: 0.5px;
    }

    .secondary-nav-link i {
        font-size: 1rem;
    }

    /* Add padding to main content so bottom nav doesn't overlap */
    .main-content {
        padding-bottom: 70px !important;
    }
}

/* PROBLEM 2 - MOBILE NAVBAR */
@media (max-width: 480px) {
    .search-bar {
        display: none;
    }

    .navbar .logo {
        font-size: 1.1rem;
    }
}

/* PROBLEM 3 - EVENT CARDS WHITE/UNSTYLED */
.event-card-footer {
    background: rgba(10, 22, 40, 0.4) !important;
    border-top: 1px solid var(--color-border) !important;
}

.event-card-content h3 {
    color: var(--color-text-primary) !important;
    font-family: var(--font-heading) !important;
    font-size: 1.2rem !important;
}

.event-meta {
    color: var(--color-text-secondary) !important;
    font-size: var(--text-sm) !important;
}

.event-description {
    color: var(--color-text-secondary) !important;
}

.college-badge {
    background: rgba(201, 168, 76, 0.2) !important;
    color: var(--color-accent) !important;
    border: 1px solid var(--color-border) !important;
    font-family: var(--font-accent) !important;
    font-size: 0.65rem !important;
    letter-spacing: 1px !important;
}

.status-badge {
    font-family: var(--font-accent) !important;
    font-size: 0.65rem !important;
    letter-spacing: 1px !important;
    border-radius: var(--radius-full) !important;
    padding: 0.25rem 0.75rem !important;
}

/* Event grid: 1 col mobile → 2 col tablet → 3 col desktop */
.event-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
}

@media (min-width: 640px) {
    .event-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (min-width: 1024px) {
    .event-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* PROBLEM 4 - ENCODING BUG IN PRIZE TEXT */
/* NOTE: Prize text encoding bug — the prize field in Firestore 
   contains mojibake characters. Fix by re-saving prize text 
   in Firestore as plain ASCII or UTF-8 string. 
   CSS cannot fix data encoding issues. */

/* PROBLEM 5 - DASHBOARD LAYOUT BREAKS ON MOBILE */
.dashboard-layout {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
    align-items: flex-start;
}

@media (max-width: 1024px) {
    .dashboard-layout {
        flex-direction: column;
        gap: 1rem;
    }

    .sidebar {
        width: 100% !important;
    }

    .filter-box {
        display: none;
        /* Hide filters on mobile by default */
    }

    .filter-box.mobile-open {
        display: block !important;
        /* Toggle via button */
    }
}

/* Add a mobile filter toggle button */
.mobile-filter-toggle {
    display: none;
    width: 100%;
    margin-bottom: 1rem;
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    color: var(--color-accent);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    gap: 0.5rem;
    align-items: center;
}

@media (max-width: 1024px) {
    .mobile-filter-toggle {
        display: flex;
    }
}

/* PROBLEM 6 - MODALS OVERFLOW ON MOBILE */
.modal-overlay {
    padding: 1rem !important;
    align-items: flex-end !important;
    /* Sheet style on mobile */
}

@media (min-width: 768px) {
    .modal-overlay {
        align-items: center !important;
    }
}

.modal-content,
.modal-box,
[class*="modal"]>div {
    width: min(560px, 100%) !important;
    max-height: 90dvh !important;
    overflow-y: auto !important;
    border-radius: var(--radius-lg) !important;
}

@media (max-width: 767px) {

    .modal-content,
    .modal-box {
        border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
        width: 100% !important;
    }
}

/* PROBLEM 7 - CONTAINER TOO WIDE */
.container {
    max-width: 1200px !important;
    margin: 0 auto;
    padding: 1rem 1rem !important;
    width: 100%;
}

@media (min-width: 640px) {
    .container {
        padding: 1rem 1.5rem !important;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 1.5rem 2rem !important;
    }
}

/* PROBLEM 8 - TEAM/RIDE CARDS STILL LIGHT THEMED */
.team-post-card,
.ride-post-card {
    background: rgba(26, 39, 68, 0.6) !important;
    backdrop-filter: blur(12px) !important;
    border: 1px solid var(--color-border) !important;
    border-radius: var(--radius-lg) !important;
    color: var(--color-text-primary) !important;
}

.team-post-card h3,
.team-post-card h4,
.ride-post-card h3,
.ride-post-card h4 {
    color: var(--color-text-primary) !important;
}

.team-post-card p,
.ride-post-card p {
    color: var(--color-text-secondary) !important;
}

/* PROBLEM 9 - GLOBAL OVERFLOW ISSUES */
html,
body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
}

img {
    max-width: 100% !important;
    height: auto;
}

table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
}

.leaderboard-table,
[class*="table"] {
    overflow-x: auto !important;
}

/* PROBLEM 10 - TYPOGRAPHY CONFLICT */
body,
p,
span,
div,
input,
select,
textarea,
button,
a,
label,
li,
td,
th,
.form-group label {
    font-family: var(--font-body) !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.section-title,
.page-title,
.card-title,
.event-card h3,
.team-post-card h3 {
    font-family: var(--font-heading) !important;
}

.tag,
.badge-count,
small,
.status-badge,
.college-badge,
.secondary-nav-link,
.hero-badge,
.stats-row span {
    font-family: var(--font-accent) !important;
}

/* ============ MORE LUXURY OVERHAUL FIXES ============ */

/* FIX 1 & 2 — NAVBAR POSITIONING AND LAYOUT */
.navbar {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
    padding: 0 1.5rem !important;
    position: fixed !important;
    top: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
    height: 64px !important;
    background: rgba(10, 22, 40, 0.97) !important;
    backdrop-filter: blur(24px) !important;
    border-bottom: 1px solid rgba(201, 168, 76, 0.2) !important;
}

.navbar .logo {
    flex-shrink: 0 !important;
}

.navbar .search-bar {
    flex: 1 !important;
    max-width: 480px !important;
    margin: 0 auto !important;
}

.navbar .navbar-right {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    flex-shrink: 0 !important;
    margin-left: auto !important;
}

/* Ensure secondary-nav is matching the fixed layout correctly */
.secondary-nav {
    position: fixed !important;
    top: 64px !important;
    width: 100% !important;
    z-index: 999 !important;
    height: 44px !important;
    background: rgba(10, 22, 40, 0.97) !important;
    backdrop-filter: blur(24px) !important;
    border-bottom: 1px solid rgba(201, 168, 76, 0.2) !important;
}

.main-content {
    padding-top: 108px !important;
}

/* FIX 3 — WF-EVENT-CARDS: DARK NAVY GLASS STYLE */
.wf-event-card {
    background: rgba(17, 34, 64, 0.75) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(201, 168, 76, 0.2) !important;
    border-left: 3px solid #C9A84C !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    color: #F0EDE8 !important;
}

.wf-event-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 16px 48px rgba(201, 168, 76, 0.2) !important;
    border-color: rgba(201, 168, 76, 0.5) !important;
}

.wf-card-title {
    color: #F0EDE8 !important;
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
}

.wf-card-college {
    color: #A8B2C8 !important;
    font-size: 0.85rem !important;
}

.wf-card-meta,
.wf-card-location,
.wf-card-date {
    color: #A8B2C8 !important;
}

.wf-card-price {
    color: #C9A84C !important;
    font-weight: 700 !important;
}

.wf-card-mode-badge {
    background: rgba(201, 168, 76, 0.15) !important;
    color: #C9A84C !important;
    border: 1px solid rgba(201, 168, 76, 0.3) !important;
    font-family: 'Space Mono', monospace !important;
    font-size: 0.65rem !important;
    letter-spacing: 1px !important;
    border-radius: 999px !important;
    padding: 0.2rem 0.6rem !important;
}

.wf-card-bottom {
    background: rgba(10, 22, 40, 0.4) !important;
    border-top: 1px solid rgba(201, 168, 76, 0.15) !important;
}

.wf-card-stats {
    color: #A8B2C8 !important;
}

.wf-card-stats span {
    color: #A8B2C8 !important;
}

.wf-icon-btn {
    border-color: rgba(201, 168, 76, 0.2) !important;
    color: #A8B2C8 !important;
    background: rgba(201, 168, 76, 0.05) !important;
}

.wf-icon-btn:hover {
    background: rgba(201, 168, 76, 0.15) !important;
    color: #C9A84C !important;
    border-color: rgba(201, 168, 76, 0.4) !important;
}

.wf-card-prize-badge {
    background: linear-gradient(135deg, #C9A84C, #F0C040) !important;
    color: #0A1628 !important;
    font-weight: 800 !important;
    font-size: 0.75rem !important;
    border-radius: 999px !important;
    padding: 0.3rem 0.9rem !important;
}

/* FIX 4 — WF-FILTER-SIDEBAR: DARK GLASS STYLE + FIXED */
.wf-filter-sidebar {
    background: rgba(13, 27, 42, 0.9) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(201, 168, 76, 0.2) !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
    position: sticky !important;
    top: 116px !important;
    max-height: calc(100vh - 130px) !important;
    overflow-y: auto !important;
    scrollbar-width: thin !important;
    scrollbar-color: rgba(201, 168, 76, 0.3) transparent !important;
}

.wf-filter-title {
    border-bottom: 1px solid rgba(201, 168, 76, 0.15) !important;
}

.wf-filter-title h3 {
    color: #F0EDE8 !important;
    font-family: 'Space Mono', monospace !important;
    font-size: 0.75rem !important;
    letter-spacing: 2px !important;
}

.wf-clear-btn {
    color: #C9A84C !important;
}

.wf-filter-header {
    color: #A8B2C8 !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 0.8rem !important;
    border-bottom: 1px solid rgba(201, 168, 76, 0.08) !important;
}

.wf-filter-header:hover {
    background: rgba(201, 168, 76, 0.05) !important;
    color: #C9A84C !important;
}

.wf-filter-item.open .wf-filter-header {
    color: #C9A84C !important;
    background: rgba(201, 168, 76, 0.08) !important;
}

.wf-filter-option {
    color: #A8B2C8 !important;
}

.wf-filter-option input[type="radio"],
.wf-filter-option input[type="checkbox"] {
    accent-color: #C9A84C !important;
}

.wf-filter-input {
    background: rgba(26, 39, 68, 0.6) !important;
    border: 1px solid rgba(201, 168, 76, 0.2) !important;
    color: #F0EDE8 !important;
    border-radius: 8px !important;
}

.wf-filter-input:focus {
    border-color: #C9A84C !important;
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.2) !important;
    outline: none !important;
}

/* FIX 5 — ONLY CARDS SCROLL, NOT THE WHOLE PAGE LAYOUT */
.wf-dashboard-layout {
    display: flex !important;
    gap: 1.5rem !important;
    align-items: flex-start !important;
    padding: 1.5rem !important;
    min-height: calc(100vh - 108px) !important;
}

.wf-event-feed {
    flex: 1 !important;
    min-width: 0 !important;
    overflow-y: auto !important;
}

.wf-event-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
}

/* FIX 6 — ALL BUTTONS CONSISTENT GOLD STYLE */
/* Primary — gold filled */
.btn-primary,
button[type="submit"],
.btn-gradient {
    background: #C9A84C !important;
    color: #0A1628 !important;
    border: none !important;
    border-radius: 999px !important;
    font-weight: 700 !important;
    font-family: 'DM Sans', sans-serif !important;
    letter-spacing: 0.5px !important;
    padding: 0.75rem 1.75rem !important;
    min-height: 44px !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    position: relative !important;
    overflow: hidden !important;
}

.btn-primary:hover,
button[type="submit"]:hover,
.btn-gradient:hover {
    background: #F0C040 !important;
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 8px 32px rgba(201, 168, 76, 0.35) !important;
}

.btn-primary:active {
    transform: scale(0.97) !important;
}

/* Secondary — outlined gold */
.btn-secondary,
.btn-outline {
    background: transparent !important;
    color: #C9A84C !important;
    border: 1.5px solid #C9A84C !important;
    border-radius: 999px !important;
    font-weight: 600 !important;
    font-family: 'DM Sans', sans-serif !important;
    padding: 0.75rem 1.75rem !important;
    min-height: 44px !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
}

.btn-secondary:hover,
.btn-outline:hover {
    background: rgba(201, 168, 76, 0.12) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 16px rgba(201, 168, 76, 0.2) !important;
}

/* Small variant */
.btn-sm {
    padding: 0.5rem 1.25rem !important;
    font-size: 0.85rem !important;
    min-height: 36px !important;
}

/* Danger */
.btn-danger {
    background: #E05C5C !important;
    color: #fff !important;
    border: none !important;
    border-radius: 999px !important;
}

.btn-danger:hover {
    background: #c94444 !important;
    transform: translateY(-2px) !important;
}

/* FIX 7 — ALL TEXT COLORS CONSISTENT */
/* All white background cards → dark glass */
.filter-box,
.login-box,
.attendees-section,
.task-section,
.apply-section,
.leaderboard-table,
.team-post-card,
.ride-post-card,
.notification-dropdown,
.dropdown-menu {
    background: rgba(17, 34, 64, 0.85) !important;
    backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(201, 168, 76, 0.2) !important;
    color: #F0EDE8 !important;
}

/* All headings inside cards */
.filter-box h4,
.filter-box h3,
.attendees-section h3,
.task-section h3,
.notification-dropdown h4,
.dropdown-menu button {
    color: #F0EDE8 !important;
}

/* All body text inside cards */
.filter-box p,
.notification-item,
.notification-item small,
.dropdown-menu button {
    color: #A8B2C8 !important;
}

/* Dropdown menu items */
.dropdown-menu {
    border-radius: 16px !important;
}

.dropdown-menu button:hover {
    background: rgba(201, 168, 76, 0.1) !important;
    color: #C9A84C !important;
}

/* FIX 8 — SEARCH BAR POLISH */
.search-bar {
    flex: 1 !important;
    max-width: 520px !important;
    position: relative !important;
}

.search-bar input {
    width: 100% !important;
    height: 40px !important;
    background: rgba(255, 255, 255, 0.07) !important;
    border: 1px solid rgba(201, 168, 76, 0.25) !important;
    border-radius: 999px !important;
    color: #F0EDE8 !important;
    padding: 0 1rem 0 2.5rem !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 0.9rem !important;
    transition: all 0.25s ease !important;
}

.search-bar input::placeholder {
    color: rgba(168, 178, 200, 0.6) !important;
}

.search-bar input:focus {
    outline: none !important;
    border-color: #C9A84C !important;
    background: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15) !important;
}

.search-bar i {
    position: absolute !important;
    left: 1rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: rgba(201, 168, 76, 0.6) !important;
    z-index: 1 !important;
    pointer-events: none !important;
}

/* FIX 9 — RESPONSIVE: MOBILE CHROME PERFECT */
@media (max-width: 768px) {
    .navbar {
        padding: 0 1rem !important;
        height: 56px !important;
        gap: 0.5rem !important;
    }

    .navbar .logo {
        font-size: 1rem !important;
    }

    .search-bar {
        flex: 1 !important;
        max-width: none !important;
    }

    .search-bar input {
        font-size: 0.8rem !important;
    }

    .secondary-nav {
        top: 56px !important;
        height: 40px !important;
    }

    .main-content {
        padding-top: 96px !important;
    }

    .wf-dashboard-layout {
        flex-direction: column !important;
        padding: 1rem !important;
    }

    .wf-filter-sidebar {
        width: 100% !important;
        min-width: unset !important;
        position: static !important;
        max-height: none !important;
    }

    .wf-card-left {
        width: 90px !important;
        padding: 0.75rem !important;
    }

    .wf-card-thumb {
        width: 72px !important;
        height: 72px !important;
    }
}

@media (max-width: 480px) {
    .search-bar {
        max-width: 160px !important;
    }

    .navbar-right .notification-icon {
        padding: 0.3rem !important;
    }
}

/* Ensure no horizontal scroll anywhere */
html,
body,
#root {
    overflow-x: hidden !important;
    max-width: 100vw !important;
}

* {
    box-sizing: border-box !important;
}

/* ============ FIXED-FRAME LAYOUT ============ */

/* ── STEP 1: Fix navbar absolutely at top ── */
.navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
    height: 64px !important;
}

/* ── STEP 2: Fix secondary-nav just below navbar ── */
.secondary-nav {
    position: fixed !important;
    top: 64px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 999 !important;
    height: 44px !important;
}

/* ── STEP 3: Push main content below both fixed navbars ── */
.main-content {
    padding-top: 108px !important;
    height: calc(100vh - 108px) !important;
    overflow: hidden !important;
}

/* ── STEP 4: Dashboard layout fills remaining screen ── */
.wf-dashboard-layout {
    display: flex !important;
    gap: 1.5rem !important;
    padding: 1.5rem !important;
    height: 100% !important;
    overflow: hidden !important;
    align-items: flex-start !important;
}

/* ── STEP 5: Filter sidebar fixed, never scrolls ── */
.wf-filter-sidebar {
    width: 260px !important;
    min-width: 260px !important;
    flex-shrink: 0 !important;
    height: 100% !important;
    max-height: calc(100vh - 140px) !important;
    overflow-y: auto !important;
    position: sticky !important;
    top: 0 !important;
    scrollbar-width: thin !important;
    scrollbar-color: rgba(201, 168, 76, 0.3) transparent !important;
    background: rgba(13, 27, 42, 0.9) !important;
    border: 1px solid rgba(201, 168, 76, 0.2) !important;
    border-radius: 16px !important;
}

/* ── STEP 6: Event feed scrolls ONLY ── */
.wf-event-feed {
    flex: 1 !important;
    min-width: 0 !important;
    height: 100% !important;
    max-height: calc(100vh - 140px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding-right: 0.5rem !important;
    scrollbar-width: thin !important;
    scrollbar-color: rgba(201, 168, 76, 0.3) transparent !important;
}

/* ── STEP 7: Scrollbar styling for event feed ── */
.wf-event-feed::-webkit-scrollbar {
    width: 4px !important;
}

.wf-event-feed::-webkit-scrollbar-track {
    background: transparent !important;
}

.wf-event-feed::-webkit-scrollbar-thumb {
    background: rgba(201, 168, 76, 0.3) !important;
    border-radius: 999px !important;
}

.wf-event-feed::-webkit-scrollbar-thumb:hover {
    background: rgba(201, 168, 76, 0.6) !important;
}

/* ── STEP 8: Mobile fix ── */
@media (max-width: 768px) {
    .navbar {
        height: 56px !important;
    }

    .secondary-nav {
        top: 56px !important;
        height: 40px !important;
    }

    .main-content {
        padding-top: 96px !important;
        height: calc(100vh - 96px) !important;
    }

    .wf-dashboard-layout {
        flex-direction: column !important;
        overflow-y: auto !important;
        height: auto !important;
        padding: 1rem !important;
    }

    .wf-filter-sidebar {
        width: 100% !important;
        min-width: unset !important;
        height: auto !important;
        max-height: 50vh !important;
        position: static !important;
    }

    .wf-event-feed {
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }
}

/* ========= [END] UI OVERHAUL STYLES ========= */

/* ========= LAYOUT BEHAVIOR FIXES (STRUCTURE ONLY) ========= */
:root {
    --top-navbar-height: 64px;
    --secondary-navbar-height: 44px;
    --header-offset: calc(var(--top-navbar-height) + var(--secondary-navbar-height));
}

body {
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
}

#root {
    flex: 1 1 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
    transform: none !important;
}

.secondary-nav {
    position: fixed !important;
    top: var(--top-navbar-height) !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 999 !important;
}

.main-content {
    flex: 1 1 auto !important;
    height: auto !important;
    overflow: visible !important;
    padding-top: var(--header-offset) !important;
}

.navbar-chatbot-btn {
    margin-left: 0.25rem;
    background: transparent !important;
    border: none !important;
    color: var(--soft-sky-blue) !important;
    box-shadow: none !important;
}

.navbar-chatbot-btn.active {
    color: var(--accent-color) !important;
    background: rgba(201, 168, 76, 0.12) !important;
}

.navbar-chatbot-btn:hover {
    background: rgba(201, 168, 76, 0.16) !important;
    color: var(--accent-color) !important;
}

.dropdown-menu {
    max-height: min(70vh, 520px) !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.dropdown-menu::-webkit-scrollbar {
    width: 0;
    height: 0;
}

/* ===== EVENT DETAIL PAGE COLOR MATCH ===== */
.ed-page .ed-smart-sidebar,
.ed-page .ed-fixed-sidebar,
.ed-page .ed-section,
.ed-page .ed-teamup-section,
.ed-page .ed-rideshare-section,
.ed-page .ed-team-card,
.ed-page .ed-ride-card,
.ed-page .ed-inline-form,
.ed-page .ed-member-slot,
.ed-page .ed-ride-route,
.ed-page .ed-ppt-row,
.ed-page .ed-prize-card {
    background: rgba(13, 27, 42, 0.9) !important;
    border-color: rgba(201, 168, 76, 0.2) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28) !important;
}

.ed-page .ed-teamup-section {
    background: linear-gradient(to bottom, rgba(251, 191, 36, 0.06), rgba(13, 27, 42, 0.92) 60px) !important;
}

.ed-page .ed-rideshare-section {
    background: linear-gradient(to bottom, rgba(239, 68, 68, 0.06), rgba(13, 27, 42, 0.92) 60px) !important;
}

.ed-page .ed-smart-sidebar .ed-sidebar-title,
.ed-page .ed-nav-link,
.ed-page .ed-section h2,
.ed-page .ed-team-card-name,
.ed-page .ed-team-card-title,
.ed-page .ed-ride-route .route-from,
.ed-page .ed-ride-route .route-to,
.ed-page .ed-sidebar-link-btn,
.ed-page .ed-reg-type-card h3,
.ed-page .ed-prize-card .ed-prize-value,
.ed-page .ed-sidebar-info-item strong {
    color: #F0EDE8 !important;
}

.ed-page .ed-section .ed-text,
.ed-page .ed-section p,
.ed-page .ed-team-card-college,
.ed-page .ed-team-card-bio,
.ed-page .ed-team-size-label,
.ed-page .ed-ride-details,
.ed-page .ed-ride-past,
.ed-page .ed-sidebar-hint,
.ed-page .ed-sidebar-info-item,
.ed-page .ed-reg-type-card p,
.ed-page .ed-ppt-row span,
.ed-page .ed-prize-card .ed-prize-label,
.ed-page .ed-friend-college,
.ed-page .ed-student-meta {
    color: #A8B2C8 !important;
}

.ed-page .ed-smart-sidebar .ed-nav-link:hover,
.ed-page .ed-smart-sidebar .ed-nav-link.active {
    background: rgba(201, 168, 76, 0.12) !important;
    color: #C9A84C !important;
    border-left-color: #C9A84C !important;
}

.ed-page .ed-section h2,
.ed-page .ed-sidebar-info,
.ed-page .ed-team-card-footer,
.ed-page .ed-ride-card-footer,
.ed-page .ed-reg-actions,
.ed-page .ed-section-header {
    border-color: rgba(201, 168, 76, 0.2) !important;
}

.ed-page .ed-sidebar-actions button,
.ed-page .ed-sidebar-link-btn,
.ed-page .ed-sg-filter-btn,
.ed-page .ed-toolbar-btn,
.ed-page .ed-friends-btn,
.ed-page .ed-ppt-download,
.ed-page .ed-team-card-footer .ed-team-actions button,
.ed-page .ed-ride-card-footer .ed-ride-actions button,
.ed-page .ed-register-btn {
    background: rgba(13, 27, 42, 0.88) !important;
    border-color: rgba(201, 168, 76, 0.35) !important;
    color: #C9A84C !important;
}

.ed-page .ed-sidebar-actions button:hover,
.ed-page .ed-sidebar-link-btn:hover,
.ed-page .ed-sg-filter-btn:hover,
.ed-page .ed-toolbar-btn:hover,
.ed-page .ed-friends-btn:hover,
.ed-page .ed-ppt-download:hover,
.ed-page .ed-team-card-footer .ed-team-actions button:hover,
.ed-page .ed-ride-card-footer .ed-ride-actions button:hover,
.ed-page .ed-register-btn:hover,
.ed-page .ed-toolbar-btn.active,
.ed-page .ed-sg-filter-btn.active,
.ed-page .ed-sidebar-link-btn.going {
    background: rgba(201, 168, 76, 0.2) !important;
    border-color: #C9A84C !important;
    color: #F0EDE8 !important;
}

.ed-page .ed-sg-search input,
.ed-page .ed-reg-form .form-group input,
.ed-page .ed-reg-form .form-group select {
    background: rgba(10, 22, 40, 0.86) !important;
    border-color: rgba(201, 168, 76, 0.28) !important;
    color: #F0EDE8 !important;
}

.ed-page .ed-student-card,
.ed-page .ed-sg-list,
.ed-page .ed-team-card-meta .meta-pill,
.ed-page .ed-team-card-skills .have-tag,
.ed-page .ed-team-card-skills .need-tag,
.ed-page .ed-ride-type-badge,
.ed-page .ed-student-tag,
.ed-page .ed-ride-card-footer .same-college {
    background: rgba(10, 22, 40, 0.88) !important;
    border-color: rgba(201, 168, 76, 0.3) !important;
    color: #C9A84C !important;
}

.ed-page .ed-student-card:hover,
.ed-page .ed-team-card:hover,
.ed-page .ed-ride-card:hover {
    background: rgba(16, 30, 52, 0.94) !important;
    border-color: rgba(201, 168, 76, 0.45) !important;
}

.ed-page .ed-student-name,
.ed-page .ed-team-card-name,
.ed-page .ed-ride-card-header,
.ed-page .ed-friend-name {
    color: #F0EDE8 !important;
}

.ed-page .ed-student-avatar,
.ed-page .ed-team-card-avatar,
.ed-page .ed-ride-card-avatar,
.ed-page .ed-friend-avatar {
    background: rgba(201, 168, 76, 0.18) !important;
    color: #C9A84C !important;
    border: 1px solid rgba(201, 168, 76, 0.35) !important;
}

/* ===== EVENT DETAIL PAGE LAYOUT BEHAVIOR ===== */
.main-content.event-detail-main {
    overflow: hidden !important;
}

.main-content.event-detail-main .ed-page {
    height: calc(100vh - var(--header-offset) - 10px) !important;
    overflow: hidden !important;
    align-items: stretch !important;
}

.main-content.event-detail-main .ed-smart-sidebar,
.main-content.event-detail-main .ed-fixed-sidebar {
    position: sticky !important;
    top: 0 !important;
    height: 100% !important;
    max-height: 100% !important;
    overflow-y: auto !important;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.main-content.event-detail-main .ed-main-content {
    height: 100% !important;
    max-height: 100% !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding-right: 0.35rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.main-content.event-detail-main .ed-smart-sidebar::-webkit-scrollbar,
.main-content.event-detail-main .ed-fixed-sidebar::-webkit-scrollbar,
.main-content.event-detail-main .ed-main-content::-webkit-scrollbar {
    width: 0;
    height: 0;
}

@media (max-width: 1200px) {
    .main-content.event-detail-main {
        overflow: visible !important;
    }

    .main-content.event-detail-main .ed-page {
        height: auto !important;
        overflow: visible !important;
    }

    .main-content.event-detail-main .ed-smart-sidebar,
    .main-content.event-detail-main .ed-fixed-sidebar,
    .main-content.event-detail-main .ed-main-content {
        position: static !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }
}

.main-content.events-page-main {
    overflow: hidden !important;
}

.main-content.events-page-main .page-layout,
.main-content.events-page-main .wf-dashboard-layout,
.wf-events-page {
    display: flex !important;
    gap: 20px !important;
    align-items: flex-start !important;
    padding: 20px 0 0 0 !important;
    height: calc(100vh - var(--header-offset) - 20px) !important;
    overflow: hidden !important;
}

.main-content.events-page-main .filters,
.main-content.events-page-main .wf-filter-sidebar {
    position: sticky !important;
    top: 0 !important;
    height: fit-content !important;
    max-height: 100% !important;
    overflow-y: auto !important;
    z-index: 500 !important;
}

.main-content.events-page-main .events,
.main-content.events-page-main .wf-event-feed {
    flex: 1 !important;
    min-width: 0;
    height: 100% !important;
    max-height: 100% !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

.footer {
    position: relative;
    z-index: auto;
    margin-top: auto;
}

@media (max-width: 900px) {
    :root {
        --top-navbar-height: 56px;
        --secondary-navbar-height: 36px;
    }

    .secondary-nav {
        position: fixed !important;
        top: var(--top-navbar-height) !important;
        bottom: auto !important;
        height: var(--secondary-navbar-height) !important;
    }

    .main-content.events-page-main .page-layout,
    .main-content.events-page-main .wf-dashboard-layout,
    .wf-events-page {
        flex-direction: column !important;
        height: auto !important;
        overflow: visible !important;
    }

    .mobile-filter-toggle {
        display: flex !important;
        width: 100%;
    }

    .main-content.events-page-main .filters,
    .main-content.events-page-main .wf-filter-sidebar {
        width: 100% !important;
        min-width: 100% !important;
        position: static !important;
        top: auto !important;
        z-index: auto !important;
        display: none;
        max-height: none !important;
    }

    .main-content.events-page-main .filters.mobile-open,
    .main-content.events-page-main .wf-filter-sidebar.mobile-open {
        display: block !important;
    }

    .main-content.events-page-main .events,
    .main-content.events-page-main .wf-event-feed {
        width: 100%;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }
}

/* ===== MIND GAMES THEME ALIGNMENT ===== */
.games-page .page-header.gradient-bg {
    background: linear-gradient(135deg, rgba(16, 30, 52, 0.96) 0%, rgba(10, 22, 40, 0.96) 55%, rgba(36, 28, 56, 0.94) 100%) !important;
    border: 1px solid rgba(201, 168, 76, 0.28) !important;
    color: #F0EDE8 !important;
    box-shadow: 0 12px 30px rgba(2, 8, 18, 0.42) !important;
}

.games-page .page-header.gradient-bg h1,
.games-page .page-header.gradient-bg p,
.games-page .page-header.gradient-bg i {
    color: #F0EDE8 !important;
}

.games-page .game-card {
    background: linear-gradient(145deg, rgba(16, 30, 52, 0.96), rgba(10, 22, 40, 0.96)) !important;
    border: 1px solid rgba(201, 168, 76, 0.3) !important;
    color: #F0EDE8 !important;
    box-shadow: 0 14px 34px rgba(2, 8, 18, 0.45) !important;
}

.games-page .game-card:hover,
.games-page .game-card:focus {
    box-shadow: 0 18px 38px rgba(2, 8, 18, 0.56) !important;
    border-color: rgba(201, 168, 76, 0.45) !important;
}

.games-page .game-card i,
.games-page .game-card p {
    color: #C9A84C !important;
}

.games-page .game-card h3,
.games-page .game-container h2,
.games-page .game-container h3,
.games-page .game-container p {
    color: #F0EDE8 !important;
}

.games-page .game-container {
    background: linear-gradient(145deg, rgba(16, 30, 52, 0.95), rgba(10, 22, 40, 0.94)) !important;
    border: 1px solid rgba(201, 168, 76, 0.25) !important;
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 14px 30px rgba(2, 8, 18, 0.42) !important;
}

.games-page .memory-card {
    background: rgba(10, 22, 40, 0.9) !important;
    border: 1px solid rgba(201, 168, 76, 0.28) !important;
    color: #F0EDE8 !important;
}

.games-page .memory-card.flipped {
    background: rgba(201, 168, 76, 0.2) !important;
    border-color: rgba(201, 168, 76, 0.5) !important;
}

.games-page .number-btn {
    background: rgba(10, 22, 40, 0.9) !important;
    border: 1px solid rgba(201, 168, 76, 0.32) !important;
    color: #F0EDE8 !important;
}

.games-page .number-btn.done {
    background: rgba(201, 168, 76, 0.24) !important;
    border-color: rgba(201, 168, 76, 0.56) !important;
    color: #F0EDE8 !important;
}

.games-page input[type="number"] {
    background: rgba(10, 22, 40, 0.88) !important;
    border: 1px solid rgba(201, 168, 76, 0.32) !important;
    color: #F0EDE8 !important;
}

.games-page .btn-primary,
.games-page .btn-outline {
    border-color: rgba(201, 168, 76, 0.52) !important;
}

.games-page .btn-primary {
    background: linear-gradient(120deg, #C9A84C, #9F7E2F) !important;
    color: #0A1628 !important;
}

.games-page .btn-outline {
    background: rgba(12, 26, 45, 0.75) !important;
    color: #F0EDE8 !important;
}

.games-page .btn-primary:hover,
.games-page .btn-outline:hover {
    background: rgba(201, 168, 76, 0.2) !important;
    color: #F0EDE8 !important;
}

/* ===== SPONSOR DASHBOARD THEME ALIGNMENT ===== */
.sponsor-dashboard-page {
    color: #F0EDE8;
}

.sponsor-dashboard-page div[style*="background: #fff"],
.sponsor-dashboard-page div[style*="background:#fff"],
.sponsor-dashboard-page div[style*="background: #f8fafc"],
.sponsor-dashboard-page div[style*="background:#f8fafc"],
.sponsor-dashboard-page div[style*="background: #f1f5f9"],
.sponsor-dashboard-page div[style*="background:#f1f5f9"] {
    background: linear-gradient(145deg, rgba(16, 30, 52, 0.94), rgba(10, 22, 40, 0.94)) !important;
    border: 1px solid rgba(201, 168, 76, 0.22) !important;
    box-shadow: 0 12px 28px rgba(2, 8, 18, 0.4) !important;
}

.sponsor-dashboard-page div[style*="color: #1e293b"],
.sponsor-dashboard-page div[style*="color:#1e293b"],
.sponsor-dashboard-page div[style*="color: #64748b"],
.sponsor-dashboard-page div[style*="color:#64748b"],
.sponsor-dashboard-page div[style*="color: #94a3b8"],
.sponsor-dashboard-page div[style*="color:#94a3b8"],
.sponsor-dashboard-page div[style*="color: #475569"],
.sponsor-dashboard-page div[style*="color:#475569"],
.sponsor-dashboard-page h2,
.sponsor-dashboard-page h3,
.sponsor-dashboard-page h4,
.sponsor-dashboard-page p,
.sponsor-dashboard-page span,
.sponsor-dashboard-page label {
    color: #F0EDE8 !important;
}

.sponsor-dashboard-page div[style*="border-bottom: '1px solid #f1f5f9'"],
.sponsor-dashboard-page div[style*="borderBottom: '1px solid #f1f5f9'"],
.sponsor-dashboard-page div[style*="border-bottom: 1px solid #f1f5f9"],
.sponsor-dashboard-page div[style*="borderBottom: 1px solid #f1f5f9"] {
    border-bottom: 1px solid rgba(201, 168, 76, 0.16) !important;
}

.sponsor-dashboard-page .btn-outline {
    background: rgba(10, 22, 40, 0.74) !important;
    color: #F0EDE8 !important;
    border-color: rgba(201, 168, 76, 0.45) !important;
}

.sponsor-dashboard-page .btn-gradient {
    background: linear-gradient(120deg, #C9A84C, #9F7E2F) !important;
    color: #0A1628 !important;
}

.sponsor-dashboard-page .btn-gradient:hover,
.sponsor-dashboard-page .btn-outline:hover {
    background: rgba(201, 168, 76, 0.2) !important;
    color: #F0EDE8 !important;
}

.sponsor-dashboard-page input,
.sponsor-dashboard-page textarea,
.sponsor-dashboard-page select {
    background: rgba(10, 22, 40, 0.88) !important;
    color: #F0EDE8 !important;
    border: 1px solid rgba(201, 168, 76, 0.3) !important;
}

.sponsor-dashboard-page .muted {
    color: #A8B2C8 !important;
}

/* Catch React inline style colors rendered as rgb(...) */
.sponsor-dashboard-page [style*="color: rgb(30, 41, 59)"],
.sponsor-dashboard-page [style*="color:rgb(30,41,59)"],
.sponsor-dashboard-page [style*="color: rgb(100, 116, 139)"],
.sponsor-dashboard-page [style*="color:rgb(100,116,139)"],
.sponsor-dashboard-page [style*="color: rgb(148, 163, 184)"],
.sponsor-dashboard-page [style*="color:rgb(148,163,184)"],
.sponsor-dashboard-page [style*="color: rgb(71, 85, 105)"],
.sponsor-dashboard-page [style*="color:rgb(71,85,105)"] {
    color: #F0EDE8 !important;
}

/* Fix pale tab strip and muted tab labels */
.sponsor-dashboard-page [style*="background: rgb(241, 245, 249)"],
.sponsor-dashboard-page [style*="background:rgb(241,245,249)"] {
    background: rgba(10, 22, 40, 0.9) !important;
    border: 1px solid rgba(201, 168, 76, 0.24) !important;
}

.sponsor-dashboard-page button[style*="color: rgb(100, 116, 139)"],
.sponsor-dashboard-page button[style*="color:rgb(100,116,139)"] {
    color: #F0EDE8 !important;
}

.sponsor-dashboard-page button[style*="background: rgb(255, 255, 255)"],
.sponsor-dashboard-page button[style*="background:rgb(255,255,255)"] {
    background: rgba(201, 168, 76, 0.16) !important;
    border: 1px solid rgba(201, 168, 76, 0.42) !important;
}

/* First horizontal box (hero) */
.sponsor-dashboard-page .sd-hero {
    background: linear-gradient(135deg, rgba(16, 30, 52, 0.97) 0%, rgba(10, 22, 40, 0.97) 60%, rgba(24, 38, 62, 0.95) 100%) !important;
    border: 1px solid rgba(201, 168, 76, 0.28) !important;
}

.sponsor-dashboard-page .sd-hero h1,
.sponsor-dashboard-page .sd-hero span,
.sponsor-dashboard-page .sd-hero div,
.sponsor-dashboard-page .sd-hero i {
    color: #F0EDE8 !important;
}

/* Second horizontal box (tabs strip) */
.sponsor-dashboard-page .sd-tabs {
    background: rgba(10, 22, 40, 0.9) !important;
    border: 1px solid rgba(201, 168, 76, 0.24) !important;
    box-shadow: 0 10px 22px rgba(2, 8, 18, 0.35) !important;
}

.sponsor-dashboard-page .sd-tabs button {
    background: rgba(16, 30, 52, 0.78) !important;
    color: #A8B2C8 !important;
    border: 1px solid rgba(201, 168, 76, 0.2) !important;
}

.sponsor-dashboard-page .sd-tabs button[style*="background: rgb(255, 255, 255)"],
.sponsor-dashboard-page .sd-tabs button[style*="background:rgb(255,255,255)"] {
    background: rgba(201, 168, 76, 0.22) !important;
    color: #F0EDE8 !important;
    border-color: rgba(201, 168, 76, 0.5) !important;
}

/* Stat cards + panel text contrast */
.sponsor-dashboard-page .sd-stat-card,
.sponsor-dashboard-page .sd-panel {
    background: linear-gradient(145deg, rgba(16, 30, 52, 0.94), rgba(10, 22, 40, 0.94)) !important;
    border: 1px solid rgba(201, 168, 76, 0.24) !important;
}

.sponsor-dashboard-page .sd-stat-card div,
.sponsor-dashboard-page .sd-stat-card span,
.sponsor-dashboard-page .sd-panel div,
.sponsor-dashboard-page .sd-panel span,
.sponsor-dashboard-page .sd-panel h3,
.sponsor-dashboard-page .sd-panel h4,
.sponsor-dashboard-page .sd-panel p {
    color: #F0EDE8 !important;
}

.sponsor-dashboard-page .sd-stat-card *,
.sponsor-dashboard-page .sd-panel * {
    color: #F0EDE8 !important;
    opacity: 1 !important;
}

/* ===== SPONSOR SHOWCASE THEME ALIGNMENT ===== */
.sponsor-showcase-page {
    color: #F0EDE8;
}

.sponsor-showcase-page .ss-hero {
    background: linear-gradient(135deg, rgba(16, 30, 52, 0.97) 0%, rgba(10, 22, 40, 0.97) 58%, rgba(24, 38, 62, 0.95) 100%) !important;
    border: 1px solid rgba(201, 168, 76, 0.28) !important;
    box-shadow: 0 14px 30px rgba(2, 8, 18, 0.42) !important;
}

.sponsor-showcase-page .ss-hero * {
    color: #F0EDE8 !important;
}

.sponsor-showcase-page .ss-tier-tabs {
    background: rgba(10, 22, 40, 0.9) !important;
    border: 1px solid rgba(201, 168, 76, 0.24) !important;
    border-radius: 14px;
    padding: 8px;
}

.sponsor-showcase-page .ss-tier-tabs button {
    background: rgba(16, 30, 52, 0.78) !important;
    border: 1px solid rgba(201, 168, 76, 0.22) !important;
    color: #A8B2C8 !important;
}

.sponsor-showcase-page .ss-tier-tabs button[style*="background: rgb(255, 255, 255)"],
.sponsor-showcase-page .ss-tier-tabs button[style*="background:rgb(255,255,255)"] {
    background: rgba(201, 168, 76, 0.22) !important;
    border-color: rgba(201, 168, 76, 0.5) !important;
    color: #F0EDE8 !important;
}

.sponsor-showcase-page .ss-card,
.sponsor-showcase-page .ss-cta,
.sponsor-showcase-page .ss-mini-stat {
    background: linear-gradient(145deg, rgba(16, 30, 52, 0.94), rgba(10, 22, 40, 0.94)) !important;
    border: 1px solid rgba(201, 168, 76, 0.24) !important;
    box-shadow: 0 12px 28px rgba(2, 8, 18, 0.4) !important;
}

.sponsor-showcase-page .ss-card *,
.sponsor-showcase-page .ss-cta *,
.sponsor-showcase-page .ss-mini-stat * {
    color: #F0EDE8 !important;
    opacity: 1 !important;
}

.sponsor-showcase-page .btn-outline {
    background: rgba(10, 22, 40, 0.74) !important;
    color: #F0EDE8 !important;
    border-color: rgba(201, 168, 76, 0.45) !important;
}

.sponsor-showcase-page .btn-gradient {
    background: linear-gradient(120deg, #C9A84C, #9F7E2F) !important;
    color: #0A1628 !important;
}

.sponsor-showcase-page .btn-gradient:hover,
.sponsor-showcase-page .btn-outline:hover {
    background: rgba(201, 168, 76, 0.2) !important;
    color: #F0EDE8 !important;
}

/* ===== RESOURCE HUB THEME ALIGNMENT ===== */
.resource-hub-page {
    color: #F0EDE8;
}

.resource-hub-page div[style*="background: white"],
.resource-hub-page div[style*="background:white"],
.resource-hub-page div[style*="background: #fff"],
.resource-hub-page div[style*="background:#fff"],
.resource-hub-page div[style*="background: #f9f9f9"],
.resource-hub-page div[style*="background:#f9f9f9"],
.resource-hub-page div[style*="background: #f8fafc"],
.resource-hub-page div[style*="background:#f8fafc"],
.resource-hub-page div[style*="background: #f1f5f9"],
.resource-hub-page div[style*="background:#f1f5f9"] {
    background: linear-gradient(145deg, rgba(16, 30, 52, 0.94), rgba(10, 22, 40, 0.94)) !important;
    border-color: rgba(201, 168, 76, 0.24) !important;
    box-shadow: 0 12px 28px rgba(2, 8, 18, 0.4) !important;
}

.resource-hub-page h1,
.resource-hub-page h2,
.resource-hub-page h3,
.resource-hub-page h4,
.resource-hub-page p,
.resource-hub-page span,
.resource-hub-page small,
.resource-hub-page label,
.resource-hub-page i {
    color: #F0EDE8 !important;
}

.resource-hub-page [style*="color: #666"],
.resource-hub-page [style*="color:#666"],
.resource-hub-page [style*="color: #999"],
.resource-hub-page [style*="color:#999"],
.resource-hub-page [style*="color: #888"],
.resource-hub-page [style*="color:#888"],
.resource-hub-page [style*="color: #555"],
.resource-hub-page [style*="color:#555"] {
    color: #A8B2C8 !important;
}

.resource-hub-page input,
.resource-hub-page select,
.resource-hub-page textarea {
    background: rgba(10, 22, 40, 0.88) !important;
    color: #F0EDE8 !important;
    border: 1px solid rgba(201, 168, 76, 0.3) !important;
}

.resource-hub-page input::placeholder,
.resource-hub-page textarea::placeholder {
    color: #A8B2C8 !important;
}

.resource-hub-page button[style*="background: none"],
.resource-hub-page button[style*="background:none"] {
    color: #A8B2C8 !important;
}

.resource-hub-page div[style*="border-bottom: 2px solid #eee"] button,
.resource-hub-page div[style*="borderBottom: 2px solid #eee"] button {
    color: #F0EDE8 !important;
}

.resource-hub-page .resource-empty-state {
    background: linear-gradient(145deg, rgba(16, 30, 52, 0.94), rgba(10, 22, 40, 0.94)) !important;
    border: 1px solid rgba(201, 168, 76, 0.24) !important;
    box-shadow: 0 12px 28px rgba(2, 8, 18, 0.4) !important;
}

.resource-hub-page .resource-empty-state p,
.resource-hub-page .resource-empty-state i {
    color: #A8B2C8 !important;
}

/* ===== GLOBAL DARK FORM/PANEL ENFORCEMENT ===== */
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),
select,
textarea,
.modal-body input,
.modal-card input,
.modal-card select,
.modal-card textarea,
.ed-reg-form .form-group input,
.ed-reg-form .form-group select,
.ed-inline-form .form-group input,
.ed-inline-form .form-group select,
.profile-project-form .pf-field input,
.profile-project-form .pf-field textarea,
.profile-about-section textarea,
.social-edit-row input,
.pf-search input,
.me-search-wrap input,
.review-cert-input input,
.review-textarea,
.review-skills-input {
    background: rgba(10, 22, 40, 0.9) !important;
    color: #F0EDE8 !important;
    border: 1px solid rgba(201, 168, 76, 0.3) !important;
}

input::placeholder,
textarea::placeholder {
    color: #A8B2C8 !important;
    opacity: 1;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(201, 168, 76, 0.7) !important;
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.2) !important;
}

[data-theme="light"] input,
[data-theme="light"] select,
[data-theme="light"] textarea {
    background: rgba(10, 22, 40, 0.9) !important;
    color: #F0EDE8 !important;
    border-color: rgba(201, 168, 76, 0.3) !important;
}

.notification-dropdown,
.dropdown-menu,
.modal-content,
.modal-card,
.chat-popup,
.chat-body,
.resource-card,
.mentor-card,
.profile-bio-box,
.ed-member-slot,
.ed-friend-item.selected,
.ed-sg-list,
.ed-student-card,
.me-card,
.me-section,
.games-page .game-card,
.wf-events-page .event-card,
.wf-events-page .event-box {
    background: linear-gradient(145deg, rgba(16, 30, 52, 0.94), rgba(10, 22, 40, 0.94)) !important;
    border-color: rgba(201, 168, 76, 0.24) !important;
    color: #F0EDE8 !important;
}

.user-msg,
.bot-msg {
    background: rgba(10, 22, 40, 0.88) !important;
    color: #F0EDE8 !important;
    border: 1px solid rgba(201, 168, 76, 0.28) !important;
}

.page-container div[style*="background: white"],
.page-container div[style*="background:white"],
.page-container div[style*="background: #fff"],
.page-container div[style*="background:#fff"],
.page-container div[style*="background: #f9f9f9"],
.page-container div[style*="background:#f9f9f9"],
.page-container div[style*="background: #f8fafc"],
.page-container div[style*="background:#f8fafc"],
.page-container div[style*="background: #f1f5f9"],
.page-container div[style*="background:#f1f5f9"],
.container div[style*="background: white"],
.container div[style*="background:white"],
.container div[style*="background: #fff"],
.container div[style*="background:#fff"],
.container div[style*="background: #f9f9f9"],
.container div[style*="background:#f9f9f9"],
.container div[style*="background: #f8fafc"],
.container div[style*="background:#f8fafc"],
.container div[style*="background: #f1f5f9"],
.container div[style*="background:#f1f5f9"] {
    background: linear-gradient(145deg, rgba(16, 30, 52, 0.94), rgba(10, 22, 40, 0.94)) !important;
    border-color: rgba(201, 168, 76, 0.24) !important;
    box-shadow: 0 12px 28px rgba(2, 8, 18, 0.38) !important;
}

/* ===== GLOBAL SCROLLBAR + PROFILE CARD DARK ALIGNMENT ===== */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(201, 168, 76, 0.45) transparent;
}

*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-track {
    background: transparent !important;
}

*::-webkit-scrollbar-thumb {
    background: rgba(201, 168, 76, 0.4) !important;
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:hover {
    background: rgba(201, 168, 76, 0.65) !important;
}

.me-page .profile-page-top-bar,
.me-page .profile-main-header,
.me-page .profile-stats-row .stat-box,
.me-page .profile-about-section,
.me-page .profile-project-form,
.me-page .profile-verified-projects,
.me-page .profile-panel-overlay,
.me-page .peer-feedback-section,
.me-page .pf-card,
.me-page .pf-peer-row,
.me-page .profile-panel-card,
.me-page .profile-bio-box {
    background: linear-gradient(145deg, rgba(16, 30, 52, 0.94), rgba(10, 22, 40, 0.94)) !important;
    border-color: rgba(201, 168, 76, 0.24) !important;
    box-shadow: 0 10px 24px rgba(2, 8, 18, 0.35) !important;
    color: #F0EDE8 !important;
}

.me-page .profile-panel-header,
.me-page .pf-card-summary {
    background: rgba(10, 22, 40, 0.78) !important;
    border-color: rgba(201, 168, 76, 0.2) !important;
}

.me-page .profile-verified-projects .vp-card,
.me-page .profile-panel-card,
.me-page .pf-feedback-text,
.me-page .pf-feedback-select {
    background: rgba(10, 22, 40, 0.88) !important;
    border-color: rgba(201, 168, 76, 0.28) !important;
    color: #F0EDE8 !important;
}

.me-page .profile-page-top-bar .profile-title,
.me-page .profile-main-header .profile-name-block h2,
.me-page .profile-stats-row .stat-box .stat-number,
.me-page .profile-about-section h3,
.me-page .profile-project-form h3,
.me-page .profile-verified-projects .vp-header h3,
.me-page .pf-header h3,
.me-page .pf-event-name,
.me-page .pf-peer-details h4,
.me-page .profile-panel-header h3 {
    color: #F0EDE8 !important;
}

.me-page .profile-page-top-bar .profile-complete-status span,
.me-page .profile-main-header .profile-name-block .profile-college-text,
.me-page .profile-stats-row .stat-box .stat-label,
.me-page .profile-verified-projects .vp-card .vp-card-desc,
.me-page .profile-verified-projects .vp-card .vp-card-tags span,
.me-page .profile-verified-projects .vp-empty,
.me-page .pf-event-date,
.me-page .pf-peer-details span,
.me-page .profile-panel-search i,
.me-page .profile-panel-card,
.me-page .profile-panel-card p,
.me-page .profile-panel-card span {
    color: #A8B2C8 !important;
}

.me-page .activity-timeline-section,
.me-page .profile-social-section,
.me-page .social-edit-form,
.me-page .at-event-card,
.me-page .at-review-form,
.me-page .at-review-readonly,
.me-page .profile-team-members,
.me-page .profile-team-member-row,
.me-page .profile-panel-empty,
.me-page .at-empty-timeline {
    background: linear-gradient(145deg, rgba(16, 30, 52, 0.94), rgba(10, 22, 40, 0.94)) !important;
    border-color: rgba(201, 168, 76, 0.24) !important;
    color: #F0EDE8 !important;
}

.me-page .at-event-card .at-desc,
.me-page .profile-panel-card .panel-card-desc,
.me-page .profile-panel-card .panel-card-thumb,
.me-page .profile-team-member-row .tm-badge,
.me-page .social-icon-link.empty,
.me-page .at-cert-upload,
.me-page .at-review-field input[type="text"],
.me-page .at-review-field textarea,
.me-page .pf-search input,
.me-page .profile-panel-search input {
    background: rgba(10, 22, 40, 0.88) !important;
    border-color: rgba(201, 168, 76, 0.3) !important;
    color: #F0EDE8 !important;
}

.me-page .activity-timeline-section h3,
.me-page .profile-social-section h3,
.me-page .at-event-card .at-info h4,
.me-page .profile-team-member-row .tm-info .tm-name,
.me-page .profile-panel-card .panel-card-info h4,
.me-page .at-review-form h4,
.me-page .at-review-readonly h4,
.me-page .at-review-field label,
.me-page .at-review-readonly .at-ro-field label {
    color: #F0EDE8 !important;
}

.me-page .at-event-card .at-info .at-college,
.me-page .at-event-card .at-info .at-datetime,
.me-page .profile-team-member-row .tm-info .tm-college,
.me-page .profile-panel-card .panel-card-meta,
.me-page .profile-panel-card .panel-card-meta span,
.me-page .at-review-readonly .at-ro-field p,
.me-page .at-review-actions .at-privacy,
.me-page .at-empty-timeline,
.me-page .profile-panel-empty,
.me-page .social-edit-btn,
.me-page .profile-social-section .social-icon-link.empty {
    color: #A8B2C8 !important;
}

.me-page .at-tabs button,
.me-page .social-edit-btn,
.me-page .at-btn-share,
.me-page .at-btn-review,
.me-page .at-review-close-btn {
    background: rgba(10, 22, 40, 0.82) !important;
    border-color: rgba(201, 168, 76, 0.35) !important;
    color: #F0EDE8 !important;
}

.me-page .at-tabs button.active,
.me-page .at-review-submit-btn,
.me-page .social-edit-actions .at-review-submit-btn {
    background: linear-gradient(120deg, #C9A84C, #9F7E2F) !important;
    border-color: #C9A84C !important;
    color: #0A1628 !important;
}

/* ===== PROFILE PAGE DIRECT OVERRIDES (NO .me-page WRAPPER) ===== */
.profile-page-top-bar,
.profile-main-header,
.profile-stats-row .stat-box,
.profile-about-section,
.profile-project-form,
.profile-verified-projects,
.profile-panel-overlay,
.activity-timeline-section,
.profile-social-section,
.peer-feedback-section,
.pf-card,
.pf-peer-row,
.profile-panel-card,
.profile-team-members,
.profile-team-member-row,
.social-edit-form,
.at-event-card,
.at-review-form,
.at-review-readonly {
    background: linear-gradient(145deg, rgba(16, 30, 52, 0.94), rgba(10, 22, 40, 0.94)) !important;
    border-color: rgba(201, 168, 76, 0.24) !important;
    color: #F0EDE8 !important;
}

.pf-card-summary,
.profile-panel-header,
.at-event-card .at-desc,
.profile-panel-card .panel-card-desc,
.profile-panel-card .panel-card-thumb,
.profile-team-member-row .tm-badge,
.social-icon-link.empty,
.at-cert-upload,
.at-review-field input[type="text"],
.at-review-field textarea,
.pf-search input,
.profile-panel-search input,
.social-edit-row input,
.pf-feedback-select,
.pf-feedback-text {
    background: rgba(10, 22, 40, 0.88) !important;
    border-color: rgba(201, 168, 76, 0.3) !important;
    color: #F0EDE8 !important;
}

.activity-timeline-section h3,
.profile-social-section h3,
.peer-feedback-section .pf-header h3,
.profile-verified-projects .vp-header h3,
.profile-panel-card .panel-card-info h4,
.at-event-card .at-info h4,
.pf-event-name,
.pf-peer-details h4,
.profile-team-member-row .tm-info .tm-name {
    color: #F0EDE8 !important;
}

.profile-page-top-bar .profile-complete-status span,
.profile-main-header .profile-name-block .profile-college-text,
.profile-stats-row .stat-box .stat-label,
.profile-panel-card .panel-card-meta,
.profile-panel-card .panel-card-meta span,
.profile-panel-card,
.profile-panel-card p,
.profile-panel-card span,
.at-event-card .at-info .at-college,
.at-event-card .at-info .at-datetime,
.pf-event-date,
.pf-peer-details span,
.profile-team-member-row .tm-info .tm-college,
.profile-panel-empty,
.at-empty-timeline,
.at-review-readonly .at-ro-field p,
.at-review-actions .at-privacy,
.social-edit-btn {
    color: #A8B2C8 !important;
}

.profile-verified-projects .vp-card {
    background: rgba(10, 22, 40, 0.9) !important;
    border-color: rgba(201, 168, 76, 0.3) !important;
    box-shadow: 0 10px 24px rgba(2, 8, 18, 0.32) !important;
}

.profile-verified-projects .vp-card h4,
.profile-verified-projects .vp-card .vp-card-desc {
    color: #F0EDE8 !important;
}

.profile-verified-projects .vp-card .vp-card-tags span {
    background: rgba(201, 168, 76, 0.16) !important;
    border: 1px solid rgba(201, 168, 76, 0.26) !important;
    color: #C9A84C !important;
}

.profile-verified-projects .vp-card .vp-card-link {
    color: #C9A84C !important;
}

/* ===== GLOBAL SCROLLBAR HIDE (ALL SECTIONS) ===== */
html,
body,
* {
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
}

*::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none !important;
    background: transparent !important;
}

*::-webkit-scrollbar-track,
*::-webkit-scrollbar-thumb,
*::-webkit-scrollbar-corner {
    background: transparent !important;
    border: none !important;
}

/* ===== MOBILE NAV + EVENTS FILTER STABILITY PATCH ===== */
:root {
    --top-navbar-height: 64px;
    --secondary-navbar-height: 44px;
    --header-offset: calc(var(--top-navbar-height) + var(--secondary-navbar-height));
}

.navbar {
    height: var(--top-navbar-height) !important;
    min-height: var(--top-navbar-height) !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1200 !important;
    flex-wrap: nowrap !important;
}

.secondary-nav {
    position: fixed !important;
    top: var(--top-navbar-height) !important;
    left: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    height: var(--secondary-navbar-height) !important;
    z-index: 1190 !important;
}

.main-content {
    padding-top: var(--header-offset) !important;
}

@media (max-width: 900px) {
    :root {
        --top-navbar-height: 56px;
        --secondary-navbar-height: 40px;
    }

    .secondary-nav {
        pointer-events: none !important;
        align-items: center !important;
    }

    .secondary-nav .secondary-nav-link {
        pointer-events: auto !important;
        height: var(--secondary-navbar-height) !important;
        padding: 0 0.55rem !important;
        gap: 0.22rem !important;
        font-size: 0.58rem !important;
        line-height: 1 !important;
        align-items: center !important;
        justify-content: center !important;
        transform: none !important;
    }

    .secondary-nav .secondary-nav-link i {
        font-size: 0.66rem !important;
        line-height: 1 !important;
        transform: none !important;
    }

    .main-content.events-page-main {
        overflow: visible !important;
    }

    .main-content.events-page-main .mobile-filter-toggle {
        position: relative;
        z-index: 1210;
        pointer-events: auto;
        margin-top: 0.25rem;
        isolation: isolate;
    }

    .main-content.events-page-main .wf-filter-sidebar,
    .main-content.events-page-main .filters {
        position: static !important;
        top: auto !important;
        z-index: auto !important;
    }
}

/* Landing navbar must override global fixed-header mobile patch */
@media (max-width: 900px) {
    .navbar.public-navbar {
        position: sticky !important;
        top: 0 !important;
        left: auto !important;
        right: auto !important;
        height: auto !important;
        min-height: 56px !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 0.45rem !important;
        padding: 0.55rem 0.75rem !important;
    }

    .public-navbar .logo {
        width: 100% !important;
        justify-content: center !important;
        margin: 0 !important;
        text-align: center;
    }

    .public-navbar .landing-nav-links {
        width: 100% !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 0.45rem 0.7rem !important;
        margin: 0 !important;
    }

    .public-navbar .landing-nav-links a {
        display: inline-flex !important;
        padding: 0.2rem 0.15rem !important;
        font-size: 0.76rem !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
    }

    .public-navbar .navbar-right.landing-nav-cta {
        width: 100% !important;
        margin-left: 0 !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 0.45rem !important;
    }

    .public-navbar .navbar-right.landing-nav-cta .btn {
        padding: 0.55rem 1rem !important;
    }
}

@media (max-width: 480px) {
    .public-navbar .landing-nav-links a {
        font-size: 0.72rem !important;
    }

    .public-navbar .navbar-right.landing-nav-cta .btn {
        padding: 0.5rem 0.85rem !important;
        font-size: 0.82rem !important;
    }
}