
/* ======== General & Body Styles ======== */



  :root {
        --md-sys-color-background: #141414;
        --md-sys-color-surface: #141414;
        --md-sys-color-surface-container: #282828;
        --md-sys-color-primary: #FFD700;
        --md-sys-color-on-primary: #141414;
        --md-sys-color-secondary: #f79433;
        --md-sys-color-error: #ff8a80;
        --md-sys-color-error-container: rgba(220,53,69,0.1);
        --md-sys-color-success: #81c784;
        --md-sys-color-success-container: rgba(40,167,69,0.1);
        --md-sys-color-info: #4dd0e1;
        --md-sys-color-info-container: rgba(23,162,184,0.1);
        --md-radius-extra-large: 28px;
        --md-radius-large: 16px;
        --md-radius-full: 9999px;
    }

    @font-face {
  font-family: Vazirmatn;
  src: url('../font/vazir.ttf');

}

body {
    font-family: 'Vazirmatn';
    background-color: #141414;
    color: #f0f0f0;
    margin: 0;
    padding: 0;

}

html,
body {
    overflow-x: hidden;
    max-width: 100%;
}

/* ======== Login Page Styles ======== */
.login-body {
    /* A special class to center the login form */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.login-container {
    background-color: #2a2a2a;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 400px;
    border-top: 5px solid #248091;
}

.login-container h1 {
    color: #f79433;
    text-align: center;
    margin-top: 0;
    margin-bottom: 30px;
}

/* ======== Admin Panel Layout ======== */
.admin-panel-container {
    display: flex;
    direction: rtl;
    /* Right-to-left layout */
}

.sidebar {
    width: 250px;
    background-color: #2a2a2a;
    height: 100vh;
    position: fixed;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    border-left: 1px solid #444;
}

.sidebar-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #444;
}

.sidebar-header h2 {
    margin: 0;
    color: #f79433;
}

.sidebar-nav {
    flex-grow: 1;
}

.sidebar-nav ul {
    list-style-type: none;
    padding: 0;
    margin: 20px 0 0 0;
}

.sidebar-nav li a {
    display: block;
    color: #f0f0f0;
    text-decoration: none;
    padding: 15px 25px;
    transition: background-color 0.3s ease, border-right 0.3s ease;
    border-right: 4px solid transparent;
}

.sidebar-nav li a:hover {
    background-color: #333;
}

.sidebar-nav li a.active {
    background-color: #1e1e1e;
    border-right: 4px solid #248091;
    color: #fff;
    font-weight: 500;
}

.sidebar-footer {
    padding: 20px;
}

.logout-btn {
    display: block;
    background-color: #a72d2d;
    color: #fff;
    text-align: center;
    padding: 10px;
    border-radius: 24px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.logout-btn:hover {
    background-color: #c43c3c;
}

.main-content {
    margin-right: 250px;
    /* Same as sidebar width */
    width: calc(100% - 250px);
    padding: 30px;
    background-color: #141414;
}

.main-content h1 {
    border-bottom: 2px solid #444;
    padding-bottom: 10px;
    margin-top: 0;
}

.content-wrapper {
    background-color: #1e1e1e;
    padding: 15px;
    border-radius: 24px;

}


/* ======== Shared Component Styles (Forms, Tables, Buttons) ======== */

.form-group {
    margin-bottom: 10px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #ccc;
    margin-top: 10px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border-radius: 24px;
    background-color: #1e1e1e;
    border: 1px solid #444;
    color: #f0f0f0;
    box-sizing: border-box;
    font-family: 'Vazirmatn' !important;
    direction: rtl;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    font-family: 'Vazirmatn' !important;
    outline: none;
    border-color: #f79433;
    direction: rtl;
}

.btn {
    padding: 12px 20px;
    background-color: #248091;
    border: none;
    border-radius: 24px;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #2ca0b4;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table thead {
    background-color: #333;
}

table th,
table td {
    padding: 12px 15px;
    text-align: right;
    border-bottom: 1px solid #444;
}

table tbody tr:hover {
    background-color: #313131;
}

.action-btn {
    background-color: #f79433;
    color: #1e1e1e;
    padding: 5px 10px;
    border-radius: 24px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.action-btn:hover {
    background-color: #ffab57;
}

.error-message {
    background-color: #a72d2d;
    color: #fff;
    padding: 10px;
    border-radius: 24px;
    text-align: center;
    margin-bottom: 20px;
}


/* ======== Alert/Message Styles ======== */

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 24px;
    color: white;
    font-weight: 500;
    background-color: #dc3545;
}

.alert-success {
    background-color: #28a745;
    /* Green */
}

.alert-error {
    background-color: #dc3545;
    /* Red */
}


/* ======== Repair Details Page Styles ======== */

.details-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.info-section,
.update-section,
.history-section {

    padding: 20px;
    border-radius: 24px;
}

.info-section h2,
.update-section h2,
.history-section h2 {
    margin-top: 0;
    color: #f79433;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.info-section p {
    margin: 10px 0;
    line-height: 1.6;
}

.info-section p strong {
    color: #ccc;
    min-width: 100px;
    display: inline-block;
}


/* Make history section span both columns */

.history-section {
    grid-column: 1 / -1;
}


/* ======== Timeline Styles ======== */

.timeline {
    position: relative;
    padding: 20px 0;
    padding-right: 17px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    right: 9px;
    /* Adjust based on dot size */
    height: 100%;
    width: 2px;
    background-color: #444;
}

.timeline-item {
    position: relative;
    margin-bottom: 25px;
    padding-right: 40px;
}

.timeline-dot {
    position: absolute;
    top: 5px;
    right: 0;
    width: 20px;
    height: 20px;
    border-radius: 24px;
    background-color: #248091;
    border: 3px solid #1e1e1e;
}

.timeline-content .timeline-date {
    font-size: 0.85em;
    color: #888;
}

.timeline-content .timeline-title {
    margin: 5px 0;
    font-weight: 500;
    color: #f0f0f0;
}

.timeline-content .timeline-notes {
    margin: 5px 0 0 0;
    font-size: 0.9em;
    color: #ccc;
    background-color: #1e1e1e;
    padding: 10px;
    border-radius: 24px;
}


/* ======== Inline Form Styles for Parts Page ======== */

.inline-form {
    display: flex;
    align-items: center;
    gap: 5px;
}

.inline-form select {
    padding: 6px;
    /* Smaller padding */
}

.action-btn-small {
    background-color: #248091;
    color: white;
    padding: 6px 10px;
    border-radius: 24px;
    text-decoration: none;
    font-size: 15px;
    border: none;
    cursor: pointer;
}


/* ======== Dashboard Stat Cards ======== */

.stat-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.stat-card {
    background-color: #2a2a2a;
    padding: 25px;
    border-radius: 24px;
    text-align: center;
    border-left: 5px solid #248091;
    transition: transform 0.2s ease-in-out;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card:nth-child(2) {
    border-left-color: #f79433;
}

.stat-card:nth-child(3) {
    border-left-color: #28a745;
}

.stat-card:nth-child(4) {
    border-left-color: #a72d2d;
}

.stat-card-value {
    font-size: 3em;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
}

.stat-card-label {
    font-size: 1em;
    color: #ccc;
    font-weight: 500;
}


/* ======== Customer Details Page Styles ======== */

.customer-info-header {
    background-color: #2a2a2a;
    padding: 15px 20px;
    border-radius: 24px;
    margin-bottom: 20px;
    border-right: 5px solid #f79433;
}

.customer-info-header p {
    margin: 5px 0;
    font-size: 1.1em;
}


/* ======== Terms Status Box Styles ======== */

.terms-status-box {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 24px;
    color: #fff;
    font-weight: 500;
    text-align: center;
    border: 1px solid;
}

.terms-status-box.accepted {
    background-color: #1c4a2a;
    border-color: #28a745;
}

.terms-status-box.pending {
    background-color: #522121;
    border-color: #dc3545;
}


/* ======== Sidebar Icon Styles ======== */

.sidebar-nav li a,
.sidebar-footer a {
    display: flex;
    align-items: center;
}

.sidebar-nav li a i,
.sidebar-footer a i {
    width: auto !important;
    /* Ensures icons have a consistent width */
    margin-left: 12px;
    /* Creates space between icon and text */
    font-size: 1.1em;
}


/* ======== Payment Section Styles ======== */

.payment-section {
    background-color: #2a2a2a;
    padding: 25px;
    border-radius: 24px;
    margin-top: 20px;
    text-align: center;
    border: 1px solid #444;
}

.payment-section.disabled {
    opacity: 0.6;
}

.payment-section h2 {
    margin-top: 0;
    color: #f79433;
}

.payment-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
}


/* ======== Modal (Pop-up) Styles ======== */

.modal-overlay {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background-color: #2a2a2a;
    margin: 15% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 24px;
    position: relative;
    color: #f0f0f0;
    border-top: 5px solid #248091;
}

.close-btn {
    color: #aaa;
    position: absolute;
    left: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: #fff;
    text-decoration: none;
}

.modal-body {
    margin-top: 20px;
}

.modal-body hr {
    border-color: #444;
    margin: 20px 0;
}


/* Balances the layout of the customer details page */

.customer-container .details-container {
    display: grid;
    grid-template-columns: 1fr;
    /* Ensures items are in a single column */
    gap: 20px;
    /* Adds space between the boxes */
}


/* ======== Cost Approval Box Styles ======== */

.cost-approval-box {
    background-color: #2a2a2a;
    padding: 30px;
    border-radius: 24px;
    border: 1px solid #248091;
    text-align: center;
}

.cost-approval-box .cost-amount {
    font-size: 2.5em;
    font-weight: 700;
    color: #f79433;
    margin: 20px 0;
}

.cost-approval-box .decision-form {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn-success {
    background-color: #28a745;
}

.btn-success:hover {
    background-color: #218838;
}

.btn-danger {
    background-color: #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
}


/* ======== Repair Selection Page Styles ======== */

.repair-selection-list {
    margin-top: 20px;
}

.repair-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #2a2a2a;
    padding: 20px;
    border-radius: 24px;
    margin-bottom: 10px;
    text-decoration: none;
    color: #f0f0f0;
    border: 1px solid #444;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.repair-item:hover {
    background-color: #333;
    border-color: #f79433;
}

.repair-item .device-model {
    font-weight: bold;
    font-size: 1.1em;
}

.repair-item .tracking-code {
    font-size: 0.9em;
    color: #ccc;
}


/* ======== Customer Panel Styles ======== */



.customer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    margin-bottom: 20px;
    border-bottom: 2px solid #444;
}

.customer-header h1 {
    color: #f79433;
    margin: 0;
}

.terms-box {
    background-color: #2a2a2a;
    padding: 30px;
    margin-top: 40px;
    border-radius: 24px;
    border: 1px solid #f79433;
    text-align: center;
}

.terms-box h2 {
    margin-top: 0;
}

.terms-box p {
    line-height: 1.8;
    text-align: right;
    margin-bottom: 30px;
}

.btn {
    font-family: 'Vazirmatn';
}

a {
    color: #f79433;
}

select {
    font-family: 'Vazirmatn' !important;
    border-radius: 24px;
}

button {
    font-family: 'Vazirmatn' !important;
}

input {
    font-family: 'Vazirmatn' !important;
}


/* ======== NEW Warranty Box Styles ======== */

.warranty-section-simple {
    background-color: #2a2a2a;
    padding: 25px;
    border-radius: 24px;
    text-align: center;
}

.warranty-section-simple h2 {
    margin-top: 0;
    color: #f79433;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.warranty-dates {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 20px;
    margin: 25px 0;
    flex-wrap: wrap;
    border-top: 1px solid #444;
    border-bottom: 1px solid #444;
    padding: 20px 0;
}

.warranty-date-item {
    text-align: center;
}

.warranty-date-item span {
    display: block;
    font-size: 1.5em;
    font-weight: bold;
    color: #fff;
}

.warranty-date-item small {
    color: #ccc;
    font-size: 0.9em;
}

.warranty-status {
    font-weight: bold;
    font-size: 1.2em;
    padding: 10px 20px;
    border-radius: 24px;
    display: inline-block;
}

.warranty-status.active {
    background-color: #28a745;
    color: #28a745;
}

.warranty-status.expired {
    background-color: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}


/* ======== Notification Styles ======== */

.sidebar-notifications {
    position: relative;
    padding: 15px 20px;
    text-align: left;
    /* Align icon to the left */
}

.notification-icon {
    position: relative;
    display: inline-block;
    cursor: pointer;
    color: #f0f0f0;
    font-size: 1.5em;
}

.notification-count {
    position: absolute;
    top: -5px;
    right: -10px;
    background-color: #dc3545;
    color: white;
    border-radius: 24px;
    padding: 2px 6px;
    font-size: 0.6em;
    font-weight: bold;
}

.notification-dropdown {
    display: none;
    position: absolute;
    left: 20px;
    top: 60px;
    background-color: #333;
    border: 1px solid #444;
    border-radius: 24px;
    width: 350px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1001;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.notification-header {
    padding: 10px 15px;
    font-weight: bold;
    border-bottom: 1px solid #444;
}

.notification-dropdown ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.notification-dropdown li {
    border-bottom: 1px solid #444;
}

.notification-dropdown li a {
    display: block;
    padding: 10px 15px;
    color: #f0f0f0;
    text-decoration: none;
    font-size: 0.9em;
}

.notification-dropdown li a:hover {
    background-color: #444;
}

.notification-dropdown li small {
    display: block;
    padding: 0 15px 10px 15px;
    color: #888;
    font-size: 0.75em;
}


/* ======== ADMIN SIDEBAR (Rebuilt for Professional UI) ======== */

.sidebar {
    width: 250px;
    background-color: var(--background-light);
    height: 100vh;
    position: fixed;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--border-color);
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-header h2 {
    margin: 0;
    color: #fff;
    font-weight: 700;
    font-size: 1.3em;
}


/* NEW User Info Box Style */

.sidebar-user-info {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(0, 0, 0, 0.2);
}

.user-avatar {
    font-size: 2.5em;
    /* Larger icon */
    color: var(--primary-color);
}

.user-details {
    margin-right: 15px;
}

.user-details .username {
    display: block;
    font-weight: 700;
    color: #fff;
    font-size: 1.1em;
}

.user-details .role {
    display: block;
    font-size: 0.85em;
    color: var(--text-dark);
}

.sidebar-nav {
    flex-grow: 1;
    margin-top: 15px;
    /* Reduced margin */
}

.sidebar-nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li a {
    display: flex;
    align-items: center;
    color: var(--text-dark);
    /* Lighter default text */
    text-decoration: none;
    padding: 15px 25px;
    transition: all 0.3s ease;
    border-right: 4px solid transparent;
}

.sidebar-nav li a:hover {
    background-color: rgba(36, 128, 145, 0.1);
    color: #fff;
    border-right-color: var(--primary-color);
}

.sidebar-nav li a.active {
    background-color: var(--background-dark);
    border-right: 4px solid var(--primary-color);
    color: #fff;
    font-weight: 500;
}

.sidebar-nav li a i {
    width: auto !important;
    margin-left: 12px;
    font-size: 1.1em;
}

.sidebar-footer {
    padding: 20px;
    margin-top: auto;
}

.logout-btn {
    display: flex;
    /* Aligns icon and text */
    justify-content: center;
    align-items: center;
    gap: 10px;
    background-color: rgba(220, 53, 69, 0.2);
    color: var(--red);
    font-weight: 500;
    text-align: center;
    padding: 12px;
    border-radius: 24px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background-color: var(--red);
    color: #fff;
}


/* Sidebar Dropdown Menu FIX */

.nav-item-dropdown {
    position: relative;
    /* موقعیت‌دهی والد برای شناور شدن فرزند */
}

.nav-item-dropdown>a {
    justify-content: right;
    cursor: pointer;
}

.arrow-icon-dropdown {
    transition: transform 0.3s ease;
    font-size: 0.8em !important;
}


/* When the dropdown is open, rotate the arrow */

.nav-item-dropdown.open>a .arrow-icon-dropdown {
    transform: rotate(180deg);
}

.dropdown-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: rgba(0, 0, 0, 0.2);
    /* These styles make the dropdown float over other items */
    display: none;
    position: static;
    width: 100%;
    z-index: 10;
    /* Ensure it's above other elements */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    border-radius: 24px;
}


/* Show the dropdown when the parent has the 'open' class */

.nav-item-dropdown.open .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    padding-right: 60px !important;
    /* Indent sub-items */
    font-size: 0.9em;
    color: wheat;
}


/* ======== Customer Dashboard Service Boxes ======== */

.service-box-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.service-box {
    background-color: var(--background-light);
    border-radius: 24px;
    padding: 30px;
    text-align: right;
    text-decoration: none;
    color: var(--text-light);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
}

.service-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    border-color: var(--primary-color);
}

.service-box-icon {
    font-size: 2.5em;
    color: var(--primary-color);
    background-color: rgba(36, 128, 145, 0.1);
    width: 70px;
    height: 70px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    /* Prevents the icon from shrinking */
}

.service-box-content h3 {
    color: #fff;
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1.2em;
}

.service-box-content p {
    font-size: 0.9em;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 0;
}


/* ======== UNIFIED CUSTOMER DETAILS PAGE STYLES ======== */

.details-header-card {
    background-color: var(--background-light);
    padding: 25px;
    border-radius: 24px;
    margin-bottom: 25px;

    border-left: 5px solid var(--primary-color);
}

.details-header-card h3 {
    margin-top: 0;
    margin-bottom: 5px;
    color: var(--secondary-color);
    font-size: 1.5em;
}

.details-header-card p {
    margin: 0;
    color: var(--text-dark);
}

.checklist-results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.checklist-results-table th,
.checklist-results-table td {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    text-align: right;
}

.checklist-results-table thead {
    background-color: #333;
}

.checklist-results-table tbody tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.2);
}

.status-pass {
    color: #28a745;
    font-weight: bold;
}

.status-fail {
    color: var(--red);
    font-weight: bold;
}

.offer-box,
.offer-box-declined,
.receipt-box {
    padding: 25px;
    border-radius: 24px;
    margin-top: 25px;
    text-align: center;
}

.offer-box {
    background-color: #1c4a2a;
    border: 1px solid #28a745;
}

.offer-box-declined {
    background-color: #522121;
    border: 1px solid var(--red);
}

.receipt-box {
    background-color: #1e3a42;
    border: 1px solid var(--primary-color);
}

.bank-info-display {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 24px;
    margin-top: 20px;
    text-align: right;
}

.bank-info-display p {
    margin: 5px 0;
}


/* ======== PROFESSIONAL CUSTOMER LIST PAGES ======== */

.btn-back {
    font-size: 0.9em;
    text-decoration: none;
    background-color: #333;
    padding: 8px 15px;
    border-radius: 24px;
    color: #fff;
    transition: background-color 0.2s ease;
}

.btn-back:hover {
    background-color: var(--primary-color);
}

.request-list {
    list-style: none;
    padding: 0;
    margin-top: 25px;
}

.request-list li a {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: var(--background-dark);
    padding: 10px;
    border-radius: 24px;
    margin-bottom: 15px;
    text-decoration: none;
    color: var(--text-light);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.request-list li a:hover {
    border-left: 5px solid var(--primary-color);
    background-color: var(--background-light);
    transform: translateX(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.request-list i {
    font-size: 2.2em;
    color: var(--primary-color);
    width: 50px;
    text-align: center;
}

.request-list .request-details {
    flex-grow: 1;
}

.request-list .device-model {
    font-weight: 700;
    font-size: 1.2em;
    color: #fff;
}

.request-list small {
    color: #888;
    display: block;
    margin-top: 5px;
    font-size: 0.85em;
}

.status-badge {
    font-size: 0.85em;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 24px;
    background-color: #333;
    color: white;
    white-space: nowrap;
    text-align: center;
}



/* Payment Verification Status Box */

.payment-status-box {
    padding: 25px;
    border-radius: 24px;
    margin-top: 25px;
    text-align: center;
    border-left: 5px solid;
}

.payment-status-box h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.payment-status-box p {
    margin-bottom: 0;
    font-size: 1.1em;
}

.payment-status-box.status-pending {
    background-color: rgba(247, 148, 51, 0.1);
    border-color: var(--secondary-color);
}

.payment-status-box.status-approved {
    background-color: rgba(40, 167, 69, 0.1);
    border-color: #28a745;
}

.payment-status-box.status-rejected {
    background-color: rgba(220, 53, 69, 0.1);
    border-color: var(--red);
}


/* Payment List Status Badges */

.status-badge.status-pending {
    background-color: var(--secondary-color);
    color: #000;
}

.status-badge.status-approved {
    background-color: #28a745;
}

.status-badge.status-rejected {
    background-color: var(--red);
}


/* assets/css/style.css (Static & Clean Landing Page Theme) */

@import url('https://lib.arvancloud.ir/vazir-font/33.003/Farsi-Digits-Non-Latin/fonts/ttf/Vazirmatn-FD-NL-Medium.ttf');

:root {
    --primary-color: #248091;
    --secondary-color: #f79433;
    --background-dark: #1e1e1e;
    --background-light: #2a2a2a;
    --border-color: #444;
    --text-light: #f0f0f0;
    --text-dark: #ccc;
}


/* ======== GENERAL STYLES ======== */

.btn {
    padding: 12px 25px;
    border-radius: 24px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #f79433 !important;
    color: #fff;
    
    border: 1px solid #f79433 !important;
    font-weight: bold;
}

.btn-primary:hover {
    background-color: #f79433 !important;
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid #1e1e1e;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #fff;
    color: #1e1e1e;
}

.btn-lg {
    padding: 0.8rem 1.8rem;
    font-size: 1.1em;
}


/* ======== LANDING PAGE STYLES ======== */

.landing-header {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.landing-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6em;
    font-weight: 700;
    color: #fff;
}


/* --- Hero Section --- */

.hero-section {
    position: relative;
    padding: 150px 0;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/cc.jpg');
    background-size: cover;
    /* This is the magic line */
    filter: brightness(0.2);
    z-index: -1;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-content .lead {
    font-size: 1.3em;
    color: var(--text-dark);
    max-width: 600px;
    margin: 1rem auto 2.5rem auto;
}


/* --- Services & Stats Sections --- */

.services-section,
.stats-section {
    padding: 20px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 50px;
}

.services-container,
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-item,
.stat-item {
    background-color: var(--background-light);
    padding: 15px;
    border-radius: 24px;
    text-align: center;

}

.service-item i {
    font-size: 2em;
    color: #f79433;
}

.service-item h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.service-item p {
    color: var(--text-dark);
    font-size: 0.95em;
    line-height: 1.7;
}

.stat-number {
    font-size: 3.5em;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 1.1em;
    color: var(--text-dark);
    margin-top: 5px;
}


/* --- Footer --- */



.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-col p {
    line-height: 1.8;
}

.footer-col i {
    margin-left: 10px;
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 0.9em;
}

.footer-bottom a {
    font-weight: bold;
    color: #fff;
}


/* ======== LANDING PAGE - TUTORIALS SECTION ======== */

.tutorials-section {
    padding: 20px 0;
    background-color: #141414;
    /* or #111 for a slight contrast */
}

.tutorials-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.tutorial-card {
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    height: 320px;
    border: 1px solid #1e1e1e;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* Aligns content to the bottom */
}

.tutorial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.5);
}

.card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}

.tutorial-card:hover .card-image {
    transform: scale(1.05);
}

.card-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    background: linear-gradient(to top, #1e1e1e 20%, transparent);
}

.card-category {
    background-color: #f79433;
    color: #fff;
    font-size: 0.75em;
    padding: 4px 10px;
    border-radius: 24px;
    display: inline-block;
    margin-bottom: 10px;
    font-weight: bold;
}

.card-content h3 {
    color: #fff;
    margin: 0;
    font-size: 1.1em;
    line-height: 1.5;
}


/* Appointment Management Styles */

.btn-action {
    padding: 5px 10px;
    border-radius: 24px;
    color: #fff;
    text-decoration: none;
    font-size: 0.9em;
}

.btn-action.green {
    background-color: #28a745;
}

.btn-action.red {
    background-color: var(--red);
}

.status-badge.status-pending {
    background-color: var(--secondary-color);
    color: #000;
}

.status-badge.status-confirmed {
    background-color: #28a745;
}

.status-badge.status-canceled {
    background-color: var(--red);
}

.status-badge.status-completed {
    background-color: #555;
}


/* ======== Glassmorphism Theme Styles (for Login & Booking Pages) ======== */

.bg-glass {
    background-image: url('../images/background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.login-container-glass {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.glass-card {
    background: rgba(40, 40, 40, 0.65);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    width: 100%;
    max-width: 500px;
    padding: 2.5rem;
    /* Increased padding */
}

.glass-card .text-center {
    text-align: center;
}

.glass-card h2 {
    color: var(--secondary-color);
    font-weight: 700;
}

.glass-card p {
    color: rgba(255, 255, 255, 0.7);
}

.form-label {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    display: block;
    margin-bottom: 8px;
}

.form-control-glass {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 24px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    width: 100%;
    font-family: 'Vazirmatn', sans-serif;
}

.form-control-glass:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.25rem rgba(247, 148, 51, 0.25);
    color: #fff;
    outline: none;
}

.btn-glow {
    background: var(--primary-color);
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(36, 128, 145, 0.5);
    font-weight: bold;
    padding: 0.75rem;
    color: #fff;
    text-decoration: none;
    border-radius: 24px;
    cursor: pointer;
    width: 100%;
}

.btn-glow:hover {
    background: #2ca0b4;
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(44, 160, 180, 0.8);
}

.btn-back-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: var(--text-dark);
    text-decoration: none;
}

