/* ============================================================================= */
/* CONSOLIDATED STYLESHEET FOR 425 VIP CLUB                                      */
/* ============================================================================= */
/* This stylesheet consolidates styles from newcss.css, style.css, and           */
/* styleold.css while preserving the mobile-responsive header behavior.          */
/* ============================================================================= */

/* ============================================================================= */
/* 1. RESET & GLOBAL STYLES                                                      */
/* ============================================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #000000;
    color: #e0e0e0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- Links --- */
a {
    color: #8A2BE2;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #AF8EEA;
}

/* --- Buttons Global --- */
.btn, button {
    cursor: pointer;
}

/* ============================================================================= */
/* 2. HEADER & NAVIGATION                                                        */
/* ============================================================================= */

.main-header {
    background: linear-gradient(to bottom, #000000, #2e004f);
    padding: 15px 20px;
    border-bottom: 1px solid #444;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    position: relative; /* ESSENTIAL for absolute positioning of nav */
}

.header-logo img {
    height: 50px;
    width: auto;
}

/* --- Navigation (Desktop) --- */
#main-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    padding: 0;
    margin: 0;
    /* Desktop Centering */
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

#main-nav ul li a {
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
}

#main-nav ul li a:hover {
    color: #8A2BE2;
}

/* --- Mobile Menu Toggle (Hidden on Desktop) --- */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
}

/* --- Header Action Buttons --- */
.header-action-button {
    /* Default position on desktop */
}

.button {
    padding: 8px 16px;
    border-radius: 4px;
    border: none;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
}

.button.login {
    background-color: #8A2BE2;
    color: white;
}

.button.login:hover {
    background-color: #6a1bb3;
}

.button.logout {
    background-color: #d9534f;
    color: white;
}

/* ============================================================================= */
/* 3. MAIN CONTENT WRAPPER                                                       */
/* ============================================================================= */

.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 320px;
}

/* ============================================================================= */
/* 4. FOOTER                                                                     */
/* ============================================================================= */

footer {
    background: #000000;
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid #333;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-logo img {
    height: 40px;
    width: auto;
}

.footer-contact p {
    margin: 5px 0;
    color: #bbb;
}

.footer-copyright {
    color: #666;
    font-size: 0.9rem;
}

/* ============================================================================= */
/* 5. MODAL STYLES (Login, Alerts, Success)                                      */
/* ============================================================================= */

.modal-overlay {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: #1a1a1a;
    padding: 30px;
    border: 1px solid #444;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 0 30px rgba(138, 43, 226, 0.2);
}

.modal-close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.modal-close-button:hover {
    color: white;
}

.modal-content h2 {
    color: #8A2BE2;
    margin-bottom: 20px;
    text-align: center;
}

.modal-form-group {
    margin-bottom: 15px;
}

.modal-form-group label {
    display: block;
    margin-bottom: 5px;
    color: #ccc;
}

.modal-form-group input {
    width: 100%;
    padding: 10px;
    background: #333;
    border: 1px solid #555;
    color: white;
    border-radius: 4px;
}

.modal-form-group input:focus {
    outline: none;
    border-color: #8A2BE2;
}

.modal-submit-button {
    width: 100%;
    padding: 12px;
    background: #8A2BE2;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    margin-top: 10px;
}

.modal-submit-button:hover {
    background: #721cbe;
}

.modal-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    display: none;
}

.modal-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.modal-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.forgot-password-link {
    display: block;
    text-align: center;
    margin-top: 15px;
    font-size: 0.9em;
    color: #8A2BE2;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-password-link:hover {
    color: #9955e6;
    text-decoration: underline;
}

