/* ============================================
   Proleague - COMPLETE MERGED CSS FILE
   All styles for all pages in one file
   ============================================ */

/* ============================================
   SECTION 1: GLOBAL VARIABLES & BASE STYLES
   ============================================ */

:root {
    --primary-bg: #0a0e27;
    --secondary-bg: #1a1f3a;
    --accent: #f6f3f3;
    --accent-light: #f4f1ef;
    --text-primary: #ffffff;
    --text-secondary: #b0b8d4;
    --border-color: #2a2f42;
    --error-color: #ff4757;
    --success-color: #2ed573;
    --warning-color: #ffa502;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
}

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

html, body {
    width: 100%;
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
}

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-light);
}

/* ============================================
   SECTION 2: BUTTON STYLES
   ============================================ */

.btn {
    display: inline-block;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    font-family: inherit;
}

.btn-primary {
    background: #f1da9c;
    color: #0c0c0c;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(255, 107, 53, 0.3);
}

.btn-secondary {
    background-color: var(--secondary-bg);
    border: 2px solid var(--accent);
    color: var(--accent);
}

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

.btn-danger {
    background-color: var(--error-color);
    color: white;
}

.btn-danger:hover {
    background-color: #ff3838;
    transform: translateY(-2px);
}

.btn-success {
    background-color: var(--success-color);
    color: white;
}

.btn-success:hover {
    background-color: #26d063;
    transform: translateY(-2px);
}

.btn-info {
    background-color: #3498db;
    color: white;
}

.btn-info:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.btn-disabled {
    background-color: var(--border-color);
    color: var(--text-secondary);
    cursor: not-allowed;
}

.btn-disabled:hover {
    transform: none;
    box-shadow: none;
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* ============================================
   SECTION 3: FORM STYLES
   ============================================ */

.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
}

input,
textarea,
select {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: var(--primary-bg);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.2);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* Password toggle styling */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper input {
    width: 100%;
    padding-right: 2.5rem;
}

.password-toggle {
    position: absolute;
    right: 0.875rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: var(--accent);
}

.password-toggle svg {
    width: 20px;
    height: 20px;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hidden {
    display: none !important;
}

.read-only {
    background-color: var(--secondary-bg);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: not-allowed;
}

.read-only:focus {
    border-color: var(--border-color);
    box-shadow: none;
}

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

.form-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.form-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-color);
}

.form-section:last-child {
    border-bottom: none;
}

.form-section h2 {
    font-size: 1.2rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.info-text {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* ============================================
   SECTION 4: TABLE STYLES
   ============================================ */

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background-color: var(--secondary-bg);
    border-radius: 6px;
    overflow: hidden;
}

thead {
    background-color: var(--primary-bg);
}

th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--accent);
    border-bottom: 2px solid var(--border-color);
}

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

tbody tr:hover {
    background-color: var(--primary-bg);
}

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

/* ============================================
   SECTION 5: ALERT & MESSAGE STYLES
   ============================================ */

.alert {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
    animation: slideInDown 0.3s ease-out;
}

.alert-error {
    background-color: rgba(255, 71, 87, 0.1);
    color: var(--error-color);
    border-left-color: var(--error-color);
}

.alert-success {
    background-color: rgba(46, 213, 115, 0.1);
    color: var(--success-color);
    border-left-color: var(--success-color);
}

.alert-warning {
    background-color: rgba(255, 165, 2, 0.1);
    color: var(--warning-color);
    border-left-color: var(--warning-color);
}

.alert-info {
    background-color: rgba(255, 107, 53, 0.1);
    color: var(--accent);
    border-left-color: var(--accent);
}

/* ============================================
   SECTION 6: BADGE STYLES
   ============================================ */

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--border-color);
    color: var(--text-secondary);
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-right: 0.5rem;
}

.badge-primary {
    background-color: rgba(255, 107, 53, 0.1);
    color: var(--accent);
}