.btn-back-link:hover {
    color: #fff;
}


/* Styling for static list items (like in appointment list) */

.request-list .request-item-static {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: var(--background-dark);
    padding: 20px;
    border-radius: 24px;
    margin-bottom: 15px;
    color: var(--text-light);
    border: 1px solid var(--border-color);
}


/* Article Editor Page Styles */

.details-container {
    grid-template-columns: 3fr 1fr;
    /* Main content takes 3/4, sidebar takes 1/4 */
}

.main-content-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}


/* Style for CKEditor */

.ck-editor__editable_inline {
    min-height: 400px;
    background-color: var(--background-dark) !important;
    color: var(--text-light) !important;
    border-color: var(--border-color) !important;
}

.ck.ck-toolbar {
    background: #333 !important;
    border-color: var(--border-color) !important;
}

.ck.ck-button .ck-icon,
.ck.ck-dropdown .ck-icon {
    color: var(--text-light) !important;
}


/* Article List Page Styles */

.articles-list-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}



.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.article-card-image {
    height: 180px;
    background-size: cover;
    background-position: center;
}

.article-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-category {
    background-color: var(--primary-color);
    color: #fff;
    font-size: 0.75em;
    padding: 4px 10px;
    border-radius: 24px;
    display: inline-block;
    align-self: flex-start;
    margin-bottom: 10px;
}

.article-card-content h3 {
    margin: 0 0 10px 0;
    font-size: 1.2em;
    flex-grow: 1;
    /* Pushes meta and actions to the bottom */
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85em;
    color: var(--text-dark);
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    margin-top: 15px;
}

.status-badge.status-published {
    background-color: #28a745;
}

.status-badge.status-draft {
    background-color: #555;
}

.article-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-action.red {
    background-color: var(--red);
    color: #fff;
}


/* Public Articles Pages Styles */



.article-container {
    max-width: 1400px;
}


/* Narrower for better reading */

.article-header {
    text-align: center;
    margin-bottom: 30px;
}

.article-header .article-category {
    margin-bottom: 15px;
}

.article-header h1 {
    margin-bottom: 15px;
    font-size: 2.5em;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: #888;
}

.featured-image-full {
    width: 100%;
    height: 500px;
    border-radius: 24px;
    margin-bottom: 30px;
}

.article-content {
    line-height: 2;
    /* Improved readability */
    font-size: 1.1em;
}

.article-content h2,
.article-content h3 {
    color: var(--secondary-color);
    margin-top: 2em;
}

.article-content a {
    text-decoration: underline;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 24px;
}

.back-to-list-link {
    margin-top: 40px;
}


/* Public Articles Pages Styles */



.article-container {
    max-width: 1400px;
}


/* Narrower for better reading */

.article-header {
    text-align: center;
    margin-bottom: 30px;
}

.article-header .article-category {
    margin-bottom: 15px;
}

.article-header h1 {
    margin-bottom: 15px;
    font-size: 2.5em;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: #888;
}

.featured-image-full {
    width: 100%;
    height: 500px;
    border-radius: 24px;
    margin-bottom: 30px;
}

.article-content {
    line-height: 2;
    /* Improved readability */
    font-size: 1.1em;
}

.article-content h2,
.article-content h3 {
    color: var(--secondary-color);
    margin-top: 2em;
}

.article-content a {
    text-decoration: underline;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 24px;
}

.back-to-list-link {
    margin-top: 40px;
}


/* "View All" Button Container */

.view-all-container {
    text-align: center;
    margin-top: 40px;
}


/* Article Editor Page Layout Fix */

.editor-container {
    display: grid;
    grid-template-columns: 3fr 1fr;
    /* ستون اصلی ۳ برابر ستون کناری */
    gap: 25px;
    align-items: flex-start;
}

.editor-main-column {
    /* This will hold the main content editor */
}

.editor-sidebar-column {
    position: sticky;
    /* ستون کناری هنگام اسکرول ثابت می‌ماند */
    top: 20px;
}


/* On smaller screens, stack them vertically */

@media (max-width: 992px) {
    .editor-container {
        grid-template-columns: 1fr;
    }

    .editor-sidebar-column {
        position: static;
    }
}


/* ======== PUBLIC ARTICLES PAGES STYLES ======== */


/* --- Category Filter Bar (articles.php) --- */



/* --- Article Card List (articles.php) --- */

.articles-list-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}



.article-category {
    background-color: var(--primary-color);
    color: #fff;
    font-size: 0.75em;
    padding: 4px 10px;
    border-radius: 24px;
    display: inline-block;
    align-self: flex-start;
    margin-bottom: 15px;
}

.article-card-content h3 {
    margin: 0 0 10px 0;
    font-size: 1.2em;
    color: var(--text-light);
    flex-grow: 1;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85em;
    color: var(--text-dark);
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    margin-top: 15px;
}

.article-meta i {
    margin-left: 5px;
}


/* --- Single Article Page (article.php) --- */

.article-container {
    max-width: 1400px;
    /* Narrower width for better reading experience */
}

.article-header {
    text-align: center;
    margin: 20px 0 30px 0;
}

.article-category-link {
    background-color: var(--primary-color);
    color: #fff !important;
    /* Override general link color */
    font-size: 0.8em;
    padding: 5px 12px;
    border-radius: 24px;
    display: inline-block;
    margin-bottom: 15px;
    text-decoration: none;
}

.article-header h1 {
    margin-bottom: 15px;
    font-size: 2.5em;
    line-height: 1.4;
}

.article-meta-full {
    display: flex;
    justify-content: center;
    gap: 25px;
    color: #888;
}

.featured-image-full {
    width: 100%;
    height: 500px;
    border-radius: 24px;
    margin-bottom: 30px;
}

