:root {
  --bg-deep: #06111f;
  --bg-surface: #0b1b30;
  --bg-elevated: #112642;
  --border-subtle: rgba(148, 163, 184, 0.16);
  --border-gold: rgba(212, 175, 55, 0.34);
  --gold: #d4af37;
  --gold-bright: #ebd078;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --success: #10b981;
  --whatsapp: #25d366;
  --danger: #ef4444;
  --radius: 16px;
}

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

body {
  font-family: "Cairo", "Plus Jakarta Sans", sans-serif;
  background: radial-gradient(circle at top right, #0f2947 0%, var(--bg-deep) 58%);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.65;
  overflow-x: hidden;
}

.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(600px circle at 15% 10%, rgba(212, 175, 55, 0.08), transparent 60%),
    radial-gradient(700px circle at 85% 90%, rgba(14, 165, 233, 0.08), transparent 60%);
  z-index: 0;
}

.hidden {
  display: none !important;
}

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(6, 17, 31, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

.topbar-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.brand-emblem {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 22px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.22), rgba(212, 175, 55, 0.06));
  border: 1px solid var(--border-gold);
}

.brand-name {
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
}

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

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

.ai-badge {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
}

.ai-badge.live {
  border-color: rgba(16, 185, 129, 0.45);
  background: rgba(16, 185, 129, 0.12);
  color: #6ee7b7;
}

.ai-badge.demo {
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.12);
  color: #fcd34d;
}

.user-chip {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.14);
  border: 1px solid var(--border-gold);
  color: var(--gold-bright);
}

/* Role Navigation */
.role-nav {
  background: rgba(11, 27, 48, 0.9);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  z-index: 20;
}

.role-nav-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 8px 20px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.nav-tab {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
}

.nav-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.nav-tab.active {
  background: rgba(212, 175, 55, 0.16);
  border-color: var(--border-gold);
  color: var(--gold-bright);
}

/* Container & Layout */
.container {
  position: relative;
  z-index: 1;
  max-width: 1360px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

.hero-card {
  background: linear-gradient(135deg, rgba(17, 38, 66, 0.9), rgba(11, 27, 48, 0.72));
  border: 1px solid var(--border-gold);
  border-radius: 20px;
  padding: 26px 28px;
  margin-bottom: 22px;
}

.hero-card.compact {
  padding: 20px 24px;
}

.hero-card h1 {
  font-size: clamp(1.35rem, 2.5vw, 1.95rem);
  font-weight: 800;
  margin: 10px 0 6px;
  color: #fff;
}

.pill-gold {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.16);
  color: var(--gold-bright);
  border: 1px solid var(--border-gold);
}

.muted {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.studio-grid {
  display: grid;
  grid-template-columns: minmax(360px, 500px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

@media (max-width: 980px) {
  .studio-grid {
    grid-template-columns: 1fr;
  }
}

.two-col-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 22px;
}

.card {
  background: rgba(11, 27, 48, 0.88);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.card-header h2 {
  font-size: 1.08rem;
  font-weight: 800;
}

.step-tag {
  font-size: 0.74rem;
  padding: 3px 9px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

/* Dropzone */
.dropzone {
  border: 2px dashed rgba(212, 175, 55, 0.4);
  border-radius: 14px;
  background: rgba(6, 17, 31, 0.55);
  min-height: 185px;
  display: grid;
  place-items: center;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s, background 0.2s;
  margin-bottom: 16px;
}

.dropzone:hover,
.dropzone.dragover {
  border-color: var(--gold-bright);
  background: rgba(212, 175, 55, 0.06);
}

.dropzone-placeholder {
  text-align: center;
  padding: 24px 16px;
}

.upload-icon {
  font-size: 2.3rem;
  margin-bottom: 6px;
}

.upload-title {
  font-weight: 700;
  font-size: 0.96rem;
}

.upload-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.dropzone-preview {
  position: relative;
  width: 100%;
  height: 230px;
}

.dropzone-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dropzone-preview button {
  position: absolute;
  bottom: 10px;
  left: 10px;
}

/* Forms */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 560px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.field.full {
  grid-column: 1 / -1;
}

.field.flex-end {
  justify-content: flex-end;
}

.field label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #cbd5e1;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
select,
textarea {
  width: 100%;
  background: rgba(6, 17, 31, 0.72);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 10px 12px;
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.18s;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
}

.code-area {
  font-family: Consolas, monospace;
  font-size: 0.84rem;
}

.checkbox-label {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 10px 12px;
  background: rgba(6, 17, 31, 0.55);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
}

.checkbox-label input {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
}

.section-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 18px 0;
}

/* Mode Switch & Packages */
.mode-switch {
  display: flex;
  gap: 6px;
  background: rgba(6, 17, 31, 0.7);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
}

.mode-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.mode-btn.active {
  background: var(--gold);
  color: #06111f;
}

.packages-grid {
  display: grid;
  gap: 10px;
}

.pkg-card {
  background: rgba(6, 17, 31, 0.58);
  border: 1px solid var(--border-subtle);
  border-right: 4px solid var(--gold);
  border-radius: 12px;
  padding: 12px 14px;
}

.pkg-title {
  font-weight: 800;
  font-size: 0.92rem;
}

.pkg-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.categories-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cat-group-title {
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--gold-bright);
}

.swatches-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.swatch-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  background: rgba(6, 17, 31, 0.65);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all 0.16s ease;
  text-align: right;
  color: var(--text-main);
  font-family: inherit;
}

.swatch-card:hover {
  border-color: rgba(212, 175, 55, 0.55);
}

.swatch-card.selected {
  border-color: var(--gold-bright);
  background: rgba(212, 175, 55, 0.14);
}

.swatch-dot {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.25);
  position: relative;
  overflow: hidden;
}

