/*
Theme Name: Smart Timer
Theme URI: https://example.com/smart-timer
Author: DeCoder
Author URI: https://time.ouldoooz.ir
Description: A responsive WordPress theme for Smart Timer application with RTL support.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: smart-timer
*/

/* ==================== متغیرهای CSS ==================== */
:root {
    --bg-primary: #121212;
    --bg-secondary: #1e1e1e;
    --bg-tertiary: #252525;
    --bg-quaternary: #2a2a2a;
    --text-primary: #e0e0e0;
    --text-secondary: #9e9e9e;
    --accent-color: #9c27b0;
    --accent-color-secondary: #673ab7;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --danger-color: #f44336;
    --timer-card-width: 350px;
    --sidebar-width: 320px;
    --timer-name-color: #ff0000;
    --customer-timer-bg: linear-gradient(135deg, #2e1a47, #4527a0);
    --customer-timer-border: #7e57c2;
    --negative-balance-color: #e53935;
}

/* ==================== استایل‌های پایه ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Lalezar", system-ui;
    overflow-y: auto; 
    scrollbar-width: none; 
}
* {
  scrollbar-width: none; 
}
* {
  -ms-overflow-style: none;  
}
*::-webkit-scrollbar {
  display: none; 
}
.sidebar ::-webkit-scrollbar {
    display: none; 
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    padding: 0;
    transition: background-color 0.3s ease;
    overflow-x: hidden;
    direction: rtl;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* برای مخفی کردن فلش‌ها در فایرفاکس */
input[type="number"] {
  -moz-appearance: textfield;
}

/* ==================== تم‌ها ==================== */
body.light-theme {
    --bg-primary: #f5f5f5;
    --bg-secondary: #ffffff;
    --bg-tertiary: #eeeeee;
    --bg-quaternary: #e0e0e0;
    --text-primary: #212121;
    --text-secondary: #757575;
    --accent-color: #673ab7;
    --accent-color-secondary: #9c27b0;
    --timer-name-color: #d32f2f;
        --customer-timer-bg: linear-gradient(135deg, #f3e5f5, #e1bee7);
    --customer-timer-border: #ce93d8;
    --negative-balance-color: #c62828;
}

body.glass-theme {
    --bg-primary: rgba(18, 18, 18, 0.7);
    --bg-secondary: rgba(30, 30, 30, 0.6);
    --bg-tertiary: rgba(37, 37, 37, 0.5);
    --bg-quaternary: rgba(42, 42, 42, 0.4);
    --text-primary: #f0f0f0;
    --text-secondary: #b0b0b0;
    --accent-color: #00bcd4;
    --accent-color-secondary: #00acc1;
    --timer-name-color: #ff5722;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
        --customer-timer-bg: linear-gradient(135deg, rgba(46, 26, 71, 0.7), rgba(69, 39, 160, 0.7));
    --customer-timer-border: rgba(126, 87, 194, 0.7);
    --negative-balance-color: rgba(229, 57, 53, 0.8);
}
 body.green-theme {
            --bg-primary: #e8f5e9; /* Green 50 */
            --bg-secondary: #f1f8e9; /* Green 100 */
            --bg-tertiary: #dcedc8; /* Green 200 */
            --bg-quaternary: #c5e1a5; /* Green 300 */
            --text-primary: #1b5e20; /* Green 900 */
            --text-secondary: #2e7d32; /* Green 800 */
            --accent-color: #66bb6a; /* Green 400 */
            --accent-color-secondary: #4caf50; /* Green 500 */
            --timer-name-color: #1b5e20;
                --customer-timer-bg: linear-gradient(135deg, #1a2e1a, #2e7d32);
    --customer-timer-border: #66bb6a;
    --negative-balance-color: #e53935; /* ثابت باقی می‌ماند */
        }

        body.blue-theme {
            --bg-primary: #e3f2fd; /* Blue 50 */
            --bg-secondary: #e1f5fe; /* Cyan 50 */
            --bg-tertiary: #bbdefb; /* Blue 200 */
            --bg-quaternary: #90caf9; /* Blue 300 */
            --text-primary: #0d47a1; /* Blue 900 */
            --text-secondary: #1565c0; /* Blue 800 */
            --accent-color: #42a5f5; /* Blue 400 */
            --accent-color-secondary: #2196f3; /* Blue 500 */
            --timer-name-color: #0d47a1;
                --customer-timer-bg: linear-gradient(135deg, #1a2e47, #1565c0);
    --customer-timer-border: #42a5f5;
    --negative-balance-color: #e53935; /* ثابت باقی می‌ماند */
        }
/* ==================== ساختار اصلی برنامه ==================== */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* ==================== نوار کناری (سایدبار) ==================== */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    z-index: 1000;
    overflow-y: auto;
    transform: translateX(0);
}

.sidebar.collapsed {
    transform: translateX(calc(100% - 50px));
}

.sidebar-toggle {
    position: absolute;
    left: 10px;
    top: 20px;
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--bg-tertiary);
}

.sidebar-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.sidebar-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.sidebar-content {
    padding: 20px;
}

.sidebar-section {
    margin-bottom: 25px;
}

.sidebar-section-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-btn {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 10px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
}

.sidebar-btn-primary {
    background: linear-gradient(135deg, var(--accent-color-secondary), var(--accent-color));
    color: white;
}

.sidebar-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(103, 58, 183, 0.4);
}

.sidebar-btn-secondary {
    background: var(--bg-quaternary);
    color: var(--text-primary);
    border: 1px solid var(--bg-tertiary);
}

.sidebar-btn-secondary:hover {
    background: var(--bg-tertiary);
}

/* ==================== محتوای اصلی ==================== */
.main-content {
    flex: 1;
    padding: 20px;
    margin-right: var(--sidebar-width);
    transition: margin-right 0.3s ease;
    height: 100vh;
    overflow-y: auto;
}

.main-content.expanded {
    margin-right: 50px;
}

/* ==================== هدر ==================== */
header, .main-header {
    text-align: center;
    margin-bottom: 20px;
    padding: 15px;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.main-header {
    position: relative;
}

h1 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* ==================== بخش اطلاعات کاربر ==================== */
.user-info-bar {
    position: absolute;
    top: 50%;
    left: 30px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-tertiary);
    padding: 8px 15px;
    border-radius: 50px;
    border: 1px solid var(--bg-quaternary);
    transition: border-color 0.3s ease;
}

.user-info-bar.active {
    border-color: var(--success-color);
}

.user-info-bar.warning {
    border-color: var(--warning-color);
}

.user-info-bar.expired {
    border-color: var(--danger-color);
}

.user-info-bar.expired .user-expiry {
    color: var(--danger-color);
    font-weight: bold;
}

.user-avatar img {
    border-radius: 50%;
    border: 2px solid var(--accent-color);
    width: 40px;
    height: 40px;
}

.user-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.user-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.user-expiry {
    font-size: 0.75rem;
    color: #000000;
    font-family: sans-serif;
}

.logout-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.logout-btn:hover {
    color: var(--danger-color);
}

.login-register-btn {
    position: absolute;
    top: 50%;
    left: 30px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--accent-color-secondary), var(--accent-color));
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-family: "Lalezar", system-ui;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(156, 39, 176, 0.3);
}

