
/* ── AVI Variables ─────────────────────────────────────────── */
:root {
  --avi-blue:        #0a3d8f;
  --avi-blue-mid:    #1557c0;
  --avi-blue-light:  #e8f0fe;
  --avi-blue-accent: #0062e6;
  --avi-yellow:      #f5c518;
  --avi-yellow-h:    #e0af00;
  --avi-text-dark:   #0d1f3c;
  --avi-text-mid:    #3d5a8a;
  --avi-text-soft:   #6b85a8;
  --avi-border:      #d6e4f7;
  --avi-bg-card:     #ffffff;
  --avi-bg-hero:     #f0f5ff;
  --avi-shadow:      0 4px 32px rgba(10,61,143,0.10);
  --avi-radius:      16px;
}

/* ── PLANS WRAPPER ─────────────────────────────────────────── */
.avi-plans-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 0;
  margin-top: 24px;
}

/* ── PLAN CARD ─────────────────────────────────────────────── */
.avi-plan-card {
  background: var(--avi-bg-card);
  border-radius: var(--avi-radius);
  box-shadow: var(--avi-shadow);
  border: 1.5px solid var(--avi-border);
  overflow: hidden;
  transition: box-shadow 0.20s, border-color 0.20s;
  animation: aviCardIn 0.4s ease both;
}
.avi-plan-card:hover {
  box-shadow: 0 8px 44px rgba(10,61,143,0.15);
}
.avi-plan-card.avi-selected {
  border-color: var(--avi-blue-accent);
  box-shadow: 0 0 0 3px rgba(0,98,230,0.14), 0 8px 36px rgba(10,61,143,0.14);
}
@keyframes aviCardIn {
  from { opacity:0; transform:translateY(14px); }
  to   { opacity:1; transform:translateY(0); }
}
.avi-plan-card:nth-child(1) { animation-delay:.04s; }
.avi-plan-card:nth-child(2) { animation-delay:.09s; }
.avi-plan-card:nth-child(3) { animation-delay:.14s; }
.avi-plan-card:nth-child(4) { animation-delay:.19s; }
.avi-plan-card:nth-child(5) { animation-delay:.24s; }
.avi-plan-card:nth-child(6) { animation-delay:.29s; }

/* ── PLAN HERO ─────────────────────────────────────────────── */
.avi-plan-hero {
  background: var(--avi-bg-hero);
  border-bottom: 1.5px solid var(--avi-border);
  padding: 22px 28px 18px;
}
.avi-plan-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.avi-plan-name-block {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.avi-plan-number {
  background: var(--avi-blue-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 5px;
  white-space: nowrap;
  text-transform: uppercase;
}
.avi-plan-title {
  font-size: clamp(17px, 2.5vw, 22px);
  font-weight: 700;
  font-family: inherit;
  color: var(--avi-blue);
  position: relative;
  display: inline-block;
  margin: 0;
}
.avi-plan-title::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--avi-blue-accent), transparent);
  border-radius: 2px;
}
.avi-plan-hero p {
  font-size: inherit;
  font-family: inherit;
  line-height: 1.7;
  color: inherit;
  margin: 0;
}

/* ── PLAN BODY ─────────────────────────────────────────────── */
.avi-plan-body {
  padding: 22px 28px 24px;
}
.avi-reasons-label {
  font-size: 11px;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--avi-blue-accent);
  margin-bottom: 16px;
  display: block;
}

/* ── TIMELINE ──────────────────────────────────────────────── */
.avi-timeline {
  position: relative;
  padding-left: 30px;
  margin-bottom: 0;
}
.avi-timeline::before {
  content: '';
  position: absolute;
  left: 10px; top: 4px; bottom: 4px;
  width: 2px;
  background: linear-gradient(to bottom, var(--avi-blue-accent) 0%, var(--avi-border) 100%);
  border-radius: 2px;
}
.avi-step {
  position: relative;
  padding: 0 0 14px 0;
  margin: 0;
}
.avi-step:last-child { padding-bottom: 0; }
.avi-step::before {
  content: '';
  position: absolute;
  left: -25px; top: 5px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--avi-blue-accent);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--avi-blue-accent);
  z-index: 1;
}
.avi-step.avi-note-step::before {
  border-color: #7aabcf;
  box-shadow: 0 0 0 2px rgba(122,171,207,0.18);
}
.avi-step-text {
  font-size: inherit;
  font-family: inherit;
  line-height: 1.65;
  color: inherit;
}
.avi-step-text strong::after {
  content: ' - ';
  font-weight: 400;
  color: inherit;
}
.avi-step.avi-note-step .avi-step-text { font-style: italic; }
.avi-step.avi-note-step .avi-step-text strong { display: none; }

