/* ==========================================================
   TechSprintLab — Professional Custom Video Player
   YouTube IFrame API (No Direct Embed Frame Shown),
   Glassmorphism Light Classic Theme,
   Mobile Rotate-to-Fullscreen Support
   ========================================================== */

/* ---- Global Player Body ---- */
.player-body {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 40%, #f5f0ff 100%) !important;
    min-height: 100vh;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ---- Player Header: Glassmorphism ---- */
.player-header {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(18px) saturate(1.6) !important;
    -webkit-backdrop-filter: blur(18px) saturate(1.6) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.05) !important;
    position: sticky !important;
    top: 0;
    z-index: 100;
}

/* ---- KGS Top Player Header Elements ---- */
.kgs-back-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1e293b;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    text-decoration: none;
    font-size: 14px;
}
.kgs-back-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.kgs-nav-pill-group {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    padding: 3px;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.kgs-nav-pill-btn {
    border-radius: 9999px;
    padding: 4px 14px;
    font-size: 12px;
    font-weight: 600;
    border: none;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    line-height: 1.4;
}

.kgs-nav-pill-btn.active {
    background: #1e1b4b !important;
    color: #ffffff !important;
    box-shadow: 0 1px 4px rgba(30, 27, 75, 0.25);
}

.kgs-nav-pill-btn:hover:not(.active) {
    color: #0f172a;
}

.kgs-close-btn {
    color: #64748b;
    font-size: 18px;
    background: transparent;
    border: none;
    padding: 6px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.kgs-close-btn:hover {
    color: #0f172a;
}

/* ---- Video Stage Background (Clean Solid White below video) ---- */
.main-video-stage {
    background: #ffffff !important;
}

/* ---- Video Wrapper ---- */
.video-wrapper {
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    min-height: 280px !important;
    flex: 0 0 auto !important;
    flex-shrink: 0 !important;
    background: #000000 !important;
    overflow: hidden !important;
    user-select: none;
    border-radius: 0;
    display: block !important;
}

/* ── Layer 1: Clip Wrapper (persists after YT API replaces inner div with iframe) ──
   Handles overflow:hidden to clip YouTube top/bottom chrome */
#yt-clip-wrapper {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    background: #000 !important;
    pointer-events: none !important;
    border: none !important;
    z-index: 1 !important;
}

/* ── Layer 2: The YouTube iframe — Standard 100% YouTube 16:9 Size (Zero Zoom, Zero Content Cut-Off) ── */
#youtube-player-frame,
#yt-clip-wrapper iframe {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    transform: none !important;
    pointer-events: none !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}

/* ---- Video Loading Skeleton ---- */
.video-loading-skeleton {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #111118 25%, #1a1a2e 50%, #111118 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.6s ease-in-out infinite;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: opacity 0.5s ease;
}

.video-loading-skeleton.hidden {
    opacity: 0;
    pointer-events: none;
}

