:root {
  --bg-deep: #04191C;
  --bg-dark: #07292E;
  --primary: #0B3B40;
  --primary-light: #115E59;
  --accent: #14B8A6;
  --accent-bright: #2DD4BF;
  --accent-dark: #0D9488;
  --accent-soft: #CCFBF1;
  --accent-bg: #F0FDFA;
  --gold-soft: #FEF3C7;
  --gold-text: #B45309;
  --text: #1E293B;
  --muted: #475569;
  --bg-soft: #F8FAFC;
  --border: #E2E8F0;
  --white: #FFFFFF;
  --danger: #DC2626;
  --radius: 18px;
  --shadow-soft: 0 12px 34px -8px rgba(10, 54, 59, 0.08);
  --shadow-hover: 0 22px 44px -10px rgba(13, 148, 136, 0.18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Vazirmatn", Tahoma, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[dir="ltr"] body { font-family: "Inter", "Vazirmatn", sans-serif; }
a { text-decoration: none; color: inherit; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 22px; position: relative; z-index: 2; }

/* Decorative Ambient Blobs */
.glow-orb {
  position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; z-index: 1; opacity: 0.45;
}
.glow-orb-1 { width: 340px; height: 340px; background: #14B8A6; top: -90px; inset-inline-start: -80px; }
.glow-orb-2 { width: 280px; height: 280px; background: #0EA5E9; bottom: -80px; inset-inline-end: -60px; opacity: 0.28; }

/* Header & Nav */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(4, 25, 28, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(45, 212, 191, 0.22);
  color: var(--white);
}
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 78px; gap: 14px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo {
  display: inline-flex; align-items: center; gap: 2px;
  font-weight: 800; font-size: 1.32rem; letter-spacing: 0.08em;
  color: var(--white); direction: ltr;
}
.brand-fa {
  font-size: 0.92rem; font-weight: 600; color: #99F6E4;
  padding-inline-start: 10px; border-inline-start: 1px solid rgba(153,246,228,0.28);
}
nav { display: flex; align-items: center; gap: 20px; }
nav a {
  font-size: 0.91rem; font-weight: 500; color: #CBD5E1;
  transition: color 0.2s; padding: 6px 2px; position: relative;
}
nav a:hover, nav a.active { color: #5EEAD4; }
nav a.active::after {
  content: ""; position: absolute; bottom: 0; inset-inline: 0; height: 2.5px;
  border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent-bright));
}
.nav-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lang-btn, .auth-btn, .prof-btn {
  background: rgba(255,255,255,0.08); color: var(--white);
  border: 1px solid rgba(45,212,191,0.38); border-radius: 10px;
  padding: 7px 13px; font-family: inherit; font-size: 0.83rem;
  font-weight: 600; cursor: pointer; transition: all 0.22s; display: inline-flex; align-items: center; gap: 6px;
}
.lang-btn:hover, .auth-btn:hover, .prof-btn:hover {
  background: var(--accent); color: var(--bg-deep); border-color: var(--accent); transform: translateY(-1px);
}
.prof-btn { background: rgba(20,184,166,0.24); border-color: var(--accent); color: #99F6E4; }
.badge-cnt {
  background: var(--accent); color: var(--bg-deep); font-weight: 800;
  font-size: 0.72rem; padding: 1px 7px; border-radius: 999px;
}
.menu-btn {
  display: none; background: none; border: 1px solid rgba(255,255,255,0.25);
  border-radius: 9px; padding: 6px 12px; color: var(--white);
  font-family: inherit; font-size: 0.9rem; cursor: pointer;
}

/* Hero & Page Banner */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(circle at 15% 20%, rgba(20,184,166,0.26), transparent 48%),
              radial-gradient(circle at 85% 80%, rgba(14,165,233,0.16), transparent 45%),
              linear-gradient(135deg, var(--bg-deep) 0%, var(--bg-dark) 52%, var(--primary) 100%);
  color: var(--white); padding: 80px 0 76px;
}
.page-banner {
  position: relative; overflow: hidden;
  background: radial-gradient(circle at 10% 10%, rgba(20,184,166,0.22), transparent 45%),
              linear-gradient(135deg, var(--bg-deep) 0%, var(--primary) 100%);
  color: var(--white); padding: 54px 0 48px;
  border-bottom: 1px solid rgba(20,184,166,0.22);
}
.page-banner h1 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; margin-bottom: 10px; }
.page-banner p { color: #CBD5E1; max-width: 740px; font-size: 0.99rem; }
.hero-grid { display: grid; grid-template-columns: 1.12fr 0.88fr; gap: 40px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(20,184,166,0.16);
  border: 1px solid rgba(45,212,191,0.45); color: #99F6E4;
  padding: 6px 15px; border-radius: 999px; font-size: 0.84rem;
  font-weight: 600; margin-bottom: 18px;
}
.hero-badge::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2DD4BF;
  box-shadow: 0 0 10px #2DD4BF;
}
.hero h1 { font-size: clamp(1.85rem, 3.9vw, 2.65rem); font-weight: 800; line-height: 1.44; margin-bottom: 16px; }
.hero h1 span {
  background: linear-gradient(90deg, #5EEAD4, #38BDF8);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p { font-size: 1.03rem; color: #E2E8F0; opacity: 0.94; margin-bottom: 30px; max-width: 620px; }

.hero-visual {
  position: relative; border-radius: 22px; overflow: hidden;
  border: 1px solid rgba(45,212,191,0.38);
  box-shadow: 0 28px 60px rgba(0,0,0,0.48);
  background: var(--bg-dark);
}
.hero-visual img {
  width: 100%; height: 365px; object-fit: cover; display: block;
  transition: transform 0.6s ease;
}
.hero-visual:hover img { transform: scale(1.03); }
.hero-visual-caption {
  position: absolute; bottom: 0; inset-inline: 0;
  background: linear-gradient(to top, rgba(4,25,28,0.97) 30%, rgba(4,25,28,0.55) 82%, transparent);
  padding: 26px 20px 18px;
}
.hero-kpi-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hero-kpi {
  background: rgba(255,255,255,0.09); backdrop-filter: blur(8px);
  border: 1px solid rgba(45,212,191,0.32); border-radius: 12px; padding: 9px 10px; text-align: center;
}
.hero-kpi strong { display: block; color: #5EEAD4; font-size: 1rem; }
.hero-kpi span { font-size: 0.74rem; color: #E2E8F0; }

/* Buttons */
.btn-group { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 12px; font-weight: 700; font-size: 0.92rem;
  cursor: pointer; border: none; font-family: inherit;
  transition: transform 0.18s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-sm { padding: 8px 14px; font-size: 0.83rem; border-radius: 9px; }
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, #14B8A6 0%, #2DD4BF 100%);
  color: var(--bg-deep); box-shadow: 0 8px 20px rgba(20,184,166,0.32);
}
.btn-primary:hover { box-shadow: 0 12px 26px rgba(45,212,191,0.45); }
.btn-dark { background: var(--primary); color: var(--white); }
.btn-dark:hover { background: var(--accent-dark); }
.btn-outline {
  border: 1px solid rgba(255,255,255,0.35); color: var(--white);
  background: rgba(255,255,255,0.07); backdrop-filter: blur(6px);
}
.btn-outline:hover { border-color: #5EEAD4; background: rgba(20,184,166,0.16); }
.btn-outline-dark {
  border: 1.5px solid var(--primary); color: var(--primary); background: var(--white);
}
.btn-outline-dark:hover { background: var(--primary); color: var(--white); }
.btn-danger-outline {
  border: 1px solid #FCA5A5; color: var(--danger); background: #FEF2F2;
  padding: 6px 12px; font-size: 0.82rem; border-radius: 8px; cursor: pointer; font-family: inherit; font-weight: 600;
}

/* Sections */
section { padding: 72px 0; position: relative; }
.bg-soft { background: linear-gradient(180deg, #F8FAFC 0%, #F0FDFA 100%); }
.bg-dark-sec {
  background: radial-gradient(circle at 80% 20%, rgba(20,184,166,0.16), transparent 45%),
              linear-gradient(135deg, var(--bg-deep) 0%, var(--bg-dark) 100%);
  color: var(--white);
}
.section-head { max-width: 740px; margin-bottom: 38px; }
.section-eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 700;
  color: var(--accent-dark); background: var(--accent-soft);
  padding: 3px 12px; border-radius: 999px; margin-bottom: 10px;
}
.bg-dark-sec .section-eyebrow { background: rgba(20,184,166,0.18); color: #5EEAD4; }
.section-head h2 {
  font-size: clamp(1.42rem, 2.9vw, 1.98rem); font-weight: 800;
  color: var(--primary); margin-bottom: 8px;
}
.bg-dark-sec .section-head h2 { color: var(--white); }
.section-head p { color: var(--muted); font-size: 0.97rem; }
.bg-dark-sec .section-head p { color: #CBD5E1; }

/* Grids & Cards */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s, border-color 0.22s, box-shadow 0.22s;
}
.card:hover { transform: translateY(-3px); border-color: #5EEAD4; box-shadow: var(--shadow-hover); }
.card-icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: linear-gradient(135deg, var(--accent-soft), #E0F2FE);
  color: var(--primary); display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.card h3 { font-size: 1.07rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.92rem; }

/* Photo Cards */
.photo-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; box-shadow: var(--shadow-soft);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.photo-card:hover { transform: translateY(-5px); border-color: #2DD4BF; box-shadow: var(--shadow-hover); }
.photo-card-img-wrap { position: relative; overflow: hidden; height: 200px; }
.photo-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.photo-card:hover img { transform: scale(1.06); }
.photo-card-badge {
  position: absolute; top: 12px; inset-inline-start: 12px;
  background: rgba(4,25,28,0.82); backdrop-filter: blur(6px);
  color: #5EEAD4; font-size: 0.76rem; font-weight: 700;
  padding: 3px 10px; border-radius: 999px; border: 1px solid rgba(94,234,212,0.35);
}
.photo-card-body { padding: 22px; flex-grow: 1; display: flex; flex-direction: column; }
.photo-card-body h3 { font-size: 1.04rem; color: var(--primary); margin-bottom: 8px; }
.photo-card-body p { font-size: 0.9rem; color: var(--muted); margin-bottom: 14px; }
.mini-list { list-style: none; margin-top: auto; border-top: 1px dashed var(--border); padding-top: 10px; }
.mini-list li { position: relative; padding-inline-start: 18px; font-size: 0.84rem; color: var(--text); margin-bottom: 5px; }
.mini-list li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--accent-dark); font-weight: 800; }

/* Client Value Strip */
.benefit-card {
  background: rgba(255,255,255,0.05); backdrop-filter: blur(8px);
  border: 1px solid rgba(45,212,191,0.28);
  border-radius: var(--radius); padding: 24px;
  transition: transform 0.22s, background 0.22s;
}
.benefit-card:hover { transform: translateY(-3px); background: rgba(255,255,255,0.08); }
.benefit-num {
  display: inline-block; background: linear-gradient(135deg, #14B8A6, #2DD4BF);
  color: var(--bg-deep); font-weight: 800; font-size: 0.78rem;
  padding: 3px 11px; border-radius: 999px; margin-bottom: 12px;
}
.benefit-card h3 { font-size: 1.06rem; color: var(--white); margin-bottom: 8px; }
.benefit-card p { font-size: 0.9rem; color: #CBD5E1; }

/* Package Cards */
.plan-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 18px;
  display: flex; flex-direction: column; position: relative;
  box-shadow: var(--shadow-soft); transition: transform 0.22s, box-shadow 0.22s;
}
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.plan-card.featured {
  border: 2px solid var(--accent);
  background: linear-gradient(180deg, #F0FDFA 0%, #FFFFFF 28%);
  box-shadow: 0 18px 40px rgba(20,184,166,0.18);
}
.plan-tag {
  position: absolute; top: -13px; inset-inline-end: 16px;
  background: linear-gradient(135deg, #14B8A6, #0D9488); color: var(--white);
  font-size: 0.75rem; font-weight: 800; padding: 4px 12px; border-radius: 999px;
  box-shadow: 0 4px 12px rgba(13,148,136,0.3);
}
.plan-card h3 { font-size: 1.06rem; color: var(--primary); margin-bottom: 8px; }
.plan-for {
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 10px; padding: 9px 11px; font-size: 0.81rem;
  color: var(--primary); margin-bottom: 14px; line-height: 1.6;
}
.plan-for strong { color: var(--accent-dark); }
.price-box {
  background: var(--accent-bg); border: 1px dashed var(--accent);
  border-radius: 12px; padding: 12px; text-align: center; margin-bottom: 14px;
}
.price-locked { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.price-blur { filter: blur(5px); user-select: none; font-weight: 800; font-size: 1.08rem; color: var(--primary); }
.unlock-link {
  background: var(--primary); color: var(--white); border: none;
  border-radius: 8px; padding: 6px 12px; font-size: 0.79rem;
  font-family: inherit; font-weight: 600; cursor: pointer;
}
.unlock-link:hover { background: var(--accent-dark); }
.price-val { font-size: 1.18rem; font-weight: 800; color: var(--primary); }
.price-unit { font-size: 0.76rem; color: var(--muted); display: block; }
.plan-list { list-style: none; margin-bottom: 16px; flex-grow: 1; }
.plan-list li { position: relative; padding-inline-start: 19px; margin-bottom: 7px; font-size: 0.85rem; color: var(--text); }
.plan-list li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--accent-dark); font-weight: 800; }
.plan-actions { display: flex; flex-direction: column; gap: 8px; }
.plan-actions .btn { width: 100%; padding: 9px 10px; font-size: 0.84rem; }

/* Tables */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); background: var(--white); box-shadow: var(--shadow-soft); }
table { width: 100%; border-collapse: collapse; min-width: 660px; }
th, td { padding: 13px 15px; text-align: start; border-bottom: 1px solid var(--border); font-size: 0.88rem; }
th { background: var(--primary); color: var(--white); font-weight: 700; }
tr:last-child td { border-bottom: none; }
tr:nth-child(even) td { background: #F8FAFC; }
.col-highlight { background: #F0FDFA !important; font-weight: 600; }
.pill {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 0.77rem; font-weight: 700;
}
.pill-p1 { background: #FEE2E2; color: #B91C1C; }
.pill-p2 { background: #FEF3C7; color: #B45309; }
.pill-p3 { background: #E0F2FE; color: #0369A1; }
.pill-p4 { background: #CCFBF1; color: #0F766E; }
.pill-pending { background: #FEF3C7; color: #92400E; }
.pill-reviewed { background: #E0F2FE; color: #075985; }
.pill-approved { background: #D1FAE5; color: #065F46; }

/* Collapsible Custom Configurator */
.custom-bar {
  margin-top: 28px;
  background: linear-gradient(135deg, var(--bg-deep) 0%, var(--primary) 100%);
  color: var(--white); border-radius: var(--radius); padding: 20px 24px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  box-shadow: var(--shadow-soft);
}
.custom-panel {
  display: none; margin-top: 16px; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow-soft);
}
.custom-panel.open { display: block; }
.tab-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; border-bottom: 1px solid var(--border); padding-bottom: 12px; }
.tab-btn {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 9px;
  padding: 8px 14px; font-family: inherit; font-size: 0.84rem; font-weight: 600;
  color: var(--muted); cursor: pointer;
}
.tab-btn.active { background: var(--primary); color: var(--white); border-color: var(--primary); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }
.cfg-grid { display: grid; grid-template-columns: 1.35fr 0.65fr; gap: 22px; align-items: start; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--primary); margin-bottom: 5px; }
.field select, .field input[type="range"], .field input[type="text"], .field input[type="tel"], .field input[type="password"], .field textarea {
  width: 100%; padding: 10px 13px; border: 1px solid var(--border);
  border-radius: 10px; font-family: inherit; font-size: 0.9rem; background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(20,184,166,0.15);
}
.field textarea { min-height: 92px; resize: vertical; line-height: 1.7; }
.check-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.check-card {
  display: flex; align-items: center; gap: 9px; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: 10px; cursor: pointer;
  font-size: 0.85rem; background: var(--bg-soft);
}
.check-card input { accent-color: var(--accent-dark); width: 16px; height: 16px; }
.summary-box {
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px; position: sticky; top: 92px;
}
.summary-box h4 { color: var(--primary); margin-bottom: 10px; font-size: 0.98rem; }
.sum-line { display: flex; justify-content: space-between; font-size: 0.85rem; margin-bottom: 7px; color: var(--muted); }
.sum-total {
  border-top: 1px solid var(--border); margin-top: 12px; padding-top: 12px;
  display: flex; justify-content: space-between; font-weight: 800; color: var(--primary); font-size: 0.98rem;
}

/* Note & Contact Box */
.note-box {
  margin-top: 20px; background: var(--accent-bg);
  border-inline-start: 4px solid var(--accent);
  padding: 14px 18px; border-radius: 10px; font-size: 0.88rem; color: var(--primary);
}
.contact-box {
  background: linear-gradient(135deg, var(--bg-deep) 0%, var(--primary) 100%);
  color: var(--white); border-radius: 20px; padding: 42px 34px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
}

/* Modals */
.modal-backdrop {
  display: none; position: fixed; inset: 0; z-index: 999;
  background: rgba(4, 25, 28, 0.78); backdrop-filter: blur(6px);
  align-items: center; justify-content: center; padding: 16px; overflow-y: auto;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--white); border-radius: 20px; width: 100%; max-width: 450px;
  padding: 26px; position: relative; box-shadow: 0 24px 60px rgba(0,0,0,0.35);
  max-height: 92vh; overflow-y: auto;
}
.modal.modal-lg { max-width: 780px; }
.modal-close {
  position: absolute; top: 14px; inset-inline-end: 14px; background: var(--bg-soft);
  border: 1px solid var(--border); width: 32px; height: 32px; border-radius: 8px;
  font-size: 1.2rem; cursor: pointer; color: var(--muted);
}
.modal h3 { color: var(--primary); margin-bottom: 6px; font-size: 1.15rem; }
.modal p { font-size: 0.86rem; color: var(--muted); margin-bottom: 14px; }
.modal .field { margin-bottom: 12px; }
.modal-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.modal-tabs button {
  flex: 1; padding: 8px; border-radius: 9px; border: 1px solid var(--border);
  background: var(--bg-soft); font-family: inherit; font-weight: 600; cursor: pointer;
}
.modal-tabs button.active { background: var(--primary); color: var(--white); border-color: var(--primary); }
.otp-banner {
  background: #FEF3C7; border: 1px solid #F59E0B; color: #92400E;
  padding: 10px 12px; border-radius: 10px; font-size: 0.83rem; margin-bottom: 12px; line-height: 1.6;
}

/* Proforma Invoice Paper Style */
.invoice-sheet { border: 1px solid var(--border); border-radius: 12px; padding: 20px; background: var(--white); }
.inv-header {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 12px; padding-bottom: 14px; border-bottom: 2px solid var(--primary); margin-bottom: 16px;
}
.inv-meta-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
  background: var(--bg-soft); border-radius: 10px; padding: 12px 14px;
  font-size: 0.85rem; margin-bottom: 16px;
}
.inv-totals {
  margin-top: 14px; margin-inline-start: auto; max-width: 340px;
  background: var(--accent-bg); border: 1px solid #99F6E4; border-radius: 10px; padding: 12px 16px;
}
.inv-totals div { display: flex; justify-content: space-between; font-size: 0.88rem; margin-bottom: 6px; }
.inv-totals .grand {
  border-top: 1px solid var(--accent); padding-top: 8px; margin-top: 6px;
  font-weight: 800; color: var(--primary); font-size: 1rem;
}

/* Profile & Admin Dashboard */
.inv-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px; margin-bottom: 14px; box-shadow: var(--shadow-soft);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px;
}
.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.kpi-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px;
  box-shadow: var(--shadow-soft); border-top: 4px solid var(--accent);
}
.kpi-card strong { display: block; font-size: 1.38rem; color: var(--primary); margin-bottom: 4px; }
.kpi-card span { font-size: 0.82rem; color: var(--muted); }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }

/* Footer */
footer {
  border-top: 1px solid var(--border); padding: 28px 0;
  font-size: 0.87rem; color: var(--muted); background: var(--white);
}
.footer-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; }
.footer-admin-link { color: var(--muted); opacity: 0.7; font-size: 0.8rem; }
.footer-admin-link:hover { opacity: 1; color: var(--primary); }

@media print {
  body * { visibility: hidden; }
  #invoiceModalBackdrop, #invoiceModalBackdrop * { visibility: visible; }
  #invoiceModalBackdrop { position: static; background: none; padding: 0; }
  .modal { box-shadow: none; max-width: 100%; width: 100%; padding: 0; }
  .no-print { display: none !important; }
}

@media (max-width: 980px) {
  .hero-grid, .cfg-grid { grid-template-columns: 1fr; }
  .grid-4, .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .menu-btn { display: inline-block; }
  nav {
    display: none; position: absolute; top: 78px; right: 0; left: 0;
    background: var(--bg-deep); flex-direction: column; align-items: flex-start;
    padding: 20px; gap: 14px; border-bottom: 1px solid rgba(20,184,166,0.25);
  }
  nav.open { display: flex; }
  .grid-2, .grid-4, .kpi-row, .form-row, .check-grid, .inv-meta-grid { grid-template-columns: 1fr; }
}