/**
 * Pickup Games - Frontend Styles
 * עיצוב מדויק לפי התמונות
 */

:root {
    --pg-primary: #BFFF00;
    --pg-bg: #0D0D0D;
    --pg-card: #1A1A1A;
    --pg-card-hover: #222222;
    --pg-text: #FFFFFF;
    --pg-text-muted: #888888;
    --pg-border: #333333;
    --pg-success: #4CAF50;
    --pg-warning: #FF9800;
    --pg-danger: #F44336;
    --pg-radius: 16px;
    --pg-radius-sm: 8px;
}

/* ========================================
   BASE
   ======================================== */

.pickup-container {
    font-family: 'Heebo', sans-serif;
    direction: rtl;
    color: var(--pg-text);
    line-height: 1.6;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.pickup-container * {
    box-sizing: border-box;
}

/* ========================================
   HEADER
   ======================================== */

/* My Games Page Header */
.pickup-my-games .pg-header {
    margin-bottom: 30px;
}

.pickup-my-games .pg-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 15px;
}

.pickup-my-games .pg-header-text {
    flex: 1;
}

.pickup-my-games .pg-profile-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 20px;
    color: #fff;
    flex-shrink: 0;
    overflow: hidden;
}

.pickup-my-games .pg-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.pickup-my-games .pg-profile-initial {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    color: #fff;
    line-height: 1;
}

.pickup-my-games .pg-btn-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 16px;
}

.pickup-my-games .pg-btn-logout .pg-profile-avatar-in-btn {
    width: 32px;
    height: 32px;
    font-size: 14px;
}

.pickup-my-games .pg-btn-logout .pg-profile-avatar-in-btn .pg-profile-initial {
    font-size: 14px;
}

.pickup-my-games .pg-btn-logout .pg-profile-avatar-in-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pg-header {
    text-align: right;
    margin-bottom: 32px;
}

.pg-header-center {
    text-align: center;
}

.pg-subtitle {
    color: var(--pg-primary);
    font-size: 16px;
    font-weight: 400;
    margin: 0 0 8px 0;
}

.pg-title {
    font-size: 48px;
    font-weight: 900;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 16px;
}

.pg-header-center .pg-title {
    justify-content: center;
}

.pg-logo {
    width: 48px;
    height: 48px;
    color: var(--pg-primary);
    stroke-width: 2.5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pg-menu-item i {
    width: 20px;
    height: 20px;
    color: var(--pg-text);
    stroke-width: 2;
}

.pg-menu-item.active i {
    color: var(--pg-primary);
}

.pg-actions button i {
    width: 18px;
    height: 18px;
    color: var(--pg-text);
    stroke-width: 2;
}

/* ========================================
   BUTTONS
   ======================================== */

.pg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--pg-radius-sm);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pg-btn-primary {
    background: var(--pg-primary) !important;
    color: var(--pg-bg) !important;
    text-align: center;
    justify-content: center;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none !important;
}

.pg-btn-primary:hover {
    background: #d4ff4d !important;
    transform: translateY(-2px);
}

.pg-btn-primary i {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
}

.pg-btn-secondary {
    background: transparent;
    color: var(--pg-text);
    border: 1px solid var(--pg-border);
}

.pg-btn-secondary:hover {
    border-color: var(--pg-primary);
}

.pg-btn-cancel {
    background: transparent;
    color: var(--pg-danger);
    border: 1px solid var(--pg-danger);
}

.pg-btn-cancel:hover {
    background: var(--pg-danger);
    color: white;
}

.pg-btn-full {
    width: 100%;
}

.pg-btn-small {
    padding: 6px 12px;
    font-size: 12px;
}

/* Admin participant buttons – only in ניהול משחק table; rounded, clean */
.pg-admin-panel .pg-btn-arrived,
.pickup-single-game .pg-admin-panel .pg-btn-arrived {
    background: linear-gradient(135deg, #7cb342 0%, #8bc34a 100%) !important;
    color: #1a1a1a !important;
    border: none !important;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pg-admin-panel .pg-btn-arrived:hover,
.pickup-single-game .pg-admin-panel .pg-btn-arrived:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(124, 179, 66, 0.4);
}

.pg-admin-panel .pg-btn-noshow,
.pickup-single-game .pg-admin-panel .pg-btn-noshow {
    background: transparent;
    color: #e57373;
    border: 1px solid #e57373;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 13px;
    transition: background 0.15s ease, color 0.15s ease;
}

.pg-admin-panel .pg-btn-noshow:hover,
.pickup-single-game .pg-admin-panel .pg-btn-noshow:hover {
    background: rgba(229, 115, 115, 0.15);
    color: #ff8a80;
}

.pg-admin-panel .pg-btn-remove,
.pickup-single-game .pg-admin-panel .pg-btn-remove {
    background: transparent;
    color: var(--pg-text-muted);
    border: 1px solid var(--pg-border);
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 13px;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.pg-admin-panel .pg-btn-remove:hover,
.pickup-single-game .pg-admin-panel .pg-btn-remove:hover {
    border-color: #78909c;
    color: #cfd8dc;
}

/* Admin panel - unified with pg-form-card */
.pg-admin-panel .pg-btn-secondary,
.pg-admin-panel .pg-btn-cancel {
    border-radius: var(--pg-radius-sm);
}

/* ניהול משחק table - cleaner look */
.pickup-single-game .pg-admin-panel .pg-registered-table-wrap {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--pg-border);
    background: rgba(255, 255, 255, 0.03);
}

.pickup-single-game .pg-admin-panel .pg-registered-table table,
.pickup-single-game .pg-admin-panel .widefat.pg-registered-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.pickup-single-game .pg-admin-panel .pg-registered-table thead th,
.pickup-single-game .pg-admin-panel .widefat.pg-registered-table thead th {
    background: rgba(255, 255, 255, 0.06);
    color: var(--pg-text-muted);
    font-weight: 600;
    text-align: right;
    padding: 12px 14px;
    border-bottom: 1px solid var(--pg-border);
}

.pickup-single-game .pg-admin-panel .pg-registered-table tbody td,
.pickup-single-game .pg-admin-panel .widefat.pg-registered-table tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    vertical-align: middle;
}

