/* ===== 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;
}

/* Auction Page Background — Solid Color */
.auction-page {
    background: #080d1a;
    min-height: 100vh;
}

/* ===== 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;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-login-btn:hover {
    background: var(--surface-hover);
    color: var(--text);
    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;
    object-position: center 25%;
}

.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.88);
    backdrop-filter: blur(14px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    cursor: pointer;
    padding: 20px;
}

.image-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.image-popup-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 85vw;
    max-height: 75vh;
    min-width: 140px;
    min-height: 140px;
}

.image-popup-spinner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.2s ease;
}

.image-popup-spinner .spinner-circle {
    width: 44px;
    height: 44px;
    border: 3px solid rgba(255, 255, 255, 0.15);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: popupSpin 0.7s linear infinite;
}

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

.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.92);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
    cursor: default;
    background: rgba(15, 23, 42, 0.6);
}

.image-popup-overlay.active .image-popup-img.loaded {
    transform: scale(1);
    opacity: 1;
}

.image-popup-name {
    margin-top: 18px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s 0.1s ease, transform 0.3s 0.1s ease;
    cursor: default;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.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, #f59e0b 0%, #d97706 50%, #b45309 100%) !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    letter-spacing: 1px !important;
    border: 1px solid rgba(251, 191, 36, 0.4) !important;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3) !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;
    margin: 0 auto;
    position: relative;
}

/* Navigation arrows */
.auction-nav {
    position: absolute;
    top: clamp(220px, 28vw, 345px);
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(6, 18, 40, 0.92);
    border: 1.5px solid rgba(56, 189, 248, 0.4);
    color: #ffffff;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    backdrop-filter: blur(12px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.65), 0 0 16px rgba(56, 189, 248, 0.25);
}

.auction-nav:hover:not(:disabled) {
    background: rgba(14, 165, 233, 0.3);
    border-color: #00f2ff;
    color: #00f2ff;
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 8px 25px rgba(0, 242, 255, 0.5);
}

.auction-nav:disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

.auction-nav.prev {
    left: -24px;
}

.auction-nav.next {
    right: -24px;
}



/* --- The main PPT card (Stadium Broadcast Theme) --- */

/* --- The main PPT card (Stadium Broadcast Theme) --- */

.ppt-card {
    display: flex;
    align-items: stretch;
    background: 
        /* Top stadium spotlight flares */
        radial-gradient(circle at 12% 15%, rgba(0, 180, 216, 0.28) 0%, transparent 45%),
        radial-gradient(circle at 88% 15%, rgba(0, 180, 216, 0.28) 0%, transparent 45%),
        /* High-voltage royal cobalt blue gradient matching reference */
        linear-gradient(135deg, #031438 0%, #062054 25%, #031238 50%, #01081a 100%);
    border: 2px solid #00b4d8;
    border-radius: 22px;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 1220px;
    aspect-ratio: 16 / 9;
    margin: 0 auto;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 
        0 30px 90px -10px rgba(0, 0, 0, 0.95),
        0 0 45px rgba(0, 180, 216, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        inset 0 0 35px rgba(0, 180, 216, 0.12);
    backdrop-filter: blur(20px);
    z-index: 5;
}

/* Stadium Floodlight Towers, Diagonal Speed Rays & Field Turf */
.ppt-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        /* Dynamic diagonal light streaks matching reference */
        repeating-linear-gradient(135deg, 
            transparent, 
            transparent 38px, 
            rgba(0, 180, 216, 0.04) 38px, 
            rgba(0, 180, 216, 0.04) 76px
        ),
        /* Floodlights */
        radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.2) 0%, rgba(0, 180, 216, 0.18) 20%, transparent 48%),
        radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.2) 0%, rgba(0, 180, 216, 0.18) 20%, transparent 48%),
        /* Bottom gold/turf glow */
        radial-gradient(circle at 50% 100%, rgba(234, 179, 8, 0.12) 0%, transparent 40%);
    pointer-events: none;
    z-index: 1;
}

/* Bottom Gold & Electric Cyan Glowing Rail */
.ppt-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(245, 158, 11, 0.7) 15%, 
        #00f2ff 50%, 
        rgba(245, 158, 11, 0.7) 85%, 
        transparent 100%
    );
    box-shadow: 0 0 12px rgba(0, 242, 255, 0.6);
    pointer-events: none;
    z-index: 3;
}

/* --- Left side: Player info panel --- */
.ppt-info {
    padding: 34px 38px 30px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 2;
    flex: 1.15;
    min-width: 0;
    border-right: 1px solid rgba(56, 189, 248, 0.16);
}

/* Header Group: Serial + Names */
.ppt-header-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Serial badge - Championship Gold Angled Tag */
.ppt-serial-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 22px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
    border: 1.5px solid #fef08a;
    border-radius: 6px;
    transform: skewX(-8deg);
    color: #0b1120;
    font-size: 0.92rem;
    font-weight: 950;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    width: fit-content;
    box-shadow: 0 4px 18px rgba(245, 158, 11, 0.5);
}

/* Player Name - Commanding Broadcast Typography */
.ppt-name-block {
    margin-bottom: 0;
}

.ppt-first-name {
    font-size: clamp(1.6rem, 2.8vw, 2.4rem);
    font-weight: 800;
    line-height: 1.1;
    color: #e2e8f0;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
}

.ppt-last-name {
    font-size: clamp(3.0rem, 5.2vw, 4.8rem);
    font-weight: 950;
    line-height: 0.95;
    background: linear-gradient(180deg, #ffffff 5%, #fef08a 30%, #f59e0b 68%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.95));
}

/* Meta Container: tightly groups Role/Base Price, and Address */
.ppt-meta-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    margin: 8px 0;
}

/* --- Box 1 & Box 2: Chamfered Neon Cyan Outer Glowing Wrap --- */
.ppt-meta-bar-wrap {
    filter: drop-shadow(0 0 10px rgba(0, 210, 255, 0.45));
    width: 100%;
    transition: transform 0.25s ease, filter 0.25s ease;
}

