/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: hsl(260, 80%, 55%);
    --primary-light: hsl(260, 80%, 70%);
    --primary-dark: hsl(260, 80%, 40%);
    --accent: hsl(45, 100%, 55%);
    --accent-glow: hsl(45, 100%, 65%);
    --bg: hsl(230, 25%, 8%);
    --bg-alt: hsl(230, 22%, 11%);
    --surface: hsl(230, 20%, 14%);
    --surface-hover: hsl(230, 20%, 18%);
    --border: hsl(230, 15%, 22%);
    --text: hsl(0, 0%, 95%);
    --text-muted: hsl(0, 0%, 60%);
    --success: hsl(145, 70%, 45%);
    --danger: hsl(0, 75%, 55%);
    --blue: hsl(210, 100%, 55%);
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Global Auction Page Background */
.auction-page {
    background:
        radial-gradient(ellipse at 50% 0%, hsla(260, 80%, 55%, 0.15), transparent 70%),
        radial-gradient(ellipse at 80% 50%, hsla(45, 100%, 55%, 0.05), transparent 70%),
        radial-gradient(ellipse at 20% 80%, hsla(260, 80%, 55%, 0.05), transparent 70%),
        var(--bg);
    background-attachment: fixed;
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(20px);
    background: rgba(15, 15, 30, 0.75);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

/* Specific: Absolute only on Auction page to allow scrolling out */
.auction-page .navbar {
    position: absolute;
}

.navbar.scrolled {
    background: rgba(15, 15, 30, 0.95);
}

.nav-brand {
    font-weight: 800;
    font-size: 1.25rem;
    background: linear-gradient(135deg, var(--accent), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 99px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
    background: var(--surface);
}

/* ===== AUTH COMPONENTS ===== */
.nav-auth {
    display: flex;
    align-items: center;
    margin-left: 16px;
}

.auth-login-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 99px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.auth-login-btn:hover {
    background: var(--surface-hover);
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px hsla(260, 80%, 55%, 0.15);
}

.auth-login-btn svg {
    flex-shrink: 0;
}

/* User menu (logged in state) */
.auth-user-menu {
    position: relative;
}

.auth-user-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px 4px 4px;
    border-radius: 99px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.auth-user-trigger:hover {
    background: var(--surface-hover);
    border-color: var(--primary);
}

.auth-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
    transition: border-color 0.25s ease;
}

.auth-user-trigger:hover .auth-avatar {
    border-color: var(--primary);
}

.auth-user-name {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Dropdown */
.auth-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 160px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 6px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 1001;
}

.auth-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.auth-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 14px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text);
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-dropdown-item:hover {
    background: var(--surface-hover);
    color: var(--danger);
}

/* ===== AUTH MODAL ===== */
.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.auth-modal.active {
    opacity: 1;
    visibility: visible;
}

.auth-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
}

.auth-modal-content {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 36px 32px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
    transform: scale(0.92) translateY(20px);
    transition: transform 0.3s ease;
    z-index: 1;
}

.auth-modal.active .auth-modal-content {
    transform: scale(1) translateY(0);
}

.auth-modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.6rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.auth-modal-close:hover {
    color: var(--text);
}

.auth-modal-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 4px;
}

.auth-modal-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 28px;
}

/* Google button in modal */
.auth-google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-alt);
    color: var(--text);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.auth-google-btn:hover {
    background: var(--surface-hover);
    border-color: var(--primary);
    transform: translateY(-1px);
}

.auth-google-btn svg {
    flex-shrink: 0;
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 20px 0;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* Email form */
.auth-email-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.auth-input-group label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-input-group input {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-alt);
    color: var(--text);
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.25s ease;
}

.auth-input-group input::placeholder {
    color: var(--text-muted);
}

.auth-input-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px hsla(260, 80%, 55%, 0.15);
}

/* Error */
.auth-error {
    background: hsla(0, 75%, 55%, 0.12);
    border: 1px solid hsla(0, 75%, 55%, 0.3);
    color: var(--danger);
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Submit button */
.auth-submit-btn {
    padding: 13px;
    border-radius: var(--radius-sm);
    border: none;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 20px hsla(260, 80%, 55%, 0.3);
}

.auth-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 28px hsla(260, 80%, 55%, 0.45);
}

.auth-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Toggle link */
.auth-toggle {
    text-align: center;
    margin-top: 20px;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.auth-toggle a {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 600;
}

.auth-toggle a:hover {
    text-decoration: underline;
}

/* ===== AUTH GATE OVERLAY ===== */
.auth-gate-overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
}

.auth-gate-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 48px 40px;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.auth-gate-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.auth-gate-card h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 8px;
}

.auth-gate-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 24px;
}

.auth-gate-btn {
    padding: 13px 28px;
    border-radius: var(--radius-sm);
    border: none;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 20px hsla(260, 80%, 55%, 0.3);
}

.auth-gate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px hsla(260, 80%, 55%, 0.45);
}

/* Base Hidden Mobile Nav (desktop) */
.mobile-nav {
    display: none;
}

.player-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 99px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
}