.pickup-single-game .pg-admin-panel .pg-registered-table tbody tr:hover,
.pickup-single-game .pg-admin-panel .widefat.pg-registered-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.04);
}

.pickup-single-game .pg-admin-panel .pg-registered-table tbody tr:last-child td,
.pickup-single-game .pg-admin-panel .widefat.pg-registered-table tbody tr:last-child td {
    border-bottom: none;
}

/* Card buttons - unified style (ref: רשימת המתנה) */
.pg-btn-registered {
    background: rgba(76, 175, 80, 0.2);
    color: var(--pg-primary);
    border-color: var(--pg-primary);
}
.pg-btn-registered:hover {
    background: rgba(76, 175, 80, 0.3);
}
.pg-btn-card {
    font-size: 14px !important;
    font-weight: 600 !important;
    padding: 10px 20px !important;
    border-radius: var(--pg-radius-sm) !important;
}

/* ========================================
   FILTERS / TABS
   ======================================== */

.pickup-games-list-compact .pg-filters { margin-top: 0; margin-bottom: 20px; }
.pickup-games-list-compact { padding-top: 0; }
.pg-filters,
.pg-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    justify-content: flex-start;
}

.pg-filter,
.pg-tab {
    padding: 10px 24px;
    border: 1px solid var(--pg-border);
    border-radius: 50px;
    background: transparent;
    color: var(--pg-text);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pg-filter:hover,
.pg-tab:hover {
    border-color: var(--pg-primary);
    background-color: transparent;
}

.pg-filter.active,
.pg-tab.active {
    background: var(--pg-primary);
    border-color: var(--pg-primary);
    color: var(--pg-bg);
}

/* ========================================
   FORMS
   ======================================== */

.pg-form-group {
    margin-bottom: 16px;
}

.pickup-login .pg-login-name-row {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}
.pickup-login .pg-login-name-row .pg-half {
    flex: 1;
    min-width: 0;
}
.pickup-login .pg-login-name-row .pg-half .pg-input {
    width: 100%;
}

.pg-form-group label {
    display: block;
    color: var(--pg-text-muted);
    font-size: 14px;
    margin-bottom: 8px;
    text-align: right;
}

.pg-form-group input,
.pg-form-group select,
.pg-form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: #2A2A2A;
    border: 1px solid var(--pg-border);
    border-radius: var(--pg-radius-sm);
    color: var(--pg-text);
    font-family: inherit;
    font-size: 16px;
    text-align: right;
}

.pg-form-group input:focus,
.pg-form-group select:focus {
    outline: none;
    border-color: var(--pg-primary);
}

.pg-form-group input::placeholder {
    color: #666;
}

.pg-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.pg-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

/* ========================================
   MESSAGES (chat/form feedback)
   ======================================== */

.pg-msg {
    padding: 12px 16px;
    border-radius: var(--pg-radius-sm);
    margin-bottom: 16px;
    text-align: right;
    direction: rtl;
    word-break: break-word;
    border: 1px solid transparent;
}

.pg-msg-success {
    background: rgba(76, 175, 80, 0.2);
    color: var(--pg-success);
    border-color: rgba(76, 175, 80, 0.3);
}

.pg-msg-error {
    background: rgba(244, 67, 54, 0.2);
    color: var(--pg-danger);
    border-color: rgba(244, 67, 54, 0.3);
}

/* Message containers - ensures proper stacking */
#pg-message,
#pg-login-message {
    min-height: 0;
    margin-bottom: 12px;
}

#pg-message .pg-msg,
#pg-login-message .pg-msg {
    margin-bottom: 0;
}

/* Admin message to participants (chat-style) */
.pg-admin-message {
    margin-bottom: 20px;
    padding: 16px;
    background: rgba(0,0,0,0.2);
    border-radius: var(--pg-radius-sm);
    border: 1px solid var(--pg-border);
}
.pg-admin-message label {
    display: block;
    color: var(--pg-text);
    font-weight: 500;
    margin-bottom: 8px;
    text-align: right;
}
.pg-admin-message-text {
    width: 100%;
    max-width: 400px;
    padding: 12px 16px;
    border-radius: var(--pg-radius-sm);
    border: 1px solid var(--pg-border);
    background: var(--pg-card);
    color: var(--pg-text);
    font-family: inherit;
    font-size: 15px;
    direction: rtl;
    text-align: right;
    resize: vertical;
    min-height: 72px;
}
.pg-admin-message-text::placeholder {
    color: var(--pg-text-muted);
}
.pg-admin-message-options {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    direction: rtl;
}
.pg-admin-message-options label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
    font-weight: normal;
    cursor: pointer;
}
.pg-admin-message-options input[type="radio"] {
    margin: 0;
}
.pg-admin-send-msg {
    margin-top: 12px;
}

/* ========================================
   AVATARS
   ======================================== */

.pg-avatar,
.pg-player-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    background: #37461e !important;
    color: #bfff00 !important;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}

.pg-player-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
}

.pg-player-avatar > span {
    position: relative;
    z-index: 1;
}

.pg-player-initial {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1a1d25;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
    line-height: 1;
    text-transform: uppercase;
    vertical-align: middle;
}
.pg-name-with-avatar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    vertical-align: middle;
}
.widefat td {
    vertical-align: middle;
    padding-top: 8px;
    padding-bottom: 8px;
}
.widefat td .pg-pill {
    vertical-align: middle;
}

/* Settings accordion */
.pg-settings-accordion {
    border: 1px solid var(--pg-border, #333);
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255,255,255,0.02);
}
.pg-settings-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: none;
    color: #e4e6eb;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.pg-settings-toggle:hover {
    background: rgba(255,255,255,0.04);
}
.pg-settings-toggle i[data-lucide="settings"] {
    width: 18px;
    height: 18px;
    opacity: 0.7;
}
.pg-settings-chevron {
    width: 16px;
    height: 16px;
    margin-right: auto;
    opacity: 0.5;
    transition: transform 0.2s;
}
.pg-settings-accordion.open .pg-settings-chevron {
    transform: rotate(180deg);
}
.pg-settings-body {
    padding: 0 16px 16px;
}

