@font-face {
  font-family: "IRANSansX";
  src: url("assets/IRANSansX-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IRANSansX";
  src: url("assets/IRANSansX-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IRANSansX";
  src: url("assets/IRANSansX-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary: #5a31ff;
  --primary-strong: #4b28d9;
  --secondary: #14b8a6;
  --text: #0f172a;
  --muted: #475569;
  --muted-2: #64748b;
  --border: #e2e8f0;
  --surface: #ffffff;
  --bg: #f6f9ff;
  --success: #22c55e;
  --danger: #ef4444;
  --warning: #f59e0b;
  --shadow-card: 0 12px 32px rgba(15, 23, 42, 0.08);
  --shadow-hero: 0 18px 50px rgba(37, 99, 235, 0.12);
  --radius-8: 8px;
  --radius-12: 12px;
  --radius-16: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Vazirmatn", "IRANSansX", "IRANSans", "Tahoma", sans-serif;
  font-size: clamp(15px, 0.4vw + 14px, 16px);
  background:
    radial-gradient(circle at 14% 10%, rgba(90, 49, 255, 0.06), transparent 34%),
    radial-gradient(circle at 84% 4%, rgba(20, 184, 166, 0.08), transparent 32%),
    var(--bg);
  color: var(--text);
  line-height: 1.8;
  direction: rtl;
  text-align: right;
  display: flex;
  flex-direction: column;
}

.app-shell,
.view,
.card,
.tab,
.btn,
.input,
select,
.textarea,
.chip,
.badge,
.period-chip,
.today-chip,
.user-chip {
  font-family: "Vazirmatn", "IRANSansX", "IRANSans", "Tahoma", sans-serif;
}

.app-shell {
  font-size: 15px;
  line-height: 1.75;
}

@media (max-width: 640px) {
  .app-shell {
    font-size: 14.5px;
  }
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-strong);
}

[hidden] {
  display: none !important;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding-inline: 16px;
}

@media (min-width: 640px) {
  .container {
    padding-inline: 24px;
  }
}

h1 {
  margin: 0;
  font-size: clamp(28px, 2.4vw + 2px, 32px);
  font-weight: 700;
  line-height: 1.3;
}

h2 {
  margin: 0;
  font-size: clamp(22px, 2vw + 2px, 26px);
  font-weight: 700;
  line-height: 1.35;
}

h3 {
  margin: 0;
  font-size: clamp(18px, 1vw + 17px, 20px);
  font-weight: 600;
  line-height: 1.4;
}

.h4,
h4 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
}

p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

small {
  font-size: 13px;
  color: var(--muted-2);
}

.app-shell {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.section {
  padding-block: 72px;
}

@media (max-width: 639px) {
  .section {
    padding-block: 56px;
  }
}

.landing {
  padding-top: 72px;
}

.landing-section {
  margin-bottom: 48px;
}

.landing-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: stretch;
  margin-bottom: 20px;
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0 4px;
}

.landing-hero-card {
  position: relative;
  overflow: hidden;
  background-color: #fff;
  background-image:
    linear-gradient(#eef1ff 1px, transparent 1px),
    linear-gradient(90deg, #eef1ff 1px, transparent 1px),
    radial-gradient(circle at 18% 22%, rgba(90, 49, 255, 0.1), transparent 40%),
    radial-gradient(circle at 80% 10%, rgba(20, 184, 166, 0.12), transparent 42%);
  background-size: 120px 120px, 120px 120px, auto, auto;
  background-position: 0 0, 0 0, 0 0, 0 0;
}

.landing-hero-card>* {
  position: relative;
  z-index: 1;
}

.landing-hero-card .feature-list .pill {
  background: #fff;
}

.landing-mini-features {
  margin-top: 12px;
}

.landing-aside {
  display: grid;
  gap: 16px;
}

.landing .card {
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
}

.landing .card-head {
  margin-bottom: 8px;
}

.landing-block {
  padding: 24px;
  border-radius: var(--radius-16);
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.06);
  margin-bottom: 28px;
}

.landing-hero-card {
  background: linear-gradient(135deg, rgba(15, 108, 251, 0.08), rgba(20, 184, 166, 0.08), #ffffff);
  border: none;
}

.landing-stats {
  background: #ffffff;
  border: 1px solid rgba(90, 49, 255, 0.12);
}

.landing-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.landing-stats .stat-title,
.landing-stats .muted,
.landing-stats .stat-value {
  color: #0b162b;
}

.landing-stats .stat-value {
  font-size: 20px;
  font-weight: 800;
}

.landing-steps {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.05);
}

.landing-features,
.landing-about,
.landing-contact {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.05);
}

.landing-features .card-head h3,
.landing-about .card-head h3,
.landing-contact .card-head h3 {
  margin-bottom: 4px;
}

.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  align-items: start;
}