.player-status-badge.sold {
    background: hsla(145, 70%, 45%, 0.15);
    color: hsl(145, 70%, 55%);
    border: 1px solid hsla(145, 70%, 45%, 0.3);
}

.player-status-badge.unsold {
    background: hsla(0, 70%, 50%, 0.15);
    color: hsl(0, 70%, 60%);
    border: 1px solid hsla(0, 70%, 50%, 0.3);
}

.player-row.status-sold {
    border-left: 3px solid hsl(145, 70%, 55%);
}

.player-row.status-unsold {
    border-left: 3px solid hsl(0, 70%, 60%);
    opacity: 0.7;
}

/* ===== RESET STATUS BUTTON ===== */
.btn-reset-status {
    background: hsla(35, 90%, 50%, 0.15);
    color: hsl(35, 90%, 60%);
    border: 1px solid hsla(35, 90%, 50%, 0.3);
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-reset-status:hover {
    background: hsla(35, 90%, 50%, 0.25);
    transform: translateY(-1px);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    position: relative;
    overflow: hidden;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: hsla(260, 80%, 55%, 0.15);
    border: 1px solid hsla(260, 80%, 55%, 0.3);
    padding: 8px 20px;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary-light);
    margin-bottom: 28px;
    animation: fadeInUp 0.8s ease both;
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    animation: pulse 2s infinite;
}

.hero h1 {
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 12px;
    animation: fadeInUp 0.8s 0.15s ease both;
}

.hero h1 .gradient {
    background: linear-gradient(135deg, var(--accent), var(--primary-light), var(--accent));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
}

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--text-muted);
    max-width: 520px;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s 0.3s ease both;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeInUp 0.8s 0.45s ease both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 99px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 4px 24px hsla(260, 80%, 55%, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px hsla(260, 80%, 55%, 0.5);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--surface-hover);
    transform: translateY(-2px);
}

/* floating orbs decoration */
.floating-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: float 8s ease-in-out infinite;
}

.orb-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: -100px;
    background: radial-gradient(circle, hsla(260, 80%, 55%, 0.06), transparent 70%);
    animation-delay: 0s;
}

.orb-2 {
    width: 200px;
    height: 200px;
    bottom: 15%;
    right: -50px;
    background: radial-gradient(circle, hsla(45, 100%, 55%, 0.06), transparent 70%);
    animation-delay: -3s;
}

.orb-3 {
    width: 150px;
    height: 150px;
    top: 40%;
    right: 10%;
    background: radial-gradient(circle, hsla(260, 80%, 55%, 0.04), transparent 70%);
    animation-delay: -5s;
}

/* ===== SECTION COMMON ===== */
.section {
    padding: 0 24px 80px;
    max-width: 1280px;
    margin: 0 auto;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 12px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto 40px;
    font-size: 1rem;
}

/* ===== PAGE HEADER ===== */
.page-header {
    padding: 85px 24px 10px;
    text-align: center;
    position: relative;
    overflow: visible;
    background: transparent;
}

.auction-page .page-header {
    padding-top: 130px;
    /* Extra space for absolute navbar and search on Auction screen */
    margin-bottom: 0;
}

.page-header h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 950;
    line-height: 1;
    margin-bottom: 20px;
    animation: fadeInUp 0.6s ease both;
    position: relative;
    letter-spacing: -1.5px;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    color: #fff;
}

.page-header h1 .gradient {
    background: linear-gradient(135deg, var(--accent), #fff, var(--primary-light), #fff, var(--accent));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
    filter: drop-shadow(0 0 10px hsla(45, 100%, 55%, 0.3));
}

.page-header p {
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto;
    font-size: 1.05rem;
    animation: fadeInUp 0.6s 0.15s ease both;
    position: relative;
    display: none;
    /* Hide default subheadline on auction page as we use the badge */
}

/* ===== LIVE AUCTION BADGE ===== */
.live-auction-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(15, 23, 42, 0.4);
    padding: 10px 28px;
    border-radius: 99px;
    border: 1px solid hsla(0, 0%, 100%, 0.1);
    margin-top: 10px;
    animation: fadeInUp 0.6s 0.3s ease both;
    backdrop-filter: blur(12px);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 1px hsla(0, 0%, 100%, 0.05);
    transition: all 0.3s ease;
}

.live-auction-badge:hover {
    background: rgba(15, 23, 42, 0.6);
    border-color: hsla(0, 100%, 70%, 0.3);
    transform: translateY(-1px);
}

.live-auction-badge .dot {
    width: 10px;
    height: 10px;
    background: #ff4d4d;
    border-radius: 50%;
    box-shadow: 0 0 15px #ff4d4d, 0 0 30px rgba(255, 77, 77, 0.4);
    animation: pulse 2s infinite;
}