.pg-avatars {
    display: flex;
}

.pg-avatars .pg-avatar {
    width: 32px;
    height: 32px;
    font-size: 12px;
    border: 2px solid var(--pg-card);
    margin-left: -8px;
    position: relative;
    overflow: hidden;
}

.pg-avatars .pg-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
}

.pg-avatars .pg-avatar > span {
    position: relative;
    z-index: 1;
}

.pg-avatar-more {
    background: #37461e !important;
    color: #bfff00 !important;
}

/* ========================================
   STATUS
   ======================================== */

.pg-status {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: white;
}

.pg-status-open { background: var(--pg-success); }
.pg-status-almost { background: var(--pg-warning); }
.pg-status-full { background: var(--pg-danger); }

.pg-status-badge {
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pg-status-in {
    background: var(--pg-primary);
    color: var(--pg-bg);
    border-color: var(--pg-primary);
}

/* כפתור המתנה – כמו כפתור היסטוריה: רקע כהה, מסגרת, טקסט ממורכז, רוחב 100px */
.pg-status-waitlist {
    width: 100px;
    min-width: 100px;
    justify-content: center;
    text-align: center;
    background: transparent;
    color: var(--pg-text);
    border: 1px solid var(--pg-border);
    border-radius: 50px;
}

/* ========================================
   GAMES LIST (תמונה 1)
   ======================================== */

.pg-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.pg-card {
    background: #1A1A1A;
    border: 1px solid var(--pg-border);
    border-radius: var(--pg-radius);
    overflow: hidden;
    transition: all 0.3s ease;
}

.pg-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.pg-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Group cards - same structure as game cards */
.pickup-groups-list .pg-grid-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.pg-card-group .pg-card-group-image {
    height: 180px;
    padding: 0;
    overflow: hidden;
    display: block;
}
.pg-group-sport {
    font-size: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 180px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 50%, #1a1a1a 100%);
}
.pg-card-group-image .pg-group-logo {
    width: 100%;
    height: 100%;
    min-height: 180px;
    object-fit: cover;
    object-position: center;
    display: block;
}
.pg-group-logo-header {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 50%;
    vertical-align: middle;
    margin-left: 10px;
}
.pg-group-desc { font-size: 13px; color: var(--pg-text-muted); margin-top: 6px; }
.pg-card-group .pg-card-footer { flex-wrap: wrap; gap: 10px; }
.pg-join-hint { font-size: 12px; color: var(--pg-text-muted); text-align: center} 
.pg-badge-invitation { background: rgba(255,193,7,0.2); color: #ffc107; padding: 6px 12px; border-radius: 20px; font-size: 13px; }
.pg-join-cta { margin-top: 12px; }
.pg-join-cta.pg-muted { color: var(--pg-text-muted); font-size: 14px; }
.pg-join-group-gate { padding: 20px; background: rgba(34, 197, 94, 0.1); border: 1px solid rgba(34, 197, 94, 0.3); border-radius: var(--pg-radius); margin-bottom: 16px; }
.pg-join-group-gate .pg-join-group-gate-text { margin: 0 0 12px; font-size: 16px; }
.pg-join-group-gate .pg-btn { margin-top: 8px; }

.pg-card-image {
    height: 180px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 50%, #1a1a1a 100%);
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 0;
    overflow: hidden;
}

/* Cover image fills entire space - no padding */
.pg-card-image[style*="background-image"] {
    padding: 0;
}

.pg-card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.4) 0%, rgba(42, 42, 42, 0.2) 50%, rgba(26, 26, 26, 0.4) 100%);
    z-index: 1;
}

.pg-card-image > * {
    position: relative;
    z-index: 2;
}

/* Date and status overlays - positioned absolutely so cover can fill */
.pg-card-image .pg-date {
    position: absolute;
    top: 16px;
    left: 16px;
    margin: 0;
}

.pg-card-image .pg-status {
    position: absolute;
    top: 16px;
    right: 16px;
}

.pg-date {
    background: var(--pg-card);
    border-radius: 12px;
    padding: 12px 16px;
    text-align: center;
    min-width: 60px;
}

.pg-date-day {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--pg-primary);
    line-height: 1;
}

.pg-date-month {
    display: block;
    font-size: 12px;
    color: var(--pg-text-muted);
    margin-top: 4px;
}

.pg-card-body {
    padding: 20px;
}

.pg-pill { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; margin-right: 6px; }
.pg-pill-paid { background: #fff8e1; color: #5d4037; border: 1px solid #ffe082; }

.pg-card-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 12px 0;
    text-align: right;
}

.pg-card-meta {
    display: flex;
    align-items: start;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.pg-meta-item {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    font-size: 14px;
    color: var(--pg-text-muted);
}

.pg-icon {
    width: 22px;
    height: 22px;
    color: var(--pg-primary);
    stroke-width: 2;
    flex-shrink: 0;
    padding: 2px;
    box-sizing: border-box;
}

.pg-bar {
    height: 7px;
    background: var(--pg-border);
    border-radius: 10px;
    margin-bottom: 16px;
    overflow: hidden;
}

.pg-bar-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.pg-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row-reverse;
}

/* ========================================
   SINGLE GAME (תמונה 2)
   ======================================== */

.pg-hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a3d2e 50%, #1a1a1a 100%);
    background-size: cover;
    background-position: center;
    border-radius: var(--pg-radius);
    padding: 60px 40px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 24px;
    overflow: hidden;
}

.pg-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.8) 0%, rgba(10, 61, 46, 0.7) 50%, rgba(26, 26, 26, 0.8) 100%);
    z-index: 1;
}

.pg-hero > * {
    position: relative;
    z-index: 2;
}

.pg-countdown {
    position: static;
    background: var(--pg-primary);
    color: var(--pg-bg);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    width: fit-content;
}

.pg-countdown i {
    width: 16px;
    height: 16px;
    stroke-width: 2.5;
}

.pg-hero-title {
    font-size: 48px;
    font-weight: 900;
    margin: 0 0 32px 0;
}

