@font-face { 
    font-family: iran; 
    src: url(../Font/IRANSansWeb_Bold.ttf); 
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

body {
    font-family: iran, Tahoma, sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #e2e8f0;
    min-height: 100vh;
    /* padding: 20px; */
}

.page-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.left-section, .right-section {
    background: #1e293b;
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

h2 {
    text-align: center;
    color: #38bdf8;
    font-size: 28px;
    margin-bottom: 25px;
    text-shadow: 0 0 20px rgba(56, 189, 248, 0.5);
}

h3 {
    color: #38bdf8;
    font-size: 18px;
    margin-bottom: 15px;
    margin-top: 10px;
}

.info-grid {
    display: grid;
    gap: 15px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.info-label {
    color: rgba(226, 232, 240, 0.7);
    font-size: 15px;
}

.info-value {
    color: #fff;
    font-weight: bold;
    font-size: 16px;
}

.highlight {
    color: #fbbf24;
    font-size: 18px;
}

.wallet-badge {
    display: inline-block;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid #10b981;
    border-radius: 8px;
    padding: 4px 12px;
    font-size: 13px;
    color: #10b981;
}

.wallet-badge.insufficient {
    border-color: #ef4444;
    color: #ef4444;
}

.discount-info {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2) 0%, rgba(245, 158, 11, 0.2) 100%);
    border: 2px solid rgba(236, 72, 153, 0.5);
    padding: 15px;
    border-radius: 12px;
    margin: 20px 0;
    text-align: center;
}

.discount-info .discount-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ec4899 0%, #f59e0b 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
}

.discount-info .discount-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    margin-top: 8px;
}

.birthday-alert {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.3) 0%, rgba(245, 158, 11, 0.3) 100%);
    border: 2px solid #ec4899;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 20px;
    animation: birthday-pulse 2s infinite;
}

@keyframes birthday-pulse {
    0%, 100% { box-shadow: 0 0 15px rgba(236, 72, 153, 0.5); transform: scale(1); }
    50% { box-shadow: 0 0 30px rgba(236, 72, 153, 0.8); transform: scale(1.02); }
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #38bdf8;
    font-size: 15px;
    font-weight: bold;
}

.form-group input[type="number"],
.form-group input[type="text"] {
    width: 100%;
    padding: 12px;
    background: rgba(15, 23, 42, 0.8);
    border: 2px solid rgba(56, 189, 248, 0.3);
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
    font-family: iran, Tahoma;
    outline: none;
}

.form-group input:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
}

.search-input {
    width: 100%;
    padding: 12px;
    background: rgba(15, 23, 42, 0.8);
    border: 2px solid rgba(56, 189, 248, 0.3);
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    font-family: iran, Tahoma;
    outline: none;
}

.search-input:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
}

.payer-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: rgba(15, 23, 42, 0.6);
    border: 2px solid rgba(56, 189, 248, 0.2);
    border-radius: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.payer-option:hover {
    border-color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
}

.payer-option.selected {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

.payer-option input[type="radio"] {
    margin-left: 15px;
    transform: scale(1.2);
    cursor: pointer;
}

.payer-info {
    flex: 1;
}

.payer-name {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
}

.payer-wallet {
    font-size: 13px;
    color: #10b981;
    margin-top: 5px;
}

.discount-preview {
    background: rgba(15, 23, 42, 0.6);
    border: 2px solid rgba(56, 189, 248, 0.3);
    border-radius: 12px;
    padding: 15px;
    margin-top: 15px;
}

.discount-preview div {
    display: flex;
    justify-content: space-between;
    margin: 8px 0;
    font-size: 15px;
}

.discount-preview .final-amount {
    font-size: 20px;
    font-weight: bold;
    color: #10b981;
    border-top: 2px solid rgba(56, 189, 248, 0.3);
    padding-top: 12px;
    margin-top: 12px;
}

.payment-options {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.payment-option {
    position: relative;
}

.payment-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.payment-option label {
    display: block;
    padding: 15px;
    background: rgba(15, 23, 42, 0.6);
    border: 2px solid rgba(56, 189, 248, 0.3);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 15px;
}

.payment-option input[type="radio"]:checked + label {
    background: rgba(56, 189, 248, 0.2);
    border-color: #38bdf8;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
}

.payment-option.disabled label {
    opacity: 0.4;
    cursor: not-allowed;
}

#partial_input {
    display: none;
    margin-top: 15px;
}

#partial_input input {
    width: 100%;
    padding: 12px;
    background: rgba(15, 23, 42, 0.8);
    border: 2px solid rgba(56, 189, 248, 0.3);
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
    font-family: iran, Tahoma;
}