.ppt-meta-bar-wrap:hover {
    transform: translateY(-1px);
    filter: drop-shadow(0 0 14px rgba(0, 242, 255, 0.65));
}

/* 2px Continuous Electric Cyan Chamfered Border */
.ppt-meta-bar {
    position: relative;
    padding: 2px;
    background: linear-gradient(135deg, #00f2ff 0%, #0077ff 60%, #00f2ff 100%);
    clip-path: polygon(
        22px 0%, 
        calc(100% - 10px) 0%, 
        100% 10px, 
        100% calc(100% - 10px), 
        calc(100% - 10px) 100%, 
        10px 100%, 
        0% calc(100% - 10px), 
        0% 22px
    );
    transition: all 0.25s ease;
}

.ppt-meta-bar-inner {
    background: linear-gradient(135deg, rgba(3, 16, 46, 0.94) 0%, rgba(1, 10, 30, 0.98) 100%);
    clip-path: polygon(
        21px 0%, 
        calc(100% - 9px) 0%, 
        100% 9px, 
        100% calc(100% - 9px), 
        calc(100% - 9px) 100%, 
        9px 100%, 
        0% calc(100% - 9px), 
        0% 21px
    );
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    backdrop-filter: blur(14px);
    box-sizing: border-box;
}

.ppt-meta-section {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
}

.ppt-meta-section-right {
    justify-content: flex-end;
}

.ppt-meta-icon {
    font-size: 1.7rem;
    color: #fbbf24;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
}

.ppt-meta-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.ppt-meta-label {
    font-size: 0.74rem;
    font-weight: 900;
    color: #38bdf8;
    letter-spacing: 2.2px;
    text-transform: uppercase;
}

.ppt-meta-value {
    font-size: clamp(1.2rem, 1.8vw, 1.45rem);
    font-weight: 850;
    color: #ffffff;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ppt-base-price {
    color: #fbbf24 !important;
    font-size: clamp(1.35rem, 2vw, 1.65rem) !important;
    font-weight: 950 !important;
    letter-spacing: 0.5px;
    text-shadow: 0 0 16px rgba(251, 191, 36, 0.45);
}

.ppt-meta-divider {
    width: 1.5px;
    height: 38px;
    background: rgba(56, 189, 248, 0.3);
    flex-shrink: 0;
}

/* Box 3: Championship Console Bid Card with Symmetrical 4-Corner Chamfers */
.ppt-bid-card-wrap {
    position: relative;
    margin-top: 6px;
    width: 100%;
    filter: drop-shadow(0 0 16px rgba(0, 210, 255, 0.45)) drop-shadow(0 14px 34px rgba(0, 0, 0, 0.85));
}

/* Angled side wing brackets matching the reference broadcast console */
.ppt-bid-card-wrap::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -10px;
    transform: translateY(-50%);
    width: 8px;
    height: 32px;
    background: linear-gradient(180deg, #f59e0b 0%, #00f2ff 100%);
    clip-path: polygon(100% 0, 0 50%, 100% 100%);
    filter: drop-shadow(0 0 6px #00f2ff);
    pointer-events: none;
    z-index: 5;
}

.ppt-bid-card-wrap::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -10px;
    transform: translateY(-50%);
    width: 8px;
    height: 32px;
    background: linear-gradient(180deg, #f59e0b 0%, #00f2ff 100%);
    clip-path: polygon(0 0, 100% 50%, 0 100%);
    filter: drop-shadow(0 0 6px #00f2ff);
    pointer-events: none;
    z-index: 5;
}

.ppt-bid-card-outer {
    position: relative;
    padding: 2.5px;
    background: linear-gradient(135deg, #00f2ff 0%, #0088ff 50%, #00f2ff 100%);
    clip-path: polygon(
        24px 0%, 
        calc(100% - 24px) 0%, 
        100% 24px, 
        100% calc(100% - 24px), 
        calc(100% - 24px) 100%, 
        24px 100%, 
        0% calc(100% - 24px), 
        0% 24px
    );
    transition: all 0.25s ease;
}

.ppt-bid-card-inner {
    background: linear-gradient(135deg, rgba(3, 18, 52, 0.96) 0%, rgba(1, 10, 32, 0.99) 100%);
    clip-path: polygon(
        22.5px 0%, 
        calc(100% - 22.5px) 0%, 
        100% 22.5px, 
        100% calc(100% - 22.5px), 
        calc(100% - 22.5px) 100%, 
        22.5px 100%, 
        0% calc(100% - 22.5px), 
        0% 22.5px
    );
    padding: 16px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(16px);
    box-sizing: border-box;
}

/* Horizontal Laser Flare across top border */
.ppt-bid-flare {
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #00f2ff 25%, #ffffff 50%, #00f2ff 75%, transparent 100%);
    box-shadow: 0 0 16px #00f2ff, 0 0 32px #00a8ff;
    pointer-events: none;
    z-index: 10;
}

.ppt-bid-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ppt-bid-gavel-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.8));
    flex-shrink: 0;
}

.ppt-bid-amount-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ppt-bid-card-label {
    font-size: 0.85rem;
    font-weight: 900;
    color: #00d2ff;
    letter-spacing: 2.2px;
    text-transform: uppercase;
}

.ppt-bid-card-amount {
    font-size: clamp(3.2rem, 5.2vw, 4.4rem);
    font-weight: 950;
    line-height: 1;
    letter-spacing: -0.5px;
    background: linear-gradient(180deg, #ffffff 0%, #fef08a 25%, #f59e0b 65%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 3px 12px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 22px rgba(245, 158, 11, 0.45));
}

.ppt-bid-divider {
    width: 1.5px;
    height: 54px;
    background: rgba(56, 189, 248, 0.32);
    margin: 0 8px;
    flex-shrink: 0;
}

.ppt-bid-right-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    min-width: 170px;
}

.ppt-bid-team-header {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ppt-bid-card-team {
    font-size: 1.25rem;
    font-weight: 850;
    color: #94a3b8;
    background: rgba(2, 10, 26, 0.88);
    border: 1.5px solid rgba(56, 189, 248, 0.35);
    border-radius: 8px;
    padding: 8px 24px;
    min-height: 44px;
    min-width: 130px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.25s ease;
}

.ppt-bid-card-team.has-team {
    color: #ffffff;
    font-size: 1.3rem;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.28) 0%, rgba(10, 24, 52, 0.95) 100%);
    border: 2px solid #fbbf24;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
}