.login-register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(156, 39, 176, 0.4);
}

/* ==================== تایمرها ==================== */
.timer-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(var(--timer-card-width), 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.timer-card {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: fit-content;
}

.timer-card:hover {
    transform: translateY(-5px);
}

.timer-card.alarm-active {
    background: linear-gradient(135deg, #4a1010, #6a1010);
    box-shadow: 0 5px 20px rgba(244, 67, 54, 0.5);
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 5px 20px rgba(244, 67, 54, 0.5); }
    50% { box-shadow: 0 5px 30px rgba(244, 67, 54, 0.8); }
    100% { box-shadow: 0 5px 20px rgba(244, 67, 54, 0.5); }
}

.timer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.timer-name {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--timer-name-color);
    font-family: "Kaushan Script", cursive !important;
    font-weight: 400 !important;
    font-style: normal !important;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.3), 0 2px 0 rgba(0, 0, 0, 0.2), 0 3px 0 rgba(0, 0, 0, 0.1), 0 4px 3px rgba(0, 0, 0, 0.1), 0 5px 5px rgba(0, 0, 0, 0.05), 0 6px 1px rgba(0, 0, 0, 0.1), 0 0 5px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.3), 0 3px 5px rgba(0, 0, 0, 0.2), 0 5px 10px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.2), 0 20px 20px rgba(0, 0, 0, 0.15);
    font-weight: bold !important;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    flex: 1;
    text-align: center;
}

.timer-actions {
    display: flex;
    gap: 8px;
}

