/**
 * Player Utilities Styles v4.0.0
 * ------------------------------
 * Shared CSS for the Mafia player panel.
 * Contains all common styles for the day panel, night panel,
 * chat, warnings, toast notifications, modals, tabs,
 * carousels, death cards, and other reusable components.
 *
 * Updated with:
 *   - Fullscreen background image for welcome screen (no circular avatar)
 *   - Bomb red box styling
 *   - Silence indicator
 *   - Improved grid layout for players (full width, responsive)
 *   - Death cards lightbox
 *   - Mobile fullscreen support
 *   - ★★★ رفع مشکل اسکرول درونی در پنل روز (مشکل 9) ★★★
 *   - ★★★ اسلایدر موبایل 3 کارتی (مشکل 10) ★★★
 *   - ★★★ رفع پرش تب‌ها و محتوای چت/یادداشت (مشکل 20) ★★★
 */

/* ============================================================
   Font Faces (Iranic)
   ============================================================ */
@font-face {
    font-family: 'iran';
    src: url('../fonts/iran.woff2') format('woff2'),
         url('../fonts/iran.woff')  format('woff'),
         url('../fonts/iran.ttf')   format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'iran';
    src: url('../fonts/iran.woff2') format('woff2'),
         url('../fonts/iran.woff')  format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* ============================================================
   CSS Reset & Base
   ============================================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'iran', Tahoma, Arial, sans-serif;
    background: radial-gradient(ellipse at top center, #0f1530 0%, #06080f 70%);
    min-height: 100vh;
    direction: rtl;
    color: #ffffff;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
}

#wpadminbar {
    display: none !important;
}

html {
    margin-top: 0 !important;
}

/* ============================================================
   ★★★ صفحه خوش‌آمدگویی با بک‌گراند تمام صفحه و بدون عکس دایره ★★★
   ============================================================ */
.loading-profile {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, #0f1530 0%, #06080f 100%);
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
    animation: fadeInUp 0.5s ease;
    text-align: center;
    padding: 20px;
}

/* حذف عکس دایره */
.loading-profile img {
    display: none !important;
}

.welcome-name {
    font-size: 28px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    margin-bottom: 10px;
}

.welcome-code, .welcome-seat {
    font-size: 14px;
    color: #f1c40f;
    background: rgba(0,0,0,0.6);
    padding: 5px 15px;
    border-radius: 30px;
    display: inline-block;
    margin-bottom: 8px;
}

/* اطلاعات پایین صفحه */
#welcome-bottom-info {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 12px;
    color: #aaa;
    background: rgba(0,0,0,0.5);
    padding: 8px;
    border-radius: 20px;
    margin: 0 20px;
}

/* ============================================================
   Toast Notification Container
   ============================================================ */
#mtoast-container {
    position: fixed;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 90%;
    max-width: 500px;
    pointer-events: none;
}