@keyframes skeletonShimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-spinner {
    width: 52px;
    height: 52px;
    border: 3px solid rgba(103, 61, 230, 0.25);
    border-top-color: #8b5cf6;
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

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

.skeleton-label {
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

/* ---- Full Clickable Surface — Intercepts clicks to toggle Play/Pause ---- */
.video-click-shield {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 60px);
    z-index: 15;
    cursor: pointer;
    background: transparent;
}



/* Volume Slider in Custom Controls */
.volume-slider-group {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.volume-slider-box {
    width: 0;
    overflow: hidden;
    transition: width 0.2s ease, opacity 0.2s ease;
    opacity: 0;
    display: flex;
    align-items: center;
}

.volume-slider-group:hover .volume-slider-box,
.volume-slider-group:focus-within .volume-slider-box {
    width: 72px;
    opacity: 1;
    margin-left: 6px;
}

.volume-range {
    height: 4px;
    accent-color: #8b5cf6;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.3);
}

/* ---- Top Controls Bar (Settings, Fullscreen) ---- */
.video-top-controls {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 22;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-wrapper:hover .video-top-controls,
.video-wrapper.controls-visible .video-top-controls,
.video-wrapper.is-paused .video-top-controls {
    opacity: 1;
}

.pk-icon-button-top {
    background: rgba(0, 0, 0, 0.45);
    border: none;
    color: #ffffff;
    width: 34px;
    height: 34px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 0;
}

.pk-icon-button-top:hover {
    background: rgba(103, 61, 230, 0.7);
    transform: scale(1.08);
}

.pk-icon-button-top svg {
    width: 18px;
    height: 18px;
    pointer-events: none;
}

/* 3. Top Sleek Mask — Subtle gradient for title/header area */
.video-shield-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
    z-index: 11;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-wrapper:hover .video-shield-top,
.video-wrapper.controls-visible .video-shield-top,
.video-wrapper.is-paused .video-shield-top {
    opacity: 1;
}

/* 4. Large Center Animated Play/Pause Indicator */
.big-play-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    width: 76px;
    height: 76px;
    background: rgba(103, 61, 230, 0.88);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    z-index: 15;
    pointer-events: none;
    opacity: 0;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: opacity 0.22s cubic-bezier(0.4, 0, 0.2, 1), transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(103, 61, 230, 0.55), 0 0 0 8px rgba(103, 61, 230, 0.15);
}

.big-play-indicator.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* 5. Floating Anti-Piracy Watermark */
.watermark-overlay {
    position: absolute;
    top: 20%;
    left: 20%;
    color: rgba(255, 255, 255, 0.20);
    font-size: 13px;
    font-weight: 600;
    pointer-events: none;
    user-select: none;
    z-index: 11;
    letter-spacing: 1px;
    animation: floatWatermark 25s infinite alternate ease-in-out;
}

@keyframes floatWatermark {
    0%   { top: 12%; left: 12%; }
    25%  { top: 70%; left: 28%; }
    50%  { top: 25%; left: 68%; }
    75%  { top: 75%; left: 55%; }
    100% { top: 20%; left: 20%; }
}

/* 6. Professional Bottom Controls Bar (Glassmorphism) */
.custom-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(5, 5, 20, 0.7) 38%, rgba(5, 5, 20, 0.96) 100%);
    z-index: 20;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.35s ease, transform 0.35s ease;
    padding: 10px 18px 14px 18px;
}

/* Auto-hide controls when playing after inactivity */
.video-wrapper.is-playing:not(.controls-visible) .custom-controls {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(8px);
}

.video-wrapper.is-playing.controls-visible .custom-controls,
.video-wrapper.is-paused .custom-controls {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0);
}

/* Control Buttons (Play, Skip, Volume, Fullscreen) */
.control-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    padding: 6px 8px;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.15s ease;
    line-height: 1;
}

.control-btn:hover {
    color: #c4b5fd;
    transform: scale(1.18);
}

.control-btn .btn-subtext {
    font-size: 9px;
    font-weight: 700;
    position: absolute;
    bottom: 2px;
    letter-spacing: -0.5px;
}

/* Time Display */
.time-display {
    font-variant-numeric: tabular-nums;
    font-size: 13px;
    user-select: none;
    letter-spacing: 0.02em;
}

/* Speed & Quality Badge Buttons */
.speed-badge-btn,
.quality-badge-btn {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 22px;
    padding: 3px 11px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.speed-badge-btn:hover,
.quality-badge-btn:hover {
    background: rgba(139, 92, 246, 0.35);
    border-color: rgba(139, 92, 246, 0.6);
    color: #ffffff;
}

/* 7. Professional Seekbar Range Slider */
.custom-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    transition: height 0.15s ease;
}

.custom-range:hover {
    height: 7px;
}

.custom-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #8b5cf6;
    border: 2px solid #ffffff;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.9);
    transition: transform 0.15s ease;
}

.custom-range:hover::-webkit-slider-thumb {
    transform: scale(1.3);
}

/* ---- Lecture Info Section: Crisp Solid Clean Background ---- */
.lecture-info-section {
    background: #ffffff !important;
    color: #1e293b !important;
    border-top: 1px solid #e2e8f0 !important;
}

/* ---- Playlist Sidebar: Glassmorphism ---- */
.playlist-sidebar {
    background: rgba(255, 255, 255, 0.68) !important;
    backdrop-filter: blur(20px) saturate(1.6) !important;
    -webkit-backdrop-filter: blur(20px) saturate(1.6) !important;
}

.playlist-sidebar .nav-tabs {
    background: rgba(248, 246, 255, 0.85) !important;
    border-bottom: 1px solid rgba(103, 61, 230, 0.12) !important;
}

.playlist-sidebar .nav-link {
    color: #64748b;
    font-weight: 500;
    border: none;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    border-radius: 0 !important;
}

.playlist-sidebar .nav-link.active {
    color: #673de6 !important;
    background: transparent !important;
    border-bottom: 2px solid #673de6 !important;
}