.ppt-bid-card-team img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #fbbf24;
    object-fit: contain;
}

/* --- Right side: Player image in Golden Championship Frame --- */
.ppt-image {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 28px 24px 14px;
    background: transparent;
    z-index: 2;
}

.ppt-image-frame {
    position: relative;
    padding: 3.5px;
    background: linear-gradient(135deg, #fef08a 0%, #f59e0b 50%, #b45309 100%);
    clip-path: polygon(
        22px 0%, 
        calc(100% - 22px) 0%, 
        100% 22px, 
        100% calc(100% - 22px), 
        calc(100% - 22px) 100%, 
        22px 100%, 
        0% calc(100% - 22px), 
        0% 22px
    );
    filter: drop-shadow(0 0 25px rgba(234, 179, 8, 0.4)) drop-shadow(0 15px 40px rgba(0, 0, 0, 0.9));
    width: 100%;
    height: 100%;
}

.ppt-image-frame::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    width: 18px;
    height: 18px;
    background: radial-gradient(circle, #ffffff 0%, #fef08a 40%, transparent 70%);
    filter: drop-shadow(0 0 8px #fef08a);
    pointer-events: none;
    z-index: 10;
}

.ppt-image-frame::after {
    content: '';
    position: absolute;
    top: 6px;
    right: 6px;
    width: 18px;
    height: 18px;
    background: radial-gradient(circle, #ffffff 0%, #fef08a 40%, transparent 70%);
    filter: drop-shadow(0 0 8px #fef08a);
    pointer-events: none;
    z-index: 10;
}

.ppt-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    display: block;
    clip-path: polygon(
        20px 0%, 
        calc(100% - 20px) 0%, 
        100% 20px, 
        100% calc(100% - 20px), 
        calc(100% - 20px) 100%, 
        20px 100%, 
        0% calc(100% - 20px), 
        0% 20px
    );
    transition: transform 0.4s ease;
}

.ppt-image::after {
    display: none;
}

/* --- Admin Controls Wrapper --- */
.auction-admin-controls {
    max-width: 1220px;
    margin: 28px auto 0;
    width: 100%;
}

/* --- Team Buttons Bar & Grid --- */
.ppt-teams-bar {
    max-width: 1220px;
    margin: 0 auto 24px;
    padding: 0 4px;
    width: 100%;
}

.ppt-teams-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    width: 100%;
}

.ppt-team-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 8px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(10, 16, 30, 0.95) 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #cbd5e1;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.74rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
}

.ppt-team-btn:hover {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
    border-color: #fbbf24;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(251, 191, 36, 0.25);
}

.ppt-team-btn.leading {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(59, 130, 246, 0.18) 100%);
    border-color: #fbbf24;
    color: #ffffff;
    box-shadow: 0 0 25px rgba(251, 191, 36, 0.4), inset 0 0 15px rgba(251, 191, 36, 0.12);
    transform: translateY(-2px);
}

.ppt-team-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.ppt-team-emoji {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ppt-team-emoji img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    border-radius: 50%;
}

.ppt-team-name {
    text-align: center;
    line-height: 1.25;
    white-space: normal;
}


/* --- 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: 10;
    background: radial-gradient(circle at center, rgba(16, 185, 129, 0.25) 0%, rgba(4, 30, 15, 0.92) 80%);
    backdrop-filter: blur(8px);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
}

.sold-overlay.visible {
    display: flex;
}

.sold-stamp {
    font-size: clamp(3.2rem, 6.5vw, 5rem);
    font-weight: 950;
    color: #10b981;
    border: 7px solid #10b981;
    padding: 12px 42px;
    border-radius: 18px;
    transform: rotate(-10deg);
    animation: stampIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
    text-transform: uppercase;
    letter-spacing: 4px;
    box-shadow: 0 0 40px rgba(16, 185, 129, 0.45);
    text-shadow: 0 0 25px rgba(16, 185, 129, 0.6);
}

.sold-stamp.stamp-owner {
    color: #ffd700;
    border-color: #ffd700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.4);
}

.sold-stamp.stamp-captain {
    color: #fbbf24;
    border-color: #fbbf24;
    box-shadow: 0 0 45px rgba(251, 191, 36, 0.45);
    text-shadow: 0 0 25px rgba(251, 191, 36, 0.6);
}

.sold-stamp.stamp-vice-captain {
    color: #00f2ff;
    border-color: #00f2ff;
    text-shadow: 0 0 20px rgba(0, 242, 255, 0.5);
    box-shadow: 0 0 40px rgba(0, 242, 255, 0.4);
}

.sold-info {
    margin-top: 16px;
    font-size: 1.25rem;
    color: #ffffff;
    font-weight: 700;
    transform: rotate(-10deg);
    letter-spacing: 0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.unsold-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    background: radial-gradient(circle at center, rgba(239, 68, 68, 0.25) 0%, rgba(45, 8, 8, 0.92) 80%);
    backdrop-filter: blur(8px);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
}

.unsold-overlay.visible {
    display: flex;
}

.unsold-stamp {
    font-size: clamp(2.8rem, 5.5vw, 4.2rem);
    font-weight: 950;
    color: #ef4444;
    border: 7px solid #ef4444;
    padding: 12px 42px;
    border-radius: 18px;
    transform: rotate(-10deg);
    animation: stampIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
    letter-spacing: 4px;
    box-shadow: 0 0 40px rgba(239, 68, 68, 0.45);
}


/* 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: clamp(16px, 3.5vw, 40px);
    flex-wrap: wrap;
    margin: 36px auto 0;
    padding: 20px 36px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.75) 0%, rgba(8, 14, 28, 0.85) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    max-width: fit-content;
    backdrop-filter: blur(12px);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.4),
        0 0 25px rgba(59, 130, 246, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.stat-item {
    text-align: center;
    min-width: 90px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 2px;
}

.stat-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.stat-value.sold-count {
    color: #10b981;
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.35);
}

.stat-value.unsold-count {
    color: #ef4444;
    text-shadow: 0 0 20px rgba(239, 68, 68, 0.35);
}

.stat-value.remaining-count {
    color: #38bdf8;
    text-shadow: 0 0 20px rgba(56, 189, 248, 0.35);
}

.stat-value.total-amount {
    color: #fbbf24;
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.35);
}


.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Button styles */
.btn-sold {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 14px 38px;
    border-radius: 12px;
    border: 1px solid rgba(16, 185, 129, 0.4);
    box-shadow: 0 4px 24px rgba(16, 185, 129, 0.35);
    transition: all 0.25s ease;
}