.pg-hero-info {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.pg-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pg-info-icon {
    width: 50px;
    height: 50px;
    background: #0D0D0D;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pg-primary);
    flex-shrink: 0;
    stroke-width: 2.5;
    padding: 12px;
    box-sizing: border-box;
}

.pg-info-text {
    text-align: right;
}

.pg-info-label {
    display: block;
    font-size: 12px;
    color: var(--pg-text-muted);
}

.pg-info-value {
    display: block;
    font-size: 16px;
    font-weight: 600;
    direction: ltr;
}

.pg-info-value a {
    color: var(--pg-primary);
    text-decoration: none;
}

/* Row 1: Participants (left) | Registration (right, sticky). Row 2: Game management full width. */
.pickup-single-game .pg-content,
.pickup-single-game .pg-content-row {
    overflow: visible;
}

.pg-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.pg-content-row {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 24px;
    align-items: start;
}

.pg-participants-card {
    min-height: 0;
}

/* Registration card – sticky until end of participants area (wrapper = .pg-content-row) */
.pg-form-card.pg-form-card-sticky {
    position: sticky;
    top: 20px;
    align-self: start;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    z-index: 2;
}

/* Game management – below participants row, full width */
.pickup-single-game .pg-admin-panel {
    width: 100%;
    margin-top: 8px;
}

/* Form Card */
.pg-form-card {
    background: #1A1A1A;
    border: 1px solid var(--pg-border);
    border-radius: var(--pg-radius);
    padding: 24px;
    height: fit-content;
}

.pg-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.pg-form-header h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.pg-spots-badge {
    background: var(--pg-primary);
    color: var(--pg-bg);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

.pg-welcome {
    text-align: center;
    color: var(--pg-text-muted);
    margin-bottom: 20px;
}

.pg-welcome strong {
    color: var(--pg-primary);
}

.pg-registered {
    text-align: center;
    padding: 20px;
}

.pg-registered-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.pg-registered-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--pg-primary);
}

.pg-registered-pos {
    color: var(--pg-text-muted);
    margin: 8px 0 20px;
}

/* Participants */
.pg-participants-card {
    background: #1A1A1A;
    border: 1px solid var(--pg-border);
    border-radius: var(--pg-radius);
    padding: 24px;
}

.pg-participants-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.pg-participants-header h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.pg-count {
    color: var(--pg-text-muted);
    font-size: 14px;
    direction: ltr;
}

.pg-stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.pg-stat-box {
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.pg-stat-primary {
    background: var(--pg-primary);
}

.pg-stat-secondary {
    background: #2A2A2A;
}

.pg-stat-num {
    display: block;
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}

.pg-stat-primary .pg-stat-num {
    color: var(--pg-bg);
}

.pg-stat-secondary .pg-stat-num {
    color: var(--pg-text);
}

.pg-stat-label {
    display: block;
    font-size: 14px;
    margin-top: 4px;
    opacity: 0.8;
}

.pg-stat-primary .pg-stat-label {
    color: var(--pg-bg);
}

.pg-stat-secondary .pg-stat-label {
    color: var(--pg-text-muted);
}

/* Player Row */
.pg-player {
    background: #1A1A1A;
    border: 1px solid var(--pg-border);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.pg-player-me {
    background: rgba(191, 255, 0, 0.1);
    border: 1px solid var(--pg-primary);
}

.pg-player-waitlist {
    opacity: 0.6;
}

.pg-player-rank {
    width: 28px;
    height: 28px;
    background: var(--pg-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--pg-text-muted);
    flex-shrink: 0;
}

.pg-player-info {
    flex: 1;
    text-align: right;
}

.pg-player-name {
    display: block;
    font-size: 15px;
    font-weight: 600;
}

.pg-player-meta {
    display: block;
    font-size: 12px;
    color: var(--pg-text-muted);
    margin-top: 2px;
}

.pg-player-stars {
    color: var(--pg-primary);
    font-size: 12px;
    letter-spacing: 1px;
}

.pg-waitlist-divider {
    text-align: center;
    color: var(--pg-text-muted);
    font-size: 14px;
    margin: 20px 0 12px;
    padding-top: 20px;
    border-top: 1px solid var(--pg-border);
}

/* ========================================
   MY GAMES (תמונה 4)
   ======================================== */

.pg-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.pg-stat-card {
    background: #1A1A1A;
    border-radius: var(--pg-radius);
    padding: 24px;
    text-align: center;
    border: 1px solid var(--pg-border);
}

.pg-stat-icon {
    width: 48px;
    height: 48px;
    background: #0D0D0D;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    color: var(--pg-primary);
    stroke-width: 2.5;
    padding: 12px;
    box-sizing: border-box;
}

.pg-stat-value {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: var(--pg-primary);
    line-height: 1;
}

.pg-stat-card .pg-stat-label {
    color: var(--pg-text-muted);
    font-size: 14px;
    margin-top: 8px;
}

.pg-game-row {
    background: #1A1A1A;
    border: 1px solid var(--pg-border);
    border-radius: 12px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 12px;
    transition: transform 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.pg-game-row:hover {
    transform: translateX(-8px);
}

.pg-game-date {
    text-align: center;
    min-width: 50px;
}

.pg-day {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--pg-primary);
    line-height: 1;
}

.pg-month {
    display: block;
    font-size: 12px;
    color: var(--pg-text-muted);
}

.pg-game-info {
    flex: 1;
    text-align: right;
}

.pg-game-title {
    display: block;
    font-size: 16px;
    font-weight: 600;
}

.pg-game-meta {
    display: block;
    font-size: 14px;
    color: var(--pg-text-muted);
    margin-top: 4px;
}

/* ========================================
   TEAM SPLIT (תמונה 3)
   ======================================== */

.pg-balance-meter {
    background: var(--pg-card);
    border-radius: 50px;
    padding: 20px 32px;
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 500px;
    margin: 0 auto 40px;
    flex-direction: row-reverse;
}

.pg-balance-label {
    color: var(--pg-text-muted);
    font-size: 14px;
}

.pg-balance-bar {
    flex: 1;
    height: 8px;
    background: linear-gradient(to right, var(--pg-danger), var(--pg-warning), var(--pg-success));
    border-radius: 4px;
    position: relative;
}

.pg-balance-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--pg-primary);
    border-radius: 50%;
    top: -4px;
    transform: translateX(-50%);
    box-shadow: 0 0 10px var(--pg-primary);
}