.button-group {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn-submit, .btn-back {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: bold;
    font-family: iran, Tahoma;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
}

.btn-submit {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.btn-submit:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.btn-back {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.btn-back:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.third-party-section {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid rgba(56, 189, 248, 0.2);
}

.btn-split {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-family: iran;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-split:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.search-result-container {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1e293b;
    border: 2px solid #38bdf8;
    border-radius: 10px;
    max-height: 250px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
}

.customer-result-item {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.customer-result-item:hover {
    background-color: rgba(56,189,248,0.2);
}

.player-share-display {
    margin-top: 10px;
    padding: 10px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(99, 102, 241, 0.3);
    display: none;
}

.split-info {
    margin-top: 10px;
    padding: 10px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(99, 102, 241, 0.3);
    display: none;
}

.winner-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid rgba(255, 215, 0, 0.3);
}

.winner-option {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 255, 255, 0.05);
    padding: 8px 15px;
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 255, 0.2);
    transition: all 0.3s;
    cursor: pointer;
}

.winner-option:hover {
    border-color: #00ffff;
    background: rgba(0,255,255,0.15);
}

.winner-option.draw {
    background: rgba(255, 215, 0, 0.08);
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.winner-option.draw:hover {
    border-color: #ffd700;
    background: rgba(255,215,0,0.15);
}

.winner-option.none {
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.15);
}

.winner-option.none:hover {
    border-color: rgba(255,255,255,0.4);
}

@media (max-width: 1024px) {
    .page-wrapper { 
        grid-template-columns: 1fr; 
        gap: 20px; 
    }
}

@media (max-width: 600px) {
    .left-section, .right-section { 
        padding: 20px; 
    }
    .info-row { 
        flex-direction: column; 
        align-items: flex-start; 
        gap: 8px; 
    }
    .button-group { 
        flex-direction: column; 
    }
    .payer-option { 
        flex-direction: column; 
        align-items: flex-start; 
        gap: 10px; 
    }
}
/* ===== استایل ستاره‌ها ===== */
.stars-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 5px 0;
}

.stars-display {
    font-size: 16px;
    letter-spacing: 2px;
}

.stars-count {
    font-size: 13px;
    font-weight: bold;
    color: #ffd700;
}

.stars-total {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
}

.stars-level {
    font-size: 11px;
    font-weight: bold;
}

.level-bronze { color: #cd7f32; }
.level-silver { color: #c0c0c0; }
.level-gold { color: #ffd700; }
.level-platinum { color: #e5e4e2; }
.level-diamond { color: #b9f2ff; }
/* ============================================
   استایل‌های صفحه داشبورد (index.php)
   ============================================ */

/* ===== Idle Dim ===== */
#idle-dim {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 999999;
}

body.dimmed #idle-dim {
    opacity: 1;
}

/* ===== عنوان صفحه ===== */
.dashboard-title {
    margin: 40px 0 30px;
    font-size: 32px;
    color: #00ffff;
    text-align: center;
    text-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
}

/* ===== کانتینر دستگاه‌ها ===== */
.devices-container { 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 25px; 
    padding: 20px;
}

/* ===== کارت دستگاه ===== */
.device-card { 
    width: 300px; 
    padding: 25px;
    border-radius: 20px; 
    background: rgba(15, 23, 42, 0.9);
    border: 2px solid rgba(0, 255, 255, 0.3);
    transition: all 0.3s;
}

.device-card:hover {
    transform: translateY(-5px);
    border-color: #00ffff;
    box-shadow: 0 10px 40px rgba(0, 255, 255, 0.2);
}

.device-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #00ffff;
}

/* ===== وضعیت دستگاه ===== */
.status-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 15px;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 15px;
}

.free .status-badge {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
    border: 2px solid #00ff88;
}

.busy .status-badge {
    background: rgba(239, 68, 68, 0.2);
    color: #ff4444;
    border: 2px solid #ff4444;
}

/* ===== تخفیف ===== */
.discount-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ec4899 0%, #f59e0b 100%);
    color: white;
    padding: 5px 12px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: bold;
    margin: 8px 0;
    animation: pulse-discount 2s infinite;
}

@keyframes pulse-discount {
    0%, 100% { box-shadow: 0 0 10px rgba(236, 72, 153, 0.5); }
    50% { box-shadow: 0 0 20px rgba(236, 72, 153, 0.8); }
}

/* ===== اطلاعات قیمت ===== */
.price-info {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 15px;
    text-align: center;
}

.price-original {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: line-through;
    font-size: 14px;
    margin-bottom: 5px;
}

.price-discounted {
    color: #10b981;
    font-size: 18px;
    font-weight: bold;
}

.price-normal {
    color: #facc15;
    font-size: 18px;
    font-weight: bold;
}

/* ===== نوع بازی ===== */
.game-type-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: #c084fc;
    margin-top: 5px;
}

