/* =========================================
   1. ROOT VARIABLES (MD3 DARK THEME)
   ========================================= */
:root {
    --md-sys-color-background: #141414;
    --md-sys-color-surface: #1e1e1e;
    --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-sys-color-warning: #ffd54f;
    --md-sys-color-warning-container: rgba(255, 193, 7, 0.1);
    
    --md-radius-extra-large: 28px;
    --md-radius-large: 16px;
    --md-radius-full: 9999px;
    
    --md-elevation-1: 0 4px 15px rgba(0,0,0,0.1);
    --md-elevation-2: 0 12px 30px rgba(0,0,0,0.2);
}

/* =========================================
   2. BASE & LAYOUT
   ========================================= */

    @font-face {
  font-family: Vazirmatn;
  src: url('../font/vazir.ttf');

}
body {
    background-color: var(--md-sys-color-background);
    color: #e3e3e3;
    font-family: 'Vazirmatn';
    margin: 0;
    padding: 0;
}

.desktop-header-wrapper {
    background: rgba(20, 20, 20, 0.85) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-bottom: none !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
}

.customer-container {
    padding-top: 120px;
    padding-bottom: 100px;
    max-width: 1300px;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}

.page-title-box { text-align: center; margin-bottom: 40px; }
.page-title-box h1 { font-size: 2em; margin: 0 0 12px 0; font-weight: 800; color: #fff; }
.page-title-box p { color: #aaa; font-size: 1.1em; margin: 0; }

/* =========================================
   3. GLOBAL COMPONENTS
   ========================================= */
.md3-card {
    background-color: var(--md-sys-color-surface);
    border-radius: var(--md-radius-extra-large);
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: var(--md-elevation-1);
    transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
}

.md3-btn {
    border-radius: var(--md-radius-full);
    padding: 12px 28px;
    font-weight: 600;
    font-size: 1.05em;
    text-transform: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    box-sizing: border-box;
}

.md3-btn-primary {         background-color: #f79433 !important;
    color: #fff;
    border: 1px solid #f79433 !important;
}
.md3-btn-primary:hover {    box-shadow: 0 6px 20px rgba(247, 148, 51, 0.4); filter: brightness(1.05); transform: translateY(-2px);  }

.md3-btn-secondary { background-color: var(--md-sys-color-surface-container); color: #fff; }
.md3-btn-secondary:hover { background-color: #333; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); }

/* Badges */
.md3-status-badge {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: var(--md-radius-full); font-size: 0.9em; font-weight: 700;
}
.status-pending { background: var(--md-sys-color-warning-container); color: var(--md-sys-color-warning); }
.status-completed { background: var(--md-sys-color-success-container); color: var(--md-sys-color-success); }
.status-rejected { background: var(--md-sys-color-error-container); color: var(--md-sys-color-error); }
.status-info { background: var(--md-sys-color-info-container); color: var(--md-sys-color-info); }
.status-success { background: var(--md-sys-color-success-container); color: var(--md-sys-color-success); }

/* Status Labels (Small) */
.status-label-chk { padding: 6px 12px; border-radius: var(--md-radius-full); font-size: 0.85em; font-weight: 600; display: inline-block; }
.status-label-chk.pass { background: var(--md-sys-color-success-container); color: var(--md-sys-color-success); }
.status-label-chk.fail { background: var(--md-sys-color-error-container); color: var(--md-sys-color-error); }
.status-label-chk.na { background: rgba(255,255,255,0.05); color: #aaa; }

/* Empty State */
.empty-state {
    background: var(--md-sys-color-surface); border-radius: var(--md-radius-extra-large); padding: 60px 24px; text-align: center;  display: flex; flex-direction: column; align-items: center;
}
.empty-icon { width: 100px; height: 100px; background: rgba(255, 215, 0, 0.05); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 24px; font-size: 3em; color: var(--md-sys-color-primary); }
.empty-state h3 { color: #fff; margin: 0 0 16px 0; font-size: 1.5em; font-weight: 700; }
.empty-state p { color: #aaa; margin: 0 0 32px 0; font-size: 1.05em; max-width: 500px; line-height: 1.6; }

/* Modal */
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.8); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); z-index: 2000; display: none; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; }
.modal-overlay.active { display: flex; opacity: 1; }
.modal-box-md3 { background: var(--md-sys-color-surface); border-radius: var(--md-radius-extra-large); padding: 40px 32px; border: 1px solid rgba(255,255,255,0.05); box-shadow: 0 20px 40px rgba(0,0,0,0.4); max-width: 90%; width: 400px; text-align: center; transform: translateY(20px); transition: transform 0.3s ease; }
.modal-overlay.active .modal-box-md3 { transform: translateY(0); }

/* =========================================
   4. PAYMENT MODULE STYLES
   ========================================= */
.payment-status-box { padding: 32px; border-radius: var(--md-radius-extra-large); text-align: center; margin-bottom: 24px; border: none; animation: fadeIn 0.5s ease; }
.pay-pending { background: var(--md-sys-color-info-container); color: var(--md-sys-color-info); }
.pay-success { background: var(--md-sys-color-success-container); color: var(--md-sys-color-success); }
.pay-shop { background: rgba(255, 193, 7, 0.1); color: #ffd54f; }
.pay-error { background: var(--md-sys-color-error-container); color: var(--md-sys-color-error); }
.payment-status-box h3 { margin-top: 0; font-size: 1.3em; color: inherit; }

.invoice-card { background-color: var(--md-sys-color-surface); border-radius: var(--md-radius-extra-large); overflow: hidden; border: 1px solid rgba(255,255,255,0.05); margin-bottom: 40px; box-shadow: 0 8px 32px rgba(0,0,0,0.2); }
.invoice-header { background: rgba(255,255,255,0.02); padding: 24px 32px; border-bottom: 1px solid rgba(255,255,255,0.05); display: flex; justify-content: space-between; align-items: center; }
.invoice-body { padding: 32px; }
.detail-row { display: flex; justify-content: space-between; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px dashed rgba(255,255,255,0.1); font-size: 1.1em; color: #ddd; }
.detail-row:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.total-row { background: var(--md-sys-color-success-container); padding: 24px; border-radius: var(--md-radius-large); display: flex; justify-content: space-between; align-items: center; margin-top: 32px; border: 1px solid rgba(40, 167, 69, 0.2); }

.methods-list { display: flex; flex-direction: column; gap: 24px; margin-bottom: 40px; }
.method-item { background: var(--md-sys-color-surface); border: 2px solid transparent; border-radius: var(--md-radius-extra-large); overflow: hidden; transition: all 0.3s cubic-bezier(0.2, 0, 0, 1); box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.method-header { padding: 24px; cursor: pointer; display: flex; align-items: center; gap: 20px; transition: background 0.3s; }
.method-header:hover { background: rgba(255,255,255,0.03); }
.method-icon { width: 64px; height: 64px; border-radius: var(--md-radius-large); background: rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center; font-size: 2em; color: #aaa; transition: all 0.3s ease; }
.method-info h4 { margin: 0 0 8px 0; color: #fff; font-size: 1.2em; font-weight: 700; }
.method-content { max-height: 0; overflow: hidden; transition: max-height 0.5s ease-in-out; background: var(--md-sys-color-surface-container); }
.method-item.active { border-color: var(--md-sys-color-primary); box-shadow: 0 8px 30px rgba(0,0,0,0.3); }
.method-item.active .method-content { max-height: 800px; }
.method-item.active .method-icon { background: rgba(255,215,0,0.1); color: var(--md-sys-color-primary); }

.virtual-credit-card { background: linear-gradient(135deg, #2a2a2a, #111111); border: 1px solid rgba(255,255,255,0.1); padding: 32px 24px; border-radius: 20px; text-align: right; margin-bottom: 24px; position: relative; overflow: hidden; }
.vcc-number { font-family: 'Courier New', Courier, monospace; font-size: 2.2em; color: var(--md-sys-color-primary); letter-spacing: 4px; display: block; direction: ltr; font-weight: 800; cursor: pointer; text-align: left; }
.file-input-wrapper { border: 2px dashed rgba(255,255,255,0.2); border-radius: var(--md-radius-extra-large); padding: 40px 20px; text-align: center; cursor: pointer; transition: all 0.3s ease; display: block; background: rgba(255,255,255,0.02); }

/* =========================================
   5. HEALTH CHECK / WARRANTY MODULE STYLES
   ========================================= */
.expert-result-md3 { background: var(--md-sys-color-surface); border-radius: var(--md-radius-extra-large); padding: 40px; position: relative; overflow: hidden; box-shadow: 0 8px 32px rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.05); display: flex; flex-direction: column; gap: 24px; margin-bottom: 30px; z-index: 1; }
.expert-result-md3.status-healthy { border-right: 6px solid var(--md-sys-color-success); }
.expert-result-md3.status-problematic { border-right: 6px solid var(--md-sys-color-error); }
.expert-status-badge { display: inline-flex; align-items: center; gap: 12px; font-size: 1.4em; font-weight: 700; padding: 12px 24px; border-radius: var(--md-radius-full); width: fit-content; }
.expert-status-badge.healthy { background: var(--md-sys-color-success-container); color: var(--md-sys-color-success); }
.expert-status-badge.problematic { background: var(--md-sys-color-error-container); color: var(--md-sys-color-error); }

.warranty-purchase-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; align-items: stretch; }
.warranty-card-md3 { background: var(--md-sys-color-surface); border-radius: var(--md-radius-extra-large); padding: 32px; position: relative; overflow: hidden; display: flex; flex-direction: column; border: 1px solid rgba(255, 215, 0, 0.1); transition: all 0.4s cubic-bezier(0.2, 0, 0, 1); z-index: 1; }
.warranty-card-md3::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 6px; background: linear-gradient(90deg, #ffc107, #ff9800); opacity: 0.5; }
.warranty-card-md3.emerald-plan::before { opacity: 1; }
.warranty-card-md3:hover { transform: translateY(-8px); border-color: rgba(255, 215, 0, 0.3); }
.w-card-header-md3 { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,0.05); }

.checklist-results-table { width: 100%; border-collapse: collapse; margin-top: 16px; background: var(--md-sys-color-surface); border-radius: var(--md-radius-extra-large); overflow: hidden; box-shadow: var(--md-elevation-1); }
.checklist-results-table th { background: rgba(255,255,255,0.03); padding: 20px 24px; font-weight: 600; color: #fff; text-align: right; }
.checklist-results-table td { padding: 16px 24px; border-bottom: 1px solid rgba(255,255,255,0.05); color: #ccc; }
.checklist-results-table tr:last-child td { border-bottom: none; }

/* Call To Action Buttons (Grid) */
.cta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; margin-top: 24px; }
.cta-box { background: var(--md-sys-color-surface); border-radius: var(--md-radius-extra-large); padding: 32px 24px; text-align: center; transition: all 0.3s cubic-bezier(0.2, 0, 0, 1); cursor: pointer; border: none; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: var(--md-elevation-1); }
.cta-box:hover { transform: translateY(-4px); background: var(--md-sys-color-surface-container); box-shadow: var(--md-elevation-2); }
.cta-icon { width: 64px; height: 64px; border-radius: var(--md-radius-full); background: rgba(255,215,0,0.1); display: flex; align-items: center; justify-content: center; font-size: 1.8em; margin-bottom: 16px; color: var(--md-sys-color-primary); }

/* =========================================
   6. RESPONSIVE DESIGN
   ========================================= */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 768px) {
    .customer-container { padding-top: 100px; padding-left: 10px; padding-right: 10px; }
    .md3-card { padding: 20px; }
    .invoice-header, .total-row { flex-direction: column; gap: 15px; text-align: center; }
    .warranty-purchase-grid { grid-template-columns: 1fr; }
    .w-card-header-md3 { flex-direction: column; text-align: center; }
    .expert-result-md3 { padding: 24px; }
}






.service-card-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.md3-list-card {
    background-color: var(--md-sys-color-surface);
    border-radius: var(--md-radius-large);
    padding: 24px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--md-elevation-1);
    position: relative;
    overflow: hidden;
}

.md3-list-card:hover {
    transform: translateY(-4px);
    background-color: var(--md-sys-color-surface-container);
    box-shadow: var(--md-elevation-2);
}

.md3-list-card::after {
    content: '\f053';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2em;
    color: rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.md3-list-card:hover::after {
    color: var(--md-sys-color-primary);
    left: 18px;
}

.border-pending { border-right: 6px solid var(--md-sys-color-warning); }
.border-completed { border-right: 6px solid var(--md-sys-color-success); }
.border-rejected { border-right: 6px solid var(--md-sys-color-error); }
.border-info { border-right: 6px solid var(--md-sys-color-info); }
.border-success { border-right: 6px solid var(--md-sys-color-success); }

.card-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.device-title-box {
    display: flex;
    align-items: center;
    gap: 16px;
}

.device-icon-wrapper {
    width: 48px;
    height: 48px;
    background: rgba(247, 148, 51, 0.1);
    border-radius: var(--md-radius-large);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3em;
    color: var(--md-sys-color-secondary);
}

.device-name {
    margin: 0;
    font-size: 1.3em;
    font-weight: 800;
    color: #fff;
}

.tracking-badge {
    background: rgba(255,255,255,0.05);
    color: #aaa;
    padding: 6px 12px;
    border-radius: var(--md-radius-large);
    font-size: 0.85em;
    font-family: monospace;
    letter-spacing: 1px;
}

.card-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    background: rgba(0,0,0,0.15);
    padding: 16px;
    border-radius: var(--md-radius-large);
    margin-bottom: 20px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #bbb;
    font-size: 0.95em;
}

.detail-item i {
    color: var(--md-sys-color-secondary);
    width: 20px;
    text-align: center;
}

.detail-item strong {
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.card-action-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    color: var(--md-sys-color-primary);
    font-weight: 700;
    font-size: 1em;
    gap: 8px;
    margin-top: auto;
    transition: 0.3s ease;
}

.md3-list-card:hover .card-action-bar {
    color: #ffd600;
    transform: translateX(-5px);
}

@media (max-width: 768px) {
    .md3-list-card::after { display: none; }
    .card-top-bar { flex-direction: column; align-items: flex-start; gap: 16px; }
    .card-details-grid { grid-template-columns: 1fr; }
}












.service-card-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

/* Customer dashboard */
.dashboard-summary-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.dashboard-product-hub {
    margin-bottom: 28px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--md-radius-extra-large);
    background: rgba(255, 255, 255, 0.025);
}

.dashboard-product-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.dashboard-product-head h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: #fff;
    font-size: 1.2rem;
}

.dashboard-product-head h3 i {
    color: #f79433;
}

.dashboard-product-head p {
    margin: 7px 0 0;
    color: #999;
    font-size: 0.86rem;
}

.dashboard-product-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.dashboard-product-action {
    position: relative;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    grid-template-areas:
        "icon content arrow"
        "icon meta arrow";
    align-items: center;
    gap: 9px 12px;
    min-height: 132px;
    padding: 18px;
    overflow: hidden;
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--md-radius-large);
    background: #202020;
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.dashboard-product-action::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: var(--dashboard-product-accent, #248091);
}

.dashboard-product-action:hover {
    color: #fff;
    border-color: var(--dashboard-product-border, rgba(36, 128, 145, 0.55));
    background: #252525;
    transform: translateY(-2px);
}

.dashboard-product-action--purchases {
    --dashboard-product-accent: #248091;
    --dashboard-product-tint: rgba(36, 128, 145, 0.14);
    --dashboard-product-border: rgba(36, 128, 145, 0.55);
}

.dashboard-product-action--sales {
    --dashboard-product-accent: #f79433;
    --dashboard-product-tint: rgba(247, 148, 51, 0.14);
    --dashboard-product-border: rgba(247, 148, 51, 0.55);
}

.dashboard-product-action--sourcing {
    --dashboard-product-accent: #58a66c;
    --dashboard-product-tint: rgba(88, 166, 108, 0.14);
    --dashboard-product-border: rgba(88, 166, 108, 0.55);
}

.dashboard-product-icon {
    grid-area: icon;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: var(--dashboard-product-accent);
    font-size: 1.15rem;
    border-radius: 14px;
    background: var(--dashboard-product-tint);
}

.dashboard-product-content {
    grid-area: content;
    min-width: 0;
}

.dashboard-product-title {
    display: block;
    color: #fff;
    font-size: 0.98rem;
    font-weight: 800;
}

.dashboard-product-description {
    display: block;
    margin-top: 5px;
    color: #a8a8a8;
    font-size: 0.76rem;
    line-height: 1.75;
}

.dashboard-product-meta {
    grid-area: meta;
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    width: fit-content;
    color: #aaa;
    font-size: 0.72rem;
}

.dashboard-product-count {
    color: var(--dashboard-product-accent);
    font-size: 1.15rem;
    line-height: 1;
}

.dashboard-product-cta {
    grid-area: meta;
    width: fit-content;
    color: var(--dashboard-product-accent);
    font-size: 0.78rem;
    font-weight: 800;
}

.dashboard-product-arrow {
    grid-area: arrow;
    color: #777;
    font-size: 0.78rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.dashboard-product-action:hover .dashboard-product-arrow {
    color: var(--dashboard-product-accent);
    transform: translateX(-3px);
}

.dashboard-action-section {
    margin-bottom: 22px;
}

.dashboard-action-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.dashboard-action-head h3 {
    margin: 0;
    color: #fff;
    font-size: 1.15rem;
}

.dashboard-action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 10px;
}

.dashboard-direct-action {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 78px;
    padding: 16px;
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.035);
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.dashboard-direct-action:hover {
    color: #fff;
    border-color: rgba(247, 148, 51, 0.25);
    background: rgba(247, 148, 51, 0.08);
}

.dashboard-direct-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: #f79433;
    border-radius: 13px;
    background: rgba(247, 148, 51, 0.1);
}

.dashboard-direct-action strong,
.dashboard-direct-action small {
    display: block;
}

.dashboard-direct-action strong {
    font-size: 0.95rem;
}

.dashboard-direct-action small {
    margin-top: 3px;
    color: #999;
    font-size: 0.75rem;
    line-height: 1.65;
}

@media (max-width: 900px) {
    .dashboard-product-actions {
        grid-template-columns: 1fr;
    }

    .dashboard-product-action {
        min-height: 104px;
    }
}

@media (max-width: 600px) {
    .dashboard-summary-stats {
        gap: 8px;
        margin-bottom: 22px;
    }

    .dashboard-summary-stats .md3-card {
        padding: 15px 6px !important;
    }

    .dashboard-summary-stats .md3-card span:first-child {
        margin-bottom: 8px !important;
        font-size: 1.65rem !important;
    }

    .dashboard-summary-stats .md3-card span:last-child {
        font-size: 0.72rem !important;
    }

    .dashboard-product-hub {
        margin-inline: -2px;
        padding: 15px;
        border-radius: 18px;
    }

    .dashboard-product-head {
        margin-bottom: 14px;
    }

    .dashboard-product-head h3 {
        font-size: 1.05rem;
    }

    .dashboard-product-head p {
        font-size: 0.76rem;
        line-height: 1.7;
    }

    .dashboard-product-actions,
    .dashboard-action-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-product-action {
        grid-template-columns: 42px minmax(0, 1fr) auto;
        min-height: 92px;
        padding: 14px;
        gap: 7px 10px;
    }

    .dashboard-product-icon {
        width: 42px;
        height: 42px;
        border-radius: 12px;
    }

    .dashboard-product-title {
        font-size: 0.91rem;
    }

    .dashboard-product-description {
        font-size: 0.72rem;
        line-height: 1.65;
    }

    .dashboard-direct-action {
        min-height: 76px;
        padding: 13px;
    }

    .dashboard-direct-icon {
        width: 38px;
        height: 38px;
    }
}

/* Customer shared page header and sourcing request */
.customer-page-header {
    position: fixed;
    inset: 0 0 auto;
    height: 80px;
    z-index: 1020;
}

.customer-page-header__inner {
    max-width: 1300px;
    height: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.customer-page-header__brand,
.customer-page-header__brand-row {
    display: flex;
    align-items: center;
    gap: 13px;
}

.customer-page-header__icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: #f79433;
    font-size: 1.2rem;
    border-radius: 15px;
    background: rgba(247, 148, 51, 0.12);
}

.customer-page-header__brand h2 {
    margin: 0;
    color: #fff;
    font-size: 1.08rem;
    font-weight: 800;
}

.customer-page-header__brand span {
    display: block;
    margin-top: 3px;
    color: #999;
    font-size: 0.72rem;
}

.sourcing-request-page {
    max-width: 780px;
}

.sourcing-request-page .btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: #aaa;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
}

.sourcing-request-card {
    padding: 30px;
    border-radius: 24px;
    background: var(--md-sys-color-surface);
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: var(--md-elevation-2);
}

.sourcing-request-card .title-box {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.sourcing-request-card .title-box h1 {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 0;
    color: #fff;
    font-size: 1.28rem;
    font-weight: 900;
}

.sourcing-request-card .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.sourcing-request-card .form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.sourcing-request-card label {
    color: #aaa;
    font-size: 0.84rem;
    font-weight: 700;
}

.sourcing-request-card .m3-input,
.sourcing-request-card .m3-select,
.sourcing-request-card .m3-textarea {
    width: 100%;
    padding: 14px 17px;
    box-sizing: border-box;
    color: #fff;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    border: 1px solid #3a3a3a;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.2);
}

.sourcing-request-card .m3-input:focus,
.sourcing-request-card .m3-select:focus,
.sourcing-request-card .m3-textarea:focus {
    border-color: #f79433;
    background: rgba(247, 148, 51, 0.05);
}

.sourcing-request-card .m3-input:disabled {
    color: #888;
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.025);
}

.sourcing-request-card .m3-select option {
    color: #fff;
    background: #1e1e1e;
}

.sourcing-request-card .m3-textarea {
    min-height: 120px;
    resize: vertical;
}

.sourcing-request-card .btn-submit {
    width: 100%;
    min-height: 52px;
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #111;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 900;
    cursor: pointer;
    border: 0;
    border-radius: 50px;
    background: #f79433;
}

.sourcing-request-card .btn-submit:hover {
    background: #e78324;
}

.sourcing-request-card .alert {
    margin-bottom: 20px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    border-radius: 14px;
}

.sourcing-request-card .alert-success {
    color: #81c784;
    border: 1px solid rgba(76, 175, 80, 0.2);
    background: rgba(76, 175, 80, 0.12);
}

.sourcing-request-card .alert-danger {
    color: #ef5350;
    border: 1px solid rgba(239, 83, 80, 0.2);
    background: rgba(239, 83, 80, 0.12);
}

/* Shared customer footer */
.site-footer-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-footer-layout > main {
    flex: 1 0 auto;
}

.customer-site-footer {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    margin-top: auto;
    padding: 32px max(18px, calc((100vw - 1300px) / 2)) 94px;
    color: #aaa;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    background: #181818;
}

.customer-site-footer__inner {
    display: grid;
    grid-template-columns: minmax(280px, 1.45fr) minmax(150px, 0.65fr) minmax(250px, 0.9fr);
    gap: 34px;
    align-items: start;
}

.customer-site-footer__brand-row {
    display: flex;
    align-items: center;
    gap: 13px;
}

.customer-site-footer__logo {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: #f79433;
    font-size: 1.25rem;
    border-radius: 16px;
    background: rgba(247, 148, 51, 0.12);
}

.customer-site-footer__brand strong,
.customer-site-footer__links > strong,
.customer-site-footer__trust > strong {
    display: block;
    color: #fff;
    font-size: 0.93rem;
    font-weight: 900;
}

.customer-site-footer__brand-row span,
.customer-site-footer__brand p {
    color: #858585;
    font-size: 0.76rem;
    line-height: 1.8;
}

.customer-site-footer__brand p {
    max-width: 470px;
    margin: 14px 0 0;
}

.customer-site-footer__links {
    display: grid;
    gap: 9px;
}

.customer-site-footer__links > strong,
.customer-site-footer__trust > strong {
    margin-bottom: 6px;
}

.customer-site-footer__links a {
    width: fit-content;
    color: #929292;
    font-size: 0.78rem;
    text-decoration: none;
}

.customer-site-footer__links a:hover {
    color: #f79433;
}

.customer-site-footer__trust-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.customer-trust-placeholder {
    min-height: 92px;
    padding: 12px 8px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    color: #777;
    text-align: center;
    font-size: 0.68rem;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.025);
}

.customer-trust-placeholder i {
    color: #f79433;
    font-size: 1.25rem;
}

.customer-site-footer__bottom {
    margin-top: 28px;
    padding-top: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    font-size: 0.7rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.customer-site-footer__developer {
    display: flex;
    align-items: center;
    gap: 8px;
}

.customer-site-footer__developer-mark {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    color: #181818;
    border-radius: 10px;
    background: #f79433;
}

.customer-site-footer__developer strong {
    color: #fff;
    font-family: 'Vazirmatn';
    font-size: 0.78rem;
}

@media (max-width: 850px) {
    .customer-site-footer__inner {
        grid-template-columns: 1fr 1fr;
    }

    .customer-site-footer__brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .customer-page-header__inner {
        padding: 0 10px;
    }

    .customer-page-header__brand span {
        display: none;
    }

    .customer-page-header__brand h2 {
        font-size: 0.9rem;
    }

    .customer-page-header__inner .md3-btn {
        padding: 10px 13px;
        font-size: 0.76rem;
    }

    .sourcing-request-page {
        padding-right: 10px;
        padding-left: 10px;
    }

    .sourcing-request-card {
        padding: 18px 14px;
        border-radius: 19px;
    }

    .sourcing-request-card .title-box h1 {
        font-size: 1.02rem;
        line-height: 1.8;
    }

    .sourcing-request-card .form-grid-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .customer-site-footer {
        padding: 25px 12px 104px;
    }

    .customer-site-footer__inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .customer-site-footer__brand {
        grid-column: auto;
    }

    .customer-site-footer__links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px 14px;
    }

    .customer-site-footer__links > strong {
        grid-column: 1 / -1;
    }

    .customer-site-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 13px;
    }

    .customer-site-footer__developer {
        width: 100%;
        padding: 10px;
        border-radius: 13px;
        background: rgba(255, 255, 255, 0.025);
    }
}
