/* Find a Card Module Styles */

/* ==========================================================================
   MODAL CONTEXT - Ensure avatars are properly sized in modal
   ========================================================================== */
#findCardModal .player-avatar-wrapper,
#findCardModal .player-chip .player-avatar-wrapper {
    width: 1.75rem !important;
    height: 1.75rem !important;
    min-width: 1.75rem !important;
    min-height: 1.75rem !important;
    max-width: 1.75rem !important;
    max-height: 1.75rem !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
}

#findCardModal .player-avatar-wrapper img,
#findCardModal .player-avatar-wrapper .player-avatar-display,
#findCardModal .player-avatar-wrapper .player-avatar-popup-trigger,
#findCardModal .player-avatar-wrapper .player-avatar-popup-trigger img,
#findCardModal .player-chip img {
    width: 1.75rem !important;
    height: 1.75rem !important;
    min-width: 1.75rem !important;
    min-height: 1.75rem !important;
    max-width: 1.75rem !important;
    max-height: 1.75rem !important;
    border-radius: 50% !important;
    object-fit: cover !important;
}

/* Container for the module */
.find-card-module {
    margin-bottom: 1.5rem;
}

/* Collapsed state - Call to Action with League Branding */
.find-card-collapsed {
    background: linear-gradient(135deg,
        var(--league-primary, #3b82f6) 0%,
        var(--league-gradient, var(--league-primary, #2563eb)) 100%);
    border: none;
    border-radius: 0.75rem;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(var(--league-primary-rgb, 59, 130, 246), 0.3);
}

.find-card-collapsed:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(var(--league-primary-rgb, 59, 130, 246), 0.4);
}

/* Gradient animations */
@keyframes subtleGradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes rainbowShift {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

.find-card-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 0;
    position: relative;
}

.find-card-cta-icon {
    width: 2rem;
    height: 2rem;
    filter: brightness(0) invert(1) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.find-card-cta-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--league-primary-text, #ffffff);
    margin: 0;
    letter-spacing: -0.025em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.find-card-cta-arrow {
    font-size: 1rem;
    color: var(--league-primary-text, #ffffff);
    transition: transform 0.3s ease;
    opacity: 0.9;
}

/* When showing Your Card summary, position arrow absolutely */
.find-card-cta:has(.your-card-summary) .find-card-cta-arrow {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.find-card-collapsed:hover .find-card-cta-arrow {
    transform: translateX(4px);
}

.find-card-collapsed:hover .find-card-cta:has(.your-card-summary) .find-card-cta-arrow {
    transform: translateY(-50%) translateX(4px);
}

/* Expanded state */
.find-card-expanded {
    background: white;
    border: 1px solid var(--border-color, #e9ecef);
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.find-card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color, #e9ecef);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.find-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary, #212529);
}

.find-card-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--text-secondary, #6c757d);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.find-card-close:hover {
    background: var(--surface-1, #f8f9fa);
    color: var(--text-primary, #212529);
}

/* Friends section */
.friends-playing {
    padding: 0.75rem 1.5rem;
    background: var(--surface-1, #f8f9fa);
    border-bottom: 1px solid var(--border-color, #e9ecef);
}

.friends-playing-title {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary, #212529);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.friends-playing-title i {
    font-size: 0.75rem;
}

.friends-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Move-locked reason pill */
.move-locked-reason-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    background: var(--surface-1, #f8f9fa);
    color: var(--text-secondary, #6c757d);
    border: 1px solid var(--border-color, #e9ecef);
    line-height: 1;
    white-space: nowrap;
}

.move-locked-reason-pill i {
    font-size: 0.875rem;
    opacity: 0.9;
}

.move-locked-reason-pill .reason-text {
    font-size: 0.75rem;
}

/* Dark mode support */
[data-bs-theme="dark"] .move-locked-reason-pill {
    background: #1f2937;
    color: #cbd5e1;
    border-color: rgba(255, 255, 255, 0.12);
}

.friend-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 1.5rem;
    padding: 0.25rem 0.75rem 0.25rem 0.25rem;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    max-width: 180px;
}

.friend-chip::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
            90deg,
            transparent 0%,
            rgba(99, 102, 241, 0.05) 50%,
            transparent 100%
    );
    transition: left 0.4s ease;
}

.friend-chip:hover::before {
    left: 100%;
}

.friend-chip:hover {
    background: rgba(99, 102, 241, 0.04);
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.friend-chip:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(99, 102, 241, 0.2);
}

.friend-avatar-wrapper {
    flex-shrink: 0;
}

.friend-avatar-wrapper .player-avatar-display,
.friend-avatar-wrapper .initials-circle {
    width: 1.5rem !important;
    height: 1.5rem !important;
    font-size: 0.625rem !important;
}

.friend-avatar-wrapper img {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    object-fit: cover;
}

.friend-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    min-width: 0;
    flex: 1;
}

.friend-name {
    font-weight: 600;
    color: var(--text-primary, #212529);
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.friend-time {
    font-size: 0.625rem;
    color: var(--text-secondary, #6c757d);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    opacity: 0.8;
}

/* Time period sections */
.find-card-body {
    padding: 0;
}

.time-period-section {
    border-bottom: 1px solid var(--border-color, #e9ecef);
}

.time-period-section:last-child {
    border-bottom: none;
}

.time-period-header {
    padding: 1rem 1.5rem;
    background: var(--surface-1, #f8f9fa);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
}

.time-period-header:hover {
    background: var(--surface-2, #e9ecef);
}

.time-period-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.time-period-title {
    font-weight: 600;
    color: var(--text-primary, #212529);
}

.time-period-summary {
    font-size: 0.875rem;
    color: var(--text-secondary, #6c757d);
}

.time-period-activity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

/* ========================================
   Pulse Meter - Activity Indicator
   A radial gauge with pulsing core that
   conveys urgency through color and motion
   ======================================== */

.pulse-meter {
    position: relative;
    width: 1.75rem;
    height: 1.75rem;
    flex-shrink: 0;
}

.pulse-meter-ring {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.pulse-meter-track {
    fill: none;
    stroke: var(--border-color, #e5e7eb);
    stroke-width: 3;
}

.pulse-meter-fill {
    fill: none;
    stroke: var(--league-primary, #6366f1);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 97.4;  /* 2 * PI * 15.5 */
    stroke-dashoffset: 97.4; /* Start empty */
    transition: stroke-dashoffset 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                stroke 0.4s ease;
}

.pulse-meter-core {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.5rem;
    height: 0.5rem;
    transform: translate(-50%, -50%);
    background: var(--border-color, #d1d5db);
    border-radius: 50%;
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

/* Level states - controlled by data-level attribute */

/* Level 1: Low activity (1-25%) - Calm blue */
.pulse-meter[data-level="1"] .pulse-meter-fill {
    stroke: #60a5fa;
}
.pulse-meter[data-level="1"] .pulse-meter-core {
    background: #60a5fa;
    box-shadow: 0 0 6px rgba(96, 165, 250, 0.5);
    animation: pulse-slow 3s ease-in-out infinite;
}

/* Level 2: Moderate activity (26-50%) - Teal/cyan */
.pulse-meter[data-level="2"] .pulse-meter-fill {
    stroke: #2dd4bf;
}
.pulse-meter[data-level="2"] .pulse-meter-core {
    background: #2dd4bf;
    box-shadow: 0 0 8px rgba(45, 212, 191, 0.6);
    animation: pulse-medium 2s ease-in-out infinite;
}

/* Level 3: High activity (51-75%) - Warm amber */
.pulse-meter[data-level="3"] .pulse-meter-fill {
    stroke: #fbbf24;
}
.pulse-meter[data-level="3"] .pulse-meter-core {
    background: #fbbf24;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.7);
    animation: pulse-fast 1.2s ease-in-out infinite;
}

/* Level 4: Critical/Full (76-100%) - Hot coral/red */
.pulse-meter[data-level="4"] .pulse-meter-fill {
    stroke: #f472b6;
}
.pulse-meter[data-level="4"] .pulse-meter-core {
    background: #f472b6;
    box-shadow: 0 0 12px rgba(244, 114, 182, 0.8);
    animation: pulse-urgent 0.8s ease-in-out infinite;
}

/* Pulse animations with varying speeds */
@keyframes pulse-slow {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.15);
        opacity: 1;
    }
}

@keyframes pulse-medium {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.85;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
}

@keyframes pulse-fast {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.9;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.25);
        opacity: 1;
    }
}

@keyframes pulse-urgent {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.95;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 1;
    }
}

/* Dark mode adjustments */
[data-bs-theme="dark"] .pulse-meter-track {
    stroke: rgba(255, 255, 255, 0.15);
}

[data-bs-theme="dark"] .pulse-meter-core {
    background: rgba(255, 255, 255, 0.2);
}

[data-bs-theme="dark"] .pulse-meter[data-level="1"] .pulse-meter-core {
    background: #93c5fd;
    box-shadow: 0 0 8px rgba(147, 197, 253, 0.6);
}

[data-bs-theme="dark"] .pulse-meter[data-level="2"] .pulse-meter-core {
    background: #5eead4;
    box-shadow: 0 0 10px rgba(94, 234, 212, 0.6);
}

[data-bs-theme="dark"] .pulse-meter[data-level="3"] .pulse-meter-core {
    background: #fcd34d;
    box-shadow: 0 0 12px rgba(252, 211, 77, 0.7);
}

[data-bs-theme="dark"] .pulse-meter[data-level="4"] .pulse-meter-core {
    background: #fb7185;
    box-shadow: 0 0 14px rgba(251, 113, 133, 0.8);
}

.time-period-toggle {
    font-size: 1.25rem;
    color: var(--text-secondary, #6c757d);
    transition: transform 0.3s ease;
}

.time-period-section.collapsed .time-period-toggle {
    transform: rotate(-90deg);
}

.time-period-content {
    padding: 1rem 1.5rem;
    display: grid;
    gap: 1.25rem;  /* Spacing between tee time cards */
}

.time-period-section.collapsed .time-period-content {
    display: none;
}

/* ========================================
   Tee Time Cards - Premium Athletic Design
   ======================================== */

.find-card-module .tee-time-card {
    background: var(--surface-1, #ffffff);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.find-card-module .tee-time-card:hover {
    background: var(--surface-1, #ffffff);
    border-color: var(--league-primary, #6366f1);
    box-shadow: 0 4px 16px rgba(var(--league-primary-rgb, 99, 102, 241), 0.12);
    transform: translateY(-2px);
}

/* Card type accent - left border for special cards */
.card-type-accent {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 4px 0 0 4px;
}

.card-type-accent.party {
    background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
}

.card-type-accent.skins {
    background: linear-gradient(180deg, #10b981 0%, #059669 100%);
}

/* Fullness state backgrounds */
.find-card-module .tee-time-card.empty {
    background: var(--surface-1, #fafafa);
    border-color: var(--border-color, #e5e7eb);
    border-style: dashed;
}

.find-card-module .tee-time-card.needs-players {
    background: linear-gradient(135deg,
        rgba(var(--league-primary-rgb, 99, 102, 241), 0.04) 0%,
        var(--surface-1, #ffffff) 100%);
    border-color: rgba(var(--league-primary-rgb, 99, 102, 241), 0.25);
}

.find-card-module .tee-time-card.almost-full {
    background: linear-gradient(135deg,
        rgba(251, 146, 60, 0.08) 0%,
        var(--surface-1, #ffffff) 100%);
    border-color: rgba(251, 146, 60, 0.35);
}

.find-card-module .tee-time-card.full {
    background: linear-gradient(135deg,
        rgba(239, 68, 68, 0.06) 0%,
        var(--surface-1, #ffffff) 100%);
    border-color: rgba(239, 68, 68, 0.35);
}

/* Underfilled requirement banner */
.card-requirement-banner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: var(--theme-danger-bg, rgba(239, 68, 68, 0.12));
    border: 1px solid var(--theme-danger, #ef4444);
    color: var(--theme-danger, #dc2626);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}

.card-requirement-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--theme-danger-bg, rgba(239, 68, 68, 0.15));
    color: var(--theme-danger, #ef4444);
    flex-shrink: 0;
}

.card-requirement-text {
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    line-height: 1.4;
    color: var(--theme-text-primary, #1f2937);
}

/* Dark mode adjustments for requirement banner */
[data-bs-theme="dark"] .card-requirement-banner,
body.dark-mode .card-requirement-banner {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.18), rgba(185, 28, 28, 0.22));
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.2);
}

[data-bs-theme="dark"] .card-requirement-icon,
body.dark-mode .card-requirement-icon {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

[data-bs-theme="dark"] .card-requirement-text,
body.dark-mode .card-requirement-text {
    color: #fecaca;
}


/* Tee time info layout */
.find-card-module .tee-time-info {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    flex: 1;
    min-width: 0;
}

/* Time/Hole label - bold athletic style */
.tee-time-label-container {
    flex-shrink: 0;
}

.find-card-module .tee-time-label {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary, #1f2937);
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.tee-time-label .hole-prefix {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary, #6b7280);
    margin-right: 0.125rem;
}

.tee-time-label .hole-number {
    font-size: 1.125rem;
    font-weight: 800;
}

/* Unified badge system */
.card-badges {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex-shrink: 0;
}

.card-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.6875rem;
    font-weight: 600;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.card-badge i {
    font-size: 0.625rem;
}

.card-badge .badge-text {
    line-height: 1;
}

/* Party badge - gold/amber VIP feel */
.card-badge--party {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    box-shadow: 0 1px 2px rgba(217, 119, 6, 0.15);
}

.card-badge--party i {
    color: #f59e0b;
}

/* Skins badge - green money feel */
.card-badge--skins {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    box-shadow: 0 1px 2px rgba(16, 185, 129, 0.15);
}

.card-badge--skins i {
    color: #10b981;
}

/* Waiting badge - pulsing urgency */
.card-badge--waiting {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    animation: waitingPulse 2s ease-in-out infinite;
}

@keyframes waitingPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Card actions container */
.card-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* Players section */
.find-card-module .tee-time-players {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-left: auto;
}

/* Stacked avatars - overlapping style */
.player-avatars-stack {
    display: flex;
    flex-direction: row-reverse;
    margin-right: 0.25rem;
}

.player-avatars-stack .stacked-avatar,
.player-avatars-stack .player-avatar-display,
.player-avatars-stack .initials-circle {
    width: 28px !important;
    height: 28px !important;
    border-radius: 50%;
    border: 2px solid var(--surface-1, #ffffff);
    margin-right: -8px;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, z-index 0.2s ease;
}

.player-avatars-stack .stacked-avatar:first-child,
.player-avatars-stack .player-avatar-display:first-child,
.player-avatars-stack .initials-circle:first-child {
    margin-right: 0;
}

.player-avatars-stack:hover .stacked-avatar,
.player-avatars-stack:hover .player-avatar-display,
.player-avatars-stack:hover .initials-circle {
    margin-right: -4px;
}

.stacked-avatar--overflow {
    background: var(--league-primary, #6366f1);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6875rem;
    font-weight: 700;
    z-index: 5;
}

/* Fullness indicator - visual bar */
.fullness-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.fullness-bar {
    width: 40px;
    height: 4px;
    background: var(--border-color, #e5e7eb);
    border-radius: 2px;
    overflow: hidden;
}

.fullness-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s ease, background 0.3s ease;
    background: var(--league-primary, #6366f1);
}

/* Fill colors based on fullness */
.tee-time-card.needs-players .fullness-fill {
    background: var(--league-primary, #6366f1);
}

.tee-time-card.almost-full .fullness-fill {
    background: linear-gradient(90deg, #f59e0b, #f97316);
}

.tee-time-card.full .fullness-fill {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.fullness-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary, #6b7280);
    min-width: 2.5rem;
    text-align: right;
}

.fullness-text .player-fraction {
    font-variant-numeric: tabular-nums;
}

.fullness-text .fraction-separator {
    opacity: 0.5;
    margin: 0 0.0625rem;
}

.fullness-text .full-label {
    color: #dc2626;
    font-weight: 700;
    font-size: 0.6875rem;
    letter-spacing: 0.05em;
}

/* Legacy badge support (keep for backwards compatibility) */
.party-card-badge {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    font-size: 0.6875rem;
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
}

.party-card-badge i {
    font-size: 0.625rem;
    color: #f59e0b;
}

.skins-card-badge {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    font-size: 0.6875rem;
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
}

.skins-card-badge img {
    max-height: 0.875rem;
    width: auto;
    height: auto;
}

/* ========================================
   Skins Ticket - Premium Ticket Stub Design
   ======================================== */

.skins-ticket {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    overflow: hidden;
    position: relative;
}

.skins-ticket-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
}

.skins-ticket-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.skins-ticket-icon i {
    color: #ffffff;
    font-size: 1rem;
}

.skins-ticket-title-group {
    flex: 1;
    min-width: 0;
}

.skins-ticket-title {
    font-weight: 700;
    font-size: 0.9375rem;
    color: #065f46;
    letter-spacing: -0.01em;
}

.skins-ticket-amount {
    font-size: 0.8125rem;
    color: #047857;
    font-weight: 500;
}

.skins-ticket-players {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.375rem 0.75rem;
    background: rgba(16, 185, 129, 0.15);
    border-radius: 0.5rem;
}

.skins-player-count {
    font-size: 1.25rem;
    font-weight: 800;
    color: #047857;
    line-height: 1;
}

.skins-player-label {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #059669;
    font-weight: 600;
}

/* Ticket divider with notches */
.skins-ticket-divider {
    display: flex;
    align-items: center;
    position: relative;
    height: 16px;
}

.skins-ticket-notch {
    width: 16px;
    height: 16px;
    background: var(--surface-1, #ffffff);
    border-radius: 50%;
    position: absolute;
}

.skins-ticket-notch--left {
    left: -8px;
}

.skins-ticket-notch--right {
    right: -8px;
}

.skins-ticket-line {
    flex: 1;
    height: 1px;
    margin: 0 12px;
    background: repeating-linear-gradient(
        90deg,
        rgba(16, 185, 129, 0.4) 0px,
        rgba(16, 185, 129, 0.4) 4px,
        transparent 4px,
        transparent 8px
    );
}

.skins-ticket-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
}

.skins-stat {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 0.375rem;
    min-width: 80px;
}

.skins-stat--wide {
    flex: 1;
    min-width: 100%;
}

.skins-stat-value {
    font-weight: 700;
    font-size: 1rem;
    color: #065f46;
}

.skins-stat-value--small {
    font-size: 0.8125rem;
    font-weight: 600;
}

.skins-stat-label {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #047857;
    font-weight: 600;
}

/* Dark mode skins ticket */
[data-bs-theme="dark"] .skins-ticket {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.2) 100%);
    border-color: rgba(52, 211, 153, 0.3);
}

[data-bs-theme="dark"] .skins-ticket-title {
    color: #6ee7b7;
}

[data-bs-theme="dark"] .skins-ticket-amount {
    color: #a7f3d0;
}

[data-bs-theme="dark"] .skins-ticket-players {
    background: rgba(16, 185, 129, 0.2);
}

[data-bs-theme="dark"] .skins-player-count {
    color: #6ee7b7;
}

[data-bs-theme="dark"] .skins-player-label {
    color: #a7f3d0;
}

[data-bs-theme="dark"] .skins-ticket-notch {
    background: var(--surface-1, #1e293b);
}

[data-bs-theme="dark"] .skins-stat {
    background: rgba(30, 41, 59, 0.6);
}

[data-bs-theme="dark"] .skins-stat-value {
    color: #6ee7b7;
}

[data-bs-theme="dark"] .skins-stat-label {
    color: #a7f3d0;
}

/* Legacy skins-detail-card support */
.skins-detail-card {
    background: color-mix(in srgb, var(--theme-info, #60a5fa) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--theme-info, #60a5fa) 35%, transparent);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.skins-detail-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.skins-detail-icon {
    max-height: 1.75rem;
    width: auto;
    flex-shrink: 0;
}

.skins-detail-title {
    font-weight: 600;
    font-size: 1rem;
}

.skins-detail-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted, #64748b);
}

.skins-detail-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.skins-detail-item {
    background: rgba(255, 255, 255, 0.65);
    border-radius: 0.5rem;
    padding: 0.6rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    color: #0f172a;
}

.skins-detail-item--wide {
    grid-column: 1 / -1;
}

.skins-detail-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted, #64748b);
}

.skins-detail-value {
    font-weight: 600;
    font-size: 0.95rem;
}

[data-bs-theme="dark"] .skins-detail-card {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(96, 165, 250, 0.45);
}

[data-bs-theme="dark"] .skins-detail-item {
    background: rgba(15, 23, 42, 0.8);
    color: #e2e8f0;
}

[data-bs-theme="dark"] .skins-detail-label {
    color: rgba(148, 163, 184, 0.85);
}

/* ========================================
   Tee Time Expanded Details
   ======================================== */

.tee-time-details {
    background: var(--surface-1, #ffffff);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 0 0 0.75rem 0.75rem;
    padding: 1rem;
    margin-top: -1px;
    display: none;
    animation: slideReveal 0.25s ease-out;
}

@keyframes slideReveal {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tee-time-card.expanded {
    border-radius: 0.75rem 0.75rem 0 0;
    border-bottom-color: transparent;
}

.tee-time-card.expanded + .tee-time-details {
    display: block;
}

/* ========================================
   Teams Grid - Doubles/Team Events
   ======================================== */

.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

.team-card {
    background: var(--surface-1, #f9fafb);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 0.625rem;
    overflow: hidden;
    transition: all 0.2s ease;
}

.team-card:hover {
    border-color: var(--league-primary, #6366f1);
    box-shadow: 0 2px 8px rgba(var(--league-primary-rgb, 99, 102, 241), 0.1);
}

.team-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    background: linear-gradient(135deg,
        rgba(var(--league-primary-rgb, 99, 102, 241), 0.08) 0%,
        rgba(var(--league-primary-rgb, 99, 102, 241), 0.04) 100%);
    border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.team-number {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--league-primary, #6366f1);
}

.team-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary, #1f2937);
}

.team-members {
    padding: 0.625rem;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.team-member {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem;
    border-radius: 0.375rem;
    transition: background 0.15s ease;
}

.team-member:hover {
    background: rgba(var(--league-primary-rgb, 99, 102, 241), 0.05);
}

.team-member-avatar,
.team-member .player-avatar-display,
.team-member .initials-circle {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50%;
    flex-shrink: 0;
}

.team-member-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
}

.team-member-name {
    font-weight: 600;
    font-size: 0.8125rem;
    color: var(--text-primary, #1f2937);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.captain-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.625rem;
    font-weight: 600;
    color: #f59e0b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.captain-indicator i {
    font-size: 0.5625rem;
}

/* Empty team card */
.team-card--empty {
    border-style: dashed;
    background: transparent;
}

.empty-team-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    gap: 0.5rem;
}

.empty-team-icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--surface-2, #f3f4f6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary, #9ca3af);
}

.empty-team-icon-circle i {
    font-size: 1rem;
}

.empty-team-text {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary, #9ca3af);
}

/* Open slot card (for singles) */
.open-slot-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: transparent;
    border: 1px dashed var(--border-color, #d1d5db);
    border-radius: 0.5rem;
    color: var(--text-secondary, #9ca3af);
    font-size: 0.8125rem;
    font-weight: 500;
}

.open-slot-card i {
    font-size: 0.875rem;
    color: var(--league-primary, #6366f1);
    opacity: 0.6;
}

/* Legacy open-slot support */
.tee-time-details .open-slot {
    background: var(--surface-1, #f8f9fa);
    border: 1px dashed var(--border-color, #e9ecef);
    border-radius: 0.375rem;
    padding: 1rem;
    text-align: center;
    color: var(--text-secondary, #6c757d);
    font-style: italic;
}

.tee-time-details .player-cards-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

/* Desktop: 2-column grid for player cards */
@media (min-width: 768px) {
    .tee-time-details .player-cards-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

/* ========================================
   Details Footer - Contact Card Button
   ======================================== */

.details-footer {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color, #e5e7eb);
}

.contact-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--border-color, #d1d5db);
    border-radius: 0.5rem;
    color: var(--text-secondary, #6b7280);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.contact-card-btn:hover {
    background: var(--league-primary, #6366f1);
    border-color: var(--league-primary, #6366f1);
    color: #ffffff;
}

.contact-card-btn i {
    font-size: 0.875rem;
}

/* Legacy team/member row support */
.tee-time-details .team-group-compact {
    margin-bottom: 1rem;
}

.tee-time-details .team-members-row {
    margin-bottom: 0.5rem;
}

.tee-time-details .teams-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Footer */
.find-card-footer {
    padding: 1rem 1.5rem;
    background: var(--surface-1, #f8f9fa);
    border-top: 1px solid var(--border-color, #e9ecef);
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-secondary, #6c757d);
}

/* Tee time highlighting */
.find-card-module .tee-time-card.highlight {
    animation: highlight-pulse 2s ease-in-out;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

@keyframes highlight-pulse {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(99, 102, 241, 0.1);
    }
    50% {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
        background: rgba(99, 102, 241, 0.1);
    }
}

/* Auto-expanded section animation */
.time-period-section.auto-expanded .time-period-header {
    animation: auto-expand-highlight 1.5s ease-out;
}

@keyframes auto-expand-highlight {
    0% {
        background: var(--surface-1, #f8f9fa);
    }
    25% {
        background: rgba(99, 102, 241, 0.1);
        border-left: 4px solid var(--primary, #6366f1);
    }
    75% {
        background: rgba(99, 102, 241, 0.1);
        border-left: 4px solid var(--primary, #6366f1);
    }
    100% {
        background: var(--surface-1, #f8f9fa);
        border-left: none;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .find-card-cta-text {
        font-size: 1.125rem;
    }

    .friends-list {
        flex-direction: column;
    }

    .time-period-header {
        padding: 0.75rem 1rem;
    }

    .tee-time-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .tee-time-info {
        width: 100%;
        justify-content: space-between;
    }
}

/* Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.find-card-expanded {
    animation: slideDown 0.3s ease-out;
}

/* Schedule section styling (existing) */
.schedule-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color, #e9ecef);
}

.schedule-section h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* Dark Mode Support */
[data-bs-theme="dark"] {
    .find-card-module {
        --surface-1: #1e293b;
        --surface-2: #334155;
        --border-color: rgba(255, 255, 255, 0.2);
        --text-primary: #ffffff;
        --text-secondary: #e2e8f0;
        --primary: #818cf8;
    }

    /* League-branded collapsed card - dark mode */
    .find-card-collapsed {
        background: linear-gradient(135deg,
            var(--league-primary, #3b82f6) 0%,
            var(--league-gradient, var(--league-primary, #2563eb)) 100%);
        border: 1px solid rgba(255, 255, 255, 0.2);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    }

    .find-card-collapsed:hover {
        box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
    }

    .find-card-cta-text {
        color: var(--league-primary-text, #ffffff) !important;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
        font-weight: 700;
    }

    .find-card-cta-arrow {
        color: var(--league-primary-text, #ffffff) !important;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    }

    .find-card-cta-icon {
        filter: brightness(0) invert(1) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
    }

    .find-card-expanded {
        background: #0f172a;
        border-color: var(--border-color);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }

    .find-card-header {
        border-bottom-color: var(--border-color);
    }

    .find-card-title {
        color: var(--text-primary);
    }

    .find-card-close {
        color: var(--text-secondary);
    }

    .find-card-close:hover {
        background: var(--surface-1);
        color: var(--text-primary);
    }

    .friends-playing {
        background: var(--surface-1);
        border-bottom-color: var(--border-color);
    }

    .friends-playing-title {
        color: var(--text-primary);
    }

    .friend-chip {
        background: rgba(30, 41, 59, 0.8);
        border: 1px solid rgba(129, 140, 248, 0.2);
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    }

    .friend-chip::before {
        background: linear-gradient(
                90deg,
                transparent 0%,
                rgba(129, 140, 248, 0.1) 50%,
                transparent 100%
        );
    }

    .friend-chip:hover {
        background: rgba(129, 140, 248, 0.1);
        border-color: rgba(129, 140, 248, 0.5);
        box-shadow: 0 4px 12px rgba(129, 140, 248, 0.15);
    }

    .friend-chip:active {
        transform: translateY(0);
        box-shadow: 0 1px 3px rgba(129, 140, 248, 0.2);
    }

    .friend-name {
        color: var(--text-primary);
    }

    .friend-time {
        color: var(--text-secondary);
    }

    .time-period-section {
        border-bottom-color: var(--border-color);
    }

    .time-period-header {
        background: var(--surface-1);
    }

    .time-period-header:hover {
        background: var(--surface-2);
    }

    .time-period-title {
        color: var(--text-primary);
    }

    .time-period-summary {
        color: var(--text-secondary);
    }

    .time-period-toggle {
        color: var(--text-secondary);
    }

    .find-card-module .tee-time-card {
        background: var(--surface-1);
        border-color: var(--border-color);
    }

    .find-card-module .tee-time-card:hover {
        background: var(--surface-2);
        border-color: var(--primary);
        box-shadow: 0 2px 8px rgba(129, 140, 248, 0.2);
    }

    .find-card-module .tee-time-label {
        color: var(--text-primary);
    }

    .find-card-module .player-count {
        color: var(--text-secondary);
    }

    /* Card type accent - dark mode */
    .card-type-accent.party {
        background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 100%);
    }

    .card-type-accent.skins {
        background: linear-gradient(180deg, #34d399 0%, #10b981 100%);
    }

    /* Unified badges - dark mode */
    .card-badge--party {
        background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
        color: #78350f;
    }

    .card-badge--skins {
        background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
        color: #064e3b;
    }

    .card-badge--waiting {
        background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
        color: #78350f;
    }

    /* Stacked avatars - dark mode */
    .player-avatars-stack .stacked-avatar,
    .player-avatars-stack .player-avatar-display,
    .player-avatars-stack .initials-circle {
        border-color: var(--surface-1);
    }

    .stacked-avatar--overflow {
        background: var(--primary);
    }

    /* Fullness indicator - dark mode */
    .fullness-bar {
        background: var(--surface-2);
    }

    .fullness-text {
        color: var(--text-secondary);
    }

    .fullness-text .full-label {
        color: #f87171;
    }

    /* Legacy badges - dark mode */
    .party-card-badge {
        background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
        color: #78350f;
    }

    .skins-card-badge {
        background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
        color: #064e3b;
    }

    .tee-time-details {
        background: var(--surface-1);
        border-color: var(--border-color);
    }

    /* Team cards - dark mode */
    .team-card {
        background: var(--surface-2);
        border-color: var(--border-color);
    }

    .team-card:hover {
        border-color: var(--primary);
    }

    .team-card-header {
        background: linear-gradient(135deg,
            rgba(129, 140, 248, 0.12) 0%,
            rgba(129, 140, 248, 0.06) 100%);
        border-bottom-color: var(--border-color);
    }

    .team-number {
        color: var(--primary);
    }

    .team-name {
        color: var(--text-primary);
    }

    .team-member:hover {
        background: rgba(129, 140, 248, 0.08);
    }

    .team-member-name {
        color: var(--text-primary);
    }

    .captain-indicator {
        color: #fbbf24;
    }

    .team-card--empty {
        border-color: var(--border-color);
    }

    .empty-team-icon-circle {
        background: var(--surface-1);
        color: var(--text-secondary);
    }

    .empty-team-text {
        color: var(--text-secondary);
    }

    .open-slot-card {
        border-color: var(--border-color);
        color: var(--text-secondary);
    }

    .open-slot-card i {
        color: var(--primary);
    }

    /* Contact card button - dark mode */
    .details-footer {
        border-top-color: var(--border-color);
    }

    .contact-card-btn {
        border-color: var(--border-color);
        color: var(--text-secondary);
    }

    .contact-card-btn:hover {
        background: var(--primary);
        border-color: var(--primary);
        color: #0f172a;
    }

    .find-card-footer {
        background: var(--surface-1);
        border-top-color: var(--border-color);
        color: var(--text-secondary);
    }

    /* Alert styling in dark mode */

    .alert-info {
        background: rgba(129, 140, 248, 0.1);
        border: 1px solid rgba(129, 140, 248, 0.3);
        color: var(--text-primary);
    }

    .alert-info i {
        color: var(--primary);
    }

    /* Button styling in dark mode */

    .btn-primary {
        background: var(--primary);
        border-color: var(--primary);
        color: #0f172a;
    }

    .btn-primary:hover {
        background: #a5b4fc;
        border-color: #a5b4fc;
    }

    /* Existing player/team styles for dark mode */

    .player-card {
        background: var(--surface-2);
        border-color: var(--border-color);
    }

    /* Team display in tee time details - dark mode */

    .tee-time-details .teams-container {
        background: transparent;
    }

    .tee-time-details .team-group {
        background: var(--surface-1);
        border-color: var(--border-color);
    }

    .tee-time-details .team-header {
        background: var(--primary);
        border-bottom-color: var(--border-color);
    }

    .tee-time-details .team-players {
        background: transparent;
    }

    .tee-time-details .player-card {
        background: var(--surface-2);
        border-color: var(--border-color);
    }

    .tee-time-details .player-card:hover {
        border-color: var(--primary);
        box-shadow: 0 2px 4px rgba(129, 140, 248, 0.1);
    }

    .tee-time-details .player-card.team-member {
        border-left-color: var(--primary);
    }

    .tee-time-details .open-slot {
        background: var(--surface-1);
        border-color: var(--border-color);
        color: var(--text-secondary);
    }

    .player-name {
        color: var(--text-primary);
    }

    .player-pdga,
    .player-rating,
    .player-division {
        color: var(--text-secondary);
    }

    .open-slot {
        background: var(--surface-1);
        border-color: var(--border-color);
        color: var(--text-secondary);
    }

    .team-group {
        background: var(--surface-1);
        border-color: var(--border-color);
    }

    .team-header {
        border-bottom-color: var(--border-color);
    }

    .team-name {
        color: var(--text-primary);
    }

    .player-card.team-member {
        background: var(--surface-2);
        border-color: var(--border-color);
    }

    /* Schedule section dark mode */

    .schedule-section {
        border-top-color: var(--border-color);
    }

    .schedule-section h2 {
        color: var(--text-primary);
    }

    .list-group-item {
        background: var(--surface-1);
        border-color: var(--border-color);
        color: var(--text-primary);
    }

    .list-group-item:hover {
        background: var(--surface-2);
    }

    .list-group-item.active {
        background: var(--primary);
        border-color: var(--primary);
        color: #0f172a;
    }

    .list-group-item h5 {
        color: inherit;
    }

    .list-group-item p {
        color: inherit;
        opacity: 0.8;
    }

    .list-group-item small {
        color: inherit;
        opacity: 0.7;
    }

    /* Auto-expanded animation in dark mode */
    @keyframes auto-expand-highlight {
        0% {
            background: var(--surface-1);
        }
        25% {
            background: rgba(129, 140, 248, 0.2);
            border-left: 4px solid var(--primary);
        }
        75% {
            background: rgba(129, 140, 248, 0.2);
            border-left: 4px solid var(--primary);
        }
        100% {
            background: var(--surface-1);
            border-left: none;
        }
    }

    /* Enhanced Dark Mode Fixes for Tee Time Selection Modal */

    /* Fix the expanded modal background */

    .find-card-expanded {
        background: #1e293b !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6) !important;
    }

    /* Fix the header section */

    .find-card-header {
        background: #2d3748 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
        padding: 1.5rem !important;
    }

    .find-card-title {
        color: #ffffff !important;
        font-weight: 600 !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
    }

    .find-card-close {
        color: #94a3b8 !important;
        background: rgba(255, 255, 255, 0.1) !important;
        border: 1px solid transparent !important;
        transition: all 0.2s ease !important;
    }

    .find-card-close:hover {
        background: rgba(255, 255, 255, 0.2) !important;
        color: #ffffff !important;
        border-color: rgba(255, 255, 255, 0.3) !important;
    }

    /* Fix the time period sections */

    .time-period-section {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    }

    .time-period-header {
        background: #2d3748 !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        transition: all 0.3s ease !important;
    }

    .time-period-header:hover {
        background: #334155 !important;
        border-color: rgba(255, 255, 255, 0.2) !important;
        transform: translateX(2px) !important;
    }

    .time-period-title {
        color: #ffffff !important;
        font-weight: 600 !important;
        font-size: 1.125rem !important;
    }

    .time-period-summary {
        color: #94a3b8 !important;
        font-size: 0.875rem !important;
        font-weight: 500 !important;
    }

    /* Fix the toggle chevron */

    .time-period-toggle {
        color: #94a3b8 !important;
        background: rgba(255, 255, 255, 0.05) !important;
        border-radius: 50% !important;
        width: 1.5rem !important;
        height: 1.5rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        transition: all 0.3s ease !important;
    }

    .time-period-header:hover .time-period-toggle {
        color: #ffffff !important;
        background: rgba(255, 255, 255, 0.15) !important;
    }

    /* Fix the time period content background */

    .time-period-content {
        background: rgba(0, 0, 0, 0.2) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    }

    /* Fix the footer */

    .find-card-footer {
        background: #2d3748 !important;
        border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
        color: #cbd5e1 !important;
        font-weight: 500 !important;
    }

    .find-card-footer small {
        color: #e2e8f0 !important;
        font-size: 0.875rem !important;
    }

    /* Ensure all text is visible */

    .find-card-module * {
        color: inherit;
    }

    /* Fix tee time cards in dark mode */

    .find-card-module .tee-time-card {
        background: #2d3748 !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
    }

    .find-card-module .tee-time-card.empty {
        background: #2d3748 !important;
        border-color: rgba(255, 255, 255, 0.1) !important;
    }

    .find-card-module .tee-time-card.needs-players {
        background: linear-gradient(135deg,
        rgba(129, 140, 248, 0.2) 0%,
        rgba(168, 85, 247, 0.2) 100%) !important;
        border-color: rgba(129, 140, 248, 0.4) !important;
    }

    .find-card-module .tee-time-card.almost-full {
        background: linear-gradient(135deg,
        rgba(251, 146, 60, 0.25) 0%,
        rgba(236, 72, 153, 0.25) 100%) !important;
        border-color: rgba(251, 146, 60, 0.5) !important;
    }

    .find-card-module .tee-time-card.full {
        background: linear-gradient(135deg,
        rgba(239, 68, 68, 0.3) 0%,
        rgba(185, 28, 28, 0.3) 100%) !important;
        border-color: rgba(239, 68, 68, 0.6) !important;
        opacity: 0.85 !important;
    }

    .find-card-module .tee-time-card:hover {
        background: #334155 !important;
        border-color: #818cf8 !important;
        box-shadow: 0 4px 12px rgba(129, 140, 248, 0.4) !important;
        transform: translateY(-2px) !important;
    }

    /* Fix text colors in tee time cards */

    .find-card-module .tee-time-label {
        color: #ffffff !important;
        font-weight: 600 !important;
    }

    .find-card-module .player-count {
        color: #cbd5e1 !important;
    }

    /* Party card badge in dark mode */

    .party-card-badge {
        background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
        color: #000000 !important;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
    }

    .skins-card-badge {
        background: linear-gradient(135deg, #fbd38d 0%, #f97316 100%) !important;
        color: #1a202c !important;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25) !important;
    }
}

/* Your Card Summary Styles */
.your-card-summary {
    width: 100%;
}

/* ========================================
   Your Card Summary on League Gradient
   Ensure visibility against colored backgrounds
   ======================================== */

.find-card-collapsed .your-card-summary .your-card-title,
.find-card-collapsed .your-card-summary .your-card-time {
    color: var(--league-primary-text, #ffffff);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.find-card-collapsed .your-card-summary .your-card-title i,
.find-card-collapsed .your-card-summary .your-card-time i {
    color: var(--league-primary-text, #ffffff);
    opacity: 0.9;
}

/* Player chips need solid white background for contrast */
.find-card-collapsed .your-card-summary .player-chip {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    color: #1f2937;
}

.find-card-collapsed .your-card-summary .player-chip .player-name {
    color: #1f2937;
    font-weight: 500;
}

/* Empty/Open slots - semi-transparent white with dashed border */
.find-card-collapsed .your-card-summary .player-chip.empty {
    background: rgba(255, 255, 255, 0.2);
    border: 1px dashed rgba(255, 255, 255, 0.5);
    box-shadow: none;
}

.find-card-collapsed .your-card-summary .player-chip.empty .player-name,
.find-card-collapsed .your-card-summary .player-chip.empty i {
    color: var(--league-primary-text, #ffffff);
    opacity: 0.9;
}

.find-card-collapsed .your-card-summary .player-chip.empty .empty-avatar {
    background: rgba(255, 255, 255, 0.3);
    color: var(--league-primary-text, #ffffff);
}

/* Team badges and names */
.find-card-collapsed .your-card-summary .team-name-chip {
    background: rgba(255, 255, 255, 0.2);
    color: var(--league-primary-text, #ffffff);
    border-color: rgba(255, 255, 255, 0.3);
}

.find-card-collapsed .your-card-summary .player-chip.teammate {
    border: 2px solid rgba(255, 255, 255, 0.5);
}

/* "You" badge on gradient - needs to pop */
.find-card-collapsed .your-card-summary .you-badge {
    background: rgba(255, 255, 255, 0.95);
    color: var(--league-primary, #3b82f6);
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* Expand hint link */
.find-card-collapsed .your-card-summary .expand-hint {
    color: var(--league-primary-text, #ffffff);
    opacity: 0.85;
}

.find-card-collapsed .your-card-summary .expand-hint:hover {
    opacity: 1;
}

.find-card-collapsed .your-card-summary .expand-hint i {
    color: var(--league-primary-text, #ffffff);
}

/* Skins badge on gradient */
.find-card-collapsed .your-card-summary .skins-card-badge {
    background: rgba(255, 255, 255, 0.95);
    color: #047857;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Party Card Indicator */
.party-card-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: #ffc107;
    color: #000;
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    border-radius: 1rem;
    font-weight: 500;
    margin-left: 0.5rem;
}

.party-card-indicator i {
    font-size: 0.625rem;
}

.your-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.your-card-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary, #212529);
    margin: 0;
}

.your-card-title i {
    color: #10b981;
}

.your-card-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    color: var(--text-secondary, #6c757d);
}

.your-card-time i {
    font-size: 0.875rem;
}

.your-card-players {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

/* Mobile refinements: prevent skins badge overflow and improve layout */
@media (max-width: 575.98px) {
    .find-card-module .tee-time-info {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .find-card-module .skins-card-badge {
        margin-left: 0; /* avoid pushing past edge */
        max-width: 100%;
        white-space: normal; /* allow wrapping if needed */
        padding: 0.2rem 0.45rem; /* slightly tighter on mobile */
        font-size: 0.7rem;
    }

    .find-card-module .skins-card-badge__per-skin {
        display: none;
    }

    /* Your card summary badge placement */
    .your-card-summary .your-card-skins {
        margin-top: 0.25rem;
    }

    .your-card-summary .your-card-skins .skins-card-badge {
        margin-left: 0;
        max-width: 100%;
        white-space: normal;
    }
}

/* Remove this section - no longer needed with new team layout */

.player-chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--surface-2, #e9ecef);
    border: 1px solid var(--border-color, #dee2e6);
    border-radius: 2rem;
    padding: 0.25rem 0.75rem 0.25rem 0.25rem;
    font-size: 0.875rem;
}

.player-chip.empty {
    border-style: dashed;
    opacity: 0.6;
}

/* "YOU" placeholder - shown when user selects tee time before registering */
.player-chip.you-placeholder {
    background: linear-gradient(135deg,
        rgba(var(--league-primary-rgb, 59, 130, 246), 0.15) 0%,
        rgba(var(--league-primary-rgb, 59, 130, 246), 0.08) 100%);
    border: 2px solid var(--league-primary, #3b82f6);
    box-shadow: 0 0 0 3px rgba(var(--league-primary-rgb, 59, 130, 246), 0.15);
    animation: youPlaceholderPulse 2s ease-in-out infinite;
}

.player-chip.you-placeholder .you-badge {
    background: var(--league-primary, #3b82f6);
    color: var(--league-primary-text, #fff);
    font-weight: 600;
}

@keyframes youPlaceholderPulse {
    0%, 100% {
        box-shadow: 0 0 0 3px rgba(var(--league-primary-rgb, 59, 130, 246), 0.15);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(var(--league-primary-rgb, 59, 130, 246), 0.08);
    }
}

/* Dark mode support for YOU placeholder */
[data-bs-theme="dark"] .player-chip.you-placeholder {
    background: linear-gradient(135deg,
        rgba(var(--league-primary-rgb, 59, 130, 246), 0.25) 0%,
        rgba(var(--league-primary-rgb, 59, 130, 246), 0.12) 100%);
}

.player-avatar-wrapper {
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    overflow: hidden;
}

.player-avatar-wrapper .player-avatar-popup-trigger {
    width: 1.75rem !important;
    height: 1.75rem !important;
    display: block !important;
}

.player-avatar-wrapper .player-image,
.player-avatar-wrapper .player-avatar-display,
.player-avatar-wrapper .initials-circle,
.player-avatar-wrapper img {
    width: 1.75rem !important;
    height: 1.75rem !important;
    max-width: 1.75rem !important;
    max-height: 1.75rem !important;
    font-size: 0.75rem !important;
    border-radius: 50%;
    object-fit: cover;
}

.empty-avatar {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: var(--surface-1, #f8f9fa);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--text-secondary, #6c757d);
}

/* Team slot styling for doubles/team events */
.team-slot.empty {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--surface-2, #e9ecef);
    border: 2px dashed var(--border-color, #dee2e6);
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    margin-top: 0.5rem;
    width: 100%;
    opacity: 0.6;
}

.empty-team-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.375rem;
    background: var(--surface-1, #f8f9fa);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--text-secondary, #6c757d);
}

.team-slot-label {
    font-size: 0.875rem;
    color: var(--text-secondary, #6c757d);
    font-style: italic;
}

.player-name {
    color: var(--text-primary, #212529);
}

.you-badge {
    background: var(--primary, #6366f1);
    color: white;
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    border-radius: 1rem;
    font-weight: 500;
}

/* Team-related styles */
.team-group-compact {
    margin-bottom: 0.75rem;
}

.team-name-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary, #6366f1);
    color: white;
    padding: 0.25rem 0.625rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
}

.team-name-chip i {
    font-size: 0.875rem;
}

.team-members-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-left: 1rem;
}

.player-chip.teammate {
    border: 2px solid var(--primary, #6366f1);
}

.captain-badge {
    color: #ffc107;
    font-size: 0.625rem;
    margin-left: 0.25rem;
}

.expand-hint {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--text-secondary, #6c757d);
    font-style: italic;
}

.expand-hint i {
    font-size: 0.75rem;
}

/* Dark mode support for Your Card */
[data-bs-theme="dark"] {
    .your-card-title {
        color: var(--text-primary, #f1f5f9);
    }

    .your-card-time {
        color: var(--text-secondary, #94a3b8);
    }

    .player-chip {
        background: var(--surface-1, #1e293b);
        border-color: rgba(255, 255, 255, 0.1);
    }

    .player-chip.empty {
        border-color: rgba(255, 255, 255, 0.05);
    }

    .empty-avatar {
        background: var(--surface-2, #334155);
    }

    .player-name {
        color: var(--text-primary, #f1f5f9);
    }

    /* Team slot dark mode */

    .team-slot.empty {
        background: var(--surface-1, #1e293b);
        border-color: rgba(255, 255, 255, 0.1);
    }

    .empty-team-icon {
        background: var(--surface-2, #334155);
        color: var(--text-secondary, #94a3b8);
    }

    .team-slot-label {
        color: var(--text-secondary, #94a3b8);
    }

    .expand-hint {
        color: var(--text-secondary, #94a3b8);
    }

    /* Team group compact dark mode */

    .team-group-compact {
        /* Already inherits from parent */
    }

    .team-name-chip {
        background: var(--primary, #818cf8);
    }

    .team-members-row {
        /* Already inherits from parent */
    }

    .player-chip.teammate {
        border-color: var(--primary, #818cf8);
    }
}

/* Highlight animation for selected tee time */
.tee-time-card.highlight {
    animation: tee-time-highlight 2s ease-in-out;
    border-color: var(--primary, #6366f1) !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

@keyframes tee-time-highlight {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 0 6px rgba(99, 102, 241, 0.15);
    }
}

/* Split Request Waiting Badge */
.waiting-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--theme-warning-text, #92400e);
    background: var(--theme-warning-bg, rgba(251, 191, 36, 0.15));
    border: 1px solid var(--theme-warning, #f59e0b);
    border-radius: 1rem;
    margin-left: 0.5rem;
    white-space: nowrap;
}

/* Dark mode waiting badge */
[data-bs-theme="dark"] .waiting-badge {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.2);
    border-color: rgba(251, 191, 36, 0.5);
}

/* Split Request Button Styling */
.find-card-module .tee-time-card .btn-theme-secondary {
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.4);
    color: #4f46e5;
    font-weight: 600;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.find-card-module .tee-time-card .btn-theme-secondary:hover {
    background: rgba(99, 102, 241, 0.25);
    border-color: rgba(99, 102, 241, 0.6);
    color: #4338ca;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
}

/* Dark mode Request Split button */
[data-bs-theme="dark"] .find-card-module .tee-time-card .btn-theme-secondary {
    background: rgba(129, 140, 248, 0.25) !important;
    border: 1px solid rgba(129, 140, 248, 0.6) !important;
    color: #a5b4fc !important;
}

[data-bs-theme="dark"] .find-card-module .tee-time-card .btn-theme-secondary:hover {
    background: rgba(129, 140, 248, 0.4) !important;
    border-color: rgba(129, 140, 248, 0.8) !important;
    color: #c7d2fe !important;
    box-shadow: 0 2px 12px rgba(129, 140, 248, 0.3) !important;
}

/* Split Request Modal Info */
.split-request-info {
    background: var(--surface-1, #f8f9fa);
    border: 1px solid var(--border-color, #e9ecef);
    border-radius: 0.5rem;
    padding: 1rem;
}

[data-bs-theme="dark"] .split-request-info {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.1);
}

/* ========================================
   Premium Player Cards for Tee Time Details
   Refined roster-style cards with clear hierarchy
   ======================================== */

/* Player cards container - grid on desktop, stack on mobile */
.tee-time-details .player-cards-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .tee-time-details .player-cards-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

/* Premium player card with accent line */
.tee-time-details .player-card {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--surface-1, #f8f9fa);
    border: 1px solid var(--border-color, #e9ecef);
    border-radius: 0.5rem;
    border-left: 3px solid transparent;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
    position: relative;
}

.tee-time-details .player-card:hover {
    background: linear-gradient(135deg,
        rgba(var(--league-primary-rgb, 99, 102, 241), 0.04) 0%,
        var(--surface-1, #f8f9fa) 100%);
    border-left-color: var(--league-primary, #6366f1);
    transform: translateX(2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    text-decoration: none;
}

/* Player info layout - avatar + details */
.tee-time-details .player-info {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    flex: 1;
    min-width: 0;
}

/* Polished avatar with ring accent */
.tee-time-details .player-image,
.tee-time-details .initials-circle {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    font-size: 0.875rem !important;
    box-shadow: 0 0 0 2px var(--surface-1, #f8f9fa),
                0 0 0 3px rgba(var(--league-primary-rgb, 99, 102, 241), 0.2);
    transition: box-shadow 0.2s ease;
}

.tee-time-details .player-card:hover .player-image,
.tee-time-details .player-card:hover .initials-circle {
    box-shadow: 0 0 0 2px var(--surface-1, #f8f9fa),
                0 0 0 3px var(--league-primary, #6366f1);
}

/* Vertical details layout - name row + badges row */
.tee-time-details .player-details {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    min-width: 0;
    flex: 1;
}

/* Name row */
.tee-time-details .player-name-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Player name styling */
.tee-time-details .player-name {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text-primary, #212529);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

/* Badges row - all badges inline */
.tee-time-details .player-badges-row {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex-wrap: wrap;
}

/* Unified badge base styling */
.tee-time-details .player-division,
.tee-time-details .player-rating,
.tee-time-details .player-bagtag,
.tee-time-details .pdga-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.1875rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.6875rem;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.15s ease;
}

/* Division badge - primary accent */
.tee-time-details .player-division {
    background: linear-gradient(135deg,
        rgba(var(--league-primary-rgb, 99, 102, 241), 0.12) 0%,
        rgba(var(--league-primary-rgb, 99, 102, 241), 0.18) 100%);
    color: var(--league-primary, #6366f1);
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* Rating badge - success green */
.tee-time-details .player-rating {
    background: linear-gradient(135deg,
        rgba(34, 197, 94, 0.1) 0%,
        rgba(34, 197, 94, 0.16) 100%);
    color: #15803d;
}

/* PDGA link styling - using inline variant (no Bootstrap bg-secondary) */
.tee-time-details .pdga-link,
.player-badges-row .pdga-link,
.player-card .pdga-link {
    background: #dbeafe;  /* Light blue background */
    color: #1e40af;       /* Dark blue text - strong contrast */
    padding: 0.1875rem 0.5rem;
    border: 1px solid #60a5fa;
    border-radius: 0.25rem;
    font-size: 0.6875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
}

.tee-time-details .pdga-link:hover,
.player-badges-row .pdga-link:hover,
.player-card .pdga-link:hover {
    background: #bfdbfe;
    transform: translateY(-1px);
    text-decoration: none;
    color: #1e3a8a;
    border-color: #3b82f6;
}

.tee-time-details .pdga-link .pdga-icon-inline,
.player-card .pdga-link .pdga-icon-inline {
    height: 0.875em;
    opacity: 1;
}

/* Bag tag badge - warm gold */
.tee-time-details .player-bagtag {
    background: linear-gradient(135deg,
        rgba(251, 191, 36, 0.12) 0%,
        rgba(245, 158, 11, 0.18) 100%);
    color: #92400e;
}

.tee-time-details .player-bagtag i {
    font-size: 0.5625rem;
}

/* Open slots - refined dashed style */
.tee-time-details .open-slot {
    padding: 0.625rem 1rem;
    font-size: 0.8125rem;
    border-radius: 0.5rem;
}

.tee-time-details .open-slot-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: linear-gradient(135deg,
        rgba(var(--league-primary-rgb, 99, 102, 241), 0.03) 0%,
        transparent 100%);
    border: 1px dashed rgba(var(--league-primary-rgb, 99, 102, 241), 0.25);
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    color: var(--text-secondary, #6c757d);
    font-style: normal;
    font-weight: 500;
}

.tee-time-details .open-slot-summary i {
    color: var(--league-primary, #6366f1);
    opacity: 0.7;
}

/* ========================================
   Dark Mode Player Cards
   ======================================== */

[data-bs-theme="dark"] .tee-time-details .player-card {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(255, 255, 255, 0.08);
    border-left-color: transparent;
}

[data-bs-theme="dark"] .tee-time-details .player-card:hover {
    background: linear-gradient(135deg,
        rgba(129, 140, 248, 0.08) 0%,
        rgba(30, 41, 59, 0.9) 100%);
    border-left-color: #818cf8;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

[data-bs-theme="dark"] .tee-time-details .player-image,
[data-bs-theme="dark"] .tee-time-details .initials-circle {
    box-shadow: 0 0 0 2px rgba(30, 41, 59, 0.9),
                0 0 0 3px rgba(129, 140, 248, 0.3);
}

[data-bs-theme="dark"] .tee-time-details .player-card:hover .player-image,
[data-bs-theme="dark"] .tee-time-details .player-card:hover .initials-circle {
    box-shadow: 0 0 0 2px rgba(30, 41, 59, 0.9),
                0 0 0 3px #818cf8;
}

[data-bs-theme="dark"] .tee-time-details .player-name {
    color: #f1f5f9;
}

[data-bs-theme="dark"] .tee-time-details .player-division {
    background: linear-gradient(135deg,
        rgba(129, 140, 248, 0.2) 0%,
        rgba(129, 140, 248, 0.28) 100%);
    color: #a5b4fc;
}

[data-bs-theme="dark"] .tee-time-details .player-rating {
    background: linear-gradient(135deg,
        rgba(74, 222, 128, 0.15) 0%,
        rgba(74, 222, 128, 0.22) 100%);
    color: #4ade80;
}

[data-bs-theme="dark"] .tee-time-details .pdga-link,
[data-bs-theme="dark"] .player-badges-row .pdga-link,
[data-bs-theme="dark"] .player-card .pdga-link {
    background: #1e3a5f;  /* Dark blue background */
    color: #93c5fd;       /* Light blue text - strong contrast */
    border-color: #3b82f6;
}

[data-bs-theme="dark"] .tee-time-details .pdga-link:hover,
[data-bs-theme="dark"] .player-badges-row .pdga-link:hover,
[data-bs-theme="dark"] .player-card .pdga-link:hover {
    background: #1e40af;
    color: #bfdbfe;
    border-color: #60a5fa;
}

[data-bs-theme="dark"] .tee-time-details .player-bagtag {
    background: linear-gradient(135deg,
        rgba(251, 191, 36, 0.18) 0%,
        rgba(251, 191, 36, 0.25) 100%);
    color: #fbbf24;
}

[data-bs-theme="dark"] .tee-time-details .open-slot-summary {
    background: linear-gradient(135deg,
        rgba(129, 140, 248, 0.05) 0%,
        transparent 100%);
    border-color: rgba(129, 140, 248, 0.2);
    color: #94a3b8;
}

[data-bs-theme="dark"] .tee-time-details .open-slot-summary i {
    color: #818cf8;
}

/* ========================================
   Mobile Responsive
   ======================================== */

@media (max-width: 480px) {
    .tee-time-details .player-card {
        padding: 0.625rem 0.75rem;
    }

    .tee-time-details .player-info {
        gap: 0.625rem;
    }

    .tee-time-details .player-image,
    .tee-time-details .initials-circle {
        width: 38px !important;
        height: 38px !important;
    }

    .tee-time-details .player-name {
        font-size: 0.875rem;
        max-width: 140px;
    }

    .tee-time-details .player-badges-row {
        gap: 0.25rem;
    }

    .tee-time-details .player-division,
    .tee-time-details .player-rating,
    .tee-time-details .player-bagtag,
    .tee-time-details .pdga-link,
    .tee-time-details .pdga-link.badge {
        padding: 0.125rem 0.375rem !important;
        font-size: 0.625rem !important;
    }
}

/* ========================================
   Empty Tee Times Toggle & Container
   ======================================== */

/* Empty toggle button - positioned below active tee times */
.empty-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.625rem 1rem;
    background: var(--surface-2, #f8f9fa);
    border: 1px dashed var(--border-color, #dee2e6);
    border-radius: 0.5rem;
    color: var(--text-secondary, #6c757d);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.empty-toggle-btn:hover {
    background: rgba(var(--league-primary-rgb, 74, 85, 104), 0.1);
    border-color: var(--league-primary, #4a5568);
    color: var(--league-primary, #4a5568);
}

.empty-toggle-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(var(--league-primary-rgb, 74, 85, 104), 0.2);
}

.empty-toggle-btn i {
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}

.empty-toggle-btn.active i {
    transform: rotate(180deg);
}

/* Empty tee times divider */
.empty-tee-times-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1rem 0 0.75rem;
    color: var(--text-muted, #6c757d);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.empty-tee-times-divider::before,
.empty-tee-times-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color, #dee2e6);
}

/* Empty tee times container */
.empty-tee-times {
    opacity: 0.9;
}

.empty-tee-times .tee-time-card {
    border-style: dashed !important;
    opacity: 0.85;
}

.empty-tee-times .tee-time-card:hover {
    opacity: 1;
    border-style: solid !important;
}

/* Shotgun header for summary and toggle */
.shotgun-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color, #e9ecef);
}

.shotgun-summary {
    font-size: 0.875rem;
    color: var(--text-secondary, #6c757d);
    font-weight: 500;
}

/* Dark mode support for empty toggle */
[data-bs-theme="dark"] .empty-toggle-btn {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--text-secondary, #94a3b8);
}

[data-bs-theme="dark"] .empty-toggle-btn:hover {
    background: rgba(129, 140, 248, 0.15);
    border-color: rgba(129, 140, 248, 0.4);
    color: #a5b4fc;
}

[data-bs-theme="dark"] .empty-tee-times-divider {
    color: var(--text-muted, #64748b);
}

[data-bs-theme="dark"] .empty-tee-times-divider::before,
[data-bs-theme="dark"] .empty-tee-times-divider::after {
    background: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .shotgun-header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .shotgun-summary {
    color: var(--text-secondary, #94a3b8);
}

/* Mobile adjustments */
@media (max-width: 576px) {
    .time-period-header {
        padding: 0.75rem 1rem;
    }

    .time-period-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.125rem;
        flex: 1;
        min-width: 0;
    }

    .time-period-summary {
        font-size: 0.8125rem;
    }

    /* Hide the pulse meter on mobile to save space */
    .time-period-activity .pulse-meter {
        display: none;
    }
}