.mtoast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 16px;
    font-size: 15px;
    font-weight: bold;
    color: #fff;
    pointer-events: auto;
    animation: toastSlideIn 0.4s ease-out;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.mtoast.success { background: linear-gradient(135deg, #2ecc71, #27ae60); }
.mtoast.error   { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.mtoast.warning { background: linear-gradient(135deg, #e67e22, #d35400); }
.mtoast.info    { background: linear-gradient(135deg, #3498db, #2980b9); }

.mtoast-icon {
    font-size: 22px;
    flex-shrink: 0;
}

.mtoast-text {
    flex: 1;
}

@keyframes toastSlideIn {
    from { opacity: 0; transform: translateY(-30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Player Header
   ============================================================ */
.player-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    background: rgba(15, 21, 48, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    margin-bottom: 16px;
    border: 1px solid rgba(241, 196, 15, 0.25);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    flex-wrap: wrap;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.player-avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 3px solid #00d2ff;
    object-fit: cover;
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.3);
}

.player-name {
    font-size: 14px;
    font-weight: bold;
    color: #fff;
}

#player-role-display {
    font-size: 13px;
    color: #00d2ff;
    cursor: pointer;
    margin-top: 3px;
    transition: color 0.3s;
}

#player-role-display.revealed {
    color: #f1c40f !important;
    font-weight: bold;
}

.player-seat-info {
    font-size: 12px;
    color: #f1c40f;
    margin-top: 2px;
}

.role-view-btn {
    background: #9b59b6;
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    margin-left: 8px;
    font-family: 'iran', sans-serif;
    transition: all 0.3s;
}

.role-view-btn:hover {
    background: #8e44ad;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(155, 89, 182, 0.5);
}

.logout-btn {
    background: rgba(255, 77, 109, 0.12);
    border: 1px solid rgba(255, 77, 109, 0.4);
    color: #ff4d6d;
    padding: 10px 18px;
    border-radius: 25px;
    cursor: pointer;
    font-family: 'iran', sans-serif;
    font-size: 13px;
    font-weight: bold;
    transition: all 0.3s;
    white-space: nowrap;
}

.logout-btn:hover {
    background: rgba(255, 77, 109, 0.25);
    border-color: #ff4d6d;
}

/* ============================================================
   WebSocket Status Indicator
   ============================================================ */
#ws-status-indicator {
    position: fixed;
    bottom: 15px;
    left: 15px;
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 22px;
    font-size: 11px;
    font-weight: bold;
    font-family: Tahoma, sans-serif;
    box-shadow: 0 3px 12px rgba(0,0,0,0.3);
    cursor: pointer;
    background: rgba(231,76,60,0.12);
    border: 1px solid rgba(231,76,60,0.3);
}

#ws-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e74c3c;
}

#ws-text {
    color: #e74c3c;
}

@keyframes wsPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.5; transform: scale(1.3); }
}

/* ============================================================
   Modals (Overlay + Box)
   ============================================================ */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease-out;
}

.modal-box {
    background: linear-gradient(165deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid #f1c40f;
    border-radius: 24px;
    padding: 24px;
    width: 92%;
    max-width: 450px;
    max-height: 85vh;
    overflow-y: auto;
    color: #fff;
    box-shadow: 0 25px 60px rgba(0,0,0,0.6);
}

.modal-title {
    color: #f1c40f;
    text-align: center;
    margin-bottom: 16px;
    font-size: 22px;
    font-weight: bold;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ============================================================
   Modal Buttons
   ============================================================ */
.btn-modal-close {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #f1c40f, #e67e22);
    border: none;
    border-radius: 14px;
    color: #000;
    font-family: 'iran', sans-serif;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 12px;
}

.btn-modal-close:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(241,196,15,0.4);
}

.btn-modal-cancel {
    width: 100%;
    padding: 14px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    color: #ccc;
    font-family: 'iran', sans-serif;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 12px;
}

.btn-modal-cancel:hover {
    background: rgba(231,76,60,0.2);
    border-color: #e74c3c;
    color: #e74c3c;
}

/* ============================================================
   Banner Notifications (Silence, Extra Time, Gun, Bomb, etc.)
   ============================================================ */
.silence-banner,
.extra-time-banner,
.bomb-banner,
.gun-banner,
.roulette-banner {
    display: block;
    padding: 8px 15px;
    border-radius: 10px;
    margin-bottom: 8px;
    font-size: 13px;
    text-align: center;
    font-weight: bold;
}

.silence-banner {
    background: linear-gradient(135deg, #e67e22, #d35400);
    color: #fff;
}

.extra-time-banner {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: #fff;
}

/* ★★★ باکس بمب (قرمز) ★★★ */
.bomb-banner {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #fff;
    animation: bombBlink 1.5s infinite;
    border: 2px solid #ff0000;
    box-shadow: 0 0 20px rgba(255,0,0,0.5);
}

.gun-banner {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: #fff;
}

.roulette-banner {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: #fff;
}

/* باکس محافظ */
.guard-banner {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: #fff;
    border: 2px solid #00d2ff;
}

@keyframes bombBlink {
    0%, 100% { box-shadow: 0 0 10px rgba(231,76,60,0.5); }
    50%      { box-shadow: 0 0 30px rgba(231,76,60,0.9); }
}

/* ============================================================
   Challenge Box (Day Panel)
   ============================================================ */
.challenge-box {
    contain: layout style;
    background: rgba(168, 85, 247, 0.08);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 10px;
    overflow: hidden;
}

/* بنر نفر فعال — غیرفعال (اطلاعات در باکس هیرو نمایش داده می‌شود) */
.day-speaker-top-banner {
    display: none !important;
}
.day-speaker-top-banner--mine {
    border-color: rgba(241, 196, 15, 0.65);
    background: linear-gradient(180deg, rgba(28, 22, 8, 0.98), rgba(18, 14, 6, 0.9));
}
.day-speaker-top-name {
    font-weight: 800;
    color: #fff;
    font-size: 1rem;
}
.day-speaker-top-seat {
    color: #f1c40f;
    font-weight: bold;
    font-size: 0.9rem;
}
.day-speaker-top-status {
    color: #2ecc71;
    font-weight: bold;
    font-size: 0.88rem;
}

/* هیرو نفر فعال — بالای صف چالش‌ها */
.day-queue-hero {
    position: relative;
    border-radius: 16px;
    margin-bottom: 14px;
    min-height: 118px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.12), rgba(46, 204, 113, 0.03));
    border: 2px solid rgba(46, 204, 113, 0.45);
    animation: dayQueueBorderGlow 2.8s linear infinite;
}

@keyframes dayQueueBorderGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.35), inset 0 0 0 1px rgba(46, 204, 113, 0.2); }
    50% { box-shadow: 0 0 18px 2px rgba(46, 204, 113, 0.55), inset 0 0 0 1px rgba(241, 196, 15, 0.35); }
}