.btn-sold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.5);
    background: linear-gradient(135deg, #34d399 0%, #059669 100%);
}

.btn-sold:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-unsold {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 14px 32px;
    border-radius: 12px;
    border: 1px solid rgba(239, 68, 68, 0.4);
    box-shadow: 0 4px 24px rgba(239, 68, 68, 0.3);
    transition: all 0.25s ease;
}

.btn-unsold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(239, 68, 68, 0.45);
}

.btn-unsold:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-reset-bid {
    background: rgba(30, 41, 59, 0.85);
    color: #e2e8f0;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 14px 28px;
    border-radius: 12px;
    transition: all 0.25s ease;
}

.btn-reset-bid:hover {
    background: rgba(51, 65, 85, 0.9);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    transform: translateY(-2px);
}

/* ===== TEAMS PAGE ===== */
#teamsSection {
    margin-top: 115px;
}

.team-tabs-container {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto 12px auto;
    padding: 0 4px;
}

.team-tabs-nav-btn {
    position: absolute;
    top: calc(50% - 6px);
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(18, 22, 34, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--text);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

.team-tabs-nav-btn:hover {
    background: rgba(40, 50, 75, 0.95);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.team-tabs-nav-btn.prev {
    left: 4px;
}

.team-tabs-nav-btn.next {
    right: 4px;
}

.team-tabs-wrap {
    overflow-x: auto;
    width: 100%;
    padding: 6px 44px 14px 44px;
    margin-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    cursor: grab;
    user-select: none;
}

.team-tabs-wrap.grabbing {
    cursor: grabbing;
}

.team-tabs-wrap::-webkit-scrollbar {
    height: 6px;
    display: block;
}

.team-tabs-wrap::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 999px;
}

.team-tabs-wrap::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.22);
    border-radius: 999px;
}

.team-tabs-wrap::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.45);
}

.team-tabs {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
    min-width: max-content;
    padding: 4px 6px;
    margin: 0 auto;
}

.team-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    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: 115px;
    max-width: 155px;
    flex-shrink: 0;
}

.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.25;
    white-space: nowrap;
}

/* 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;
}

/* ===== TOURNAMENT HIGHLIGHTS ===== */
.tournament-highlights {
    padding: 80px 24px;
    background: radial-gradient(circle at top, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    position: relative;
    z-index: 10;
}

.highlights-container {
    max-width: 1200px;
    margin: 0 auto;
}

.highlights-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    text-align: center;
    margin-bottom: 60px;
    text-transform: uppercase;
    letter-spacing: -1px;
    animation: fadeInUp 0.8s ease both;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    animation: fadeInUp 0.8s 0.2s ease both;
}

.highlight-card {
    position: relative;
    padding: 40px 30px;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    backdrop-filter: blur(12px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.highlight-card:hover {
    transform: translateY(-10px);
    border-color: rgba(59, 130, 246, 0.4);
    background: rgba(15, 23, 42, 0.6);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.1) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.highlight-card:hover .card-glow {
    opacity: 1;
}

.card-icon {
    font-size: 3.5rem;
    margin-bottom: 24px;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.2));
    transition: transform 0.4s ease;
}

.highlight-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

.card-category {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    display: block;
}

.card-memorial {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.2;
}

.card-donor {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

.donor-label {
    display: block;
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.donor-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent);
}

/* Response for Highlights */
@media (max-width: 900px) {
    .highlights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .highlights-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .highlights-title {
        margin-bottom: 40px;
    }

    .highlight-card {
        padding: 30px 24px;
    }
}

/* Stats Cards */
.team-stats-cards {
    display: grid;
    grid-template-columns: repeat(4, 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);
}

.team-stat-value.max-bid {
    color: var(--blue);
}