.article-content {
    line-height: 2;
    /* Improved readability */
    font-size: 1.1em;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 {
    color: var(--secondary-color);
    margin-top: 2em;
    margin-bottom: 1em;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.article-content a {
    text-decoration: underline;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 24px;
    margin: 20px 0;
}

.article-content p,
.article-content li,
.article-content blockquote {
    color: var(--text-dark);
}

.article-content blockquote {
    padding: 15px;
    padding-right: 20px;
    background-color: var(--background-dark);
    border-right: 4px solid var(--primary-color);
    margin: 20px 0;
}

.back-to-list-link {
    margin-top: 40px;
    text-align: center;
}


/* Action Buttons Container for Edit Pages */

.action-buttons-container {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    /* Aligns buttons to the left (rtl) */
    gap: 15px;
}


/* Customer Sale Details Page Styles */

.warranty-status-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.status-card {
    background-color: var(--background-dark);
    padding: 25px;
    border-radius: 24px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.status-card h4 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.1em;
    color: var(--text-dark);
}

.status-card .status-icon {
    font-size: 3.5em;
    margin-bottom: 20px;
}

.status-card p {
    font-size: 0.9em;
    color: var(--text-dark);
}

.status-card .status-label {
    font-weight: bold;
    font-size: 1.2em;
    margin-top: 15px;
    padding: 8px 0;
    border-radius: 24px;
}

.status-card.active .status-icon,
.status-card.active .status-label {
    color: #28a745;
}

.status-card.active .status-label {
    background-color: rgba(40, 167, 69, 0.1);
}

.status-card.expired .status-icon,
.status-card.expired .status-label {
    color: var(--red);
}

.status-card.expired .status-label {
    background-color: rgba(220, 53, 69, 0.1);
}


/* Customer 360-View Accordion Styles */

.accordion-container {
    margin-top: 30px;
}

.accordion-item {
    background-color: var(--background-light);
    margin-bottom: 10px;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.accordion-header {
    background-color: transparent;
    border: none;
    width: 100%;
    text-align: right;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
}

.accordion-header:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.accordion-header::after {
    /* Arrow icon */
    content: '\f078';
    /* Font Awesome chevron-down */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: auto;
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-header::after {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease;
    padding: 0 20px;
}

.accordion-item.active .accordion-content {
    max-height: 1000px;
    /* Large enough to fit content */
    padding: 0 20px 20px 20px;
}


/* Customer 360-View Accordion Styles */

.accordion-container {
    margin-top: 30px;
}

.accordion-item {
    background-color: var(--background-light);
    margin-bottom: 10px;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item:hover {
    border-color: var(--primary-color);
}

.accordion-header {
    background-color: transparent;
    border: none;
    width: 100%;
    text-align: right;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
}

.accordion-header:hover {
    background-color: rgba(36, 128, 145, 0.1);
}

.accordion-header i {
    color: var(--secondary-color);
}

.accordion-header::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: auto;
    transition: transform 0.3s ease;
    font-size: 0.8em;
    color: var(--text-dark);
}

.accordion-item.active .accordion-header::after {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 20px;
}

.accordion-item.active .accordion-content {
    max-height: 1000px;
    padding: 0 20px 20px 20px;
}

.accordion-content table {
    margin-top: 15px;
}


/* Form Footer Link */

.form-footer-link {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9em;
    color: var(--text-dark);
}

.form-footer-link a {
    font-weight: bold;
    text-decoration: none;
}


/* Multi-Step Wizard Form Styles */

.wizard-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.wizard-card {
    width: 100%;
    max-width: 600px;
}

.wizard-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
}

.wizard-steps::before {
    /* The connecting line */
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 2px;
    width: 100%;
    background-color: var(--border-color);
    right: 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.step span {
    width: 40px;
    height: 40px;
    border-radius: 24px;
    background: var(--background-dark);
    border: 2px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    transition: all 0.4s ease;
}

.step p {
    margin-top: 10px;
    font-size: 0.8em;
    color: var(--text-dark);
    transition: color 0.4s ease;
}

.step.active span {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.step.active p {
    color: #fff;
    font-weight: 500;
}

.form-step {
    display: none;
    animation: fadeInUp 0.5s ease-out;
}

.form-step.active {
    display: block;
}

.step-title {
    text-align: center;
    margin-bottom: 25px;
    color: var(--secondary-color);
}

.wizard-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

#submitBtn {
    width: 100%;
}

.service-selection-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.service-card-label input {
    display: none;
}

.service-card-label .service-card-content {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 24px;
    border: 2px solid var(--border-color);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.service-card-label .service-card-content:hover {
    border-color: var(--primary-color);
}

.service-card-label input:checked+.service-card-content {
    border-color: var(--secondary-color);
    background-color: rgba(247, 148, 51, 0.1);
}

.service-card-content i {
    font-size: 2em;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.service-card-content h4 {
    margin: 0;
    font-size: 1em;
    color: #fff;
}

.service-card-content p {
    margin: 5px 0 0 0;
    font-size: 0.8em;
    color: var(--text-dark);
}


/* Better Action Buttons for Tables */

.action-buttons-group {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    /* Aligns items to the right in RTL */
}

.btn-action-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 35px;
    height: 35px;
    border-radius: 24px;
    /* Makes them circular */
    text-decoration: none;
    color: var(--text-dark);
    background-color: #333;
    transition: all 0.3s ease;
    font-size: 0.9em;
}

.btn-action-icon:hover {
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.btn-action-icon.green:hover {
    background-color: #28a745;
}

.btn-action-icon.red:hover {
    background-color: var(--red);
}


/* Appointment Details Header Card */

.details-header-card.status-pending {
    background-color: rgba(247, 148, 51, 0.1);
    border-color: var(--secondary-color);
}

.details-header-card.status-confirmed {
    background-color: rgba(40, 167, 69, 0.1);
    border-color: #28a745;
}

.details-header-card.status-canceled {
    background-color: rgba(220, 53, 69, 0.1);
    border-color: var(--red);
}

.details-header-card.status-completed {
    background-color: rgba(108, 117, 125, 0.1);
    border-color: #6c757d;
}


/* Ticket List Status Badges */

.status-badge.status-open {
    background-color: var(--secondary-color);
    color: #000;
}

.status-badge.status-answered {
    background-color: #28a745;
}

.status-badge.status-closed {
    background-color: #555;
}


/* ======== FINAL "FLOATING GLASS" ADMIN SIDEBAR ======== */

:root {
    --sidebar-width: 300px;
    --sidebar-width-collapsed: 90px;
}


/* --- Main Layout Adjustment --- */

.main-content {
    margin-right: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    transition: margin-right 0.4s var(--ease-out-quart);
}

.sidebar.collapsed~.main-content {
    margin-right: var(--sidebar-width-collapsed);
    width: calc(100% - var(--sidebar-width-collapsed));
}


/* --- The Sidebar Itself (Floating Glass) --- */

.sidebar {
    width: var(--sidebar-width);
    height: calc(100vh - 40px);
    /* Vertical space */
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    border-radius: 24px;
    /* Rounded corners */
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(30, 30, 30, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: width 0.4s var(--ease-out-quart);
    overflow: hidden;
    /* Important for rounded corners */
}


/* --- Collapsed State --- */

.sidebar.collapsed {
    width: var(--sidebar-width-collapsed);
}

.sidebar.collapsed .sidebar-title,
.sidebar.collapsed .user-details,
.sidebar.collapsed .sidebar-search,
.sidebar.collapsed .sidebar-nav li a span,
.sidebar.collapsed .arrow-icon-dropdown,
.sidebar.collapsed .sidebar-footer span,
.sidebar.collapsed .nav-heading {
    opacity: 0;
    display: none;
}

.sidebar.collapsed .sidebar-nav li a {
    justify-content: center;
}

.sidebar.collapsed .sidebar-nav li a i {
    margin-left: 0;
}

.sidebar.collapsed .sidebar-footer {
    flex-direction: column;
    align-items: center;
}

.sidebar.collapsed .sidebar-user-info {
    justify-content: center;
    padding: 15px 0;
}

.sidebar.collapsed .user-avatar {
    margin-right: 0;
}

.sidebar.collapsed .nav-item-dropdown.open .dropdown-menu {
    display: none;
}


/* --- Header --- */

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 25px;
    height: 70px;
    flex-shrink: 0;
}

.sidebar-title {
    color: #fff;
    font-weight: 700;
    font-size: 1.3em;
    white-space: nowrap;
}

.sidebar-toggle-btn {
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 1.5em;
    cursor: pointer;
    transition: color 0.3s ease;
}

.sidebar-toggle-btn:hover {
    color: #fff;
}


/* --- User Info & Search --- */

.sidebar-user-info {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.user-avatar {
    font-size: 2.5em;
    color: #fff;
    margin-left: 15px;
}

.user-details .username {
    font-weight: 700;
    color: #fff;
}

.user-details .role {
    font-size: 0.85em;
    color: var(--text-dark);
}

.sidebar-search {
    padding: 15px 20px;
    position: relative;
}

.sidebar-search i {
    position: absolute;
    top: 50%;
    right: 35px;
    transform: translateY(-50%);
    color: var(--text-dark);
}

#menu-search {
    width: 100%;
    background-color: var(--background-dark);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 10px 40px 10px 15px;
    color: var(--text-light);
    outline: none;
}


/* --- Navigation --- */

.sidebar-nav {
    flex-grow: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.nav-heading {
    padding: 20px 25px 5px 25px;
    font-size: 0.75em;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-nav li a {
    border-radius: 24px;
    margin: 2px 15px;
    padding: 12px 15px;
    border-right: none;
    /* Remove old border */
}

.sidebar-nav li a:hover {
    background: rgba(36, 128, 145, 0.2);
    color: #fff;
    transform: none;
    /* Remove old transform */
}

.sidebar-nav li a.active {
    background: var(--primary-color);
    color: #fff;
    font-weight: 500;
    box-shadow: 0 5px 15px rgba(36, 128, 145, 0.4);
}

.sidebar-nav li a i {
    width: auto !important;
    font-size: 1.2em;
}

.dropdown-menu li a {
    padding-right: 50px !important;
}


/* Tooltip for collapsed sidebar */

.sidebar.collapsed .sidebar-nav li a[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    right: 120%;
    top: 50%;
    transform: translateY(-50%);
    background-color: #000;
    color: #fff;
    padding: 5px 10px;
    border-radius: 24px;
    white-space: nowrap;
    font-size: 0.9em;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar.collapsed .sidebar-nav li a:hover::after {
    display: block;
    opacity: 1;
}


/* --- Footer --- */

.sidebar-footer {
    padding: 15px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
}

.sidebar-footer-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
    text-decoration: none;
    padding: 8px;
    border-radius: 24px;
    transition: all 0.3s ease;
}

.sidebar-footer-link:hover {
    background-color: #333;
    color: #fff;
}


/* --- Notifications (Moved outside sidebar) --- */

.sidebar-notifications {
    position: fixed;
    top: 25px;
    left: 25px;
    z-index: 1050;
}

.notification-icon {
    width: 50px;
    height: 50px;
    border-radius: 24px;
    background: rgba(40, 40, 40, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-dropdown {
    left: auto;
    right: 0;
    top: 65px;
}


/* Ticket Details Page Styles */

.ticket-details-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    /* 2/3 for thread, 1/3 for reply box */
    gap: 25px;
    align-items: flex-start;
}

@media (max-width: 992px) {
    .ticket-details-grid {
        grid-template-columns: 1fr;
    }
}

.ticket-reply-container .content-wrapper {
    position: sticky;
    top: 20px;
}

.ticket-thread {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ticket-reply {
    padding: 15px;
    border-radius: 24px;
    max-width: 85%;
}

.reply-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.85em;
    color: var(--text-dark);
}

.reply-header strong {
    color: var(--text-light);
}

.reply-body {
    line-height: 1.7;
}

.reply-customer {
    background-color: #333;
    align-self: flex-start;
    /* Align to the right in RTL */
    border-bottom-right-radius: 0;
    margin-top: 10px;
}

.reply-admin {
    background-color: var(--primary-color);
    color: #fff;
    align-self: flex-end;
    /* Align to the left in RTL */
    border-bottom-left-radius: 0;
}

.reply-admin .reply-header,
.reply-admin .reply-header strong {
    color: rgba(255, 255, 255, 0.8);
}


/* Highlight open tickets in the list */

tr.ticket-open {
    background-color: rgba(247, 148, 51, 0.1);
    font-weight: bold;
}


/* ======== LANDING PAGE - SERVICES SECTION (Rebuilt) ======== */

.services-section {
    padding-top: 20px;
    background-color: #141414;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.service-item {
    background-color: #1e1e1e;
    padding: 10px;
    border-radius: 24px;
    text-align: center;

    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.service-icon {
    padding-top: 13px;
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: inline-block;
}

.service-item h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.4em;
}

.service-item p {
    color: var(--text-dark);
    font-size: 1em;
    line-height: 1.8;
}


/* --- Header (Final Floating & Sticky Version) --- */

.landing-header {
    position: absolute;
    /* در حالت اولیه روی تصویر شناور است */
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease;
}

.landing-header.scrolled {
    position: fixed;
    /* پس از اسکرول در بالای صفحه می‌چسبد */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    animation: slideDown 0.5s ease-out;
}

.landing-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 45px;
    width: auto;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}


/* ======== Article Comments & Rating Section (Final Version) ======== */

.comments-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.comment-form-wrapper,
.comments-list {
    margin-top: 30px;
}

.login-prompt {
    text-align: center;
    padding: 30px;
    background-color: var(--background-dark);
    border-radius: 24px;
}

.login-prompt a {
    font-weight: bold;
}


/* Star Rating Input */

.star-rating {
    display: inline-flex;
    flex-direction: row-reverse;
    font-size: 2.2em;
    line-height: 1;
}

.star-rating input {
    display: none;
}

.star-rating label {
    color: #444;
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 0 2px;
}

.star-rating input:checked~label,
.star-rating label:hover,
.star-rating label:hover~label {
    color: var(--secondary-color);
}


/* Comments List Display */

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-item {
    background-color: var(--background-light);
    padding: 20px;
    border-radius: 24px;
    border-right: 4px solid var(--primary-color);
}

.comment-author {
    font-weight: bold;
    font-size: 1.1em;
    color: #fff;
}

.comment-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
    margin-bottom: 15px;
}


/* Read-only Star Display */

.comment-rating-display {
    font-size: 1.2em;
}

.comment-rating-display .star {
    color: #444;
}

.comment-rating-display .star.filled {
    color: var(--secondary-color);
}

.comment-meta small {
    color: #888;
    font-size: 0.8em;
}

.comment-text {
    line-height: 1.8;
    color: var(--text-dark);
}


/* Comment Management Page Styles */

.table .comment-rating-display {
    font-size: 1.1em;
    direction: ltr;
    /* Makes stars align correctly */
    display: inline-block;
}

.table .comment-rating-display .star {
    color: #444;
}

.table .comment-rating-display .star.filled {
    color: var(--secondary-color);
}


/* Reusing ticket status badges for comments */

.status-badge.status-pending {
    background-color: var(--secondary-color);
    color: #000;
}

.status-badge.status-approved {
    background-color: #28a745;
}

.status-badge.status-rejected {
    background-color: #555;
}


/* Image Gallery Styles */

.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.image-thumbnail {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 24px;
    overflow: hidden;
    border: 2px solid var(--border-color);
}

.image-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-thumbnail .delete-btn {
    position: absolute;
    top: 5px;
    left: 5px;
    background-color: rgba(220, 53, 69, 0.8);
    color: #fff;
    border: none;
    border-radius: 24px;
    width: 25px;
    height: 25px;
    font-size: 1.2em;
    line-height: 25px;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-thumbnail:hover .delete-btn {
    opacity: 1;
}


/* Tabbed Interface Styles */

.tabs {
    display: flex;
    gap: 5px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 25px;
    margin-top: 25px;
}

.tab-button {
    background-color: transparent;
    border: none;
    color: var(--text-dark);
    padding: 15px;
    font-size: 1.1em;
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    top: 2px;
    transition: all 0.3s ease;
}

.tab-button:hover {
    color: #fff;
    background-color: var(--background-light);
}

.tab-button.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.tab-content {
    /* No styles needed here, content is in panes */
}

.tab-pane {
    display: none;
    /* Hidden by default */
    animation: fadeIn 0.5s;
}

.tab-pane.active {
    display: block;
    /* Shown by JS */
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Diagnosis Fee Display Style (Admin Panel) */

.diagnosis-fee-display {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: var(--background-dark);
    padding: 15px;
    border-radius: 24px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.diagnosis-fee-display i {
    font-size: 1.8em;
    color: var(--secondary-color);
}

.diagnosis-fee-display .fee-text strong {
    display: block;
    color: var(--text-dark);
}

.diagnosis-fee-display .fee-text span {
    font-size: 1.2em;
    font-weight: bold;
    color: #fff;
}


/* Disclaimer Note Style (Customer Panel) */

.disclaimer-note {
    font-size: 0.9em;
    color: var(--text-dark);
    background-color: rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: 24px;
    margin-top: 15px;
    border-right: 3px solid var(--secondary-color);
}


/* Styles for Admin Details Tab UI */

.tabs {
    display: flex;
    gap: 5px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 25px;
}

.tab-button {
    background-color: transparent;
    border: none;
    color: var(--text-dark);
    padding: 15px;
    font-size: 1.1em;
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    top: 2px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-button:hover {
    color: #fff;
}

.tab-button.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


/* Diagnosis Fee Display */

.diagnosis-fee-display {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: var(--background-dark);
    padding: 15px;
    border-radius: 24px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.diagnosis-fee-display i {
    font-size: 1.8em;
    color: var(--secondary-color);
}

.diagnosis-fee-display .fee-text strong {
    display: block;
    color: var(--text-dark);
}

.diagnosis-fee-display .fee-text span {
    font-size: 1.2em;
    font-weight: bold;
    color: #fff;
}


/* Customer Disclaimer Note */

.disclaimer-note {
    font-size: 0.9em;
    color: var(--text-dark);
    background-color: rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: 24px;
    margin-top: 15px;
    border-right: 3px solid var(--secondary-color);
}


/* شسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسس
















/* ======== NEW: Process Infographic Section ======== */

.process-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 50px;
}


/* The vertical line */

.process-timeline::before {
    content: '';
    position: absolute;
    top: 25px;
    right: 37px;
    /* (Icon width / 2) + (border width) */
    width: 4px;
    height: calc(100% - 50px);
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    border-radius: 24px;
}

.process-step {
    display: flex;
    align-items: center;
    gap: 30px;
    position: relative;
}

.process-icon {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    background-color: var(--background-light);
    border: 4px solid var(--primary-color);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2em;
    color: var(--primary-color);
    z-index: 3;
}

.process-step:nth-child(even) .process-icon {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.process-text {
    background-color: #1e1e1e;
    padding: 25px;
    border-radius: 24px;
    flex-grow: 1;
}

.process-text h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #fff;
    font-size: 1.5em;
}

.process-text p {
    margin: 0;
    color: var(--text-dark);
    line-height: 1.8;
}

.process-stat {
    background-color: #1e1e1e;
    padding: 20px;
    border-radius: 24px;
    text-align: center;
    min-width: 150px;
}

.process-stat .stat-number {
    font-size: 3em;
    font-weight: 700;
    display: block;
    color: #fff;
}

.process-stat small {
    font-size: 0.9em;
    color: var(--text-dark);
}


/* ======== FINAL RESPONSIVE STYLES FOR LANDING PAGE ======== */


/* --- Tablet Styles --- */

@media (max-width: 992px) {
    .pc-header {
        display: none;
    }

    .services-container,
    .tutorials-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-card,
    .feature-card:nth-child(even) {
        grid-template-columns: 1fr;
        text-align: center !important;
    }

    .feature-card .feature-text {
        order: 2;
    }

    .feature-card .feature-image {
        order: 1;
        margin-bottom: 20px;
    }
}


/* --- pc Styles --- */

@media (max-width: 992px) {
    .pc-header {
        display: none;
    }

    .mobile-header .nav-buttons {
        display: none;
    }

    .process-pc {
        display: none;
    }

    .nav-buttons-mobile {
        margin-top: 50px;
    }

    .process-mobile .process-step {
        display: block;
    }

    .btn-back-status-mobile {
        display: none;
    }

    .tabs-status-mobile {
        overflow-y: hidden;
        margin-top: 10px;
    }

    .btn-back-status-show-mobile {
        background-color: #f79433;
        color: #333;
        font-size: large;
        font-weight: bold;
        text-align: center;
        display: block;
        margin: 15px;
    }

    .tabs {
        overflow-x: unset !important;
        overflow-y: scroll !important;
        flex-wrap: unset !important;
    }
}

.btn-back-status-ticket {
    display: block;
    margin-top: 20px;
    margin-right: auto;
    background-color: var(--primary-color);
    width: fit-content;
    margin-left: auto;
}


/* --- Mobile Styles --- */

@media (min-width: 992px) {
    .mobile-header {
        display: none;
    }

    .nav-buttons-mobile {
        display: none;
    }

    .process-mobile {
        display: none;
    }

    .btn-back-status-show-mobile {
        display: none;
    }
}


/* --- Mobile Styles --- */

@media (max-width: 768px) {

    /* Hide desktop nav, show mobile hamburger */
    .nav-buttons-desktop {
        display: none;
    }

    .hamburger-menu {
        display: block;
    }

    .landing-nav {
        justify-content: space-between;
    }

    /* Adjust hero text */
    .hero-section.full-screen {
        padding: 150px 0 80px 0;
        height: auto;
    }

    .hero-title {
        font-size: 2.8em;
    }

    .hero-content .lead {
        font-size: 1.1em;
    }

    /* Adjust section titles */
    .section-title {
        font-size: 2.2em;
    }

    /* Stack service & tutorial cards */
    .services-container,
    .tutorials-container {
        grid-template-columns: 1fr;
    }

    /* Adjust process timeline for mobile */
    .process-timeline-grid {
        grid-template-columns: auto 1fr;
    }

    .process-timeline-grid>.timeline-empty {
        display: none;
    }

    .process-timeline-grid>.process-card,
    .process-timeline-grid>.process-card:nth-child(even) {
        grid-column: 2;
        text-align: right;
    }

    .timeline-middle {
        grid-column: 1;
        grid-row: span 2;
    }

    .timeline-middle::before {
        left: 50%;
        transform: translateX(-50%);
    }

    /* Stack footer columns */
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-col h4::after {
        right: 50%;
        transform: translateX(50%);
    }




    .content-wrapper {
        margin-bottom: 25px;
    }

}


/* --- Footer --- */



.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-col p {
    line-height: 1.8;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--text-dark);
    transition: all 0.2s ease;
}

.footer-col ul li a:hover {
    color: #fff;
    padding-right: 5px;
}

.footer-col i {
    margin-left: 10px;
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 0.9em;
}

.footer-bottom a {
    font-weight: bold;
    color: #fff;
}

/* ======== NEW CUSTOMER DASHBOARD STYLES ======== */
.dashboard-welcome {
    background-color: var(--background-light);
    padding: 25px;
    border-radius: 24px;
    margin-bottom: 30px;
    text-align: center;
}

.dashboard-welcome h2 {
    margin: 0 0 20px 0;
    font-size: 1.8em;
}

.summary-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.summary-stats .stat-item {
    color: var(--text-dark);
}

.summary-stats .stat-item span {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--secondary-color);
    margin-left: 8px;
}

/* Smart Track Card */
.smart-track-card {
    background: linear-gradient(145deg, var(--primary-color), #2ca0b4);
    color: #fff;
    border-radius: 24px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(36, 128, 145, 0.4);
}

.smart-track-header {
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.smart-track-header h3 {
    margin: 0;
    font-size: 1.3em;
}

.smart-track-body {
    display: flex;
    align-items: center;
    gap: 20px;
}

.smart-track-body .item-icon {
    font-size: 2.5em;
}

.smart-track-body .item-details {
    flex-grow: 1;
}

.smart-track-body .item-title {
    display: block;
    font-size: 1.2em;
    font-weight: 500;
}

.smart-track-body .item-status {
    display: block;
    font-size: 1em;
    opacity: 0.8;
}

.smart-track-body .btn {
    background-color: #fff;
    color: #000;
}

/* Quick Access Section */
.quick-access-section {
    margin-top: 30px;
}

.section-title-small {
    text-align: center;
    color: var(--text-dark);
    font-size: 1.2em;
    margin-bottom: 20px;
}

/* Make service boxes smaller */
.service-box.small {
    flex-direction: column;
    padding: 20px;
    gap: 10px;
}

.service-box.small .service-box-icon {
    width: 60px;
    height: 60px;
    font-size: 1.8em;
}

.service-box.small .service-box-content h3 {
    font-size: 1em;
    margin: 0;
}

.service-box.small .service-box-content p {
    display: none;
    /* Hide paragraph in small boxes */
}

/* ======== MOBILE MENU STYLES ======== */

.hamburger-menu {
    display: none;
    /* Hidden on desktop */
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8em;
    cursor: pointer;
    z-index: 2001;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    /* Initially hidden off-screen */
    width: 100%;
    height: 100%;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: right;
    justify-content: center;
    transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-nav.active {
    right: 0;
    /* Slides in from the right */
}

.mobile-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 2em;
    margin: 20px 0;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.mobile-nav.active a {
    transform: translateY(0);
    opacity: 1;
}

/* Staggered animation for links */
.mobile-nav.active a:nth-child(2) {
    transition-delay: 0.1s;
}

.mobile-nav.active a:nth-child(3) {
    transition-delay: 0.2s;
}

.mobile-nav.active a:nth-child(4) {
    transition-delay: 0.3s;
}

.mobile-nav.active a:nth-child(5) {
    transition-delay: 0.4s;
}

.close-nav-btn {
    position: absolute;
    top: 20px;
    left: 30px;
    background: none;
    border: none;
    color: #fff;
    font-size: 3em;
    cursor: pointer;
}

/* --- Responsive Media Query to activate mobile menu --- */
@media (max-width: 768px) {
    .nav-buttons-desktop {
        display: none;
    }

    .hamburger-menu {
        display: block;
    }
}



.item-mobile-nav {
    display: flex;
    padding: 15px;
}

.item-mobile-nav-text {
    margin-right: 15px;
}

/* ======== CUSTOMER PRODUCT HUB (SALE DETAILS) STYLES ======== */
.product-hub-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: flex-start;

    padding-right: 10px;
    padding-left: 10px;
    padding-bottom: 10px;
}

.hub-main-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.hub-sidebar-column {
    position: sticky;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.product-identity-card {
    display: flex;
    align-items: center;
    gap: 25px;
}

.product-identity-card .product-icon {
    font-size: 5em;
    color: var(--primary-color);
}

.product-identity-card h2 {
    font-size: 2em;
    margin: 0;
    color: #fff;
}

.product-identity-card p {
    margin: 5px 0 0 0;
    color: var(--text-dark);
}

.action-center {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.action-btn-large {
    background-color: var(--background-dark);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.action-btn-large:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-5px);
}

.action-btn-large i {
    font-size: 2em;
    margin-bottom: 10px;
    display: block;
}

.device-history-timeline .history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.device-history-timeline .history-item:last-child {
    border-bottom: none;
}

.history-date {
    font-size: 0.9em;
    color: var(--text-dark);
}

.history-title {
    font-weight: 500;
    color: #fff;
}

.history-link {
    font-size: 0.8em;
    font-weight: bold;
}


.appointment-details-mobile {
    margin-top: 95px;
    margin-right: 15px;
    margin-left: 15px;
}






.page-header-with-button {

    padding: 15px;
}


.ticket-details-mobile {

    padding: 15px;
}


@media(max-width: 992px) {
    .product-hub-grid {
        grid-template-columns: 1fr;
    }

    .hub-sidebar-column {
        position: static;
    }

    .appointment-details-mobile {
        margin-top: 75px;
    }



    .product-hub-grid {

        margin-top: 0px;

    }

    .dashboard-welcome {
        margin-top: 20px;
    }


    .appointment-list-mobile {
        margin-top: 75px !important;
    }

    .page-header-with-button {
        margin-top: 60px;

    }

    .ticket-details-mobile {
        margin-top: 20px;

    }

}

@media(max-width: 576px) {
    .action-center {
        grid-template-columns: 1fr;
    }
}

/* ======== NEW SMART ADMIN DASHBOARD STYLES ======== */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    /* Main column is twice as wide as sidebar */
    gap: 30px;
    align-items: flex-start;
}

.dashboard-widget {
    background-color: var(--background-light);
    border-radius: 24px;
    margin-bottom: 30px;
    overflow: hidden;
    /* To contain header background */
}

.widget-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-radius: 24px;
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px dashed var(--border-color);
}

.widget-header h3 {
    margin: 0;
    font-size: 1.1em;
    font-weight: 500;
    display: flex;

    gap: 10px;
}

.widget-header h3 i {
    color: var(--secondary-color);
}

.widget-link {
    font-size: 0.85em;
    font-weight: 500;
}

.widget-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
}

.widget-item:last-child {
    border-bottom: none;
}

.widget-item .item-info strong {
    color: #fff;
}

.widget-item .item-meta {
    font-size: 0.9em;
    color: var(--text-dark);
    margin-right: 10px;
}

.widget-empty {
    padding: 20px;
    text-align: center;
    color: var(--text-dark);
}

.quick-stats {
    display: flex;
    justify-content: space-around;
    padding: 20px;
}

.quick-stats .stat-item {
    text-align: center;
}

.quick-stats .stat-item span {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--primary-color);
}

.quick-stats .stat-item p {
    margin: 0;
    color: var(--text-dark);
}

.quick-actions {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.quick-actions .btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* --- Responsive for Smart Dashboard --- */
@media (max-width: 992px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .appointment-class {
        padding-top: 15px !important;
    }
}

/* Quick Stats Grid Update */
.quick-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* 2x2 grid */
    gap: 20px;
    padding: 20px;
}

/* ======== NOTIFICATION HISTORY FEED STYLES ======== */
.notification-timeline {
    max-width: 800px;
    margin: 0 auto;
}

.notification-date-header {
    font-size: 1.2em;
    font-weight: bold;
    color: var(--text-light);
    margin-top: 30px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.notification-item {
    display: flex;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-icon-wrapper {
    font-size: 1.5em;
    color: var(--primary-color);
    flex-shrink: 0;
}

.notification-content p {
    margin: 0 0 8px 0;
    line-height: 1.7;
}

.notification-content p a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
}

.notification-content p a:hover {
    color: var(--secondary-color);
}

.notification-content small {
    color: #888;
    font-size: 0.85em;
}

.notification-content small span {
    margin-left: 15px;
}

/* ======== FINAL STYLES FOR CHECKLIST FORM ======== */

.checklist-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.checklist-item {
    background-color: var(--background-dark);
    padding: 20px;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.checklist-item:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(36, 128, 145, 0.3);
}

.checklist-item>label {
    font-weight: 700;
    font-size: 1.1em;
    color: var(--text-light);
    margin-bottom: 15px;
    display: block;
}

.checklist-options {
    display: flex;
    justify-content: stretch;
    gap: 10px;
}

.checklist-options input[type="radio"] {
    display: none;
    /* Hide the default radio button */
}

.checklist-options label {
    flex-grow: 1;
    text-align: center;
    padding: 10px;
    border: 2px solid var(--border-color);
    border-radius: 24px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.checklist-options label:hover {
    border-color: var(--primary-color);
    color: #fff;
}

/* Style for the selected (checked) label */
.checklist-options input[type="radio"]:checked+label {
    color: #fff;
    font-weight: bold;
}

.checklist-options input[value="pass"]:checked+label {
    background-color: #28a745;
    border-color: #28a745;
}

.checklist-options input[value="fail"]:checked+label {
    background-color: var(--red);
    border-color: var(--red);
}

.checklist-options input[value="na"]:checked+label {
    background-color: #6c757d;
    border-color: #6c757d;
}

/* Style for the notes input */
.checklist-item .note-input {
    width: 100%;
    padding: 10px;
    margin-top: 15px;
    background-color: #111;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    color: #fff;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(-5px);
    opacity: 1;
}

.checklist-item .note-input.hidden {
    opacity: 0;
    visibility: hidden;
    height: 0;
    margin: 0;
    padding: 0;
    border: none;
}

/* ======== FINAL STYLES FOR CUSTOMER CHECKLIST RESULTS ======== */

.checklist-results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 1.1em;
}

.checklist-results-table thead {
    background-color: var(--background-dark);
}

.checklist-results-table th {
    padding: 15px;
    text-align: right;
    border-bottom: 2px solid var(--primary-color);
    color: var(--text-light);
}

.checklist-results-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-dark);
    vertical-align: middle;
}

.checklist-results-table tbody tr:last-child td {
    border-bottom: none;
}

.checklist-results-table tbody tr:hover td {
    background-color: rgba(255, 255, 255, 0.03);
}

/* Status Labels */
.status-label-chk {
    font-weight: bold;
    padding: 5px 12px;
    border-radius: 24px;
    color: #fff;
    font-size: 0.9em;
    text-transform: capitalize;
}

.status-label-chk.pass {
    background-color: #28a745;
}

.status-label-chk.fail {
    background-color: var(--red);
}

.status-label-chk.na {
    background-color: #6c757d;
}

/* Notes Column */
.checklist-results-table td:last-child {
    font-size: 0.9em;
    font-style: italic;
    color: var(--secondary-color);
}

/* ======== COUNTER-OFFER & CHECKLIST STYLES (CUSTOMER) ======== */

.offer-box,
.offer-box-pending,
.offer-box-finalized {
    padding: 25px;
    border-radius: 24px;
    margin-top: 25px;
    text-align: center;
    border-left: 5px solid;
}

.offer-box {
    background-color: #1c4a2a;
    border-color: #28a745;
}

.offer-box-pending {
    background-color: rgba(247, 148, 51, 0.1);
    border-color: var(--secondary-color);
}

.offer-box-finalized {
    background-color: rgba(40, 167, 69, 0.1);
    border-color: #28a745;
}

.offer-box .offer-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 20px;
    text-align: right;
}

.offer-box .offer-actions p {
    font-size: 0.9em;
    margin-bottom: 10px;
}

.offer-box .action-accept {
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    padding-left: 25px;
}

.checklist-results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 1.1em;
}

.checklist-results-table thead {
    background-color: var(--background-dark);
}

.checklist-results-table th {
    padding: 15px;
    text-align: right;
    border-bottom: 2px solid var(--primary-color);
}

.checklist-results-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.checklist-results-table tbody tr:last-child td {
    border-bottom: none;
}

.status-label-chk {
    font-weight: bold;
    padding: 5px 12px;
    border-radius: 24px;
    color: #fff;
    font-size: 0.9em;
}

.status-label-chk.pass {
    background-color: #28a745;
}

.status-label-chk.fail {
    background-color: var(--red);
}

.status-label-chk.na {
    background-color: #6c757d;
}

.checklist-results-table td:last-child {
    font-size: 0.9em;
    font-style: italic;
    color: var(--secondary-color);
}

@media (max-width: 768px) {
    .offer-box .offer-actions {
        grid-template-columns: 1fr;
    }

    .offer-box .action-accept {
        border-left: none;
        padding-left: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        padding-bottom: 25px;
    }


    .sales_list {
        padding-top: 0px !important;
    }
}

/* ======== FINAL TAB INTERFACE STYLES ======== */
.tabs {
    display: flex;
    flex-wrap: wrap;
    /* Allows tabs to wrap on smaller screens */
    gap: 5px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 25px;
}

.tab-button {
    background-color: transparent;
    border: none;
    color: var(--text-dark);
    padding: 15px 20px;
    font-size: 1em;
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    top: 2px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 2px solid transparent;
    /* Prepare for active state */
}

.tab-button:hover {
    color: #fff;
}

.tab-button.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    /* No styles needed here */
}

.tab-pane {
    display: none;
    /* Hidden by default by JavaScript */
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Status Badge Colors for Health/Purchase Check */
.status-badge.status-healthy {
    background-color: #28a745;
    color: #fff;
}

.status-badge.status-problematic {
    background-color: red;
    color: #fff;
}

.status-badge.status-pending {
    background-color: gray;
    color: #000;
}

/* Status Badge Colors for Purchase Eval List */
.status-badge.status-buy {
    background-color: #28a745;
    color: #fff;
}

.status-badge.status-dont_buy {
    background-color: red;
    color: #fff;
}

/* The .status-badge.status-pending style already exists and will be reused */

.warranty-tag.active {
    background-color: #28a745;
    color: white;
    border-radius: 24px;
    padding: 5px;
}

.warranty-tag.expired {
    background-color: rgba(220, 53, 69, 0.2);
    color: white;
    border-radius: 24px;
    padding: 5px;
}

/* ======== FINAL RESULT BOX STYLES ======== */
.final-result-box {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    border-radius: 24px;
    margin-top: 25px;
    border: 1px solid;
}

.result-icon {
    font-size: 3em;
}

.result-text h4 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1.3em;
    font-weight: 700;
}

.result-text p {
    margin: 0;
    line-height: 1.7;
    font-size: 1em;
}

/* Color variations */
.final-result-box.status-healthy {
    background-color: #28a745;
    border-color: #28a745;
}

.final-result-box.status-healthy .result-icon,
.final-result-box.status-healthy h4 {
    color: white;
}

.final-result-box.status-problematic {
    background-color: rgba(247, 148, 51, 0.1);
    border-color: var(--secondary-color);
}

.final-result-box.status-problematic .result-icon,
.final-result-box.status-problematic h4 {
    color: var(--secondary-color);
}

/* Customer Dashboard Header Actions */
.customer-header .header-actions {
    display: flex;
    gap: 10px;
}

/* ======== PAYMENT SUCCESS & UNREPAIRABLE BOX STYLES ======== */

.payment-success-box {
    background: linear-gradient(145deg, rgba(40, 167, 69, 0.1), rgba(40, 167, 69, 0.05));
    border: 1px solid #28a745;
    border-radius: 24px;
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.payment-success-box .success-icon {
    font-size: 4em;
    color: #28a745;
    margin-bottom: 15px;
}

.payment-success-box h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.5em;
    color: #fff;
}

.payment-success-box p {
    color: var(--text-dark);
    line-height: 1.8;
    max-width: 500px;
    margin: 0 auto 25px auto;
}

.offer-box-declined .btn {
    margin-top: 20px;
    background-color: var(--secondary-color);
    color: #000;
    font-weight: bold;
}

/* ======== CUSTOMER DETAILS PAGE - ACTIVITY FEED STYLES ======== */
.customer-details-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    /* Main content is twice as wide as the sidebar */
    gap: 30px;
    align-items: flex-start;
}

.activity-feed-column .content-wrapper {
    position: sticky;
    top: 20px;
}

.activity-feed {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feed-item {
    background-color: var(--background-dark);
    padding: 15px;
    border-radius: 24px;
    border-right: 3px solid var(--primary-color);
}

.feed-item p {
    margin: 0 0 8px 0;
    font-size: 0.9em;
}

.feed-item small {
    color: #888;
    font-size: 0.8em;
}

/* Responsive */
@media (max-width: 992px) {
    .customer-details-grid {
        grid-template-columns: 1fr;
    }
}

/* ======== WARRANTY REQUESTS STYLES ======== */

/* Status Badge Colors for Warranty List Page */
.status-badge.status-pending_pricing {
    background-color: var(--secondary-color);
    color: #000;
}

.status-badge.status-priced {
    background-color: var(--primary-color);
    color: #fff;
}

.status-badge.status-paid {
    background-color: #28a745;
    color: #fff;
}

.status-badge.status-rejected {
    background-color: var(--red);
    color: #fff;
}

/* Spacing for Warranty Details Page */
.warranty-details-page .content-wrapper {
    margin-bottom: 30px;
}

/* ======== NEW: Attractive CTA Boxes for Health Check Page ======== */

.cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 30px;
}

.cta-box {
    background-color: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.cta-box .cta-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.cta-box h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.4em;
    color: #fff;
}

.cta-box p {
    color: var(--text-dark);
    line-height: 1.7;
    flex-grow: 1;
    /* Pushes button to the bottom */
    margin-bottom: 25px;
}

/* Sell Box Specific Styles */
.cta-box-sell {
    border-color: var(--primary-color);
}

.cta-box-sell .cta-icon {
    color: var(--primary-color);
}

/* Warranty Box Specific Styles */
.cta-box-warranty {
    border-color: var(--secondary-color);
}

.cta-box-warranty .cta-icon {
    color: var(--secondary-color);
}

.cta-box-warranty .btn {
    background-color: var(--secondary-color);
    color: #000;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(247, 148, 51, 0.2);
}

.cta-box-warranty .btn:hover {
    background-color: #ffab57;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .cta-grid {
        grid-template-columns: 1fr;
    }
}

/* ======== ENHANCED PAYMENT LIST STYLES ======== */

.payment-list-table tbody tr.pending-verification {
    background-color: rgba(247, 148, 51, 0.1);
    /* Light orange highlight for pending manual */
}

.payment-list-table tbody tr.pending-online {
    background-color: rgba(36, 128, 145, 0.1);
    /* Light blue highlight for pending online */
}

.payment-method-icon {
    margin-right: 5px;
    font-size: 1.1em;
    vertical-align: middle;
}

.payment-status-badge {
    padding: 6px 12px;
    border-radius: 24px;
    font-size: 0.85em;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
}

.payment-status-badge.status-successful,
.payment-status-badge.status-approved {
    background-color: var(--green);
    /* Success green */
}

.payment-status-badge.status-pending,
.payment-status-badge.status-waiting_payment {
    /* Added waiting_payment */
    background-color: var(--secondary-color);
    /* Pending orange */
    color: #000;
}

.payment-status-badge.status-failed,
.payment-status-badge.status-rejected {
    background-color: var(--red);
    /* Failed/Rejected red */
}

/* ======== ENHANCED PURCHASE EVAL DETAILS STYLES ======== */

.eval-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Three equal columns */
    gap: 25px;
    align-items: flex-start;
}

.eval-details-grid .grid-span-2 {
    grid-column: span 2;
    /* Make checklist span 2 columns */
}

.eval-details-grid .grid-span-3 {
    grid-column: span 3;
    /* Make customer info span all 3 columns */
}

.eval-checklist-container {
    background-color: var(--background-light);
    border-radius: 24px;
    padding: 25px;
    border: 1px solid var(--border-color);
}

.eval-checklist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.eval-checklist-item {
    background-color: var(--background-dark);
    padding: 15px;
    border-radius: 24px;
    border-left: 4px solid var(--border-color);
    /* Default border */
}

.eval-checklist-item>label {
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 10px;
    display: block;
}

/* Style selected radio button labels */
.eval-checklist-item .checklist-options input[value="pass"]:checked+label {
    border-color: var(--green);
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--green);
}

