/* ============================================================
   استایل‌های اصلی - آرایشگاه معین
   ============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazirmatn', sans-serif;
}

body {
    background: #0b0a0a;
    color: #f5f0eb;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
}

.app-container {
    max-width: 480px;
    width: 100%;
    background: #1a1717;
    border-radius: 48px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    padding: 18px 16px 30px;
    position: relative;
}

/* ============================================================
   هدر اسلایدر
   ============================================================ */
.header-slider {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    height: 200px;
    background: #2d2420;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
    margin-bottom: 20px;
}

.slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    background-blend-mode: overlay;
    background-color: rgba(0, 0, 0, 0.35);
}

.slide h2 {
    font-weight: 900;
    font-size: 1.8rem;
    text-shadow: 0 8px 20px rgba(0, 0, 0, 0.8);
    color: #f2e3d5;
    backdrop-filter: blur(4px);
    padding: 6px 18px;
    border-radius: 60px;
    background: rgba(20, 15, 12, 0.4);
    border: 1px solid rgba(255, 210, 170, 0.15);
}

.slider-controls {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 5;
}

.slider-controls span {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: rgba(255, 215, 180, 0.3);
    border-radius: 20px;
    transition: 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 200, 150, 0.2);
}

.slider-controls span.active {
    width: 28px;
    background: #dbaa7a;
    border-color: #f5d6b0;
    box-shadow: 0 0 20px #dbaa7a88;
}

/* ============================================================
   برند و هدر
   ============================================================ */
.brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding: 0 4px;
}