/* Site Alert Modal */
.site-alert-content {
    max-width: 600px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ============================================================================= */
/* 6. INDEX / SPLASH PAGE                                                        */
/* ============================================================================= */

.index-splash-container {
    flex-grow: 1;
    width: 100%;
    min-height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url('columbus_skyline.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
}

.index-splash-container::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.logo-wrapper {
    position: relative;
    z-index: 2;
    padding: 20px;
    width: 100%;
    max-width: 800px;
    text-align: center;
}

.splash-logo {
    width: 100%;
    height: auto;
    max-width: 600px;
    filter: drop-shadow(0 0 20px rgba(138, 43, 226, 0.6));
    transition: transform 0.3s ease;
}

.splash-logo:hover {
    transform: scale(1.02);
}

/* ============================================================================= */
/* 7. ABOUT PAGE                                                                 */
/* ============================================================================= */

.about-hero-section {
    flex-grow: 1;
    width: 100%;
    min-height: 80vh;
    background-image: url('sexy_dj.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-layout-wrapper {
    width: 100%;
    max-width: 1200px;
    padding: 40px 20px;
    display: flex;
    justify-content: flex-start;
}

.about-card {
    width: 100%;
    max-width: 450px;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.about-title {
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 25px;
    color: #ffffff;
    font-weight: bold;
}

.about-title .highlight {
    color: #8A2BE2;
    display: block;
}

.about-body p {
    margin-bottom: 15px;
    font-size: 1.05rem;
    line-height: 1.6;
}

.about-body .fun-question {
    color: #AF8EEA;
    font-weight: bold;
    font-size: 1.2rem;
    margin-top: 25px;
}

.about-body .disclaimer {
    font-size: 0.85rem;
    color: #bbb;
    font-style: italic;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 15px;
}

/* ============================================================================= */
/* 8. GROUPS PAGE                                                                */
/* ============================================================================= */

.groups-hero-section {
    flex-grow: 1;
    width: 100%;
    min-height: 80vh;
    background-image: url('dj_mixer.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.groups-hero-section::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

.groups-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 400px;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    text-align: center;
    margin: 20px;
}

.groups-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #fff;
    text-transform: uppercase;
}

.groups-title .highlight {
    color: #8A2BE2;
}

.groups-stack {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

.group-link {
    display: block;
    transition: transform 0.3s ease;
}

.group-link:hover {
    transform: scale(1.05);
}

.group-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border: 2px solid #8A2BE2;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    background-color: #111;
}

/* ============================================================================= */
/* 9. CONTACT PAGE                                                               */
/* ============================================================================= */

.contact-section {
    background-color: #1a1a1a;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 800px;
    margin: 40px auto;
    border: 1px solid #333;
}

.contact-section h1 {
    color: #8A2BE2;
    margin-bottom: 30px;
    font-size: 2.5em;
    text-align: center;
    text-transform: uppercase;
}

.contact-info {
    margin-bottom: 40px;
    text-align: center;
    line-height: 1.6;
}

.contact-info p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.contact-info strong {
    color: #fff;
}

.contact-form-container h2 {
    color: #fff;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.contact-form-group {
    margin-bottom: 20px;
}

.contact-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #ccc;
}

.contact-form-group input,
.contact-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #444;
    border-radius: 8px;
    background-color: #000;
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
}

.contact-form-group input:focus,
.contact-form-group textarea:focus {
    outline: none;
    border-color: #8A2BE2;
    box-shadow: 0 0 8px rgba(138, 43, 226, 0.3);
}

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

.contact-submit-button {
    width: 100%;
    padding: 15px;
    background-color: #8A2BE2;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-transform: uppercase;
}

.contact-submit-button:hover {
    background-color: #721cbe;
}

/* Form Status Messages */
.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    display: none;
}

.form-message.success {
    display: block;
    background-color: rgba(40, 167, 69, 0.2);
    border: 1px solid #28a745;
    color: #28a745;
}

.form-message.error {
    display: block;
    background-color: rgba(220, 53, 69, 0.2);
    border: 1px solid #dc3545;
    color: #dc3545;
}

/* ============================================================================= */
/* 10. EVENTS PAGE                                                               */
/* ============================================================================= */

.page-title-container {
    text-align: center;
    margin-bottom: 30px;
}

.second-banner-container {
    text-align: center;
    margin-bottom: 20px;
}

.second-banner {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.event-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.event-item {
    background: #1a1a1a;
    border-radius: 12px;
    border: 1px solid #333;
    padding: 20px;
}

.event-columns-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.event-column {
    flex: 1;
    min-width: 200px;
}

.event-column.left {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.event-column.middle {
    display: flex;
    justify-content: center;
    align-items: center;
}

.event-column.right h3 {
    color: #AF8EEA;
    margin-bottom: 10px;
}

.event-details-group {
    color: #ccc;
}

.event-date-display {
    color: #AF8EEA;
    font-weight: bold;
}

.separator-line {
    border-bottom: 1px solid #333;
}

.event-costs p {
    margin: 5px 0;
}

.event-actions {
    margin-top: 15px;
}

.event-actions button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.event-actions button.primary {
    background-color: #8A2BE2;
    color: white;
}

.event-actions button.primary:hover {
    background-color: #721cbe;
}

.event-actions button.secondary {
    background-color: #6c757d;
    color: white;
}

.event-actions button.secondary:hover {
    background-color: #5a6268;
}

.event-actions button:disabled {
    background-color: #444;
    color: #888;
    cursor: not-allowed;
}

.event-item-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.event-description {
    color: #ccc;
    line-height: 1.6;
}

.event-image {
    text-align: center;
    margin: 20px 0;
}

.event-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ============================================================================= */
/* 11. TERMS AND CONDITIONS PAGE                                                 */
/* ============================================================================= */

.content-wrapper {
    max-width: 900px;
    width: 90%;
    padding: 40px 30px;
    background-color: #1a1a1a;
    color: #e0e0e0;
    border: 1px solid #444;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.page-title {
    font-size: 2.2em;
    font-weight: bold;
    color: #8A2BE2;
    text-align: center;
    margin-bottom: 5px;
    border-bottom: 2px solid #444;
    padding-bottom: 10px;
}

.page-subtitle {
    font-size: 1.1em;
    font-style: italic;
    color: #aaa;
    text-align: center;
    margin-bottom: 25px;
}

/* Help links specific styles */
.help-links {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

.help-links li {
    margin-bottom: 15px;
}

.help-links li a {
    display: block;
    padding: 12px 20px;
    background-color: #510079;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.help-links li a:hover {
    background-color: #6a0099;
    transform: translateY(-2px);
}

.content-wrapper p {
    font-size: 0.95em;
    line-height: 1.6;
    margin-bottom: 18px;
    padding-left: 0;
    border-left: none;
}

/* ============================================================================= */
/* 12. APPLICATION FORM                                                          */
/* ============================================================================= */

.application-container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 2rem;
    background: #1a1a1a;
    border-radius: 8px;
    box-shadow: 0 2px 20px rgba(128, 0, 128, 0.3);
    border: 1px solid #333;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 0.5rem;
}

.section-desc {
    font-size: 1.2rem;
    color: #ccc;
}

.application-form {
    margin-top: 2rem;
}

.form-fieldset {
    border: 2px solid #444;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    background: #2a2a2a;
}

.form-legend {
    font-size: 1.3rem;
    font-weight: bold;
    color: #fff;
    padding: 0 1rem;
    background: #8A2BE2;
    border: 2px solid #8A2BE2;
    border-radius: 4px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    flex: 1;
    min-width: 200px;
}

.form-group.full-width {
    flex-basis: 100%;
}

.form-group.half-width {
    flex-basis: calc(50% - 0.5rem);
}

.form-group.third-width {
    flex-basis: calc(33.33% - 0.67rem);
}

.form-group.quarter-width {
    flex-basis: calc(25% - 0.75rem);
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #fff;
}

.form-input,
.form-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #555;
    border-radius: 4px;
    font-size: 1rem;
    background: #333;
    color: #fff;
    transition: border-color 0.3s ease;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: #8A2BE2;
    box-shadow: 0 0 0 2px rgba(138, 43, 226, 0.25);
}

.form-input::placeholder {
    color: #aaa;
}

.radio-group {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 0.5rem;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.important-notice {
    background: #2a2a2a;
    border: 1px solid #555;
    border-radius: 6px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    color: #fff;
}

.important-notice p {
    margin-bottom: 1rem;
    color: #ccc;
}

.important-notice p:last-child {
    margin-bottom: 0;
}

.important-notice a {
    color: #AF8EEA;
    text-decoration: none;
}

.important-notice a:hover {
    color: #c3a6f1;
    text-decoration: underline;
}

.warning-text {
    color: #ff6b6b;
    font-weight: 600;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* ============================================================================= */
/* 13. BUTTONS                                                                   */
/* ============================================================================= */

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #8A2BE2;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background: #9955e6;
}

.btn-success {
    background: #28a745;
}

.btn-success:hover {
    background: #1e7e34;
}

.btn-secondary {
    background: #6c757d;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-info {
    background: #17a2b8;
}

.btn-info:hover {
    background: #138496;
}

.btn.back-link {
    background-color: #3d3d3d;
    border-color: #3d3d3d;
}

.btn.back-link:hover {
    background-color: #555555;
    border-color: #555555;
}

.submit-section {
    text-align: center;
    padding: 2rem 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

/* ============================================================================= */
/* 14. STATUS MESSAGES                                                           */
/* ============================================================================= */

.status-message {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    display: none;
}

.status-message.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
}

.status-message.submitting {
    display: block;
    background: #d1ecf1;
    color: #0c5460;
}

.message {
    padding: 12px;
    margin-bottom: 25px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* ============================================================================= */
/* 15. FORM CONTAINER (Password Reset, Login Request Pages)                      */
/* ============================================================================= */

.form-container {
    background-color: #1a1a1a;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #333;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
    text-align: center;
}

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

.form-container .form-label {
    margin-bottom: 0.75rem;
}

.form-container small {
    display: block;
    margin-top: 5px;
    color: #ccc;
}

small {
    display: block;
    margin-top: 5px;
    color: #a0a0a0;
    font-size: 0.85em;
}

.hidden {
    display: none;
}

/* ============================================================================= */
/* 16. RESERVATIONS PAGE                                                         */
/* ============================================================================= */

.reservation-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 1rem;
}

.selection-panel {
    flex: 1 1 300px;
    background: #1a1a1a;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #333;
}

.cart-panel {
    flex: 1 1 300px;
    background: #1a1a1a;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #333;
}

.selection-panel h3, 
.cart-panel h3 {
    color: #AF8EEA;
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 1.5em;
    text-align: center;
}

.cart-items-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.cart-items-table th, 
.cart-items-table td {
    padding: 12px 8px;
    text-align: left;
    border-bottom: 1px solid #333;
}

.cart-items-table th {
    color: #ccc;
}

.cart-item-remove-btn {
    background: #d9534f;
    color: white;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    cursor: pointer;
    font-weight: bold;
    line-height: 22px;
    text-align: center;
}

.cart-total-row td {
    font-weight: bold;
    font-size: 1.2em;
    color: #AF8EEA;
    border-top: 2px solid #444;
}

.tip-input {
    width: 80px;
    padding: 8px;
    margin-left: 10px;
    text-align: right;
    background: #333;
    border: 1px solid #555;
    color: white;
    border-radius: 4px;
    -moz-appearance: textfield;
}

.tip-input::-webkit-outer-spin-button,
.tip-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.page-header {
    margin-bottom: 30px;
}

.page-header h1 {
    color: #AF8EEA;
}

.page-header p {
    color: #ccc;
}

/* ============================================================================= */
/* 17. MEMBER PROFILE PAGE                                                       */
/* ============================================================================= */

.member-profile-header {
    text-align: center;
    margin-bottom: 2rem;
}

.member-profile-header h1 {
    color: #e0e0e0;
    font-size: 1.8rem;
}

.member-hero-section {
    background: #1a1a1a;
    color: white;
    padding: 2rem 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid #333;
}

.member-photo-container {
    text-align: center;
    margin-bottom: 1rem;
}

.member-main-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #8A2BE2;
    object-fit: cover;
}

.member-info {
    text-align: center;
}

.member-name {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0.5rem 0;
}

.member-type-badge {
    background: rgba(138, 43, 226, 0.2);
    border: 1px solid #8A2BE2;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: inline-block;
    font-size: 0.9rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.stat-item {
    text-align: center;
    background: #2a2a2a;
    padding: 1rem;
    border-radius: 8px;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: bold;
    display: block;
    color: #AF8EEA;
}

.stat-label {
    font-size: 0.8rem;
    opacity: 0.9;
    color: #ccc;
}

.member-details-grid {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
    grid-template-columns: 1fr;
}

.detail-card {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #333;
}

.detail-card h3 {
    margin: 0 0 1rem 0;
    color: #AF8EEA;
    font-size: 1.2rem;
    border-bottom: 1px solid #444;
    padding-bottom: 0.75rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #2a2a2a;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: #ccc;
    font-size: 0.9rem;
}

.detail-value {
    color: #e0e0e0;
    font-weight: 500;
    text-align: right;
}

.section-tabs {
    display: flex;
    background: #2a2a2a;
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 1rem;
    overflow-x: auto;
}

.tab-button {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    white-space: nowrap;
    min-width: 120px;
    color: #ccc;
}

.tab-button.active {
    background: #8A2BE2;
    color: white;
    box-shadow: 0 2px 8px rgba(138, 43, 226, 0.3);
}

.tab-button:hover:not(.active) {
    background: #333;
}

.content-section {
    min-height: 200px;
}

.loading-message {
    text-align: center;
    color: #ccc;
    padding: 2rem;
    font-style: italic;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #444;
    border-top: 2px solid #8A2BE2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Events & Transactions Lists */
.item-card, 
.transaction-card {
    background: #2a2a2a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
}

.item-header, 
.transaction-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.item-title, 
.transaction-description {
    font-weight: 600;
    color: #e0e0e0;
    margin: 0;
    flex: 1;
    margin-right: 1rem;
}

.item-date, 
.transaction-date {
    color: #ccc;
    font-size: 0.85rem;
    white-space: nowrap;
}

.item-meta, 
.transaction-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #333;
}

.transaction-amount {
    font-weight: bold;
    color: #28a745;
    font-size: 1.1rem;
}

.receipt-link {
    background: #8A2BE2;
    color: white !important;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.8rem;
    transition: background 0.3s ease;
}

.receipt-link:hover {
    background: #9955e6;
    text-decoration: none;
}

.no-data-message, 
.no-transactions {
    text-align: center;
    color: #ccc;
    padding: 2rem;
    font-style: italic;
    background: #2a2a2a;
    border-radius: 8px;
    margin: 1rem 0;
}

.transactions-table-view { 
    display: none; 
}

.transactions-card-view { 
    display: block; 
}

/* Profile Section */
.profile-section-header {
    text-align: center;
    margin-bottom: 30px;
    color: #e0e0e0;
}

.profile-section-header h1 {
    font-size: 2.5em;
    color: #8A2BE2;
    margin-bottom: 10px;
}

.profile-section-header p {
    font-size: 1.1em;
    margin-bottom: 5px;
}

.profile-section-header .sub-text {
    font-size: 0.9em;
    color: #a0a0a0;
}

.card {
    background-color: #1a1a1a;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    padding: 30px;
    margin-bottom: 30px;
    width: 100%;
    max-width: 700px;
    box-sizing: border-box;
    color: #e0e0e0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.card h2 {
    color: #AF8EEA;
    font-size: 1.8em;
    margin-bottom: 20px;
}

.member-photo-profile {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px auto;
    display: block;
    border: 4px solid #8A2BE2;
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.4);
}

.card p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.card p strong {
    color: #ccc;
}

.attended-events-list {
    list-style: none;
    padding: 0;
    width: 100%;
    margin-top: 20px;
}

.attended-events-list li {
    background-color: #2a2a2a;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.attended-events-list li strong {
    color: #AF8EEA;
    font-size: 1.1em;
    flex-basis: 100%;
    text-align: center;
    margin-bottom: 5px;
}

.attended-events-list li span {
    color: #ccc;
    font-size: 0.95em;
    flex-basis: 100%;
    text-align: center;
}

/* ============================================================================= */
/* 18. RECEIPT PAGE                                                              */
/* ============================================================================= */

.receipt-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #1a1a1a;
    border-radius: 12px;
    border: 1px solid #333;
}

.receipt-header {
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid #444;
    padding-bottom: 1.5rem;
}

.receipt-header img {
    max-height: 60px;
    margin-bottom: 1rem;
}

.receipt-header h1 {
    color: #e0e0e0;
    margin: 0;
}

.receipt-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.receipt-detail-item {
    background-color: #2a2a2a;
    padding: 15px;
    border-radius: 8px;
}

.receipt-detail-item strong {
    display: block;
    color: #AF8EEA;
    margin-bottom: 5px;
}

.receipt-detail-item span {
    color: #e0e0e0;
}

.receipt-items-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.receipt-items-table th, 
.receipt-items-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #333;
}