.badge-success {
    background-color: rgba(46, 213, 115, 0.1);
    color: var(--success-color);
}

.badge-error {
    background-color: rgba(255, 71, 87, 0.1);
    color: var(--error-color);
}

.badge-warning {
    background-color: rgba(255, 165, 2, 0.1);
    color: var(--warning-color);
}

/* ============================================
   SECTION 7: CARD STYLES
   ============================================ */

.card {
    background-color: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    animation: slideInUp 0.6s ease-out;
}

.card:hover {
    border-color: var(--accent);
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.2);
}

.card h2 {
    color: var(--accent);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-content {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.card-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.stat {
    background-color: var(--primary-bg);
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
}

.stat-value {
    color: var(--accent);
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* ============================================
   SECTION 8: HEADER & NAVIGATION
   ============================================ */

header {
    background-color: var(--secondary-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logo:hover {
    color: var(--accent-light);
}

.logo-icon {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

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

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
}

.menu-toggle:hover {
    background-color: rgba(246, 243, 243, 0.1);
    transform: scale(1.05);
}

.menu-toggle:active {
    background-color: rgba(246, 243, 243, 0.15);
    transform: scale(0.98);
}

.menu-toggle span {
    width: 24px;
    height: 2.5px;
    background-color: var(--text-primary);
    transition: all 0.35s cubic-bezier(0.4, 0.0, 0.2, 1);
    display: block;
    border-radius: 2px;
}

.menu-toggle span:nth-child(1) {
    transform-origin: 5px 50%;
}

.menu-toggle span:nth-child(3) {
    transform-origin: 5px 50%;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.user-info {
    text-align: right;
}

.user-name {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.user-email {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

footer {
    background-color: var(--secondary-bg);
    border-top: 1px solid var(--border-color);
    padding: 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.95rem;
}

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

.footer-content p {
    margin: 0;
    font-size: 0.9rem;
}

/* ============================================
   SECTION 9: HOME PAGE STYLES
   ============================================ */

.hero {
    background: linear-gradient(135deg, var(--secondary-bg) 0%, var(--primary-bg) 100%);
    padding: 6rem 2rem;
    text-align: center;
    border-bottom: 2px solid var(--border-color);
    animation: fadeIn 0.8s ease-out;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.tournaments {
    padding: 4rem 2rem;
    background-color: var(--primary-bg);
}

.tournaments h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.tournaments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.tournament-card {
    background-color: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    animation: slideInUp 0.6s ease-out;
}

.tournament-card:hover {
    border-color: var(--accent);
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.2);
}

.tournament-card h3 {
    color: var(--accent);
    margin-bottom: 1rem;
}

.tournament-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.tournament-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.players {
    padding: 4rem 2rem;
    background-color: var(--secondary-bg);
    border-top: 2px solid var(--border-color);
}

.players h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.player-card {
    background-color: var(--primary-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    animation: slideInUp 0.6s ease-out;
}

.player-card:hover {
    border-color: var(--accent);
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.2);
}

.player-avatar {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.player-card h3 {
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.player-rank {
    background-color: var(--secondary-bg);
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.player-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.about {
    padding: 4rem 2rem;
    background-color: var(--primary-bg);
    border-top: 2px solid var(--border-color);
}

.about h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.about-text h3 {
    color: #f6f3f3;
    margin-bottom: 1rem;
}

.about-text h1 {
    color: #f6f3f3;
    margin-bottom: 1rem;
}

.about-text p {
    color: #f6f3f3;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

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

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

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

#navMenu {
    display: flex;
    gap: 2rem;
}

/* ============================================
   SECTION 10: AUTHENTICATION PAGES
   ============================================ */

.auth-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.form-box {
    background-color: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem;
    animation: slideInUp 0.6s ease-out;
    width: 100%;
    max-width: 500px;
}

.form-box h1 {
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.form-box p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

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

.header h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.demo-login {
    background-color: rgba(46, 213, 115, 0.1);
    border: 1px solid #2ed573;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #2ed573;
}

.demo-login p {
    margin: 0.3rem 0;
}

.demo-login strong {
    color: #ffffff;
}

.login-link {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-secondary);
}

.login-link a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.login-link a:hover {
    color: var(--accent-light);
}

.back-link {
    display: inline-block;
    margin-bottom: 1.5rem;
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--accent-light);
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.remember-forgot a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

.remember-forgot a:hover {
    color: var(--accent-light);
}

.verification-box {
    background-color: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 3rem 2.5rem;
    animation: slideInUp 0.6s ease-out;
    text-align: center;
    max-width: 500px;
    width: 100%;
}

.icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: scaleInSuccess 0.6s ease-out;
}

.verification-box h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--success-color);
}

.message {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.membership-info {
    background-color: rgba(255, 107, 53, 0.1);
    border-left: 4px solid var(--accent);
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: left;
    border-radius: 6px;
}

.membership-info h3 {
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.membership-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.timer {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 1.5rem;
}

/* ============================================
   SECTION 11: DASHBOARD & PROFILE PAGES
   ============================================ */

.welcome-section {
    background-color: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    animation: slideInUp 0.6s ease-out;
}

.welcome-section h1 {
    color: var(--accent);
    margin-bottom: 1rem;
}

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

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

.membership-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: rgba(46, 213, 115, 0.1);
    color: var(--success-color);
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.membership-badge.inactive {
    background-color: rgba(255, 107, 53, 0.1);
    color: var(--accent);
}

/* ============================================
   SECTION 12: MEMBERSHIP PAGE
   ============================================ */

.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.pricing-card {
    background-color: var(--secondary-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
    animation: slideInUp 0.6s ease-out;
}

.pricing-card:hover {
    border-color: var(--accent);
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(255, 107, 53, 0.2);
}

.pricing-card.active {
    border-color: var(--accent);
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.3);
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: rgba(46, 213, 115, 0.1);
    color: var(--success-color);
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 1rem;
}

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

.plan-price .currency {
    font-size: 1rem;
}

.plan-period {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.plan-features {
    list-style: none;
    margin: 2rem 0;
    text-align: left;
}

.plan-features li {
    padding: 0.75rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.plan-features li::before {
    content: '✓';
    color: var(--success-color);
    font-weight: 700;
    font-size: 1.2rem;
}

.plan-features li.unavailable {
    opacity: 0.5;
    text-decoration: line-through;
}

.plan-features li.unavailable::before {
    content: '✗';
    color: var(--error-color);
    text-decoration: none;
}

.faq {
    background-color: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem;
    margin-top: 3rem;
}

.faq h2 {
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.faq-item {
    margin-bottom: 1.5rem;
}

.faq-item h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

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

/* ============================================
   SECTION 13: ADMIN DASHBOARD
   ============================================ */

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

.stat-card {
    background-color: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    animation: slideInUp 0.6s ease-out;
}

.stat-card h3 {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.stat-card .stat-value {
    font-size: 2rem;
    color: var(--accent);
    font-weight: 700;
}

.filters {
    background-color: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

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

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

.filter-group select,
.filter-group input {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: var(--primary-bg);
    color: var(--text-primary);
    font-size: 0.95rem;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.2);
}

.user-table {
    background-color: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 200;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideInUp 0.3s ease-out;
}

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

.modal-header h2 {
    color: var(--accent);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

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

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

.modal-section h3 {
    color: var(--accent);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.modal-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.modal-row.full {
    grid-template-columns: 1fr;
}

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

.modal-item strong {
    color: var(--text-primary);
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* ============================================
   SECTION 14: ANIMATIONS
   ============================================ */

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleInSuccess {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============================================
   SECTION 15: UTILITY CLASSES
   ============================================ */

.hidden {
    display: none !important;
}

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

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

.rounded { border-radius: 6px; }
.rounded-lg { border-radius: 12px; }

.flex {
    display: flex;
}

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

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

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

/* ============================================
   SECTION 16: RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .modal-row {
        grid-template-columns: 1fr;
    }

    nav ul {
        gap: 1rem;
    }
}

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

    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.2rem; }

    header {
        padding: 1rem;
    }

    .header-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        gap: 0;
    }

    .menu-toggle {
        display: flex;
        order: 2;
        z-index: 101;
        position: relative;
    }

    .menu-toggle:focus {
        outline: 2px solid var(--accent);
        outline-offset: 2px;
    }

    .logo {
      
        flex: 1;
    }

    nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        width: 100%;
        background-color: var(--secondary-bg);
        /* border-bottom: 1px solid var(--border-color); */
        /* border-top: 1px solid var(--border-color); */
        flex-direction: column;
        padding: 0;
        gap: 0;
        z-index: 100;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    nav.active {
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        animation: slideDown 0.4s ease-out;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
        list-style: none;
        display: flex;
        margin: 0;
        padding: 0;
    }

    nav ul li {
        border-bottom: 1px solid var(--border-color);
        margin: 0;
        padding: 0;
        list-style: none;
        transition: background-color 0.2s ease;
    }

    nav ul li:hover {
        background-color: rgba(246, 243, 243, 0.05);
    }

    nav ul li:last-child {
        border-bottom: none;
    }

    nav ul li a {
        display: block;
        padding: 1rem 1.5rem;
        color: var(--text-primary);
        transition: all 0.2s ease;
        text-decoration: none;
        font-weight: 500;
    }

    nav ul li a:hover {
        background-color: rgba(246, 243, 243, 0.1);
        color: var(--accent);
        padding-left: 2rem;
    }

    nav ul li a:active {
        background-color: rgba(246, 243, 243, 0.15);
    }

    nav ul li .btn {
        display: inline-block;
        margin: 0.5rem 1.5rem;
        width: calc(100% - 3rem);
        border-radius: 6px;
    }

    .user-info {
        padding: 1rem 1.5rem;
        border-bottom: 1px solid var(--border-color);
        text-align: left;
        background-color: rgba(246, 243, 243, 0.05);
    }

    .user-name {
        font-weight: 600;
        color: var(--accent);
        margin-bottom: 0.25rem;
    }

    .user-email {
        font-size: 0.8rem;
        color: var(--text-secondary);
    }

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

    body.menu-open {
        overflow: hidden;
    }

    .hero {
        padding: 4rem 1rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .tournaments-grid,
    .players-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-box {
        padding: 1.5rem;
        max-width: 100%;
    }

    .form-buttons {
        flex-direction: column;
    }

    .form-buttons .btn {
        width: 100%;
    }

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

    .user-menu {
        flex-direction: column;
        width: 100%;
    }

    .user-info {
        text-align: center;
        width: 100%;
    }

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

    table {
        font-size: 0.9rem;
        overflow-x: auto;
        display: block;
    }

    thead {
        display: none;
    }

    tbody {
        display: block;
    }

    tbody tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid var(--border-color);
        border-radius: 6px;
    }

    tbody td {
        display: block;
        text-align: right;
        padding-left: 50%;
        position: relative;
        border: none;
    }

    tbody td:before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 50%;
        padding: 0.5rem;
        font-weight: 600;
        text-align: left;
        color: var(--accent);
    }

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

    .modal-row {
        grid-template-columns: 1fr;
    }

    .faq {
        padding: 1.5rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }
}

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

    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }

    .form-box {
        padding: 1rem;
    }

    .card {
        padding: 1rem;
    }

    .card h2 {
        font-size: 1.1rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

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

    .logo {
        font-size: 1.2rem;
    }

    .stat-card .stat-value {
        font-size: 1.5rem;
    }

    .plan-price {
        font-size: 2rem;
    }

    .modal-content {
        width: 100%;
        border-radius: 12px 12px 0 0;
        max-height: 100vh;
    }

    .faq {
        padding: 1rem;
    }

    .tournament-card,
    .player-card {
        padding: 1rem;
    }

    nav ul {
        /* gap: 1rem; */
        flex-direction: column;
    }

    .form-row {
        gap: 1rem;
    }

    .card-stats {
        grid-template-columns: 1fr;
    }

    .stat {
        padding: 0.75rem;
    }
}

/* ============================================
   SECTION 18: CONTACT FORM STYLES
   ============================================ */


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

.close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

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

.modal-body {
    margin-top: 1rem;
}

.qr-section,
.receipt-section {
    margin-bottom: 1.5rem;
}

.qr-section h3,
.receipt-section h3 {
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.qr-section p,
.receipt-section p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.qr-container {
    display: flex;
    justify-content: center;
    padding: 1rem;
    background-color: var(--primary-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.qr-code {
    width: 285px;
    height: 285px;
    border-radius: 8px;
}

.file-upload {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--primary-bg);
    border-radius: 8px;
    border: 2px dashed var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload:hover {
    border-color: var(--accent);
    background-color: rgba(246, 243, 243, 0.05);
}

#fileName {
    font-size: 0.9rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

#previewContainer {
    padding: 1rem;
    background-color: var(--primary-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

#previewImage {
    display: block;
    max-width: 100%;
    max-height: 200px;
    border-radius: 4px;
    margin-top: 0.5rem;
}

/* Modal responsive */
@media (max-width: 768px) {
    .modal-content {
        padding: 1.5rem;
        max-width: 95%;
    }

    .qr-code {
        width: 200px;
        height: 200px;
    }

    .close {
        top: 0.5rem;
        right: 1rem;
        font-size: 1.5rem;
    }
}


@media (max-width: 768px) {
    #navMenu {
        flex-direction: column;
    }

    .user-info {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .remember-forgot {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .buttons {
        flex-direction: column;
    }

    .buttons .btn {
        width: 100%;
    }

    .tournament-date {
        font-size: 0.85rem;
    }

    .player-stats {
        grid-template-columns: 1fr;
    }

    .about-features {
        gap: 0.75rem;
    }

    .feature {
        gap: 0.75rem;
    }

    .feature-icon {
        font-size: 1.5rem;
    }
}

/* ============================================
   MODAL DETAILS STYLES
   ============================================ */

.modal-header h2 {
    color: var(--accent);
    margin: 0;
}

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

.close:hover,
.close:focus {
    color: var(--accent);
}

.modal-body {
    padding: 0;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detail-item label {
    font-weight: 600;
    color: var(--accent);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    color: var(--text-primary);
    font-size: 1.1rem;
    padding: 0.75rem;
    background-color: var(--primary-bg);
    border-radius: 4px;
    border-left: 3px solid var(--accent);
}

.spinner {
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--accent);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

@media (max-width: 768px) {
    .modal-content {
        max-width: 95%;
    }

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

    .detail-value {
        font-size: 1rem;
    }
}

/* ============================================
   SUCCESS MODAL STYLES
   ============================================ */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: var(--secondary-bg);
    border-radius: 12px;
    padding: 3rem 2rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    animation: slideUp 0.3s ease-out;
}

.modal-success .modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background-color: rgba(46, 213, 115, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: checkmarkPulse 0.6s ease-out;
}

.modal-success .modal-icon svg {
    width: 50px;
    height: 50px;
    color: var(--success-color);
    stroke: var(--success-color);
}

.modal-error .modal-icon {
    background-color: rgba(255, 71, 87, 0.1);
}

.modal-error .modal-icon svg {
    width: 50px;
    height: 50px;
    color: var(--error-color);
    stroke: var(--error-color);
}

.modal-content h2 {
    color: var(--success-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.modal-error h2 {
    color: var(--error-color);
}

.modal-message {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.modal-footer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.redirect-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

.redirect-text span {
    color: var(--success-color);
    font-weight: bold;
}

.modal .btn {
    width: 100%;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes checkmarkPulse {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}