.discount-desc {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 5px;
    font-style: italic;
}

/* ===== اطلاعات مشتری ===== */
.customer-info { 
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 15px;
    text-align: right;
    font-size: 14px;
    line-height: 1.8;
}

.customer-info div {
    margin: 6px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.customer-info .label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

.customer-info .value {
    color: #fff;
    font-weight: 600;
}

/* ===== ستاره‌های وفاداری در کارت ===== */
.loyalty-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 4px 0;
    padding: 3px 0;
    border-top: 1px solid rgba(255, 215, 0, 0.1);
}

.loyalty-row .label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.loyalty-row .value {
    font-size: 13px;
    font-weight: bold;
    color: #ffd700;
}

/* ===== تولد ===== */
.birthday-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #ec4899 0%, #f59e0b 100%);
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    animation: birthday-glow 2s infinite;
}

@keyframes birthday-glow {
    0%, 100% { 
        box-shadow: 0 0 10px rgba(236, 72, 153, 0.5);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 20px rgba(236, 72, 153, 0.8);
        transform: scale(1.05);
    }
}

/* ===== تایمر و هزینه ===== */
.timer { 
    font-size: 42px; 
    font-weight: bold; 
    color: #00ffff;
    font-family: 'Courier New', monospace;
    margin: 15px 0;
    text-align: center;
}

.cost { 
    font-size: 18px; 
    color: #facc15;
    margin-bottom: 15px;
    text-align: center;
}

/* ===== آیکون دستگاه ===== */
.device-icon {
    font-size: 60px;
    margin: 20px 0;
    text-align: center;
}

/* ===== دکمه‌ها ===== */
.btn { 
    display: block; 
    padding: 12px;
    margin: 8px 0;
    border-radius: 10px; 
    color: white; 
    text-decoration: none; 
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s;
    border: 2px solid;
    text-align: center;
}

.btn-stop { 
    background: #ef4444;
    border-color: #ef4444;
}

.btn-stop:hover {
    background: #dc2626;
}

.btn-start { 
    background: #00ff88;
    border-color: #00ff88;
    color: #000;
}

.btn-start:hover {
    background: #059669;
    color: #fff;
}

.btn-pause {
    background: #f59e0b;
    border-color: #f59e0b;
}

.btn-pause:hover {
    background: #d97706;
}

/* ===== مودال آلارم ===== */
.alarm-modal {
    display: none;
    position: fixed;
    z-index: 1000000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s;
}

.alarm-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    min-width: 350px;
    box-shadow: 0 20px 60px rgba(239, 68, 68, 0.5);
    animation: shake 0.5s infinite;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes shake {
    0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
    25% { transform: translate(-50%, -50%) rotate(-2deg); }
    75% { transform: translate(-50%, -50%) rotate(2deg); }
}

.alarm-content h2 {
    color: white;
    font-size: 32px;
    margin: 0 0 20px 0;
}

.alarm-content p {
    color: white;
    font-size: 18px;
    margin-bottom: 30px;
}

.alarm-btn {
    background: white;
    color: #ef4444;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.alarm-btn:hover {
    background: #f3f4f6;
    transform: scale(1.05);
}

/* ===== Wake Lock Status ===== */
.wakelock-status {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: #00ff88;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 12px;
    border: 2px solid #00ff88;
    z-index: 999998;
    display: none;
}

