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

:root {
    --primary: #00ff88;
    --primary-dark: #00cc6a;
    --secondary: #0066ff;
    --accent: #ff00ff;
    --dark-bg: #0a0e27;
    --card-bg: #141b3d;
    --card-hover: #1a2350;
    --text-primary: #ffffff;
    --text-secondary: #8b9dc3;
    --border: #2a3a6b;
    --success: #00ff88;
    --warning: #ffaa00;
    --danger: #ff3366;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: linear-gradient(135deg, var(--dark-bg) 0%, #0f1535 100%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 102, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 0, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 10%, rgba(0, 255, 136, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(20, 27, 61, 0.8) 100%);
    border: 2px solid var(--border);
    border-radius: 20px;
    padding: 20px; /* Reducido de 30px */
    margin-bottom: 20px; /* Reducido de 30px */
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

/* Update header layout to vertical stack */
.header-content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    position: relative;
    z-index: 2;
}

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

.logo-icon {
    font-size: 40px; /* Reducido de 60px */
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(0, 255, 136, 0.5));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.logo-text h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 32px; /* Reducido de 48px */
    font-weight: 900;
    letter-spacing: 4px;
    text-transform: uppercase;
    background: linear-gradient(90deg, var(--text-primary) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-text h1 span {
    color: var(--primary);
}

.tagline {
    font-size: 11px; /* Reducido de 14px */
    letter-spacing: 3px;
    color: var(--text-secondary);
    font-weight: 600;
    margin-top: 5px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px; /* Reducido de 20px */
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px; /* Reducido de 20px */
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.1), transparent);
    transition: left 0.5s ease;
}

.stat-card:hover::before {
    left: 100%;
}

.stat-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 24px; /* Reducido de 36px */
    font-weight: 700;
    color: var(--primary);
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

.stat-label {
    font-size: 10px; /* Reducido de 12px */
    letter-spacing: 2px;
    color: var(--text-secondary);
    margin-top: 5px;
    font-weight: 600;
}

/* Header top navigation */
.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.connection-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.connection-badge.connected {
    background: rgba(0, 255, 136, 0.15);
    color: var(--success);
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.connection-badge.connecting {
    background: rgba(255, 170, 0, 0.15);
    color: var(--warning);
    border: 1px solid rgba(255, 170, 0, 0.3);
    animation: pulse 1.5s ease-in-out infinite;
}

.connection-badge.disconnected {
    background: rgba(255, 51, 102, 0.15);
    color: var(--danger);
    border: 1px solid rgba(255, 51, 102, 0.3);
}

.connection-badge.error {
    background: rgba(255, 51, 102, 0.2);
    color: var(--danger);
    border: 1px solid rgba(255, 51, 102, 0.4);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.nav-btn {
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid rgba(139, 157, 195, 0.25);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(139, 157, 195, 0.45);
    transform: translateY(-1px);
}

.nav-btn--primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-color: transparent;
    color: #00161a;
}

@media (max-width: 768px) {
    .header-actions { flex-wrap: wrap; justify-content: flex-end; }
}

/* Filters */
.filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding: 20px;
    background: rgba(20, 27, 61, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 157, 195, 0.2);
    border-radius: 12px;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.filter-group {
    flex: 1;
}

.filter-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.filter-icon {
    font-size: 14px;
}

.filter-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(10, 14, 39, 0.5);
    border: 1px solid rgba(139, 157, 195, 0.3);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: 'Orbitron', sans-serif;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    outline: none;
}

.filter-input:focus {
    border-color: var(--primary);
    background: rgba(10, 14, 39, 0.8);
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1);
}

.filter-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.5;
}

/* Compacto: filtro MIN PROFIT ocupa menos espacio horizontal */
.filter-group--compact {
    flex: 0 0 200px;
    max-width: 200px;
}

.filter-group--compact .filter-input {
    width: 100%;
}

.filters-right {
    display: flex;
    gap: 12px;
    align-items: center;
}

@media (max-width: 1200px) {
    .filter-group--compact { flex: 0 0 180px; max-width: 180px; }
}

@media (max-width: 900px) {
    .filter-group--compact { flex: 0 0 160px; max-width: 160px; }
    .filters-right { flex-direction: column; align-items: stretch; }
}

@media (max-width: 768px) {
    .filters { flex-direction: column; align-items: stretch; }
    .filter-group--compact { flex: 1 1 100%; max-width: none; }
    .filters-right { width: 100%; }
}

.refresh-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: 8px;
    color: var(--dark-bg);
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 255, 136, 0.25);
    position: relative;
    overflow: hidden;
}

.refresh-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.refresh-btn:hover::before {
    width: 300px;
    height: 300px;
}