.swatch-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 55%, var(--accent, #000) 55%);
}

.swatch-label {
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.3;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 18px;
  border-radius: 11px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, opacity 0.16s ease, background 0.16s ease;
}

.btn:active {
  transform: scale(0.985);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), #b88c24);
  color: #06111f;
}

.btn-gold:hover {
  filter: brightness(1.07);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25d366, #16a34a);
  color: #041d0f;
}

.btn-outline {
  background: transparent;
  border-color: var(--border-gold);
  color: var(--gold-bright);
}

.btn-outline:hover {
  background: rgba(212, 175, 55, 0.12);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.btn-dark {
  background: rgba(6, 17, 31, 0.85);
  color: #fff;
  border-color: var(--border-subtle);
}

.btn-danger-ghost {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.3);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.8rem;
  border-radius: 9px;
}

.btn-lg {
  padding: 13px 20px;
  font-size: 1rem;
}

.full-width {
  width: 100%;
}

/* Results & Before/After Slider */
.empty-state,
.loading-state {
  min-height: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px;
  gap: 10px;
}

.empty-icon {
  font-size: 3rem;
}

.feature-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 10px;
}

.feature-pills span {
  font-size: 0.8rem;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
}

.spinner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 4px solid rgba(212, 175, 55, 0.2);
  border-top-color: var(--gold);
  animation: spin 0.85s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.diagnosis-box {
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid var(--border-gold);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.diagnosis-box h3 {
  font-size: 0.95rem;
  color: var(--gold-bright);
  margin-bottom: 4px;
}

/* Interactive Before/After Comparator */
.compare-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-gold);
  background: #020812;
  user-select: none;
  margin-bottom: 14px;
}

.compare-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compare-after-layer {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 50%);
}

.compare-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 5;
}

.compare-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: var(--gold);
  z-index: 4;
  pointer-events: none;
}

