* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: #f4f6f9;
}

.layout {
    display: grid;
    grid-template-columns: 250px 1fr 250px;
    min-height: 100vh;
}

/* LEFT SIDEBAR */
.sidebar-left {
    background: #1f2937;
    color: white;
    padding: 20px;
}

.sidebar-left ul {
    list-style: none;
    margin-top: 20px;
}

.sidebar-left li {
    margin-bottom: 15px;
}

.sidebar-left a {
    color: white;
    text-decoration: none;
}

/* MAIN */
main {
    padding: 30px;
}

/* RIGHT SIDEBAR */
.sidebar-right {
    background: #ffffff;
    padding: 20px;
    border-left: 1px solid #ddd;
}

.sidebar-right input {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
}

/* CLUB GRID */
.club-grid {
    display: grid;
    gap: 20px;

    /* AUTO RESPONSIVE GRID */
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* CLUB CARD */
.club-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.club-card:hover {
    transform: translateY(-4px);
}

.club-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.club-content {
    padding: 15px;
}

.club-content h4 {
    margin-bottom: 8px;
}

/* MOBILE */
.mobile-hamburger {
    display: none;
}

.mobile-overlay {
    display: none;
}

@media (max-width: 900px) {
    .layout {
        grid-template-columns: 1fr;
    }

    .club-layout {
        grid-template-columns: 1fr;
    }

    .sidebar-left {
        position: fixed;
        top: 0;
        left: -280px;
        width: 260px;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease;
        overflow-y: auto;
    }

    .sidebar-left.mobile-open {
        left: 0;
    }

    .sidebar-right {
        display: none;
    }

    main {
        padding: 15px;
        padding-top: 60px;
    }

    .club-main {
        padding-top: 0;
    }

    /* Hamburger button */
    .mobile-hamburger {
        display: block;
        position: fixed;
        top: 14px;
        left: 14px;
        z-index: 999;
        background: #1f2937;
        color: white;
        border: none;
        border-radius: 6px;
        width: 40px;
        height: 40px;
        font-size: 22px;
        cursor: pointer;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        line-height: 1;
    }

    .mobile-hamburger:hover {
        background: #374151;
    }

    /* Overlay */
    .mobile-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.4);
        z-index: 998;
    }

    .mobile-overlay.active {
        display: block;
    }
}

/* CLUB DETAIL LAYOUT */
.club-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: 100vh;
}

.club-main {
    padding: 0;
    display: flex;
    flex-direction: column;
}

.club-top-nav {
    display: flex;
    background: #ffffff;
    padding: 15px 30px;
    border-bottom: 1px solid #ddd;
    gap: 20px;
}

.club-top-nav button {
    background: none;
    border: none;
    font-size: 16px;
    color: #555;
    cursor: pointer;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.club-top-nav button:hover,
.club-top-nav button.active {
    color: #1f2937;
    border-bottom-color: #1f2937;
    font-weight: bold;
}

.club-banner {
    width: 100%;
    height: 250px;
    background-color: #ddd;
    position: relative;
    overflow: hidden;
}

.club-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.club-banner-title {
    position: absolute;
    bottom: 20px;
    left: 30px;
    color: white;
    font-size: 32px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

.club-content-area {
    padding: 30px;
    flex-grow: 1;
}

/* MOBILE CLUB LAYOUT */
@media (max-width: 900px) {
    .club-layout {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
    }

    .club-top-nav {
        overflow-x: auto;
        padding: 15px;
    }
}

/* PROFILE PAGE LAYOUT */
.profile-main {
    padding: 40px;
    background-color: #f4f6f9;
}

.profile-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 40px;
}

.profile-header {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

/* Avatar Layout & Upload Overlay */
.profile-avatar-section {
    flex-shrink: 0;
}

.avatar-wrapper {
    position: relative;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.avatar-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.avatar-upload-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
}

.avatar-wrapper:hover .avatar-upload-overlay {
    opacity: 1;
}

/* User Info Section */
.profile-info-section {
    flex-grow: 1;
}

.profile-title-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.username {
    font-size: 28px;
    font-weight: 300;
    color: #1f2937;
    margin: 0;
}

.btn-edit-profile {
    padding: 6px 16px;
    background: #f1f2f6;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-edit-profile:hover {
    background: #e2e4e9;
}

.real-name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #1f2937;
}

.bio {
    font-size: 15px;
    line-height: 1.5;
    color: #555;
    max-width: 500px;
}

.profile-edit-input {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 15px;
    font-family: Arial, sans-serif;
    width: 100%;
    max-width: 300px;
}

.profile-edit-textarea {
    width: 100%;
    max-width: 500px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 10px;
    font-size: 14px;
    font-family: Arial, sans-serif;
    resize: vertical;
    line-height: 1.5;
}

/* MOBILE PROFILE */
@media (max-width: 600px) {
    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .profile-title-row {
        flex-direction: column;
        gap: 10px;
    }

    .bio {
        margin: 0 auto;
    }
}

/* SETTINGS PAGE LAYOUT */
.settings-main {
    padding: 40px;
    background-color: #f4f6f9;
}

.settings-container {
    max-width: 800px;
    margin: 0 auto;
}

.settings-page-title {
    margin-bottom: 30px;
    color: #1f2937;
    font-size: 32px;
}

.settings-section {
    margin-bottom: 40px;
}

.settings-section h2 {
    font-size: 18px;
    color: #555;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.settings-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    max-width: 400px;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #1f2937;
}

.btn-primary {
    padding: 10px 20px;
    background: #1f2937;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    font-size: 15px;
    transition: background 0.2s ease;
}

.btn-primary:hover {
    background: #374151;
}

/* Custom Checkboxes */
.checkbox-container {
    display: block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 18px;
    cursor: pointer;
    font-size: 16px;
    color: #333;
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 22px;
    width: 22px;
    background-color: #f1f2f6;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.checkbox-container:hover input~.checkmark {
    background-color: #e2e4e9;
}

.checkbox-container input:checked~.checkmark {
    background-color: #1f2937;
    border-color: #1f2937;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked~.checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

/* Preferences & Toggle Switch */
.preferences-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.preference-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f2f6;
}

.preference-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.pref-info h3 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 16px;
}