.receipt-items-table th {
    color: #AF8EEA;
    background-color: #2a2a2a;
}

.receipt-button-group {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #444;
}

.receipt-button-group .btn {
    margin: 0 10px;
}

/* ============================================================================= */
/* 19. RESPONSIVE BANNER                                                         */
/* ============================================================================= */

.page-banner-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

/* ============================================================================= */
/* 20. MOBILE RESPONSIVENESS                                                     */
/* ============================================================================= */

/* --- Tablet/Medium Screens (992px and below) --- */
@media (max-width: 992px) {
    .event-columns-container {
        flex-direction: column;
        align-items: center;
    }

    .event-column.left,
    .event-column.middle,
    .event-column.right {
        flex: 1 1 100%;
        max-width: 500px;
        width: 100%;
    }

    .event-column.left, 
    .event-column.right {
        text-align: center;
    }

    .event-column.right h3 {
        text-align: center;
    }
}

/* --- Mobile Screens (768px and below) --- */
@media (max-width: 768px) {
    /* CRITICAL: Header Mobile Layout */
    .header-container {
        position: relative;
        flex-direction: row;
        padding-bottom: 0;
    }

    .menu-toggle {
        display: block;
        order: 3;
        margin-left: 10px;
    }

    #main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.95);
        padding: 20px;
        border-bottom: 2px solid #8A2BE2;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
        z-index: 9999;
    }

    #main-nav.active {
        display: block;
    }

    /* CRITICAL: Reset absolute positioning for mobile nav */
    #main-nav ul {
        position: static;
        transform: none;
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding: 10px 0;
    }

    .header-action-button {
        order: 2;
        margin-left: auto;
    }

    .header-logo img {
        height: 30px;
    }

    /* About Page Mobile */
    .about-layout-wrapper {
        justify-content: center;
    }

    .about-card {
        max-width: 100%;
        background-color: rgba(0, 0, 0, 0.7);
    }

    /* Groups Page Mobile */
    .group-image {
        width: 150px;
        height: 150px;
    }

    /* Reservation Page Mobile */
    .reservation-container {
        flex-direction: column;
        gap: 20px;
        padding: 10px;
        width: 100%;
    }

    .selection-panel, 
    .cart-panel {
        width: 100%;
        min-width: 0;
        padding: 15px;
    }

    .main-content {
        padding-left: 10px;
        padding-right: 10px;
    }

    /* Form Group Width Adjustments */
    .form-group.half-width,
    .form-group.third-width,
    .form-group.quarter-width {
        flex-basis: 100%;
    }

    .radio-group {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Event Columns Mobile */
    .event-column.left,
    .event-column.middle,
    .event-column.right {
        flex: 1 1 100%;
        max-width: 100%;
        text-align: center;
    }

    .event-column.right h3 {
        text-align: center;
    }

    .event-item-image {
        margin: 0 auto;
    }

    .event-column.left .event-actions button {
        width: auto;
        display: inline-block;
        margin: 5px auto;
    }

    /* Splash Logo Mobile */
    .splash-logo {
        max-width: 80%;
    }

    /* Content Wrapper Mobile */
    .content-wrapper {
        padding: 25px 15px;
    }

    .content-wrapper h1,
    .content-wrapper p {
        text-align: center;
    }

    .page-title {
        font-size: 2em;
    }

    /* Help Links Mobile */
    .help-links {
        max-width: 100%;
    }

    .help-links li a {
        text-align: center;
    }

    /* Member Profile Desktop Improvements */
    .transactions-table-view { 
        display: none; 
    }
    
    .transactions-card-view { 
        display: block; 
    }
}