.animated-live {
    font-weight: 850;
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(90deg, #fff, var(--accent), #fff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* ===== SEARCH & FILTERS ===== */
.search-bar-wrap {
    max-width: 500px;
    margin: 0 auto 24px;
    position: relative;
}

.search-bar-wrap svg {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    width: 20px;
    height: 20px;
}

.search-bar {
    width: 100%;
    padding: 14px 18px 14px 50px;
    border-radius: 99px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.search-bar::placeholder {
    color: var(--text-muted);
}

.search-bar:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px hsla(260, 80%, 55%, 0.15);
}

.filter-chips {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.chip {
    padding: 8px 20px;
    border-radius: 99px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chip:hover {
    border-color: var(--primary);
    color: var(--text);
}

.chip.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* ===== PLAYERS LIST ===== */
#players {
    scroll-margin-top: 80px;
}

.players-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.player-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px 24px;
    transition: all 0.3s ease;
    animation: fadeInUp 0.4s ease both;
    gap: 16px;
    min-height: 80px;
}

.player-row:hover {
    border-color: var(--primary);
    background: var(--surface-hover);
    transform: translateX(6px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.player-row-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.player-serial {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-muted);
    min-width: 32px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-alt);
    border-radius: 50%;
    flex-shrink: 0;
}

.player-name-role {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1.5;
    min-width: 0;
}

.player-row .player-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-status-col {
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 80px;
}

.player-row-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--border);
    background: var(--bg-alt);
    flex-shrink: 0;
    transition: border-color 0.3s ease, transform 0.25s ease;
    cursor: pointer;
}

.player-row-avatar:hover {
    transform: scale(1.1);
    border-color: var(--accent);
}

.player-row:hover .player-row-avatar {
    border-color: var(--primary);
}

.player-row-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.role-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 99px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.role-badge.all-rounder {
    background: hsla(260, 80%, 55%, 0.15);
    color: var(--primary-light);
}

.role-badge.batsman {
    background: hsla(45, 100%, 55%, 0.15);
    color: var(--accent);
}

.role-badge.bowler {
    background: hsla(145, 70%, 45%, 0.15);
    color: var(--success);
}

.no-results {
    text-align: center;
    padding: 60px 0;
    color: var(--text-muted);
    font-size: 1.1rem;
    grid-column: 1 / -1;
}

/* ===== IMAGE POPUP MODAL ===== */
.image-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    cursor: pointer;
}

.image-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.image-popup-close {
    position: absolute;
    top: 24px;
    right: 32px;
    background: none;
    border: none;
    color: var(--text);
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.image-popup-close:hover {
    opacity: 1;
    transform: scale(1.15);
}

.image-popup-img {
    max-width: 85vw;
    max-height: 75vh;
    border-radius: var(--radius);
    object-fit: contain;
    box-shadow: 0 16px 64px rgba(0, 0, 0, 0.6);
    border: 3px solid var(--border);
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
    cursor: default;
}

.image-popup-overlay.active .image-popup-img {
    transform: scale(1);
    opacity: 1;
}

.image-popup-name {
    margin-top: 16px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s 0.15s ease, transform 0.3s 0.15s ease;
    cursor: default;
}

.image-popup-overlay.active .image-popup-name {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================

   PPT-CARD AUCTION SCREEN (Screenshot-matched layout)

   ============================================================ */

#auction {
    scroll-margin-top: 80px;
}

/* ===== AUCTION SEARCH BAR ===== */
.ppt-search-wrap {
    max-width: 650px;
    margin: 0 auto 30px;
    position: relative;
    z-index: 100;
    animation: fadeInUp 0.6s 0.1s ease both;
}

.ppt-search-input-group {
    display: flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid hsla(0, 0%, 100%, 0.1);
    border-radius: 99px;
    padding: 0 28px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(20px);
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 1px hsla(0, 0%, 100%, 0.1);
}

.ppt-search-input-group:focus-within {
    border-color: hsla(215, 100%, 70%, 0.5);
    box-shadow:
        0 0 0 4px hsla(215, 100%, 70%, 0.1),
        0 20px 60px rgba(0, 0, 0, 0.6),
        inset 0 1px 1px hsla(0, 0%, 100%, 0.2);
    background: rgba(15, 23, 42, 0.6);
    transform: translateY(-2px);
}

.ppt-search-icon {
    width: 22px;
    height: 22px;
    color: #94a3b8;
    margin-right: 16px;
    filter: drop-shadow(0 0 5px rgba(59, 130, 246, 0.3));
}

#pptSearchInput {
    flex: 1;
    background: transparent;
    border: none;
    padding: 14px 0;
    color: #f8fafc;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    outline: none;
}

#pptSearchInput::placeholder {
    color: #64748b;
}

/* Search Results Dropdown */
.ppt-search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    display: none;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
}


/* Special Role Actions in Auction Page */
.ppt-special-actions {
    margin-top: 24px;
    padding: 24px;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid hsla(260, 80%, 70%, 0.2);
    border-radius: 20px;
    animation: fadeInUp 0.5s 0.2s ease both;
    backdrop-filter: blur(10px);
}