.playlist-sidebar .nav-link:hover:not(.active) {
    color: #8b5cf6;
    background: rgba(139, 92, 246, 0.05) !important;
}

/* ---- Cards in Notes/Tests Tab ---- */
.tab-pane .card {
    background: rgba(255, 255, 255, 0.82) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(103, 61, 230, 0.10) !important;
    border-radius: 12px !important;
}

/* ---- Playlist List Items ---- */
.list-group-item {
    background: transparent !important;
    transition: background 0.18s ease;
}

.list-group-item:hover:not(.active-lecture) {
    background: rgba(103, 61, 230, 0.04) !important;
}

/* Active Lecture in Playlist */
.active-lecture {
    background: rgba(103, 61, 230, 0.08) !important;
    border-left: 3px solid #673de6 !important;
}

.active-lecture .fw-semibold {
    color: #673de6 !important;
}

/* 8. Fullscreen & Mobile Rotate Fullscreen Support */
.video-wrapper:fullscreen,
.video-wrapper:-webkit-full-screen,
.video-wrapper:-moz-full-screen,
.video-wrapper:-ms-fullscreen {
    width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    aspect-ratio: auto !important;
    background: #000000 !important;
}

.video-wrapper:fullscreen iframe,
.video-wrapper:-webkit-full-screen iframe,
.video-wrapper:-moz-full-screen iframe,
.video-wrapper:-ms-fullscreen iframe {
    width: 100vw !important;
    height: 100vh !important;
}

/* ==========================================================
   9. Responsive Layout: Desktop vs Mobile
   ========================================================== */

/* Desktop Screens (>= 992px)
   Two-column: Left Video Stage, Right Playlist Sidebar (380px)
*/
@media (min-width: 992px) {
    body.player-body {
        height: 100vh !important;
        overflow: hidden !important;
    }

    .player-header {
        height: 58px;
    }

    .player-container {
        height: calc(100vh - 58px) !important;
        overflow: hidden !important;
    }

    .main-video-stage {
        flex: 1 1 auto !important;
        height: 100% !important;
        overflow-y: auto !important;
    }

    .video-wrapper {
        width: 100% !important;
        aspect-ratio: 16 / 9 !important;
        min-height: 380px !important;
        max-height: calc(100vh - 58px - 140px) !important;
        flex: 0 0 auto !important;
        flex-shrink: 0 !important;
    }

    /* Lecture info section below video */
    .lecture-info-section {
        padding: 20px 28px 24px 28px !important;
        max-width: 100%;
        border-top: 1px solid #f1f5f9;
    }

    .playlist-sidebar {
        width: 380px !important;
        min-width: 380px !important;
        max-width: 380px !important;
        height: 100% !important;
        overflow: hidden !important;
        border-left: 1px solid rgba(103, 61, 230, 0.12) !important;
    }

    .playlist-sidebar .tab-content {
        flex-grow: 1;
        overflow-y: auto !important;
    }
}