.timer-display {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin: 5px 0;
    font-family: "Kaushan Script", cursive;
    text-shadow: 0px 1px 1px rgba(76, 76, 76, 1), 1px -1px 1px rgba(76, 76, 76, 1);
    color: var(--accent-color);
}

.timer-price {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: var(--success-color);
}

.timer-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 5px;
}

.timer-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.start-btn {
    background: var(--success-color);
    color: white;
}

.start-btn:hover {
    background: #45a049;
}

.pause-btn {
    background: var(--warning-color);
    color: white;
}

.pause-btn:hover {
    background: #e68900;
}

.reset-btn {
    background: var(--danger-color);
    color: white;
}

.reset-btn:hover {
    background: #d32f2f;
}

.timer-settings {
    margin-top: 5px;
    padding-top: 10px;
    border-top: 1px solid var(--bg-tertiary);
    text-align: center;
}

.timer-overall-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px;
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-quaternary));
    border-radius: 5px;
    margin-top: 0px;
}

.timer-overall-total-label {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
}

.timer-overall-total-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.setting-row {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2px;
    gap: 10px;
}

.setting-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.setting-input {
    background: var(--bg-quaternary);
    border: 1px solid var(--bg-tertiary);
    border-radius: 5px;
    padding: 8px 12px;
    color: var(--text-primary);
    width: 120px;
    text-align: left;
}

.timer-description {
    width: 100%;
    background: var(--bg-quaternary);
    border: 1px solid var(--bg-tertiary);
    border-radius: 5px;
    padding: 1px;
    color: var(--text-primary);
    margin-top: 10px;
    resize: vertical;
    min-height: 60px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.stop-alarm-btn {
    background: var(--danger-color);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 8px 12px;
    cursor: pointer;
    margin-top: 10px;
    width: 100%;
    display: none;
}

.timer-card.alarm-active .stop-alarm-btn {
    display: block;
}

/* ==================== دکمه‌ها ==================== */
.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color-secondary), var(--accent-color));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(103, 58, 183, 0.4);
}

.btn-secondary {
    background: var(--bg-quaternary);
    color: var(--text-primary);
    border: 1px solid var(--bg-tertiary);
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
}

.category-btn {
    background: var(--bg-quaternary);
    color: var(--text-primary);
    border: 1px solid var(--bg-tertiary);
    border-radius: 5px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn:hover {
    background: var(--bg-tertiary);
}

.category-btn.active {
    background: var(--accent-color-secondary);
    color: white;
    border-color: var(--accent-color-secondary);
}

.edit-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.edit-btn:hover {
    color: var(--accent-color);
}

.delete-btn {
    background: none;
    border: none;
    color: var(--danger-color);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.delete-btn:hover {
    color: #d32f2f;
    transform: scale(1.1);
}

.shop-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.shop-btn:hover {
    color: var(--accent-color);
}

/* ==================== فرم‌ها ==================== */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.form-input {
    width: 100%;
    background: var(--bg-quaternary);
    border: 1px solid var(--bg-tertiary);
    border-radius: 5px;
    padding: 12px;
    color: var(--text-primary);
}

/* ==================== مودال ==================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 3000;
    justify-content: center;
    align-items: center;
}
.modal-content-shop {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border-radius: 15px;
    padding: 30px;
    width: 90%;
    max-width: 800px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    max-height: 90vh;
    overflow-y: auto;
}
.modal-content {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border-radius: 15px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    max-height: 90vh;
    overflow-y: auto;
}
.mmodal-content {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border-radius: 15px;
    padding: 30px;
    width: 90%;
    max-width: 950px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    max-height: 90vh;
    overflow-y: auto;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-title {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.close-btn, .close-modal {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ==================== نوتیفیکیشن (Toast) ==================== */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-quaternary);
    color: var(--text-primary);
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: none;
    z-index: 2000;
}

.toast.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ==================== چک‌باکس و تنظیمات هشدار ==================== */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox {
    width: 20px;
    height: 20px;
    accent-color: var(--accent-color);
}

.alarm-settings {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.alarm-input {
    background: var(--bg-quaternary);
    border: 1px solid var(--bg-tertiary);
    border-radius: 5px;
    padding: 8px 12px;
    color: var(--text-primary);
    width: 80px;
    text-align: center;
}

/* ==================== تنظیمات دسته‌بندی ==================== */
.category-settings {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--bg-tertiary);
}

.category-setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

/* ==================== پنل تنظیمات ==================== */
.settings-panel {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 999;
    transition: all 0.3s ease;
}

.settings-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.settings-toggle:hover {
    background: var(--bg-quaternary);
}