.wakelock-status.active {
    display: block;
}

.wakelock-status.error {
    color: #ff4444;
    border-color: #ff4444;
}

/* ===== ریسپانسیو ===== */
@media (max-width: 768px) {
    .device-card {
        width: 100%;
        max-width: 350px;
    }

    .dashboard-title {
        font-size: 24px;
        margin: 20px 0 15px;
    }

    .timer {
        font-size: 36px;
    }

    .customer-info {
        font-size: 13px;
    }

    .customer-info div {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .birthday-badge {
        font-size: 11px;
        padding: 3px 8px;
    }

    .device-icon {
        font-size: 50px;
    }

    .alarm-content {
        min-width: 280px;
        padding: 30px 20px;
    }

    .alarm-content h2 {
        font-size: 24px;
    }

    .alarm-content p {
        font-size: 16px;
    }

    .wakelock-status {
        bottom: 10px;
        left: 10px;
        font-size: 11px;
        padding: 8px 15px;
    }
}

@media (max-width: 480px) {
    .devices-container {
        padding: 10px;
        gap: 15px;
    }

    .device-card {
        padding: 20px;
    }

    .timer {
        font-size: 32px;
    }

    .cost {
        font-size: 16px;
    }

    .btn {
        padding: 10px;
        font-size: 13px;
    }

    .device-icon {
        font-size: 45px;
    }
}
/* ============================================
   استایل‌های صفحه داشبورد (index.php)
   ============================================ */

/* ===== Idle Dim ===== */
#idle-dim {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 999999;
}

body.dimmed #idle-dim {
    opacity: 1;
}

/* ===== عنوان صفحه ===== */
.dashboard-title {
    margin: 40px 0 30px;
    font-size: 32px;
    color: #00ffff;
    text-align: center;
    text-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
}

/* ===== کانتینر دستگاه‌ها ===== */
.devices-container { 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 25px; 
    padding: 20px;
}

/* ===== کارت دستگاه ===== */
.device-card { 
    width: 300px; 
    padding: 25px;
    border-radius: 20px; 
    background: rgba(15, 23, 42, 0.9);
    border: 2px solid rgba(0, 255, 255, 0.3);
    transition: all 0.3s;
}

.device-card:hover {
    transform: translateY(-5px);
    border-color: #00ffff;
    box-shadow: 0 10px 40px rgba(0, 255, 255, 0.2);
}

.device-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #00ffff;
}

/* ===== وضعیت دستگاه ===== */
.status-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 15px;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 15px;
}

.free .status-badge {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
    border: 2px solid #00ff88;
}

.busy .status-badge {
    background: rgba(239, 68, 68, 0.2);
    color: #ff4444;
    border: 2px solid #ff4444;
}

/* ===== تخفیف ===== */
.discount-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ec4899 0%, #f59e0b 100%);
    color: white;
    padding: 5px 12px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: bold;
    margin: 8px 0;
    animation: pulse-discount 2s infinite;
}

@keyframes pulse-discount {
    0%, 100% { box-shadow: 0 0 10px rgba(236, 72, 153, 0.5); }
    50% { box-shadow: 0 0 20px rgba(236, 72, 153, 0.8); }
}

/* ===== اطلاعات قیمت ===== */
.price-info {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 15px;
    text-align: center;
}

.price-original {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: line-through;
    font-size: 14px;
    margin-bottom: 5px;
}

.price-discounted {
    color: #10b981;
    font-size: 18px;
    font-weight: bold;
}

.price-normal {
    color: #facc15;
    font-size: 18px;
    font-weight: bold;
}

/* ===== نوع بازی ===== */
.game-type-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: #c084fc;
    margin-top: 5px;
}

.discount-desc {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 5px;
    font-style: italic;
}

/* ===== اطلاعات مشتری ===== */
.customer-info { 
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 15px;
    text-align: right;
    font-size: 14px;
    line-height: 1.8;
}

.customer-info div {
    margin: 6px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.customer-info .label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

.customer-info .value {
    color: #fff;
    font-weight: 600;
}

/* ===== ستاره‌های وفاداری در کارت ===== */
.loyalty-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 4px 0;
    padding: 3px 0;
    border-top: 1px solid rgba(255, 215, 0, 0.1);
}