.about-block,
.request-form {
  border: 1px solid var(--border);
  border-radius: var(--radius-12);
  background: #f8fafc;
  padding: 16px;
}

.keyword-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.keyword-cloud .pill {
  background: #fff;
}

.contact-copy .muted a {
  color: inherit;
  font-weight: 600;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.contact-note {
  margin-top: 8px;
  background: #eef2ff;
}

.landing-steps .steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-12);
  background: #f8fafc;
}

.step-index {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.landing-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.feature-block {
  border: 1px solid var(--border);
  border-radius: var(--radius-12);
  padding: 16px;
  background: #f8fafc;
}

.feature-block .pill {
  background: #fff;
}

.landing-features .feature-block {
  background: #f9fbff;
  border-color: rgba(15, 23, 42, 0.05);
}

.landing-feature-grid {
  gap: 18px;
}

@media (max-width: 960px) {
  .landing-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 768px) {
  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .landing-grid {
    text-align: center;
  }

  .landing-hero-card .hero-meta-inline,
  .landing-mini-features,
  .feature-list {
    justify-content: center;
  }

  .landing-block {
    padding: 18px;
    margin-bottom: 20px;
  }

  .landing-feature-grid {
    gap: 14px;
  }

  .landing-section {
    margin-bottom: 36px;
  }
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding-block: 16px;
}

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

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-12);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-mark img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.brand-sub {
  font-size: 13px;
  color: var(--muted);
}

.top-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.today-chip,
.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.user-chip {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.2);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.chip.ghost {
  background: rgba(37, 99, 235, 0.06);
  border-color: rgba(37, 99, 235, 0.2);
  color: var(--text);
}

.chip.soft {
  background: rgba(20, 184, 166, 0.1);
  border-color: rgba(20, 184, 166, 0.2);
  color: #0f766e;
}