.day-queue-hero--mine {
    border-color: #f1c40f;
    background: linear-gradient(135deg, rgba(241, 196, 15, 0.22), rgba(46, 204, 113, 0.08));
    box-shadow: 0 0 24px rgba(241, 196, 15, 0.25);
}

.day-queue-hero--idle {
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    animation: none;
    margin-bottom: 14px;
}

.day-queue-hero-glow {
    display: none;
}

.day-queue-hero-inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    z-index: 1;
}

.day-queue-hero-inner--idle {
    justify-content: center;
    flex-direction: column;
    padding: 22px 16px;
    gap: 8px;
}

.day-queue-idle-icon {
    font-size: 32px;
    opacity: 0.5;
}

.day-queue-idle-text {
    margin: 0;
    color: #888;
    font-size: 14px;
}

.day-queue-hero-photo-wrap {
    position: relative;
    flex-shrink: 0;
    width: 88px;
    height: 88px;
}

.day-queue-hero-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #2ecc71;
    box-shadow: 0 4px 20px rgba(46, 204, 113, 0.35);
}

.day-queue-hero--mine .day-queue-hero-photo {
    border-color: #f1c40f;
    box-shadow: 0 4px 20px rgba(241, 196, 15, 0.35);
}

.day-queue-hero-seat-badge {
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    background: #2ecc71;
    color: #000;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
}

.day-queue-hero--mine .day-queue-hero-seat-badge {
    background: #f1c40f;
}

.day-queue-hero-meta {
    flex: 1;
    min-width: 0;
}

.day-queue-hero-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: bold;
    color: #2ecc71;
    background: rgba(46, 204, 113, 0.15);
    padding: 3px 10px;
    border-radius: 12px;
    margin-bottom: 4px;
}

.day-queue-hero-name {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.day-queue-hero-sub {
    margin: 0;
    font-size: 12px;
    color: #aaa;
}

.day-queue-hero-turn {
    color: #f1c40f;
}

.day-queue-hero-timer-wrap {
    position: relative;
    flex-shrink: 0;
    width: 96px;
    height: 96px;
}

.day-queue-hero-timer-wrap.timer-urgent .day-queue-hero-timer-value {
    color: #e74c3c;
    animation: timerPulse 0.8s ease-in-out infinite;
}

.day-queue-hero-timer-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.day-queue-hero-timer-track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 6;
}

.day-queue-hero-timer-ring {
    fill: none;
    stroke: #2ecc71;
    stroke-width: 6;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.4s ease;
}

.day-queue-hero--mine .day-queue-hero-timer-ring {
    stroke: #f1c40f;
}

.day-queue-hero-timer-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.day-queue-hero-timer-label {
    font-size: 9px;
    color: #888;
    margin-bottom: 2px;
}

.day-queue-hero-timer-value {
    font-size: 20px;
    font-weight: bold;
    font-family: Consolas, monospace;
    font-variant-numeric: tabular-nums;
    min-width: 4.8ch;
    text-align: center;
    display: inline-block;
    color: #2ecc71;
    line-height: 1;
}

@keyframes timerPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.challenge-reserved-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(168, 85, 247, 0.12);
    border: 2px dashed #a855f7;
    border-radius: 14px;
    padding: 10px 12px;
    margin-bottom: 12px;
}

.challenge-reserved-box img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #a855f7;
    flex-shrink: 0;
}

.challenge-reserved-label {
    font-size: 12px;
    color: #a855f7;
    font-weight: bold;
}

.challenge-reserved-name {
    font-size: 15px;
    color: #fff;
    font-weight: bold;
}

.challenge-reserved-seat {
    font-size: 11px;
    color: #aaa;
}

.challenge-box-divider {
    height: 1px;
    background: rgba(168, 85, 247, 0.25);
    margin: 4px 0 12px;
}