.pg-balance-status {
    font-size: 14px;
    font-weight: 600;
}

.pg-balance-perfect { color: var(--pg-success); }
.pg-balance-good { color: var(--pg-primary); }
.pg-balance-ok { color: var(--pg-warning); }
.pg-balance-bad { color: var(--pg-danger); }

.pg-teams-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
    align-items: start;
    margin-bottom: 40px;
}

.pg-team {
    border: 1px solid var(--pg-border);
    border-radius: var(--pg-radius);
    padding: 32px 24px;
    text-align: center;
}

.pg-team-a {
    background: linear-gradient(180deg, rgba(103, 58, 183, 0.3) 0%, var(--pg-card) 100%);
}

.pg-team-b {
    background: linear-gradient(180deg, rgba(0, 150, 136, 0.3) 0%, var(--pg-card) 100%);
}

.pg-team-name {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.pg-team-score {
    font-size: 72px;
    font-weight: 700;
    color: var(--pg-primary);
    line-height: 1;
    margin: 0 0 24px 0;
}

.pg-vs {
    width: 60px;
    height: 60px;
    background: var(--pg-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    margin-top: 100px;
}

.pg-team-player {
    background: #1A1A1A;
    border: 1px solid var(--pg-border);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    text-align: right;
}

.pg-player-actions {
    display: flex;
    gap: 8px;
    margin-right: auto;
}

.pg-action-btn {
    width: 50px;
    height: 50px;
    background: var(--pg-border);
    border: none;
    border-radius: var(--pg-radius-sm);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pg-text);
}

.pg-action-btn:hover:not(:disabled):not(.disabled) {
    background: var(--pg-primary);
}

.pg-action-btn:disabled,
.pg-action-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--pg-border);
}

.pg-action-btn i {
    width: 24px;
    height: 24px;
    stroke-width: 2;
}

.pg-lock-btn.locked {
    background: var(--pg-warning);
}

.pg-split-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.pg-jersey-notice,
.pg-jersey-assign {
    text-align: center;
    margin-top: 32px;
    padding: 16px;
    background: var(--pg-card);
    border-radius: var(--pg-radius);
}

.pg-jersey-notice {
    color: var(--pg-primary);
    font-weight: 600;
}

/* ========================================
   ORGANIZER (תמונה 5)
   ======================================== */

.pickup-organizer {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: 80vh;
}

.pg-sidebar {
    background: var(--pg-card);
    padding: 24px;
    border-radius: var(--pg-radius) 0 0 var(--pg-radius);
}

.pg-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pg-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: 12px;
    color: var(--pg-text-muted);
    text-decoration: none;
    transition: all 0.3s;
}

.pg-menu-item:hover {
    background: #2A2A2A;
    color: var(--pg-text);
}

.pg-menu-item.active {
    background: var(--pg-primary);
    color: var(--pg-bg);
}

.pg-main {
    padding: 40px;
}

.pg-organizer-section {
    display: none;
}

.pg-organizer-section.active {
    display: block;
}

.pg-games-selector {
    margin-bottom: 20px;
    padding: 15px;
    background: #1A1A1A;
    border-radius: 8px;
}

.pg-games-selector label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}

.pg-games-selector select {
    width: 100%;
    padding: 10px;
    background: var(--pg-bg);
    color: var(--pg-text);
    border: 1px solid var(--pg-border);
    border-radius: 8px;
    font-size: 16px;
}

.pg-content-card {
    background: #1A1A1A;
    border: 1px solid var(--pg-border);
    border-radius: var(--pg-radius);
    padding: 24px;
}

.pg-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.pg-card-header h2 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.pg-table {
    width: 100%;
    border-collapse: collapse;
}

.pg-table th {
    text-align: right;
    padding: 12px 16px;
    color: var(--pg-text-muted);
    font-weight: 500;
    font-size: 12px;
    border-bottom: 1px solid var(--pg-border);
}

.pg-table td {
    padding: 16px;
    border-bottom: 1px solid #222;
}

.pg-table tr:hover {
    background: #222;
}

.pg-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.pg-dot-open { background: var(--pg-success); }
.pg-dot-almost { background: var(--pg-warning); }
.pg-dot-full { background: var(--pg-danger); }

.pg-actions button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.3s;
}

.pg-actions button:hover {
    background: var(--pg-border);
}

.pg-empty-row {
    text-align: center;
    color: var(--pg-text-muted);
}

/* ========================================
   MODAL
   ======================================== */

.pg-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.pg-modal.show {
    display: flex;
}

.pg-modal-content {
    background: var(--pg-card);
    border: 1px solid var(--pg-border);
    border-radius: var(--pg-radius);
    padding: 32px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.pg-modal-content h3 {
    margin: 0 0 24px 0;
    font-size: 24px;
    text-align: right;
}

/* ========================================
   LOGIN
   ======================================== */

.pickup-login {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
}

.pg-login-card {
    background: #1A1A1A;
    border: 1px solid var(--pg-border);
    border-radius: var(--pg-radius);
    padding: 40px;
    max-width: 330px;
    width: 100%;
    text-align: center;
}

.pg-login-card h2 {
    margin: 0 0 8px 0;
}

.pg-login-card p {
    color: var(--pg-text-muted);
    margin: 0 0 24px 0;
}

/* Google Sign-In button - full width; if not possible, centered */
.pickup-login .pg-google-btn-wrap,
.pickup-login #google-signin-container,
.pickup-login #google-signin-button-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.pickup-login #google-signin-container > div,
.pickup-login #google-signin-button-container > div {
    width: 100% !important;
    max-width: 100%;
    display: flex !important;
    justify-content: center !important;
}
.pickup-login #google-signin-container iframe,
.pickup-login #google-signin-button-container iframe {
    width: 100% !important;
    min-width: 100% !important;
}
/* כפתור "המשך עם טלפון" – כמו משחקים קרובים: ירוק ליים, רוחב מלא */
.pickup-login #pg-login-form .pg-btn-primary.pg-btn-full {
    width: 100%;
    border-radius: 50px;
    padding: 12px 24px;
    font-weight: 600;
    border: none;
}