.btn {
  height: 48px;
  padding: 0 20px;
  border-radius: var(--radius-12);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn.small {
  height: 36px;
  padding: 0 12px;
  font-size: 13px;
}

.btn.full {
  width: 100%;
}

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

.btn.primary {
  background: linear-gradient(120deg, #6b3bff, #5126e8);
  color: #fff;
  box-shadow: 0 12px 30px rgba(81, 38, 232, 0.28);
}

.btn.primary:hover {
  background: linear-gradient(120deg, #5126e8, #401fc5);
}

.btn.danger {
  background: #ef4444;
  color: #fff;
  border-color: #ef4444;
}

.btn.ghost {
  background: #fff;
  color: var(--text);
  border-color: var(--border);
}

.btn.ghost:hover {
  background: rgba(15, 23, 42, 0.04);
}

.btn.outline {
  background: transparent;
  color: var(--primary);
  border-color: rgba(15, 108, 251, 0.5);
  box-shadow: none;
}

.btn.outline:hover {
  background: rgba(15, 108, 251, 0.08);
  border-color: var(--primary);
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-16);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.card-head {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.hero-card {
  background: linear-gradient(145deg, #eef2ff, #ffffff);
  border: 1px solid #e5e7eb;
  box-shadow: var(--shadow-hero);
  color: var(--text);
  display: grid;
  gap: 12px;
}

.hero-card h1,
.hero-card h2,
.hero-card h3 {
  color: var(--text);
}

.eyebrow {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.2px;
  margin: 0;
}

.lede {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
}

.hero-meta-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(15, 23, 42, 0.06);
  color: var(--text);
}

.badge.soft {
  background: rgba(37, 99, 235, 0.12);
  color: var(--primary-strong);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.overview-grid {
  align-items: stretch;
}

.overview-hero {
  min-height: auto;
}

.stats-compact .stat {
  gap: 4px;
}

.stat-sub {
  font-size: 12px;
  color: var(--muted-2);
}

.metrics-note {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted-2);
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.account-item {
  padding: 10px 12px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-12);
  background: #f8fafc;
}

.account-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.account-value.highlight {
  color: var(--primary-strong);
}

.login-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  align-items: stretch;
}

.form-card {
  display: grid;
  gap: 12px;
}

.form-head {
  display: grid;
  gap: 8px;
}

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

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

.field.compact {
  gap: 8px;
}

.field-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.input,
select {
  height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-8);
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.input:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.14);
}

.pretty-select {
  appearance: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 8l5 5 5-5' stroke='%233b82f6' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat left 14px center,
    linear-gradient(145deg, rgba(37, 99, 235, 0.08), rgba(59, 130, 246, 0.05)),
    #fff;
  border-color: rgba(15, 23, 42, 0.08);
  font-weight: 600;
  padding-inline: 16px 44px;
  min-width: 180px;
  cursor: pointer;
  text-align: right;
  font-feature-settings: "tnum";
}

.pretty-select:focus {
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.12), 0 0 0 2px rgba(37, 99, 235, 0.16);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 8l5 5 5-5' stroke='%233b82f6' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat left 14px center,
    linear-gradient(145deg, rgba(37, 99, 235, 0.12), rgba(59, 130, 246, 0.07)),
    #fff;
}

.pretty-select::-ms-expand {
  display: none;
}

.period-select {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.period-select-control {
  margin: 0;
}

.period-chip {
  min-width: 210px;
  padding: 10px 16px;
  border-radius: var(--radius-16);
  background: linear-gradient(120deg, rgba(37, 99, 235, 0.08), rgba(14, 165, 233, 0.08));
  border: 1px solid rgba(37, 99, 235, 0.14);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.12);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.period-chip-label {
  font-weight: 700;
  color: var(--text);
}

.period-chip-range {
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 640px) {
  .period-select {
    justify-content: flex-start;
  }

  .period-chip {
    width: 100%;
  }
}

.input::placeholder {
  color: var(--muted-2);
}

.textarea {
  min-height: 112px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-8);
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
}

.textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.14);
}

.check-field {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.checkbox {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid var(--border);
  accent-color: var(--primary);
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 4px;
}

.tab {
  border: 1px solid var(--border);
  border-radius: var(--radius-12);
  padding: 12px 16px;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  transition: all 0.2s ease;
}

.tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin: 8px 0;
}

.stat {
  padding: 16px;
  border-radius: var(--radius-12);
  border: 1px solid var(--border);
  background: #f8fafc;
}

.stat-title {
  font-size: 13px;
  color: var(--muted);
}

