/* Tripply365 - الهجرة: طبقة تصميم فاخرة مبنية فوق tripply365-theme.css المشترك */

:root {
  --imm-navy-deep: #0a1526;
  --imm-navy: #0f2038;
  --imm-navy-light: #16304f;
  --imm-gold: #c9a227;
  --imm-gold-light: #e3c465;
  --imm-paper: #f8f7f4;
  --imm-line: #e4e1d8;
  --imm-text-muted: #5c6b82;
}

body {
  background: var(--imm-paper);
}

/* ===== Navbar ===== */
.imm-navbar {
  background: #fff;
  border-bottom: 1px solid var(--imm-line);
  padding-top: .85rem;
  padding-bottom: .85rem;
}
.imm-navbar .navbar-brand {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--imm-navy);
  letter-spacing: .01em;
}
.imm-navbar .navbar-brand .brand-mark { color: var(--imm-gold); }
.imm-navbar .nav-link {
  color: var(--imm-navy) !important;
  font-weight: 500;
  padding: .5rem 1rem !important;
}
.imm-navbar .nav-link:hover { color: var(--imm-gold) !important; }
.imm-navbar .btn-gold-outline {
  border: 1.5px solid var(--imm-gold);
  color: var(--imm-navy);
  font-weight: 600;
  border-radius: 999px;
  padding: .4rem 1.25rem;
  transition: all .2s ease;
}
.imm-navbar .btn-gold-outline:hover { background: var(--imm-gold); color: #fff; }

/* ===== Hero ===== */
.imm-hero {
  position: relative;
  background: radial-gradient(1200px 500px at 15% -10%, rgba(201,162,39,.18), transparent 60%),
              linear-gradient(135deg, var(--imm-navy-deep), var(--imm-navy) 55%, var(--imm-navy-light));
  color: #f4f1e8;
  padding: 5.5rem 0 6rem;
  overflow: hidden;
}
.imm-hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: .5;
  pointer-events: none;
}
.imm-hero .container { position: relative; z-index: 1; }
.imm-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--imm-gold-light);
  border: 1px solid rgba(227,196,101,.4);
  border-radius: 999px;
  padding: .4rem 1rem;
  margin-bottom: 1.25rem;
}
.imm-hero h1 {
  font-weight: 700;
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  line-height: 1.25;
  margin-bottom: 1rem;
}
.imm-hero h1 .accent { color: var(--imm-gold-light); }
.imm-hero p.lead {
  color: #c7cfdd;
  font-size: 1.1rem;
  max-width: 42rem;
  margin-bottom: 2rem;
}
.btn-imm-gold {
  background: linear-gradient(135deg, var(--imm-gold), var(--imm-gold-light));
  border: none;
  color: #241a00;
  font-weight: 700;
  border-radius: 999px;
  padding: .8rem 1.9rem;
  box-shadow: 0 10px 30px rgba(201,162,39,.25);
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn-imm-gold:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(201,162,39,.35); color: #241a00; }
.btn-imm-outline-light {
  border: 1.5px solid rgba(244,241,232,.5);
  color: #f4f1e8;
  font-weight: 600;
  border-radius: 999px;
  padding: .8rem 1.9rem;
  transition: all .2s ease;
}
.btn-imm-outline-light:hover { background: rgba(244,241,232,.1); color: #fff; border-color: #fff; }

.imm-hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}
.imm-hero-stats .stat .num {
  font-size: 1.9rem;
  font-weight: 700;
  color: #fff;
}
.imm-hero-stats .stat .label {
  font-size: .82rem;
  color: #9fb0c9;
}

/* ===== Sections ===== */
.imm-section { padding: 4.5rem 0; }
.imm-section-title {
  font-weight: 700;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  color: var(--imm-navy);
  margin-bottom: .6rem;
}
.imm-section-sub {
  color: var(--imm-text-muted);
  max-width: 38rem;
  margin: 0 auto 3rem;
}
.imm-section-head { text-align: center; }

/* Case type cards */
.imm-type-card {
  background: #fff;
  border: 1px solid var(--imm-line);
  border-radius: 18px;
  padding: 2rem 1.6rem;
  height: 100%;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.imm-type-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(15,32,56,.1);
  border-color: var(--imm-gold);
}
.imm-type-card .icon-badge {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--imm-navy), var(--imm-navy-light));
  color: var(--imm-gold-light);
  font-size: 1.4rem;
  margin-bottom: 1.1rem;
}
.imm-type-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--imm-navy); margin-bottom: .4rem; }
.imm-type-card p { color: var(--imm-text-muted); font-size: .9rem; margin: 0; }

/* Process steps */
.imm-step {
  position: relative;
  padding-inline-start: 3.6rem;
}
.imm-step .step-num {
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 2.6rem; height: 2.6rem;
  border-radius: 50%;
  background: var(--imm-navy);
  color: var(--imm-gold-light);
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-family: 'IBM Plex Mono', monospace;
}
.imm-step h4 { font-weight: 700; color: var(--imm-navy); font-size: 1.02rem; margin-bottom: .35rem; }
.imm-step p { color: var(--imm-text-muted); font-size: .9rem; margin: 0; }