.eval-checklist-item .checklist-options input[value="fail"]:checked+label {
    border-color: var(--red);
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--red);
}

.eval-checklist-item .checklist-options input[value="na"]:checked+label {
    border-color: #6c757d;
    background-color: rgba(108, 117, 125, 0.1);
    color: #adb5bd;
}

/* Highlight border based on status */
.eval-checklist-item.status-pass {
    border-left-color: var(--green);
}

.eval-checklist-item.status-fail {
    border-left-color: var(--red);
}

.eval-checklist-item.status-na {
    border-left-color: #6c757d;
}

.eval-checklist-item .note-input {
    margin-top: 10px;
    background-color: rgba(0, 0, 0, 0.3);
    font-size: 0.9em;
    border-color: var(--red);
    /* Highlight notes for failed items */
}

.eval-checklist-item .note-input.hidden {
    display: none;
    /* Cleaner hiding */
}

.eval-decision-box {
    background-color: var(--background-light);
    border-radius: 24px;
    padding: 25px;
    border: 1px solid var(--border-color);
    position: sticky;
    /* Keep it visible while scrolling checklist */
    top: 20px;
}

.eval-decision-box h2 {
    margin-top: 0;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.customer-info-link {
    margin-left: 10px;
    font-size: 0.9em;
}

@media (max-width: 992px) {
    .eval-details-grid {
        grid-template-columns: 1fr;
        /* Stack columns on smaller screens */
    }

    .eval-details-grid .grid-span-2,
    .eval-details-grid .grid-span-3 {
        grid-column: span 1;
    }

    .eval-decision-box {
        position: static;
        /* Disable sticky positioning */
    }
}

/* ======== ENHANCED CUSTOMER PURCHASE EVAL STATUS STYLES ======== */

.status-details-card {
    background-color: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 25px;
    margin-bottom: 25px;
}

.status-details-card h3 {
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--secondary-color);
}

.status-details-card h3 i {
    color: var(--primary-color);
}

.device-info-grid p {
    margin-bottom: 12px;
    color: var(--text-dark);
}

.device-info-grid strong {
    color: var(--text-light);
    margin-left: 8px;
}

/* Enhanced Checklist Table */
.detailed-checklist-table {
    width: 100%;
    border-collapse: separate;
    /* Use separate for rounded corners */
    border-spacing: 0 8px;
    /* Vertical spacing between rows */
    margin-top: 20px;
}

.detailed-checklist-table th {
    text-align: right;
    padding: 10px 15px;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.9em;
}

.detailed-checklist-table td {
    background-color: var(--background-dark);
    padding: 12px 15px;
    vertical-align: middle;
    color: var(--text-light);
}

.detailed-checklist-table td:first-child {
    border-top-right-radius: 24px;
    border-bottom-right-radius: 24px;
    font-weight: 500;
}

.detailed-checklist-table td:last-child {
    border-top-left-radius: 24px;
    border-bottom-left-radius: 24px;
}

.checklist-status-icon {
    font-size: 1.2em;
    margin-left: 8px;
    vertical-align: middle;
}

.checklist-status-icon.pass {
    color: var(--green);
}

.checklist-status-icon.fail {
    color: var(--red);
}

.checklist-status-icon.na {
    color: #6c757d;
}

.checklist-notes {
    font-size: 0.85em;
    color: #aaa;
    display: block;
    margin-top: 5px;
}

/* Adjust Offer/Status Boxes */
.offer-box,
.offer-box-pending,
.offer-box-finalized,
.offer-box-declined {
    margin-top: 0;
    /* Removed default top margin as it's now inside a card */
}

/* Ensure mobile header stays on top */
.mobile-nav {
    z-index: 2000;
}

header.fixed-top {
    z-index: 1030;
}

/* Ensure header is below mobile nav */

/* ======== ACCORDION STYLES (for Driver Grouping) ======== */
.accordion-container {
    margin-top: 20px;
    max-height: 600px;
    /* Limit height and add scroll */
    overflow-y: auto;
    padding-right: 10px;
    /* Space for scrollbar */
}

.accordion-item {
    background-color: var(--background-dark);
    margin-bottom: 10px;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.accordion-header {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 15px 20px;
    font-size: 1.1em;
    font-weight: bold;
    color: var(--secondary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header:hover {
    background-color: rgba(0, 0, 0, 0.4);
}

.accordion-header::after {
    content: '\f078';
    /* Font Awesome chevron-down */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    transition: transform 0.3s ease;
    font-size: 0.8em;
    color: var(--text-dark);
}

.accordion-item.active .accordion-header::after {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 20px;
}

.accordion-item.active .accordion-content {
    max-height: 1000px;
    /* Adjust as needed */
    padding: 15px 20px;
}

.accordion-content table {
    margin-top: 0;
}

/* Remove extra margin inside accordion */
.accordion-content table td {
    background-color: transparent;
}

/* Use accordion background */

/* ======== START: Professional Centered Split-Card Login (V4 - Corrected Centering) ======== */

/* 1. Body styles */
/* We use the existing .bg-glass class on the <body> */
body.bg-glass {
    /* ONLY sets background and ensures full height */
    min-height: 100vh;
    width: 100%;
    margin: 0;
    background-image: url('../assets/images/background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* 2. Fullscreen container to CENTER the card */
.login-center-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    padding: 2rem;
    /* This padding creates the space around the card on DESKTOP */
    box-sizing: border-box;
    /* Include padding in the width/height calculation */
}

/* 3. The main split card */
.login-card-split {
    width: 100%;
    max-width: 900px;
    /* Width of the entire card */
    min-height: 550px;
    /* Give the card a nice height */
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Two equal columns */
    border-radius: 24px;
    overflow: hidden;
    /* Important for rounded corners on children */

    /* Glassmorphism effect */
    background: rgba(40, 40, 40, 0.65);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* 4. Left Side (IMAGE) */
.login-card-image {
    background-image: url('../images/login.png');
    background-size: cover;
    background-position: center;
    min-height: 550px;
}

.sign-card-image {
    background-image: url('../images/Signup.png');
    background-size: cover;
    background-position: center;
    min-height: 550px;
}

.verify-card-image {
    background-image: url('../images/verify.png');
    background-size: cover;
    background-position: center;
    min-height: 550px;
}

/* 5. Right Side (Form) */
.login-card-form {
    padding: 2.5rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.2);
    /* Slightly different background for contrast */
}

/* 6. Enhanced Error Alert */
.login-card-form .alert.alert-danger {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: rgba(220, 53, 69, 0.2);
    border: 1px solid rgba(220, 53, 69, 0.7);
    color: #fff;
    font-weight: 500;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 24px;
    text-align: right;
    font-size: 0.9em;
    animation: fadeIn 0.5s ease-out;
}

.login-card-form .alert.alert-danger::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f071";
    /* fa-triangle-exclamation */
    font-size: 1.2em;
    color: var(--secondary-color);
}

.login-card-form .alert.alert-danger a {
    color: var(--secondary-color) !important;
    font-weight: bold;
    text-decoration: underline;
}

/* 7. Enhanced Info Alert */
.login-card-form .alert.alert-info {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: rgba(36, 128, 145, 0.2);
    border: 1px solid rgba(36, 128, 145, 0.7);
    color: #fff;
    font-size: 0.9em;
    animation: fadeIn 0.5s ease-out;
}

.login-card-form .alert.alert-info::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f05a";
    /* fa-info-circle */
    font-size: 1.2em;
    color: var(--primary-color);
}

/* 8. Error Shake Animation */
@keyframes shake {

    10%,
    90% {
        transform: translateX(-1px);
    }

    20%,
    80% {
        transform: translateX(2px);
    }

    30%,
    50%,
    70% {
        transform: translateX(-4px);
    }

    40%,
    60% {
        transform: translateX(4px);
    }
}

.shake-error {
    animation: shake 0.7s cubic-bezier(.36, .07, .19, .97) both;
}

/* 9. Fade-in Keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 10. Responsive for Mobile */
@media (max-width: 992px) {
    body.bg-glass {
        padding: 0;
        /* Remove desktop padding */
    }

    .login-center-container {
        padding: 0;
        /* Remove desktop padding */
        align-items: flex-start;
        /* Align to top */
        min-height: 100vh;
    }

    .login-card-split {
        /* CHANGED: Use flex-direction to stack */
        display: flex;
        flex-direction: column;
        border-radius: 24px;
        min-height: 100vh;
        width: 100%;
        max-width: 100%;
        background: rgba(40, 40, 40, 0.75);
        /* Darker glass effect for mobile */
    }

    .login-card-image {
        display: block;
        /* Image is visible */
        min-height: 250px;
        /* Give the image a fixed height */
        height: 35vh;
        /* 35% of the viewport height */
        flex-shrink: 0;
        /* Don't let it shrink */
    }

    .login-card-form {
        justify-content: center;
        /* Center form vertically in its space */
        padding: 2rem 1.5rem;
        min-height: auto;
        /* Let it take natural height */
        flex-grow: 1;
        /* Allow it to fill remaining space */
        display: block !important;
    }
}

/* ======== END: Professional Centered Split-Card Login (V4) ======== */

/* ======== START: Professional Centered Split-Card & OTP Styles ======== */

/* 1. Body & Container (Shared with Login) */
body.bg-glass {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    padding: 2rem;
    margin: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    box-sizing: border-box;
}

.login-center-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

/* 2. Split Card Layout (Shared with Login) */
.login-card-split {
    width: 100%;
    max-width: 900px;
    min-height: 550px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 24px;
    overflow: hidden;
    background: rgba(40, 40, 40, 0.65);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.login-card-form {
    padding: 2.5rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.2);
}

/* 3. NEW: OTP Input Box Styles */
.otp-input-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 30px 0;
    direction: ltr;
    /* OTP inputs should always be LTR */
}

.otp-input {
    width: 60px !important;
    /* Override .form-control-glass */
    height: 65px;
    font-size: 2em !important;
    text-align: center !important;
    /* Ensure text is centered */
    padding: 0.5rem !important;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 24px;
    transition: all 0.3s ease;
    /* Remove spinners from number input */
    -moz-appearance: textfield;
}

.otp-input::-webkit-outer-spin-button,
.otp-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.otp-input:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.25rem rgba(247, 148, 51, 0.25);
    outline: none;
}

/* 4. Alerts & Animations (Shared with Login) */
.login-card-form .alert.alert-danger {
    /* (Style codes from previous step) */
}

.login-card-form .alert.alert-info {
    /* (Style codes from previous step) */
}

@keyframes shake {
    /* (Animation code from previous step) */
}



@keyframes fadeIn {
    /* (Animation code from previous step) */
}

/* 5. Responsive (Shared with Login) */
@media (max-width: 992px) {
    body.bg-glass {
        padding: 0;
        align-items: flex-start;
    }

    .login-center-container {
        padding: 0;
        min-height: 100vh;
    }

    .login-card-split {
        display: flex;
        flex-direction: column;
        border-radius: 24px;
        min-height: 100vh;
        width: 100%;
        max-width: 100%;
        background: rgba(40, 40, 40, 0.75);
    }

    .login-card-image {
        display: block;
        min-height: 300px;
        height: 35vh;
        flex-shrink: 0;
    }

    .sign-card-image {
        display: block;
        min-height: 300px;
        height: 35vh;
        flex-shrink: 0;
    }

    .login-card-form {
        justify-content: center;
        padding: 2rem 1.5rem;
        min-height: auto;
        flex-grow: 1;
    }

    .otp-input {
        /* Make inputs slightly smaller on mobile */
        width: 50px !important;
        height: 55px;
        font-size: 1.5em !important;
    }
}

/* ======== END: Professional Centered Split-Card & OTP Styles ======== */







/* ======== START: OTP Verification & Success Animation Styles ======== */

/* 1. OTP Input Box Styles */
.otp-input-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 30px 0;
    direction: ltr;
    /* OTP inputs should always be LTR */
}

.otp-input {
    width: 60px !important;
    /* Override .form-control-glass */
    height: 65px;
    font-size: 2em !important;
    text-align: center !important;
    padding: 0.5rem !important;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 24px;
    transition: all 0.3s ease;
    /* Remove spinners from number input */
    -moz-appearance: textfield;
}

.otp-input::-webkit-outer-spin-button,
.otp-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.otp-input:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.25rem rgba(247, 148, 51, 0.25);
    outline: none;
}

/* 2. Resend & Timer Links */
.otp-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    font-size: 0.9em;
}

.otp-links a {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
}

.otp-links a:hover {
    text-decoration: underline;
}

#timer-message {
    color: var(--text-dark);
    font-weight: bold;
}

#resend-container {
    display: none;
    /* Hidden by default */
}

/* 3. NEW: Success Overlay & Animation */
.success-overlay {
    /* Hidden by default */
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(40, 40, 40, 0.9);
    /* Darker glass overlay */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 3000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    animation: fadeIn 0.5s ease;
}

.success-overlay.active {
    display: flex;
    /* Shown by JS */
}

/* 4. The "Cool" Pulsating Checkmark Animation */
.success-checkmark {
    width: 100px;
    height: 100px;
    border-radius: 24px;
    background-color: var(--green);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3em;
    color: #fff;
    /* Pulsating shadow effect */
    animation: pulse 1.5s infinite ease-in-out;
}

.success-checkmark i {
    transform: scale(0.8);
    /* Pop-in animation for the checkmark itself */
    animation: check-pop 0.5s 0.2s ease-out both;
}

.success-overlay p {
    color: #fff;
    font-size: 1.2em;
    margin-top: 25px;
    font-weight: 500;
}

/* 5. Keyframes for Animations */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(40, 167, 69, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

@keyframes check-pop {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* 6. Responsive (Ensure OTP inputs fit on small screens) */
@media (max-width: 992px) {

    /* (Styles for .login-card-split, .login-card-image etc. are already defined) */
    .otp-input {
        width: 50px !important;
        height: 55px;
        font-size: 1.5em !important;
    }

    .login-card-form {
        padding: 2rem 1.5rem;
        /* Adjust padding for mobile */
    }
}

/* ======== END: OTP Verification & Success Animation Styles ======== */







































/* ======== START: Professional Repair List Card Styles ======== */

.repair-card-list {
    display: grid;
    grid-template-columns: 1fr;
    /* Single column list */
    gap: 15px;
    padding-top: 15px;
}

.repair-card-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    /* Icon | Details | Status & Arrow */
    align-items: center;
    gap: 20px;
    padding: 20px 25px;
    background-color: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    text-decoration: none;
    color: var(--text-light);
    transition: all 0.3s ease;
    border-right: 5px solid transparent;
    /* Highlight border on the right */
}

.repair-card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-right-color: var(--primary-color);
}

.repair-card-item .card-icon {
    font-size: 2.2em;
    color: var(--primary-color);
}

.repair-card-item .card-details {
    line-height: 1.6;
}

.repair-card-item .card-details .device-model {
    font-size: 1.2em;
    font-weight: 700;
    color: #fff;
    margin-bottom: 3px;
}

.repair-card-item .card-details .tracking-code {
    font-size: 0.9em;
    color: var(--text-dark);
}

.repair-card-item .card-status {
    text-align: left;
    /* Aligns status and arrow to the left in RTL */
}

.repair-card-item .card-status .status-badge {
    /* Uses the existing status-badge styles */
    display: inline-block;
    padding: 8px 15px;
    font-weight: 500;
    min-width: 120px;
    /* Give badges a consistent width */
    text-align: center;
}