.stat-value {
  font-weight: 700;
  font-size: 20px;
  margin-top: 8px;
  color: var(--text);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.feature-list.dense {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.pill {
  background: rgba(15, 23, 42, 0.04);
  color: var(--text);
  padding: 12px 16px;
  border-radius: var(--radius-12);
  font-size: 13px;
  border: 1px solid var(--border);
}

.pill.secondary {
  background: rgba(20, 184, 166, 0.08);
  border-color: rgba(20, 184, 166, 0.24);
  color: #0f766e;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.records-area {
  margin-top: 16px;
}

.empty-card {
  padding: 18px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-16);
  background: #fff;
  text-align: center;
  color: #64748b;
}

.record-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.record-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.record-card.has-unsaved {
  border-color: #f59e0b;
  box-shadow: 0 10px 38px -22px rgba(245, 158, 11, 0.5);
}

.record-card.has-unsaved .pending-label {
  color: #b45309;
  font-weight: 600;
}

.record-card-top {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px;
  background: linear-gradient(135deg, #f6f9ff, #eef4ff);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.record-title-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.record-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.record-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.record-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: #475569;
}

.meta-pill {
  padding: 6px 10px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--border);
}

.record-stats {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.stat-block {
  min-width: 120px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 10px;
  text-align: center;
}

.stat-label {
  display: block;
  font-size: 12px;
  color: #64748b;
}

.stat-value {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
}

.record-quick-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.record-card-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.record-mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  font-size: 12px;
  color: #475569;
}

.record-pay-inline {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.pay-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.record-notes {
  min-width: 240px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.note-text {
  color: var(--text);
  font-size: 13px;
  line-height: 1.6;
}

.record-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: #fafcff;
  gap: 8px;
  flex-wrap: wrap;
}

.record-footer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.record-card-details {
  padding: 14px 16px 16px;
  border-top: 1px solid var(--border);
  background: #fff;
}

.record-card-details.open {
  animation: fadeIn 0.2s ease;
}

.inst-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.inst-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #f4f6fb;
  border-bottom: 1px solid var(--border);
  gap: 8px;
  flex-wrap: wrap;
}

.inst-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.installment-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.installment-table th,
.installment-table td {
  padding: 10px 12px;
  border: 1px solid var(--border);
  text-align: right;
  font-size: 13px;
}

.installment-table th {
  background: #eef2ff;
  font-weight: 700;
  white-space: nowrap;
}

.inst-date-input {
  width: 150px;
}

.due-input.dirty {
  border-color: #f59e0b;
  background: #fff7ed;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid transparent;
}

.status-pill.ok {
  background: rgba(16, 185, 129, 0.12);
  color: #0f766e;
  border-color: rgba(16, 185, 129, 0.28);
}

.status-pill.warn {
  background: rgba(248, 113, 113, 0.12);
  color: #b91c1c;
  border-color: rgba(248, 113, 113, 0.28);
}

.payments-block {
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  background: #f8fafc;
}

.payments-head {
  font-weight: 600;
  margin-bottom: 8px;
}

.payments-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.payment-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--border);
  gap: 8px;
  flex-wrap: wrap;
}

.payment-amount {
  font-weight: 700;
}

.payment-date {
  font-size: 12px;
  color: #475569;
}

.payment-actions {
  display: flex;
  gap: 6px;
}

.record-cards .status-badge {
  height: auto;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.table-wrap {
  width: 100%;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-16);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.records-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1600px;
  font-size: 13px;
}

.records-table th,
.records-table td {
  border: 1px solid var(--border);
  padding: 12px 16px;
  min-width: 112px;
  text-align: right;
  vertical-align: middle;
}

.records-table th {
  background: #eef2ff;
  font-weight: 700;
  position: sticky;
  top: 0;
  z-index: 1;
  white-space: nowrap;
}

.records-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

.records-table tbody tr:hover {
  background: #e0f2fe;
}

.records-table input.pay-input,
.records-table select.pay-select,
.records-table .pay-date {
  width: 112px;
  height: 36px;
}

.records-table button.pay-btn {
  height: 36px;
  padding: 0 12px;
}

.table-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 12px 0;
}

.summary-chip {
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-12);
  padding: 12px;
  font-size: 13px;
  font-weight: 600;
}

.summary-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0;
}

.pending-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pending-label {
  font-size: 12px;
}

.records-table tr.has-unsaved {
  background: #fff7ed;
}

.records-table .due-input.dirty {
  border-color: #f59e0b;
  background: #fff7ed;
}

.user-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.user-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-12);
}

.user-row-main {
  display: grid;
  gap: 4px;
}

.user-row-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.user-subscription {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.input.mini {
  height: 36px;
  padding: 8px 10px;
  font-size: 13px;
  width: 120px;
}

.status-badge {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--border);
  color: var(--text);
  background: #f8fafc;
}