.special-role-label {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--primary-light);
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.special-role-btns {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-owner {
    background: linear-gradient(135deg, #ffd700, #b8860b) !important;
    color: #000 !important;
}

.btn-captain {
    background: linear-gradient(135deg, #4285F4, #1a4da1) !important;
    color: #fff !important;
}

.btn-vc {
    background: linear-gradient(135deg, #00f2ff, #0084ff) !important;
    color: #000 !important;
}

.btn-owner:hover,
.btn-captain:hover,
.btn-vc:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.15);
}

.btn-owner:disabled,
.btn-captain:disabled,
.btn-vc:disabled {
    background: #1e293b !important;
    color: #64748b !important;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.5;
}

/* Special Role Badges */
.status-badge-owner,
.status-badge-captain,
.status-badge-vice-captain {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    white-space: nowrap;
    margin-left: 8px;
}

.status-badge-owner {
    background: hsla(45, 100%, 55%, 0.15);
    color: hsl(45, 100%, 55%);
    border: 1px solid hsla(45, 100%, 55%, 0.4);
    box-shadow: 0 0 15px hsla(45, 100%, 55%, 0.2);
}

.status-badge-captain {
    background: hsla(210, 100%, 55%, 0.15);
    color: hsl(210, 100%, 65%);
    border: 1px solid hsla(210, 100%, 55%, 0.4);
    box-shadow: 0 0 15px hsla(210, 100%, 55%, 0.1);
}

.status-badge-vice-captain {
    background: hsla(180, 100%, 45%, 0.15);
    color: hsl(180, 100%, 55%);
    border: 1px solid hsla(180, 100%, 45%, 0.4);
}

.ppt-search-results.active {
    display: flex;
}

.ppt-search-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ppt-search-item:last-child {
    border-bottom: none;
}

.ppt-search-item:hover {
    background: rgba(59, 130, 246, 0.1);
}

.ppt-search-id {
    font-weight: 800;
    color: #3b82f6;
    font-size: 0.85rem;
    min-width: 45px;
}

.ppt-search-name {
    flex: 1;
    font-weight: 600;
    color: #f1f5f9;
}

.ppt-search-role {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.ppt-search-no-results {
    padding: 20px;
    text-align: center;
    color: #94a3b8;
    font-style: italic;
}



.ppt-auction-container {
    max-width: 1300px;
    /* Increased from 1100px */
    margin: 0 auto;
    position: relative;
}



/* --- The main PPT card --- */

.ppt-card {
    display: flex;
    align-items: stretch;
    background: rgba(0, 12, 25, 0.7);
    /* Translucent backdrop */
    border: 1.5px solid rgba(255, 204, 0, 0.6);
    /* Vibrant Neon gold outline */
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 1200px;
    aspect-ratio: 16 / 9;
    margin: 0 auto;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow:
        0 40px 100px -20px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(255, 204, 0, 0.1);
    backdrop-filter: blur(10px);
    z-index: 5;
}



/* --- Left side: Player info panel --- */
.ppt-info {
    padding: 32px 40px 28px;
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    z-index: 2;
    flex: 1;
    min-width: 0;
    background: radial-gradient(circle at center, #0a244d 0%, #000c19 100%);
    overflow: hidden;
}



/* Broadcast Layer: Circuit Lines & Stadium Lights */
.ppt-info::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        /* Stadium Lights (Faint top glows) */
        radial-gradient(circle at 10% 0%, rgba(255, 255, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 0%, rgba(255, 255, 255, 0.08) 0%, transparent 40%),
        /* Circuit Lines (Subtle) */
        url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 10h10v10H10V10zm20 0h10v10H30V10zM10 30h10v10H10V30zm20 40h10v10H30V70zM50 10h10v10H50V10zm20 0h10v10H70V10zM50 30h10v10H50V30zM70 70h10v10H70V70z' fill='%233b82f6' fill-opacity='0.04' fill-rule='evenodd'%3E%3C/path%3E%3C/svg%3E"),
        /* High-Tech Grid nodes */
        radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.3) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.3) 0%, transparent 40%);
    opacity: 0.8;
    pointer-events: none;
    z-index: -1;
}








/* Serial badge */

.ppt-serial-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 16px;
    background: #0a192f;
    color: #3b82f6;
    font-weight: 800;
    font-size: 0.65rem;
    border-radius: 99px;
    border: 1.5px solid #1e3a8a;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    width: fit-content;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.ppt-name-block {
    margin-bottom: 24px;
}

.ppt-first-name {
    font-size: clamp(2.2rem, 3.8vw, 3.2rem);
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
    margin-bottom: 2px;
}

.ppt-last-name {
    font-size: clamp(4rem, 6.5vw, 6rem);
    font-weight: 900;
    line-height: 0.85;
    text-transform: uppercase;
    letter-spacing: -1px;
    color: #fff;
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.8);
    margin-top: 0;
}

/* Role & Base Price row - Glowing Brackets */

.ppt-meta-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    width: 100%;
}

.ppt-meta-item {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 20px;
    background: rgba(0, 8, 20, 0.45);
    /* Darker translucent base */
    border: 1px solid #00f2ff;
    /* Neon Cyan Outline */
    border-radius: 4px;
    overflow: visible;
    backdrop-filter: blur(8px);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.25);
    /* Stronger neon glow */
}