.loyalty-row .label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.loyalty-row .value {
    font-size: 13px;
    font-weight: bold;
    color: #ffd700;
}

/* ===== تولد ===== */
.birthday-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #ec4899 0%, #f59e0b 100%);
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    animation: birthday-glow 2s infinite;
}

@keyframes birthday-glow {
    0%, 100% { 
        box-shadow: 0 0 10px rgba(236, 72, 153, 0.5);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 20px rgba(236, 72, 153, 0.8);
        transform: scale(1.05);
    }
}

/* ===== تایمر و هزینه ===== */
.timer { 
    font-size: 42px; 
    font-weight: bold; 
    color: #00ffff;
    font-family: 'Courier New', monospace;
    margin: 15px 0;
    text-align: center;
}

.cost { 
    font-size: 18px; 
    color: #facc15;
    margin-bottom: 15px;
    text-align: center;
}

/* ===== آیکون دستگاه ===== */
.device-icon {
    font-size: 60px;
    margin: 20px 0;
    text-align: center;
}

/* ===== دکمه‌ها ===== */
.btn { 
    display: block; 
    padding: 12px;
    margin: 8px 0;
    border-radius: 10px; 
    color: white; 
    text-decoration: none; 
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s;
    border: 2px solid;
    text-align: center;
}

.btn-stop { 
    background: #ef4444;
    border-color: #ef4444;
}

.btn-stop:hover {
    background: #dc2626;
}

.btn-start { 
    background: #00ff88;
    border-color: #00ff88;
    color: #000;
}

.btn-start:hover {
    background: #059669;
    color: #fff;
}

.btn-pause {
    background: #f59e0b;
    border-color: #f59e0b;
}

.btn-pause:hover {
    background: #d97706;
}

/* ===== مودال آلارم ===== */
.alarm-modal {
    display: none;
    position: fixed;
    z-index: 1000000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s;
}

.alarm-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    min-width: 350px;
    box-shadow: 0 20px 60px rgba(239, 68, 68, 0.5);
    animation: shake 0.5s infinite;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes shake {
    0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
    25% { transform: translate(-50%, -50%) rotate(-2deg); }
    75% { transform: translate(-50%, -50%) rotate(2deg); }
}

.alarm-content h2 {
    color: white;
    font-size: 32px;
    margin: 0 0 20px 0;
}

.alarm-content p {
    color: white;
    font-size: 18px;
    margin-bottom: 30px;
}

.alarm-btn {
    background: white;
    color: #ef4444;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.alarm-btn:hover {
    background: #f3f4f6;
    transform: scale(1.05);
}

/* ===== Wake Lock Status ===== */
.wakelock-status {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: #00ff88;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 12px;
    border: 2px solid #00ff88;
    z-index: 999998;
    display: none;
}

.wakelock-status.active {
    display: block;
}

.wakelock-status.error {
    color: #ff4444;
    border-color: #ff4444;
}

/* ===== ریسپانسیو ===== */
@media (max-width: 768px) {
    .device-card {
        width: 100%;
        max-width: 350px;
    }

    .dashboard-title {
        font-size: 24px;
        margin: 20px 0 15px;
    }

    .timer {
        font-size: 36px;
    }

    .customer-info {
        font-size: 13px;
    }

    .customer-info div {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .birthday-badge {
        font-size: 11px;
        padding: 3px 8px;
    }

    .device-icon {
        font-size: 50px;
    }

    .alarm-content {
        min-width: 280px;
        padding: 30px 20px;
    }

    .alarm-content h2 {
        font-size: 24px;
    }

    .alarm-content p {
        font-size: 16px;
    }

    .wakelock-status {
        bottom: 10px;
        left: 10px;
        font-size: 11px;
        padding: 8px 15px;
    }
}

@media (max-width: 480px) {
    .devices-container {
        padding: 10px;
        gap: 15px;
    }

    .device-card {
        padding: 20px;
    }

    .timer {
        font-size: 32px;
    }

    .cost {
        font-size: 16px;
    }

    .btn {
        padding: 10px;
        font-size: 13px;
    }

    .device-icon {
        font-size: 45px;
    }
}
/* ============================================
   استایل‌های صفحه تراکنش‌ها (customer_transactions_admin.php)
   ============================================ */

/* ===== انیمیشن‌ها ===== */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== لودینگ ===== */
.loading-spinner {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid rgba(99, 102, 241, 0.2);
    border-top: 3px solid #6366f1;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 10px;
}

.loading-text {
    display: inline-block;
    animation: pulse 1s infinite;
}

/* ===== نتیجه خالی ===== */
.empty-result {
    text-align: center;
    padding: 40px;
    color: #94a3b8;
}

.empty-result .icon {
    font-size: 48px;
    display: block;
    margin-bottom: 10px;
    opacity: 0.5;
}

/* ===== خطا ===== */
.error-message {
    text-align: center;
    padding: 40px;
    color: #ef4444;
}

.error-message .icon {
    font-size: 48px;
    display: block;
    margin-bottom: 10px;
}

/* ===== جدول تراکنش‌ها ===== */
.transaction-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1000px;
}