/* ========================================
   EMPTY / ERROR
   ======================================== */

.pg-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--pg-text-muted);
}

.pickup-error {
    text-align: center;
    padding: 40px;
    color: var(--pg-danger);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
    .pg-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pg-content {
        grid-template-columns: 1fr;
    }
    
    .pg-content-row {
        grid-template-columns: 1fr;
    }
    
    .pg-participants-card,
    .pg-form-card {
        order: unset;
    }
    
    .pg-form-card.pg-form-card-sticky {
        position: static;
    }
    
    .pg-teams-grid {
        grid-template-columns: 1fr;
    }
    
    .pg-vs {
        margin: 20px auto;
    }
    
    .pickup-organizer {
        grid-template-columns: 1fr;
    }
    
    .pg-sidebar {
        display: none;
    }
    
    .pg-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .pickup-container {
        padding: 8px;
        max-width: 100%;
    }
    
    /* My Games Page Header */
    .pickup-my-games .pg-header {
        margin-bottom: 30px;
    }

    .pickup-my-games .pg-header-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
        margin-bottom: 15px;
    }

    .pickup-my-games .pg-header-text {
        flex: 1;
    }

    .pickup-my-games .pg-profile-avatar {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
        font-size: 20px;
        color: #fff;
        flex-shrink: 0;
        overflow: hidden;
    }

    .pickup-my-games .pg-profile-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
    }

    .pickup-my-games .pg-btn-logout {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }
    
    /* My Games Page Header - Mobile */
    .pickup-my-games .pg-header-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .pickup-my-games .pg-profile-avatar {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
    
    .pickup-my-games .pg-btn-logout {
        width: 100%;
        max-width: none;
    }
    
    .pg-header {
        margin-bottom: 20px;
        padding: 0 8px;
    }
    
    .pg-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 0 4px;
    }
    
    .pg-title {
        font-size: 24px;
        line-height: 1.3;
    }
    
    .pg-subtitle {
        font-size: 13px;
        margin-bottom: 8px;
    }
    
    .pg-hero {
        padding: 20px 12px;
        margin-bottom: 16px;
        border-radius: 12px;
    }
    
    .pg-hero-title {
        font-size: 24px;
        margin-bottom: 16px;
        line-height: 1.3;
    }
    
    .pg-countdown {
        position: static;
        font-size: 12px;
        padding: 6px 12px;
        margin-top: 16px;
        margin-bottom: 0;
        width: fit-content;
    }
    
    .pg-hero-info {
        flex-direction: column;
        gap: 16px;
    }
    
    .pg-info-item {
        flex-direction: row;
        align-items: center;
        padding: 12px;
        gap: 16px;
    }
    
    /* Keep icons same size as desktop (50px) on mobile */
    .pg-info-icon {
        width: 50px;
        height: 50px;
        min-width: 50px;
    }
    
    .pg-info-text {
        flex: 1;
    }
    
    .pg-info-label {
        font-size: 11px;
        display: block;
        margin-bottom: 4px;
    }
    
    .pg-info-value {
        font-size: 14px;
    }
    
    .pg-content {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .pg-content-row {
        grid-template-columns: 1fr;
    }
    
    .pg-participants-card,
    .pg-form-card {
        order: unset;
    }
    
    .pg-form-card.pg-form-card-sticky {
        position: static;
    }
    
    .pg-form-card,
    .pg-participants-card {
        padding: 16px 12px;
        border-radius: 12px;
    }
    
    .pg-form-header {
        margin-bottom: 16px;
    }
    
    .pg-form-header h2 {
        font-size: 18px;
    }
    
    .pg-form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .pg-form-group {
        margin-bottom: 14px;
    }
    
    .pg-form-group label {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .pg-form-group input,
    .pg-form-group select,
    .pg-form-group textarea {
        font-size: 16px;
        padding: 12px;
    }
    
    .pg-filters,
    .pg-tabs {
        flex-wrap: wrap;
        gap: 6px;
        padding: 0 4px;
    }
    
    .pg-filter,
    .pg-tab {
        padding: 8px 14px;
        font-size: 13px;
        flex: 1;
    }
    
    .pg-card:not(.pg-card-link) {
        padding: 14px;
        border-radius: 12px;
    }
    
    .pg-card-image {
        height: 140px;
    }
    
    .pg-card-group-image {
        height: 140px;
    }
    
    .pg-card-title {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .pg-card-meta {
        gap: 8px;
        margin-bottom: 10px;
    }
    
    .pg-card-footer {
        flex-direction: column-reverse;
        gap: 10px;
        margin-top: 12px;
    }
    
    .pg-btn {
        width: 100%;
        padding: 14px;
        font-size: 15px;
        border-radius: 8px;
    }
    
    .pg-players-list {
        gap: 10px;
    }
    
    .pg-player {
        padding: 10px;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .pg-player-rank {
        font-size: 14px;
        min-width: 24px;
    }
    
    .pg-player-avatar {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }
    
    .pg-player-info {
        flex: 1;
        min-width: 0;
    }
    
    .pg-player-name {
        font-size: 14px;
        display: block;
        margin-bottom: 4px;
    }
    
    .pg-player-meta {
        font-size: 11px;
    }
    
    .pg-player-stars {
        font-size: 12px;
        margin-top: 4px;
    }
    
    .pg-stats-row {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-bottom: 16px;
    }
    
    .pg-stat-box {
        padding: 12px;
    }
    
    .pg-stat-num {
        font-size: 24px;
    }
    
    .pg-stat-label {
        font-size: 11px;
    }
    
    .pg-table {
        font-size: 13px;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .pg-table thead {
        display: none;
    }
    
    .pg-table tbody {
        display: block;
    }
    
    .pg-table tr {
        display: block;
        margin-bottom: 12px;
        background: var(--pg-card);
        border-radius: 8px;
        padding: 12px;
    }
    
    .pg-table td {
        display: block;
        text-align: right;
        padding: 6px 0;
        border: none;
    }
    
    .pg-table td:before {
        content: attr(data-label);
        font-weight: 600;
        display: inline-block;
        min-width: 80px;
        margin-left: 8px;
    }
    
    .pickup-organizer {
        grid-template-columns: 1fr;
    }
    
    .pg-sidebar {
        display: none;
    }
    
    .pg-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .pg-stat-card {
        padding: 14px;
    }
    
    .pg-teams-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .pg-team {
        padding: 16px 12px;
    }
    
    .pg-vs {
        margin: 12px auto;
        font-size: 20px;
    }
    
    .pg-team-player {
        padding: 10px;
        margin-bottom: 8px;
    }
    
    .pg-modal-content {
        padding: 20px 12px;
        margin: 5% auto;
        width: 95%;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .pg-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
    }
    
    .pg-actions button {
        padding: 6px 10px;
        font-size: 11px;
        flex: 1;
        min-width: calc(50% - 2px);
    }
    
    .pg-spots-badge {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .pg-welcome {
        font-size: 14px;
        margin-bottom: 16px;
    }
}

@media (max-width: 480px) {
    .pickup-container {
        padding: 6px;
    }
    
    .pg-header {
        padding: 0 4px;
        margin-bottom: 16px;
    }
    
    .pg-title {
        font-size: 20px;
        line-height: 1.2;
    }
    
    .pg-subtitle {
        font-size: 12px;
    }
    
    .pg-hero-title {
        font-size: 20px;
        line-height: 1.2;
    }
    
    .pg-hero {
        padding: 16px 10px;
        margin-bottom: 12px;
    }
    
    .pg-countdown {
        position: static;
        font-size: 11px;
        padding: 5px 10px;
        margin-top: 12px;
        width: fit-content;
    }
    
    .pg-info-item {
        padding: 8px;
        gap: 10px;
    }
    
    .pg-info-icon {
        font-size: 18px;
        width: 32px;
        height: 32px;
        min-width: 32px;
    }
    
    .pg-info-label {
        font-size: 10px;
    }
    
    .pg-info-value {
        font-size: 13px;
    }
    
    .pg-card {
        padding: 12px;
    }
    
    .pg-card-image {
        height: 100px;
    }
    
    .pg-card-title {
        font-size: 15px;
    }
    
    .pg-form-card,
    .pg-participants-card {
        padding: 12px 10px;
    }
    
    .pg-form-header h2 {
        font-size: 16px;
    }
    
    /* Single game page – mobile */
    .pickup-single-game .pg-hero {
        padding: 16px 12px;
        margin: 0 -8px 16px;
        border-radius: 12px;
    }
    .pickup-single-game .pg-hero-title {
        font-size: 20px;
        line-height: 1.3;
    }
    .pickup-single-game .pg-hero-info {
        flex-wrap: wrap;
        gap: 10px;
    }
    .pickup-single-game .pg-content {
        gap: 16px;
    }
    .pickup-single-game .pg-form-card.pg-form-card-sticky {
        max-height: none;
        overflow-y: visible;
    }
    .pickup-single-game .pg-admin-panel {
        margin-top: 16px;
        padding: 16px 12px;
        border-radius: 12px;
    }
    .pickup-single-game .pg-admin-panel .pg-form-header h2 {
        font-size: 18px;
    }
    .pickup-single-game .pg-admin-panel .pg-registered-table-wrap {
        margin: 0 -12px;
        padding: 0 12px;
    }
    .pickup-single-game .pg-admin-panel .pg-registered-table,
    .pickup-single-game .widefat.pg-registered-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        font-size: 13px;
    }
    .pickup-single-game .pg-admin-panel .pg-registered-table table,
    .pickup-single-game .widefat.pg-registered-table {
        min-width: 320px;
    }
    .pickup-single-game .pg-admin-panel .pg-registered-table th,
    .pickup-single-game .pg-admin-panel .pg-registered-table td {
        padding: 8px 6px;
    }
    .pickup-single-game .pg-admin-panel .pg-btn-small {
        padding: 6px 10px;
        font-size: 12px;
    }
    .pickup-single-game .pg-player {
        flex-wrap: wrap;
        padding: 10px 8px;
    }
    .pickup-single-game .pg-admin-btns {
        width: 100%;
        justify-content: flex-start;
        margin-top: 6px;
    }
    .pickup-single-game .pg-admin-btns .pg-btn-small {
        flex: 1;
        min-width: 0;
    }
    .pickup-single-game .pg-admin-actions,
    .pickup-single-game .pg-admin-message {
        flex-wrap: wrap;
    }
    .pickup-single-game .pg-admin-message .pg-admin-message-text {
        min-height: 80px;
        width: 100%;
        box-sizing: border-box;
    }
    .pickup-single-game .pg-admin-message-options {
        flex-direction: column;
        gap: 8px;
    }
    .pickup-single-game .pg-pending-approval-section {
        padding: 12px;
    }
    .pickup-single-game .pg-pending-item {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .pickup-single-game .pg-pending-item .pg-btn {
        width: 100%;
    }
    
    .pg-stats-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .pg-stats-row {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    .pg-stat-box {
        padding: 10px;
    }
    
    .pg-stat-num {
        font-size: 20px;
    }
    
    .pg-player {
        padding: 8px;
        gap: 6px;
    }
    
    .pg-player-avatar {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .pg-player-name {
        font-size: 13px;
    }
    
    .pg-player-meta {
        font-size: 10px;
    }
    
    .pg-btn {
        padding: 12px;
        font-size: 14px;
    }
    
    .pg-filters,
    .pg-tabs {
        gap: 4px;
    }
    
    .pg-filter,
    .pg-tab {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .pg-teams-grid {
        gap: 12px;
    }
    
    .pg-team {
        padding: 12px 8px;
    }
    
    .pg-team-player {
        padding: 8px;
        margin-bottom: 6px;
    }
    
    .pg-modal-content {
        padding: 16px 10px;
        margin: 2% auto;
        width: 98%;
    }
    
    .pg-actions button {
        padding: 5px 8px;
        font-size: 10px;
    }
}

/* Mobile viewport fix */
@media (max-width: 768px) {
    html {
        -webkit-text-size-adjust: 100%;
    }
    
    body {
        -webkit-font-smoothing: antialiased;
    }
    
    input, textarea, select {
        font-size: 16px !important; /* Prevents zoom on iOS */
    }
}

/* ========================================
   UNIFIED NOTIFICATIONS (RTL, dark theme)
   ======================================== */
.pickup-notifications-container {
    position: fixed;
    top: 20px;
    right: 20px;
    left: 20px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}
@media (min-width: 600px) {
    .pickup-notifications-container {
        left: auto;
        width: 380px;
        max-width: calc(100% - 40px);
    }
}
.pickup-notification {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.4);
    pointer-events: auto;
    direction: rtl;
    text-align: right;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.3s, transform 0.3s;
    border: 1px solid rgba(255,255,255,0.08);
}
.pickup-notification-visible {
    opacity: 1;
    transform: translateX(0);
}
.pickup-notification-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.pickup-notification-content {
    flex: 1;
    min-width: 0;
}
.pickup-notification-title {
    display: block;
    font-weight: 600;
    font-size: 15px;
}
.pickup-notification-detail {
    display: block;
    font-size: 13px;
    opacity: 0.9;
    margin-top: 4px;
}
.pickup-notification-close {
    flex-shrink: 0;
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    opacity: 0.7;
    color: inherit;
}
.pickup-notification-close:hover {
    opacity: 1;
}
/* Success - dark theme */
.pickup-notification-success {
    background: var(--pg-card);
    color: #4ade80;
    border-color: rgba(74, 222, 128, 0.3);
}
.pickup-notification-success .pickup-notification-icon {
    background: rgba(74, 222, 128, 0.25);
    color: #4ade80;
}
.pickup-notification-success .pickup-notification-close {
    color: #4ade80;
}
/* Warning - dark theme */
.pickup-notification-warning {
    background: var(--pg-card);
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.3);
}
.pickup-notification-warning .pickup-notification-icon {
    background: rgba(251, 191, 36, 0.25);
    color: #fbbf24;
}
.pickup-notification-warning .pickup-notification-close {
    color: #fbbf24;
}
/* Info - dark theme */
.pickup-notification-info {
    background: var(--pg-card);
    color: #93c5fd;
    border-color: rgba(147, 197, 253, 0.3);
}
.pickup-notification-info .pickup-notification-icon {
    background: rgba(147, 197, 253, 0.25);
    color: #93c5fd;
}
.pickup-notification-info .pickup-notification-close {
    color: #93c5fd;
}
/* Error - dark theme */
.pickup-notification-error {
    background: var(--pg-card);
    color: #f87171;
    border-color: rgba(248, 113, 113, 0.3);
}
.pickup-notification-error .pickup-notification-icon {
    background: rgba(248, 113, 113, 0.25);
    color: #f87171;
}
.pickup-notification-error .pickup-notification-close {
    color: #f87171;
}

/* NP Facility Booking */
.np-booking-container .np-step { margin-bottom: 16px; }
.np-booking-container .np-step label { margin-left: 8px; }
.np-booking-container .np-filters input[type="date"],
.np-booking-container .np-filters select { color: #fff; }
.np-grid-table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.np-grid-table th, .np-grid-table td { padding: 10px; border: 1px solid var(--pg-border); text-align: center; }
.np-grid-table th { background: rgba(0,0,0,0.2); font-weight: 600; }
/* Sticky hours column (RTL) - stays visible when scrolling horizontally on mobile */
.np-table-scroll .np-col-hours {
    position: sticky;
    right: 0;
    min-width: 60px;
    background: var(--pg-card);
    z-index: 2;
    box-shadow: -4px 0 8px rgba(0,0,0,0.3);
}
.np-table-scroll .np-grid-table thead .np-col-hours { background: rgba(0,0,0,0.3); }
.np-slot-btn.np-free { background: var(--pg-primary); color: #000; border: none; padding: 8px 14px; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 13px; min-width: 70px; min-height: 38px; }
.np-slot-btn.np-free:hover { opacity: 0.9; }
.np-slot-held { display: inline-block; background: #ff9800; color: #000 !important; padding: 8px 14px; border-radius: 8px; font-weight: 600; font-size: 13px; min-width: 70px; min-height: 38px; line-height: 1.4; text-align: center; box-sizing: border-box; }
.np-grid-table td.np-slot-free,
.np-grid-table td.np-slot-held,
.np-grid-table td.np-slot-booked,
.np-grid-table td.np-slot-blocked {
    vertical-align: middle;
    text-align: center;
}
.np-slot-booked { color: var(--pg-text-muted); display: inline-block; padding: 8px 14px; min-width: 70px; min-height: 38px; line-height: 1.4; text-align: center; }
.np-slot-blocked { color: var(--pg-text-muted); display: inline-block; padding: 8px 14px; min-width: 70px; min-height: 38px; line-height: 1.4; text-align: center; }
.np-facility-card:hover { border-color: var(--pg-primary); }
.np-modal { display: flex; }

/* NP Booking Loader */
.np-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: np-spin 0.7s linear infinite;
}
.np-slot-btn.np-free .np-spinner { border-color: rgba(0,0,0,0.2); border-top-color: currentColor; }
.np-spinner-lg { width: 36px; height: 36px; border-width: 3px; margin: 0 auto 12px; display: block !important; }
@keyframes np-spin {
    to { transform: rotate(360deg); }
}
.np-slot-blocked { color: #dc3545; }
.np-notice { padding: 12px; border-radius: 8px; margin: 12px 0; }
.np-notice-warning { background: #fff3cd; color: #856404; }
.np-notice-success { background: #d4edda; color: #155724; }
.np-bookings-table { width: 100%; margin-top: 12px; }
.np-bookings-table th, .np-bookings-table td { padding: 8px; border: 1px solid #363b45; }
.np-bookings-table td:last-child { text-align: center; }
.np-cancel-booking {
    display: inline-block;
    padding: 6px 14px;
    font-size: 13px;
    background: transparent;
    color: #fff;
    border: 2px solid #dc3545;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
}
.np-cancel-booking:hover {
    background: rgba(220, 53, 69, 0.2);
}