.compare-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gold);
  color: #06111f;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.compare-tag {
  position: absolute;
  top: 12px;
  z-index: 3;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  background: rgba(6, 17, 31, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.compare-tag.before {
  left: 12px;
}

.compare-tag.after {
  right: 12px;
  border-color: var(--gold);
  color: var(--gold-bright);
}

/* Concept Cards Grid */
.concepts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.concept-card {
  background: rgba(6, 17, 31, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.18s ease;
}

.concept-card:hover,
.concept-card.active {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.concept-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.concept-body {
  padding: 12px;
}

.concept-body h4 {
  font-size: 0.92rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.concept-list {
  list-style: none;
  font-size: 0.8rem;
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 8px;
}

.timeline-badge {
  display: inline-block;
  font-size: 0.74rem;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(14, 165, 233, 0.14);
  color: #7dd3fc;
}

.whatsapp-box {
  background: rgba(37, 211, 102, 0.08);
  border: 1px solid rgba(37, 211, 102, 0.3);
  border-radius: 14px;
  padding: 14px 16px;
}

.whatsapp-box pre {
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 0.86rem;
  color: #e2e8f0;
  background: rgba(6, 17, 31, 0.6);
  padding: 12px;
  border-radius: 10px;
  margin: 10px 0;
}

.actions-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Leads Inbox */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.leads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}

.lead-card {
  background: rgba(11, 27, 48, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lead-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.lead-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.lead-thumbs img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
}

/* Tables & Lists */
.stack-12 {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stack-16 {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(6, 17, 31, 0.6);
  border: 1px solid var(--border-subtle);
}

.table-wrap {
  overflow-x: auto;
}

.audit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.audit-table th,
.audit-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-subtle);
  text-align: right;
}

.audit-table th {
  color: var(--gold-bright);
  font-weight: 800;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 18, 0.78);
  backdrop-filter: blur(6px);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 430px;
  background: var(--bg-surface);
  border: 1px solid var(--border-gold);
  border-radius: 18px;
  padding: 24px;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.icon-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  cursor: pointer;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 22px;
  left: 22px;
  z-index: 60;
  background: #0f2947;
  border: 1px solid var(--gold);
  color: #fff;
  padding: 12px 18px;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  font-weight: 700;
  font-size: 0.88rem;
}

.toast.error {
  border-color: var(--danger);
  background: #3a1219;
}

.mt-16 {
  margin-top: 16px;
}

.mb-16 {
  margin-bottom: 16px;
}

.max-760 {
  max-width: 760px;
}

.mt-8 {
  margin-top: 8px;
}

/* ============================================================================
   PRICING & OFFICIAL GAWDAT MARINE PLAIN-WHITE QUOTATION SHEET
   ============================================================================ */

.pricing-mode-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mode-pill {
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 9px 15px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: rgba(11, 27, 48, 0.85);
  color: var(--text-muted);
  cursor: pointer;
}

.mode-pill.active {
  background: linear-gradient(135deg, var(--gold), #b88c24);
  color: #06111f;
  border-color: var(--gold);
}

.mode-pill.disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.pricing-layout {
  display: grid;
  grid-template-columns: minmax(380px, 1.08fr) minmax(380px, 0.92fr);
  gap: 20px;
  align-items: start;
}

@media (max-width: 1080px) {
  .pricing-layout {
    grid-template-columns: 1fr;
  }
}

.pricing-preview-col {
  position: sticky;
  top: 78px;
}

.p-item-card {
  background: rgba(11, 27, 48, 0.88);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
}

.p-item-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  cursor: pointer;
  background: rgba(6, 17, 31, 0.48);
  font-weight: 800;
  font-size: 0.94rem;
  flex-wrap: wrap;
}

.p-item-head input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
}

.p-item-head small {
  margin-right: auto;
  font-weight: 500;
  font-size: 0.78rem;
}

.p-item-body {
  padding: 14px 16px 16px;
  border-top: 1px solid var(--border-subtle);
}

.sub-box {
  background: rgba(6, 17, 31, 0.55);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px;
}

.warn-banner {
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fde68a;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 700;
}

/* Official Plain-White Gawdat Marine A4 Sheet */
.gm-sheet-host {
  display: flex;
  justify-content: center;
}

.gm-sheet {
  width: 100%;
  max-width: 790px;
  background: #ffffff;
  color: #000000;
  border-radius: 8px;
  padding: 28px 26px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.42);
  direction: rtl;
  font-family: "Cairo", Arial, sans-serif;
}

.gm-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}

.gm-meta {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.55;
}

.gm-meta-title {
  font-size: 1.05rem;
  font-weight: 800;
}

.gm-logo-box {
  background: #a4866b;
  color: #ffffff;
  width: 96px;
  padding: 12px 8px;
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
}

.gm-letters {
  font-size: 2rem;
  line-height: 1;
  letter-spacing: 2px;
}

.gm-sub {
  font-size: 0.52rem;
  letter-spacing: 1px;
  margin-top: 5px;
}

.gm-doc-title {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 800;
  margin: 12px 0;
}

.gm-to {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.gm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  text-align: center;
  margin-bottom: 14px;
}

.gm-table th,
.gm-table td {
  border: 1px solid #000000;
  padding: 7px 8px;
}

.gm-table th {
  background: #f2f2f2;
  font-weight: 800;
}

.gm-sub-row td {
  font-weight: 700;
  text-align: right;
  background: #fafafa;
}

