/* Shinchau Brand & ERP Design System
   Palette from live shinchau.com:
   --navy-950: #04132c | --navy-900: #082149 | --blue-800: #1a4884
   --blue-600: #196bde | --blue-500: #3182ce | --whatsapp: #25d366
*/
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Arabic:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --navy-950: #04122a;
  --navy-900: #082149;
  --blue-800: #1a4884;
  --blue-600: #196bde;
  --blue-500: #3182ce;
  --blue-100: #e8f1fd;
  --whatsapp: #20bd5a;
  --whatsapp-dark: #159947;
  --bg-light: #f6f9fc;
  --surface: #ffffff;
  --text-main: #0f172a;
  --text-muted: #475569;
  --border: #e2e8f0;
  --danger: #dc2626;
  --warning: #d97706;
  --success: #16a34a;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-sm: 0 2px 8px rgba(8, 33, 73, 0.06);
  --shadow-md: 0 12px 32px rgba(8, 33, 73, 0.10);
  --shadow-lg: 0 24px 56px rgba(8, 33, 73, 0.18);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', 'Noto Sans Arabic', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-light);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

[dir="rtl"] {
  font-family: 'Noto Sans Arabic', 'Plus Jakarta Sans', sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: 0.95rem;
}

/* Staging Top Ribbon */
.staging-ribbon {
  background: linear-gradient(90deg, #082149 0%, #196bde 50%, #082149 100%);
  color: #fff;
  font-size: 0.80rem;
  font-weight: 600;
  padding: 6px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.staging-pill {
  background: #fcb900;
  color: #082149;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Public Navbar */
.pub-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.pub-nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--navy-900);
}

.brand-lockup img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--text-muted);
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--blue-600);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switcher {
  display: inline-flex;
  background: #edf2f7;
  padding: 3px;
  border-radius: 999px;
  gap: 2px;
}

.lang-btn {
  border: none;
  background: transparent;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
}

.lang-btn.active {
  background: var(--navy-900);
  color: #fff;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-800));
  color: #fff;
  box-shadow: 0 6px 20px rgba(25, 107, 222, 0.30);
}

.btn-navy {
  background: var(--navy-900);
  color: #fff;
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 6px 18px rgba(32, 189, 90, 0.28);
}

.btn-whatsapp:hover {
  background: var(--whatsapp-dark);
}

.btn-outline {
  background: #fff;
  color: var(--navy-900);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--blue-600);
  color: var(--blue-600);
}

.btn-danger {
  background: #fee2e2;
  color: var(--danger);
}

.btn-sm {
  padding: 6px 13px;
  font-size: 0.82rem;
  border-radius: 10px;
}

/* Hero Section */
.hero {
  position: relative;
  background: radial-gradient(circle at 80% 20%, rgba(25, 107, 222, 0.42), transparent 50%),
              linear-gradient(125deg, var(--navy-950) 0%, var(--navy-900) 55%, var(--blue-800) 100%);
  color: #fff;
  overflow: hidden;
  padding: 84px 24px 92px;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  background: url('/assets/hero-rocket.webp') center/cover no-repeat;
  opacity: 0.16;
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.83rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: #8ed1fc;
}

.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.45rem);
  line-height: 1.18;
  font-weight: 800;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 640px;
  margin-bottom: 30px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.hero-logo-wrap {
  width: 112px;
  height: 112px;
  background: #fff;
  border-radius: 28px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.hero-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Sections */
.section {
  max-width: 1220px;
  margin: 0 auto;
  padding: 76px 24px;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.section-tag {
  display: inline-block;
  color: var(--blue-600);
  background: var(--blue-100);
  padding: 5px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.82rem;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--navy-900);
  font-weight: 800;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.04rem;
}

/* Stats Grid */
.stats-band {
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  max-width: 1220px;
  margin: 0 auto;
  padding: 40px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}

.stat-item {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--bg-light);
  border: 1px solid var(--border);
}

.stat-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--blue-600);
  line-height: 1.1;
  margin-bottom: 6px;
}

.stat-label {
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 4px;
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
  align-items: stretch;
}

.price-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 22px;
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.price-card.popular {
  border: 2.5px solid var(--blue-600);
  background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
  box-shadow: var(--shadow-md);
}

.pop-badge {
  position: absolute;
  top: -13px;
  inset-inline-end: 24px;
  background: var(--blue-600);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 999px;
}

.price-amounts {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin: 18px 0 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.price-big {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--navy-900);
}

.price-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.price-features {
  list-style: none;
  margin-bottom: 28px;
  flex: 1;
}

.price-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 11px;
  font-size: 0.94rem;
}

.check-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #dcfce7;
  color: #15803d;
  font-weight: 800;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Feature & Testimonial Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 24px;
}