.repair-card-item .card-status .card-arrow {
    display: block;
    margin-top: 8px;
    font-size: 0.9em;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.repair-card-item:hover .card-status .card-arrow {
    color: var(--secondary-color);
}

/* Responsive for Mobile */
@media (max-width: 768px) {
    .repair-card-item {
        grid-template-columns: 1fr;
        /* Stack everything */
        gap: 15px;
        padding: 20px;
    }

    .repair-card-item .card-icon {
        display: none;
        /* Hide big icon on mobile */
    }

    .repair-card-item .card-status {
        text-align: right;
        /* Align status to right on mobile */
        padding-top: 10px;
        margin-top: 10px;
        border-top: 1px solid var(--border-color);
    }

    .repair-card-item .card-status .card-arrow {
        display: none;
        /* Hide arrow on mobile */
    }

    .repair-card-item .card-status .status-badge {
        width: 100%;
        /* Make status badge full-width */
    }
}

/* ======== END: Professional Repair List Card Styles ======== */























/* ======== START: V3 Modern Service Card List Styles ======== */

.service-card-list {
    display: grid;
    /* On large screens, allow 2 or 3 columns depending on space */
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 25px;

}


.service-card {
    /* A soft, modern gradient */
    background: #1e1e1e;
    border-radius: 24px;
    text-decoration: none;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    /* Top-to-bottom flow */
    transition: all 0.3s ease-out;
    /* Soft shadow for depth */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.service-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border-color: var(--primary-color);
}

/* Card Header: Device Model & Icon */
.service-card-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
}

.service-card-header .device-model {
    font-size: 1.3em;
    font-weight: 700;
    color: #fff;
    margin: 0 0 5px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-card-header .device-model i {
    color: var(--primary-color);
}

.service-card-header .tracking-code {
    font-size: 0.9em;
    color: var(--text-dark);
}

/* Card Body: Last Update Info */
.service-card-body {
    padding: 20px 25px;
    flex-grow: 1;
    /* Pushes footer to the bottom */
}

.service-card-body .last-update {
    font-size: 0.9em;
    color: var(--text-dark);
}

/* Card Footer: Status & Action Text */
.service-card-footer {
    padding: 15px 25px;
    background-color: rgba(0, 0, 0, 0.2);
    border-bottom-right-radius: 24px;
    border-bottom-left-radius: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.service-card-footer .status-badge {
    /* Uses existing styles */
    padding: 8px 15px;
    font-weight: 500;
}

.service-card-footer .card-arrow {
    font-size: 0.9em;
    color: var(--secondary-color);
    font-weight: 500;
}

.service-card-footer .card-arrow i {
    margin-right: 5px;
    /* RTL spacing */
}

/* Responsive */
@media (max-width: 768px) {
    .service-card-list {
        display: flex;
        flex-direction: column;
        gap: 15px;
        width: 100%;
        padding: 0;
        margin: 0;

    }


}

/* ======== END: V3 Modern Service Card List Styles ======== */























/* ======== START: Professional Customer Status Dashboard (V4) ======== */

/* 1. New Grid Layout */
.status-dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    /* Main column (timeline) is 2/3, sidebar is 1/3 */
    gap: 30px;
    align-items: flex-start;
    padding-right: 10px;
    padding-left: 10px;
}

.status-main-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.status-sidebar-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: sticky;
    top: 90px;
}

/* 2. Visual Repair Roadmap (Timeline) */
.repair-roadmap {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding: 20px 0;
}

/* The connecting line */
.repair-roadmap::before {
    content: '';
    position: absolute;
    top: 35px;
    /* Vertically center on the icon */
    right: 5%;
    width: 90%;
    height: 4px;
    background-color: var(--border-color);
    z-index: 1;
}

.roadmap-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 2;
    width: 100px;
    /* Width for each step */
    text-align: center;
}

.roadmap-icon {
    width: 30px;
    height: 30px;
    border-radius: 24px;
    background-color: var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-dark);
    font-size: 0.9em;
    border: 4px solid var(--background-dark);
    transition: all 0.4s ease;
}

.roadmap-step p {
    font-size: 0.85em;
    font-weight: 500;
    color: var(--text-dark);
    transition: color 0.4s ease;
}

/* Active & Completed States */
.roadmap-step.completed .roadmap-icon {
    background-color: var(--green);
    color: #fff;
    border-color: var(--background-light);
}

.roadmap-step.active .roadmap-icon {
    background-color: var(--secondary-color);
    color: #000;
    border-color: var(--background-light);
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(247, 148, 51, 0.5);
}

.roadmap-step.completed p,
.roadmap-step.active p {
    color: #fff;
}

/* 3. Action Required Box (Replaces Payment Tab) */
.action-required-box {
    border: 2px solid var(--secondary-color);
    background: rgba(247, 148, 51, 0.1);
    box-shadow: 0 5px 25px rgba(247, 148, 51, 0.1);
}

.action-required-box h2 {
    color: var(--secondary-color);
}

.action-required-box .cost-amount {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 20px 0;
}

.payment-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

/* Style for "card-payment-modal" (from previous steps) */
.modal-content {
    direction: rtl;
    /* Ensure modal content is RTL */
    text-align: right;
}

.modal-content form {
    margin-top: 15px;
}

/* 4. Sidebar Widgets (Photo Gallery, Warranty, etc.) */
.photo-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.photo-gallery-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.photo-gallery-item img:hover {
    transform: scale(1.05);
}

.photo-gallery-item p {
    text-align: center;
    font-size: 0.8em;
    color: var(--text-dark);
    margin-top: 5px;
}

/* 5. Responsive for Mobile */
@media (max-width: 992px) {
    .status-dashboard-grid {
        grid-template-columns: 1fr;
        /* Stack columns */
        padding-top: 42px;
    }


    .page-content-wrapper {
        margin-top: 0 !important;
    }



    .status-sidebar-column {
        position: static;
        /* Disable sticky sidebar */
    }

    .repair-roadmap {
        /* On small screens, show fewer items or wrap */
        flex-wrap: wrap;
        justify-content: flex-start;
        padding: 0;
    }

    .repair-roadmap::before {
        display: none;
    }

    /* Hide line on mobile */
    .roadmap-step {
        flex-direction: row;
        /* Icon and text side-by-side */
        width: 100%;
        text-align: right;
        padding: 10px 0;
        border-bottom: 1px dashed var(--border-color);
    }

    .roadmap-step p {
        font-size: 1em;
    }

    .roadmap-icon {
        flex-shrink: 0;
    }

    .payment-buttons {
        flex-direction: column;
    }

    .payment-buttons .btn {
        width: 100%;
    }



}

/* ======== END: Professional Customer Status Dashboard ======== */























/* ======== START: Responsive Tab Layout (customer/status.php) ======== */

/* Make tabs scrollable on mobile instead of stacking */
.tabs {
    display: flex;
    gap: 5px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 25px;
    /* NEW */
    overflow-x: auto;
    /* Allows horizontal scrolling */
    white-space: nowrap;
    /* Keeps tabs in one line */
    -webkit-overflow-scrolling: touch;
    /* Smooth scrolling on iOS */
    padding-bottom: 2px;
    /* Prevent scrollbar from overlapping border */
}

/* Ensure tab buttons don't shrink */
.tab-button {
    flex-shrink: 0;
    /* Prevents shrinking on mobile */
    padding: 12px 15px;
}

/* Make info/history grid stack on mobile */
@media (max-width: 992px) {
    .details-container {
        grid-template-columns: 1fr;
        /* Stack info and history columns */
        gap: 20px;
    }

    .list-ticket-up {
        padding-top: 0 !important;
    }

}

