/* ── Football Site Theme ──────────────────────────── */

:root {
    --green-dark: #1a3c2a;
    --green-mid: #2d6a4f;
    --green-light: #40916c;
    --gold: #d4a843;
    --gold-light: #f0d78c;
}

/* ── Navbar ─────────────────── */
.bg-dark-green {
    background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
}

.navbar-brand {
    letter-spacing: 1px;
}

@media (max-width: 575.98px) {
    .navbar-brand {
        font-size: 1rem;
        letter-spacing: 0;
    }
    .navbar { padding: 0.4rem 0; }
    .navbar-toggler { padding: 0.25rem 0.4rem; font-size: 1rem; }
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

.bg-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: #333;
}
/* ── Gold progress bar for member card ── */
.progress-bar.bg-gold {
    background: linear-gradient(90deg, var(--gold), #e6c350) !important;
    transition: width 0.6s ease;
}

/* ── Hero ──────────────────── */
.hero-section {
    background: linear-gradient(135deg, var(--green-dark) 0%, #0b5e3c 50%, #1a5632 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.05) 0%, transparent 70%);
    pointer-events: none;
}

.stat-card {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(4px);
    border-radius: 12px;
    padding: 1.2rem 0.8rem;
    border: 1px solid rgba(255,255,255,0.15);
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
}

/* Light-bg stat card for dashboard pages */
.stat-card-light {
    background: #fff;
    border-radius: 12px;
    padding: 1.2rem 0.8rem;
    border: 1px solid #e9ecef;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.stat-card-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.stat-card-light .stat-number {
    color: var(--green-dark);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* ── Match Cards ──────────── */
.match-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
    transition: transform 0.15s, box-shadow 0.15s;
}

.match-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.team-name {
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.score-display {
    text-align: center;
    min-width: 80px;
}

.score-text {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #333;
}

.live-badge {
    animation: pulse 1.5s ease-in-out infinite;
}

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

/* ── Status Badges ────────── */
.status-scheduled { background: #6c757d; }
.status-live { background: #dc3545; }
.status-finished { background: #198754; }
.status-postponed { background: #fd7e14; }
.status-cancelled { background: #adb5bd; }

/* ── Result Card ──────────── */
.result-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    max-width: 500px;
    margin: 0 auto;
}

.result-number {
    font-size: 2.2rem;
    font-weight: 700;
}

.result-icon {
    font-size: 1.8rem;
}

/* ── Pricing ──────────────── */
.pricing-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
    position: relative;
    transition: transform 0.2s;
    height: 100%;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.pricing-card.popular {
    border: 2px solid var(--gold);
    transform: scale(1.03);
}

.pricing-card.popular:hover {
    transform: scale(1.03) translateY(-4px);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: #333;
    padding: 4px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--green-dark);
    margin: 0.5rem 0;
}

.pricing-card ul li {
    padding: 0.4rem 0;
    font-size: 0.9rem;
}

/* ── Empty State ──────────── */
.empty-state {
    opacity: 0.5;
}

/* ── Footer ───────────────── */
footer {
    background: #1a1a2e !important;
}

/* ── Anti-copy ────────────── */
.no-copy {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

/* ── Canvas Table ─────────── */
.canvas-table-wrapper {
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}
.canvas-table-wrapper::-webkit-scrollbar {
    height: 8px;
    width: 8px;
}
.canvas-table-wrapper::-webkit-scrollbar-track {
    background: transparent;
}
.canvas-table-wrapper::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

/* ── bg-orange helper ─────── */
.bg-orange {
    background-color: #fd7e14 !important;
}

/* ── Mobile Bottom Navigation ──────────────────────── */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: #fff;
    border-top: 1px solid #e9ecef;
    padding: 4px 0;
    padding-bottom: calc(4px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #6c757d;
    font-size: 0.65rem;
    padding: 2px 6px;
    min-width: 50px;
    transition: color 0.15s;
    border-radius: 8px;
    position: relative;
}

.bottom-nav-item i {
    font-size: 1.25rem;
    margin-bottom: 1px;
    transition: transform 0.15s;
}

.bottom-nav-item.active {
    color: var(--green-dark);
    font-weight: 600;
}

.bottom-nav-item.active::before {
    content: "";
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--green-dark);
    border-radius: 0 0 3px 3px;
}

.bottom-nav-item:hover {
    color: var(--green-mid);
}

.bottom-nav-item:active i {
    transform: scale(0.9);
}

/* ── Responsive ───────────── */
@media (max-width: 767.98px) {
    .pb-mobile-nav {
        padding-bottom: 70px;  /* room for bottom nav */
    }
    .mb-mobile-nav {
        margin-bottom: 60px;  /* push footer above bottom nav */
    }
    .stat-number { font-size: 1.5rem; }
    .score-text { font-size: 1.3rem; }
    .pricing-card.popular { transform: none; }
    .pricing-card.popular:hover { transform: translateY(-4px); }
}


/* ── Data masking for free users ────────────────── */
.mask-sensitive {
    filter: blur(6px);
    user-select: none;
    pointer-events: none;
    position: relative;
}
.mask-sensitive::after {
    content: "🔒";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    filter: none;
    font-size: 0.9rem;
}
.mask-badge {
    filter: blur(4px);
    user-select: none;
}
/* Blur ALL cells in masked rows */
.mask-row td {
    filter: blur(5px);
    user-select: none;
    pointer-events: none;
}
/* Keep first 2 columns visible: always time + league */
.mask-row td:first-child,
.mask-row td:nth-child(2) {
    filter: none !important;
    user-select: text !important;
    pointer-events: auto !important;
}
/* ═══ Pending Result Rows — high-security mask (all cols, no exceptions) ═══ */
.mask-pending td {
    filter: blur(12px) !important;
    user-select: none !important;
    pointer-events: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    -webkit-touch-callout: none !important;
    position: relative;
}
/* Overlay lock icon on each pending cell */
.mask-pending td::after {
    content: "🔒";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    filter: none !important;
    font-size: 1rem;
    z-index: 1;
}
/* Divert print / screenshot attempts */
@media print {
    .mask-pending td {
        filter: blur(12px) !important;
    }
}
.free-user-notice {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    color: #000;
    padding: 8px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.free-user-notice i { font-size: 1.2rem; }
/* ── Free user data blur ── */
.blur-free-user {
    filter: blur(3px);
    user-select: none;
    position: relative;
}
.blur-free-user::after {
    content: "🔒 升级解锁清晰数据";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    filter: none !important;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    z-index: 10;
    pointer-events: none;
}

