:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #f59e0b;
  --bg: #f8fafc;
  --card-bg: #ffffff;
  --text: #1e293b;
  --muted: #64748b;
  --border: #e2e8f0;
  --success: #16a34a;
  --danger: #dc2626;
  --radius: 12px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
html[dir="rtl"] body { font-family: 'Segoe UI', 'Noto Nastaliq Urdu', Tahoma, sans-serif; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.hidden { display: none !important; }
.muted { color: var(--muted); }

/* Header */
.site-header { background: var(--card-bg); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 12px; padding: 12px 20px; }
.site-logo { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; }
.site-name { font-weight: 700; font-size: 1.1rem; flex: 1; }
.lang-switch { display: flex; gap: 6px; }
.lang-btn { border: 1px solid var(--border); background: #fff; padding: 6px 12px; border-radius: 20px; cursor: pointer; font-size: 0.85rem; }
.lang-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Hero */
.hero { background: linear-gradient(135deg, var(--primary), #4f46e5); color: #fff; padding: 60px 0; text-align: center; }
.intro-text { font-size: 2rem; margin: 0 0 12px; }
.hero-text { font-size: 1.15rem; opacity: 0.95; max-width: 700px; margin: 0 auto; }

/* Sections */
.section-title { text-align: center; font-size: 1.6rem; margin-bottom: 30px; }
.portfolio-section, .pricing-section, .category-detail, .status-check-section { padding: 60px 0; }

/* Portfolio grid */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.portfolio-card { background: var(--card-bg); border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.portfolio-card video, .portfolio-card img { width: 100%; height: 180px; object-fit: cover; display: block; background: #000; }
.placeholder-media { height: 180px; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; background: #eef2ff; }
.portfolio-title { padding: 12px 16px; font-weight: 600; }

/* CTA */
.cta-section { background: #0f172a; color: #fff; text-align: center; padding: 60px 0; }
.cta-text { font-size: 1.5rem; margin-bottom: 20px; }

/* Buttons */
.btn { border: none; border-radius: 8px; padding: 10px 20px; cursor: pointer; font-size: 0.95rem; font-weight: 600; transition: transform 0.1s, opacity 0.2s; }
.btn:hover { opacity: 0.92; }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: var(--accent); color: #fff; }
.btn-link { background: transparent; color: var(--primary); padding: 6px; }
.btn-lg { padding: 14px 30px; font-size: 1.05rem; border-radius: 10px; }

/* Categories */
.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.category-card { background: var(--card-bg); border-radius: var(--radius); padding: 24px; box-shadow: 0 2px 10px rgba(0,0,0,0.06); text-align: center; border: 2px solid transparent; transition: border 0.2s; }
.category-card:hover { border-color: var(--primary); }
.category-img { width: 100%; height: 140px; object-fit: cover; border-radius: 8px; margin-bottom: 12px; }
.category-price { font-size: 1.4rem; font-weight: 700; color: var(--primary); margin: 12px 0; }

/* Category detail */
.category-detail { background: var(--card-bg); }
.base-price-row { font-size: 1.2rem; margin: 16px 0; }
.options-list { display: flex; flex-direction: column; gap: 10px; margin: 16px 0 24px; }
.option-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; }
.option-row:hover { background: #f1f5f9; }
.option-name { flex: 1; }
.option-price { color: var(--primary); font-weight: 600; }
.calc-total-row { font-size: 1.4rem; margin: 20px 0; padding: 16px; background: #eef2ff; border-radius: 10px; text-align: center; }

/* Status check */
.status-form { display: flex; gap: 10px; max-width: 500px; margin: 0 auto 20px; }
.status-form input { flex: 1; padding: 12px; border-radius: 8px; border: 1px solid var(--border); }
.status-result { max-width: 500px; margin: 0 auto; }
.status-card { background: var(--card-bg); border-radius: var(--radius); padding: 20px; box-shadow: 0 2px 10px rgba(0,0,0,0.06); text-align: center; }
.status-badge { display: inline-block; padding: 6px 16px; border-radius: 20px; font-weight: 700; margin: 10px 0; }
.status-pending { background: #fef3c7; color: #92400e; }
.status-confirmed { background: #dbeafe; color: #1e40af; }
.status-in-progress { background: #e0e7ff; color: #4338ca; }
.status-completed { background: #dcfce7; color: #166534; }
.status-cancelled { background: #fee2e2; color: #991b1b; }
.error-text { color: var(--danger); text-align: center; }

/* Footer */
.site-footer { background: #0f172a; color: #cbd5e1; text-align: center; padding: 24px 0; font-size: 0.9rem; }

/* Modal */
.modal { position: fixed; inset: 0; background: rgba(15,23,42,0.6); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
.modal-box { background: #fff; border-radius: var(--radius); padding: 30px; max-width: 500px; width: 100%; max-height: 90vh; overflow-y: auto; position: relative; }
.modal-close { position: absolute; top: 12px; inset-inline-end: 16px; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--muted); }
.modal-box form { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; }
.modal-box label { font-weight: 600; margin-top: 10px; font-size: 0.9rem; }
.modal-box input[type=text], .modal-box input[type=email], .modal-box input[type=file] {
  padding: 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 1rem;
}
.modal-box button[type=submit] { margin-top: 20px; }
.order-summary { background: #f1f5f9; border-radius: 8px; padding: 14px; margin-top: 10px; }
.summary-total { margin-top: 8px; font-size: 1.1rem; }
.image-preview-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.preview-thumb { width: 60px; height: 60px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); }

/* Payment */
.price-breakdown { background: #f1f5f9; border-radius: 8px; padding: 16px; margin: 16px 0; }
.price-breakdown div { padding: 4px 0; }
.advance-highlight { color: var(--primary); font-size: 1.1rem; }
.payment-methods-list { display: flex; gap: 12px; flex-wrap: wrap; margin: 12px 0; }
.payment-method-card { border: 2px solid var(--border); border-radius: 10px; padding: 14px; text-align: center; cursor: pointer; min-width: 100px; }
.payment-method-card.selected { border-color: var(--primary); background: #eef2ff; }
.pm-logo { width: 40px; height: 40px; object-fit: contain; margin: 0 auto 6px; }
.pm-logo-placeholder { font-size: 1.6rem; }
.payment-method-detail { background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; padding: 14px; margin-top: 10px; }

/* Confirmation */
.confirm-icon { width: 60px; height: 60px; border-radius: 50%; background: var(--success); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 2rem; margin: 0 auto 16px; }

/* Install popup */
.install-popup { position: fixed; bottom: 16px; left: 16px; right: 16px; z-index: 200; display: flex; justify-content: center; }
.install-popup-box { background: #fff; border-radius: var(--radius); box-shadow: 0 6px 24px rgba(0,0,0,0.2); padding: 16px; display: flex; align-items: center; gap: 14px; max-width: 460px; width: 100%; }
.install-icon { width: 48px; height: 48px; border-radius: 10px; }
.install-text { flex: 1; }
.install-text p { margin: 4px 0 0; font-size: 0.85rem; color: var(--muted); }
.install-actions { display: flex; flex-direction: column; gap: 6px; }

@media (max-width: 600px) {
  .intro-text { font-size: 1.5rem; }
  .install-popup-box { flex-wrap: wrap; }
}
