@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ==========================================================================
   Design Tokens & Variables
   ========================================================================== */
:root {
    /* Color Schemes (Light-dark adapt default is dark mode first) */
    --bg-dark: #060608;
    --bg-dark-rgb: 6, 6, 8;
    --bg-surface: #0d0d12;
    --bg-surface-rgb: 13, 13, 18;
    
    --primary-red: #ff2a3b;
    --primary-red-rgb: 255, 42, 59;
    --primary-red-hover: #ff4d5d;
    --primary-red-glow: rgba(255, 42, 59, 0.15);
    
    --primary-green: #00ff9d;
    --primary-green-rgb: 0, 255, 157;
    --primary-green-hover: #33ffb1;
    --primary-green-glow: rgba(0, 255, 157, 0.15);
    
    --primary-warning: #ffd166;
    --primary-warning-rgb: 255, 209, 102;
    
    --text-main: #ffffff;
    --text-sub: #8a8f9c;
    --text-muted: #525866;
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(255, 42, 59, 0.25);
    --border-success: rgba(0, 255, 157, 0.25);
    
    --glass-bg: rgba(13, 13, 18, 0.65);
    --glass-bg-accent: rgba(255, 42, 59, 0.04);
    --glass-border: rgba(255, 255, 255, 0.06);
    
    /* Layout Variables */
    --container-max-width: 1200px;
    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    
    color-scheme: dark;
}

/* ==========================================================================
   Base resets & typography
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 42, 59, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(255, 42, 59, 0.08) 0%, transparent 50%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 42, 59, 0.4);
}

/* Typography styles */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.15;
}

p {
    color: var(--text-sub);
}

strong {
    color: var(--text-main);
}

/* ==========================================================================
   Layout Primitives
   ========================================================================== */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.eyebrow {
    color: var(--primary-red);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.75rem;
    font-weight: 800;
    margin-bottom: 8px;
    display: inline-block;
}

/* ==========================================================================
   Glassmorphic & Cards System
   ========================================================================== */
.btr-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.btr-card:hover {
    border-color: var(--border-highlight);
    box-shadow: 0 25px 50px rgba(255, 42, 59, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Ambient glow backgrounds */
.ambient-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-red-glow) 0%, transparent 70%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    filter: blur(100px);
    opacity: 0.4;
    pointer-events: none;
    animation: pulseGlow 10s infinite alternate ease-in-out;
}

@keyframes pulseGlow {
    0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.3; }
    100% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.5; }
}

/* ==========================================================================
   Button System
   ========================================================================== */
.btn-premium {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary-red) 0%, #ff5261 100%);
    color: var(--text-main);
    text-decoration: none;
    padding: 16px 36px;
    border-radius: 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(255, 42, 59, 0.35);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(255, 42, 59, 0.55);
    filter: brightness(1.05);
}

.btn-premium:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(255, 42, 59, 0.25);
}

.btn-premium-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-main);
    text-decoration: none;
    padding: 15px 35px;
    border-radius: 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-premium-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-main);
    transform: translateY(-2px);
}

.btn-premium-outline.red {
    color: var(--text-main);
    border-color: var(--border-highlight);
    background: rgba(255, 42, 59, 0.05);
}

.btn-premium-outline.red:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
    box-shadow: 0 8px 24px rgba(255, 42, 59, 0.3);
    transform: translateY(-2px);
}

/* ==========================================================================
   Input & Form Controls
   ========================================================================== */
.btr-form-group {
    margin-bottom: 20px;
    text-align: left;
}

.btr-form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-sub);
    margin-bottom: 8px;
}

.btr-input {
    width: 100%;
    padding: 16px 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.4);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    transition: all var(--transition-fast);
    outline: none;
}

.btr-input:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 4px rgba(255, 42, 59, 0.15);
    background: rgba(0, 0, 0, 0.6);
}

.btr-input::placeholder {
    color: var(--text-muted);
}

select.btr-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%238a8f9c'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 16px;
    padding-right: 48px;
}

/* ==========================================================================
   Tables & Data Presentation
   ========================================================================== */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    background: var(--glass-bg);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th {
    background: rgba(0, 0, 0, 0.4);
    padding: 18px 24px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: var(--text-sub);
    border-bottom: 1px solid var(--border-color);
}

td {
    padding: 18px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.95rem;
    color: #e2e8f0;
}

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

tr:hover td {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-main);
}

/* Badges for status */
.badge-win {
    background: rgba(0, 255, 157, 0.1);
    color: var(--primary-green);
    border: 1px solid rgba(0, 255, 157, 0.2);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.badge-loss {
    background: rgba(255, 42, 59, 0.1);
    color: var(--primary-red);
    border: 1px solid rgba(255, 42, 59, 0.2);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.badge-pending {
    background: rgba(255, 209, 102, 0.1);
    color: var(--primary-warning);
    border: 1px solid rgba(255, 209, 102, 0.2);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

/* ==========================================================================
   Header / Navigation Bar
   ========================================================================== */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
}

.logo span {
    color: var(--primary-red);
    text-shadow: 0 0 15px rgba(255, 42, 59, 0.3);
}

.member-login {
    color: var(--text-sub);
    text-decoration: none;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 6px;
    transition: all var(--transition-fast);
}

.member-login:hover {
    color: var(--text-main);
    border-color: var(--text-main);
    background: rgba(255, 255, 255, 0.03);
}