.status-badge.success {
  background: #ecfdf3;
  border-color: #bbf7d0;
  color: #15803d;
}

.status-badge.danger {
  background: #fef2f2;
  border-color: #fecdd3;
  color: #b91c1c;
}

.backup-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.backup-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-12);
  background: #fff;
}

.backup-title {
  font-weight: 600;
  color: var(--text);
}

.backup-meta {
  font-size: 13px;
  color: var(--muted-2);
  margin-top: 4px;
}

.backup-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.backup-empty {
  padding: 12px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-12);
  color: var(--muted-2);
  font-size: 14px;
  background: #f8fafc;
}

.backup-upload {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.backup-hint {
  font-size: 13px;
  color: var(--muted-2);
}

.role {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(15, 23, 42, 0.08);
  color: var(--text);
}

.role.admin {
  background: rgba(37, 99, 235, 0.12);
  color: var(--primary);
}

.alert {
  padding: 12px 16px;
  border-radius: var(--radius-12);
  font-size: 14px;
  border: 1px solid transparent;
  background: #f8fafc;
  color: var(--text);
}

.alert:empty {
  display: none;
}

.alert.success {
  background: #ecfdf3;
  border-color: #bbf7d0;
  color: #15803d;
}

.alert.error {
  background: #fef2f2;
  border-color: #fecdd3;
  color: #b91c1c;
}

#flash {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  min-width: 240px;
  max-width: 90%;
  padding: 12px 16px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-16);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  text-align: center;
  z-index: 30;
}

#flash.show {
  opacity: 1;
  transform: translate(-50%, -8px);
}

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

.footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: #fff;
  padding: 20px 0 26px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-title {
  font-weight: 700;
  font-size: 16px;
}

.footer-note {
  color: var(--muted);
  font-size: 14px;
}

.iso {
  display: flex;
  gap: 12px;
  align-items: center;
}

.footer-credit {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
}

.footer-credit a {
  font-weight: 700;
}

.inline-options {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.check-inline {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-size: 14px;
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  align-items: end;
}

.column-toggles {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin-top: 8px;
}

.align-end {
  display: flex;
  align-items: end;
}

.sms-layout {
  display: grid;
  gap: 16px;
  grid-template-columns: 1.15fr 0.85fr;
}

.sms-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-16);
  background: #f8fafc;
}

.sms-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

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

.inline-search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

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

.input.sm {
  height: 40px;
  padding: 10px 12px;
  font-size: 13px;
  min-width: 160px;
}

.inst-list {
  display: grid;
  gap: 6px;
  align-content: flex-start;
}

.inst-line,
.pay-line {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px dashed var(--border);
  border-radius: 10px;
  background: #f8fafc;
}

.inst-line:focus-within,
.pay-line:focus-within {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.15);
  background: #ecfeff;
}

.inst-bullet {
  font-weight: 700;
  color: #0f172a;
  min-width: 8px;
}

.inst-paid {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: auto;
  font-size: 12px;
  color: var(--muted);
}

.inst-date-input {
  width: 160px;
  font-size: 13px;
  text-align: center;
  padding: 8px 10px;
  background: transparent;
  border: none;
  outline: none;
}

.payments-list {
  display: grid;
  gap: 6px;
  align-content: flex-start;
}

.payments-col {
  min-width: 220px;
}