/* Ensure image gallery is responsive */
.image-gallery {
    display: grid;
    /* Auto-fit columns, min 120px, max 1fr */
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.image-thumbnail img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

/* ======== END: Responsive Tab Layout ======== */

































/* ======== BOOKING WIZARD MOBILE OPTIMIZATION ======== */

/* Make the wizard card full width on mobile */
@media (max-width: 768px) {
    .wizard-container {
        /* Add padding for fixed header and space */
        padding: 80px 10px 30px 10px;
        min-height: 100vh;
        align-items: flex-start;
        /* Align to top on mobile */
    }

    .wizard-card.glass-card {
        width: 100%;
        padding: 1.5rem;
        /* Slightly reduce padding */
    }

    /* Stack the service grid to 1 column */
    .service-selection-grid {
        grid-template-columns: 1fr;
    }

    /* Stack date/time inputs */
    .form-step[data-step="2"]>div[style*="display: flex"] {
        flex-direction: column;
        gap: 0;
        /* Remove gap, .form-group handles margin */
    }


}

/* ======== END: BOOKING WIZARD ======== */




















/* ======== START: Enhanced Detail Grid Styles (Appointment/Ticket Details) ======== */
.detail-grid-list {
    display: grid;
    /* 2 columns on desktop */
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    /* Space between items */
}

.detail-grid-item {
    background-color: var(--background-dark);
    /* Darker than the card bg */
    padding: 15px;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    /* Vertically align icon and text */
    gap: 15px;
    transition: all 0.3s ease;
}

.detail-grid-item:hover {
    border-color: var(--primary-color);
}

.detail-grid-item .icon {
    font-size: 1.5em;
    color: var(--primary-color);
    width: 30px;
    text-align: center;
}

.detail-grid-item .text-content {
    line-height: 1.5;
}

.detail-grid-item .label {
    display: block;
    font-size: 0.85em;
    color: var(--text-dark);
    /* Lighter text for the label */
}

.detail-grid-item .value {
    display: block;
    font-weight: 500;
    color: #fff;
    /* White, bold text for the value */
}

/* Make notes/other full-width */
.detail-grid-item.full-width {
    grid-column: 1 / -1;
}

/* Responsive for Mobile */
@media (max-width: 768px) {
    .detail-grid-list {
        grid-template-columns: 1fr;
        /* Stack on mobile */
        gap: 10px;
    }
}

/* ======== END: Enhanced Detail Grid Styles ======== */




















/* ======== Customer List Page Action Button (Bottom Position) ======== */
.page-action-bar {
    display: flex;
    justify-content: flex-end;
    /* Aligns button to the left (RTL) */
    padding-bottom: 0;
    /* Remove bottom padding */
    margin-top: 20px;
    /* Add top margin to separate from list */
}

/* On mobile, make button full width for better UX */
@media (max-width: 768px) {
    .page-action-bar {
        padding: 0;
        margin-top: 20px;
    }

    .page-action-bar .btn {
        width: 100%;
        font-size: 1.1em;
        padding: 12px;
    }
}

/* ======== END Customer List Page Action Button ======== */







































.detail-grid-item .text-content {
    line-height: 1.5;
    flex-grow: 1;
    /* <<--- این خط اضافه شده: به کانتینر متن می‌گوید تا تمام فضا را پر کند */
    width: 1%;
    /* <<--- این خط اضافه شده: یک فیکس برای اطمینان از رشد صحیح در برخی مرورگرها */
}

















/* ======== START: Inline Search Form (select_customer.php) ======== */

.customer-search-form {
    display: flex;
    gap: 10px;
    /* فاصله بین کادر جستجو و دکمه */
    align-items: flex-end;
    /* دکمه و کادر را از پایین تراز می‌کند */
}

.customer-search-form .form-group {
    flex-grow: 1;
    /* کادر جستجو تمام فضای خالی را پر می‌کند */
    margin-bottom: 0;
    /* حذف فاصله اضافه زیر کادر */
}

/* اختیاری: اگر می‌خواهید لیبل "جستجو در میان مشتریان" حذف شود 
   و فقط placeholder نمایش داده شود، این کد را از کامنت خارج کنید:
*/
/*
.customer-search-form label {
    display: none; 
}
*/

.customer-search-form .btn {
    flex-shrink: 0;
    /* جلوگیری از فشرده شدن دکمه */
}

/* ======== END: Inline Search Form ======== */














/* ======== START: Custom File Input (Drag & Drop Style) ======== */
.file-upload-wrapper {
    position: relative;
    margin-top: 10px;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 150px;
    padding: 2rem;
    border: 2px dashed var(--border-color);
    border-radius: 24px;
    background-color: var(--background-dark);
    color: var(--text-dark);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Style for when dragging a file over the box */
.file-upload-label.drag-over {
    border-color: var(--primary-color);
    background-color: var(--background-light);
    color: #fff;
}

.file-upload-label .upload-icon {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.file-upload-label .upload-text-main {
    font-weight: 500;
    color: #fff;
}

.file-upload-label .upload-text-sub {
    font-size: 0.85em;
    margin-top: 5px;
}

/* The actual, hidden input */
.file-upload-input {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

/* NEW: File Preview Area */
.file-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.file-preview-item {
    width: 100px;
    height: 100px;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
}

.file-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-preview-item .remove-file-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    /* Changed to right for RTL consistency */
    width: 20px;
    height: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    border-radius: 24px;
    cursor: pointer;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.file-preview-item .remove-file-btn:hover {
    opacity: 1;
}

/* ======== END: Custom File Input ======== */


.form-group input::placeholder {
    color: #f0f0f0 !important;
}















/* ======== START: Professional Repair Details Dashboard Layout ======== */

.repair-details-grid {
    display: grid;
    /* Main column is wider than sidebar */
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: flex-start;
}

.details-main-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
    /* Space between widgets */
}

.details-sidebar-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: sticky;
    /* Sidebar stays sticky on scroll */
    top: 20px;
    /* Space from top */
}

/* Re-using existing widget styles */
.widget-card {
    background-color: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    overflow: hidden;
    border-radius: 24px;
}

.widget-header {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;

    gap: 10px;
}

.widget-header h2 {
    margin: 0;
    font-size: 1.2em;
    color: #fff;
}

.widget-header i {
    color: var(--primary-color);
}

.widget-content {
    padding: 20px;
}

/* Specific style for device edit form */
.widget-content .form-group label {
    font-size: 0.9em;
    color: var(--text-dark);
}

.widget-content .form-group input {
    padding: 8px 12px;
    /* Make inputs smaller */
}

.widget-content .btn-small {
    font-size: 0.9em;
    padding: 5px 15px;
    margin-top: 5px;
}

/* Responsive for Mobile */
@media (max-width: 992px) {
    .repair-details-grid {
        grid-template-columns: 1fr;
        /* Stack columns on mobile */
    }

    .details-sidebar-column {
        position: static;
        /* Disable sticky sidebar */
    }
}

/* ======== END: Professional Repair Details Dashboard Layout ======== */










/* ======== START: Custom File Input (Drag & Drop Style) ======== */
.file-upload-wrapper {
    position: relative;
    margin-top: 10px;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 150px;
    padding: 2rem;
    border: 2px dashed var(--border-color);
    border-radius: 24px;
    background-color: var(--background-dark);
    color: var(--text-dark);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Style for when dragging a file over the box */
.file-upload-label.drag-over {
    border-color: var(--primary-color);
    background-color: var(--background-light);
    color: #fff;
}

.file-upload-label .upload-icon {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.file-upload-label .upload-text-main {
    font-weight: 500;
    color: #fff;
}

.file-upload-label .upload-text-sub {
    font-size: 0.85em;
    margin-top: 5px;
}

/* The actual, hidden input */
.file-upload-input {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

/* NEW: File Preview Area */
.file-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    flex-direction: row-reverse;
    /* Added for RTL image display */
}

.file-preview-item {
    width: 100px;
    height: 100px;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
}

.file-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-preview-item .remove-file-btn {
    position: absolute;
    top: 2px;
    left: 2px;
    /* Changed to left for RTL consistency */
    width: 20px;
    height: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    border-radius: 24px;
    cursor: pointer;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.file-preview-item .remove-file-btn:hover {
    opacity: 1;
}

/* ======== END: Custom File Input ======== */



















/* ======== START: Enhanced Form Input with Icons ======== */
.form-group-with-icon {
    position: relative;
    /* margin-bottom: 20px; (form-group already handles this) */
}



.form-group-with-icon .input-icon {
    position: absolute;
    top: 50%;
    /* Center vertically */
    right: 18px;
    /* Position icon on the right (RTL) */
    transform: translateY(-50%);
    color: var(--text-dark);
    transition: color 0.3s ease;
    z-index: 2;
    /* Ensure icon is above input */
    padding-top: 5px;
    /* Small adjustment to align with text */
}

/* Highlight icon when input is focused */
.form-group-with-icon .form-control:focus+.input-icon {
    color: var(--primary-color);
}

/* Adjust label */
.form-group-with-icon label {
    display: block;
    margin-bottom: 8px;
    color: #ccc;
}

/* ======== END: Enhanced Form Input with Icons ======== */





.form-group textarea::placeholder {
    color: #f0f0f0;
}



















/* ======== START: Professional Details Dashboard Layout (repair, purchase_eval) ======== */

.details-dashboard-grid {
    display: grid;
    /* Main column is wider */
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: flex-start;
}

.details-main-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
    /* Space between widgets */
}

.details-sidebar-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: sticky;
    /* Sidebar stays sticky on scroll */
    top: 20px;
    /* Space from top */
}

/* Re-using existing widget styles */
.widget-card {
    background-color: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    overflow: hidden;
}

.widget-header {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.widget-header h2 {
    margin: 0;
    font-size: 1.2em;
    color: #fff;
}

.widget-header i {
    color: var(--primary-color);
}

.widget-content {
    padding: 20px;
}

/* Style for inputs with icons */
.form-group-with-icon {
    position: relative;
}

.form-group-with-icon .input-icon {
    position: absolute;
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
    color: var(--text-dark);
    padding-top: 5px;
}

.form-group-with-icon .form-control:focus+.input-icon {
    color: var(--primary-color);
}

/* Responsive for Mobile */
@media (max-width: 992px) {
    .details-dashboard-grid {
        grid-template-columns: 1fr;
        /* Stack columns on mobile */
    }

    .details-sidebar-column {
        position: static;
        /* Disable sticky sidebar */
    }

    .roadmap-step.completed p {
        margin-bottom: 0;
    }

    .roadmap-step.active p {
        margin-bottom: 0;
    }

    .purchase-eval-status {
        padding-top: 40px !important;
    }


    .dashboard-welcome {
        margin-top: 30px !important;
    }

    .mb-6 {
        margin-bottom: 110px;
    }



}

/* ======== END: Professional Details Dashboard Layout ======== */





.health-check-status {
    padding-right: 10px !important;
    padding-left: 10px !important;
}











































@media (max-width: 992px) {

    .sale-details-page {
        margin-top: 80px !important;
    }
}





































/* ======== START: V3 - Ultimate Search Center Styles ======== */

.search-hero {
    background: #2a2a2a;
    border-radius: 24px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    /* For animations */
}

.search-hero h2 {
    margin-top: 0;
    color: #fff;
    font-size: 1.8em;
}

.search-hero p {
    color: var(--text-dark);
    font-size: 1.1em;
}

.live-search-wrapper {
    position: relative;
    max-width: 600px;
    margin: 20px auto 0;
}

.live-search-input {
    width: 100%;
    text-align: center;
    font-size: 2.5em !important;
    /* !! فونت بزرگ و جذاب !! */
    letter-spacing: 10px;
    /* فاصله بین ارقام */
    height: 80px !important;
    padding: 10px 20px !important;
    background-color: var(--background-dark) !important;
    color: #fff !important;
    border: 2px solid var(--border-color) !important;
    border-radius: 24px !important;
    direction: ltr;
    /* همیشه چپ به راست برای اعداد */
    transition: all 0.3s ease;
}

.live-search-input:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 20px rgba(36, 128, 145, 0.5) !important;
}

/* انیمیشن لرزش برای خطا */
@keyframes shake {

    10%,
    90% {
        transform: translateX(-1px);
    }

    20%,
    80% {
        transform: translateX(2px);
    }

    30%,
    50%,
    70% {
        transform: translateX(-4px);
    }

    40%,
    60% {
        transform: translateX(4px);
    }
}

.shake-error {
    animation: shake 0.7s cubic-bezier(.36, .07, .19, .97) both;
}

/* آیکون لودینگ (چرخنده) */
.search-loading-spinner {
    position: absolute;
    top: 50%;
    left: 25px;
    /* (راست در LTR) */
    transform: translateY(-50%);
    font-size: 1.5em;
    color: var(--text-dark);
    display: none;
    /* مخفی به صورت پیش‌فرض */
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: translateY(-50%) rotate(0deg);
    }

    100% {
        transform: translateY(-50%) rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* کانتینر نتایج زنده */
#live-search-results {
    margin-top: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.search-result-card {
    background-color: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    text-align: right;
    overflow: hidden;
    animation: fadeIn 0.5s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.search-result-card .header {
    padding: 15px 20px;
    background-color: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-result-card .header i {
    font-size: 1.3em;
    /* رنگ آیکون‌ها در CSS بعدی تنظیم می‌شود */
}

.search-result-card .header h3 {
    margin: 0;
    color: var(--secondary-color);
}

.search-result-card .body {
    padding: 20px;
    line-height: 1.8;
}

.search-result-card .body p {
    margin: 0 0 10px 0;
    color: var(--text-dark);
}

.search-result-card .body strong {
    color: #fff;
    margin-left: 8px;
}

.search-result-card .footer {
    padding: 15px 20px;
    background-color: rgba(0, 0, 0, 0.2);
    text-align: left;
}

/* فیلتر پیشرفته */
.advanced-filter-toggle {
    display: inline-block;
    color: var(--primary-color);
    cursor: pointer;
    margin-top: 15px;
    font-size: 0.9em;
    font-weight: 500;
}

.advanced-filter-toggle:hover {
    color: var(--secondary-color);
}

/* **MODIFIED**: Filters now in a widget card */
.advanced-filter-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
    margin-top: 20px;
    background-color: #2a2a2a;
    border-radius: 24px;
}

.advanced-filter-container.active {
    max-height: 700px;
    /* Increased height for more filters */
}

.advanced-filter-container .widget-header {
    cursor: pointer;
}

.advanced-filter-container .widget-content {
    padding: 25px;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.filter-grid .form-group {
    margin-bottom: 0;
}

.filter-grid .form-group label {
    font-size: 0.9em;
    color: var(--text-dark);
    margin-bottom: 8px;
}

/* جدول نتایج */
.search-results-table {
    width: 100%;
    margin-top: 20px;
}

.search-results-table td .service-icon {
    font-size: 1.2em;
    margin-right: 8px;
    color: var(--text-dark);
}

.search-results-table .service-icon.repair {
    color: #f0ad4e;
}

.search-results-table .service-icon.ticket {
    color: #5bc0de;
}

.search-results-table .service-icon.appointment {
    color: #5cb85c;
}

.search-results-table .service-icon.health_check {
    color: #d9534f;
}

.search-results-table .service-icon.purchase_eval {
    color: #f79433;
}

.search-results-table .service-icon.warranty {
    color: #337ab7;
}

.search-results-table .service-icon.sale {
    color: #ffffff;
}

.search-results-table .service-icon.service_request {
    color: #9a6bff;
}

/* ======== END: Advanced Search Center Styles ======== */





















































/* ======== START: "Khafan" IBAN Input Styles ======== */

.iban-input-wrapper {
    display: flex;
    align-items: center;
    gap: 5px;
    direction: ltr;
    /* IBAN always LTR */
    width: 100%;
}

.iban-prefix {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--text-dark);
    padding: 10px 5px;
}

.iban-input-container {
    display: grid;
    /* 6 columns of 4 digits */
    grid-template-columns: repeat(6, 1fr);
    gap: 5px;
    width: 100%;
}

.iban-input {
    width: 100%;
    min-width: 40px;
    /* For small screens */
    height: 55px;
    padding: 0.5rem !important;
    font-size: 1.2em !important;
    text-align: center !important;
    letter-spacing: 1px;
    /* Optional: adds spacing */
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 24px;
}

.iban-input:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.25rem rgba(247, 148, 51, 0.25);
    outline: none;
}

/* Bank Detector UI */
.bank-detector {
    display: none;
    /* Hidden by default */
    background-color: var(--background-dark);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 10px 15px;
    margin-top: 10px;
    text-align: right;
    animation: fadeIn 0.5s;
}

.bank-detector-logo {
    /* (We'll use text for now, logos are complex) */
    font-weight: bold;
    color: var(--primary-color);
}

.bank-detector-name {
    font-weight: 500;
    color: #fff;
    margin-right: 8px;
}

/* Responsive for the 6 boxes */
@media (max-width: 480px) {
    .iban-input-container {
        /* On small screens, 3 columns */
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .iban-input {
        font-size: 1.1em !important;
    }
}

/* ======== END: IBAN Input Styles ======== */






















/* ======== START: "Khafan" Activity Log Feed Styles ======== */
.activity-feed-wrapper {
    max-width: 900px;
    margin: 20px auto;
}

.feed-item {
    display: flex;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-left: 2px solid var(--border-color);
    /* The timeline line */
    margin-left: 20px;
    /* Space for the icon */
}

.feed-item:last-child {
    border-left: none;
    /* No line on the last item */
}

.feed-icon {
    position: absolute;
    right: -21px;
    /* (left in LTR) - Centered on the line */
    top: 42px;
    width: 40px;
    height: 40px;
    border-radius: 24px;
    background-color: var(--background-dark);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1em;
}

.feed-item.type-admin .feed-icon {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.feed-item.type-customer .feed-icon {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.feed-content {
    background-color: var(--background-light);
    border-radius: 24px;
    padding: 15px 20px;
    margin-right: 40px;
    /* (margin-left in LTR) */
    width: 100%;
    border: 1px solid var(--border-color);
}

.feed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.feed-user {
    font-weight: bold;
    color: #fff;
    font-size: 1.1em;
}

.feed-timestamp {
    font-size: 0.85em;
    color: var(--text-dark);
}

.feed-description {
    font-size: 0.95em;
    line-height: 1.7;
    color: var(--text-light);
}

/* Responsive for Mobile */
@media (max-width: 768px) {
    .feed-item {
        margin-left: 15px;
    }

    .feed-icon {
        right: -16px;
        width: 30px;
        height: 30px;
        font-size: 0.9em;
    }

    .feed-content {
        margin-right: 30px;
    }
}

/* ======== END: Activity Log Feed Styles ======== */



















/* ======== START: "Khafan" IBAN & Offer Rejection Styles ======== */

/* (استایل‌های .iban-input-wrapper, .iban-input-container, .bank-detector 
   که در مراحل قبلی اضافه کردیم، باید از قبل اینجا باشند) */

/* 1. New Offer Actions Layout */
.offer-box .offer-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* دو ستون برای "بله" و "نه" */
    gap: 20px;
    margin-top: 20px;
    text-align: right;
}

.action-accept {
    border-left: 1px solid var(--border-color);
    /* جداکننده عمودی */
    padding-left: 20px;
}

.action-reject h5 {
    color: var(--secondary-color);
    /* رنگ نارنجی برای "مخالفت" */
}

/* 2. Rejection Reason Checkboxes */
.rejection-reason-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rejection-reason-list li {
    display: block;
}

/* "Khafan" Checkbox Style */
.rejection-reason-list input[type="checkbox"] {
    display: none;
    /* مخفی کردن چک‌باکس پیش‌فرض */
}

.rejection-reason-list label {
    display: block;
    position: relative;
    padding-right: 35px;
    /* فاصله برای چک‌باکس سفارشی */
    cursor: pointer;
    font-size: 0.95em;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.rejection-reason-list label:hover {
    color: #fff;
}

/* ساخت چک‌باکس سفارشی */
.rejection-reason-list label::before {
    content: '';
    position: absolute;
    right: 0;
    top: 2px;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 24px;
    background-color: var(--background-dark);
    transition: all 0.3s ease;
}

/* ساخت تیک (Checkmark) */
.rejection-reason-list label::after {
    content: '\f00c';
    /* Font Awesome Check */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 4px;
    top: 3px;
    font-size: 0.9em;
    color: var(--secondary-color);
    transform: scale(0);
    opacity: 0;
    transition: all 0.3s ease;
}

.rejection-reason-list input[type="checkbox"]:checked+label::before {
    border-color: var(--secondary-color);
    background-color: var(--secondary-color);
}

.rejection-reason-list input[type="checkbox"]:checked+label::after {
    transform: scale(1);
    opacity: 1;
}

/* 3. Responsive for Offer Box */
@media (max-width: 768px) {
    .offer-box .offer-actions {
        grid-template-columns: 1fr;
        /* ستون‌ها در موبایل زیر هم */
    }

    .action-accept {
        border-left: none;
        padding-left: 0;
        border-bottom: 1px solid var(--border-color);
        /* جداکننده افقی */
        padding-bottom: 20px;
    }
}

/* ======== END: IBAN & Offer Rejection Styles ======== */





































































































































/* =========================================================== */
/* === FINAL DASHBOARD & MOBILE NAVIGATION STYLES (V-FINAL) === */
/* =========================================================== */

/* 1. تنظیمات کلی و حذف هدر در موبایل */
@media (max-width: 768px) {
    .customer-container>.landing-header {
        display: none !important;
        /* حذف هدر بالا در گوشی */
    }

    .dashboard-welcome {
        display: none !important;
        /* حذف پیام خوشامدگویی در گوشی برای خلوتی */
    }

    .page-content-wrapper {
        padding-top: 20px !important;
        /* حذف فاصله هدر */
        padding-bottom: 90px !important;
        /* فضا برای نویگیشن پایین */
    }

    /* چیدمان دو ستونی برای باکس‌های دسترسی سریع در موبایل */
    .service-box-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .service-box.small {
        margin: 0;
        height: 110px;
        /* ارتفاع ثابت برای زیبایی */
        justify-content: center;
    }

    .section-title-small {
        margin-top: 10px;
        margin-bottom: 15px;
        font-size: 1.1em;
    }

    .mb-margin {
        margin-bottom: 105px !important;
    }



}

.mb-margin {
    margin-bottom: 35px;
}

/* 2. نویگیشن بار پایین (Bottom Navigation) */
.bottom-nav {
    display: none;
    /* در PC مخفی */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(25, 25, 25, 0.98);
    /* رنگ پس‌زمینه بسیار تیره و شیک */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    justify-content: space-around;
    align-items: center;

    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .bottom-nav {
        display: flex;
    }
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #888;
    text-decoration: none;

    padding-left: 5px;
    padding-right: 5px;
    font-size: 0.75em;
    flex: 1;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bottom-nav-item i {
    font-size: 1.5em;
    margin-bottom: 6px;
    transition: transform 0.2s;
}



.bottom-nav-item.menu-active {
    color: #f79433;
    /* رنگ سفید برای وقتی منو باز است */
}

/* دکمه خانه (Home) برجسته و شناور */
.bottom-nav-home {
    transform: translateY(-30px);
    background: linear-gradient(135deg, var(--primary-color), #1a5c6b);
    color: #fff !important;
    width: 30px;
    height: 70px;
    border-radius: 24px;
    border: 3px solid #121212;
    /* همرنگ پس‌زمینه بادی سایت شما */
    box-shadow: 0 5px 15px rgba(36, 128, 145, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bottom-nav-home i {
    font-size: 1.8em;
    margin: 0;
}

.bottom-nav-home span {
    display: none;
}

/* متن خانه مخفی */

/* 3. منوی کشویی تمام صفحه (Overlay Menu) */
.mobile-overlay-menu {
    position: fixed;
    bottom: 70px;
    /* دقیقاً بالای نویگیشن بار */
    right: -120%;
    /* خارج از صفحه */
    width: 85%;
    max-width: 300px;
    height: calc(100% - 100px);
    /* فاصله از بالا و پایین */
    top: 15px;
    background: linear-gradient(160deg, #2a2a2a, #1a1a1a);
    border-radius: 24px;
    z-index: 999;
    transition: right 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-overlay-menu.active {
    right: 0;
}

/* پس‌زمینه تاریک پشت منو */
.menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.menu-backdrop.active {
    display: block;
    opacity: 1;
}

/* محتویات منو */
.mobile-menu-user-card {
    background: linear-gradient(90deg, rgba(36, 128, 145, 0.2), transparent);
    padding: 25px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-user-avatar {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    box-shadow: 0 0 15px rgba(36, 128, 145, 0.4);
}

.mobile-user-info h4 {
    margin: 0;
    color: #fff;
    font-size: 1em;
}

.mobile-user-info span {
    font-size: 0.8em;
    color: #aaa;
}

.mobile-menu-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    color: #e0e0e0;
    text-decoration: none;
    font-size: 1em;
    border-radius: 24px;
    margin-bottom: 5px;
    transition: all 0.2s;
}

.mobile-menu-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    transform: translateX(-5px);
}

.mobile-menu-link i {
    width: 25px;
    text-align: center;
    color: #f79433;
}

.mobile-menu-link:hover i {
    color: var(--primary-color);
}

.mobile-menu-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-menu-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    background: rgba(220, 53, 69, 0.15);
    color: #ff6b6b;
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 24px;
    text-decoration: none;
    font-weight: 500;


    margin-bottom: 25px;
}

.product-option-btn i {
    color: #f79433;
}

/* 4. مودال انتخاب محصول (Product Modal) */
.product-select-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-select-modal.show {
    opacity: 1;
}

.product-select-content {
    background: linear-gradient(145deg, #2e2e2e, #1a1a1a);
    border-radius: 24px;
    padding: 30px;
    width: 100%;
    max-width: 380px;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.product-select-modal.show .product-select-content {
    transform: scale(1);
}

.product-select-header h3 {
    margin-top: 0;
    color: #fff;
    margin-bottom: 25px;
}

.product-select-header .close-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 2em;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    line-height: 0.8;
}

.product-option-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
}

.product-option-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

/* =========================================================== */




































/* ======== START: Sidebar Notification Badges ======== */

/* استایل خود بج (دایره قرمز) */
.notif-badge {
    background: #248091;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 24px;
    margin-right: 10px;
    /* هل دادن به سمت چپ در RTL */
    box-shadow: 0 4px 10px #248091;
    min-width: 20px;
    text-align: center;
    line-height: 1.5;

    /* انیمیشن تپش برای جلب توجه */
    animation: badge-pulse 2s infinite;
}

/* تنظیم لینک‌های سایدبار برای قرارگیری بج */
.sidebar-nav ul li a {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    /* فاصله انداختن بین متن و بج */
}

/* نگهدارنده متن و آیکون (برای اینکه سمت راست بمانند) */
.sidebar-nav-text {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* تعریف انیمیشن تپش */
@keyframes badge-pulse {
    0% {
        box-shadow: 0 0 0 0 #85b9c3;
        transform: scale(1);
    }

    70% {
        box-shadow: 0 0 0 6px #85b9c3;
        transform: scale(1.05);
    }

    100% {
        box-shadow: 0 0 0 0 #85b9c3;
        transform: scale(1);
    }
}

.table-responsive {
    border-radius: 24px;
}

/* ======== END: Sidebar Notification Badges ======== */



.sidebar-nav li a {
    margin: 0px !important;
}





























.chat-box {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: 500px;
    overflow-y: auto;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 24px;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.chat-message {
    display: flex;
    flex-direction: column;
    max-width: 75%;
    position: relative;
    padding: 15px;
    border-radius: 24px;
    line-height: 1.6;
}

.chat-message.customer {
    align-self: flex-start;
    /* چپ چین (یا راست چین در فارسی) */
    background-color: var(--background-light);
    border: 1px solid var(--border-color);
    border-bottom-right-radius: 2px;
    /* گوشه تیز */
}

.chat-message.admin {
    align-self: flex-end;
    /* سمت مقابل */
    background: linear-gradient(135deg, var(--primary-color), #1a5c6b);
    color: #fff;
    border-bottom-left-radius: 2px;
}

.msg-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.85em;
    opacity: 0.8;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 5px;
}

.chat-message.customer .msg-header {
    color: var(--text-dark);
    border-color: var(--border-color);
}

.chat-message.admin .msg-header {
    color: #eee;
}

.msg-body {
    font-size: 0.95em;
    white-space: pre-line;
}















































@keyframes btn-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7);
        transform: scale(1);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 193, 7, 0);
        transform: scale(1.05);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
        transform: scale(1);
    }
}

.action-btn.pulse {
    animation: btn-pulse 1.5s infinite;
    background-color: #ffc107 !important;
    /* رنگ زرد/نارنجی */
    color: #000 !important;
    border-color: #ffc107 !important;
    font-weight: bold;
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 20px;
}

.pagination a,
.pagination span {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    background-color: var(--background-light);
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s;
}

.pagination a:hover {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.pagination .active {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    font-weight: bold;
}

.pagination .disabled {
    opacity: 0.5;
    cursor: not-allowed;
}







































/* ========================================= */
/* === FINAL ULTRA UI: Animations & Glow === */
/* ========================================= */

/* 1. انیمیشن‌های پایه */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 215, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

/* کلاس‌های انیمیشن */
.animate-up {
    opacity: 0;
    /* مخفی قبل از لود */
    animation: fadeInUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
}

.floating-icon {
    animation: float 4s ease-in-out infinite;
}

/* 2. تایپوگرافی و گرادینت‌ها */
.text-gradient-gold {
    background: linear-gradient(to right, #FFD700, #FDB931, #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: shimmer 3s linear infinite;
    font-weight: 800;
}

.text-gradient-primary {
    background: linear-gradient(to right, #4facfe 0%, #00f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

/* 3. کارت‌های ویجت (ارتقا یافته) */
.widget-card {
    background: rgba(30, 30, 30, 0.6);
    /* شیشه‌ای تیره */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    overflow: hidden;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.widget-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.15);
}

.widget-header {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
    padding: 18px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.widget-header h2 {
    font-size: 1.1em;
    letter-spacing: 0.5px;
}

/* 4. کارت‌های خدمات هدیه (خیلی خفن) */
.gift-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.gift-service-card {
    background: linear-gradient(145deg, #252525, #1a1a1a);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 24px;
    padding: 20px 10px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.gift-service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.15);
    border-color: rgba(255, 215, 0, 0.8);
}

.gift-service-card .gift-icon {
    font-size: 2.8em;
    margin-bottom: 12px;
    background: linear-gradient(to bottom right, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
    transition: transform 0.4s;
}

.gift-service-card:hover .gift-icon {
    transform: scale(1.2) rotate(10deg);
}

.gift-badge {
    background: linear-gradient(90deg, #FFD700, #FFA500);
    color: #000;
    font-size: 0.65em;
    padding: 4px 10px;
    border-bottom-left-radius: 12px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
}

/* 5. کارت‌های گارانتی */
.warranty-box {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 24px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
}

.warranty-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.warranty-box.active::before {
    background: #28a745;
    box-shadow: 0 0 10px #28a745;
}

.warranty-box.expired::before {
    background: #dc3545;
    box-shadow: 0 0 10px #dc3545;
}

.w-icon {
    font-size: 2.2em;
    margin-bottom: 10px;
    display: inline-block;
}

.active .w-icon {
    color: #28a745;
    filter: drop-shadow(0 0 5px rgba(40, 167, 69, 0.4));
}

.expired .w-icon {
    color: #dc3545;
    filter: drop-shadow(0 0 5px rgba(220, 53, 69, 0.4));
}

/* 6. دکمه‌های دسترسی سریع (نئونی) */
.action-btn-large {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    color: #e0e0e0;
    font-weight: 600;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.action-btn-large::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: 0.5s;
}

.action-btn-large:hover::after {
    left: 100%;
}

.action-btn-large:hover {
    background: rgba(36, 128, 145, 0.15);
    border-color: var(--primary-color);
    color: #fff;
    transform: scale(1.02);
}

.action-btn-large i {
    font-size: 1.4em;
    color: var(--secondary-color);
}


/* هدر دسکتاپ جدید */
.desktop-header-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1020;
    background: var(--background-dark);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.desktop-main-header {
    max-width: 1300px;
    margin: 0 auto;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-brand h2 {
    margin: 0;
    color: #fff;
    font-size: 1.3em;
    font-weight: 700;
}

.header-brand i {
    font-size: 1.8em;
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 25px;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ccc;
    font-size: 0.95em;
}

.header-user strong {
    color: #fff;
}

.header-btn {
    text-decoration: none;
    color: #aaa;
    font-size: 1em;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-btn:hover {
    color: #fff;
}

.header-btn.logout {
    color: var(--red);
}

/* لی‌اوت و گرید */
.page-content-wrapper {
    padding-bottom: 110px;
    max-width: 1300px;
    margin: 0 auto;
}

.product-hub-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
    align-items: flex-start;
}

/* کارت‌ها */
.widget-card {
    background: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    overflow: hidden;
}

.widget-header {
    background: rgba(0, 0, 0, 0.25);
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.widget-header h2 {
    margin: 0;
    font-size: 1.1em;
    color: #fff;
    font-weight: 600;
}

.widget-header i {
    color: var(--primary-color);
    font-size: 1.2em;
}

.widget-content {
    padding: 20px;
}

/* گارانتی */
.warranty-grid-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.warranty-box {
    background: var(--background-dark);
    border-radius: 24px;
    padding: 15px;
    border: 1px solid var(--border-color);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.warranty-box.active {
    border-bottom: 4px solid var(--green);
}

.warranty-box.expired {
    border-bottom: 4px solid var(--red);
}

.w-icon {
    font-size: 2em;
    margin-bottom: 10px;
    display: block;
}

.active .w-icon {
    color: var(--green);
}

.expired .w-icon {
    color: var(--red);
}

.w-label {
    font-weight: bold;
    color: #fff;
    font-size: 1em;
}

.w-date {
    font-size: 0.85em;
    color: #aaa;
    margin-top: 5px;
    display: block;
}

/* خدمات هدیه */
.gift-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.gift-service-card {
    background: linear-gradient(145deg, #2a2a2a, #1f1f1f);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 24px;
    padding: 20px 10px;
    text-align: center;
    transition: transform 0.3s;
}

.gift-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.15);
}

.gift-icon {
    font-size: 2.2em;
    color: #FFD700;
    margin-bottom: 10px;
}

.gift-title {
    font-size: 0.85em;
    color: #fff;
}

.gift-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #FFD700;
    color: #000;
    font-size: 0.6em;
    padding: 2px 6px;
    border-bottom-left-radius: 8px;
    font-weight: bold;
}

/* سایر */
.action-btn-large {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    background-color: var(--background-dark);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    color: #fff;
    text-decoration: none;
    margin-bottom: 10px;
    transition: 0.3s;
}

.action-btn-large:hover {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
    .desktop-header-wrapper {
        display: none !important;
    }

    .page-content-wrapper {
        padding-top: 20px !important;
    }

    .product-hub-grid {
        grid-template-columns: 1fr;
    }

    .hub-sidebar-column {
        display: flex;
        flex-direction: column-reverse;
    }

    .warranty-grid-main {
        grid-template-columns: 1fr;
    }
}


.text-muted {
    color: #ccc !important;
}



.sales_list {
    padding-top: 90px !important;
    padding-left: 10px;
    padding-right: 10px;
}


















































































/* ======== START: Premium Product List Styles ======== */

.sales-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    /* کارت‌های عریض‌تر */
    gap: 25px;
    margin-top: 25px;

}

.sale-card {
    background: linear-gradient(145deg, #1a1a1a, #222);
    border-radius: 24px;
    padding: 25px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* افکت فنری */
    display: flex;
    flex-direction: column;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.6s ease backwards;
}

/* تاخیر انیمیشن برای هر کارت (به صورت دستی در PHP اعمال می‌شود) */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sale-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(255, 215, 0, 0.4);
    /* طلایی */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 215, 0, 0.1);
}

/* نوار رنگی بالا */
.sale-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--secondary-color), #ffb700);
    opacity: 0.7;
}

.sale-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 15px;
}

.sale-icon-box {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, rgba(247, 148, 51, 0.2), rgba(255, 183, 0, 0.1));
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    color: #FFD700;
    border: 2px solid rgba(255, 215, 0, 0.2);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.1);
    transition: transform 0.4s;
}

.sale-card:hover .sale-icon-box {
    transform: rotate(10deg) scale(1.1);
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
}

.sale-info h3 {
    margin: 0 0 5px 0;
    font-size: 1.3em;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.tracking-badge {
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 24px;
    font-size: 0.85em;
    color: #aaa;
    display: inline-block;
}

.tracking-badge strong {
    color: var(--secondary-color);
    letter-spacing: 1px;
}

.sale-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.info-group label {
    display: block;
    font-size: 0.8em;
    color: #888;
    margin-bottom: 5px;
}

.info-group span {
    font-size: 1em;
    color: #e0e0e0;
    font-weight: 500;
}

.info-group i {
    margin-left: 5px;
    color: var(--primary-color);
}

.sale-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    padding: 10px 15px;
    border-radius: 24px;
}

.warranty-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85em;
    font-weight: bold;
}

.warranty-tag i {
    font-size: 1.2em;
}

.view-btn {
    font-size: 0.9em;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.2s;
}

.sale-card:hover .view-btn {
    gap: 10px;
    color: var(--secondary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .sales-grid {
        grid-template-columns: 1fr;
    }

    .sale-card {
        padding: 20px;
    }

    .sale-icon-box {
        width: 55px;
        height: 55px;
        font-size: 1.6em;
    }
}

/* ======== END: Premium Product List Styles ======== */




@media (max-width: 768px) {

    .sales_list {
        padding-top: 0px !important;
    }
}



















































/* Page Layout */
.page-content-wrapper {
    padding-bottom: 110px;
    max-width: 1300px;
    margin: 0 auto;





}

/* Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

/* Card Style */
.service-plan-card {
    background: linear-gradient(145deg, #1e1e1e, #121212);

    border-radius: 24px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.service-plan-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 215, 0, 0.6);
}

/* Header Stripe */
.service-plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #FFD700, #FFA500);
}

.plan-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 15px;
}

.plan-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    color: #FFD700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.1);
}

.plan-info h3 {
    margin: 0;
    color: #fff;
    font-size: 1.1em;
}

.plan-info span {
    color: #aaa;
    font-size: 0.85em;
}

.plan-info strong {
    color: var(--secondary-color);
}

.plan-body {
    padding: 20px;
    flex: 1;
}

.plan-timer {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 24px;
    padding: 10px;
    text-align: center;
    margin-bottom: 20px;
    color: #ccc;
    font-size: 0.9em;
}

.plan-timer strong {
    color: var(--green);
    font-size: 1.1em;
}

.gift-items-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.gift-mini-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 12px;
    border-radius: 24px;
    font-size: 0.8em;
    color: #ddd;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gift-mini-item i {
    color: #FFD700;
}

.plan-footer {
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    text-align: center;
}

.btn-reserve {
    display: block;
    width: 100%;
    padding: 12px;
    background: #2ca0b4;
    color: #000;
    font-weight: bold;
    border-radius: 24px;
    text-decoration: none;
    transition: 0.3s;
}

.btn-reserve:hover {
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .desktop-header-wrapper {
        display: none;
    }

    .page-content-wrapper {
        padding-top: 20px !important;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}


















































































/* انیمیشن‌ها */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-btn {
    0% {
        box-shadow: 0 0 0 0 rgba(36, 128, 145, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(36, 128, 145, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(36, 128, 145, 0);
    }
}

.animate-card {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}




/* کارت‌های نوبت */
.appt-list-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.appt-card {
    background: #1e1e1e;

    border-radius: 24px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.appt-card:hover {
    transform: translateX(-5px);
    border-color: var(--secondary-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* نوار وضعیت کناری */
.appt-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
}

.appt-card.pending::before {
    background: #ffc107;
}

.appt-card.confirmed::before {
    background: #28a745;
}

.appt-card.canceled::before {
    background: #dc3545;
}

.appt-card.completed::before {
    background: #6c757d;
}

/* باکس تاریخ */
.appt-date-box {
    background: var(--background-dark);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 10px 15px;
    text-align: center;
    min-width: 80px;
}

.appt-day {
    font-size: 1.6em;
    font-weight: 800;
    color: var(--primary-color);
    display: block;
    line-height: 1;
}

.appt-month {
    font-size: 0.85em;
    color: #aaa;
    margin-top: 3px;
    display: block;
}

/* اطلاعات */
.appt-info {
    flex: 1;
}

.appt-service {
    font-size: 1.1em;
    color: #fff;
    margin-bottom: 8px;
    font-weight: 600;
}

.appt-meta {
    font-size: 0.9em;
    color: #888;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.appt-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.appt-meta i {
    color: var(--secondary-color);
}

/* وضعیت */
.appt-status-badge {
    padding: 6px 12px;
    border-radius: 24px;
    font-size: 0.85em;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 6px;
}

.appt-status-badge.pending {
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
}

.appt-status-badge.confirmed {
    background: rgba(40, 167, 69, 0.15);
    color: #28a745;
}

.appt-status-badge.canceled {
    background: rgba(220, 53, 69, 0.15);
    color: #dc3545;
}

.appt-status-badge.completed {
    background: rgba(108, 117, 125, 0.15);
    color: #aaa;
}

@media (max-width: 768px) {
    .desktop-header-wrapper {
        display: none !important;
    }

    .page-content-wrapper {
        padding-top: 20px !important;
        padding-bottom: 110px !important;
    }

    .appt-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .appt-date-box {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: 100%;
        padding: 8px;
    }

    .appt-day {
        font-size: 1.3em;
    }

    .appt-status-badge {
        width: 100%;
        justify-content: center;
        margin-top: 5px;
    }
}





































/* ======== START: Gift Services Checkbox Styles ======== */
.gift-services-container {
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 25px;
    margin-top: 30px;
    position: relative;
}

.gift-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.gift-header-row h3 {
    margin: 0;
    color: #FFD700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-select-all {
    background: rgba(255, 215, 0, 0.1);
    color: #FFD700;
    border: 1px solid #FFD700;
    padding: 5px 15px;
    border-radius: 24px;
    font-size: 0.85em;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-select-all:hover {
    background: #FFD700;
    color: #000;
}

.gift-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

/* استایل آیتم‌ها */
.gift-checkbox-item input[type="checkbox"] {
    display: none;
}

.gift-card-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--background-light);
    border: 2px solid var(--border-color);
    border-radius: 24px;
    padding: 20px 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    height: 130px;
    user-select: none;
}

.gift-card-label:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.gift-card-icon {
    font-size: 2.5em;
    color: var(--text-muted);
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.gift-card-text {
    font-size: 0.95em;
    font-weight: 600;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

/* حالت انتخاب شده */
.gift-checkbox:checked+.gift-card-label {
    background: linear-gradient(145deg, #2e2e2e, #1a1a1a);
    border-color: #FFD700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.gift-checkbox:checked+.gift-card-label .gift-card-icon {
    color: #FFD700;
    transform: scale(1.1);
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
}

.gift-checkbox:checked+.gift-card-label .gift-card-text {
    color: #fff;
}

.gift-checkbox:checked+.gift-card-label::after {
    content: '\f00c';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 10px;
    right: 10px;
    color: #FFD700;
    font-size: 1.1em;
}

/* ======== END: Gift Services Checkbox Styles ======== */






























































/* --- Animations --- */
@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-gold {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(255, 215, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
    }
}

/* --- Wizard Steps --- */
.wizard-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
    position: relative;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.wizard-steps::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 0;
    width: 100%;
    height: 4px;
    background: #333;
    z-index: -1;
    border-radius: 24px;
}

.step-item {
    padding: 0 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}

.step-circle {
    width: 50px;
    height: 50px;
    background: #222;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #666;
    font-size: 1.2em;
    margin-bottom: 10px;
    transition: 0.4s;
    border: 3px solid #222;
}

.step-item.active .step-circle {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 0 20px rgba(36, 128, 145, 0.6);
    transform: scale(1.1);
}

.step-item.completed .step-circle {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
}

.step-label {
    font-size: 0.9em;
    color: #666;
    font-weight: 600;
    transition: 0.3s;
}

.step-item.active .step-label {
    color: #fff;
}

/* --- 1. Services (ULTRA CARD STYLE) --- */
.services-grid-ultra {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.service-item input {
    display: none;
}

.service-card-ultra {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 24px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

/* Hover Effect */
.service-card-ultra:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.3);
}

.svc-icon-box {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5em;
    color: #888;
    margin-bottom: 20px;
    transition: 0.4s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.svc-title {
    font-size: 1.1em;
    font-weight: bold;
    color: #ddd;
    margin-bottom: 10px;
    transition: 0.3s;
}

.svc-desc {
    font-size: 0.85em;
    color: #777;
    line-height: 1.6;
}

/* Selected State */
.service-item input:checked+.service-card-ultra {
    border-color: var(--secondary-color);
    background: linear-gradient(145deg, rgba(247, 148, 51, 0.15), rgba(0, 0, 0, 0));
    box-shadow: 0 0 25px rgba(247, 148, 51, 0.2);
}

.service-item input:checked+.service-card-ultra .svc-icon-box {
    color: #000;
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 0 20px rgba(247, 148, 51, 0.5);
}

.service-item input:checked+.service-card-ultra .svc-title {
    color: #fff;
}

/* Free Service (Gold Theme) */
.service-item.is-free input:checked+.service-card-ultra {
    border-color: #FFD700;
    background: linear-gradient(145deg, rgba(255, 215, 0, 0.15), rgba(0, 0, 0, 0));
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.2);
}

.service-item.is-free input:checked+.service-card-ultra .svc-icon-box {
    background: #FFD700;
    color: #000;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}


/* --- 2. Date Picker (Modern) --- */
.date-slider-wrapper {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 10px 5px 25px 5px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.date-slider-wrapper::-webkit-scrollbar {
    display: none;
}

.date-label input {
    display: none;
}

.date-card-modern {
    min-width: 110px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 20px 10px;
    text-align: center;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.date-card-modern:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.d-day-name {
    font-size: 0.9em;
    color: #aaa;
    margin-bottom: 8px;
    display: block;
}

.d-date-num {
    font-size: 1.4em;
    font-weight: 800;
    color: #fff;
    display: block;
}

.d-status {
    font-size: 0.75em;
    margin-top: 8px;
    color: #ff6b6b;
    display: block;
    font-weight: bold;
}

/* Selected Date */
.date-label input:checked+.date-card-modern {
    background: #f79433;
    border-color: #f79433;

    transform: scale(1.05);
}

.date-label input:checked+.date-card-modern * {
    color: #fff !important;
}

/* Disabled Date */
.date-label.disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.date-label.disabled .date-card-modern {
    background: rgba(220, 53, 69, 0.05);
    border-color: rgba(220, 53, 69, 0.2);
}

/* --- 3. Time Banner (Static) --- */
.time-static-banner {
    background: linear-gradient(90deg, #1a5c6b, #248091);
    border-radius: 24px;
    padding: 25px;
    text-align: center;
    margin-top: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(36, 128, 145, 0.2);
}

.time-static-banner h4 {
    margin: 0 0 10px 0;
    font-size: 1.1em;
    color: #fff;
}

.time-static-banner .time-big {
    font-size: 2.2em;
    font-weight: 800;
    color: #fff;
    letter-spacing: 2px;
}

.time-static-banner i {
    font-size: 4em;
    position: absolute;
    right: -10px;
    bottom: -10px;
    opacity: 0.1;
    transform: rotate(-20deg);
}

/* Navigation Buttons */
.wizard-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
}

.btn-next {
    background: #f79433;
    color: #fff;
    padding: 15px 40px;
    border-radius: 24px;
    border: none;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn-prev {
    background: transparent;
    color: #aaa;
    padding: 15px 30px;
    border-radius: 24px;
    border: 1px solid #444;
    cursor: pointer;
    transition: 0.3s;
}

.btn-next:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(247, 148, 51, 0.4);
}

.btn-prev:hover {
    border-color: #fff;
    color: #fff;
}

/* Visibility */
.step-content {
    display: none;
    animation: slideUpFade 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.step-content.active {
    display: block;
}

@media (max-width: 768px) {
    .booking-wrapper {
        margin-top: 20px !important;
        margin-bottom: 100px !important;
        padding: 0 15px;
    }

    .services-grid-ultra {
        grid-template-columns: 1fr;
    }

    .service-card-ultra {
        flex-direction: row;
        text-align: right;
        min-height: auto;
        padding: 20px;
    }

    .svc-icon-box {
        margin-bottom: 0;
        width: 60px;
        height: 60px;
        font-size: 1.5em;
    }



    .date-slider-wrapper {
        gap: 10px;
    }

    .service-content {
        padding-right: 10px;
    }

    .service-card-ultra {
        padding-left: 10px;
        padding-right: 10px;
        padding-top: 20px;
        padding-bottom: 10px;
    }



}





































































/* انیمیشن‌ها */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 210, 211, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(0, 210, 211, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 210, 211, 0);
    }
}

.animate-up {
    animation: fadeInUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
}

.delay-1 {
    animation-delay: 0.1s;
}

/* دکمه ثبت رزرو */
.btn-new-booking {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background:#f79433;
    color: #fff;
    padding: 18px;
    border-radius: 24px;
    font-size: 1.1em;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.3s;
    margin-bottom: 40px;

   margin-top: 20px;

}

.btn-new-booking:hover {
    transform: translateY(-3px) scale(1.02);
    color: #fff;
    box-shadow: 0 6px 20px rgba(247, 148, 51, 0.4);
}

.new-booking{
    float: left;
    width:  fit-content;
}

/* لیست نوبت‌ها */
.appt-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}



.appt-card:hover {
    border-color: var(--primary-color);
    transform: translateX(-5px);
    background: rgba(255, 255, 255, 0.03);
}

/* نوار وضعیت کناری */
.appt-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 5px;
    height: 100%;
}

.appt-card.pending::before {
    background: #ffc107;
}

.appt-card.confirmed::before {
    background: #28a745;
}

.appt-card.canceled::before {
    background: #dc3545;
}

.appt-card.completed::before {
    background: #6c757d;
}

/* باکس تاریخ */
.appt-date-box {
    background: var(--background-dark);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 10px 15px;
    text-align: center;
    min-width: 80px;
}

.appt-day {
    font-size: 1.5em;
    font-weight: 800;
    color: var(--primary-color);
    display: block;
    line-height: 1;
}

.appt-month {
    font-size: 0.8em;
    color: #aaa;
    margin-top: 3px;
    display: block;
}

/* اطلاعات */
.appt-info {
    flex: 1;
}

.appt-service {
    font-size: 1.05em;
    color: #fff;
    margin-bottom: 6px;
    font-weight: 600;
    line-height: 1.5;
}

.appt-meta {
    font-size: 0.85em;
    color: #888;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.appt-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.appt-meta i {
    color: var(--secondary-color);
}

/* بج وضعیت */
.status-badge-pill {
    padding: 6px 12px;
    border-radius: 24px;
    font-size: 0.8em;
    font-weight: bold;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-badge-pill.pending {
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
}

.status-badge-pill.confirmed {
    background: rgba(40, 167, 69, 0.15);
    color: #28a745;
}

.status-badge-pill.canceled {
    background: rgba(220, 53, 69, 0.15);
    color: #dc3545;
}

.status-badge-pill.completed {
    background: rgba(108, 117, 125, 0.15);
    color: #aaa;
}

@media (max-width: 768px) {
    .desktop-header-wrapper {
        display: none !important;
    }

    .page-content-wrapper {
        padding-top: 20px !important;
        padding-bottom: 110px !important;
    }

    .appt-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .appt-date-box {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        justify-content: center;
        padding: 8px;
    }

    .appt-day {
        font-size: 1.3em;
    }

    .status-badge-pill {
        margin-top: 5px;
        width: 100%;
        justify-content: center;
    }
}

























/* لایه بندی حیاتی */
.desktop-header-wrapper {
    z-index: 1020;
}

.bottom-nav {
    z-index: 20000;
}

/* استایل مودال‌های نویگیشن (با کلاس و آیدی جدید) */
.nav-custom-modal {
    display: none;
    /* پیش‌فرض مخفی */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    /* پس‌زمینه تاریک */
    z-index: 99999 !important;
    /* بالاتر از همه چیز */
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-custom-modal.active {
    display: flex !important;
    opacity: 1;
}

.nav-modal-content {
    background: linear-gradient(145deg, #252525, #1a1a1a);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 25px;
    width: 90%;
    max-width: 340px;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.nav-custom-modal.active .nav-modal-content {
    transform: scale(1);
}

.nav-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

.nav-modal-header h3 {
    margin: 0;
    color: #fff;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-close-btn {
    background: none;
    border: none;
    color: #aaa;
    font-size: 2em;
    line-height: 0.5;
    cursor: pointer;
}

.nav-modal-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nav-option-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    color: #fff;
    text-decoration: none;
    transition: all 0.2s;
}

.nav-option-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(-3px);
    border-color: var(--primary-color);
}

.nav-option-btn span {
    font-size: 0.95em;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-option-btn i.main-icon {
    font-size: 1.3em;
}

/* استایل منوی موبایل */
.nav-mobile-overlay {
    z-index: 20000 !important;
}

/* بالاتر از هدر */

/* اکتیو بودن دکمه‌های پایین */
.bottom-nav-item.active i {
    transform: translateY(-3px);
    filter: drop-shadow(0 0 5px var(--primary-color));
}
















































































/* Global */
body {
    color: #fff;
    font-family: 'Vazirmatn';
    overflow-x: hidden;
}

.booking-wrapper {
    max-width: 1300px;
    margin: 110px auto 50px;
    padding: 0 20px;
}

/* Wizard */
.wizard-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
    position: relative;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.wizard-steps::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 0;
    width: 100%;
    height: 4px;
    background: #333;
    z-index: -1;
    border-radius: 24px;
}

.step-item {
    padding: 0 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}

#step-ind-warranty,
#step-ind-insurance {
    display: none;
}

#step-ind-warranty.visible,
#step-ind-insurance.visible {
    display: flex;
}

.step-circle {
    width: 50px;
    height: 50px;
    background: #222;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #666;
    font-size: 1.2em;
    margin-bottom: 10px;
    transition: 0.4s;
    border: 3px solid #222;
}

.step-item.active .step-circle {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 0 15px var(--primary-color);
    transform: scale(1.1);
}

.step-item.completed .step-circle {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
}

.step-label {
    font-size: 0.9em;
    color: #666;
    font-weight: 600;
    transition: 0.3s;
}

.step-item.active .step-label {
    color: #fff;
}

/* Services Grid */
.services-grid-ultra {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    align-items: start;
}

.service-item input {
    display: none;
}

.service-card-ultra {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 24px;
    padding: 20px;
    text-align: right;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card-ultra:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.06);
}

/* Header of Card */
.card-header-flex {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.svc-icon-box {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    color: #888;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    transition: 0.3s;
}

.svc-title {
    font-size: 1.2em;
    font-weight: bold;
    color: #ddd;
    margin: 0 0 5px 0;
}

.svc-desc {
    font-size: 0.9em;
    color: #777;
    margin: 0;
    line-height: 1.4;
}

/* Checked State */
.service-item input:checked+.service-card-ultra {
    background: linear-gradient(145deg, rgba(247, 148, 51, 0.1), rgba(0, 0, 0, 0));
    box-shadow: 0 5px 25px rgba(247, 148, 51, 0.15);
}

.service-item input:checked+.service-card-ultra .svc-icon-box {
    color: #000;
    transform: scale(1.1);
}

.service-item input:checked+.service-card-ultra .svc-title {
    color: #fff;
}

/* Free Service */
.service-item.is-free input:checked+.service-card-ultra {
    border-color: #FFD700;
    background: linear-gradient(145deg, rgba(255, 215, 0, 0.15), rgba(0, 0, 0, 0));
}

.service-item.is-free input:checked+.service-card-ultra .svc-icon-box {
    background: #FFD700;
    color: #000;
}

.free-ribbon {
    position: absolute;
    top: 15px;
    left: -30px;
    background: #FFD700;
    color: #000;
    padding: 5px 42px;
    transform: rotate(-45deg);
    font-size: 0.7em;
    font-weight: bold;
    z-index: 2;
}

/* Inline Details (Always Visible) */
.service-details-inline {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9em;
    line-height: 1.8;
    color: #ccc;
}

.result-box {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 24px;
    margin-top: 15px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    font-size: 0.9em;
}

/* Forms */
.warranty-form-card {
    background: #1e1e1e;
  
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.form-label {
    color: #ccc;
    margin-bottom: 8px;
    display: block;
    font-size: 0.9em;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    color: #fff;
    transition: 0.3s;
}

.form-input:focus {
    border-color: #FFD700;
    background: rgba(255, 255, 255, 0.08);
    outline: none;
}

/* Uploads */
.upload-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.upload-box {
    background: rgba(255, 255, 255, 0.03);
    border: 2px dashed #444;
    border-radius: 24px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
    height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.upload-box:hover {
    border-color: var(--secondary-color);
    background: rgba(0, 210, 211, 0.05);
}

.upload-box input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

.upload-label {
    font-size: 0.9em;
    color: #aaa;
    margin-top: 10px;
    display: block;
}

.upload-icon {
    font-size: 2em;
    color: #666;
}

.file-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    z-index: 5;
    border-radius: 24px;
}

.upload-progress {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    display: none;
    z-index: 6;
}

.upload-progress .bar {
    height: 100%;
    background: var(--secondary-color);
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 24px;
}

.upload-counter {
    text-align: center;
    margin-top: 25px;
    font-size: 1.1em;
    color: #ccc;
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 24px;
    border: 1px solid #444;
    transition: 0.3s;
}

.upload-counter.complete {
    border-color: var(--green);
    color: var(--green);
    background: rgba(40, 167, 69, 0.1);
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.2);
}

@keyframes shakeError {
    0% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-10px);
    }

    40% {
        transform: translateX(10px);
    }

    60% {
        transform: translateX(-10px);
    }

    80% {
        transform: translateX(10px);
    }

    100% {
        transform: translateX(0);
    }
}

.shake-box {
    animation: shakeError 0.5s ease-in-out;
    border-color: #ff4757 !important;
    box-shadow: 0 0 15px rgba(255, 71, 87, 0.3) !important;
}

/* Date & Nav */
.date-slider-wrapper {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 5px 25px 5px;
    scrollbar-width: none;
}

.date-label input {
    display: none;
}

.date-card-modern {
    min-width: 110px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 20px 10px;
    text-align: center;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
}

.date-card-modern:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.date-label input:checked+.date-card-modern {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(36, 128, 145, 0.4);
    transform: scale(1.05);
}

.date-label input:checked+.date-card-modern * {
    color: #fff !important;
}

.date-label.disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.time-static-banner {
    background: linear-gradient(90deg, #1a5c6b, #248091);
    border-radius: 24px;
    padding: 25px;
    text-align: center;
    margin-top: 30px;
    box-shadow: 0 10px 30px rgba(36, 128, 145, 0.2);
}

.wizard-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}



.btn-prev {
    background: transparent;
    color: #aaa;
    padding: 15px 30px;
    border-radius: 24px;
    border: 1px solid #444;
    cursor: pointer;
    transition: 0.3s;
}

.step-content {
    display: none;
    animation: slideUpFade 0.6s;
}

.step-content.active {
    display: block;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {

    .warranty-form-card {
        padding: 15px;
    }


    .form-label {
        margin-top: 15px;
    }

    .wizard-nav {
        margin-bottom: 50px;
    }

    .form-grid {
        display: block;
    }

    .services-grid-ultra {
        grid-template-columns: 1fr;
    }

    .upload-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.svc-title {
    font-family: 'Vazirmatn';
}

.service-item p {
    font-family: 'Vazirmatn';
}

span {
    font-family: 'Vazirmatn';
}

.booking-highlight {
    font-weight: bold;
    color: white;
}

.result-box {
    font-family: 'Vazirmatn';

}

.booking-strong {
    font-weight: bold;
    color: white;
}

.form-label {
    font-family: 'Vazirmatn';
}

.alert {
    font-family: 'Vazirmatn';
}

/* تنظیمات کلی کانتینر */
.details-wrapper {
    max-width: 1300px;
    margin: 0 auto;
    padding: 110px 0px 50px 0px;
}

.details-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: flex-start;
}

/* Hero Card (Status) */
.status-hero-card {
    border-radius: 24px;
    padding: 56px 30px;
    text-align: center;
    margin-bottom: 30px;
    border: 2px solid;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.status-hero-card i.bg-icon {
    position: absolute;
    right: -30px;
    bottom: -30px;
    font-size: 10em;
    opacity: 0.08;
    transform: rotate(-15deg);
}

.status-hero-title {
    font-size: 2em;
    font-weight: 900;
    margin-bottom: 10px;
    display: block;
    letter-spacing: -1px;
}

.status-hero-desc {
    font-size: 1.1em;
    opacity: 0.9;
    font-weight: 300;
}

/* Info Cards */
.info-card {
    background: #1e1e1e;

    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 25px;
    margin-bottom: 25px;
    position: relative;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-3px);
}

.info-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

.info-header h3 {
    margin: 0;
    font-size: 1.2em;
    color: #fff;
    font-weight: 700;
}

.info-header i {
    color: var(--primary-color);
    font-size: 1.3em;
    background: rgba(0, 210, 211, 0.1);
    padding: 10px;
    border-radius: 24px;
}

.info-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1em;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
    padding-bottom: 10px;
}

.info-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-label {
    color: #aaa;
    font-weight: 400;
}

.info-val {
    color: #fff;
    font-weight: 600;
    font-size: 1.05em;
}

/* Gallery - Large Images */
.doc-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.doc-item {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 1;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: #000;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.doc-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.4s;
}

.doc-item:hover img {
    transform: scale(1.1);
    opacity: 0.7;
}

.doc-item:after {
    content: '\f00e';
    /* fa-search-plus */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 1.5em;
    opacity: 0;
    transition: 0.3s;
    pointer-events: none;
}

.doc-item:hover:after {
    opacity: 1;
}

.doc-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.8), transparent);
    color: #fff;
    font-size: 0.85em;
    text-align: center;
    padding: 8px 5px;
    font-weight: bold;
}

/* Price Box */
.price-box-highlight {
    background: linear-gradient(135deg, rgba(36, 128, 145, 0.2), rgba(36, 128, 145, 0.05));
    border: 1px solid var(--secondary-color);
    padding: 20px;
    border-radius: 24px;
    text-align: center;
    margin-top: 20px;
}

.price-title {
    font-size: 0.95em;
    color: var(--secondary-color);
    opacity: 0.9;
    display: block;
    margin-bottom: 5px;
}

.price-val {
    font-size: 1.8em;
    font-weight: 900;
    color: #fff;
    display: block;
    letter-spacing: 1px;
    text-shadow: 0 0 20px rgba(0, 210, 211, 0.4);
}

/* Note Box */
.note-content {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 24px;
    font-size: 0.95em;
    line-height: 1.8;
    color: #ddd;
    border-right: 3px solid var(--secondary-color);
}

@media (max-width: 768px) {

    .details-wrapper {
        padding: 20px 10px 90px 10px;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }
}















































/* استایل‌های پایه */
.details-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
}

.status-hero-card {
    border-radius: 24px;
    padding: 30px;
    text-align: center;
    margin-bottom: 25px;
    border: 2px solid;
    position: relative;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
}

.status-hero-title {
    font-size: 1.6em;
    font-weight: 800;
    display: block;
    margin-bottom: 10px;
}

/* استایل اختصاصی باکس آپلود */
.reupload-area {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1), rgba(220, 53, 69, 0.02));
    border: 2px dashed #dc3545;
    padding: 25px;
    border-radius: 24px;
    margin-bottom: 30px;
    box-shadow: 0 0 20px rgba(220, 53, 69, 0.1);
}

.reupload-title {
    color: #dc3545;
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.reupload-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.file-input-wrapper {
    text-align: center;
}

.file-input-label {
    display: block;
    color: #ccc;
    margin-bottom: 5px;
    font-size: 0.9em;
}

.file-input-dark {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid #555;
    color: #fff;
    padding: 8px;
    border-radius: 24px;
    width: 100%;
    box-sizing: border-box;
    font-size: 0.85em;
}



.info-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 10px;
}

.info-header h3 {
    margin: 0;
    font-size: 1.1em;
    color: #fff;
}



.info-label {
    color: #aaa;
}

.info-val {
    color: #fff;
    font-weight: bold;
}

.doc-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.doc-item {
    border-radius: 24px;
    overflow: hidden;
    height: 80px;
    border: 1px solid #444;
}

.doc-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {

    .details-header-card {
        margin-top: 0;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }
}




































/* Header */
.ap-ed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

.ap-ed-header h1 {
    margin: 0;
    color: #fff;
    font-size: 1.5em;
}

.ap-ed-header h1 span {
    font-family: monospace;
    color: var(--secondary-color);
}

/* Grid Layout */
.ap-ed-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
}

/* Unique Cards */
.ap-ed-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 20px;
}

.ap-ed-card-header {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.ap-ed-card-header h3 {
    margin: 0;
    color: #fff;
    font-size: 1.2em;
    font-weight: bold;
}

.ap-ed-card-content {
    padding: 25px;
}

/* Timeline Unique */
.ap-ed-timeline {
    position: relative;
    padding: 10px 0;
}

.ap-ed-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: 28px;
    width: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 24px;
}

.ap-ed-tl-item {
    position: relative;
    margin-bottom: 25px;
    padding-right: 60px;
    opacity: 0.5;
    transition: all 0.4s ease;
}

.ap-ed-tl-item:last-child {
    margin-bottom: 0;
}

.ap-ed-tl-icon {
    position: absolute;
    right: 8px;
    top: 0;
    width: 42px;
    height: 42px;
    border-radius: 24px;
    background: #1e1e1e;
    border: 2px solid #444;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    color: #888;
    transition: 0.4s;
}

.ap-ed-tl-item.active {
    opacity: 1;
    transform: translateX(-5px);
}

.ap-ed-tl-item.active .ap-ed-tl-icon {
    border-color: var(--primary-color);
    background: rgba(0, 210, 211, 0.1);
    color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 210, 211, 0.4);
    animation: ap-ed-pulse 2s infinite;
}