/* Glowing Nodes at the corners */
.ppt-meta-item::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 4px;
    height: 4px;
    background: #00f2ff;
    border-radius: 50%;
    box-shadow: 0 0 10px #00f2ff;
    z-index: 10;
}

/* Glowing cyan brackets (horizontal lines) */
.ppt-meta-item::before,
.ppt-meta-item::after {
    content: '';
    position: absolute;
    left: 10px;
    right: 10px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #00f2ff, transparent);
    box-shadow: 0 0 20px #00f2ff;
    z-index: 5;
}

.ppt-meta-item::before {
    top: -1.5px;
}

.ppt-meta-item::after {
    bottom: -1.5px;
}

.ppt-meta-item-wide {
    flex: none;
    width: 100%;
}

.ppt-meta-label {
    font-size: 0.6rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.ppt-meta-value {
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Current bid sub-card */
.ppt-bid-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 8, 20, 0.6);
    /* Translucent dark navy */
    border: 1.5px solid #00f2ff;
    /* Neon Cyan Outline */
    border-left: 8px solid #00f2ff;
    /* Solid Neon Cyan Accent */
    border-radius: 12px;
    padding: 24px 32px 24px 24px;
    margin-top: auto;
    width: 100%;
    backdrop-filter: blur(12px);
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.8),
        0 0 15px rgba(0, 242, 255, 0.2);
    overflow: hidden;
}

/* Curved cyan highlight strips at top and bottom */
.ppt-bid-card::before,
.ppt-bid-card::after {
    content: '';
    position: absolute;
    left: 10%;
    right: 10%;
    height: 6px;
    background: radial-gradient(ellipse at center, rgba(0, 242, 255, 0.8) 0%, rgba(0, 242, 255, 0) 70%);
    filter: blur(1px);
    z-index: 10;
}

.ppt-bid-card::before {
    top: 0;
    border-radius: 0 0 100% 100%;
}

.ppt-bid-card::after {
    bottom: 0;
    border-radius: 100% 100% 0 0;
}

.ppt-bid-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ppt-bid-right-info {
    display: flex;
    align-items: center;
    gap: 16px;
    height: 100%;
    padding-left: 32px;
    border-left: 1.5px solid rgba(255, 255, 255, 0.15);
    min-height: 50px;
}

.ppt-bid-card-label {
    font-size: 0.65rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.ppt-bid-card-amount {
    font-size: clamp(2.5rem, 4.5vw, 3.8rem);
    font-weight: 950;
    color: #00f2ff;
    /* Vibrant Neon Cyan */
    line-height: 1;
    text-shadow: 0 0 25px rgba(0, 242, 255, 0.3);
}

.ppt-bid-card-team {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: 0.5px;
}



.ppt-image {
    position: relative;
    height: 100%;
    flex: 0 0 auto;
    overflow: visible;
}

.ppt-image img {
    height: 100%;
    width: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.5s ease;
    z-index: 0;
}

.ppt-image:hover img {
    transform: scale(1.03);
}






/* Next min bid badge — top right */

.ppt-next-bid-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 10px 18px;
    background: hsla(220, 30%, 10%, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid hsl(220, 20%, 25%);
    border-radius: 10px;
}

.ppt-next-bid-label {
    font-size: 0.55rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.ppt-next-bid-value {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--text);
}





/* --- Navigation arrows --- */
.ppt-auction-container .auction-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    z-index: 10;
}

.ppt-auction-container .auction-nav:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.ppt-auction-container .auction-nav.prev {
    left: -72px;
}

.ppt-auction-container .auction-nav.next {
    right: -72px;
}

.ppt-auction-container .auction-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* --- Team buttons bar --- */
.ppt-teams-bar {
    margin-top: 28px;
    margin-bottom: 20px;
}

.ppt-teams-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
}

.ppt-team-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 14px 6px;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.72rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.ppt-team-btn:hover {
    background: var(--surface-hover);
    border-color: var(--blue);
    color: var(--text);
    transform: translateY(-3px);
    box-shadow: 0 4px 20px hsla(210, 100%, 55%, 0.2);
}

.ppt-team-btn.leading {
    background: hsla(210, 100%, 55%, 0.12);
    border-color: var(--blue);
    color: var(--text);
    box-shadow: 0 0 24px hsla(210, 100%, 55%, 0.2);
}

.ppt-team-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.ppt-team-emoji {
    font-size: 1.5rem;
}

.ppt-team-name {
    white-space: nowrap;
}

/* --- Action buttons --- */
.ppt-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

/* Overlays */
.sold-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    background: hsla(145, 50%, 15%, 0.88);
    backdrop-filter: blur(6px);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
}

.sold-overlay.visible {
    display: flex;
}

.sold-stamp {
    font-size: 4rem;
    font-weight: 900;
    color: var(--success);
    border: 6px solid var(--success);
    padding: 12px 40px;
    border-radius: 16px;
    transform: rotate(-12deg);
    animation: stampIn 0.4s ease both;
    text-transform: uppercase;
}

