.darobox-wrapper, .darobox-wrapper * ,
.darobox-track-box, .darobox-track-box *,
.darobox-modal-overlay, .darobox-modal-overlay * {
	box-sizing: border-box;
	font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
}

/* ---------- Hero ---------- */
.darobox-hero {
	text-align: center;
	padding: 48px 16px;
	background: linear-gradient(180deg, #ecfdf5 0%, #ffffff 100%);
	border-radius: 24px;
}
.darobox-hero-icon {
	width: 72px; height: 72px; margin: 0 auto 16px;
	display: flex; align-items: center; justify-content: center;
	background: #fff; border-radius: 20px; font-size: 34px;
	box-shadow: 0 10px 25px rgba(0,0,0,.08);
}
.darobox-hero-title { font-size: 28px; font-weight: 800; color: #1e293b; margin: 0 0 8px; }
.darobox-hero-desc { color: #64748b; font-size: 14px; margin: 0 0 24px; }

.darobox-btn {
	display: inline-flex; align-items: center; gap: 8px;
	border: none; cursor: pointer; border-radius: 14px;
	font-weight: 700; font-size: 15px; padding: 14px 32px;
	transition: all .2s ease;
}
.darobox-btn-primary {
	background: linear-gradient(90deg, #14b8a6, #10b981);
	color: #fff; box-shadow: 0 10px 20px rgba(16,185,129,.25);
}
.darobox-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 26px rgba(16,185,129,.32); }
.darobox-btn-dark { background: #1e293b; color: #fff; }
.darobox-btn-dark:hover { background: #0f172a; }
.darobox-btn-outline { background: #fff; border: 1px solid #e2e8f0; color: #475569; }
.darobox-btn-outline:hover { background: #f8fafc; }

/* ---------- Track order box ---------- */
.darobox-track-box {
	max-width: 640px; margin: 24px auto; background: #fff;
	border-radius: 20px; padding: 28px; box-shadow: 0 10px 30px rgba(0,0,0,.06);
}
.darobox-track-title { margin: 0 0 4px; font-size: 17px; font-weight: 800; color: #1e293b; }
.darobox-track-desc { margin: 0 0 16px; font-size: 13px; color: #64748b; }
.darobox-track-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
@media (max-width: 560px) { .darobox-track-fields { grid-template-columns: 1fr; } }
.darobox-track-fields input {
	width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid #e2e8f0; font-size: 14px; outline: none;
}
.darobox-track-fields input:focus { border-color: #14b8a6; box-shadow: 0 0 0 3px rgba(20,184,166,.15); }
#darobox-track-result { margin-top: 16px; }
.darobox-result-card { background: #f8fafc; border-radius: 14px; padding: 14px 16px; border: 1px solid #f1f5f9; }
.darobox-result-error { background: #fef2f2; color: #dc2626; border-radius: 12px; padding: 12px 16px; font-size: 13px; }
.darobox-badge { border-radius: 999px; padding: 4px 12px; font-size: 12px; font-weight: 700; }

/* ---------- Modal (centered, not from bottom) ---------- */
.darobox-modal-overlay {
	position: fixed; inset: 0; z-index: 99999;
	background: rgba(15,23,42,.6); backdrop-filter: blur(3px);
	display: flex; align-items: center; justify-content: center;
	padding: 16px; animation: dbFade .18s ease-out;
}
@keyframes dbFade { from { opacity: 0 } to { opacity: 1 } }
@keyframes dbPop { from { opacity: 0; transform: translateY(10px) scale(.97);} to { opacity: 1; transform: translateY(0) scale(1);} }

.darobox-modal-box {
	background: #fff; border-radius: 24px; width: 100%; max-width: 640px;
	max-height: 92vh; overflow: hidden; display: flex; flex-direction: column;
	box-shadow: 0 30px 60px rgba(0,0,0,.3); animation: dbPop .2s ease-out;
	position: relative;
}
.darobox-modal-box.darobox-type-popup { max-width: 520px; }

.darobox-modal-header {
	display: flex; align-items: center; justify-content: space-between;
	padding: 18px 22px; border-bottom: 1px solid #f1f5f9;
}
.darobox-modal-title { font-size: 16px; font-weight: 800; color: #1e293b; margin: 0; }
.darobox-modal-steps { display: flex; gap: 6px; margin-top: 8px; }
.darobox-modal-steps span { height: 6px; border-radius: 4px; background: #e2e8f0; width: 16px; transition: all .2s; }
.darobox-modal-steps span.active { width: 32px; background: #14b8a6; }
.darobox-modal-close {
	width: 34px; height: 34px; border-radius: 999px; border: none; background: #f1f5f9;
	color: #64748b; font-size: 14px; cursor: pointer;
}
.darobox-modal-close:hover { background: #e2e8f0; }
.darobox-modal-body { padding: 20px 22px; overflow-y: auto; flex: 1; }
.darobox-modal-footer { padding: 16px 22px; border-top: 1px solid #f1f5f9; display: flex; gap: 12px; }

/* type select grid */
.darobox-type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
@media (max-width: 480px) { .darobox-type-grid { grid-template-columns: 1fr; } }
.darobox-type-option {
	display: flex; align-items: center; gap: 10px; text-align: right;
	border: 1px solid #e2e8f0; background: #f8fafc; border-radius: 16px; padding: 14px;
	cursor: pointer; transition: all .15s;
}
.darobox-type-option:hover { border-color: #14b8a6; background: #ecfdf5; transform: translateY(-2px); }
.darobox-type-option .icon {
	width: 44px; height: 44px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
	background: #fff; border-radius: 12px; font-size: 22px; box-shadow: 0 2px 6px rgba(0,0,0,.06);
}
.darobox-type-option .title { font-size: 13px; font-weight: 800; color: #1e293b; display: block; }
.darobox-type-option .desc { font-size: 11px; color: #64748b; display: block; margin-top: 2px; }

/* form elements */
.darobox-field { margin-bottom: 14px; }
.darobox-field label { display: block; font-size: 12px; font-weight: 600; color: #64748b; margin-bottom: 6px; }
.darobox-field input[type="text"],
.darobox-field input[type="tel"],
.darobox-field input[type="number"],
.darobox-field select,
.darobox-field textarea {
	width: 100%; padding: 11px 13px; border-radius: 10px; border: 1px solid #e2e8f0; font-size: 13.5px; outline: none;
	background: #fff;
}
.darobox-field input:focus, .darobox-field select:focus, .darobox-field textarea:focus {
	border-color: #14b8a6; box-shadow: 0 0 0 3px rgba(20,184,166,.12);
}
.darobox-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .darobox-grid-2 { grid-template-columns: 1fr; } }

.darobox-medicine-card { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 16px; padding: 16px; margin-bottom: 14px; position: relative; }
.darobox-medicine-card .badge { font-size: 11px; font-weight: 800; color: #0d9488; margin-bottom: 8px; display: block; }
.darobox-remove-item {
	position: absolute; top: -10px; left: -10px; width: 26px; height: 26px; border-radius: 999px;
	background: #f43f5e; color: #fff; border: none; font-size: 12px; cursor: pointer; box-shadow: 0 3px 8px rgba(244,63,94,.4);
}
.darobox-qty {
	display: flex; align-items: center; border: 1px solid #e2e8f0; border-radius: 10px; overflow: hidden; background: #fff;
}
.darobox-qty button {
	width: 40px; height: 40px; border: none; background: #f1f5f9; font-size: 18px; font-weight: 700; cursor: pointer; color: #475569;
}
.darobox-qty button.plus { background: #ecfdf5; color: #0d9488; }
.darobox-qty .val { flex: 1; text-align: center; font-size: 13px; font-weight: 700; color: #334155; }
.darobox-qty .val small { font-weight: 400; color: #94a3b8; font-size: 11px; }

.darobox-file-btn {
	display: flex; align-items: center; justify-content: center; gap: 6px; height: 40px; border-radius: 10px;
	border: 1px dashed #cbd5e1; background: #fff; font-size: 12px; color: #64748b; cursor: pointer;
}
.darobox-file-btn:hover { border-color: #14b8a6; color: #0d9488; }
.darobox-file-name { font-size: 11px; color: #0d9488; margin-top: 4px; }

.darobox-add-medicine {
	width: 100%; padding: 13px; border-radius: 14px; border: 2px dashed #5eead4; background: #f0fdfa;
	color: #0d9488; font-weight: 800; font-size: 13px; cursor: pointer; margin-bottom: 14px;
}
.darobox-add-medicine:hover { background: #ccfbf1; }

.darobox-upload-box {
	border: 2px dashed #cbd5e1; border-radius: 16px; padding: 36px 16px; text-align: center; cursor: pointer; background: #f8fafc;
}
.darobox-upload-box:hover { border-color: #14b8a6; background: #ecfdf5; }

.darobox-review-item { display: flex; align-items: center; justify-content: space-between; background: #f8fafc; border-radius: 10px; padding: 10px 12px; font-size: 13px; margin-bottom: 8px; }
.darobox-review-block { margin-bottom: 16px; }
.darobox-review-block h4 { font-size: 12px; font-weight: 800; color: #64748b; margin: 0 0 8px; }
.darobox-note-box { background: #fffbeb; color: #b45309; font-size: 12px; padding: 10px 14px; border-radius: 10px; margin-bottom: 14px; }
.darobox-info-box { background: #f0fdfa; border: 1px dashed #5eead4; color: #0f766e; font-size: 12px; padding: 12px 14px; border-radius: 12px; margin-top: 6px; }

.darobox-success { text-align: center; padding: 24px 8px; }
.darobox-success .icon { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 999px; background: #d1fae5; display: flex; align-items: center; justify-content: center; font-size: 32px; }
.darobox-success h4 { font-size: 17px; font-weight: 800; color: #1e293b; margin: 0 0 8px; }
.darobox-success p { font-size: 13px; color: #64748b; max-width: 380px; margin: 0 auto 16px; }
.darobox-tracking-box { border: 2px dashed #5eead4; background: #f0fdfa; border-radius: 16px; padding: 14px; margin-bottom: 16px; }
.darobox-tracking-box .code { font-size: 18px; font-weight: 900; color: #0d9488; letter-spacing: 1px; margin-top: 4px; }

.darobox-error-text { color: #dc2626; font-size: 12px; margin-top: 6px; }
.darobox-loading { text-align: center; padding: 30px; color: #64748b; font-size: 13px; }
