@font-face{font-family:IRANSansXFaNum;src:url(/fonts/IRANSansXFaNum-ThinD4.ttf) format("truetype");font-weight:100;font-style:normal;font-display:swap}@font-face{font-family:IRANSansXFaNum;src:url(/fonts/IRANSansXFaNum-UltraLightD4.ttf) format("truetype");font-weight:200;font-style:normal;font-display:swap}@font-face{font-family:IRANSansXFaNum;src:url(/fonts/IRANSansXFaNum-LightD4.ttf) format("truetype");font-weight:300;font-style:normal;font-display:swap}@font-face{font-family:IRANSansXFaNum;src:url(/fonts/IRANSansXFaNum-RegularD4.ttf) format("truetype");font-weight:400;font-style:normal;font-display:swap}@font-face{font-family:IRANSansXFaNum;src:url(/fonts/IRANSansXFaNum-MediumD4.ttf) format("truetype");font-weight:500;font-style:normal;font-display:swap}@font-face{font-family:IRANSansXFaNum;src:url(/fonts/IRANSansXFaNum-DemiBoldD4.ttf) format("truetype");font-weight:600;font-style:normal;font-display:swap}@font-face{font-family:IRANSansXFaNum;src:url(/fonts/IRANSansXFaNum-BoldD4.ttf) format("truetype");font-weight:700;font-style:normal;font-display:swap}@font-face{font-family:IRANSansXFaNum;src:url(/fonts/IRANSansXFaNum-ExtraBoldD4.ttf) format("truetype");font-weight:800;font-style:normal;font-display:swap}@font-face{font-family:IRANSansXFaNum;src:url(/fonts/IRANSansXFaNum-BlackD4.ttf) format("truetype");font-weight:900;font-style:normal;font-display:swap}@font-face{font-family:IRANSansXFaNum;src:url(/fonts/IRANSansXFaNum-ExtraBlackD4.ttf) format("truetype");font-weight:950;font-style:normal;font-display:swap}@font-face{font-family:IRANSansXFaNum;src:url(/fonts/IRANSansXFaNum-HeavyD4.ttf) format("truetype");font-weight:1000;font-style:normal;font-display:swap}*{margin:0;padding:0;box-sizing:border-box}html{direction:rtl}body{font-family:IRANSansXFaNum,-apple-system,BlinkMacSystemFont,Segoe UI,Tahoma,sans-serif;-webkit-font-smoothing:antialiased;background:#f4f6f8;color:#333;line-height:1.7}a{text-decoration:none;color:inherit}.app{min-height:100vh}.nav{background:#fff;border-bottom:1px solid #e0e4e8;padding:0 1.5rem}.nav-inner{max-width:1100px;margin:0 auto;display:flex;align-items:center;gap:1.5rem;height:56px}.nav-brand{font-weight:700;color:#1a1a2e;white-space:nowrap}.nav-links{display:flex;gap:.25rem;flex:1 1}.nav-link{padding:.4rem .75rem;border-radius:6px;font-size:.9rem;color:#555;transition:background .15s}.nav-link.active,.nav-link:hover{background:#eef1f5;color:#1a1a2e}.nav-dropdown{position:relative}.nav-dropdown-toggle{background:none;border:none;font-family:inherit;cursor:pointer}.nav-dropdown-menu{position:absolute;top:100%;right:0;background:#fff;border:1px solid #e0e4e8;border-radius:6px;box-shadow:0 6px 16px rgba(0,0,0,.12);min-width:160px;display:flex;flex-direction:column;padding:.25rem;z-index:50}.nav-dropdown-link{padding:.4rem .75rem;border-radius:6px;font-size:.85rem;color:#555;white-space:nowrap}.nav-dropdown-link.active,.nav-dropdown-link:hover{background:#eef1f5;color:#1a1a2e}.main{max-width:1100px;margin:0 auto;padding:1.5rem}.page-header{justify-content:space-between;margin-bottom:1.5rem;flex-wrap:wrap}.page-header,.page-header-left{display:flex;align-items:center;gap:.75rem}.page-title{font-size:1.4rem;font-weight:700;color:#1a1a2e}.back-btn{white-space:nowrap}.btn{display:inline-flex;align-items:center;justify-content:center;gap:.35rem;padding:.5rem 1rem;border:1px solid transparent;border-radius:6px;font-size:.875rem;font-weight:500;font-family:inherit;cursor:pointer;transition:background .15s,border-color .15s}.btn:disabled{opacity:.6;cursor:not-allowed}.btn-sm{padding:.35rem .75rem;font-size:.8rem}.btn-primary{background:#3b6de0;color:#fff}.btn-primary:hover:not(:disabled){background:#2f5bc4}.btn-secondary{background:#fff;color:#444;border-color:#d0d5dc}.btn-secondary:hover:not(:disabled){background:#f0f2f5}.btn-danger{background:#e74c3c;color:#fff}.btn-danger:hover:not(:disabled){background:#c0392b}.btn-success{background:#27ae60;color:#fff}.btn-success:hover:not(:disabled){background:#219a52}.btn-icon{background:none;border:none;font-size:1.4rem;line-height:1;cursor:pointer;color:#888;padding:0 .25rem}.btn-icon:hover{color:#333}.card{background:#fff;border:1px solid #e0e4e8;border-radius:8px;padding:1.25rem}.card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));grid-gap:1rem;gap:1rem}.card-title{font-size:1rem;font-weight:600;margin-bottom:.25rem}.card-actions{display:flex;gap:.5rem;margin-top:1rem}.card-actions .btn{flex:1 1}.form-group{margin-bottom:1rem}.form-row{display:grid;grid-template-columns:1fr 1fr;grid-gap:1rem;gap:1rem}@media (max-width:600px){.form-row{grid-template-columns:1fr}}.form-label{display:block;margin-bottom:.35rem;font-size:.85rem;font-weight:500;color:#555}.form-input,.form-select,.form-textarea{width:100%;padding:.5rem .75rem;border:1px solid #d0d5dc;border-radius:6px;font-size:.875rem;font-family:inherit;background:#fff}.form-input:focus,.form-select:focus,.form-textarea:focus{outline:none;border-color:#3b6de0;box-shadow:0 0 0 3px rgba(59,109,224,.12)}.form-textarea{resize:vertical;min-height:72px}.form-help{display:block;margin-top:.25rem;font-size:.78rem;color:#888}.form-error{color:#e74c3c;font-size:.8rem;margin-top:.35rem}.form-actions{display:flex;gap:.5rem;margin-top:1.25rem}.form-actions .btn{flex:1 1}.modal-overlay{position:fixed;inset:0;background:rgba(0,0,0,.4);display:flex;align-items:center;justify-content:center;z-index:100;padding:1rem}.modal{background:#fff;border-radius:10px;width:560px;max-width:100%;max-height:90vh;overflow-y:auto;box-shadow:0 8px 30px rgba(0,0,0,.15)}.modal-header{display:flex;justify-content:space-between;align-items:center;padding:1rem 1.25rem;border-bottom:1px solid #e0e4e8}.modal-header h2{font-size:1.1rem;font-weight:600}.modal-body{padding:1.25rem}.file-upload{margin-bottom:.5rem}.file-picker{width:100%}.file-preview{display:flex;flex-direction:column;gap:.5rem;align-items:flex-start}.file-preview img{max-width:100%;max-height:140px;border-radius:6px;border:1px solid #e0e4e8;object-fit:cover}.badge{display:inline-block;padding:.15rem .55rem;border-radius:999px;font-size:.72rem;font-weight:600}.badge-active{background:#d4edda;color:#155724}.badge-inactive{background:#f8d7da;color:#721c24}.badge-pending{background:#fff3cd;color:#856404}.badge-fulfilled{background:#d4edda;color:#155724}.badge-expired{background:#e2e3e5;color:#383d41}.badge-canceled,.badge-cancelled{background:#f8d7da;color:#721c24}.table-wrap{overflow-x:auto;background:#fff;border:1px solid #e0e4e8;border-radius:8px}.table{width:100%;border-collapse:collapse;font-size:.875rem}.table td,.table th{padding:.65rem 1rem;text-align:right;border-bottom:1px solid #eef1f5}.table th{background:#f8f9fb;font-weight:600;color:#555;font-size:.8rem}.table tr:last-child td{border-bottom:none}.table-actions{display:flex;gap:.35rem}.notif-title-cell{max-width:250px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.alert,.empty,.loading{text-align:center;padding:2.5rem 1rem;color:#666}.alert{border-radius:8px;margin-bottom:1rem;text-align:right;padding:.75rem 1rem}.alert-success{background:#d4edda;color:#155724;border:1px solid #c3e6cb}.alert-error{background:#f8d7da;color:#721c24;border:1px solid #f5c6cb}.alert-info{background:#d1ecf1;color:#0c5460;border:1px solid #bee5eb}.product-image{width:100%;height:140px;object-fit:cover;border-radius:6px;margin-bottom:.75rem;background:#f0f2f5}.meta-row{display:flex;flex-wrap:wrap;gap:.5rem 1rem;font-size:.8rem;color:#666;margin-top:.5rem}.meta-row strong{color:#444}.price-tag{font-size:1rem;font-weight:600;color:#3b6de0}.price-discount{font-size:.85rem;color:#e74c3c;text-decoration:line-through;margin-right:.35rem}.auth-page{display:flex;align-items:center;justify-content:center;min-height:100vh;padding:1.5rem}.auth-card{background:#fff;border:1px solid #e0e4e8;border-radius:10px;padding:2rem;width:100%;max-width:400px;box-shadow:0 2px 12px rgba(0,0,0,.06)}.auth-card h2{text-align:center;margin-bottom:1.5rem;font-size:1.2rem}.filter-bar{display:flex;gap:.5rem;margin-bottom:1rem;flex-wrap:wrap}.filter-bar .form-select{width:auto;min-width:160px}.banner-card .banner-main-image{width:100%;height:160px;object-fit:cover;border-radius:6px;margin-bottom:.75rem;background:#f0f2f5}.gallery-section{border:1px solid #e0e4e8;border-radius:6px;padding:.75rem;background:#fafbfc}.gallery-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(100px,1fr));grid-gap:.5rem;gap:.5rem;margin-bottom:.75rem}.gallery-thumb{position:relative;border-radius:6px;overflow:hidden;border:1px solid #e0e4e8;background:#fff}.gallery-thumb img{width:100%;height:80px;object-fit:cover;display:block}.gallery-thumb-actions{display:flex;gap:.2rem;padding:.25rem;justify-content:center}.gallery-thumb-order{position:absolute;top:4px;right:4px;background:rgba(0,0,0,.6);color:#fff;font-size:.65rem;font-weight:600;padding:.1rem .35rem;border-radius:4px;line-height:1}.gallery-add-btn{margin-top:0}@media (max-width:600px){.gallery-grid{grid-template-columns:repeat(auto-fill,minmax(80px,1fr))}}.sync-id-cell{color:#666;text-align:left}.sync-id-cell,.sync-id-text{font-family:monospace;font-size:.8rem;direction:ltr}.sync-id-text{color:#888;margin-top:.15rem}.pagination{display:flex;align-items:center;justify-content:center;gap:1rem;margin-top:1.25rem}.pagination-info{font-size:.85rem;color:#555}.profile-view{max-height:70vh;overflow-y:auto}.profile-header{display:flex;align-items:center;gap:1rem;margin-bottom:1.25rem;padding-bottom:1rem;border-bottom:1px solid #e0e4e8}.profile-avatar{width:64px;height:64px;border-radius:50%;object-fit:cover;border:2px solid #e0e4e8}.profile-name{font-size:1.1rem;font-weight:600}.profile-grid{display:grid;grid-template-columns:1fr 1fr;grid-gap:.75rem;gap:.75rem}.profile-field{display:flex;flex-direction:column;gap:.15rem}.profile-field.full-width{grid-column:1/-1}.profile-field label{font-size:.75rem;font-weight:600;color:#888}.profile-field span{font-size:.9rem;color:#333}.profile-section{margin-top:1rem;padding-top:1rem;border-top:1px solid #eef1f5}.profile-section h4{font-size:.85rem;font-weight:600;color:#555;margin-bottom:.5rem}.profile-tags{display:flex;flex-wrap:wrap;gap:.35rem}.points-value{font-size:1.1rem;font-weight:600;color:#3b6de0}.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);grid-gap:.5rem;gap:.5rem}.stat-box{text-align:center;padding:.5rem;background:#f8f9fb;border-radius:6px}.stat-num{display:block;font-size:1.2rem;font-weight:700;color:#1a1a2e}.stat-label{display:block;font-size:.7rem;color:#888;margin-top:.15rem}@media (max-width:600px){.stats-grid{grid-template-columns:repeat(2,1fr)}}.tab-bar{display:flex;gap:0;border-bottom:2px solid #e0e4e8;margin-bottom:1rem}.tab-btn{padding:.5rem 1rem;background:none;border:none;border-bottom:2px solid transparent;margin-bottom:-2px;font-size:.85rem;font-weight:500;font-family:inherit;color:#666;cursor:pointer;transition:color .15s,border-color .15s}.tab-btn:hover{color:#333}.tab-btn.active{color:#3b6de0;border-bottom-color:#3b6de0}.detail-section{min-height:100px}.detail-section-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.75rem}.detail-section-header h4{font-size:.9rem;font-weight:600;color:#555}.branch-detail-image{width:100%;max-height:200px;object-fit:cover;border-radius:6px;margin-bottom:1rem}.people-list{display:flex;flex-direction:column;gap:.5rem}.people-item{display:flex;justify-content:space-between;align-items:center;padding:.6rem .75rem;background:#f8f9fb;border-radius:6px;border:1px solid #eef1f5}.people-info{display:flex;flex-direction:column;gap:.1rem}.people-name{font-size:.9rem;font-weight:500}.people-sync{font-family:monospace;font-size:.75rem;color:#888;direction:ltr;text-align:right}.empty-text{text-align:center;color:#888;padding:1.5rem;font-size:.9rem}.input-with-search{display:flex;gap:.5rem}.input-with-search .form-input{flex:1 1}.points-display{text-align:center;padding:1.25rem 0}.points-big{display:block;font-size:2rem;font-weight:700;color:#3b6de0}.points-label{display:block;font-size:.8rem;color:#888;margin-top:.25rem}.points-actions{max-width:320px}.points-btn-row{display:flex;gap:.5rem;margin-top:.5rem}.fin-note-cell{max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#666;font-size:.8rem}