.sold-stamp.stamp-owner {
    color: #ffd700;
    border-color: #ffd700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.sold-stamp.stamp-captain {
    color: #3b82f6;
    border-color: #3b82f6;
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.sold-stamp.stamp-vice-captain {
    color: #00f2ff;
    border-color: #00f2ff;
    text-shadow: 0 0 20px rgba(0, 242, 255, 0.4);
}


.sold-info {
    margin-top: 16px;
    font-size: 1.1rem;
    color: var(--text);
    font-weight: 600;
    transform: rotate(-12deg);
}

.unsold-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    background: hsla(0, 50%, 15%, 0.88);
    backdrop-filter: blur(6px);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
}

.unsold-overlay.visible {
    display: flex;
}

.unsold-stamp {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--danger);
    border: 6px solid var(--danger);
    padding: 12px 40px;
    border-radius: 16px;
    transform: rotate(-12deg);
    animation: stampIn 0.4s ease both;
}

/* Confetti */
.confetti-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    top: -10px;
    opacity: 1;
    animation: confettiFall linear forwards;
}

/* Stats bar */
.auction-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 800;
}

.stat-value.sold-count {
    color: var(--success);
}

.stat-value.unsold-count {
    color: var(--danger);
}

.stat-value.remaining-count {
    color: var(--primary-light);
}

.stat-value.total-amount {
    color: var(--accent);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Button styles */
.btn-sold {
    background: linear-gradient(135deg, var(--success), hsl(145, 70%, 35%));
    color: #fff;
    padding: 14px 40px;
    box-shadow: 0 4px 24px hsla(145, 70%, 45%, 0.3);
}

.btn-sold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px hsla(145, 70%, 45%, 0.45);
}

.btn-sold:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-unsold {
    background: linear-gradient(135deg, var(--danger), hsl(0, 75%, 40%));
    color: #fff;
    padding: 14px 32px;
    box-shadow: 0 4px 24px hsla(0, 75%, 55%, 0.25);
}

.btn-unsold:hover {
    transform: translateY(-2px);
}

.btn-unsold:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-reset-bid {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    padding: 14px 28px;
}

/* ===== TEAMS PAGE ===== */
.team-tabs-wrap {
    overflow-x: auto;
    margin-bottom: 8px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.team-tabs-wrap::-webkit-scrollbar {
    display: none;
}

.team-tabs {
    display: flex;
    gap: 12px;
    justify-content: center;
    min-width: max-content;
    padding: 12px 0;
}

.team-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

.team-tab:hover {
    border-color: var(--team-color, var(--primary));
    color: var(--text);
    background: var(--surface-hover);
}

.team-tab.active {
    border-color: var(--team-color, var(--primary));
    background: var(--surface-hover);
    color: var(--text);
    box-shadow: 0 0 20px color-mix(in srgb, var(--team-color, var(--primary)) 25%, transparent);
}

.team-tab.active::before {
    opacity: 0.1;
}

.team-tab-emoji {
    font-size: 1.6rem;
}

.team-tab-name {
    text-align: center;
    line-height: 1.2;
}

/* Active Team Header */
.active-team-header {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: 900;
    text-align: center;
    margin: 4px 0 24px;
    letter-spacing: -1px;
    line-height: 1.1;
    text-transform: uppercase;
    animation: fadeInUp 0.6s ease both;
}

/* Stats Cards */
.team-stats-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 36px;
}

.team-stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
}

.team-stat-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.team-stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.team-stat-value.accent {
    color: var(--accent);
}

.team-stat-value.balance {
    color: var(--success);
}

.squad-count {
    color: var(--text);
}

.squad-total {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 1.2rem;
}

.team-stat-bar {
    height: 6px;
    border-radius: 99px;
    background: var(--bg-alt);
    overflow: hidden;
}

.team-stat-bar-fill {
    height: 100%;
    border-radius: 99px;
    transition: width 0.5s ease;
    min-width: 0;
}

.team-stat-bar-fill.spend-bar {
    background: linear-gradient(90deg, var(--accent), var(--accent-glow));
}

.team-stat-bar-fill.balance-bar {
    background: linear-gradient(90deg, var(--success), hsl(145, 70%, 55%));
}

.team-stat-bar-fill.squad-bar {
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

/* Sold Players Header */
.team-sold-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.team-sold-title {
    font-size: 1.3rem;
    font-weight: 700;
}

.team-sold-count {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-light);
    background: hsla(260, 80%, 55%, 0.12);
    padding: 4px 14px;
    border-radius: 99px;
    letter-spacing: 0.5px;
}

/* Sold Players List */
.team-players-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.team-player-row {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    transition: all 0.3s ease;
    animation: fadeInUp 0.4s ease both;
}

.team-player-row:hover {
    border-color: var(--primary);
    background: var(--surface-hover);
    transform: translateX(4px);
    box-shadow: 0 4px 20px hsla(260, 80%, 55%, 0.12);
}

.team-player-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.team-player-avatar-wrap img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
    background: var(--bg-alt);
}

.team-player-serial {
    position: absolute;
    bottom: -4px;
    left: -4px;
    background: var(--primary);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 6px;
    line-height: 1.2;
}

.team-player-info {
    flex: 1;
    min-width: 0;
}