.brand h1 {
    font-weight: 900;
    font-size: 1.8rem;
    background: linear-gradient(135deg, #f2dac4, #e6b68b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand i {
    color: #dbaa7a;
    font-size: 1.8rem;
    filter: drop-shadow(0 0 10px #dbaa7a55);
}

.brand-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.brand-actions a,
.brand-actions .contact-btn {
    background: rgba(219, 170, 122, 0.1);
    border: 1px solid rgba(219, 170, 122, 0.2);
    color: #dbaa7a;
    padding: 8px 12px;
    border-radius: 60px;
    text-decoration: none;
    font-size: 0.8rem;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.brand-actions a:hover,
.brand-actions .contact-btn:hover {
    background: rgba(219, 170, 122, 0.2);
}

.brand-actions .contact-btn {
    background: rgba(46, 204, 113, 0.15);
    border-color: rgba(46, 204, 113, 0.3);
    color: #2ecc71;
    cursor: pointer;
    border: none;
}

.brand-actions .contact-btn:hover {
    background: rgba(46, 204, 113, 0.25);
}

/* ============================================================
   فرم رزرو
   ============================================================ */
.reserve-form {
    background: rgba(40, 33, 30, 0.6);
    backdrop-filter: blur(12px);
    border-radius: 32px;
    padding: 20px 18px;
    border: 1px solid rgba(255, 210, 170, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    font-weight: 400;
    font-size: 0.85rem;
    color: #cbb5a3;
    margin-bottom: 5px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    background: #2b2420;
    border: 1px solid #3f332c;
    border-radius: 60px;
    color: #f0e3d8;
    font-weight: 400;
    font-size: 0.95rem;
    outline: none;
    transition: 0.25s ease;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #dbaa7a;
    box-shadow: 0 0 0 3px #dbaa7a33;
    background: #322925;
}

.form-group input::placeholder {
    color: #7f6e60;
}

.price-display {
    background: #2b2420;
    padding: 10px 16px;
    border-radius: 60px;
    border: 1px solid #dbaa7a33;
    color: #dbaa7a;
    font-weight: 700;
    font-size: 1.1rem;
    text-align: center;
}

/* ============================================================
   تقویم شمسی
   ============================================================ */
.datepicker-plot-area {
    background: #2b2420 !important;
    border: 1px solid #dbaa7a33 !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.9) !important;
    padding: 16px !important;
    width: 300px !important;
    font-family: 'Vazirmatn', sans-serif !important;
    direction: rtl !important;
}

.datepicker-plot-area .datepicker-header {
    background: #1a1717 !important;
    border-radius: 12px !important;
    padding: 10px 14px !important;
    margin-bottom: 12px !important;
    direction: ltr !important;
}

.datepicker-plot-area .datepicker-header .datepicker-title {
    color: #f0e3d8 !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
}

.datepicker-plot-area .datepicker-header .datepicker-btn {
    color: #dbaa7a !important;
    background: transparent !important;
    border: none !important;
    font-size: 1.2rem !important;
    padding: 4px 12px !important;
    cursor: pointer !important;
    transition: 0.2s !important;
}

.datepicker-plot-area .datepicker-header .datepicker-btn:hover {
    color: #e8bc92 !important;
    transform: scale(1.1) !important;
}

.datepicker-plot-area .datepicker-day-view .header-row-cell {
    color: #a68f7d !important;
    font-weight: 700 !important;
    font-size: 0.8rem !important;
    padding: 6px 0 !important;
}

.datepicker-plot-area .datepicker-cell {
    color: #f0e3d8 !important;
    border-radius: 8px !important;
    padding: 6px 4px !important;
    font-size: 0.9rem !important;
    transition: 0.2s !important;
    cursor: pointer !important;
}

.datepicker-plot-area .datepicker-cell:hover:not(.disabled) {
    background: #3f332c !important;
}

.datepicker-plot-area .datepicker-cell.selected {
    background: #dbaa7a !important;
    color: #1a1717 !important;
    font-weight: 700 !important;
}

.datepicker-plot-area .datepicker-cell.today {
    border: 2px solid #dbaa7a !important;
    font-weight: 700 !important;
}

.datepicker-plot-area .datepicker-cell.disabled {
    opacity: 0.3 !important;
    cursor: not-allowed !important;
    color: #5a4f48 !important;
}

.datepicker-plot-area .datepicker-cell.other-month {
    color: #5a4f48 !important;
}

.datepicker-plot-area .pwt-btn-switch {
    background: transparent !important;
    color: #dbaa7a !important;
    font-weight: 700 !important;
}

.datepicker-plot-area .pwt-btn-next,
.datepicker-plot-area .pwt-btn-prev {
    background: transparent !important;
    color: #dbaa7a !important;
    font-size: 1.1rem !important;
    padding: 4px 12px !important;
}

.datepicker-plot-area .pwt-btn-next:hover,
.datepicker-plot-area .pwt-btn-prev:hover {
    background: rgba(219, 170, 122, 0.1) !important;
    border-radius: 8px !important;
}

.datepicker-plot-area .toolbox .pwt-btn-today,
.datepicker-plot-area .toolbox .pwt-btn-submit {
    background: rgba(219, 170, 122, 0.1) !important;
    color: #dbaa7a !important;
    border: 1px solid rgba(219, 170, 122, 0.2) !important;
    border-radius: 40px !important;
    padding: 6px 16px !important;
    font-weight: 700 !important;
    transition: 0.2s !important;
}

.datepicker-plot-area .toolbox .pwt-btn-today:hover,
.datepicker-plot-area .toolbox .pwt-btn-submit:hover {
    background: #dbaa7a !important;
    color: #1a1717 !important;
}

/* ============================================================
   جدول ساعت‌ها
   ============================================================ */
.time-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 12px;
}

.time-slot {
    padding: 10px 6px;
    background: #2b2420;
    border: 1px solid #3f332c;
    border-radius: 16px;
    text-align: center;
    cursor: pointer;
    transition: 0.2s ease;
    font-size: 0.85rem;
    color: #f0e3d8;
}

.time-slot:hover:not(.booked):not(.past):not(.date-past):not(.holiday) {
    background: #3f332c;
    border-color: #dbaa7a;
    transform: scale(1.05);
}

.time-slot.selected {
    background: #dbaa7a;
    color: #1a1717;
    border-color: #dbaa7a;
    font-weight: 700;
}

.time-slot.booked {
    background: #4d2e2e;
    border-color: #6d3a3a;
    color: #a08080;
    cursor: not-allowed;
    opacity: 0.7;
}

.time-slot.booked::after {
    content: " ❌";
    font-size: 0.7rem;
}

.time-slot.past {
    background: #1a1414;
    border-color: #2a1f1f;
    color: #4a3a3a;
    cursor: not-allowed;
    opacity: 0.5;
}

.time-slot.past::after {
    content: " ⏰";
    font-size: 0.7rem;
}

.time-slot.date-past {
    background: #1a1414;
    border-color: #2a1f1f;
    color: #3a2a2a;
    cursor: not-allowed;
    opacity: 0.4;
}

.time-slot.date-past::after {
    content: " 📅";
    font-size: 0.7rem;
}

.time-slot.holiday {
    background: #2a1a1a;
    border-color: #3a2a2a;
    color: #5a4a4a;
    cursor: not-allowed;
    opacity: 0.6;
}

.time-slot.holiday::after {
    content: " 🎯";
    font-size: 0.7rem;
}

.btn-reserve {
    width: 100%;
    padding: 14px;
    background: linear-gradient(145deg, #dbaa7a, #c28d5e);
    border: none;
    border-radius: 60px;
    font-weight: 900;
    font-size: 1.1rem;
    color: #1f1714;
    cursor: pointer;
    transition: 0.25s ease;
    box-shadow: 0 8px 25px rgba(219, 170, 122, 0.3);
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-reserve:hover {
    transform: scale(1.02);
    background: #e8bc92;
}

.btn-reserve:active {
    transform: scale(0.96);
}

.btn-reserve.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ============================================================
   پاپ‌آپ ارتباط با ما
   ============================================================ */
.contact-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 3000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.contact-overlay.show {
    display: flex;
}

.contact-popup {
    background: #1a1717;
    border-radius: 32px;
    padding: 30px 28px;
    max-width: 380px;
    width: 90%;
    border: 1px solid #dbaa7a33;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.9);
    position: relative;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.contact-popup .close-btn {
    position: absolute;
    top: 12px;
    left: 16px;
    background: none;
    border: none;
    color: #a68f7d;
    font-size: 1.4rem;
    cursor: pointer;
    transition: 0.2s;
}

.contact-popup .close-btn:hover {
    color: #f0e3d8;
    transform: rotate(90deg);
}

.contact-popup .popup-title {
    color: #dbaa7a;
    font-size: 1.3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: #2b2420;
    border-radius: 16px;
    margin-bottom: 10px;
    text-decoration: none;
    color: #f0e3d8;
    transition: 0.2s;
    border: 1px solid transparent;
}

.contact-item:hover {
    border-color: #dbaa7a33;
    background: #322925;
    transform: translateX(-4px);
}

.contact-item .icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-item .icon.whatsapp {
    background: rgba(37, 211, 102, 0.2);
    color: #25d366;
}

.contact-item .icon.instagram {
    background: rgba(225, 48, 108, 0.2);
    color: #e1306c;
}

.contact-item .icon.phone {
    background: rgba(219, 170, 122, 0.2);
    color: #dbaa7a;
}

.contact-item .info {
    flex: 1;
}

.contact-item .info .label {
    font-size: 0.7rem;
    color: #a68f7d;
}

.contact-item .info .value {
    font-weight: 700;
    font-size: 0.95rem;
}

/* ============================================================
   فوتر
   ============================================================ */
.footer {
    text-align: center;
    padding: 16px 0 4px;
    color: #5a4f48;
    font-size: 0.75rem;
    border-top: 1px solid #2f2621;
    margin-top: 8px;
}

.footer .heart {
    color: #e74c3c;
    display: inline-block;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.footer a {
    color: #dbaa7a;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* ============================================================
   نوتیفیکیشن
   ============================================================ */
.notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #dbaa7a;
    color: #1a1717;
    padding: 12px 24px;
    border-radius: 60px;
    font-weight: 700;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: none;
    animation: slideDown 0.3s ease;
    max-width: 90%;
}

.notification.error {
    background: #8a3a3a;
    color: #f0d0d0;
}

@keyframes slideDown {
    from {
        transform: translateX(-50%) translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

/* ============================================================
   ریسپانسیو
   ============================================================ */
@media (max-width: 420px) {
    .app-container {
        padding: 12px 10px 20px;
    }
    .header-slider {
        height: 150px;
    }
    .slide h2 {
        font-size: 1.4rem;
    }
    .time-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .datepicker-plot-area {
        width: 260px !important;
    }
    .brand-actions a {
        padding: 6px 10px;
        font-size: 0.7rem;
    }
    .brand-actions a span {
        display: none;
    }
    .contact-popup {
        padding: 24px 18px;
    }
}