.settings-content {
    display: none;
    flex-direction: column;
    gap: 15px;
}

.settings-content.show {
    display: flex;
}

.settings-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.settings-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.theme-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.theme-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-btn:hover {
    transform: scale(1.1);
}

.theme-btn.active {
    border-color: var(--accent-color);
}

.theme-dark {
    background: linear-gradient(135deg, #121212, #2a2a2a);
}

.theme-light {
    background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
}

.theme-green {
    background: linear-gradient(135deg, #e8f5e9, #c5e1a5);
}

.theme-blue {
    background: linear-gradient(135deg, #e3f2fd, #90caf9);
}

.theme-glass {
    background: linear-gradient(135deg, rgba(18, 18, 18, 0.7), rgba(42, 42, 42, 0.4));
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.size-slider {
    width: 100%;
    margin-top: 5px;
}

.size-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ==================== فروشگاه ==================== */
.shop-items {
    margin-bottom: 10px;
        max-height: 150px;
    overflow-y: auto;
    margin-bottom: 10px;
    display: grid ;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
}

.shop-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    background: var(--bg-quaternary);
    border-radius: 5px;
    margin-bottom: 5px;
}

.shop-item-name {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.shop-item-price {
    font-size: 0.9rem;
    color: var(--success-color);
}

.shop-item-controls {
    display: flex;
    align-items: center;
    gap: 5px;
}

.shop-item-quantity {
    width: 30px;
    text-align: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--bg-quaternary);
    border-radius: 3px;
    color: var(--text-primary);
    padding: 2px;
}

.shop-item-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.shop-item-add {
    background: var(--success-color);
    color: white;
}

.shop-item-remove {
    background: var(--danger-color);
    color: white;
}

.shop-item-delete {
    background: var(--danger-color);
    color: white;
    margin-right: 5px;
}

.shop-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: var(--bg-quaternary);
    border-radius: 5px;
    margin-top: 10px;
}

.shop-total-label {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
}

.shop-total-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--success-color);
}

.overall-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-quaternary));
    border-radius: 5px;
    margin-top: 15px;
}

.overall-total-label {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-primary);
}

.overall-total-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-color);
}

/* ==================== مدیریت بوفه ==================== */
.buffet-management {
    margin-top: 20px;
    padding: 15px;
    background: var(--bg-quaternary);
    border-radius: 10px;
}

.buffet-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.buffet-items {
    max-height: 550px;
    overflow-y: auto;
    margin-bottom: 15px;
    overflow-y: auto;
    margin-bottom: 10px;
    display: grid ;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
}

.buffet-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: var(--bg-tertiary);
    border-radius: 5px;
    margin-bottom: 8px;
}

.buffet-item-info {
    flex: 1;
}