.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.max-bid-bar {
    background: linear-gradient(90deg, var(--blue), hsl(190, 90%, 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;
    object-position: center 25%;
    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) {
    .auction-page .page-header {
        padding: 72px 14px 6px !important;
        margin-bottom: 0;
    }

    .page-header h1 {
        font-size: clamp(1.35rem, 5vw, 1.85rem);
        margin-bottom: 4px;
        letter-spacing: -0.5px;
    }

    .ppt-search-wrap {
        max-width: 100%;
        margin: 0 auto 14px;
        padding: 0 4px;
    }

    .ppt-search-input-group {
        padding: 0 16px;
        height: 42px;
    }

    #pptSearchInput {
        padding: 8px 0;
        font-size: 0.9rem;
    }

    .ppt-auction-container {
        padding: 0 8px;
    }

    .ppt-auction-container .auction-nav {
        top: 130px;
        width: 40px;
        height: 40px;
        font-size: 1.05rem;
        background: rgba(3, 16, 46, 0.88);
        border: 1.5px solid #00f2ff;
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.7), 0 0 14px rgba(0, 242, 255, 0.4);
        backdrop-filter: blur(8px);
        color: #ffffff;
        border-radius: 50%;
        z-index: 25;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .ppt-auction-container .auction-nav.prev {
        left: 8px;
    }

    .ppt-auction-container .auction-nav.next {
        right: 8px;
    }

    .ppt-auction-container .auction-nav:active {
        transform: scale(0.92);
    }

    .ppt-card {
        flex-direction: column;
        height: auto;
        min-height: auto;
        aspect-ratio: auto;
        max-width: 100%;
        border-radius: 18px;
        overflow: hidden;
    }

    .ppt-image {
        order: 1;
        width: 100%;
        height: auto;
        min-height: 220px;
        flex: none;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 18px 14px 8px;
        background: radial-gradient(circle at 50% 50%, rgba(251, 191, 36, 0.12) 0%, rgba(30, 58, 138, 0.25) 50%, #071224 100%);
        box-sizing: border-box;
    }

    .ppt-image-frame {
        width: min(210px, 58vw);
        height: 225px;
        margin: 0 auto;
        padding: 3px;
        position: relative;
        flex-shrink: 0;
        background: linear-gradient(135deg, #fef08a 0%, #f59e0b 50%, #b45309 100%);
        clip-path: polygon(
            18px 0%, 
            calc(100% - 18px) 0%, 
            100% 18px, 
            100% calc(100% - 18px), 
            calc(100% - 18px) 100%, 
            18px 100%, 
            0% calc(100% - 18px), 
            0% 18px
        );
        filter: drop-shadow(0 0 20px rgba(234, 179, 8, 0.45)) drop-shadow(0 10px 25px rgba(0, 0, 0, 0.85));
    }

    .ppt-image-frame img {
        height: 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto;
        display: block;
        object-fit: cover !important;
        object-position: center 25% !important;
        clip-path: polygon(
            16px 0%, 
            calc(100% - 16px) 0%, 
            100% 16px, 
            100% calc(100% - 16px), 
            calc(100% - 16px) 100%, 
            16px 100%, 
            0% calc(100% - 16px), 
            0% 16px
        );
    }

    .ppt-image::after {
        display: none;
    }

    .ppt-info {
        order: 2;
        padding: 14px 16px 20px;
        flex: none;
        width: 100%;
        border-right: none;
        box-sizing: border-box;
        justify-content: flex-start;
        gap: 8px;
    }

    .ppt-header-group {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        margin-bottom: 8px;
    }

    .ppt-serial-badge {
        margin-bottom: 2px;
        font-size: 0.72rem;
        padding: 4px 14px;
        letter-spacing: 1.5px;
    }

    .ppt-name-block {
        margin-bottom: 4px;
    }

    .ppt-first-name {
        font-size: clamp(1.15rem, 4vw, 1.35rem);
        margin-bottom: 2px;
        letter-spacing: 1.5px;
        color: #94a3b8;
    }

    .ppt-last-name {
        font-size: clamp(1.8rem, 6.5vw, 2.4rem);
        line-height: 1;
        word-break: break-word;
    }

    .ppt-meta-container {
        gap: 8px;
        margin: 6px 0 10px;
    }

    .ppt-meta-bar {
        clip-path: polygon(
            16px 0%, 
            calc(100% - 8px) 0%, 
            100% 8px, 
            100% calc(100% - 8px), 
            calc(100% - 8px) 100%, 
            8px 100%, 
            0% calc(100% - 8px), 
            0% 16px
        );
    }

    .ppt-meta-bar-inner {
        clip-path: polygon(
            15px 0%, 
            calc(100% - 7px) 0%, 
            100% 7px, 
            100% calc(100% - 7px), 
            calc(100% - 7px) 100%, 
            7px 100%, 
            0% calc(100% - 7px), 
            0% 15px
        );
        padding: 9px 12px;
        gap: 8px;
    }

    .ppt-meta-section {
        gap: 8px;
        min-width: 0;
    }

    .ppt-meta-section:first-child {
        flex: 1.35;
    }

    .ppt-meta-section.ppt-meta-section-right {
        flex: 1;
        justify-content: flex-end;
    }

    .ppt-meta-icon {
        font-size: 1.3rem;
    }

    .ppt-meta-icon svg {
        width: 20px;
        height: 20px;
    }

    .ppt-meta-label {
        font-size: 0.6rem;
        letter-spacing: 1.2px;
    }

    .ppt-meta-value {
        font-size: clamp(0.92rem, 3.2vw, 1.15rem);
        white-space: normal;
        line-height: 1.15;
        word-break: normal;
        overflow: visible;
        text-overflow: clip;
    }

    .ppt-base-price {
        font-size: clamp(1.05rem, 3.6vw, 1.3rem) !important;
        white-space: nowrap;
    }

    .ppt-meta-divider {
        height: 30px;
        margin: 0 2px;
    }

    .ppt-bid-card-outer {
        clip-path: polygon(
            18px 0%, 
            calc(100% - 18px) 0%, 
            100% 18px, 
            100% calc(100% - 18px), 
            calc(100% - 18px) 100%, 
            18px 100%, 
            0% calc(100% - 18px), 
            0% 18px
        );
    }

    .ppt-bid-card-inner {
        clip-path: polygon(
            17px 0%, 
            calc(100% - 17px) 0%, 
            100% 17px, 
            100% calc(100% - 17px), 
            calc(100% - 17px) 100%, 
            17px 100%, 
            0% calc(100% - 17px), 
            0% 17px
        );
        padding: 8px 14px;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        box-sizing: border-box;
    }

    .ppt-bid-left {
        display: flex;
        align-items: center;
        gap: 10px;
        flex: 0 0 auto;
    }

    .ppt-bid-gavel-icon svg {
        width: 30px;
        height: 30px;
    }

    .ppt-bid-card-label {
        font-size: 0.62rem;
        letter-spacing: 1.2px;
    }

    .ppt-bid-card-amount {
        font-size: clamp(1.6rem, 4.5vw, 2.2rem);
        line-height: 1;
    }

    .ppt-bid-divider {
        width: 1px;
        height: 38px;
        background: rgba(56, 189, 248, 0.28);
        margin: 0 4px;
        flex-shrink: 0;
        display: block;
    }

    .ppt-bid-right-info {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 3px;
        flex: 1;
        min-width: 0;
    }

    .ppt-bid-team-header {
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .ppt-bid-team-header svg {
        width: 13px;
        height: 13px;
    }

    .ppt-bid-card-team,
    .ppt-bid-card-team.has-team {
        font-size: clamp(0.75rem, 2.2vw, 0.95rem) !important;
        font-weight: 800 !important;
        padding: 4px 10px !important;
        min-height: 32px !important;
        min-width: 0 !important;
        max-width: 100% !important;
        text-align: right !important;
        white-space: normal !important;
        line-height: 1.15 !important;
        box-sizing: border-box !important;
    }

    .ppt-bid-card-team img {
        width: 22px !important;
        height: 22px !important;
        flex-shrink: 0 !important;
    }

    .ppt-teams-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
}

@media (max-width: 640px) {
    .auth-login-btn {
        width: 34px;
        height: 34px;
        padding: 0;
    }

    .auth-user-name {
        display: none;
    }

    .auth-user-trigger {
        padding: 4px;
    }

    .navbar {
        padding: 10px 14px;
    }

    .nav-brand {
        font-size: 0.95rem;
    }

    .nav-links a {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    /* --- PPT Card Mobile --- */
    .ppt-card {
        border-radius: 16px;
    }

    .ppt-image {
        min-height: 200px;
        padding: 14px 10px 6px;
    }

    .ppt-image-frame {
        width: min(190px, 55vw);
        height: 205px;
    }

    .ppt-info {
        padding: 12px 12px 16px;
    }

    .ppt-first-name {
        font-size: 1.15rem;
    }

    .ppt-last-name {
        font-size: clamp(1.7rem, 6vw, 2.1rem);
    }

    .ppt-meta-bar-inner {
        padding: 8px 10px;
        gap: 6px;
    }

    .ppt-meta-icon {
        font-size: 1.2rem;
    }

    .ppt-meta-label {
        font-size: 0.58rem;
        letter-spacing: 1px;
    }

    .ppt-meta-value {
        font-size: clamp(0.85rem, 3vw, 1.05rem);
    }

    .ppt-base-price {
        font-size: clamp(1rem, 3.4vw, 1.2rem) !important;
    }

    .ppt-bid-card-wrap::before,
    .ppt-bid-card-wrap::after {
        display: none;
    }

    .ppt-bid-card-inner {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 8px 12px !important;
        gap: 8px !important;
        min-height: 54px !important;
        box-sizing: border-box !important;
    }

    .ppt-bid-left {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        flex: 0 0 auto !important;
    }

    .ppt-bid-gavel-icon svg {
        width: 24px !important;
        height: 24px !important;
    }

    .ppt-bid-amount-group {
        gap: 0;
    }

    .ppt-bid-card-label {
        font-size: 0.55rem !important;
        letter-spacing: 1px !important;
    }

    .ppt-bid-card-amount {
        font-size: clamp(1.4rem, 4.5vw, 1.8rem) !important;
        line-height: 1 !important;
    }

    .ppt-bid-divider {
        display: block !important;
        width: 1px !important;
        height: 34px !important;
        background: rgba(56, 189, 248, 0.22) !important;
        margin: 0 2px !important;
        flex-shrink: 0 !important;
    }

    .ppt-bid-right-info {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-end !important;
        justify-content: center !important;
        gap: 2px !important;
        flex: 1 !important;
        min-width: 0 !important;
        border-top: none !important;
        padding-top: 0 !important;
    }

    .ppt-bid-team-header {
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;
    }

    .ppt-bid-team-header svg {
        width: 12px !important;
        height: 12px !important;
    }

    .ppt-bid-card-team,
    .ppt-bid-card-team.has-team {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        width: auto !important;
        max-width: 100% !important;
        min-width: 0 !important;
        min-height: 28px !important;
        font-size: clamp(0.7rem, 2.2vw, 0.82rem) !important;
        font-weight: 800 !important;
        padding: 3px 8px !important;
        line-height: 1.15 !important;
        text-align: right !important;
        white-space: normal !important;
        word-break: normal !important;
        box-sizing: border-box !important;
        gap: 5px !important;
        border-radius: 6px !important;
    }

    .ppt-bid-card-team img {
        width: 20px !important;
        height: 20px !important;
        flex-shrink: 0 !important;
        margin-right: 2px !important;
    }

    .ppt-teams-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .ppt-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-bottom: 16px;
    }

    .ppt-actions .btn {
        padding: 10px 8px;
        font-size: 0.82rem;
        justify-content: center;
    }

    .auction-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px 12px;
        padding: 12px 14px;
        width: 100%;
        max-width: 100%;
        margin-top: 14px;
        border-radius: 14px;
    }

    .stat-value {
        font-size: 1.25rem;
    }

    .stat-label {
        font-size: 0.62rem;
    }
}


@media (max-width: 640px) {
    .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;
    }

    .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: 72px 16px 16px;
    }

    .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 */
    #teamsSection {
        margin-top: 75px;
        padding-left: 12px;
        padding-right: 12px;
    }

    #teamsSection .team-tabs-container {
        margin-left: -12px;
        margin-right: -12px;
        width: calc(100% + 24px);
        max-width: calc(100% + 24px);
        padding: 0;
        margin-bottom: 20px;
    }

    #teamsSection .team-tabs-nav-btn {
        display: none;
    }

    #teamsSection .team-tabs-wrap {
        container-type: inline-size;
        margin: 0;
        width: 100%;
        padding: 0 6px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    #teamsSection .team-tabs-wrap::-webkit-scrollbar {
        display: none;
    }

    #teamsSection .team-tabs {
        display: flex;
        justify-content: flex-start;
        gap: 6px;
        padding: 4px 0 12px;
        min-width: max-content;
    }

    #teamsSection .team-tab {
        flex: 0 0 calc((100% - 18px) / 4);
        flex: 0 0 calc((100cqw - 30px) / 4);
        width: calc((100cqw - 30px) / 4);
        max-width: calc((100cqw - 30px) / 4);
        min-width: 0;
        min-height: 98px;
        box-sizing: border-box;
        padding: 10px 3px 10px;
        gap: 6px;
        border-radius: 10px;
        justify-content: center;
    }

    #teamsSection .team-tab-emoji {
        font-size: 1.55rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #teamsSection .team-tab-emoji img {
        width: 48px !important;
        height: 48px !important;
        border-radius: 50%;
        object-fit: cover;
    }

    #teamsSection .team-tab-name {
        font-size: 0.6rem;
        font-weight: 700;
        line-height: 1.15;
        letter-spacing: -0.2px;
        white-space: normal;
        word-break: normal;
        text-align: center;
        width: 100%;
        overflow: hidden;
    }

    .team-stats-cards {
        gap: 8px;
        grid-template-columns: repeat(2, 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-team-btn {
        padding: 10px 6px;
        border-radius: 10px;
    }

    .ppt-team-emoji {
        font-size: 1.25rem;
    }

    .ppt-team-emoji img {
        width: 32px !important;
        height: 32px !important;
    }

    .ppt-team-name {
        font-size: 0.72rem;
        line-height: 1.15;
    }
}

@media (max-width: 380px) {
    .ppt-image-frame {
        width: 175px;
        height: 190px;
    }

    .ppt-info {
        padding: 10px 8px 14px;
    }

    .ppt-meta-bar-inner {
        padding: 7px 8px;
        gap: 4px;
    }

    .ppt-meta-icon {
        font-size: 1.1rem;
    }

    .ppt-meta-value {
        font-size: 0.82rem;
    }

    .ppt-bid-card-inner {
        padding: 6px 8px !important;
        gap: 6px !important;
    }

    .ppt-bid-card-amount {
        font-size: 1.35rem !important;
    }

    .ppt-bid-card-team,
    .ppt-bid-card-team.has-team {
        font-size: 0.68rem !important;
        padding: 2px 6px !important;
        min-height: 26px !important;
    }

    .ppt-bid-card-team img {
        width: 17px !important;
        height: 17px !important;
    }

    .ppt-teams-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* Auction Toast Notifications */
.auction-toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: hsla(230, 25%, 15%, 0.96);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 90vw;
    text-align: center;
}

.auction-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.auction-toast.warning {
    border-color: var(--accent);
    color: var(--accent);
}

.auction-toast.error {
    border-color: var(--danger);
    color: var(--danger);
}

.auction-toast.success {
    border-color: var(--success);
    color: var(--success);
}

/* ===== GOOGLE SHEET LIVE SYNC BADGE ===== */
.sheet-sync-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 7px 18px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.14) 0%, rgba(6, 78, 59, 0.35) 100%);
    border: 1px solid rgba(16, 185, 129, 0.45);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #6ee7b7;
    letter-spacing: 0.4px;
    cursor: pointer;
    user-select: none;
    transition: all 0.25s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.sheet-sync-pill:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(6, 78, 59, 0.55) 100%);
    border-color: #34d399;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(16, 185, 129, 0.3);
}