.challenge-queue-count {
    font-size: 12px;
    color: #888;
    font-weight: normal;
    margin-right: 6px;
}

.challenge-queue-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.challenge-queue-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(168, 85, 247, 0.35);
    border-radius: 14px;
    padding: 14px 12px 12px;
}

.challenge-queue-timing {
    position: absolute;
    top: -8px;
    left: 12px;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 10px;
    border-radius: 10px;
}

.challenge-queue-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 0;
}

.challenge-queue-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 6px;
}

.challenge-queue-avatar.challenger {
    border: 2px solid #f1c40f;
    box-shadow: 0 0 12px rgba(241, 196, 15, 0.3);
}

.challenge-queue-avatar.target {
    border: 2px solid #a855f7;
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.3);
}

.challenge-queue-role {
    font-size: 9px;
    color: #888;
    margin-bottom: 2px;
}

.challenge-queue-name {
    font-size: 13px;
    font-weight: bold;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.challenge-queue-seat {
    font-size: 10px;
    color: #aaa;
    margin-top: 2px;
}

.challenge-queue-mid {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 4px;
}

.challenge-queue-arrow {
    font-size: 22px;
    line-height: 1;
}

.challenge-queue-mid-text {
    font-size: 9px;
    color: #a855f7;
    margin-top: 4px;
    white-space: nowrap;
}

.section-title-text {
    font-size: 15px;
    font-weight: bold;
    color: #a855f7;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.empty-state-text {
    text-align: center;
    color: #666;
    font-size: 14px;
    padding: 20px;
}

/* ============================================================
   Status Cards (Day Panel)
   ============================================================ */
.status-row {
    display: flex;
    gap: 14px;
    margin-bottom: 10px;
}

.status-card-item {
    flex: 1;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 20px 16px;
    text-align: center;
    transition: all 0.3s;
}

.status-card-item:hover {
    background: rgba(255,255,255,0.07);
    transform: translateY(-2px);
}

.status-value {
    font-size: 36px;
    font-weight: bold;
    color: #f1c40f;
    margin-bottom: 8px;
    text-shadow: 0 0 15px rgba(241,196,15,0.5);
}

.status-label {
    font-size: 13px;
    color: #aaa;
    font-weight: bold;
}

/* ============================================================
   Player panel layout – fixed tabs, scroll only inside panes
   ============================================================ */
#main-player-panel {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 70px);
    overflow: hidden;
}

#panel-content {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.day-player-panel-root {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.panel-tabs-section {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#panel-content .tab-content {
    flex: 1;
    min-height: 0;
    max-height: none;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

#panel-content .tab-pane.active {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    display: block;
}

#panel-content .bottom-buttons {
    flex-shrink: 0;
    margin-top: 8px;
}

/* ============================================================
   Tabs (Day Panel)
   ============================================================ */
.tab-bar {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.tab-button {
    flex: 1;
    min-width: 55px;
    padding: 14px 8px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: #aaa;
    border-radius: 16px;
    cursor: pointer;
    font-family: 'iran', sans-serif;
    font-size: 13px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s;
    position: relative;
}

.tab-button.active {
    background: rgba(0,210,255,0.18);
    color: #00d2ff;
    border-color: #00d2ff;
    box-shadow: 0 0 15px rgba(0,210,255,0.2);
}

.tab-button:hover:not(.active) {
    background: rgba(255,255,255,0.08);
    color: #ccc;
}

.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 24px;
    height: 24px;
    background: #ff4757;
    color: #fff;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    animation: badgeBounce 0.6s infinite;
    box-shadow: 0 4px 12px rgba(255,71,87,0.5);
}

@keyframes badgeBounce {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.15); }
}

.tab-content {
    background: rgba(0,0,0,0.25);
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 10px;
    min-height: 150px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   ★★★ رفع اسکرول درونی در پنل روز (مشکل 9) ★★★
   ============================================================ */
.tab-content {
    overflow-y: auto;
    max-height: 400px;
}

#panel-content .tab-content {
    overflow: hidden;
    max-height: none;
}

.chat-messages {
    max-height: 280px;
    overflow-y: auto;
    padding: 12px;
    background: rgba(0,0,0,0.3);
    border-radius: 14px;
    margin-bottom: 12px;
}

.archive-notes-list {
    max-height: 350px;
    overflow-y: auto;
}

.player-actions-container {
    max-height: 350px;
    overflow-y: auto;
}

.sound-panel {
    max-height: 300px;
    overflow-y: auto;
}

.profile-section {
    max-height: 350px;
    overflow-y: auto;
}

/* ============================================================
   Note Input (Textarea)
   ============================================================ */