.transaction-table th {
    background: linear-gradient(135deg, #334155 0%, #475569 100%);
    padding: 15px 10px;
    text-align: center;
    font-size: 14px;
    border-bottom: 2px solid #6366f1;
    position: sticky;
    top: 0;
    z-index: 10;
    color: #fff;
}

.transaction-table td {
    padding: 12px 10px;
    text-align: center;
    border-bottom: 1px solid #334155;
    font-size: 13px;
}

.transaction-table tr:hover {
    background: rgba(99, 102, 241, 0.08);
}

.transaction-table .customer-name {
    color: #38bdf8;
    font-weight: bold;
}

.transaction-table .device-name {
    color: #a855f7;
}

.transaction-table .price {
    color: #22c55e;
    font-weight: bold;
}

.transaction-table .duration {
    color: #fbbf24;
}

/* ===== بج وضعیت پرداخت ===== */
.payment-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.payment-cash {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid #10b981;
    color: #10b981;
}

.payment-wallet {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid #3b82f6;
    color: #3b82f6;
}

.payment-debt {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid #ef4444;
    color: #ef4444;
}

.payment-shared {
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid #a855f7;
    color: #a855f7;
}

.payment-partial {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid #f59e0b;
    color: #f59e0b;
}

.payment-unpaid {
    background: rgba(107, 114, 128, 0.15);
    border: 1px solid #6b7280;
    color: #6b7280;
}

.payment-status {
    font-size: 10px;
    display: block;
    margin-top: 2px;
    opacity: 0.7;
}

/* ===== بج نوع بازی ===== */
.game-type-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.2);
    color: #c084fc;
}