.sheet-sync-pill.sheet-sync-auction {
    margin-top: 8px;
    margin-bottom: 4px;
}

.sync-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
    display: inline-block;
    flex-shrink: 0;
}

.sync-dot.live {
    animation: livePulse 2s infinite ease-in-out;
}

.sync-dot.syncing {
    background: #fbbf24;
    box-shadow: 0 0 10px #fbbf24;
}

@keyframes livePulse {
    0%, 100% {
        transform: scale(0.9);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.3);
        opacity: 1;
        box-shadow: 0 0 14px #34d399;
    }
}

.sync-refresh-icon {
    font-size: 0.85rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

.sheet-sync-pill:hover .sync-refresh-icon {
    transform: rotate(45deg);
}

@keyframes spinSync {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== KPL HOME PAGE SECTIONS ===== */
.kpl-section-sub {
    text-align: center;
    color: var(--text-muted);
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    max-width: 680px;
    margin: -40px auto 45px auto;
    line-height: 1.6;
}

/* Quick Tournament Metrics */
.kpl-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 70px;
}

.kpl-metric-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 24px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.kpl-metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.6;
}

.kpl-metric-card:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.kpl-metric-icon {
    font-size: 2rem;
    margin-bottom: 8px;
    display: inline-block;
}

.kpl-metric-value {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.5px;
    font-variant-numeric: tabular-nums;
    margin-bottom: 4px;
}