.info-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.info-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--blue-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  margin-bottom: 16px;
}

.info-card h3 {
  font-size: 1.15rem;
  color: var(--navy-900);
  margin-bottom: 8px;
}

.portfolio-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.domain-showcase-pill {
  background: #fff;
  border: 1px solid var(--border);
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 700;
  color: var(--navy-900);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s, color 0.15s;
}

.domain-showcase-pill:hover {
  border-color: var(--blue-600);
  color: var(--blue-600);
}

/* Contact Grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--navy-900);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 11px;
  background: #fff;
  color: var(--text-main);
  transition: border-color 0.15s;
}

.form-control:focus {
  outline: none;
  border-color: var(--blue-600);
}

/* Footer */
.pub-footer {
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.8);
  padding: 56px 24px 36px;
}

.pub-footer-inner {
  max-width: 1220px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.social-row {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.social-chip {
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 600;
}

.social-chip:hover {
  background: var(--blue-600);
}

/* ================= ADMIN ERP SHELL (Always LTR English) ================= */
.erp-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 35px);
  direction: ltr;
  text-align: left;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.erp-sidebar {
  background: var(--navy-900);
  color: #fff;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.erp-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 10px;
}

.erp-brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: #fff;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.erp-brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.erp-nav-btn {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.78);
  padding: 11px 14px;
  border-radius: 11px;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.15s;
}

.erp-nav-btn:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.erp-nav-btn.active {
  background: var(--blue-600);
  color: #fff;
  box-shadow: 0 4px 14px rgba(25, 107, 222, 0.4);
}

.erp-badge {
  background: rgba(255,255,255,0.2);
  color: #fff;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
}

.erp-badge.warn {
  background: #fcb900;
  color: #082149;
}

.erp-main {
  padding: 28px 32px;
  overflow-x: auto;
  background: #f3f6fb;
}

.erp-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.erp-topbar h1 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--navy-900);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.kpi-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.kpi-label {
  font-size: 0.80rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.kpi-val {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--navy-900);
}

.kpi-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.panel-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy-900);
}

.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 16px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table.erp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.89rem;
}

table.erp-table th {
  text-align: left;
  padding: 11px 12px;
  background: #f8fafc;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1.5px solid var(--border);
}

table.erp-table td {
  padding: 12px;
  border-bottom: 1px solid #eef2f6;
  vertical-align: middle;
}

table.erp-table tr:hover td {
  background: #f9fbff;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
}

.tag-active { background: #dcfce7; color: #15803d; }
.tag-dead { background: #f1f5f9; color: #64748b; }
.tag-xom { background: #e0e7ff; color: #3730a3; }
.tag-urgent { background: #fee2e2; color: #b91c1c; }
.tag-soon { background: #fef3c7; color: #b45309; }
.tag-qarz { background: #ffedd5; color: #c2410c; }

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 18, 42, 0.62);
  backdrop-filter: blur(4px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-card {
  background: #fff;
  border-radius: 20px;
  max-width: 780px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  box-shadow: var(--shadow-lg);
  direction: ltr;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}

/* ================= PRINTABLE 3-LANGUAGE INVOICE SHEET ================= */
.invoice-sheet {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  max-width: 840px;
  margin: 0 auto;
  padding: 44px;
  box-shadow: var(--shadow-md);
  color: #0f172a;
}

.invoice-header-band {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding-bottom: 26px;
  border-bottom: 3px solid var(--navy-900);
  margin-bottom: 28px;
}

.invoice-logo-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.invoice-logo-row img {
  width: 62px;
  height: 62px;
  object-fit: contain;
}

.invoice-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

.invoice-box {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
}

.invoice-totals {
  max-width: 380px;
  margin-inline-start: auto;
  margin-top: 22px;
  border: 1.5px solid var(--navy-900);
  border-radius: 12px;
  overflow: hidden;
}

.invoice-total-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.94rem;
}

.invoice-total-row.highlight {
  background: var(--navy-900);
  color: #fff;
  font-weight: 800;
  font-size: 1.06rem;
  border-bottom: none;
}

@media (max-width: 920px) {
  .hero-inner, .contact-grid, .erp-layout, .form-grid-2, .form-grid-3, .invoice-meta-grid {
    grid-template-columns: 1fr;
  }
  .erp-main {
    padding: 18px;
  }
}

@media print {
  body {
    background: #fff !important;
  }
  .no-print, .staging-ribbon, .erp-sidebar, .erp-topbar {
    display: none !important;
  }
  .erp-layout {
    display: block !important;
  }
  .erp-main {
    padding: 0 !important;
    background: #fff !important;
  }
  .invoice-sheet {
    border: none !important;
    box-shadow: none !important;
    padding: 12px !important;
    max-width: 100% !important;
  }
}