.inst-actions {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pay-amount {
  font-weight: 700;
  color: #0f172a;
}

.pay-date {
  font-weight: 600;
  color: #0f172a;
}

.pay-chip {
  border: 1px solid var(--border);
  border-radius: var(--radius-12);
  padding: 8px 10px;
  background: #f8fafc;
  display: grid;
  gap: 6px;
}

.pay-chip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pay-date-chip {
  font-size: 12px;
  color: var(--muted);
  background: #e2e8f0;
  padding: 4px 8px;
  border-radius: 999px;
}

.pay-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.btn.ghost.danger {
  color: #b91c1c;
  border-color: rgba(220, 38, 38, 0.35);
}

.btn.ghost.danger:hover {
  background: rgba(220, 38, 38, 0.08);
  border-color: #dc2626;
}

.pay-inline {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
  align-items: center;
  flex-wrap: wrap;
}

.notes-box {
  display: grid;
  gap: 6px;
}

.sms-list {
  border: 1px solid var(--border);
  border-radius: var(--radius-16);
  padding: 12px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.sms-records {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sms-check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.sms-preview-text {
  white-space: pre-wrap;
}

.sms-mini {
  border: 1px solid var(--border);
  border-radius: var(--radius-16);
  padding: 12px;
  background: #f8fafb;
  box-shadow: var(--shadow-card);
  display: grid;
  gap: 10px;
}

.sms-mini-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.sms-mini-title {
  font-weight: 700;
  color: var(--text);
}

.sms-mini-sub {
  font-size: 12px;
  color: var(--muted);
}

.sms-mini-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.sms-mini-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sms-mini-actions .btn {
  min-width: 88px;
}

.sms-mini-lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sms-mini-line {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.mini-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e2e8f0;
  color: #0f172a;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
}

.mini-pill.soft {
  background: #eef2ff;
}

.pill-ok {
  background: #d1fae5 !important;
  color: #065f46 !important;
}

.pill-warn {
  background: #fee2e2 !important;
  color: #991b1b !important;
}

.sms-mini-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.sms-mini-more {
  border-top: 1px dashed var(--border);
  padding-top: 10px;
  display: grid;
  gap: 10px;
}

.sms-mini-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.sms-mini-table {
  border: 1px solid var(--border);
  border-radius: var(--radius-12);
  overflow: hidden;
  background: #fff;
}

.sms-mini-table table {
  width: 100%;
  border-collapse: collapse;
}

.sms-mini-table th,
.sms-mini-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.sms-mini-table th {
  background: #f1f5f9;
  font-weight: 700;
  color: #0f172a;
}

.sms-mini-table-head {
  padding: 8px 10px;
  background: linear-gradient(120deg, #eef2ff, #f8fafc);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.inst-status.ok {
  color: #16a34a;
  font-weight: 600;
}

.inst-status.warn {
  color: #b91c1c;
  font-weight: 600;
}

.sms-mini-lines .mini-pill {
  background: #e2e8f0;
}

.sms-preview {
  border: 1px dashed var(--border);
  border-radius: var(--radius-12);
  background: #fff;
  padding: 10px;
  font-size: 13px;
  color: var(--text);
}

.sms-preview.mini {
  background: #fff;
  border-style: solid;
  box-shadow: var(--shadow-card);
}

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

.iso img {
  height: 40px;
  object-fit: contain;
}

.jalali-picker-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  z-index: 1000;
}

.jalali-picker {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-16);
  box-shadow: var(--shadow-card);
  width: min(320px, 100%);
  padding: 12px;
}

.jalali-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.jalali-picker-title {
  font-weight: 600;
  font-size: 14px;
}

.jalali-picker button,
.jalali-nav-btn {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 16px;
  color: var(--text);
  padding: 8px;
}

.jalali-picker select,
.jalali-picker input[type="number"] {
  height: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-8);
  padding: 0 8px;
  font-family: inherit;
}

.jalali-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.jalali-day {
  border: 1px solid var(--border);
  border-radius: var(--radius-8);
  padding: 8px 0;
  text-align: center;
  cursor: pointer;
  background: #f8fafc;
  font-size: 13px;
}

.jalali-day:hover {
  background: #e0e7ff;
  border-color: var(--primary);
}

.jalali-day.today {
  border-color: var(--primary);
  box-shadow: inset 0 0 0 1px var(--primary);
}

.jalali-day.selected {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.jalali-picker-footer {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.jalali-input-hint {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

.sms-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 50;
}

.sms-modal.show {
  display: flex;
}

.sms-modal-card {
  background: var(--surface);
  width: min(520px, 100%);
  border-radius: var(--radius-12);
  box-shadow: var(--shadow-card);
  padding: 20px;
  border: 1px solid var(--border);
  max-height: 90vh;
  overflow-y: auto;
}

.sms-modal-info {
  font-size: 13px;
  color: var(--muted);
  margin: 6px 0 10px;
}

.sms-modal textarea {
  resize: vertical;
}

@media (max-width: 520px) {
  .sms-modal-card {
    padding: 16px;
    width: 100%;
  }
}

@media (max-width: 1023px) {
  .topbar-inner {
    min-height: 64px;
    padding-block: 12px;
  }
}

@media (max-width: 639px) {
  .topbar-inner {
    align-items: stretch;
    flex-direction: column;
  }

  .top-actions {
    width: 100%;
    justify-content: stretch;
    gap: 10px;
  }

  .top-actions .btn {
    flex: 1;
  }

  .brand {
    justify-content: center;
  }

  .btn.full,
  .actions .btn {
    width: 100%;
  }

  .tabs {
    overflow-x: auto;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    padding: 0;
  }

  .footer {
    padding: 20px 0 24px;
  }

  .footer-title {
    font-size: 15px;
  }

  .footer-note,
  .footer-credit {
    font-size: 13.5px;
    line-height: 1.7;
  }

  .footer-brand,
  .footer-credit {
    align-items: center;
  }

  .footer-credit {
    display: grid;
    justify-items: center;
    text-align: center;
  }

  .iso img {
    max-width: 52px;
    height: auto;
  }
}

/* Landing layout and mobile nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 78px;
  flex-wrap: wrap;
}

.brand.new-brand {
  gap: 12px;
}

.logo-icon {
  width: 38px;
  height: 38px;

  background: transparent;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;

}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.site-header .brand-sub {
  color: var(--muted-2);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-inline-start: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.nav-links a {
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 12px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(15, 23, 42, 0.05);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 4px;
  background: #0f172a;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.38);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
  z-index: 29;
}

.nav-overlay.open {
  opacity: 1;
  visibility: visible;
  background-color: #0b1224
}

.nav-open {
  overflow: hidden;
}

@media (max-width: 980px) {
  .main-nav {
    position: fixed;
    inset: 0;
    background: #0b1224;
    background-image:
      radial-gradient(circle at 20% 18%, rgba(37, 99, 235, 0.14), transparent 32%),
      radial-gradient(circle at 78% 8%, rgba(20, 184, 166, 0.12), transparent 34%);
    color: #e5e7eb;
    padding: 96px 22px 32px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 24px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.22s ease, transform 0.22s ease;
    z-index: 31;
  }

  .main-nav.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .main-nav .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .main-nav .nav-links a {
    width: 100%;
    color: #e5e7eb;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
  }

  .main-nav .nav-cta {
    width: 100%;
    display: grid;
    gap: 8px;
  }

  .main-nav .lp-btn {
    width: 100%;
  }

  .main-nav .lp-btn-ghost {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
    color: #fff;
  }

  .main-nav .lp-btn-primary {
    box-shadow: none;
  }

  .header-meta {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    margin-inline-start: auto;
  }

  .topbar-inner {
    flex-wrap: nowrap;
  }
}

/* Landing page */
.landing-modern .landing-shell {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 100px;
  row-gap: 100px;
  padding: 32px 0 96px;
}

.lp-top-strip {
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.94);
  color: #e5e7eb;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.4);
}

.lp-strip-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
}

.lp-strip-text strong {
  color: #fff;
}

.lp-strip-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.lp-today {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 700;
}

.lp-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.05fr);
  gap: 24px;
  align-items: center;
}