.refresh-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 136, 0.4);
}

.refresh-btn:active {
    transform: translateY(0);
}

.refresh-btn.loading .refresh-icon {
    animation: rotate 1s linear infinite;
}

.filter-toggle-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.8) 0%, rgba(0, 82, 204, 0.8) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 102, 255, 0.3);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.filter-toggle-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.filter-toggle-btn:hover::before {
    width: 300px;
    height: 300px;
}

.filter-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.4);
    border-color: rgba(0, 102, 255, 0.5);
}

/* Advanced Filters Panel */
.advanced-filters {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: 15px;
    margin-bottom: 20px;
}

.advanced-filters.open {
    max-height: 1000px;
    padding: 20px;
}

.advanced-filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.filter-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 15px;
}

.filter-section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.filter-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.mini-btn {
    padding: 4px 10px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 6px;
    color: var(--primary);
    font-family: 'Rajdhani', sans-serif;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mini-btn:hover {
    background: rgba(0, 255, 136, 0.2);
    border-color: var(--primary);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 5px;
}

.checkbox-group::-webkit-scrollbar {
    width: 6px;
}

.checkbox-group::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.checkbox-group::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.checkbox-group::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.checkbox-label:hover {
    background: rgba(0, 255, 136, 0.05);
    color: var(--text-primary);
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--primary);
}

.checkbox-label span {
    flex: 1;
}

/* Surebets Container */
.surebets-container {
    display: flex;
    flex-direction: column;
    gap: 12px; /* Reducido de 20px */
}

.loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading p {
    font-size: 14px;
    letter-spacing: 2px;
    font-weight: 600;
}

/* Surebet Card */
.surebet-card {
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: 12px; /* Reducido de 15px */
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.surebet-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.2);
}

.surebet-header {
    padding: 15px 20px; /* Reducido de 20px 25px */
    background: linear-gradient(90deg, rgba(0, 255, 136, 0.1) 0%, transparent 100%);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.match-info {
    flex: 1;
}

.event-badges {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.sport-badge {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(139, 157, 195, 0.15);
    border: 1px solid rgba(139, 157, 195, 0.3);
    border-radius: 20px;
    font-size: 10px;
    letter-spacing: 0.5px;
    font-weight: 600;
    color: var(--text-secondary);
}

.league-badge {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(139, 157, 195, 0.15);
    border: 1px solid rgba(139, 157, 195, 0.3);
    border-radius: 20px;
    font-size: 10px;
    letter-spacing: 0.5px;
    font-weight: 600;
    color: var(--text-secondary);
}

.season-badge {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(139, 157, 195, 0.15);
    border: 1px solid rgba(139, 157, 195, 0.3);
    border-radius: 20px;
    font-size: 10px;
    letter-spacing: 0.5px;
    font-weight: 600;
    color: var(--text-secondary);
}

.debug-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 8px;
    background: rgba(255, 170, 0, 0.15);
    border: 1px solid rgba(255, 170, 0, 0.3);
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 4px;
}

.debug-btn:hover {
    background: rgba(255, 170, 0, 0.25);
    border-color: rgba(255, 170, 0, 0.5);
    transform: scale(1.05);
}

.debug-btn span {
    display: block;
}

/* Debug Modal */
.debug-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.debug-modal-content {
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.debug-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 2px solid var(--border);
}

.debug-modal-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.debug-modal-actions {
    display: flex;
    gap: 10px;
}

.copy-btn,
.close-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--dark-bg);
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.3);
}

.close-btn {
    background: rgba(255, 51, 102, 0.2);
    color: var(--danger);
    border: 1px solid var(--danger);
}

.close-btn:hover {
    background: rgba(255, 51, 102, 0.3);
    transform: translateY(-2px);
}

.debug-modal-body {
    padding: 25px;
    overflow-y: auto;
    flex: 1;
    background: rgba(0, 0, 0, 0.2);
    margin: 0;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-primary);
    white-space: pre-wrap;
    word-wrap: break-word;
}

.debug-modal-body::-webkit-scrollbar {
    width: 8px;
}

.debug-modal-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.debug-modal-body::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