.note-input {
    width: 100%;
    min-height: 120px;
    padding: 16px;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    color: #fff;
    font-family: 'iran', sans-serif;
    font-size: 15px;
    resize: vertical;
    line-height: 1.8;
    margin-bottom: 10px;
    transition: border-color 0.3s;
}

.note-input:focus {
    outline: none;
    border-color: #f1c40f;
    box-shadow: 0 0 15px rgba(241,196,15,0.15);
}

.note-input::placeholder {
    color: #666;
}

/* ============================================================
   Main Buttons
   ============================================================ */
.btn-main {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #f1c40f, #e67e22);
    border: none;
    border-radius: 16px;
    color: #000;
    font-family: 'iran', sans-serif;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 8px 20px rgba(241,196,15,0.3);
    margin-top: 8px;
}

.btn-main:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(241,196,15,0.5);
}

.btn-main:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: #3498db;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-family: 'iran', sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(52,152,219,0.3);
}

/* ============================================================
   Chat Styles
   ============================================================ */
.chat-wrapper {
    display: flex;
    flex-direction: column;
    height: 280px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    background: rgba(0,0,0,0.3);
    border-radius: 14px;
    margin-bottom: 12px;
}

.chat-msg-row {
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
}

.chat-msg-row.sent {
    align-items: flex-end;
}

.chat-msg-row.received {
    align-items: flex-start;
}

.chat-sender-name {
    font-size: 10px;
    color: #aaa;
    margin-bottom: 3px;
    padding: 0 8px;
}

.chat-bubble {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.6;
    word-wrap: break-word;
}

.chat-msg-row.sent .chat-bubble {
    background: linear-gradient(135deg, #00d2ff, #0072ff);
    color: #fff;
    border-bottom-right-radius: 6px;
}

.chat-msg-row.received .chat-bubble {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-bottom-left-radius: 6px;
}

.chat-input-row {
    display: flex;
    gap: 10px;
}

.chat-input {
    flex: 1;
    padding: 14px 18px;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 30px;
    color: #fff;
    font-family: 'iran', sans-serif;
    font-size: 14px;
    transition: border-color 0.3s;
}

.chat-input:focus {
    outline: none;
    border-color: #00d2ff;
    box-shadow: 0 0 15px rgba(0,210,255,0.15);
}

.chat-input::placeholder {
    color: #666;
}

.btn-send {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00d2ff, #0072ff);
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.3s;
    box-shadow: 0 6px 20px rgba(0,210,255,0.3);
}

.btn-send:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 25px rgba(0,210,255,0.5);
}

/* ============================================================
   Profile Section
   ============================================================ */
.profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 10px 0;
}

.profile-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #00d2ff;
    box-shadow: 0 0 25px rgba(0,210,255,0.3);
}

.profile-input {
    width: 100%;
    padding: 14px;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    color: #fff;
    font-family: 'iran', sans-serif;
    font-size: 15px;
    text-align: center;
    transition: border-color 0.3s;
}

.profile-input:focus {
    outline: none;
    border-color: #00d2ff;
}

#career-stats-btn {
    width: 100%;
    margin-top: 4px;
}

/* ============================================================
   Carousel (Alive Players in Day Panel)
   ★★★ اصلاح اسلایدر موبایل 3 کارتی (مشکل 10) ★★★
   ============================================================ */
.carousel-section {
    overflow: hidden;
    margin-top: 4px;
}

.carousel-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    direction: ltr;
}

.carousel-viewport {
    flex: 1;
    overflow: hidden;
    border-radius: 16px;
}

.carousel-track {
    display: flex;
    gap: 8px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    direction: ltr;
}

.carousel-slide-item {
    flex-shrink: 0;
    box-sizing: border-box;
}

.player-card-mini {
    background: rgba(255,255,255,0.04);
    border: 2px solid rgba(255,255,255,0.06);
    border-radius: 18px;
    padding: 14px 8px;
    text-align: center;
    position: relative;
    transition: all 0.3s;
    width: 100%;
    box-sizing: border-box;
}

.player-card-mini img {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,0.15);
    margin-bottom: 8px;
}

.player-card-mini.active {
    border-color: #2ecc71 !important;
    background: rgba(46,204,113,0.12) !important;
    box-shadow: 0 0 25px rgba(46,204,113,0.4) !important;
}

.player-card-mini.spoken {
    border-color: #00d2ff !important;
    opacity: 0.85;
}

.player-card-mini.dead {
    opacity: 0.3;
    filter: grayscale(1);
    pointer-events: none;
}