.ap-ed-tl-item.done {
    opacity: 1;
}

.ap-ed-tl-item.done .ap-ed-tl-icon {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #000;
}

.ap-ed-tl-content {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 15px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.ap-ed-tl-item.active .ap-ed-tl-content {
    border-color: var(--primary-color);
    background: linear-gradient(90deg, rgba(0, 210, 211, 0.1), transparent);
}

.ap-ed-tl-title {
    font-weight: bold;
    font-size: 0.95em;
    display: block;
    color: #fff;
}

@keyframes ap-ed-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 210, 211, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(0, 210, 211, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 210, 211, 0);
    }
}

/* Hero Card Unique */
.ap-ed-hero {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 2px solid;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
}

.ap-ed-hero-head {
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.ap-ed-hero-head i {
    font-size: 2.2em;
}

.ap-ed-hero-head h2 {
    margin: 0;
    font-size: 1.6em;
}

.ap-ed-hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.ap-ed-hero-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 24px;
}

.ap-ed-hero-lbl {
    display: block;
    color: #aaa;
    font-size: 0.9em;
    margin-bottom: 8px;
}

.ap-ed-hero-val {
    display: block;
    color: #fff;
    font-size: 1.2em;
    font-weight: bold;
}

.ap-ed-hero-bg {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10em;
    opacity: 0.05;
    z-index: 1;
    pointer-events: none;
}