/* ── PLAN FOOTER ───────────────────────────────────────────── */
.avi-plan-footer {
  background: #f8fbff;
  border-top: 1.5px solid var(--avi-border);
  padding: 16px 28px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

/* ── BUTTONS ───────────────────────────────────────────────── */
.avi-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  line-height: 1;
  transition: all 0.16s;
  background: none;
  font-family: inherit;
}
.avi-btn-details {
  color: #222;
  border-color: #222;
  background: #fff;
}
.avi-btn-details:hover { background: #222; color: #fff; }
.avi-btn-brochure {
  color: var(--avi-blue-accent);
  border-color: var(--avi-blue-accent);
  background: #fff;
}
.avi-btn-brochure:hover { background: var(--avi-blue-accent); color: #fff; }
.avi-btn-buy {
  background: var(--avi-yellow);
  color: #1a1a1a;
  border-color: var(--avi-yellow);
  font-weight: 800;
  box-shadow: 0 2px 10px rgba(245,197,24,0.32);
}
.avi-btn-buy:hover {
  background: var(--avi-yellow-h);
  border-color: var(--avi-yellow-h);
  box-shadow: 0 4px 16px rgba(245,197,24,0.42);
  transform: translateY(-1px);
  color: #1a1a1a;
  text-decoration: none;
}

/* ── ICON ──────────────────────────────────────────────────── */
.avi-icon {
  font-family: 'Material Symbols Outlined';
  font-variation-settings: 'FILL' 0,'wght' 400,'GRAD' 0,'opsz' 18;
  font-size: 16px;
  line-height: 1;
  vertical-align: middle;
  display: inline-block;
}

/* ── MODAL ─────────────────────────────────────────────────── */
.avi-modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.52);
  z-index: 1060;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.avi-modal-overlay.avi-open { display: flex; }
.avi-modal-box {
  background: #fff;
  border-radius: 14px;
  max-width: 430px; width: 100%;
  box-shadow: 0 12px 60px rgba(0,0,0,0.24);
  overflow: hidden;
  animation: aviModalIn 0.20s ease;
}
@keyframes aviModalIn {
  from { transform:scale(0.92); opacity:0; }
  to   { transform:scale(1);    opacity:1; }
}
.avi-modal-head {
  background: var(--avi-bg-hero);
  border-bottom: 1px solid var(--avi-border);
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.avi-modal-head h4 {
  font-size: 15px; font-weight: 700;
  color: var(--avi-blue); margin: 0;
}
.avi-modal-close {
  background: none; border: none; cursor: pointer;
  font-size: 22px; color: #888; line-height: 1;
  transition: color 0.12s; padding: 0;
}
.avi-modal-close:hover { color: #c00; }
.avi-modal-content-body { padding: 18px 22px; }
.avi-modal-content-body p {
  font-size: 14px; color: var(--avi-text-mid); margin-bottom: 12px;
}
.avi-modal-content-body ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.avi-modal-content-body ul li a {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--avi-blue-accent); font-size: 14px; font-weight: 600;
  text-decoration: none; transition: color 0.12s;
}
.avi-modal-content-body ul li a::before { content: '↗'; font-size: 12px; }
.avi-modal-content-body ul li a:hover { color: var(--avi-blue); }
.avi-modal-foot {
  border-top: 1px solid var(--avi-border);
  padding: 12px 22px; text-align: right;
}
.avi-modal-foot button {
  background: #f0f0f0; border: none; border-radius: 7px;
  padding: 7px 18px; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: background 0.14s;
}
.avi-modal-foot button:hover { background: #ddd; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 576px) {
  .avi-plan-hero,
  .avi-plan-body,
  .avi-plan-footer { padding-left: 16px; padding-right: 16px; }
  .avi-plan-hero-top { flex-direction: column; }
  .avi-btn { font-size: 12px; padding: 8px 14px; }
}