.buffet-item-name {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.buffet-item-price {
    font-size: 0.9rem;
    color: var(--success-color);
}

.buffet-item-actions {
    display: flex;
    gap: 5px;
}

.buffet-item-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.buffet-edit-btn {
    background: var(--warning-color);
    color: white;
}

.buffet-delete-btn {
    background: var(--danger-color);
    color: white;
}

.add-buffet-item-btn {
    width: 100%;
    padding: 10px;
    background: var(--bg-tertiary);
    border: 1px dashed var(--bg-quaternary);
    border-radius: 5px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.add-buffet-item-btn:hover {
    background: var(--bg-quaternary);
    color: var(--text-primary);
}

.shop-btn i {
    color: var(--warning-color); 
    transition: color 0.3s ease; /
}

.shop-btn:hover i {
    color: var(--accent-color); 
}
/* ==================== تب‌ها ==================== */
.tabs-container {
    background: var(--bg-secondary);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--bg-tertiary);
}

.tab {
    padding: 10px 15px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.tab.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

.tab-content {
    display: none;
    height: calc(100vh - 280px);
    overflow-y: auto;
}

.tab-content.active {
    display: block;
}

/* ==================== بخش معرفی ==================== */
.intro-section {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.intro-content {
    flex: 1;
}

.intro-title {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.intro-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.intro-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.intro-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
}

.intro-feature i {
    color: var(--success-color);
}

.intro-image {
    flex: 1;
    max-width: 400px;
}

.intro-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* ==================== بخش ویژگی‌ها ==================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.feature-card {
    background: var(--bg-tertiary);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.feature-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.feature-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ==================== بخش تعرفه‌ها ==================== */
.pricing-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.pricing-card {
    background: var(--bg-tertiary);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease;
}

.pricing-card.featured {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(156, 39, 176, 0.3);
}

.pricing-card.featured::before {
    content: "محبوب‌ترین";
    position: absolute;
    top: 10px;
    right: -30px;
    background: var(--accent-color);
    color: white;
    padding: 5px 40px;
    transform: rotate(45deg);
    font-size: 0.8rem;
}

.plan-name {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.plan-period {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.plan-features {
    list-style: none;
    text-align: right;
    margin-bottom: 20px;
}

.plan-feature {
    padding: 8px 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.plan-feature i {
    color: var(--success-color);
}

/* ==================== بخش ویدیو ==================== */
.video-container {
    background: var(--bg-tertiary);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
}

.video-placeholder {
    width: 100%;
    height: 300px;
    background: var(--bg-quaternary);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-placeholder:hover {
    background: var(--bg-tertiary);
}

.play-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-color);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.play-button:hover {
    transform: scale(1.1);
    background: var(--accent-color-secondary);
}

.play-icon {
    color: white;
    font-size: 1.5rem;
    margin-right: 3px;
}

/* ==================== بخش گالری ==================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 150px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 10px;
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

/* ==================== بخش ورود/ثبت‌نام ==================== */
.auth-container {
    display: flex;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.auth-form {
    flex: 1;
    background: var(--bg-tertiary);
    padding: 25px;
    border-radius: 15px;
}

.auth-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
    color: var(--text-primary);
}

/* ==================== پنل اسلاید ==================== */
.slide-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 2000;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
}

.slide-panel.active {
    transform: translateX(0);
}

.slide-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--bg-tertiary);
}

.slide-panel-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.slide-panel-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.slide-panel-close:hover {
    background: var(--bg-quaternary);
    color: var(--text-primary);
}

.slide-panel-content {
    padding: 20px;
}

.slide-panel-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--bg-tertiary);
}

.slide-panel-tab {
    padding: 12px 20px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    font-size: 1rem;
    font-weight: 500;
}

.slide-panel-tab:hover {
    color: var(--text-primary);
}

.slide-panel-tab.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

.slide-panel-tab-content {
    display: none;
    padding: 20px;
    background: var(--bg-quaternary);
    border-radius: 10px;
    min-height: 700px;
}

.slide-panel-tab-content.active {
    display: block;
}

.slide-panel-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 700px;
    color: var(--text-secondary);
}

.slide-panel-empty-state i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.slide-panel-empty-state p {
    font-size: 1.1rem;
    text-align: center;
}

/* ==================== بخش کاربران ==================== */
.user-list-container, .user-stats-container {
    background: var(--bg-tertiary);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
}

.list-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.list-title i.fa-circle {
    color: var(--success-color);
    font-size: 0.7rem;
    animation: pulse 2s infinite;
}

.users-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.user-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: var(--bg-quaternary);
    border-radius: 10px;
    transition: transform 0.2s ease, background-color 0.2s ease;
    position: relative;
}

.user-item:hover {
    transform: translateX(-5px);
    background: var(--bg-secondary);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--bg-tertiary);
}

.user-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.user-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.user-role {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.online-indicator {
    width: 10px;
    height: 10px;
    background: var(--success-color);
    border-radius: 50%;
    position: absolute;
    top: 10px;
    left: 10px;
    box-shadow: 0 0 8px var(--success-color);
}

.no-users {
    text-align: center;
    color: var(--text-secondary);
    padding: 20px;
}

.user-stats-container ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.user-stats-container li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--bg-quaternary);
    font-size: 0.9rem;
}

.user-stats-container li:last-child {
    border-bottom: none;
}

.stat-label {
    color: var(--text-secondary);
}

.stat-value {
    color: var(--accent-color);
    font-weight: 600;
}

/* ==================== بخش انتخاب بوفه ==================== */
.buffet-selection {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--bg-tertiary);
}

.buffet-selection-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.buffet-selection-items {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 15px;
}

.buffet-selection-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: var(--bg-quaternary);
    border-radius: 5px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.buffet-selection-item:hover {
    background: var(--bg-tertiary);
    transform: translateY(-2px);
}

.buffet-selection-item-info {
    flex: 1;
}

.buffet-selection-item-name {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.buffet-selection-item-price {
    font-size: 0.9rem;
    color: var(--success-color);
}

.buffet-selection-item-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: var(--success-color);
    color: white;
}

