/* CSS Variables for Theme Support */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-dark: #1a1a1a;
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-light: #999999;
    --border-color: #e1e5e9;
    --nav-bg: rgba(0, 0, 0, 0.95);
    --card-bg: #ffffff;
    --button-primary: #d4af37;
    --button-primary-hover: #b8941f;
    --button-secondary: #8b4513;
    --button-secondary-hover: #a0522d;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] {
    --bg-primary: #1a1a1a;
    --bg-secondary: #242424;
    --bg-dark: #0d0d0d;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-light: #808080;
    --border-color: #333333;
    --nav-bg: rgba(0, 0, 0, 0.98);
    --card-bg: #242424;
    --shadow: rgba(0, 0, 0, 0.3);
    --shadow-hover: rgba(0, 0, 0, 0.5);
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    height: 40px;
    width: auto;
}

.logo-text {
    color: var(--button-primary);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
}

.nav-link:hover {
    color: var(--button-primary);
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--button-primary);
    transition: width 0.3s ease;
}

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

.member-portal-btn {
    background: linear-gradient(45deg, var(--button-primary), var(--button-primary-hover));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
}

.member-portal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.theme-toggle {
    background: none;
    border: 2px solid var(--button-primary);
    color: var(--button-primary);
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.theme-toggle:hover {
    background: var(--button-primary);
    color: white;
    transform: rotate(360deg);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding: 80px 20px 20px;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero h1 {
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
.hero-img {        max-width: 90%;        margin: 1rem;    }
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    font-size: 4rem;
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    font-weight: 700;
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    color: var(--text-primary);
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    margin-bottom: 1rem;
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    letter-spacing: 3px;
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    text-shadow: 2px 2px 4px var(--shadow);
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
}
.hero-img {        max-width: 95%;        margin: 0.5rem;    }

.hero-img {        max-width: 95%;        margin: 0.5rem;    }
.hero-subtitle {
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    font-size: 1.5rem;
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    color: var(--button-primary);
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    margin-bottom: 1rem;
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    font-weight: 600;
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
}
.hero-img {        max-width: 95%;        margin: 0.5rem;    }

.hero-img {        max-width: 95%;        margin: 0.5rem;    }
.hero-description {
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    font-size: 1.1rem;
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    color: var(--text-secondary);
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    margin-bottom: 2rem;
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    line-height: 1.8;
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
}
.hero-img {        max-width: 95%;        margin: 0.5rem;    }

.hero-img {        max-width: 95%;        margin: 0.5rem;    }
.hero-buttons {
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    display: flex;
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    gap: 1rem;
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    flex-wrap: wrap;
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
}
.hero-img {        max-width: 95%;        margin: 0.5rem;    }

.hero-img {        max-width: 95%;        margin: 0.5rem;    }
.btn {
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    padding: 15px 30px;
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    border: none;
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    border-radius: 5px;
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    font-size: 1rem;
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    font-weight: 600;
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    text-decoration: none;
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    display: inline-block;
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    transition: all 0.3s ease;
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    cursor: pointer;
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    text-align: center;
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
}
.hero-img {        max-width: 95%;        margin: 0.5rem;    }

.hero-img {        max-width: 95%;        margin: 0.5rem;    }
.btn-primary {
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    background: linear-gradient(45deg, var(--button-primary), var(--button-primary-hover));
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    color: white;
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
}
.hero-img {        max-width: 95%;        margin: 0.5rem;    }

.hero-img {        max-width: 95%;        margin: 0.5rem;    }
.btn-primary:hover {
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    transform: translateY(-3px);
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
}
.hero-img {        max-width: 95%;        margin: 0.5rem;    }

.hero-img {        max-width: 95%;        margin: 0.5rem;    }
.btn-secondary {
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    background: linear-gradient(45deg, var(--button-secondary), var(--button-secondary-hover));
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    color: white;
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
}
.hero-img {        max-width: 95%;        margin: 0.5rem;    }

.hero-img {        max-width: 95%;        margin: 0.5rem;    }
.btn-secondary:hover {
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    transform: translateY(-3px);
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.3);
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
}
.hero-img {        max-width: 95%;        margin: 0.5rem;    }

.hero-img {        max-width: 95%;        margin: 0.5rem;    }
.hero-image {
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    flex: 1;
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    display: flex;
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    justify-content: center;
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    align-items: center;
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
}
.hero-img {        max-width: 95%;        margin: 0.5rem;    }

.hero-img {        max-width: 95%;        margin: 0.5rem;    }
.hero-img {    max-width: 85%;    height: auto;    border-radius: 15px;    box-shadow: 0 20px 40px var(--shadow);    transition: transform 0.3s ease;    margin: 2rem;}
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
.hero-img:hover {
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    transform: scale(1.05);
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
}
.hero-img {        max-width: 95%;        margin: 0.5rem;    }

.hero-img {        max-width: 95%;        margin: 0.5rem;    }
/* Section Styles */
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
section {
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    padding: 80px 0;
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
}
.hero-img {        max-width: 95%;        margin: 0.5rem;    }

.hero-img {        max-width: 95%;        margin: 0.5rem;    }
section:nth-child(even) {
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    background-color: var(--bg-secondary);
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
}
.hero-img {        max-width: 95%;        margin: 0.5rem;    }

.hero-img {        max-width: 95%;        margin: 0.5rem;    }
h2 {
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    font-size: 2.5rem;
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    text-align: center;
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    margin-bottom: 3rem;
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    color: var(--text-primary);
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    font-weight: 700;
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
}
.hero-img {        max-width: 95%;        margin: 0.5rem;    }

.hero-img {        max-width: 95%;        margin: 0.5rem;    }
/* About Section */
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
.about-content {
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    display: grid;
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    grid-template-columns: 1fr 1fr;
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    gap: 4rem;
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    align-items: center;
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
}
.hero-img {        max-width: 95%;        margin: 0.5rem;    }

.hero-img {        max-width: 95%;        margin: 0.5rem;    }
.about-text p {
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    font-size: 1.1rem;
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    color: var(--text-secondary);
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    margin-bottom: 2rem;
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    line-height: 1.8;
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
}
.hero-img {        max-width: 95%;        margin: 0.5rem;    }

.hero-img {        max-width: 95%;        margin: 0.5rem;    }
.about-features {
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    display: grid;
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    gap: 2rem;
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
}
.hero-img {        max-width: 95%;        margin: 0.5rem;    }

.hero-img {        max-width: 95%;        margin: 0.5rem;    }
.feature {
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    display: flex;
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    align-items: flex-start;
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    gap: 1rem;
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
}
.hero-img {        max-width: 95%;        margin: 0.5rem;    }

.hero-img {        max-width: 95%;        margin: 0.5rem;    }
.feature i {
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    color: var(--button-primary);
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    font-size: 2rem;
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    margin-top: 0.5rem;
}

.feature h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.feature p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.about-img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 15px 35px var(--shadow);
    transition: transform 0.3s ease;
}

