:root {
    --bg-color: #08080c;
    --card-bg: rgba(18, 18, 28, 0.45);
    --border-color: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.15);
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --accent: #e50914;
    --accent-glow: rgba(229, 9, 20, 0.3);
    
    --cricket: #00f2fe;
    --football: #ffd200;
    --f1: #ff2a2a;
    --admin: #8b5cf6;
    
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* Ambient glow blobs */
.glow-blob {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    filter: blur(100px);
    opacity: 0.7;
}

.glow-1 {
    top: -200px;
    left: -200px;
    background: radial-gradient(circle, rgba(229, 9, 20, 0.15) 0%, rgba(0,0,0,0) 70%);
}

.glow-2 {
    bottom: -200px;
    right: -200px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, rgba(0,0,0,0) 70%);
}

/* Navigation Bar */
.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(8, 8, 12, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 1px;
    text-decoration: none;
    color: var(--text-primary);
    background: linear-gradient(135deg, #ffffff 40%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    padding: 4px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

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

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

/* Main Container */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 24px 80px 24px;
    flex-grow: 1;
    z-index: 2;
}

header {
    text-align: center;
    margin-bottom: 50px;
}

h1 {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #ffffff 30%, #9ca3af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

header p {
    color: var(--text-secondary);
    font-size: 1.15rem;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
}

/* Premium Glassmorphic Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 35px 28px;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 1px 1px rgba(255,255,255,0.1) inset;
}

.icon {
    font-size: 3.2rem;
    margin-bottom: 24px;
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.35));
    transition: var(--transition);
}

.card:hover .icon {
    transform: scale(1.15) rotate(4deg);
}

.card h2 {
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: 10px;
}

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

/* App colors dynamic styles */
.card.cricket:hover { border-color: var(--cricket); box-shadow: 0 20px 40px rgba(0, 242, 254, 0.15); }
.card.football:hover { border-color: var(--football); box-shadow: 0 20px 40px rgba(255, 210, 0, 0.12); }
.card.admin:hover { border-color: var(--admin); box-shadow: 0 20px 40px rgba(139, 92, 246, 0.15); }
.card.f1:hover { border-color: var(--f1); box-shadow: 0 20px 40px rgba(255, 42, 42, 0.15); }

/* Support Grid Section */
.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: left;
    border-left: 4px solid var(--accent);
    padding-left: 14px;
    letter-spacing: -0.5px;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.support-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.support-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-4px);
}

.support-card .support-icon {
    font-size: 1.8rem;
    opacity: 0.8;
}

.support-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Secondary Pages (Document styling) */
.glass-panel {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 48px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    text-align: left;
    margin-bottom: 40px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 30px;
    transition: var(--transition);
}

.back-btn:hover {
    color: var(--text-primary);
    transform: translateX(-4px);
}

.doc-section {
    margin-bottom: 35px;
}

.doc-section h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 8px;
}

.doc-section p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 15px;
    font-weight: 300;
}

.doc-section ul {
    list-style-type: none;
    margin-left: 8px;
    margin-bottom: 15px;
}

.doc-section li {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 8px;
    position: relative;
    padding-left: 18px;
    font-weight: 300;
}

.doc-section li::before {
    content: "•";
    color: var(--accent);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Tester Page Components */
.steps-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 35px;
}

.step-item {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    padding: 24px;
    border-left: 4px solid var(--accent);
}

.step-num {
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 6px;
}

.step-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.step-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 300;
}

.credentials-box {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 20px;
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: var(--transition);
}

.credentials-box:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-hover);
}

.cred-val {
    font-family: monospace;
    font-size: 1rem;
    color: var(--cricket);
}

.copy-btn {
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.08);
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.credentials-box:hover .copy-btn {
    color: var(--text-primary);
    background: var(--accent);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    margin-top: 12px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--accent-glow);
    background: #ff1f29;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(16, 185, 129, 0.9);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    z-index: 1000;
    opacity: 0;
    transition: var(--transition);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Table styling */
.table-wrapper {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
}

th {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    font-weight: 600;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-weight: 300;
}

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

tr:hover td {
    background: rgba(255, 255, 255, 0.01);
}

/* Footer Section */
footer {
    border-top: 1px solid var(--border-color);
    padding: 30px 40px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 300;
    background: rgba(8, 8, 12, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: 100%;
}

footer span {
    color: var(--text-primary);
    font-weight: 600;
}

@media(max-width: 768px) {
    .nav-bar {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
    }
    .nav-links {
        gap: 15px;
    }
    .container {
        padding: 30px 16px 60px 16px;
    }
    h1 {
        font-size: 2.2rem;
    }
    .glass-panel {
        padding: 24px;
    }
}