.empty-buffet-message {
    text-align: center;
    color: var(--text-secondary);
    padding: 20px;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ==================== واکنش‌گرایی (رسپانسیو) ==================== */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        transform: translateX(100%);
    }
    
    .sidebar.collapsed {
        transform: translateX(calc(100% - 50px));
    }
    
    .main-content {
        margin-right: 0;
        padding: 15px;
    }
    
    .main-content.expanded {
        margin-right: 50px;
    }
    
    .timer-container {
        grid-template-columns: 1fr;
    }
    
    .user-info-bar,
    .login-register-btn {
        position: static;
        transform: none;
        margin-top: 20px;
        justify-content: center;
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
    }
}


    /* --- استایل‌های جدید برای بخش کاربران --- */
.user-list-container, .user-stats-container {
    background: var(--bg-tertiary);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
}

.list-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.list-title i.fa-circle {
    color: var(--success-color);
    font-size: 0.7rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.users-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.user-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: var(--bg-quaternary);
    border-radius: 10px;
    transition: transform 0.2s ease, background-color 0.2s ease;
    position: relative;
}

.user-item:hover {
    transform: translateX(-5px);
    background: var(--bg-secondary);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--bg-tertiary);
}

.user-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.user-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.user-role {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.online-indicator {
    width: 10px;
    height: 10px;
    background: var(--success-color);
    border-radius: 50%;
    position: absolute;
    top: 10px;
    left: 10px;
    box-shadow: 0 0 8px var(--success-color);
}

.no-users {
    text-align: center;
    color: var(--text-secondary);
    padding: 20px;
}

.user-stats-container ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.user-stats-container li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--bg-quaternary);
    font-size: 0.9rem;
}

.user-stats-container li:last-child {
    border-bottom: none;
}

.stat-label {
    color: var(--text-secondary);
}

.stat-value {
    color: var(--accent-color);
    font-weight: 600;
}
/* ===================================
      استایل بخش هدر و اطلاعات کاربر (نسخه امن)
=================================== */

.main-header {
    position: relative;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    padding: 20px 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
    text-align: center;
}

.header-site-info h1, .header-site-info p {
    margin: 0;
}

/* استایل بخش اطلاعات کاربر */
.user-info-bar {
    position: absolute;
    top: 50%;
    left: 30px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-tertiary);
    padding: 8px 15px;
    border-radius: 50px;
    border: 1px solid var(--bg-quaternary);
    transition: border-color 0.3s ease;
}

/* --- استایل وضعیت‌های مختلف اشتراک --- */

/* وضعیت عادی و فعال */
.user-info-bar.active {
    border-color: var(--success-color);
}

/* وضعیت هشدار (نزدیک به انقضا) */
.user-info-bar.warning {
    border-color: var(--warning-color);
}

/* وضعیت منقضی شده */
.user-info-bar.expired {
    border-color: var(--danger-color);
}

.user-info-bar.expired .user-expiry {
    color: var(--danger-color);
    font-weight: bold;
}

/* --- بقیه استایل‌ها --- */

.user-avatar img {
    border-radius: 50%;
    border: 2px solid var(--accent-color);
    width: 40px;
    height: 40px;
}

.user-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.user-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.user-expiry {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-family: sans-serif;
}

.logout-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.logout-btn:hover {
    color: var(--danger-color);
}

/* استایل دکمه ورود/ثبت‌نام برای کاربران مهمان */
.login-register-btn {
    position: absolute;
    top: 50%;
    left: 30px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--accent-color-secondary), var(--accent-color));
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-family: "Lalezar", system-ui;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(156, 39, 176, 0.3);
}

.login-register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(156, 39, 176, 0.4);
}

/* واکنش‌گرایی برای موبایل */
@media (max-width: 768px) {
    .user-info-bar,
    .login-register-btn {
        position: static;
        transform: none;
        margin-top: 20px;
        justify-content: center;
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
    }
}
   
    .fullscreen-container {
      width: 100vw; /* ۱۰۰٪ عرض صفحه نمایش (Viewport Width) */
      height: 75vh; /* ۱۰۰٪ ارتفاع صفحه نمایش (Viewport Height) */
    }
    .fullscreen-container iframe {
      width: 96%;
      height: 100%;
      border: none; /* حذف حاشیه دور آی‌فریم */
    }
.registration-guide {
    background: var(--bg-secondary);
    border-radius: 15px;
    padding: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    font-family: "Lalezar", system-ui;
    text-align: center;
    margin-bottom: 30px;
}