.gm-discount-row td {
  font-weight: 800;
  text-align: right;
  background: #f0fdf4;
  color: #166534;
}

.gm-total-row td {
  font-weight: 800;
  font-size: 0.96rem;
  text-align: right;
  background: #f7f3ee;
  padding: 9px 12px;
}

.gm-tafqeet-row td {
  font-weight: 800;
  text-align: center;
  padding: 8px;
}

.gm-terms {
  font-size: 0.8rem;
  line-height: 1.7;
  color: #1f2937;
  margin-top: 10px;
  padding: 10px 12px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
}

.gm-footer {
  text-align: center;
  margin-top: 22px;
  font-weight: 800;
  font-size: 0.92rem;
}

.gm-footer-brand {
  font-family: Georgia, serif;
  font-size: 1.05rem;
}

.gm-footer-line {
  border-top: 1px solid #000000;
  margin-top: 8px;
  padding-top: 8px;
  font-weight: 600;
  font-size: 0.85rem;
}

.brand-logo-img {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--border-gold);
  background: #fff;
}

.login-gate-wrap {
  min-height: calc(100vh - 150px);
  display: grid;
  place-items: center;
  padding: 20px 0;
}

.login-gate-card {
  width: 100%;
  max-width: 440px;
  background: linear-gradient(145deg, rgba(17, 38, 66, 0.95), rgba(11, 27, 48, 0.92));
  border: 1px solid var(--border-gold);
  border-radius: 22px;
  padding: 32px 28px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.login-gate-card .field {
  text-align: right;
}

.gate-logo {
  width: 112px;
  height: 112px;
  object-fit: contain;
  border-radius: 16px;
  background: #fff;
  padding: 6px;
  margin: 0 auto 14px;
  display: block;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
}

.login-gate-card h1 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 6px;
}

/* Interactive 3-Step Visual Wizard */
.wizard-stepper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.wiz-step {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 10px;
  border-radius: 12px;
  background: rgba(11, 27, 48, 0.85);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.wiz-step.active {
  background: rgba(212, 175, 55, 0.18);
  border-color: var(--gold);
  color: var(--gold-bright);
}

.wiz-step.done {
  border-color: rgba(16, 185, 129, 0.45);
  color: #6ee7b7;
}

.wiz-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
}

.wiz-step.active .wiz-num {
  background: var(--gold);
  color: #06111f;
}

.chip-section label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #cbd5e1;
  margin-bottom: 7px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.choice-chip {
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(6, 17, 31, 0.7);
  border: 1px solid var(--border-subtle);
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.15s ease;
}

.choice-chip.sm {
  font-size: 0.78rem;
  padding: 6px 11px;
}

.choice-chip:hover {
  border-color: rgba(212, 175, 55, 0.55);
}

.choice-chip.active {
  background: rgba(212, 175, 55, 0.2);
  border-color: var(--gold-bright);
  color: var(--gold-bright);
}

.service-tiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 11px;
}

.service-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 10px 14px;
  border-radius: 14px;
  background: rgba(6, 17, 31, 0.68);
  border: 1.5px solid var(--border-subtle);
  color: var(--text-main);
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.18s ease, background 0.18s ease;
}

.service-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 175, 55, 0.6);
}

.service-tile.selected {
  background: linear-gradient(160deg, rgba(212, 175, 55, 0.2), rgba(164, 134, 107, 0.12));
  border-color: var(--gold-bright);
  box-shadow: 0 8px 22px rgba(212, 175, 55, 0.16);
}

.tile-check {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.service-tile.selected .tile-check {
  background: var(--gold);
  color: #06111f;
}

.tile-svg {
  width: 54px;
  height: 54px;
  margin-bottom: 8px;
}

.tile-svg svg {
  width: 100%;
  height: 100%;
}

.tile-title {
  font-weight: 800;
  font-size: 0.88rem;
  margin-bottom: 3px;
}

.tile-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.gm-real-logo {
  width: 108px;
  height: 108px;
  object-fit: contain;
  display: block;
}

@media print {
  body {
    background: #ffffff !important;
  }
  .topbar,
  .role-nav,
  .bg-glow,
  .no-print,
  .toast {
    display: none !important;
  }
  .container {
    padding: 0 !important;
    max-width: 100% !important;
  }
  .pricing-layout {
    display: block !important;
  }
  .gm-sheet {
    box-shadow: none !important;
    max-width: 100% !important;
    padding: 0 !important;
  }
}