.pref-info p {
    margin: 0;
    color: #777;
    font-size: 14px;
}

.language-select {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-size: 15px;
    background: white;
    cursor: pointer;
}

/* Toggle Switch CSS */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked+.slider {
    background-color: #1f2937;
}

input:checked+.slider:before {
    transform: translateX(22px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Super Basic Dark Mode Class (Applies to body) */
body.dark-mode {
    background: #121212 !important;
    color: #e0e0e0;
}

body.dark-mode .profile-main,
body.dark-mode .settings-main {
    background: #121212;
}

body.dark-mode .sidebar-left {
    background: #000;
}

body.dark-mode .sidebar-right,
body.dark-mode .club-top-nav,
body.dark-mode .club-card,
body.dark-mode .profile-container,
body.dark-mode .settings-card {
    background: #1e1e1e;
    border-color: #333;
    color: #e0e0e0;
}

body.dark-mode .settings-page-title,
body.dark-mode h2,
body.dark-mode .username,
body.dark-mode .real-name,
body.dark-mode .pref-info h3,
body.dark-mode .form-group label {
    color: #fff;
}

body.dark-mode .form-group input,
body.dark-mode .language-select {
    background: #333;
    color: white;
    border-color: #555;
}

body.dark-mode .btn-edit-profile {
    background: #333;
    color: #fff;
    border-color: #555;
}

/* ================================================
   SIGN-IN / SIGN-UP PAGE
   ================================================ */

.auth-container {
    min-height: 100vh;
    background: #f4f6f9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 40px;
}

.auth-logo {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 30px;
}

/* Forms: only .active is visible */
.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-form h3 {
    font-size: 20px;
    color: #1f2937;
    margin-bottom: 4px;
}

.auth-subtitle {
    font-size: 14px;
    color: #777;
    margin-bottom: 24px;
}

/* Message (error / success) */
.auth-message {
    font-size: 13px;
    border-radius: 6px;
    padding: 0;
    margin: 0;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.25s ease;
}

.auth-message.error,
.auth-message.success {
    padding: 10px 14px;
    margin-bottom: 16px;
    max-height: 80px;
}

.auth-message.error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.auth-message.success {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

/* Auth form uses existing .form-group styles, just override max-width */
.auth-card .form-group input {
    max-width: 100%;
}

/* Submit button */
.auth-submit {
    width: 100%;
    margin-top: 8px;
}

/* Toggle link */
.auth-toggle {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #777;
}

.auth-toggle a {
    color: #1f2937;
    text-decoration: none;
    font-weight: bold;
}

.auth-toggle a:hover {
    text-decoration: underline;
}

/* ================================================
   SIDEBAR SIGN-OUT LINK
   ================================================ */
.sidebar-left .sign-out-link {
    display: block;
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    color: #ef4444;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
    cursor: pointer;
}

.sidebar-left .sign-out-link:hover {
    color: #fca5a5;
}

/* ================================================
   CLUB TABS — MAIN TAB
   ================================================ */

.tab-main h2 {
    font-size: 26px;
    color: #1f2937;
    margin-bottom: 10px;
}

.tab-main-desc {
    font-size: 15px;
    line-height: 1.7;
    color: #555;
    max-width: 700px;
    margin-bottom: 30px;
}

.tab-main-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.stat-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 30px;
    text-align: center;
    min-width: 120px;
}

.stat-number {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
}

.stat-label {
    font-size: 13px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.tab-main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

.tab-main-header h2 {
    margin-bottom: 0;
}

.join-btn {
    padding: 8px 24px;
    background: #1f2937;
    color: white;
    border: 2px solid #1f2937;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.join-btn:hover {
    background: #374151;
    border-color: #374151;
}

.join-btn.joined {
    background: white;
    color: #ef4444;
    border-color: #ef4444;
}

.join-btn.joined:hover {
    background: #fef2f2;
}

/* ================================================
   CLUB TABS — CALENDAR
   ================================================ */

.cal-container {
    max-width: 900px;
}

.cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.cal-title {
    font-size: 22px;
    font-weight: 600;
    color: #1f2937;
}

.cal-nav {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1f2937;
    transition: all 0.2s ease;
}

.cal-nav:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.cal-day-header {
    background: #f8fafc;
    padding: 10px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cal-cell {
    background: white;
    min-height: 90px;
    padding: 6px 8px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.cal-cell.cal-empty {
    background: #fafbfc;
}

.cal-date {
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 2px;
}

.cal-date.cal-today {
    background: #1f2937;
    color: white;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.cal-event {
    font-size: 11px;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.4;
    font-weight: 500;
}

/* Calendar mobile */
@media (max-width: 700px) {
    .cal-cell {
        min-height: 60px;
        padding: 4px;
    }

    .cal-event {
        font-size: 9px;
        padding: 1px 3px;
    }
}

/* ================================================
   CLUB TABS — MEMBERS
   ================================================ */

.tab-members {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.members-section {
    padding-bottom: 30px;
    border-bottom: 1px solid #f1f5f9;
}

.members-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.members-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 18px;
}

.members-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.member-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 18px;
    min-width: 200px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.member-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.member-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.member-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.member-name {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

.member-role-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    display: inline-block;
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.role-leader {
    background: #fef3c7;
    color: #92400e;
}

.role-mod {
    background: #ede9fe;
    color: #5b21b6;
}

.role-member {
    background: #f1f5f9;
    color: #64748b;
}

/* ================================================
   CLUB TABS — CHAT (Google Classroom Style)
   ================================================ */

.tab-chat {
    max-width: 700px;
}

/* Composer */
.chat-composer {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.chat-composer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 2px;
}

.chat-composer-input-wrap {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-composer-input {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    font-family: Arial, sans-serif;
    resize: none;
    outline: none;
    color: #1f2937;
    transition: border-color 0.2s ease;
    overflow: hidden;
    min-height: 40px;
}

.chat-composer-input:focus {
    border-color: #3b82f6;
}

.chat-composer-input::placeholder {
    color: #94a3b8;
}

.chat-composer-send {
    align-self: flex-end;
    padding: 8px 20px;
    background: #1f2937;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.chat-composer-send:hover:not(:disabled) {
    background: #374151;
}

.chat-composer-send:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Message Stream */
.chat-stream {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.chat-post {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 20px;
    transition: box-shadow 0.15s ease;
}

.chat-post:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.chat-post-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 2px;
}

.chat-post-body {
    flex-grow: 1;
}

.chat-post-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.chat-post-author {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

.chat-post-time {
    font-size: 12px;
    color: #94a3b8;
}

.chat-post-message {
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.chat-empty {
    text-align: center;
    color: #94a3b8;
    padding: 40px 20px;
    font-size: 15px;
}

/* ================================================
   CLUB TABS — CONTACT INFO
   ================================================ */

.tab-contact h2 {
    font-size: 22px;
    color: #1f2937;
    margin-bottom: 4px;
}

.tab-contact-subtitle {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 24px;
}

.contact-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 500px;
}

.contact-card {
    display: flex;
    gap: 18px;
    align-items: center;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 24px;
    transition: box-shadow 0.15s ease;
}

.contact-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.contact-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-name {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #555;
}

.contact-icon {
    font-size: 14px;
}

.contact-link {
    color: #3b82f6;
    text-decoration: none;
}

.contact-link:hover {
    text-decoration: underline;
}

/* Dark mode overrides for club tabs */
body.dark-mode .tab-main h2,
body.dark-mode .cal-title,
body.dark-mode .members-section-title,
body.dark-mode .tab-contact h2,
body.dark-mode .member-name,
body.dark-mode .contact-name,
body.dark-mode .chat-post-author,
body.dark-mode .stat-number {
    color: #f1f5f9;
}

body.dark-mode .stat-card,
body.dark-mode .member-card,
body.dark-mode .chat-post,
body.dark-mode .chat-composer,
body.dark-mode .contact-card {
    background: #1e1e1e;
    border-color: #333;
}

body.dark-mode .cal-grid {
    background: #333;
    border-color: #333;
}

body.dark-mode .cal-cell {
    background: #1e1e1e;
}

body.dark-mode .cal-cell.cal-empty {
    background: #181818;
}

body.dark-mode .cal-day-header {
    background: #252525;
}

body.dark-mode .cal-date {
    color: #94a3b8;
}

body.dark-mode .chat-composer-input {
    background: #333;
    color: #f1f5f9;
    border-color: #555;
}

body.dark-mode .chat-post-message,
body.dark-mode .tab-main-desc,
body.dark-mode .contact-row {
    color: #d1d5db;
}

body.dark-mode .cal-nav {
    background: #1e1e1e;
    border-color: #555;
    color: #f1f5f9;
}

body.dark-mode .cal-nav:hover {
    background: #333;
}

/* ================================================
   SHARED — EMPTY STATES & MISC
   ================================================ */

.page-subtitle {
    font-size: 14px;
    color: #777;
    margin-bottom: 20px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 18px;
    color: #1f2937;
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 14px;
    color: #777;
}

.empty-state a {
    color: #1f2937;
    font-weight: bold;
    text-decoration: none;
}

.empty-state a:hover {
    text-decoration: underline;
}

/* ================================================
   MANAGE CLUBS
   ================================================ */

.managed-clubs-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.managed-club-card {
    display: flex;
    align-items: center;
    gap: 16px;
}

.managed-club-info h3 {
    font-size: 16px;
    color: #1f2937;
    margin-bottom: 4px;
}

.managed-club-info p {
    font-size: 14px;
    color: #777;
    margin: 0;
}

.managed-club-tags {
    margin-top: 8px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tag-pill {
    display: inline-block;
    padding: 3px 10px;
    background: #f1f5f9;
    border-radius: 20px;
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

/* ================================================
   SUPPORT PAGE
   ================================================ */

.support-intro {
    font-size: 14px;
    color: #777;
    margin-bottom: 24px;
    line-height: 1.6;
}

.support-textarea {
    width: 100%;
    max-width: 400px;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    font-family: Arial, sans-serif;
    resize: vertical;
    transition: border-color 0.2s ease;
}

.support-textarea:focus {
    outline: none;
    border-color: #1f2937;
}

.support-success {
    text-align: center;
    padding: 40px 20px;
}

/* Dark mode for new pages */
body.dark-mode .empty-state h3,
body.dark-mode .managed-club-info h3 {
    color: #f1f5f9;
}

body.dark-mode .tag-pill {
    background: #333;
    color: #94a3b8;
}

body.dark-mode .support-textarea {
    background: #333;
    color: white;
    border-color: #555;
}

body.dark-mode .auth-card {
    background: #1e1e1e;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

body.dark-mode .auth-logo,
body.dark-mode .auth-form h3 {
    color: #f1f5f9;
}

body.dark-mode .auth-container {
    background: #121212;
}

/* ================================================
   LOADING / ERROR / EMPTY STATES
   ================================================ */

.loading-text, .error-text, .empty-text {
    text-align: center;
    padding: 60px 20px;
    font-size: 16px;
    color: #888;
}

.error-text {
    color: #b91c1c;
}

/* Spinner */
.loading-text::before {
    content: '';
    display: block;
    width: 32px;
    height: 32px;
    border: 3px solid #ddd;
    border-top-color: #1f2937;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Smooth content fade-in */
.club-content-area, .club-grid, #my-clubs-grid {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Chat message slide-in */
.chat-message {
    animation: slideIn 0.2s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}