.team-player-name {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 4px;
}

.team-player-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.team-player-bid {
    text-align: right;
    flex-shrink: 0;
}

.team-bid-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.team-bid-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--success);
}

.team-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    font-size: 1.05rem;
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
}

.team-empty-state a {
    color: var(--primary-light);
    text-decoration: underline;
}

/* ===== FOOTER ===== */
.footer {
    text-align: center;
    padding: 40px 24px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    to {
        background-position: 200% center;
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.3);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    33% {
        transform: translate(20px, -30px);
    }

    66% {
        transform: translate(-15px, 15px);
    }
}

@keyframes stampIn {
    from {
        transform: rotate(-12deg) scale(2);
        opacity: 0;
    }

    to {
        transform: rotate(-12deg) scale(1);
        opacity: 1;
    }
}

@keyframes confettiFall {
    0% {
        top: -10px;
        opacity: 1;
    }

    100% {
        top: 110vh;
        opacity: 0;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bidPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-6px);
    }

    40% {
        transform: translateX(6px);
    }

    60% {
        transform: translateX(-4px);
    }

    80% {
        transform: translateX(4px);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .ppt-auction-container .auction-nav.prev {
        left: -8px;
    }

    .ppt-auction-container .auction-nav.next {
        right: -8px;
    }

    .ppt-card {
        flex-direction: row;
        height: auto;
        aspect-ratio: 16 / 9;
        max-width: 100%;
        border-radius: 16px;
    }

    .ppt-info {
        padding: 12px 14px;
        order: 1;
        flex: 1.6;
    }

    .ppt-image {
        height: auto;
        width: 100%;
        order: 2;
        flex: 1;
        background: radial-gradient(circle at bottom, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
    }

    .ppt-image img {
        height: 100%;
        width: auto;
        margin: 0 auto;
    }

    .ppt-image::before {
        display: none;
    }

    .ppt-first-name,
    .ppt-last-name {
        font-size: 1.8rem;
    }

    .ppt-teams-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .ppt-next-bid-badge {
        top: 12px;
        right: 12px;
    }

    .ppt-meta-row {
        margin-bottom: 6px;
        gap: 8px;
    }

    .ppt-meta-item {
        padding: 6px 10px;
        gap: 2px;
    }

    .ppt-name-block {
        margin-bottom: 8px;
    }

    .ppt-serial-badge {
        margin-bottom: 6px;
    }

    .ppt-bid-card {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        padding: 10px 14px;
        border-left: 4px solid #00f2ff;
    }

    .ppt-bid-right-info {
        padding-left: 12px;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        border-top: none;
        padding-top: 0;
        width: auto;
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .auth-login-btn span {
        display: none;
    }

    .auth-login-btn {
        padding: 8px 10px;
    }

    .auth-user-name {
        display: none;
    }

    .auth-user-trigger {
        padding: 4px;
    }

    .navbar {
        padding: 12px 16px;
    }

    .nav-brand {
        font-size: 1rem;
    }

    .nav-links a {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    /* --- PPT Card Mobile Overhaul --- */
    .ppt-card {
        border-radius: 12px;
        border-width: 1px;
    }

    .ppt-info {
        padding: 8px 10px;
        gap: 0;
        justify-content: flex-start;
    }

    .ppt-serial-badge {
        display: none;
    }

    .ppt-name-block {
        display: flex;
        flex-direction: row;
        align-items: baseline;
        gap: 4px;
        margin-bottom: 10px;
    }

    .ppt-first-name {
        font-size: clamp(1rem, 3.5vw, 1.4rem);
        line-height: 1.1;
        letter-spacing: 0.5px;
    }

    .ppt-last-name {
        font-size: clamp(1rem, 3.5vw, 1.4rem);
        line-height: 1.1;
        letter-spacing: 0;
    }

    .ppt-meta-row {
        margin-bottom: 2px;
        gap: 5px;
    }

    .ppt-meta-item {
        padding: 4px 7px;
        gap: 1px;
        border-radius: 3px;
        box-shadow: 0 0 6px rgba(0, 242, 255, 0.15);
    }

    .ppt-meta-item::before,
    .ppt-meta-item::after {
        height: 1.5px;
        left: 4px;
        right: 4px;
        box-shadow: 0 0 8px #00f2ff;
    }

    .ppt-meta-label {
        font-size: clamp(0.3rem, 1.2vw, 0.45rem);
        letter-spacing: 0.8px;
    }

    .ppt-meta-value {
        font-size: clamp(0.5rem, 2vw, 0.7rem);
        gap: 4px;
        letter-spacing: 0.3px;
    }

    .ppt-bid-card {
        padding: 6px 8px;
        gap: 6px;
        border-left-width: 3px;
        border-radius: 6px;
        border-width: 1px;
        border-left: 3px solid #00f2ff;
    }

    .ppt-bid-card::before,
    .ppt-bid-card::after {
        height: 3px;
        left: 15%;
        right: 15%;
    }

    .ppt-bid-left {
        gap: 1px;
    }

    .ppt-bid-card-label {
        font-size: clamp(0.3rem, 1.2vw, 0.45rem);
        letter-spacing: 1px;
    }

    .ppt-bid-card-amount {
        font-size: clamp(0.9rem, 3.5vw, 1.3rem);
        text-shadow: 0 0 12px rgba(0, 242, 255, 0.25);
    }

    .ppt-bid-right-info {
        padding-left: 6px;
        gap: 4px;
        min-height: 0;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        flex-direction: column;
        align-items: flex-start;
    }

    .ppt-bid-card-team {
        font-size: clamp(0.5rem, 1.8vw, 0.7rem);
        gap: 4px;
    }

    .ppt-metadata {
        margin-bottom: 2px;
        gap: 2px;
    }

    /* --- Sold/Unsold Overlay Mobile --- */
    .sold-overlay,
    .unsold-overlay {
        border-radius: 12px;
    }

    .sold-stamp {
        font-size: clamp(1.4rem, 5vw, 2rem);
        border-width: 3px;
        padding: 6px 20px;
        border-radius: 10px;
    }

    .unsold-stamp {
        font-size: clamp(1.4rem, 5vw, 2rem);
        border-width: 3px;
        padding: 6px 20px;
        border-radius: 10px;
    }

    .sold-info {
        font-size: clamp(0.6rem, 2.2vw, 0.85rem);
        margin-top: 8px;
    }

    .ppt-auction-container .auction-nav {
        width: 32px;
        height: 32px;
    }

    .player-row {
        flex-direction: row;
        /* Maintain columns */
        align-items: center;
        padding: 12px 14px;
        gap: 12px;
        min-height: 90px;
        /* Increased height */
    }

    .player-name-role {
        flex: 1.5;
        gap: 2px;
    }

    .player-row .player-name {
        font-size: 0.95rem;
        white-space: normal;
    }

    .player-status-col {
        flex: 1;
        min-width: 60px;
    }

    .player-status-badge {
        padding: 4px 10px;
        font-size: 0.65rem;
        width: auto;
    }

    .player-row-avatar {
        width: 48px;
        height: 48px;
        align-self: center;
        margin-top: 0;
    }

    .role-badge {
        padding: 2px 8px;
        font-size: 0.65rem;
        width: fit-content;
    }

    .player-serial {
        width: 26px;
        height: 26px;
        min-width: 26px;
        font-size: 0.75rem;
    }

    .page-header {
        padding: 100px 24px 30px;
    }

    .nav-links {
        display: none;
    }

    body {
        padding-bottom: 70px;
        /* Space for bottom nav */
    }

    /* Mobile Bottom Nav */
    .mobile-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 70px;
        background: rgba(20, 20, 35, 0.95);
        backdrop-filter: blur(15px);
        border-top: 1px solid var(--border);
        z-index: 10000;
        justify-content: space-around;
        align-items: center;
        padding: 0 10px;
    }

    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        color: var(--text-muted);
        text-decoration: none;
        font-family: 'Outfit', sans-serif;
        font-size: 0.7rem;
        font-weight: 500;
        transition: all 0.3s ease;
        flex: 1;
    }

    .mobile-nav-item i {
        font-size: 1.4rem;
        transition: transform 0.3s ease;
    }

    .mobile-nav-item.active {
        color: var(--primary-light);
    }

    .mobile-nav-item.active i {
        transform: translateY(-2px);
    }

    .mobile-nav-item:active i {
        transform: scale(0.9);
    }


    /* Teams page responsive */
    .team-tabs-wrap {
        margin: 0 -24px 32px;
        padding: 0 24px;
    }

    .team-tabs {
        justify-content: flex-start;
        gap: 12px;
        padding: 12px 0 20px;
    }

    .team-tab {
        padding: 12px 14px;
        min-width: 90px;
        gap: 6px;
    }

    .team-tab-emoji {
        font-size: 1.4rem;
    }

    .team-tab-name {
        font-size: 0.75rem;
    }

    .team-stats-cards {
        gap: 8px;
        grid-template-columns: repeat(3, 1fr);
    }

    .team-stat-card {
        padding: 12px 10px;
    }

    .team-stat-label {
        font-size: 0.6rem;
        letter-spacing: 0.5px;
        margin-bottom: 4px;
    }

    .team-stat-value {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }

    .squad-total {
        font-size: 0.8rem;
    }

    .team-stat-value {
        font-size: 1.4rem;
    }

    .team-player-row {
        padding: 12px 14px;
        gap: 12px;
    }

    .team-player-avatar-wrap img {
        width: 44px;
        height: 44px;
    }

    .team-player-name {
        font-size: 0.9rem;
    }

    .team-bid-value {
        font-size: 0.95rem;
    }

    .ppt-teams-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .ppt-team-btn {
        padding: 10px 4px;
    }

    .ppt-team-emoji {
        font-size: 1.2rem;
    }

    .ppt-team-emoji img {
        width: 32px !important;
        height: 32px !important;
    }

    .ppt-team-name {
        font-size: 0.65rem;
    }

    .auction-stats {
        gap: 16px 24px;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }

    .stat-value {
        font-size: 1.4rem;
    }
}