/* --- Small Mobile Screens (480px and below) --- */
@media (max-width: 480px) {
    .header-logo img {
        height: 25px;
    }

    .menu-toggle {
        font-size: 1.8em;
    }

    .header-action-button .button {
        padding: 6px 15px;
        font-size: 0.9em;
    }

    .modal-content h2 {
        font-size: 1.5em;
    }

    .modal-close-button {
        font-size: 24px;
        top: 10px;
        right: 15px;
    }

    .page-title {
        font-size: 1.8em;
    }

    .event-item {
        padding: 10px;
    }

    .event-columns-container {
        padding: 10px;
        gap: 10px;
    }
}

/* --- Desktop Improvements (768px and above) --- */
@media (min-width: 768px) {
    .member-hero-section {
        display: flex;
        align-items: center;
        text-align: left;
        padding: 2rem;
    }

    .member-photo-container {
        margin-right: 2rem;
        margin-bottom: 0;
    }

    .member-main-photo {
        width: 150px;
        height: 150px;
    }

    .member-details-grid {
        grid-template-columns: 1fr 1fr;
    }

    .section-tabs {
        justify-content: flex-start;
    }

    .tab-button {
        flex: 0 0 auto;
    }

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

    .transactions-table-view { 
        display: block; 
    }
    
    .transactions-card-view { 
        display: none; 
    }

    .transactions-table {
        width: 100%;
        border-collapse: collapse;
        border-radius: 8px;
        overflow: hidden;
    }

    .transactions-table th {
        background: #333;
        color: #AF8EEA;
        padding: 1rem;
        text-align: left;
    }

    .transactions-table td {
        padding: 1rem;
        border-bottom: 1px solid #2a2a2a;
    }

    .table-amount {
        font-weight: bold;
        color: #28a745;
    }
}

/* --- Print Styles (Receipt Page) --- */
@media print {
    body, 
    .main-header, 
    footer {
        display: none;
    }

    .receipt-container {
        display: block !important;
        box-shadow: none;
        border: none;
        margin: 0;
        max-width: 100%;
    }

    .receipt-button-group {
        display: none;
    }
}

/* Constrain images inside site alert modal */
.site-alert-content img {
    max-width: 100%;
    height: auto;
}