.debug-modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.teams {
    font-size: 18px; /* Reducido de 24px */
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px; /* Reducido de 5px */
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.teams span {
    color: var(--text-secondary);
    font-weight: 400;
}

.team-badge {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.market-name {
    font-size: 12px; /* Reducido de 14px */
    color: var(--text-secondary);
    font-weight: 600;
}

.event-time {
    font-size: 11px;
    color: var(--primary);
    font-weight: 600;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
}

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

.profit-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 32px; /* Reducido de 48px */
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

.profit-label {
    font-size: 10px; /* Reducido de 12px */
    letter-spacing: 2px;
    color: var(--text-secondary);
    font-weight: 700;
    margin-top: 4px; /* Reducido de 5px */
}

.surebet-body {
    padding: 15px; /* Reducido de 25px */
}

.odds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Reducido de 300px */
    gap: 12px; /* Reducido de 15px */
}

.odd-card {
    background: rgba(255, 255, 255, 0.02);
    border: 2px solid var(--border);
    border-radius: 10px; /* Reducido de 12px */
    padding: 12px; /* Reducido de 20px */
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.odd-card:hover {
    border-color: var(--primary);
    background: rgba(0, 255, 136, 0.05);
}

.odd-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
}

.odd-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px; /* Reducido de 15px */
}

.side-badge {
    padding: 4px 10px; /* Reducido de 6px 14px */
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--dark-bg);
    border-radius: 20px;
    font-size: 10px; /* Reducido de 12px */
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.bookmaker {
    font-size: 13px; /* Reducido de 16px */
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
}

.odd-details {
    display: grid;
    gap: 6px; /* Reducido de 10px */
}

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

.detail-label {
    font-size: 11px; /* Reducido de 13px */
    color: var(--text-secondary);
    font-weight: 600;
}

.detail-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 14px; /* Reducido de 18px */
    font-weight: 700;
    color: var(--text-primary);
}

.stake-value {
    color: var(--warning);
}

.btn-wrapper {
    position: relative;
    margin-top: 10px;
}

.btn-wrapper.has-tooltip:hover .tooltip-notice {
    opacity: 1;
    transform: translateY(0);
}

.bet-btn {
    width: 100%;
    padding: 8px;
    background: linear-gradient(135deg, var(--secondary) 0%, #0052cc 100%);
    border: none;
    border-radius: 8px;
    color: var(--text-primary);
    font-family: 'Rajdhani', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.bet-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 102, 255, 0.4);
}