.kpl-metric-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1.5px;
}

/* KPL Teams Grid */
.kpl-teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 80px;
}

.kpl-team-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.kpl-team-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--team-color, var(--primary));
    box-shadow: 0 0 12px var(--team-color, var(--primary));
}

.kpl-team-card:hover {
    transform: translateY(-4px) scale(1.01);
    background: rgba(30, 41, 59, 0.8);
    border-color: var(--team-color, var(--primary));
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 20px rgba(59, 130, 246, 0.15);
}

.kpl-team-logo-wrap {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
    border: 2px solid var(--team-color, rgba(255, 255, 255, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}

.kpl-team-card:hover .kpl-team-logo-wrap {
    transform: scale(1.08);
}

.kpl-team-logo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kpl-team-info {
    flex: 1;
    min-width: 0;
}

.kpl-team-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kpl-team-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.kpl-team-badge {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--accent);
}

.kpl-team-link-text {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.kpl-team-card:hover .kpl-team-link-text {
    color: var(--primary-light);
}

/* Rules / Format Cards */
.kpl-rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 70px;
}

.kpl-rule-card {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 30px 24px;
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.kpl-rule-card:hover {
    transform: translateY(-6px);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.kpl-rule-icon {
    font-size: 2.2rem;
    margin-bottom: 16px;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 14px;
}

.kpl-rule-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.kpl-rule-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Responsive tweaks */
@media (max-width: 900px) {
    .kpl-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .kpl-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .kpl-metric-card {
        padding: 16px 12px;
    }
    .kpl-teams-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* ===================================================
   AUCTION STATUS / WAITING ROOM & TEA BREAK MODAL
   =================================================== */
.auction-status-modal {
    position: fixed;
    inset: 0;
    z-index: 9990;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s ease;
}

.auction-status-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.auction-status-backdrop {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(10, 16, 32, 0.88) 0%, rgba(3, 7, 18, 0.96) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.auction-status-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 480px;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.95), rgba(10, 15, 30, 0.98));
    border: 1.5px solid rgba(0, 212, 255, 0.35);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7),
                0 0 40px rgba(0, 212, 255, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    padding: 32px 28px 24px;
    text-align: center;
    transform: scale(0.92) translateY(15px);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.auction-status-modal.active .auction-status-card {
    transform: scale(1) translateY(0);
}

/* Header badge with live pulse */
.auction-status-header {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.auction-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auction-status-badge.badge-start-soon {
    background: rgba(0, 212, 255, 0.12);
    border: 1px solid rgba(0, 212, 255, 0.4);
    color: #38bdf8;
    box-shadow: 0 0 16px rgba(0, 212, 255, 0.2);
}

.auction-status-badge.badge-tea-break {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.45);
    color: #fbbf24;
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.2);
}

.status-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 8px currentColor;
    animation: statusPulse 1.8s infinite ease-in-out;
}

@keyframes statusPulse {
    0%, 100% { transform: scale(0.85); opacity: 0.5; }
    50% { transform: scale(1.3); opacity: 1; }
}

/* Big floating animated icon */
.auction-status-icon-wrap {
    margin: 0 auto 16px;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.15) 0%, rgba(0, 212, 255, 0.05) 70%, transparent 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 215, 0, 0.25);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.15);
    animation: floatIcon 3.5s ease-in-out infinite;
}

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