.lp-hero-copy {
  display: grid;
  gap: 12px;
}

.lp-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;

  color: #1d4ed8;
  font-weight: 700;
}

.lp-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.35);
}

.lp-hero-title {
  font-size: clamp(28px, 2vw + 10px, 36px);
  margin: 0;
  letter-spacing: -0.02em;
}

.lp-hero-title span {
  color: #1d4ed8;
}

.lp-hero-subtitle {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
  max-width: 38rem;
}

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

.lp-feature-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
}

.lp-feature-inline span {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: rgba(255, 255, 255, 0.92);
}

.lp-panel {
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.32);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  padding: 18px 18px 14px;
  display: grid;
  gap: 10px;
}

.lp-panel-head {
  display: grid;
  gap: 6px;
}

.lp-panel-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
  font-weight: 700;
  width: max-content;
}

.lp-panel-list {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
}

.lp-panel-list li {
  position: relative;
  padding-right: 14px;
}

.lp-panel-list li::before {
  content: "•";
  position: absolute;
  right: 0;
  top: 0;
  color: #2563eb;
  font-size: 14px;
}

.lp-panel-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.lp-section {
  display: flex;
  flex-direction: column;
  gap: 50px;
  padding-block: 50px;
}

.lp-section-header {
  display: grid;
  gap: 6px;
}