.player-name-mini {
    font-size: 13px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.player-seat-mini {
    font-size: 11px;
    color: #f1c40f;
    margin-bottom: 6px;
}

.player-challenges-mini {
    font-size: 11px;
    color: #aaa;
}

.carousel-nav {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0,210,255,0.15);
    border: 1px solid #00d2ff;
    color: #00d2ff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s;
}

.carousel-nav:hover {
    background: rgba(0,210,255,0.3);
    box-shadow: 0 0 15px rgba(0,210,255,0.3);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-dot.active {
    background: #f1c40f;
    width: 24px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(241,196,15,0.5);
}

/* ============================================================
   Bottom Action Buttons (Day Panel)
   ============================================================ */
.bottom-buttons {
    display: flex;
    gap: 10px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.bottom-btn {
    flex: 1;
    min-width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 18px 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    color: #ccc;
    font-family: 'iran', sans-serif;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.bottom-btn:hover:not(:disabled) {
    background: rgba(241,196,15,0.12);
    color: #f1c40f;
    border-color: rgba(241,196,15,0.4);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(241,196,15,0.2);
}

.bottom-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    filter: grayscale(0.5);
}

.bottom-btn-icon {
    font-size: 24px;
}

/* ============================================================
   Night Panel Styles
   ============================================================ */
.night-active-card {
    background: rgba(241,196,15,0.1);
    border: 3px solid #f1c40f;
    border-radius: 28px;
    padding: 35px 24px;
    text-align: center;
    width: 100%;
    animation: nightGlowPulse 2.5s infinite;
}

@keyframes nightGlowPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(241,196,15,0.2); }
    50%      { box-shadow: 0 0 50px rgba(241,196,15,0.6); }
}

.night-active-card h2 {
    font-size: 28px;
    color: #f1c40f;
    margin-bottom: 12px;
    text-shadow: 0 0 15px rgba(241,196,15,0.5);
}

.night-role-badge {
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    margin: 10px 0;
    padding: 8px 20px;
    background: rgba(241,196,15,0.15);
    border: 1px solid rgba(241,196,15,0.3);
    border-radius: 30px;
    display: inline-block;
}

.night-select,
.night-input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(0,0,0,0.5);
    border: 2px solid rgba(241,196,15,0.3);
    border-radius: 14px;
    color: #fff;
    font-family: 'iran', sans-serif;
    font-size: 15px;
    text-align: center;
    margin-bottom: 10px;
    transition: border-color 0.3s;
}

.night-select:focus,
.night-input:focus {
    outline: none;
    border-color: #f1c40f;
    box-shadow: 0 0 20px rgba(241,196,15,0.2);
}

.night-waiting-card {
    text-align: center;
    padding: 40px 24px;
    width: 100%;
}

.night-waiting-card h2 {
    font-size: 26px;
    color: #9b59b6;
    margin-bottom: 12px;
    text-shadow: 0 0 15px rgba(155,89,182,0.4);
}

.night-music-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    background: rgba(0,210,255,0.1);
    border: 1px solid rgba(0,210,255,0.3);
    border-radius: 16px;
    margin: 20px 0;
    font-size: 15px;
    color: #00d2ff;
}

.loading-spinner-night {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255,255,255,0.08);
    border-top-color: #f1c40f;
    border-radius: 50%;
    animation: spin 1.2s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.consultation-active-card {
    background: rgba(231,76,60,0.1);
    border: 3px solid #e74c3c;
    border-radius: 30px;
    padding: 40px 25px;
    text-align: center;
    width: 100%;
    animation: nightGlowPulse 2.5s infinite;
}

.consultation-active-card h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

.consultation-timer-display {
    font-size: 48px;
    font-weight: bold;
    color: #f1c40f;
    font-family: monospace;
    margin: 15px 0;
    text-shadow: 0 0 15px rgba(241,196,15,0.5);
}

/* ============================================================
   Warning Modal
   ============================================================ */
.warning-modal-box {
    border-color: #e74c3c !important;
    text-align: center;
}

.warning-modal-box .warning-icon {
    font-size: 50px;
    margin-bottom: 15px;
}

