:root {
    --primary: #10b981; /* Emerald green (soccer vibe) */
    --primary-hover: #059669;
    --secondary: #06b6d4; /* Cyan */
    --accent: #fbbf24; /* Gold */
    --danger: #f43f5e; /* Rose */
    --success: #10b981;
    --dark-bg: #090d16;
    --dark-card: rgba(17, 24, 39, 0.6);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
    --text-muted: #64748b;
    --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
    --neon-shadow: 0 0 15px rgba(16, 185, 129, 0.35);
}

/* Base resets & typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--dark-bg);
    background-image: 
        radial-gradient(at 0% 0%, rgba(16, 185, 129, 0.12) 0px, transparent 40%),
        radial-gradient(at 100% 100%, rgba(6, 182, 212, 0.1) 0px, transparent 45%);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
}

/* Layout and Global Components */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
}

.premium-header {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(9, 13, 22, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
}

.premium-header .logo a {
    text-decoration: none;
    color: #fff;
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -1px;
}

.nav-link {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

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

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #020617;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--neon-shadow);
    opacity: 0.95;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* Marquee Scrolling Banner */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 1.25rem 0;
    background: rgba(16, 185, 129, 0.04);
    border-top: 1px solid rgba(16, 185, 129, 0.1);
    border-bottom: 1px solid rgba(16, 185, 129, 0.1);
}

@keyframes marquee {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}

.animate-marquee {
    display: flex;
    width: max-content;
    animation: marquee 25s linear infinite;
}

.marquee-item {
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--text-main);
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-transform: uppercase;
}

.marquee-dot {
    color: var(--primary);
    opacity: 0.6;
}

/* Landing Page Grid & Elements */
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-dim);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

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

.feature-card {
    padding: 2.25rem 2rem;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.feature-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

/* How it Works / Passo a Passo */
.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    position: relative;
}

.step-card {
    padding: 2rem;
    position: relative;
    z-index: 10;
}

.step-number {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), transparent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

/* Pricing Page Styles */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.pricing-card.premium {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
}

.pricing-card.premium::before {
    content: 'MAIS POPULAR';
    position: absolute;
    top: 18px;
    right: -32px;
    background: var(--primary);
    color: #020617;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.25rem 2rem;
    transform: rotate(45deg);
}

.price-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.price-val {
    font-size: 2.75rem;
    font-weight: 800;
    margin: 1rem 0;
    color: #fff;
}

.price-features {
    list-style: none;
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.price-features li {
    font-size: 0.9rem;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-features li::before {
    content: '✓';
    color: var(--primary);
    font-weight: bold;
}

/* Dashboard UI Layout */
.dashboard-layout {
    display: grid;
    grid-template-columns: 2.5fr 1.2fr;
    gap: 2rem;
    margin-top: 1.5rem;
}

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

.dashboard-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Tabs switcher */
.tab-navigation {
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 0.4rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-dim);
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.tab-btn.active {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    border: 1px solid var(--glass-border);
}

/* Match feed card */
.match-card {
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transition: border-color 0.2s;
}

.match-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.team-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

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

.team-info.home {
    justify-content: flex-start;
}

.team-info.away {
    justify-content: flex-end;
    text-align: right;
}

.team-flag {
    font-size: 1.75rem;
    line-height: 1;
}

.team-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: #fff;
}

.team-short {
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* Score Inputs */
.score-inputs-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(2, 6, 23, 0.35);
    border: 1px solid var(--glass-border);
    padding: 0.35rem 0.6rem;
    border-radius: 10px;
}

.score-input {
    width: 44px;
    height: 36px;
    background: transparent;
    border: none;
    color: #fff;
    text-align: center;
    font-size: 1.15rem;
    font-weight: 700;
    outline: none;
}

.score-input::-webkit-outer-spin-button,
.score-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.score-divider {
    font-weight: 700;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Leaderboard */
.ranking-table {
    width: 100%;
    border-collapse: collapse;
}

.ranking-table th {
    text-align: left;
    color: var(--text-dim);
    padding: 0.75rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--glass-border);
}

.ranking-table tr {
    transition: background-color 0.2s;
}

.ranking-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.ranking-table td {
    padding: 0.9rem 0.5rem;
    border-bottom: 1px solid var(--glass-border);
    vertical-align: middle;
}

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

.ranking-table tr.highlight {
    background: rgba(16, 185, 129, 0.06);
    border-left: 2px solid var(--primary);
}

/* Modals */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(8px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    width: 90%;
    max-width: 440px;
    padding: 2rem;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-close:hover {
    color: #fff;
}

/* Dynamic components inputs */
.form-input-premium {
    width: 100%;
    background: rgba(2, 6, 23, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    color: #fff;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.2s;
}

.form-input-premium:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
}

.form-label-premium {
    font-size: 0.8rem;
    color: var(--text-dim);
    font-weight: 600;
    margin-bottom: 0.4rem;
    display: block;
}

/* Spinner and Loaders */
.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

/* Toasts styling */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast {
    background: #0f172a;
    border: 1px solid var(--glass-border);
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 280px;
    animation: slideIn 0.3s ease;
}

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

/* Wallet list */
.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--glass-border);
}

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

/* Responsive hamburgers */
.hamburger {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-menu {
    position: fixed;
    top: 75px;
    left: 2rem;
    right: 2rem;
    z-index: 99;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 769px) {
    .mobile-menu {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    .header-nav {
        display: none;
    }
}