/* Gallery Unique */
.ap-ed-gal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.ap-ed-gal-item {
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    overflow: hidden;
    height: 180px;
    position: relative;
    cursor: pointer;
    transition: 0.3s;
}

.ap-ed-gal-item:hover {
    transform: scale(1.03);
    border-color: var(--secondary-color);
    z-index: 5;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.ap-ed-gal-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ap-ed-gal-lbl {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 4px 10px;
    border-radius: 24px;
    font-size: 0.85em;
}

/* Finance & Form Unique */
.ap-ed-fin-flex {
    display: flex;
    gap: 20px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.ap-ed-fin-item {
    flex: 1;
    min-width: 200px;
}

.ap-ed-input {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    color: #fff;
    font-size: 1em;
    box-sizing: border-box;
}

.ap-ed-btn {
    padding: 12px 20px;
    border-radius: 24px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    
    display: block;
    text-align: center;
    text-decoration: none;
    transition: 0.3s;
}

.ap-ed-btn-pri {
    background: var(--primary-color);
    color: #fff;
}

.ap-ed-btn-sec {
    background: transparent;
    border: 1px solid #666;
    color: #ccc;
}

.ap-ed-btn-danger {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    border: 1px solid #dc3545;
}

/* Alert Unique */
.ap-ed-alert {
    padding: 20px;
    border-radius: 24px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #444;
}

.ap-ed-alert-free {
    background: linear-gradient(135deg, #2c2305, #1a1a1a);
    border: 1px solid #FFD700;
}

@media (max-width: 900px) {

    .ap-ed-grid,
    .ap-ed-hero-grid {
        grid-template-columns: 1fr;
    }
}



































































/* === NEW ADVANCED UPLOAD STYLES (up-) === */
.up-box {
    background: rgba(220, 53, 69, 0.05);
    border: 2px dashed #dc3545;
    padding: 25px;
    border-radius: 24px;
    margin-bottom: 30px;
    position: relative;
}

.up-header {
    color: #dc3545;
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.up-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
}

.up-zone {
    position: relative;
    height: 140px;
    border-radius: 24px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.up-zone:hover {
    border-color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
}

.up-icon {
    font-size: 2em;
    color: #aaa;
    margin-bottom: 10px;
    transition: 0.3s;
}

.up-label {
    font-size: 0.9em;
    color: #ccc;
    font-weight: bold;
}

/* State: File Selected */
.up-zone.has-file {
    border-color: #28a745;
    background: #000;
}

.up-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.up-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    width: 25px;
    height: 25px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2em;
    transition: 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.up-remove:hover {
    background: #dc3545;
}

/* Progress Bar */
.up-progress-wrap {
    margin-top: 20px;
    display: none;
}

.up-progress-bg {
    background: rgba(255, 255, 255, 0.1);
    height: 10px;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
}

.up-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #dc3545, #ff6b6b);
    width: 0%;
    transition: width 0.3s;
}

.up-progress-text {
    text-align: center;
    color: #fff;
    font-size: 0.9em;
    margin-top: 5px;
    font-family: monospace;
}

@media (max-width: 768px) {

    .to-top {
        margin-top: 20px !important;
    }


    .product-hub-grid {
        padding-right: 0 !important;
        padding-left: 0 !important;
    }

    .page-action-bar {
        padding-right: 10px;
    }



    .details-grid {
        grid-template-columns: 1fr;
    }
}














































.widget-card {
    background: rgba(255, 255, 255, 0.03);
    border: 0 !important;
    border-radius: 24px;
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 15px;
    text-align: right;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #ddd;
}

th {
    background: rgba(0, 0, 0, 0.2);
    color: #00d2d3;
    font-weight: bold;
}

tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.badge {
    padding: 5px 10px;
    border-radius: 24px;
    font-size: 0.85em;
    display: inline-block;
}

.badge.warning {
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
    border: 1px solid #ffc107;
}

.badge.info {
    background: rgba(23, 162, 184, 0.15);
    color: #17a2b8;
    border: 1px solid #17a2b8;
}

.badge.success {
    background: rgba(40, 167, 69, 0.15);
    color: #28a745;
    border: 1px solid #28a745;
}

.badge.danger {
    background: rgba(220, 53, 69, 0.15);
    color: #dc3545;
    border: 1px solid #dc3545;
}

.badge.primary {
    background: rgba(0, 123, 255, 0.15);
    color: #007bff;
    border: 1px solid #007bff;
}

.btn-view {
    background: #00d2d3;
    color: #000;
    padding: 5px 15px;
    border-radius: 24px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
    transition: 0.2s;
}

.btn-view:hover {
    background: #00b5b6;
    box-shadow: 0 0 10px rgba(0, 210, 211, 0.4);
}







































/* تنظیمات کلی کانتینر */
.customer-container {
    max-width: 1300px;
    margin: 0 auto;

}



.desktop-main-header {
    width: 100%;
    max-width: 1300px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-details {
    text-align: left;
    line-height: 1.3;
}

.user-avatar {
    width: 42px;
    height: 42px;
    background: var(--primary-color);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 1.2em;
}

.btn-logout-header {
    background: rgba(220, 53, 69, 0.15);
    color: #dc3545;
    padding: 8px 12px;
    border-radius: 24px;
    font-size: 1.2em;
    border: 1px solid rgba(220, 53, 69, 0.3);
    transition: 0.3s;
}

.btn-logout-header:hover {
    background: #dc3545;
    color: #fff;
}

/* تنظیم فاصله محتوا از بالا در دسکتاپ */
@media (min-width: 769px) {
    .customer-container {
        margin-top: 45px;
    }
}

/* مخفی کردن هدر در موبایل */
@media (max-width: 768px) {
    .desktop-header-wrapper {
        display: none !important;
    }

    .customer-container {
        padding-top: 20px !important;
    }
}


























































































/* لی‌آوت کلی */
.profile-layout-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    /* ستون چپ فیکس، راست انعطاف‌پذیر */
    gap: 30px;
    align-items: start;
}

/* ماژول آواتار (قبلی) */
.select-module-preview {
    width: 130px;
    height: 130px;
    border-radius: 24px;
    margin: 0 auto 25px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 4em;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 5px solid #fff;
}

.select-module-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    justify-items: center;
}

.select-module-item {
    cursor: pointer;
    padding: 3px;
    border: 2px solid transparent;
    border-radius: 24px;
    transition: all 0.2s ease;
}

.select-module-item.active {
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.select-module-circle {
    width: 45px;
    height: 45px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2em;
}

/* --- ماژول جدید اینپوت‌ها (Modern Inputs) --- */

.modern-form-section {
    margin-bottom: 25px;
}

.modern-section-title {
    font-size: 1.1em;
    color: var(--secondary-color);
    font-weight: bold;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modern-section-title::after {
    content: '';
    flex-grow: 1;
    height: 1px;
    background: #eee;
}

.modern-inp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* دو ستونه */
    gap: 20px;
}

.modern-inp-full {
    grid-column: 1 / -1;
}

/* رپر اینپوت برای آیکون */
.modern-inp-wrapper {
    position: relative;
}

.modern-inp-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
    font-size: 1.1em;
    transition: color 0.3s;
    z-index: 2;
}

.modern-inp-field {
    width: 100%;
    padding: 14px 37px 14px 10px;
    /* پدینگ راست بیشتر برای آیکون */
    border: 2px solid #f1f3f5;
    background: #f8f9fa;
    border-radius: 24px;
    font-size: 1em;
    transition: all 0.3s ease;
    color: #495057;
}

.modern-inp-field:focus {
    background: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.1);
    outline: none;
}

/* تغییر رنگ آیکون وقتی اینپوت فوکوس میشه */
.modern-inp-wrapper:focus-within .modern-inp-icon {
    color: var(--primary-color);
}

.modern-inp-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #666;
    font-size: 0.9em;
}

/* استایل خاص برای شماره شبا */
.iban-prefix {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 900;
    color: #ced4da;
    font-size: 1.1em;
}

/* استایل خاص برای فیلد قفل شده */
.locked-field {
    background: #e9ecef;
    border-color: #dee2e6;
    color: #6c757d;
    cursor: not-allowed;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-radius: 24px;
    border: 2px solid #dee2e6;
}

/* ریسپانسیو */
@media (max-width: 992px) {
    .profile-layout-grid {
        grid-template-columns: 1fr;
    }

    .modern-inp-grid {
        grid-template-columns: 1fr;
    }
}






















































.pe-wrapper {
    padding: 20px;
}

.pe-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 25px;
}

@media(max-width: 1100px) {
    .pe-layout {
        grid-template-columns: 1fr;
    }
}

.hc-header-card {
    background: linear-gradient(135deg, #1e1e2f, #252538);
    border-radius: 16px;
    padding: 25px 35px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.hc-header-info h1 {
    margin: 0 0 10px 0;
    font-size: 1.8em;
    color: #fff;
}

.hc-card {
    background: var(--background-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-bottom: 25px;
    overflow: hidden;
}

.hc-card-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-weight: bold;
    color: #ddd;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hc-card-body {
    padding: 20px;
}

.hc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.hc-item {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.2s;
    display: flex;
    flex-direction: column;
}

.hc-item.status-pass {
    border-left: 4px solid #198754;
    background: rgba(25, 135, 84, 0.05);
}

.hc-item.status-fail {
    border-left: 4px solid #dc3545;
    background: rgba(220, 53, 69, 0.05);
}

.hc-item.status-na {
    border-left: 4px solid #6c757d;
}

.hc-item-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
}

.head-top {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.hc-item-icon {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1em;
}

.hc-item-title {
    font-weight: bold;
    color: #eee;
    font-size: 1em;
}

.health-result-badge {
    font-size: 0.75em;
    padding: 3px 8px;
    border-radius: 6px;
    width: 100%;
    text-align: center;
}

.health-result-badge.pass {
    background: rgba(25, 135, 84, 0.15);
    color: #2ecc71;
    border: 1px solid rgba(25, 135, 84, 0.2);
}

.health-result-badge.fail {
    background: rgba(220, 53, 69, 0.15);
    color: #e74c3c;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.hc-options {
    display: flex;
    gap: 5px;
    background: #1a1a1a;
    padding: 4px;
    border-radius: 8px;
    margin-top: auto;
}

.hc-radio {
    display: none;
}

.hc-label {
    flex: 1;
    text-align: center;
    padding: 6px 0;
    font-size: 0.85em;
    cursor: pointer;
    border-radius: 6px;
    color: #888;
    transition: 0.2s;
}

input[value="pass"]:checked+.hc-label {
    background: #198754;
    color: #fff;
}

input[value="fail"]:checked+.hc-label {
    background: #dc3545;
    color: #fff;
}

input[value="na"]:checked+.hc-label {
    background: #6c757d;
    color: #fff;
}

.hc-note {
    width: 100%;
    margin-top: 10px;
    background: #222;
    border: 1px solid #444;
    color: #fff;
    padding: 8px;
    border-radius: 6px;
    font-size: 0.9em;
    display: none;
}

.hc-note.active {
    display: block;
    border-color: #dc3545;
}

.hc-select,
.hc-input,
.hc-textarea {
    width: 100%;
    padding: 12px;
    background: #222;
    border: 1px solid #555;
    color: #fff;
    border-radius: 8px;
    margin-bottom: 10px;
}

.btn-action {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
}

.btn-success {
    background: #198754;
    color: #fff;
}

.btn-warning {
    background: #ffc107;
    color: #000;
}






.cta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.cta-box {
    background: var(--background-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.cta-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

.cta-icon {
    font-size: 3em;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.cta-box-sell .cta-icon {
    color: #28a745;
}

.cta-box-warranty .cta-icon {
    color: #FFD700;
}

.cta-box-insurance .cta-icon {
    color: #00d2d3;
}

.cta-box h3 {
    margin: 10px 0;
    color: #fff;
    font-size: 1.2em;
}

.cta-box p {
    color: #aaa;
    font-size: 0.9em;
    margin-bottom: 20px;
}

.cta-box .btn {
    width: 100%;
    margin-top: auto;
}

.modal-overlay,
.premium-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-overlay.active,
.premium-modal-overlay.active {
    display: flex;
}

.modal-box {
    background: var(--background-dark);
    padding: 30px;
    border-radius: 24px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    border: 1px solid #28a745;
    box-shadow: 0 0 30px rgba(40, 167, 69, 0.3);
}

.modal-icon-success {
    font-size: 3em;
    color: #28a745;
    margin-bottom: 15px;
}

.modal-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.premium-modal-box {
    background: var(--background-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.pm-header {
    background: linear-gradient(135deg, var(--secondary-color), #2193b0);
    padding: 20px;
    color: #fff;
    text-align: center;
    position: relative;
}

.pm-price {
    font-size: 1.8em;
    font-weight: bold;
    display: block;
    margin-top: 10px;
}

.pm-body {
    padding: 25px;
}

.pay-method-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
}

.pay-method-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pm-input-file {
    width: 100%;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #444;
    border-radius: 24px;
    color: #fff;
    margin-bottom: 15px;
}

















































/* Toast Container */
#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Sticky Toast Style */
.toast-notification.sticky-toast {
    background: #1e1e2d;
    /* پس زمینه تیره */
    color: #fff;
    width: 350px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    border-right: 5px solid #f79433;
    /* رنگ برند */
    overflow: hidden;
    animation: slideInRight 0.4s ease-out;
}

.toast-header {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.toast-icon {
    font-size: 1.2em;
    color: #f79433;
    margin-left: 10px;
}

.toast-close-btn {
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    margin-right: auto;
    /* Push to left */
    font-size: 1.1em;
}

.toast-close-btn:hover {
    color: #fff;
}

.toast-body {
    padding: 15px;
    font-size: 0.95em;
    line-height: 1.5;
    color: #ddd;
}

.toast-actions {
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.2);
    text-align: left;
    /* دکمه سمت چپ */
}

.btn-review {
    display: inline-block;
    background: #f79433;
    color: #000;
    padding: 6px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
    transition: all 0.2s;
}

.btn-review:hover {
    background: #ffa726;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(247, 148, 51, 0.3);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}