.warning-modal-box .warning-message {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* ============================================================
   Challenge Notification (Toast)
   ============================================================ */
.challenge-notif {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 10001;
    background: linear-gradient(135deg, #2c3e50, #1a1a2e);
    border: 2px solid #f1c40f;
    border-radius: 15px;
    padding: 15px 20px;
    color: #fff;
    min-width: 300px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
    animation: slideInRight 0.3s ease-out;
}

.admin-chat-notif {
    position: fixed;
    top: 140px;
    right: 20px;
    z-index: 10001;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border: 2px solid #00d2ff;
    border-radius: 15px;
    padding: 12px 18px;
    color: #fff;
    min-width: 260px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
    cursor: pointer;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ============================================================
   Speaker Box Overlay (Day)
   ============================================================ */
.speaker-box-overlay {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100000;
    background: linear-gradient(135deg, rgba(0,0,0,0.9), rgba(0,0,0,0.7));
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    border-bottom: 3px solid #f1c40f;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
}

.speaker-box-overlay img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f1c40f;
}

.speaker-box-overlay .speaker-name {
    font-size: 18px;
    color: #fff;
}

.speaker-box-overlay .speaker-seat {
    font-size: 12px;
    color: #aaa;
}

.speaker-box-overlay .speaker-timer-display {
    font-size: 32px;
    font-weight: bold;
    color: #f1c40f;
    font-family: monospace;
    text-shadow: 0 0 15px rgba(241,196,15,0.5);
}

/* ============================================================
   Finished Game Screen
   ============================================================ */
.finished-screen {
    text-align: center;
    padding: 60px 20px;
}

.finished-icon {
    font-size: 70px;
    margin-bottom: 20px;
}

.finished-screen h2 {
    color: #f1c40f;
    margin-bottom: 12px;
}

.finished-screen p {
    color: #aaa;
    font-size: 16px;
}

/* ============================================================
   Violation Modal Player List
   ============================================================ */
.violation-list {
    max-height: 300px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 12px 0;
}

.violation-player-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: rgba(255,255,255,0.05);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.violation-player-item:hover {
    background: rgba(241,196,15,0.15);
    border-color: #f1c40f;
}

.violation-player-item img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.violation-player-item b {
    font-size: 16px;
    color: #fff;
}

.violation-player-item small {
    font-size: 12px;
    color: #aaa;
}

/* ============================================================
   Archive / Actions History items
   ============================================================ */
.archive-day-item {
    cursor: pointer;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 12px 15px;
    margin-bottom: 8px;
    transition: all 0.3s;
    font-size: 14px;
    color: #ccc;
}

.archive-day-item:hover {
    background: rgba(241,196,15,0.15);
    border-color: #f1c40f;
    color: #f1c40f;
    transform: translateX(-5px);
}

/* ============================================================
   Death Cards Styles (برای پنل کاربر در صورت نمایش)
   ============================================================ */
.death-card-item {
    background: rgba(0,0,0,0.5);
    border: 2px solid rgba(241,196,15,0.3);
    border-radius: 20px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.death-card-item:hover {
    transform: translateY(-5px);
    border-color: #f1c40f;
    background: rgba(241,196,15,0.1);
}

.death-card-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.death-card-name {
    font-weight: bold;
    color: #f1c40f;
    margin-bottom: 8px;
}

.death-card-desc {
    font-size: 11px;
    color: #aaa;
}

/* ============================================================
   Scrollbars
   ============================================================ */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #f1c40f, #e67e22);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #f1c40f;
}

/* ============================================================
   ★★★ Media Queries (Mobile Optimizations)
   ★★★ اصلاح اسلایدر موبایل 3 کارتی و رفع پرش (مشکل 10 و 20) ★★★
   ============================================================ */
@media (max-width: 420px) {
    .player-header {
        padding: 12px 14px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .player-info {
        width: 100%;
    }

    .tab-bar {
        gap: 4px;
    }

    .tab-button {
        font-size: 11px;
        padding: 12px 4px;
    }

    /* ★★★ اسلایدر موبایل: 3 کارت در هر اسلاید ★★★ */
    .carousel-slide-item {
        min-width: 33.33% !important;
        flex: 0 0 33.33% !important;
    }

    .player-card-mini img {
        width: 50px;
        height: 50px;
    }

    .bottom-buttons {
        flex-direction: column;
        gap: 8px;
    }

    .bottom-btn {
        flex-direction: row;
        justify-content: center;
        gap: 12px;
        padding: 14px;
    }
    
    .death-card-item {
        padding: 10px;
    }
    
    .death-card-icon {
        font-size: 30px;
    }
    
    /* ★★★ رفع اسکرول محتوای تب‌ها در موبایل ★★★ */
    .tab-content {
        max-height: 350px;
    }
    
    .chat-messages {
        max-height: 200px;
    }
}

@media (max-width: 380px) {
    /* ★★★ برای صفحه‌های خیلی کوچک، 2 کارت ★★★ */
    .carousel-slide-item {
        min-width: 50% !important;
        flex: 0 0 50% !important;
    }
}

/* نقش کارت — نمایش گرداننده */
.mafia-role-card-overlay {
    position: fixed;
    inset: 0;
    z-index: 100002;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(18px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.35s ease;
}

.mafia-role-card-box {
    position: relative;
    width: min(92vw, 380px);
    padding: 28px 22px;
    border-radius: 28px;
    background: linear-gradient(155deg, #1a1f35 0%, #0c0e18 55%, #12182a 100%);
    border: 2px solid var(--role-color, #f1c40f);
    box-shadow: 0 0 60px color-mix(in srgb, var(--role-color, #f1c40f) 35%, transparent), 0 25px 50px rgba(0, 0, 0, 0.6);
    text-align: center;
    overflow: hidden;
}

.mafia-role-card-shine {
    position: absolute;
    inset: -50%;
    background: conic-gradient(from 0deg, transparent, color-mix(in srgb, var(--role-color, #f1c40f) 25%, transparent), transparent);
    animation: roleCardSpin 6s linear infinite;
    opacity: 0.35;
    pointer-events: none;
}

@keyframes roleCardSpin {
    to { transform: rotate(360deg); }
}

.mafia-role-card-number {
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg, #1e40af, #312e81);
    color: #fff;
    font-weight: bold;
    padding: 8px 20px;
    border-radius: 30px;
    margin-bottom: 14px;
}

.mafia-role-card-photo {
    position: relative;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f1c40f;
    box-shadow: 0 8px 30px rgba(241, 196, 15, 0.35);
    margin: 8px auto;
}

.mafia-role-card-name {
    position: relative;
    color: #fff;
    font-size: 1.35rem;
    margin: 8px 0 4px;
}

.mafia-role-card-seat {
    position: relative;
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.mafia-role-card-role {
    position: relative;
    color: var(--role-color, #2ecc71);
    font-size: 1.25rem;
    font-weight: bold;
    padding: 12px;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 16px;
    margin-bottom: 10px;
}

.mafia-role-card-desc {
    position: relative;
    color: #ccc;
    font-size: 0.85rem;
    line-height: 1.7;
    max-height: 120px;
    overflow-y: auto;
}

.mafia-role-card-close-btn {
    position: relative;
    margin-top: 18px;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 30px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    font-family: 'iran', sans-serif;
}

/* لایت‌باکس‌های پریمیوم */
.mafia-premium-modal-box,
.modal-box.mafia-premium-modal-box {
    background: linear-gradient(145deg, #1a1f35, #0f111a) !important;
    border: 2px solid rgba(241, 196, 15, 0.65) !important;
    border-radius: 28px !important;
    box-shadow: 0 0 50px rgba(241, 196, 15, 0.2), 0 20px 60px rgba(0, 0, 0, 0.55) !important;
    padding: 26px 22px !important;
}

.mafia-sound-panel-premium {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(241, 196, 15, 0.25);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
}

.sound-slider-label {
    display: block;
    text-align: right;
    color: #ccc;
    font-size: 13px;
    margin: 12px 0 6px;
}

.sound-slider-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sound-slider-row input[type="range"] {
    flex: 1;
    accent-color: #f1c40f;
    height: 6px;
}

.sound-slider-val {
    min-width: 42px;
    font-weight: bold;
    color: #f1c40f;
    font-size: 14px;
}

.bottom-btn {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.bottom-btn:hover:not(:disabled) {
    box-shadow: 0 8px 24px rgba(241, 196, 15, 0.25);
}

@media (max-height: 500px) and (orientation: landscape) {
    .tab-content {
        min-height: auto;
        max-height: 250px;
    }

    .chat-wrapper {
        height: 180px;
    }

    .note-input {
        min-height: 80px;
    }

    .carousel-slide-item {
        min-width: 16.66% !important;
        flex: 0 0 16.66% !important;
    }

    .player-card-mini img {
        width: 40px;
        height: 40px;
        margin-bottom: 4px;
    }

    .player-name-mini {
        font-size: 10px;
    }
}

/* ============================================================
   Utility Classes
   ============================================================ */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-left   { text-align: left; }
.hidden      { display: none !important; }
.visible     { display: block !important; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.w-full      { width: 100%; }
.mt-2        { margin-top: 8px; }
.mt-4        { margin-top: 16px; }
.mb-2        { margin-bottom: 8px; }
.mb-4        { margin-bottom: 16px; }
.gap-2       { gap: 8px; }
.gap-4       { gap: 16px; }