.lp-kicker {
  font-size: 13px;
  color: #2563eb;
  font-weight: 700;
}

.lp-section-title {
  margin: 0;
  font-size: clamp(22px, 2vw + 6px, 26px);
}

.lp-section-subtitle {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
  max-width: 42rem;
}

.lp-grid {
  display: grid;
  gap: 16px;
}

.lp-grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.lp-grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.lp-grid-gap-lg {
  margin-top: 6px;
}

.lp-card {
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e5e7eb;
  padding: 14px 14px 12px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
  transition: transform 0.16s ease, box-shadow 0.2s ease, border-color 0.16s ease;
}

.lp-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.lp-card p {
  margin: 0;
  color: var(--muted);
}

.lp-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
  border-color: rgba(37, 99, 235, 0.3);
}

.lp-timeline {
  position: relative;
  margin-top: 6px;
  padding-right: 14px;
}

.lp-timeline::before {
  content: "";
  position: absolute;
  right: 6px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #d1d5db, #e5e7eb);
}

.lp-timeline-item {
  position: relative;
  padding-right: 28px;
  margin-bottom: 14px;
}

.lp-timeline-dot {
  position: absolute;
  right: 0;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.lp-timeline-content h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
}

.lp-timeline-content p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.lp-btn {
  border-radius: 999px;
  padding: 10px 16px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  color: #0f172a;
  background: #fff;
}

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

.lp-btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  border-color: rgba(37, 99, 235, 0.6);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.35);
}

.lp-btn-primary:hover {
  box-shadow: 0 16px 38px rgba(37, 99, 235, 0.45);
}

.lp-btn-ghost {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(148, 163, 184, 0.6);
  color: #0f172a;
}

.lp-btn-ghost:hover {
  border-color: #2563eb;
}

.lp-btn-sm {
  padding: 8px 14px;
  font-size: 13px;
}

.lp-about {
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--border);
  padding: 16px;
  color: var(--muted);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.lp-about strong {
  color: var(--text);
}

.lp-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  align-items: stretch;
}

.lp-contact-card {
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--border);
  padding: 16px;
  display: grid;
  gap: 10px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.lp-contact-details p {
  margin: 0 0 6px;
  color: var(--muted);
}

.lp-contact-details a {
  color: #2563eb;
  font-weight: 700;
}

@media (max-width: 1080px) {
  .landing-modern .landing-shell {
    padding-inline: 6px;
  }
}

@media (max-width: 960px) {
  .lp-hero {
    grid-template-columns: 1fr;
  }

  .lp-panel {
    order: -1;
  }
}

@media (max-width: 760px) {
  .lp-top-strip {
    flex-direction: column;
    align-items: flex-start;
  }

  .lp-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .lp-hero-title {
    font-size: 28px;
  }

  .landing-modern .landing-shell {
    gap: 72px;
    row-gap: 72px;
  }
}

@media (max-width: 639px) {
  .site-header .topbar-inner {
    flex-direction: row;
    align-items: center;
  }

  .brand {
    justify-content: flex-start;
  }
}