/* ===== هدر ===== */
.header {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.header h1 {
    font-size: 28px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    color: #fff;
}

.header p {
    color: rgba(255,255,255,0.8);
}

.role-info {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 14px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    margin-top: 5px;
    color: #fff;
}

.role-info .badge {
    display: inline-block;
    padding: 2px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    margin-right: 5px;
}

.role-info .badge.admin { background: #ef4444; color: white; }
.role-info .badge.manager { background: #f59e0b; color: white; }
.role-info .badge.cashier { background: #3b82f6; color: white; }

/* ===== بخش فیلتر ===== */
.filter-section {
    background: #1e293b;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    border: 2px solid #334155;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-size: 14px;
    color: #94a3b8;
}

.filter-group input {
    padding: 12px;
    border-radius: 8px;
    border: 2px solid #334155;
    background: #0f172a;
    color: white;
    font-family: iran, sans-serif;
    font-size: 14px;
    transition: all 0.3s ease;
}

.filter-group input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* ===== دکمه‌ها ===== */
.btn {
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    font-family: iran, sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(34, 197, 94, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(56, 189, 248, 0.4);
}

.btn-clear {
    background: #475569;
    color: white;
}

.btn-clear:hover {
    background: #64748b;
}

.btn-disabled {
    background: #475569;
    color: #94a3b8;
    cursor: not-allowed;
    opacity: 0.5;
    pointer-events: none;
}

.btn-disabled:hover {
    transform: none;
    box-shadow: none;
}

/* ===== جدول ===== */
.table-container {
    background: #1e293b;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 2px solid #334155;
    overflow-x: auto;
}

.table-container table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1000px;
}

.table-container th {
    background: linear-gradient(135deg, #334155 0%, #475569 100%);
    padding: 15px 10px;
    text-align: center;
    font-size: 14px;
    border-bottom: 2px solid #6366f1;
    position: sticky;
    top: 0;
    z-index: 10;
    color: #fff;
}

.table-container td {
    padding: 12px 10px;
    text-align: center;
    border-bottom: 1px solid #334155;
    font-size: 13px;
}

.table-container tr:hover {
    background: rgba(99, 102, 241, 0.08);
}

.table-container tr.edit-row {
    background: rgba(168, 85, 247, 0.15);
}

/* ===== فرم ویرایش ===== */
.edit-form select,
.edit-form input {
    padding: 8px;
    border-radius: 6px;
    border: 2px solid #334155;
    background: #0f172a;
    color: white;
    font-family: iran, sans-serif;
    font-size: 13px;
    width: 100%;
}

.edit-form select:focus,
.edit-form input:focus {
    outline: none;
    border-color: #6366f1;
}

.game-type-select {
    padding: 8px;
    border-radius: 6px;
    border: 2px solid #a855f7;
    background: #0f172a;
    color: white;
    font-family: iran, sans-serif;
    font-size: 13px;
    min-width: 140px;
}

.game-type-select:focus {
    outline: none;
    border-color: #6366f1;
}

/* ===== صفحه‌بندی ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 20px 10px;
    flex-wrap: wrap;
    background: #1e293b;
    border-radius: 12px;
    margin-top: 15px;
    border: 2px solid #334155;
}

.pagination .page-btn {
    padding: 8px 14px;
    border-radius: 8px;
    border: 2px solid #334155;
    background: #0f172a;
    color: white;
    text-decoration: none;
    font-family: iran, sans-serif;
    font-size: 14px;
    transition: all 0.3s;
}

.pagination .page-btn:hover:not(.disabled) {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.2);
}

.pagination .page-btn.active {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-color: #6366f1;
    color: white;
}

.pagination .page-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination .page-info {
    color: #94a3b8;
    font-size: 14px;
    padding: 0 10px;
}

.pagination .page-info strong {
    color: #38bdf8;
}

/* ===== اطلاعیه ===== */
.permission-notice {
    text-align: center;
    padding: 12px;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 8px;
    margin-bottom: 20px;
    color: #fbbf24;
    font-size: 14px;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
}

/* ===== نتیجه خالی در جدول ===== */
.no-results {
    text-align: center;
    padding: 40px;
    color: #94a3b8;
}

/* ===== اسکرول بار ===== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #1e293b;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #8b5cf6 0%, #c084fc 100%);
}

/* ===== ریسپانسیو ===== */
@media (max-width: 768px) {
    .filter-grid {
        grid-template-columns: 1fr;
    }
    
    .table-container table {
        font-size: 12px;
        min-width: 800px;
    }
    
    .table-container th,
    .table-container td {
        padding: 8px 5px;
    }
    
    .pagination {
        gap: 5px;
    }
    
    .pagination .page-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
/* ============================================
   استایل‌های دکمه‌های داشبورد
   ============================================ */

/* ===== دکمه‌های بزرگ ===== */
.btn-lg {
    padding: 14px 20px !important;
    font-size: 16px !important;
    border-radius: 12px !important;
    font-weight: bold !important;
    min-height: 52px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    border: 2px solid transparent !important;
}

.btn-lg:hover {
    transform: translateY(-2px) scale(1.02) !important;
}

.btn-lg:active {
    transform: scale(0.98) !important;
}

/* ===== دکمه‌های عملیاتی در کارت دستگاه ===== */
.action-buttons {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    margin-top: 15px !important;
    width: 100% !important;
}

.action-buttons .btn {
    width: 100% !important;
    text-align: center !important;
    font-family: iran, Tahoma, sans-serif !important;
}

/* ===== دکمه شروع ===== */
.btn-start {
    background: linear-gradient(135deg, #00ff88 0%, #059669 100%) !important;
    border-color: #00ff88 !important;
    color: #000 !important;
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3) !important;
}

.btn-start:hover {
    box-shadow: 0 8px 30px rgba(0, 255, 136, 0.5) !important;
    border-color: #00ff88 !important;
}

/* ===== دکمه توقف موقت ===== */
.btn-pause {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    border-color: #f59e0b !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3) !important;
}

.btn-pause:hover {
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.5) !important;
    border-color: #f59e0b !important;
}

/* ===== دکمه تسویه حساب ===== */
.btn-stop {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    border-color: #ef4444 !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3) !important;
}

.btn-stop:hover {
    box-shadow: 0 8px 30px rgba(239, 68, 68, 0.5) !important;
    border-color: #ef4444 !important;
}

/* ===== دکمه ادامه بازی ===== */
.btn-continue {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    border-color: #3b82f6 !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3) !important;
}

.btn-continue:hover {
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.5) !important;
    border-color: #3b82f6 !important;
}

/* ===== ریسپانسیو برای موبایل ===== */
@media (max-width: 768px) {
    .btn-lg {
        padding: 16px 24px !important;
        font-size: 18px !important;
        min-height: 56px !important;
    }
    
    .action-buttons {
        gap: 12px !important;
    }
}

@media (max-width: 480px) {
    .btn-lg {
        padding: 18px 20px !important;
        font-size: 16px !important;
        min-height: 50px !important;
        border-radius: 10px !important;
    }
    
    .action-buttons {
        gap: 10px !important;
    }
}
/* ================================================
   🔒 Privacy Shield - محافظت از زاویه دید
   ترکیبی از تار شدن + شیشه مات + هاور برای وضوح
   ================================================ */

.timer, .cost {
    position: relative;
    transition: all 0.25s ease;
    border-radius: 12px;
}

/* ===== حالت عادی: تار و مات - فقط از روبرو دیده میشه ===== */
.timer, .cost {
    filter: blur(3px);
    opacity: 0.45;
    background: rgba(0, 255, 255, 0.06);
    padding: 10px 15px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* ===== لایه محافظ اضافی ===== */
.timer::before, .cost::before {
    content: '';
    position: absolute;
    inset: -5px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(0, 0, 0, 0.65) 10%,
        rgba(0, 0, 0, 0.65) 90%,
        transparent 100%
    );
    border-radius: 15px;
    pointer-events: none;
    opacity: 0.55;
    transition: opacity 0.3s;
    z-index: -1;
    filter: blur(10px);
}

/* ===== آیکون قفل - نشانه محافظت ===== */
.timer::after, .cost::after {
    content: '🔒';
    position: absolute;
    top: -10px;
    left: -5px;
    font-size: 10px;
    opacity: 0.45;
    animation: privacyLockPulse 2.5s infinite;
    pointer-events: none;
}

@keyframes privacyLockPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.15); }
}

/* ===== هاور یا لمس: کاملاً واضح ===== */
.timer:hover, .cost:hover,
.timer:focus, .cost:focus,
.device-card:hover .timer,
.device-card:hover .cost {
    filter: blur(0px) !important;
    opacity: 1 !important;
    background: rgba(0, 255, 255, 0.15) !important;
    backdrop-filter: blur(0px) !important;
    -webkit-backdrop-filter: blur(0px) !important;
    text-shadow: 
        0 0 12px rgba(0, 255, 255, 0.9),
        0 0 25px rgba(0, 255, 255, 0.5) !important;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

/* ===== وقتی هاور شد، لایه محافظ و قفل رو بردار ===== */
.timer:hover::before, .cost:hover::before,
.device-card:hover .timer::before,
.device-card:hover .cost::before {
    opacity: 0;
}

.timer:hover::after, .cost:hover::after,
.device-card:hover .timer::after,
.device-card:hover .cost::after {
    opacity: 0;
}

/* ===== برای دستگاه‌های Pause شده ===== */
.device-card.busy .timer {
    font-family: 'Courier New', monospace;
    font-weight: bold;
}

/* ===== شیب سه بعدی برای محدود کردن زاویه دید ===== */
@media (min-width: 769px) {
    .devices-container {
        perspective: 1200px;
    }
    
    .device-card.busy .timer,
    .device-card.busy .cost {
        transform: rotateY(-4deg) rotateX(-1deg);
        transform-origin: center center;
    }
    
    .device-card.busy:hover .timer,
    .device-card.busy:hover .cost {
        transform: rotateY(0deg) rotateX(0deg);
    }
}

/* ===== موبایل: لمس = وضوح ===== */
@media (max-width: 768px) {
    .timer:active, .cost:active {
        filter: blur(0px) !important;
        opacity: 1 !important;
        background: rgba(0, 255, 255, 0.2) !important;
    }
}