.auction-status-icon {
    font-size: 2.6rem;
    line-height: 1;
}

/* Title & Description */
.auction-status-title {
    font-size: 1.55rem;
    font-weight: 900;
    letter-spacing: -0.01em;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #ffffff 30%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.25;
}

.auction-status-msg {
    font-size: 0.92rem;
    line-height: 1.55;
    color: rgba(226, 232, 240, 0.85);
    margin-bottom: 22px;
    padding: 0 10px;
}

/* Scoreboard stats during Tea Break */
.auction-status-stats {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 22px;
}

.status-stat-pill {
    flex: 1;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.status-stat-pill.sold {
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.08);
}
.status-stat-pill.sold .stat-num {
    color: #34d399;
}

.status-stat-pill.unsold {
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.08);
}
.status-stat-pill.unsold .stat-num {
    color: #f87171;
}

.status-stat-pill.remaining {
    border-color: rgba(56, 189, 248, 0.4);
    background: rgba(56, 189, 248, 0.08);
}
.status-stat-pill.remaining .stat-num {
    color: #38bdf8;
}

.status-stat-pill .stat-num {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
}

.status-stat-pill .stat-lbl {
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(203, 213, 225, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Real-time Ticker */
.auction-status-ticker {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.08);
    border: 1px dashed rgba(56, 189, 248, 0.35);
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 22px;
}

.ticker-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 6px #38bdf8;
    animation: statusPulse 1.2s infinite ease-in-out;
}

/* Actions */
.auction-status-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.btn-status-login {
    width: 100%;
    padding: 12px 20px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    color: #030712;
    background: linear-gradient(135deg, #ffd700 0%, #f59e0b 100%);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-status-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(245, 158, 11, 0.5);
    filter: brightness(1.08);
}

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

.auction-status-links {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.84rem;
}

.status-link {
    color: rgba(203, 213, 225, 0.75);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.status-link:hover {
    color: #ffd700;
    text-decoration: underline;
}

.status-dot {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.7rem;
}

/* Mobile Responsiveness for status modal */
@media (max-width: 600px) {
    .auction-status-modal {
        padding: 16px;
    }

    .auction-status-card {
        padding: 26px 20px 20px;
        border-radius: 16px;
    }

    .auction-status-icon-wrap {
        width: 64px;
        height: 64px;
        margin-bottom: 12px;
    }

    .auction-status-icon {
        font-size: 2.2rem;
    }

    .auction-status-title {
        font-size: 1.32rem;
        margin-bottom: 8px;
    }

    .auction-status-msg {
        font-size: 0.85rem;
        margin-bottom: 18px;
        padding: 0;
    }

    .auction-status-stats {
        gap: 8px;
        margin-bottom: 18px;
    }

    .status-stat-pill {
        padding: 8px 4px;
    }

    .status-stat-pill .stat-num {
        font-size: 1.15rem;
    }

    .status-stat-pill .stat-lbl {
        font-size: 0.65rem;
    }

    .auction-status-ticker {
        font-size: 0.72rem;
        padding: 6px 10px;
        margin-bottom: 18px;
    }

    .btn-status-login {
        padding: 11px 16px;
        font-size: 0.88rem;
    }

    .auction-status-links {
        font-size: 0.78rem;
        gap: 8px;
    }
}