.about-img:hover {
    transform: translateY(-10px);
}

/* Facilities Section */
.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.facility-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.facility-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px var(--shadow-hover);
}

.facility-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.facility-content {
    padding: 2rem;
}

.facility-content h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.facility-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.facility-content ul {
    list-style: none;
    padding: 0;
}

.facility-content li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.facility-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--button-primary);
    font-weight: bold;
}

/* Safety Section Styles */
.safety {
    padding: 80px 0;
    background-color: var(--bg-secondary);
}

.safety-content {
    max-width: 1000px;
    margin: 0 auto;
}

.safety-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.safety-intro h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.safety-intro p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
}

.safety-rules {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

.rule {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 15px;
    border-left: 5px solid var(--button-primary);
    box-shadow: 0 5px 15px var(--shadow);
    transition: transform 0.3s ease;
}

.rule:hover {
    transform: translateY(-3px);
}

.rule-number {
    background: var(--button-primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.rule-content h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

.additional-safety {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--shadow);
}

.additional-safety h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.additional-safety ul {
    list-style: none;
    padding: 0;
}

.additional-safety li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
    line-height: 1.6;
}

.additional-safety li::before {
    content: '•';
    color: var(--button-primary);
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: 0.2rem;
}

/* Enhanced Competitions Section */
.competitions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.match-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.match-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--shadow-hover);
}

.match-header {
    background: linear-gradient(135deg, var(--button-primary), var(--button-primary-hover));
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.match-header h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.4rem;
}

.match-date {
    font-size: 1.1rem;
    font-weight: 600;
    opacity: 0.9;
}

.match-details {
    padding: 1.5rem;
}