.bet-btn-default {
    background: linear-gradient(135deg, #d4a574 0%, #b8935f 100%);
}

.bet-btn-default:hover {
    box-shadow: 0 5px 15px rgba(212, 165, 116, 0.3);
}

.btn-icon {
    font-size: 14px;
}

.tooltip-notice {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(-5px);
    padding: 6px 10px;
    background: rgba(255, 170, 0, 0.95);
    border: 1px solid rgba(255, 170, 0, 0.3);
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    color: var(--dark-bg);
    text-align: center;
    letter-spacing: 0.3px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.tooltip-notice::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(255, 170, 0, 0.95);
}

.link-notice {
    display: none;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.empty-subtext {
    font-size: 16px;
    color: var(--text-secondary);
    opacity: 0.7;
}

/* Subscription Banner & Badges - Sprint 4 */
.subscription-banner {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #333;
    padding: 16px 24px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
    animation: slideDown 0.5s ease;
}

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

.subscription-banner.warning {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8787 100%);
    color: white;
}

.subscription-banner.info {
    background: linear-gradient(135deg, #4a90e2 0%, #5ca3f5 100%);
    color: white;
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.banner-icon {
    font-size: 24px;
}

.banner-text {
    font-size: 15px;
}

.banner-text strong {
    font-weight: 700;
}

.banner-actions {
    display: flex;
    gap: 10px;
}

.banner-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.banner-btn-primary {
    background: rgba(0, 0, 0, 0.2);
    color: white;
}

.banner-btn-primary:hover {
    background: rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.banner-btn-secondary {
    background: rgba(255, 255, 255, 0.3);
    color: #333;
}

.banner-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.4);
}

.subscription-badges {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 15px;
}

.plan-badge, .status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
}

.plan-badge {
    background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
    color: #0a0e27;
    box-shadow: 0 2px 8px rgba(0, 255, 136, 0.3);
}

.plan-badge--free {
    background: linear-gradient(135deg, #666 0%, #888 100%);
    color: white;
}

.plan-badge--starter {
    background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
    color: #0a0e27;
}

.plan-badge--pro {
    background: linear-gradient(135deg, #0066ff 0%, #0052cc 100%);
    color: white;
}

.plan-badge--enterprise {
    background: linear-gradient(135deg, #ff00ff 0%, #cc00cc 100%);
    color: white;
}

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

.status-badge--trial {
    background: #ffc107;
    color: #000;
}

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

.status-badge--canceled {
    background: #6c757d;
    color: white;
}

.status-badge--past_due {
    background: #ff9800;
    color: white;
}

.status-badge--expired {
    background: #dc3545;
    color: white;
}

.access-denied {
    text-align: center;
    padding: 80px 40px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px dashed var(--border);
    border-radius: 16px;
    margin: 40px 0;
}

.access-denied .icon {
    font-size: 100px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.access-denied h2 {
    font-size: 32px;
    color: var(--text-primary);
    margin-bottom: 15px;
    font-weight: 700;
}

.access-denied p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
}

.btn-upgrade {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--dark-bg);
    font-weight: 700;
    font-size: 16px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
}

.btn-upgrade:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 136, 0.4);
}

/* Responsive */
@media (max-width: 1200px) {
    .header-content {
        flex-direction: column;
    }
    
    .stats-grid {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .refresh-btn {
        justify-content: center;
    }
    
    .logo-text h1 {
        font-size: 32px;
    }
    
    .surebet-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .profit-badge {
        text-align: left;
    }
    
    .odds-grid {
        grid-template-columns: 1fr;
    }
    
    .subscription-banner {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .banner-content {
        flex-direction: column;
    }
    
    .banner-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .banner-btn {
        width: 100%;
    }
    
    .subscription-badges {
        flex-wrap: wrap;
        justify-content: center;
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .header-actions {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ============================================
   Authentication Pages Styles
   ============================================ */

.auth-container {
    min-height: 100vh;
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
}

.auth-background .bg-gradient {
    position: absolute;
    inset: -20% -20% auto -20%;
    height: 60%;
    background: radial-gradient(closest-side, rgba(0, 255, 136, 0.12), transparent),
                radial-gradient(closest-side, rgba(0, 102, 255, 0.1), transparent);
    filter: blur(80px);
    z-index: 0;
}

.auth-background .bg-pattern {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(transparent 24px, rgba(255,255,255,0.02) 25px),
                      linear-gradient(90deg, transparent 24px, rgba(255,255,255,0.02) 25px);
    background-size: 25px 25px;
    z-index: 0;
}

.auth-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(20, 27, 61, 0.95) 100%);
    border: 2px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    overflow: hidden;
    backdrop-filter: blur(8px);
}

.auth-header {
    padding: 24px 24px 0 24px;
}

.auth-card .logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-card .logo-icon {
    font-size: 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 15px rgba(0, 255, 136, 0.4));
}

.auth-card .logo h1 {
    margin: 0;
    letter-spacing: 1px;
    font-family: 'Orbitron', 'Rajdhani', sans-serif;
    font-size: 22px;
    background: linear-gradient(135deg, var(--primary) 0%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-card .logo h1 span { 
    background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    margin: 6px 0 0 52px;
    color: var(--text-secondary);
    font-size: 12px;
    letter-spacing: 3px;
    font-weight: 500;
}

.auth-body { 
    padding: 8px 24px 24px; 
}

.auth-body h2 {
    margin: 6px 0 0 0;
    font-weight: 700;
    color: var(--text-primary);
}

.subtitle {
    margin: 6px 0 18px 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.auth-form { 
    display: grid; 
    gap: 14px; 
}

.form-group label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group .icon { 
    margin-right: 6px; 
}

.form-group input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 2px solid var(--border);
    background: rgba(10, 14, 39, 0.8);
    color: var(--text-primary);
    outline: none;
    font-family: 'Rajdhani', sans-serif;
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 255, 136, 0.1);
    background: rgba(10, 14, 39, 0.95);
}

.form-group input::placeholder {
    color: var(--text-secondary);
    opacity: 0.5;
}

.form-options {
    display: flex;
    justify-content: flex-end;
}

.link, .link-primary {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s ease;
}

.link-primary { 
    color: var(--primary);
}

.link:hover, .link-primary:hover { 
    text-decoration: underline;
    color: var(--primary);
}

.auth-card .btn-primary {
    width: 100%;
    padding: 14px 16px;
    border: 0;
    border-radius: 12px;
    color: var(--dark-bg);
    font-weight: 800;
    letter-spacing: 0.5px;
    font-size: 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--success) 100%);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
}

.auth-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 136, 0.4);
}

.auth-card .btn-primary:active {
    transform: translateY(0);
}

.auth-card .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.error-message {
    background: rgba(255, 51, 102, 0.15);
    border: 2px solid rgba(255, 51, 102, 0.3);
    color: #ffd7d7;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
}

.auth-footer { 
    margin-top: 14px; 
    color: var(--text-secondary); 
    text-align: center;
    font-size: 14px;
}

.trial-info-box {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
    color: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.trial-info-box h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
}

.trial-info-box ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
    font-size: 14px;
    line-height: 1.8;
}

/* Small screens */
@media (max-width: 480px) {
    .auth-card { 
        margin: 16px;
        max-width: 100%;
    }
    
    .auth-body {
        padding: 8px 16px 16px;
    }
    
    .auth-header {
        padding: 16px 16px 0 16px;
    }
}