/* Mobile & Tablet Screens (< 992px)
   Vertical Stack: Header -> Full-Width 16:9 Video -> Other (Lecture details, Tabs, Content)
*/
@media (max-width: 991.98px) {
    body.player-body {
        height: auto !important;
        min-height: 100vh !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }

    .player-header {
        min-height: 54px;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .player-container {
        flex-direction: column !important;
        height: auto !important;
        min-height: auto !important;
        overflow: visible !important;
    }

    .main-video-stage {
        width: 100% !important;
        flex: 0 0 auto !important;
        overflow: visible !important;
    }

    .video-wrapper {
        width: 100% !important;
        aspect-ratio: 16 / 9 !important;
        max-height: none !important;
        border-radius: 0 !important;
    }

    /* Controls Bar Mobile Fine-tuning */
    .custom-controls {
        padding: 6px 8px 8px 8px !important;
    }

    .control-btn {
        padding: 4px 5px !important;
        font-size: 14px !important;
    }

    .control-btn svg {
        width: 18px !important;
        height: 18px !important;
    }

    .time-display {
        font-size: 11px !important;
        letter-spacing: -0.2px !important;
    }

    .speed-badge-btn,
    .quality-badge-btn {
        padding: 2px 6px !important;
        font-size: 11px !important;
    }

    /* Playlist Section Below Video & Lecture Info */
    .playlist-sidebar {
        width: 100% !important;
        min-width: 100% !important;
        height: auto !important;
        border-left: none !important;
        border-top: 1px solid rgba(103, 61, 230, 0.12) !important;
        overflow: visible !important;
    }

    .playlist-sidebar .tab-content {
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .playlist-sidebar .list-group-item {
        padding: 12px 14px !important;
    }
}

/* ==========================================================================
   Khan Global Studies (KGS) Player Style Enhancements
   ========================================================================== */

/* 1. Center 3-Button Overlay (Rewind 10s | Play/Pause | Forward 10s) */
.kgs-center-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    z-index: 18;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.video-wrapper:hover .kgs-center-overlay,
.video-wrapper.controls-visible .kgs-center-overlay,
.video-wrapper.is-paused .kgs-center-overlay {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.kgs-circle-btn {
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    padding: 0;
}

.kgs-circle-btn:hover {
    transform: scale(1.12);
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(255, 255, 255, 0.6);
    color: #ffffff;
}

.kgs-circle-btn:active {
    transform: scale(0.95);
}

.kgs-circle-btn-sm {
    width: 52px;
    height: 52px;
}

.kgs-circle-btn-lg {
    width: 68px;
    height: 68px;
    font-size: 24px;
    border-width: 2px;
}

/* 2. Sleek Custom Seek Bar */
.kgs-seek-bar {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.25);
    outline: none;
    cursor: pointer;
    transition: height 0.15s ease, background 0.15s ease;
}

.kgs-seek-bar:hover {
    height: 6px;
    background: rgba(255, 255, 255, 0.35);
}

.kgs-seek-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #8b5cf6;
    border: 2px solid #ffffff;
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.8);
    cursor: pointer;
    transition: transform 0.15s ease;
}

.kgs-seek-bar:hover::-webkit-slider-thumb {
    transform: scale(1.25);
}

/* 3. KGS Right Sidebar & Lecture Card Styling */
.kgs-section-header {
    background: #1e1b4b;
    border-radius: 12px;
    padding: 14px 16px;
    margin: 12px 14px 12px 14px;
    color: #ffffff;
}

.kgs-section-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #ffffff;
    letter-spacing: -0.2px;
}

.kgs-badge-pill {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    padding: 2.5px 10px;
    font-size: 11px;
    font-weight: 600;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.kgs-lecture-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    margin: 0 14px 10px 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.kgs-lecture-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.kgs-lecture-card.is-active {
    border: 2px solid #22c55e !important;
    background: #f0fdf4 !important;
}

.kgs-thumb-wrapper {
    width: 105px;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    background: #0f172a;
}

.kgs-play-badge {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.75);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.kgs-lecture-card.is-active .kgs-play-badge {
    background: #22c55e !important;
}

.kgs-card-title {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.kgs-lecture-card.is-active .kgs-card-title {
    color: #15803d;
}

.kgs-card-meta {
    font-size: 11px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ==========================================================
   Prime Destination Navigation Header (Curriculum, Notes, Free Tests)
   ========================================================== */
.prime-dest-wrapper {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.prime-dest-btn {
    border-radius: 12px !important;
    padding: 8px 4px !important;
    border: 1px solid #e2e8f0 !important;
    background: #f8fafc !important;
    color: #334155 !important;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
}

.prime-dest-btn .prime-dest-label {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.2px;
}

.prime-dest-btn .prime-dest-badge {
    display: inline-block;
    font-size: 8.5px;
    font-weight: 800;
    letter-spacing: 0.4px;
    padding: 2px 6px;
    border-radius: 9999px;
    margin-top: 3px;
    background: #e2e8f0;
    color: #475569;
}

.prime-dest-btn:hover:not(.active) {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
    transform: translateY(-1px);
}

.prime-dest-btn.active {
    background: linear-gradient(135deg, #0066ff 0%, #0047ba 100%) !important;
    border-color: #0052cc !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(0, 102, 255, 0.32) !important;
}

.prime-dest-btn.active .prime-dest-label i,
.prime-dest-btn.active .prime-dest-label span {
    color: #ffffff !important;
}

.prime-dest-btn.active .prime-dest-badge {
    background: rgba(255, 255, 255, 0.22) !important;
    color: #ffffff !important;
}

.prime-dest-btn:not(.active) .badge-notes {
    background: #fef3c7 !important;
    color: #d97706 !important;
}

.prime-dest-btn:not(.active) .badge-tests {
    background: #dcfce7 !important;
    color: #16a34a !important;
}