/* Trust / dark band */
.imm-band {
  background: var(--imm-navy);
  color: #dfe3ea;
  border-radius: 20px;
  padding: 3rem 2rem;
}
.imm-band h2 { color: #fff; font-weight: 700; }
.imm-band .btn-imm-gold { margin-top: 1rem; }

/* ===== Cards / tables for Cases pages ===== */
.imm-card {
  background: #fff;
  border: 1px solid var(--imm-line);
  border-radius: 16px;
  padding: 2rem;
}
.imm-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.imm-page-header h1 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--imm-navy);
  margin: 0;
}
.imm-page-header .eyebrow {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--imm-gold);
  margin-bottom: .3rem;
  display: block;
}

.table-imm {
  border-collapse: separate;
  border-spacing: 0;
}
.table-imm thead th {
  background: var(--imm-navy);
  color: #dfe3ea;
  font-weight: 600;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  border: none;
  padding: .9rem 1rem;
}
.table-imm thead th:first-child { border-start-start-radius: 12px; }
.table-imm thead th:last-child { border-start-end-radius: 12px; }
.table-imm tbody td {
  padding: .95rem 1rem;
  border-bottom: 1px solid var(--imm-line);
  vertical-align: middle;
  background: #fff;
}
.table-imm tbody tr:last-child td { border-bottom: none; }
.table-imm tbody tr:hover td { background: #fbfaf7; }

.badge-status {
  display: inline-block;
  padding: .35rem .75rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
}
.badge-status.bg-secondary { background: #eef0f3 !important; color: #33415c; }
.badge-status.bg-warning { background: #fdf3dc !important; color: #8a6300; }
.badge-status.bg-success { background: #e5f3ea !important; color: #1f7a4d; }
.badge-status.bg-danger { background: #fbe7e5 !important; color: #b3261e; }

.imm-empty {
  text-align: center;
  padding: 3.5rem 1.5rem;
  color: var(--imm-text-muted);
}
.imm-empty .icon { font-size: 2.4rem; color: var(--imm-gold); margin-bottom: 1rem; }

/* Forms */
.imm-card .form-label { font-weight: 600; color: var(--imm-navy); font-size: .9rem; }
.imm-card .form-control, .imm-card .form-select {
  border-radius: 10px;
  border-color: var(--imm-line);
  padding: .65rem .9rem;
}
.imm-card .form-control:focus, .imm-card .form-select:focus {
  border-color: var(--imm-gold);
  box-shadow: 0 0 0 .2rem rgba(201,162,39,.15);
}

/* ===== Auth pages (Login / Register / etc.) ===== */
.imm-auth-wrap {
  min-height: calc(100vh - 300px);
  display: flex;
  align-items: stretch;
}
.imm-auth-panel {
  flex: 1 1 42%;
  background: radial-gradient(900px 400px at 20% 0%, rgba(201,162,39,.18), transparent 60%),
              linear-gradient(160deg, var(--imm-navy-deep), var(--imm-navy) 60%, var(--imm-navy-light));
  color: #f4f1e8;
  padding: 3.5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.imm-auth-panel .brand {
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 2rem;
}
.imm-auth-panel .brand .accent { color: var(--imm-gold-light); }
.imm-auth-panel h2 {
  font-weight: 700;
  font-size: 1.7rem;
  line-height: 1.4;
  margin-bottom: 1rem;
}
.imm-auth-panel p { color: #c7cfdd; max-width: 24rem; }
.imm-auth-panel ul { list-style: none; padding: 0; margin-top: 2rem; }
.imm-auth-panel ul li { display: flex; align-items: center; gap: .6rem; margin-bottom: .9rem; color: #dfe3ea; font-size: .92rem; }
.imm-auth-panel ul li i { color: var(--imm-gold-light); }

.imm-auth-form {
  flex: 1 1 58%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  background: var(--imm-paper);
}
.imm-auth-card { width: 100%; max-width: 26rem; }
.imm-auth-card h1 { font-weight: 700; font-size: 1.6rem; color: var(--imm-navy); margin-bottom: .3rem; }
.imm-auth-card .sub { color: var(--imm-text-muted); margin-bottom: 1.75rem; font-size: .92rem; }
.imm-auth-card .form-label { font-weight: 600; color: var(--imm-navy); font-size: .88rem; }
.imm-auth-card .form-control {
  border-radius: 10px;
  border-color: var(--imm-line);
  padding: .7rem .95rem;
}
.imm-auth-card .form-control:focus {
  border-color: var(--imm-gold);
  box-shadow: 0 0 0 .2rem rgba(201,162,39,.15);
}
.imm-auth-card .links { margin-top: 1.5rem; font-size: .9rem; text-align: center; }
.imm-auth-card .links a { color: var(--imm-navy); font-weight: 600; text-decoration: none; }
.imm-auth-card .links a:hover { color: var(--imm-gold); }

@media (max-width: 900px) {
  .imm-auth-panel { display: none; }
}

/* Footer */
.imm-footer { background: var(--imm-navy-deep); color: #a9b8cc; padding: 2rem 0; }
.imm-footer a { color: #dfe3ea; text-decoration: none; }
.imm-footer a:hover { color: var(--imm-gold-light); }
.imm-footer .brand-mark { color: var(--imm-gold); }