/* هدر راهنما */
.guide-header i {
    font-size: 3em;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.guide-header h2 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.guide-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* استایل مراحل */
.guide-steps {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    margin: 40px 0;
    gap: 20px;
}

.step {
    flex: 1;
    background: var(--bg-tertiary);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.step-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-quaternary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.step-icon i {
    font-size: 1.5em;
    color: var(--accent-color);
}

.step-content h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.step-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* بخش فراخوان به اقدام (CTA) */
.guide-cta {
    background: linear-gradient(135deg, var(--accent-color-secondary), var(--accent-color));
    color: #fff;
    padding: 20px 30px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.guide-cta i {
    font-size: 1.5em;
    color: #fff;
}

.guide-cta strong {
    font-size: 1.1rem;
    font-weight: 700; /* برای خوانایی بهتر در فونت Lalezar */
}

.guide-cta a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    margin-right: 10px;
    transition: color 0.3s ease;
}

.guide-cta a:hover {
    color: #f0f0f0; /* کمی روشن‌تر در هاور */
}

/* واکنش‌گرایی برای موبایل */
@media (max-width: 768px) {
    .guide-steps {
        flex-direction: column;
    }
    .guide-cta {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

.buffet-selection-items {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 15px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

.buffet-selection-item {
    display: flex;
    flex-direction: column;
    padding: 8px;
    background: var(--bg-quaternary);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
}

.buffet-selection-item:hover {
    background: var(--bg-tertiary);
    transform: translateY(-2px);
}

.buffet-selection-item-info {
    flex: 1;
    margin-bottom: 8px;
}

.buffet-selection-item-name {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.buffet-selection-item-price {
    font-size: 0.8rem;
    color: var(--success-color);
}

.buffet-selection-item-btn {
    width: 100%;
    height: 28px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    background: var(--success-color);
    color: white;
}

@media (max-width: 768px) {
    .buffet-selection-items {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .buffet-selection-items {
        grid-template-columns: 1fr;
    }
}

/* استایل‌های صحیح و نهایی برای هدر با پوزیشن مطلق */
header {
    display: flex;
    justify-content: center; /* عنوان را در مرکز قرار می‌دهد */
    align-items: center;
    position: relative; /* برای پوزیشن‌دهی عنصر فرزند ضروری است */
    padding: 15px 20px;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.header-title-section {
    text-align: center;
    /* دیگر نیازی به margin نیست */
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 12px;
    position: absolute; /* از جریان عادی خارج می‌شود */
    right: 20px; /* در حالت RTL، این عنصر را به سمت راست می‌چسباند */
    top: 50%;
    transform: translateY(-50%); /* برای وسط‌چین کردن عمودی */
}

/* بقیه استایل‌ها بدون تغییر باقی می‌مانند */
.profile-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-color-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 2px 8px rgba(103, 58, 183, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex-shrink: 0;
}

.profile-circle:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(103, 58, 183, 0.6);
}

.profile-circle img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.header-contact-info {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.header-contact-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
}

.header-contact-phone {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.header-contact-phone:hover {
    color: var(--accent-color);
}

.header-contact-phone i {
    font-size: 0.8rem;
}

/* واکنش‌گرایی برای صفحات کوچک */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .header-title-section {
        order: 2;
    }

    .header-contact {
        order: 1;
        position: static; /* در موبایل به حالت عادی برمی‌گردد */
        left: auto;
        top: auto;
        transform: none;
    }

    .header-contact-name {
        display: none;
    }
    
    .profile-circle {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* استایل‌های دکمه انتخاب مشتری */
.customer-select-btn {
    background: var(--success-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.customer-select-btn:hover {
    background: #45a049;
    transform: scale(1.1);
}

.customer-select-btn.has-customer {
    background: var(--accent-color);
}

/* استایل‌های جدید برای مدیریت مشتریان */
.customer-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding: 8px;
    background: var(--bg-quaternary);
    border-radius: 5px;
}

.customer-icon {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.customer-name {
    font-weight: 500;
    color: var(--text-primary);
}

.customer-balance {
    margin-right: auto;
    color: var(--success-color);
    font-weight: 500;
}

.customer-balance.negative {
    color: var(--negative-balance-color) !important;
    font-weight: 700;
}

.customer-select {
    width: 100%;
    background: var(--bg-quaternary);
    border: 1px solid var(--bg-tertiary);
    border-radius: 5px;
    padding: 8px;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.customer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.customer-item {
    background: var(--bg-quaternary);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    flex-direction: column;
}

.customer-item:hover {
    background: var(--bg-tertiary);
    transform: translateY(-2px);
    border-color: var(--accent-color);
}

.customer-item-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 1.5rem;
    font-weight: bold;
}

.customer-item-name {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.customer-item-balance {
    font-size: 0.9rem;
    color: var(--success-color);
    font-weight: 500;
}

.customer-item-balance.negative {
    color: var(--negative-balance-color) !important;
    font-weight: 700;
}

.customer-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    justify-content: center;
}

.customer-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.customer-edit-btn {
    background: var(--warning-color);
    color: white;
}

.customer-charge-btn {
    background: var(--success-color);
    color: white;
}

.customer-delete-btn {
    background: var(--danger-color);
    color: white;
}

.add-customer-btn {
    width: 100%;
    padding: 12px;
    background: var(--bg-tertiary);
    border: 1px dashed var(--bg-quaternary);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.add-customer-btn:hover {
    background: var(--bg-quaternary);
    color: var(--text-primary);
}

.customer-search {
    width: 100%;
    background: var(--bg-quaternary);
    border: 1px solid var(--bg-tertiary);
    border-radius: 8px;
    padding: 12px;
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 1rem;
}

.customer-stats {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-quaternary));
    border-radius: 8px;
    margin-bottom: 20px;
}

.customer-stat-item {
    text-align: center;
}

.customer-stat-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.customer-stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* استایل‌های تایمر مشتری */
.timer-card.customer-timer {
    background: var(--customer-timer-bg);
    border-color: var(--customer-timer-border);
}

/* استایل‌های دکمه تسویه */
.settle-btn {
    background: var(--accent-color);
    color: white;
    padding: 6px 12px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.settle-btn:hover {
    background: var(--accent-color-secondary);
}

/* استایل دکمه پاکسازی تاریخچه */
.clear-history-btn {
    background: var(--danger-color);
    color: white;
    padding: 8px 12px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-history-btn:hover {
    background: #d32f2f;
    transform: translateY(-1px);
}

/* استایل‌های دیالوگ تأیید */
.confirm-dialog {
    text-align: center;
    padding: 20px;
}

.confirm-icon {
    font-size: 3rem;
    color: var(--warning-color);
    margin-bottom: 15px;
}

.confirm-message {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.confirm-details {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.confirm-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.confirm-customer-info {
    background: var(--bg-quaternary);
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
}

.confirm-customer-name {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.confirm-customer-balance {
    font-size: 1rem;
    color: var(--success-color);
}

.confirm-customer-balance.insufficient {
    color: var(--negative-balance-color);
}

.confirm-total-amount {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-color);
    margin: 15px 0;
}

.confirm-shortage {
    font-size: 1rem;
    color: var(--negative-balance-color);
    margin: 10px 0;
}

/* استایل‌های جدید برای تاریخچه مشتریان */
.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.history-title {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* ==================== تاریخچه (نسخه فشرده گریدی) ==================== */
.history-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* نمایش 5 آیتم در هر ردیف */
    gap: 10px; /* فاصله بین آیتم‌ها */
    max-height: 400px;
    overflow-y: auto;
    margin-top: 15px;
    padding: 5px; /* کمی فاصله از کنارها برای اسکرول بهتر */
}

.history-item {
    display: flex;
    flex-direction: column; /* چیدمان عمودی محتوا داخل آیتم */
    align-items: flex-start;
    padding: 10px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    transition: all 0.3s ease;
    height: 100%; /* مطمئن شدن که ارتفاع آیتم‌ها یکسان است */
    box-sizing: border-box;
}

.history-item:hover {
    background: var(--bg-quaternary);
    transform: translateY(-2px);
}

.history-details {
    flex-grow: 1; /* به جزئیات فضا بدهد تا مبلغ پایین قرار گیرد */
    width: 100%;
}

.history-type {
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 4px;
}

.history-type.charge {
    color: var(--success-color);
}

.history-type.payment {
    color: var(--warning-color);
}

.history-description {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* حذف متن اضافه با ... */
    width: 100%;
}

.history-customer {
    font-size: 0.75rem;
    color: var(--accent-color);
    margin-bottom: 4px;
}

.history-date {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.history-amount {
    font-size: 0.9rem;
    font-weight: 700;
    margin-top: 8px; /* فاصله از بالا */
    align-self: flex-end; /* چسباندن مبلغ به سمت راست */
}

.history-amount.positive {
    color: var(--success-color);
}

.history-amount.negative {
    color: var(--warning-color);
}