.match-details p {
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.match-details p:last-child {
    margin-bottom: 0;
    font-style: italic;
}

/* Enhanced Membership Section */
.membership-details h4 {
    color: var(--button-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.membership-details ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.membership-details li {
    padding: 0.4rem 0;
    padding-left: 1.2rem;
    position: relative;
    color: var(--text-secondary);
    line-height: 1.5;
}

.membership-details li::before {
    content: '✓';
    color: var(--button-primary);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.plan {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.plan:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px var(--shadow-hover);
}

.plan.featured {
    border-color: var(--button-primary);
    transform: scale(1.05);
}

.plan.featured::before {
    content: 'POPULAR';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--button-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.plan h4 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--button-primary);
    margin-bottom: 1rem;
}

.price span {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.plan-features ul {
    list-style: none;
    padding: 0;
    text-align: left;
    margin-top: 1rem;
}

.plan-features li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.plan-features li:last-child {
    border-bottom: none;
}

.renewal-notice {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
}

[data-theme="dark"] .renewal-notice {
    background: rgba(255, 193, 7, 0.1);
    border-color: rgba(255, 193, 7, 0.3);
}

.renewal-notice p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-primary);
}

/* Range Rules Section */
.range-rules {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid var(--border-color);
}

.range-rules h3 {
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-size: 2rem;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.rule-section {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 15px var(--shadow);
}

.rule-section h4 {
    color: var(--button-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    border-bottom: 2px solid var(--button-primary);
    padding-bottom: 0.5rem;
}

.rule-section ul {
    list-style: none;
    padding: 0;
}

.rule-section li {
    padding: 0.3rem 0;
    padding-left: 1rem;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
}

.rule-section li::before {
    content: '▶';
    color: var(--button-primary);
    font-size: 0.7rem;
    position: absolute;
    left: 0;
    top: 0.5rem;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item i {
    color: var(--button-primary);
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.contact-item h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.contact-form {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px var(--shadow);
}

.contact-form h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--button-primary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--button-primary);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 50%;
    border: 1px solid transparent;
}

.footer-social a:hover {
    color: var(--button-primary);
    border-color: var(--button-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: var(--text-light);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--card-bg);
    margin: 5% auto;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    color: var(--text-secondary);
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--button-primary);
}

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

.modal-header h2 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.modal-header p {
    color: var(--text-secondary);
}

.login-form .form-group {
    margin-bottom: 1.5rem;
}

.login-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.form-hint {
    color: var(--text-light);
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: block;
}

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

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.forgot-password {
    color: var(--button-primary);
    text-decoration: none;
    font-size: 0.9rem;
}

.forgot-password:hover {
    text-decoration: underline;
}

.btn-full {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
}

.login-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.login-footer a {
    color: var(--button-primary);
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* Enhanced Member Portal Styles */

/* Login form updates */
.login-error {
    background: #ffe6e6;
    color: #d93636;
    padding: 0.75rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    border: 1px solid #ffcccc;
    display: none;
}

[data-theme="dark"] .login-error {
    background: rgba(217, 54, 54, 0.1);
    color: #ff6b6b;
    border-color: rgba(217, 54, 54, 0.3);
}

/* Portal button logged in state */
.member-portal-btn.logged-in {
    background: linear-gradient(45deg, #28a745, #20c997);
}

/* Dashboard Modal */
.dashboard-modal .modal-content {
    max-width: 900px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
}

.dashboard-header {
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

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

.member-avatar {
    font-size: 4rem;
    color: var(--button-primary);
}

.member-details {
    flex: 1;
}

.member-details h3 {
    margin: 0 0 0.25rem 0;
    color: var(--text-primary);
    font-size: 1.5rem;
}

.member-details p {
    margin: 0 0 0.5rem 0;
    color: var(--text-secondary);
}

.member-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.member-since {
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.membership-type {
    background: linear-gradient(45deg, var(--button-primary), var(--button-primary-hover));
    color: white;
}

.status-active {
    background: #28a745;
    color: white;
}

/* Dashboard Navigation */
.dashboard-nav {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 1rem;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.tab-btn.active {
    background: var(--button-primary);
    color: white;
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

/* Profile Form */
.profile-form {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

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

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.form-group input,
.form-group select {
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text-primary);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--button-primary);
}

.form-group input[readonly] {
    background: var(--bg-secondary);
    color: var(--text-light);
    cursor: not-allowed;
}

/* Documents Section */
.documents-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.document-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.document-item:hover {
    box-shadow: 0 5px 15px var(--shadow);
}

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

.document-info i {
    font-size: 2rem;
    color: var(--button-primary);
}

.document-info h4 {
    margin: 0 0 0.25rem 0;
    color: var(--text-primary);
}

.document-info .status {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.document-info .status.readonly {
    color: var(--text-light);
}

.document-info .last-updated {
    color: var(--text-light);
    font-size: 0.8rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Settings Section */
.settings-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
}

.setting-info h4 {
    margin: 0 0 0.25rem 0;
    color: var(--text-primary);
}

.setting-info p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.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: 0.3s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--button-primary);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Password Form */
.password-form {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

/* Security Info */
.security-info {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.security-info h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.security-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.security-item i {
    color: var(--button-primary);
    width: 20px;
}

/* Dashboard Messages */
.dashboard-message {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-weight: 500;
    display: none;
}

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

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

[data-theme="dark"] .dashboard-message.success {
    background: rgba(40, 167, 69, 0.1);
    color: #4caf50;
    border-color: rgba(40, 167, 69, 0.3);
}

[data-theme="dark"] .dashboard-message.error {
    background: rgba(220, 53, 69, 0.1);
    color: #ff6b6b;
    border-color: rgba(220, 53, 69, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--nav-bg);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        border-top: 1px solid var(--border-color);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 100px 20px 40px;
    }

    .hero h1 {
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
.hero-img {        max-width: 90%;        margin: 1rem;    }
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
        font-size: 2.5rem;
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    }
.hero-img {        max-width: 95%;        margin: 0.5rem;    }

.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    .hero-buttons {
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
        justify-content: center;
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    }
.hero-img {        max-width: 95%;        margin: 0.5rem;    }

.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    .about-content,
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    .competitions-content,
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    .membership-content,
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    .contact-content {
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
        grid-template-columns: 1fr;
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
        gap: 2rem;
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    }
.hero-img {        max-width: 95%;        margin: 0.5rem;    }

.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    .facilities-grid {
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
        grid-template-columns: 1fr;
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    }
.hero-img {        max-width: 95%;        margin: 0.5rem;    }

.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    .competition-types {
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
        grid-template-columns: 1fr;
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    }
.hero-img {        max-width: 95%;        margin: 0.5rem;    }

.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    .membership-plans {
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
        grid-template-columns: 1fr;
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    }
.hero-img {        max-width: 95%;        margin: 0.5rem;    }

.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    .footer-content {
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
        flex-direction: column;
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
        gap: 2rem;
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
        text-align: center;
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    }
.hero-img {        max-width: 95%;        margin: 0.5rem;    }

.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    .footer-links {
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
        flex-wrap: wrap;
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
        justify-content: center;
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    }
.hero-img {        max-width: 95%;        margin: 0.5rem;    }

.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    .safety-rules {
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
        grid-template-columns: 1fr;
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    }
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    .rule {
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
        flex-direction: column;
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
        text-align: center;
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    }
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    .competitions-grid {
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
        grid-template-columns: 1fr;
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    }
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    .rules-grid {
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
        grid-template-columns: 1fr;
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    }
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    .dashboard-modal .modal-content {
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
        width: 95%;
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
        margin: 2% auto;
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
        max-height: 95vh;
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    }
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    .member-info {
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
        flex-direction: column;
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
        text-align: center;
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
        gap: 1rem;
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    }
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    .dashboard-nav {
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
        flex-wrap: wrap;
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
        gap: 0.25rem;
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    }
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    .tab-btn {
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
        padding: 0.5rem 1rem;
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
        font-size: 0.9rem;
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    }
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    .form-row {
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
        grid-template-columns: 1fr;
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    }
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    .document-item,
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    .setting-item {
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
        flex-direction: column;
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
        gap: 1rem;
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
        text-align: center;
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    }
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    .member-badges {
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
        justify-content: center;
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    }
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
}
.hero-img {        max-width: 95%;        margin: 0.5rem;    }

.hero-img {        max-width: 95%;        margin: 0.5rem;    }
@media (max-width: 480px) {
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    .hero h1 {
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
.hero-img {        max-width: 90%;        margin: 1rem;    }
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
        font-size: 2rem;
.hero-img {        max-width: 95%;        margin: 0.5rem;    }
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .modal-content {
        margin: 10% auto;
        padding: 1.5rem;
        width: 95%;
    }

    .rule {
        padding: 1.5rem;
    }
    
    .match-header {
        padding: 1rem;
    }
    
    .match-details {
        padding: 1rem;
    }
    
    .rule-section {
        padding: 1rem;
    }
    
    .dashboard-modal .modal-content {
        width: 98%;
        margin: 1% auto;
        padding: 1rem;
    }
    
    .member-avatar {
        font-size: 3rem;
    }
    
    .member-details h3 {
        font-size: 1.2rem;
    }
    
    .profile-form,
    .password-form {
        padding: 1rem;
    }
}/* Gate Code Tab Styles */
.gatecode-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.code-display {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.code-header h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.code-header p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.code-value {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 10px;
    border: 2px solid var(--button-primary);
}

#gateCodeValue {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    color: var(--button-primary);
    letter-spacing: 0.5rem;
    user-select: none;
}

#gateCodeValue.hidden {
    font-size: 1.5rem;
    letter-spacing: 0.2rem;
}

.code-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.5rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.code-toggle:hover {
    color: var(--button-primary);
    background: var(--bg-primary);
}

.code-warning {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.code-warning i {
    color: #ffc107;
}

/* Usage Log Styles */
.usage-log {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.log-header h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.log-header p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

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

#logFilter {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.9rem;
}

#logFilter:focus {
    outline: none;
    border-color: var(--button-primary);
}

.log-table {
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

#usageLogTable {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-secondary);
    border-radius: 8px;
    overflow: hidden;
}

#usageLogTable th {
    background: var(--button-primary);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
}

#usageLogTable td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

#usageLogTable tbody tr:hover {
    background: var(--card-bg);
}

#usageLogTable tbody tr:last-child td {
    border-bottom: none;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}

.status-success {
    background: #d4edda;
    color: #155724;
}

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

[data-theme="dark"] .status-success {
    background: rgba(40, 167, 69, 0.2);
    color: #4caf50;
}

[data-theme="dark"] .status-error {
    background: rgba(220, 53, 69, 0.2);
    color: #ff6b6b;
}

.log-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.summary-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.summary-value {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
}

/* Empty state */
.log-empty {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-style: italic;
}

.log-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Responsive Design for Gate Code */
@media (max-width: 768px) {
    .gatecode-info {
        gap: 1.5rem;
    }
    
    .code-display,
    .usage-log {
        padding: 1.5rem;
    }
    
    #gateCodeValue {
        font-size: 2rem;
        letter-spacing: 0.3rem;
    }
    
    #gateCodeValue.hidden {
        font-size: 1.2rem;
        letter-spacing: 0.1rem;
    }
    
    .log-controls {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }
    
    .log-summary {
        grid-template-columns: 1fr;
    }
    
    #usageLogTable th,
    #usageLogTable td {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .code-value {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    #gateCodeValue {
        font-size: 1.5rem;
    }
    
    .code-warning {
        flex-direction: column;
        text-align: center;
        gap: 0.25rem;
    }
}/* Hero Image Size Adjustments */
.hero-img {
    max-width: 85%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 20px 40px var(--shadow);
    transition: transform 0.3s ease;
    margin: 2rem;
}

.hero-img:hover {
    transform: scale(1.05);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .hero-img {
        max-width: 90%;
        margin: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-img {
        max-width: 95%;
        margin: 0.5rem;
    }
}/* Enhanced status badges */
.status-badge.status-failed {
    background: #f8d7da;
    color: #721c24;
    white-space: nowrap;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
}

[data-theme="dark"] .status-badge.status-failed {
    background: rgba(220, 53, 69, 0.2);
    color: #ff6b6b;
}

/* Tooltip for full status text */
.status-badge[title] {
    cursor: help;
}

/* Make sure table cell can accommodate longer text */
#usageLogTable td:last-child {
    min-width: 160px;
    white-space: nowrap;
}
/* Security Tab Styles */
.security-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.password-section,
.account-security,
.activity-log {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.password-section h4,
.account-security h4,
.activity-log h4 {
    color: #ff6b35;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.security-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #dee2e6;
}

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

.security-item i {
    color: #ff6b35;
    margin-right: 0.5rem;
}

.security-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.security-label {
    font-weight: 600;
    color: #666;
    font-size: 0.9rem;
}

.security-value {
    color: #333;
    font-size: 1rem;
}

.activity-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.activity-controls select {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    font-size: 0.9rem;
}

.activity-table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

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

.activity-table th {
    background: #f8f9fa;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #666;
    border-bottom: 1px solid #e9ecef;
}

.activity-table td {
    padding: 1rem;
    border-bottom: 1px solid #f8f9fa;
}

.activity-table tr:hover {
    background: #f8f9fa;
}

/* Responsive adjustments for security tab */
@media (max-width: 768px) {
    .security-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .activity-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .activity-table {
        overflow-x: auto;
    }
}

/* CritFusion Branding */
.powered-by {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
    display: block;
}

.powered-by a {
    color: #ff6b35;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.powered-by a:hover {
    color: #e55a2b;
    text-decoration: underline;
}
/* TAC2 Membership Plan Fixes */

/* Remove "POPULAR" badge */
.plan.featured::before {
    display: none !important;
}

/* Limit membership plan width on wide screens */
.membership-plans {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.plan {
    max-width: 400px;
    min-width: 300px;
    flex: 0 1 400px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .membership-plans {
        flex-direction: column;
        align-items: center;
    }
    
    .plan {
        max-width: 100%;
        width: 100%;
    }
}