.zarinads-wrapper { font-family: inherit; max-width: 1350px; margin: 0 auto; direction: rtl; box-sizing: border-box; } .zarinads-wrapper * { box-sizing: border-box; } .zarinads-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 25px; } .zarinads-tab { padding: 15px; text-align: center; background: #f9fafb; color: #111827; border-radius: 12px; cursor: pointer; border: 2px solid #e5e7eb; font-weight: bold; font-size: 15px; position: relative; overflow: hidden; transition: 0.3s; display: flex; align-items: center; justify-content: center; gap: 8px; } .zarinads-tab i { font-size: 20px; } .zarinads-tab.active { background: #FFB900 !important; border-color: #FFB900 !important; color: #fff !important; } .zarinads-tab.coming-soon { opacity: 0.7; cursor: not-allowed; } .zarinads-tab.coming-soon::after { content: "به زودی"; position: absolute; top: -10px; right: -25px; background: #ef4444; color: #fff; font-size: 11px; padding: 20px 25px 5px; transform: rotate(45deg); font-weight: bold; } .zarinads-content { display: none; background: #fff; padding: 30px; border-radius: 16px; border: 1px solid #e5e7eb; animation: fadeIn 0.4s; } .zarinads-content.active { display: block; } .zarinads-card { text-align: center; } .zarinads-card img { width: 100%; object-fit: cover; border-radius: 12px; margin-bottom: 20px; box-shadow: 0 10px 25px rgba(0,0,0,0.08); border: 1px solid #f3f4f6; } .zarinads-card h3 { color: #111827; font-size: 20px; margin-bottom: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 10px; } .zarinads-card p { color: #4b5563; font-size: 14px; line-height: 1.8; margin-bottom: 20px; max-width: 600px; margin-left: auto; margin-right: auto; } .zarin-alert-info { background: #eff6ff; color: #1d4ed8; padding: 8px 15px; border-radius: 8px; font-size: 13px; margin-bottom: 15px; display: inline-flex; align-items: center; gap: 5px; border: 1px solid #bfdbfe; font-weight: bold; } .zarinads-price-badge { display: inline-block; background: #fff8e1; color: #FFB900; padding: 5px 15px; border-radius: 50px; font-weight: bold; font-size: 15px; margin-bottom: 20px; border: 1px solid #FFB900; } .zarin-alert-booked { background: #eff6ff; color: #1d4ed8; padding: 12px; border-radius: 10px; margin-bottom: 20px; font-weight: bold; border: 1px solid #bfdbfe; display: inline-block; } .zarin-btn-primary { background: #FFB900 !important; color: #fff !important; padding: 14px 25px; font-size: 16px; border: none; border-radius: 12px; cursor: pointer; font-weight: bold; width: 100%; max-width: 380px; margin: 0 auto; display: flex; justify-content: center; align-items: center; gap: 8px; transition: all 0.3s ease; position: relative; overflow: hidden; } .zarin-btn-primary:not(:disabled):hover { background: #e5a700 !important; color: #fff !important; box-shadow: 0 4px 15px rgba(255, 185, 0, 0.4) !important; transform: translateY(-2px); } .zarin-btn-primary:disabled { background: #d1d5db !important; color: #6b7280 !important; cursor: not-allowed; } .zarin-btn-primary svg { width: 22px; height: 22px; } .zarin-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(17, 24, 39, 0.7); backdrop-filter: blur(5px); z-index: 99999; display: flex; justify-content: center; align-items: center; direction: rtl; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; } .zarin-modal-overlay.show { opacity: 1; visibility: visible; } @keyframes modalEnter { from { transform: translateY(-100vh); opacity: 0; } to { transform: translateY(0); opacity: 1; } } @keyframes modalExit { from { transform: translateY(0); opacity: 1; } to { transform: translateY(-100vh); opacity: 0; } } .zarin-modal-box { background: #fff; width: 95%; max-width: 700px; border-radius: 20px; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.3); animation: modalEnter 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards; position: relative; overflow: hidden; padding-bottom: 75px; } .zarin-modal-overlay.closing .zarin-modal-box { animation: modalExit 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards; } .zarin-modal-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px dashed #e5e7eb; padding: 15px 25px; background: #f9fafb; } .zarin-modal-header h3 { margin: 0; color: #111827; font-size: 18px; font-weight: bold; display: flex; align-items: center; gap: 8px; } .zarin-modal-close { cursor: pointer; color: #6b7280; font-size: 24px; transition: 0.2s; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: #f3f4f6; } .zarin-modal-close:hover { color: #ef4444; background: #fee2e2; } .zarin-modal-body { padding: 20px 25px; max-height: calc(85vh - 130px); overflow-y: auto; } .zarin-modal-body::-webkit-scrollbar { width: 5px; } .zarin-modal-body::-webkit-scrollbar-track { background: #ffffff; } .zarin-modal-body::-webkit-scrollbar-thumb { background: #FFB900; border-radius: 10px; } .zarin-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 15px; } .zarin-field-group { text-align: right; } .zarin-field-group label { display: flex; align-items: center; font-weight: bold; color: #374151; margin-bottom: 10px; font-size: 13px; } .z-badge-req { background: #fee2e2; color: #ef4444; font-size: 10px; padding: 2px 5px 4px 5px; border-radius: 4px; margin-right: 6px; font-weight: 500; } .zarin-field-group input, .zarin-field-group textarea { width: 100%; padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 8px; background: #f9fafb; font-family: inherit; font-size: 13px; transition: 0.2s; box-sizing: border-box; } .zarin-field-group input:focus, .zarin-field-group textarea:focus { border-color: #FFB900; background: #fff; outline: none; box-shadow: 0 0 0 3px rgba(255, 185, 0, 0.1); } .z-upload-wrapper { display: flex; flex-direction: column; background: #fff8e1; border: 2px dashed #FFB900; padding: 15px; border-radius: 8px; cursor: pointer; position: relative; text-align: center; align-items: center; transition: 0.2s; margin-bottom: 15px; } .z-upload-wrapper:hover { background: #fff3c4; } .z-upload-content { display: flex; flex-direction: column; align-items: center; gap: 5px; } .z-upload-icon i { font-size: 32px; color: #FFB900; } .z-upload-texts h4 { margin: 0; color: #111827; font-size: 14px; font-weight: bold; } .z-upload-texts p { margin: 5px 0 0 0; color: #6b7280; font-size: 12px; } #z_banner_file { position: absolute; width: 100%; height: 100%; top: 0; left: 0; opacity: 0; cursor: pointer; z-index: 10; } .z-horiz-progress-container { width: 100%; height: 6px; background: #e5e7eb; border-radius: 10px; margin-top: 10px; overflow: hidden; display: none; z-index: 5; position: relative; } .z-horiz-progress-bar { width: 0%; height: 100%; background: #10b981; transition: width 0.2s ease; } #z_upload_preview { width: 100%; max-height: 100px; object-fit: contain; border-radius: 6px; display: none; margin-top: 10px; position: relative; z-index: 5; } .zarinads-durations { display: flex; gap: 8px; margin-bottom: 15px; } .z-dur-btn { flex: 1; padding: 8px; background: #f9fafb; color: #6b7280; border: 1px solid #d1d5db; border-radius: 8px; cursor: pointer; font-weight: bold; text-align: center; font-size: 13px; transition: 0.2s; } .z-dur-btn:hover { background: #f3f4f6; } .z-dur-btn.active { background: #FFB900 !important; color: #fff !important; border-color: #FFB900 !important; box-shadow: 0 4px 10px rgba(255, 185, 0, 0.3); } .z-dur-btn.disabled { opacity: 0.5; cursor: not-allowed; background: #e5e7eb !important; border-color: #d1d5db !important; color: #9ca3af !important; box-shadow: none !important; } .zarinads-factor { background: #f9fafb; border: 1px solid #e5e7eb; padding: 15px; border-radius: 8px; text-align: right; } .zarinads-factor p { margin: 0 0 8px 0; font-size: 13px; color: #4b5563; display: flex; justify-content: space-between; } .zarinads-factor h4 { margin: 8px 0 0 0; color: #111827; font-size: 16px; font-weight: bold; display: flex; justify-content: space-between; border-top: 1px dashed #d1d5db; padding-top: 8px; } .z-modal-footer { position: absolute; bottom: 0; left: 0; width: 100%; background: #fff; border-top: 1px solid #e5e7eb; } .z-modal-footer button { width: 100%; border-radius: 0; padding: 20px; font-size: 16px; margin: 0; max-width: 100%; box-shadow: none !important; } .z-loader { display: none; gap: 5px; align-items: center; justify-content: center; } .z-loader span { width: 8px; height: 8px; background: #fff; border-radius: 50%; display: inline-block; animation: zbounce 0.6s infinite alternate; } .z-loader span:nth-child(2) { animation-delay: 0.2s; } .z-loader span:nth-child(3) { animation-delay: 0.4s; } @keyframes zbounce { 0% { transform: translateY(0); opacity: 0.6; } 100% { transform: translateY(-5px); opacity: 1; } } .loading-state .z-btn-text, .loading-state svg { display: none !important; } .loading-state .z-loader { display: flex !important; } @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } .z-receipt-modal { display:none; position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.8); z-index:999999; justify-content:center; align-items:center; direction:rtl; font-family:inherit; } .z-receipt-box { background:#fff; border-radius:16px; width:90%; max-width:500px; padding:30px; text-align:center; position:relative; overflow:hidden; } .z-receipt-box h2 { color:#10b981; margin-top:0; font-size:22px; display:flex; align-items:center; justify-content:center; gap:10px; } .z-receipt-details { text-align:right; background:#f9fafb; padding:15px; border-radius:10px; margin-top:20px; font-size:14px; line-height:2; border:1px solid #e5e7eb; } .z-receipt-details span { font-weight:bold; color:#111827; float:left; } .z-receipt-btn { background:#FFB900; color:#fff; border:none; padding:12px 25px; border-radius:8px; font-size:16px; font-weight:bold; cursor:pointer; width:100%; margin-top:20px; display:block; text-decoration:none; text-align:center; box-sizing:border-box; } .z-receipt-banner { width:100%; max-height:120px; object-fit:contain; border-radius:8px; margin-top:15px; border:1px solid #d1d5db; } .z-toast { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%); background: #111827; color: #fff; padding: 12px 24px; border-radius: 50px; font-size: 14px; font-weight: bold; z-index: 999999; opacity: 0; visibility: hidden; transition: 0.3s; box-shadow: 0 10px 25px rgba(0,0,0,0.2); display: flex; align-items: center; gap: 10px; } .z-toast.show { opacity: 1; visibility: visible; bottom: 50px; } @media (max-width: 768px) { .zarinads-tabs { grid-template-columns: 1fr 1fr; } .zarin-grid-2 { grid-template-columns: 1fr; gap: 10px; } .zarinads-durations { flex-wrap: wrap; } .z-dur-btn { min-width: 30%; } .zarin-modal-box { max-height: 90vh; } .zarin-modal-body { max-height: calc(90vh - 130px); } } .z-hist-wrapper { font-family: inherit; direction: rtl; max-width: 1350px; margin: 0 auto; box-sizing: border-box; } .z-hist-wrapper * { box-sizing: border-box; } .z-hist-empty { background: #f9fafb; border: 2px dashed #d1d5db; padding: 40px; text-align: center; border-radius: 12px; color: #6b7280; font-weight: bold; font-size: 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; } .z-hist-empty i { font-size: 40px; color: #9ca3af; } .z-hist-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 20px; margin-bottom: 20px; display: flex; gap: 20px; align-items: center; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); transition: 0.3s; } .z-hist-img { width: 120px; height: 120px; border-radius: 12px; object-fit: cover; border: 1px solid #f3f4f6; flex-shrink: 0; background: #f9fafb; } .z-hist-info { flex-grow: 1; } .z-hist-info h4 { margin: 0 0 10px 0; font-size: 18px; color: #111827; display: flex; justify-content: space-between; align-items: center; } .z-hist-status { font-size: 12px; padding: 4px 10px; border-radius: 50px; font-weight: bold; } .z-s-active { background: #d1fae5; color: #065f46; } .z-s-expired { background: #f3f4f6; color: #4b5563; } .z-s-pending { background: #fef3c7; color: #92400e; } .z-s-queue { background: #dbeafe; color: #1e3a8a; } .z-hist-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; font-size: 13px; color: #4b5563; margin-bottom: 15px; } .z-hist-grid span { font-weight: bold; color: #111827; } .z-hist-actions { display: flex; gap: 10px; border-top: 1px dashed #e5e7eb; padding-top: 15px; } .z-btn-renew { background: #10b981; color: white; border: none; padding: 8px 20px; border-radius: 8px; font-size: 14px; font-weight: bold; cursor: pointer; transition: 0.2s; display: flex; align-items: center; gap: 5px; } .z-btn-renew:hover { background: #059669; } .z-toast { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%); background: #111827; color: #fff; padding: 12px 24px; border-radius: 50px; font-size: 14px; font-weight: bold; z-index: 999999; opacity: 0; visibility: hidden; transition: 0.3s; box-shadow: 0 10px 25px rgba(0,0,0,0.2); display: flex; align-items: center; gap: 10px; } .z-toast.show { opacity: 1; visibility: visible; bottom: 50px; } @media (max-width: 600px) { .z-hist-card { flex-direction: column; text-align: center; } .z-hist-info h4 { flex-direction: column; gap: 10px; } .z-hist-grid { grid-template-columns: 1fr; text-align: right; } }