/*
 * Use Case — Appointment Reminders
 * Prefix: ar-
 */

body.baat-appt-reminders {
  background: #0B1120;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: #fff;
  overflow-x: hidden;
}
body.baat-appt-reminders * { box-sizing: border-box; }
body.baat-appt-reminders a { text-decoration: none; }
body.baat-appt-reminders p { color: inherit; }

/* ── Shared tokens ── */
.ar-sec-label {
  display: block;
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: #0057FF; margin-bottom: 12px;
}
.ar-sec-h {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 800; letter-spacing: -.03em;
  color: #fff; margin: 0; line-height: 1.2;
}
.ar-btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 26px; background: #0057FF; color: #fff;
  font-size: 14px; font-weight: 700; border-radius: 10px;
  transition: background .15s, box-shadow .15s;
}
.ar-btn-primary:hover { background: #0046CC; box-shadow: 0 0 24px rgba(0,87,255,.4); color: #fff; }
.ar-btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 26px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.75);
  font-size: 14px; font-weight: 700; border-radius: 10px;
  transition: background .15s, color .15s, border-color .15s;
}
.ar-btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.3); }

/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
.ar-hero {
  position: relative; padding: 120px 24px 80px;
  overflow: hidden; background: #0B1120;
}
.ar-hero-bg-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(0,87,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,87,255,.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
}
.ar-hero-bg-orb {
  position: absolute; top: -120px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 500px;
  background: radial-gradient(ellipse at center, rgba(0,87,255,.18) 0%, transparent 70%);
  pointer-events: none;
}
.ar-hero-inner {
  max-width: 1120px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
@media (max-width: 860px) {
  .ar-hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .ar-hero-visual { order: -1; }
}

.ar-breadcrumb {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600; color: rgba(255,255,255,.45);
  margin-bottom: 20px; transition: color .15s;
}
.ar-breadcrumb:hover { color: rgba(255,255,255,.75); }

.ar-pill {
  display: inline-flex; align-items: center; padding: 5px 12px;
  background: rgba(0,87,255,.12); border: 1px solid rgba(0,87,255,.25);
  border-radius: 20px; font-size: 11px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: #4d8fff; margin-bottom: 20px;
}
.ar-hero-h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; letter-spacing: -.04em;
  line-height: 1.12; color: #fff; margin: 0 0 18px;
}
.ar-hero-sub {
  font-size: 16px; line-height: 1.65; color: rgba(255,255,255,.55);
  margin: 0 0 32px; max-width: 440px;
}
.ar-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Phone ── */
.ar-hero-visual { position: relative; display: flex; justify-content: center; }
.ar-phone {
  width: 280px; background: #111C2E; border: 1px solid rgba(255,255,255,.1);
  border-radius: 24px; overflow: hidden;
  box-shadow: 0 0 80px rgba(0,87,255,.2), 0 40px 80px rgba(0,0,0,.6);
}
.ar-phone-header {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; background: #25D366;
}
.ar-ph-back { flex-shrink: 0; }
.ar-ph-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(0,0,0,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.ar-ph-name   { font-size: 13px; font-weight: 700; color: #fff; }
.ar-ph-status { font-size: 11px; color: rgba(255,255,255,.75); }

.ar-phone-chat {
  padding: 14px 12px; background: #0E1C2F;
  display: flex; flex-direction: column; gap: 8px; min-height: 290px;
}
.ar-chat-date { text-align: center; font-size: 10px; color: rgba(255,255,255,.3); margin-bottom: 2px; }

.ar-msg { display: flex; }
.ar-msg-in  { align-self: flex-start; max-width: 95%; }
.ar-msg-out { align-self: flex-end; max-width: 80%; justify-content: flex-end; }

.ar-msg-body {
  background: #1A2A40; border: 1px solid rgba(255,255,255,.06);
  border-radius: 4px 14px 14px 14px; padding: 10px 12px;
}
.ar-bubble-out {
  background: rgba(37,211,102,.15); border: 1px solid rgba(37,211,102,.2);
  border-radius: 14px 4px 14px 14px; padding: 10px 12px;
}
.ar-msg-icon  { font-size: 18px; margin-bottom: 5px; }
.ar-msg-title { font-size: 12px; font-weight: 700; color: #fff; margin-bottom: 5px; }
.ar-msg-text  { font-size: 11px; line-height: 1.6; color: rgba(255,255,255,.65); }
.ar-msg-text strong { color: rgba(255,255,255,.9); }
.ar-msg-time  { font-size: 10px; color: rgba(255,255,255,.3); text-align: right; margin-top: 6px; }

.ar-quick-replies { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.ar-qr {
  font-size: 10px; font-weight: 700; padding: 4px 9px; border-radius: 20px; cursor: pointer;
}
.ar-qr-confirm    { background: rgba(37,211,102,.15); color: #25D366; border: 1px solid rgba(37,211,102,.25); }
.ar-qr-reschedule { background: rgba(251,191,36,.12); color: #FBBF24; border: 1px solid rgba(251,191,36,.2); }
.ar-qr-cancel     { background: rgba(255,80,80,.1);   color: #ff6b6b; border: 1px solid rgba(255,80,80,.2); }

/* Floating stat */
.ar-hero-stat-card {
  position: absolute; bottom: -16px; right: -16px;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; background: #111C2E; border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px; box-shadow: 0 8px 32px rgba(0,0,0,.5); white-space: nowrap;
}
.ar-hsc-icon { font-size: 22px; }
.ar-hsc-n { font-size: 18px; font-weight: 800; color: #25D366; line-height: 1; }
.ar-hsc-l { font-size: 11px; color: rgba(255,255,255,.45); margin-top: 2px; max-width: 110px; line-height: 1.3; }

/* ═══════════════════════════════════════════
   STATS STRIP
═══════════════════════════════════════════ */
.ar-stats {
  background: #0E1829;
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06); padding: 40px 24px;
}
.ar-stats-inner {
  max-width: 860px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
}
.ar-stat { flex: 1; min-width: 180px; text-align: center; padding: 12px 24px; }
.ar-stat-n {
  font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -.04em;
  background: linear-gradient(135deg, #0057FF, #25D366);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; line-height: 1;
}
.ar-stat-l { font-size: 12px; color: rgba(255,255,255,.45); margin-top: 6px; line-height: 1.4; }
.ar-stat-sep { width: 1px; height: 48px; background: rgba(255,255,255,.08); flex-shrink: 0; }
@media (max-width: 640px) {
  .ar-stat-sep { display: none; }
  .ar-stat { flex-basis: 100%; border-bottom: 1px solid rgba(255,255,255,.06); }
  .ar-stat:last-child { border-bottom: none; }
}

/* ═══════════════════════════════════════════
   REMINDER SEQUENCE TIMELINE
═══════════════════════════════════════════ */
.ar-sequence { padding: 96px 24px; background: #0B1120; }
.ar-sequence-inner { max-width: 1080px; margin: 0 auto; }
.ar-sequence-header { text-align: center; margin-bottom: 56px; }
.ar-sequence-sub {
  font-size: 15px; color: rgba(255,255,255,.45);
  max-width: 540px; margin: 16px auto 0; line-height: 1.65;
}

.ar-steps {
  display: flex; align-items: flex-start;
  position: relative;
}
@media (max-width: 720px) {
  .ar-steps { flex-direction: column; align-items: stretch; }
}

.ar-step {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  position: relative; z-index: 1;
}
.ar-step-time {
  font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: #0057FF; margin-bottom: 10px; text-align: center;
}
.ar-step-dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: #0057FF; border: 3px solid #0B1120;
  box-shadow: 0 0 0 2px #0057FF; margin-bottom: 16px; flex-shrink: 0;
}
.ar-dot-final { background: #25D366; box-shadow: 0 0 0 2px #25D366; }

.ar-step-card {
  background: #111C2E; border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px; padding: 18px 16px; text-align: center; width: 100%;
  transition: border-color .2s, transform .2s;
}
.ar-step-card:hover { border-color: rgba(0,87,255,.3); transform: translateY(-3px); }
.ar-step-icon  { font-size: 24px; margin-bottom: 8px; }
.ar-step-title { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.ar-step-msg   { font-size: 11px; color: rgba(255,255,255,.4); line-height: 1.5; font-style: italic; }

.ar-step-line {
  flex-shrink: 0; width: 32px; height: 2px;
  background: linear-gradient(90deg, rgba(0,87,255,.4), rgba(0,87,255,.15));
  margin-top: 35px;
}
@media (max-width: 720px) {
  .ar-step-line { width: 2px; height: 20px; margin: 0 0 0 50%; background: linear-gradient(to bottom, rgba(0,87,255,.4), rgba(0,87,255,.15)); }
  .ar-step { flex-direction: row; gap: 14px; align-items: flex-start; }
  .ar-step-time { width: 70px; flex-shrink: 0; margin-bottom: 0; margin-top: 2px; }
  .ar-step-dot  { margin-bottom: 0; margin-top: 4px; }
  .ar-step-card { text-align: left; }
}

/* ═══════════════════════════════════════════
   DEEP DIVE — shared
═══════════════════════════════════════════ */
.ar-dive { padding: 96px 24px; background: #0B1120; }
.ar-dive-alt { background: #0E1829; }
.ar-dive-inner {
  max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.ar-dive-rev { direction: rtl; }
.ar-dive-rev > * { direction: ltr; }
@media (max-width: 860px) {
  .ar-dive-inner { grid-template-columns: 1fr; gap: 40px; }
  .ar-dive-rev { direction: ltr; }
}

.ar-dive-h {
  font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -.03em;
  line-height: 1.2; color: #fff; margin: 0 0 16px;
}
.ar-dive-copy p { font-size: 15px; color: rgba(255,255,255,.5); line-height: 1.7; margin: 0 0 20px; }
.ar-dive-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ar-dive-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: rgba(255,255,255,.65); line-height: 1.5;
}
.ar-dive-list li::before {
  content: ''; flex-shrink: 0; width: 16px; height: 16px; margin-top: 2px;
  background: rgba(0,87,255,.15); border: 1px solid rgba(0,87,255,.3); border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg width='8' height='8' viewBox='0 0 8 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.5 4L3.5 6L6.5 2.5' stroke='%230057FF' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}
.ar-dive-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: #0057FF; margin-top: 24px; transition: gap .15s;
}
.ar-dive-link:hover { gap: 10px; color: #4d8fff; }

/* ── Reschedule card ── */
.ar-reschedule-card {
  background: #111C2E; border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px; padding: 22px;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
}
.ar-rc-header { font-size: 13px; font-weight: 700; color: rgba(255,255,255,.5); margin-bottom: 14px; }
.ar-rc-chat { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.ar-rc-msg {}
.ar-rc-bubble {
  font-size: 11px; line-height: 1.5; padding: 9px 12px;
  background: rgba(0,87,255,.1); border: 1px solid rgba(0,87,255,.18);
  border-radius: 4px 12px 12px 12px; color: rgba(255,255,255,.65); max-width: 90%;
}
.ar-rc-confirm {
  background: rgba(37,211,102,.1); border-color: rgba(37,211,102,.2); color: #25D366; font-weight: 600;
}

.ar-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ar-slot {
  display: flex; flex-direction: column; gap: 2px;
  padding: 8px 10px; border-radius: 10px; border: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.03);
}
.ar-slot-taken { opacity: .4; }
.ar-slot-selected {
  border-color: rgba(37,211,102,.35); background: rgba(37,211,102,.08);
}
.ar-slot-day  { font-size: 10px; color: rgba(255,255,255,.4); }
.ar-slot-time { font-size: 13px; font-weight: 700; color: #fff; }
.ar-slot-status { font-size: 10px; font-weight: 600; }
.ar-status-full { color: rgba(255,255,255,.3); }
.ar-status-open { color: #4d8fff; }
.ar-slot-selected .ar-status-open { color: #25D366; }

.ar-rc-footer {
  padding-top: 10px; border-top: 1px solid rgba(255,255,255,.06); text-align: center;
}
.ar-rc-sync { font-size: 11px; color: rgba(255,255,255,.35); }

/* ── Appointments dashboard ── */
.ar-dashboard-card {
  background: #111C2E; border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px; padding: 22px;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
}
.ar-dc-header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px;
}
.ar-dc-title { font-size: 13px; font-weight: 700; color: #fff; }
.ar-dc-date  { font-size: 11px; color: rgba(255,255,255,.35); }

.ar-appointments { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.ar-appt {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.06);
}
.ar-appt-confirmed  { background: rgba(37,211,102,.04);  border-color: rgba(37,211,102,.15); }
.ar-appt-rescheduled { background: rgba(251,191,36,.04); border-color: rgba(251,191,36,.15); }
.ar-appt-pending    { background: rgba(255,255,255,.02); border-color: rgba(255,255,255,.07); }

.ar-appt-time { font-size: 11px; font-weight: 700; color: rgba(255,255,255,.5); width: 58px; flex-shrink: 0; }
.ar-appt-info { flex: 1; }
.ar-appt-name { font-size: 12px; font-weight: 700; color: #fff; }
.ar-appt-type { font-size: 10px; color: rgba(255,255,255,.35); margin-top: 1px; }

.ar-appt-badge { font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 20px; flex-shrink: 0; }
.ar-badge-confirmed   { background: rgba(37,211,102,.12); color: #25D366; border: 1px solid rgba(37,211,102,.2); }
.ar-badge-rescheduled { background: rgba(251,191,36,.12); color: #FBBF24; border: 1px solid rgba(251,191,36,.2); }
.ar-badge-pending     { background: rgba(255,255,255,.06); color: rgba(255,255,255,.4); border: 1px solid rgba(255,255,255,.1); }

.ar-dc-footer {
  padding-top: 12px; border-top: 1px solid rgba(255,255,255,.06); text-align: center;
}
.ar-dc-stat { font-size: 12px; color: rgba(255,255,255,.35); }

/* ═══════════════════════════════════════════
   CTA
═══════════════════════════════════════════ */
.ar-cta {
  position: relative; overflow: hidden;
  padding: 96px 24px; background: #0B1120; text-align: center;
}
.ar-cta-glow {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse at center, rgba(0,87,255,.25) 0%, transparent 70%);
  pointer-events: none;
}
.ar-cta-inner { position: relative; z-index: 1; max-width: 600px; margin: 0 auto; }
.ar-cta-h {
  font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -.04em;
  line-height: 1.15; color: #fff; margin: 0 0 16px;
}
.ar-cta-sub  { font-size: 16px; color: rgba(255,255,255,.5); margin: 0 0 32px; }
.ar-cta-btns { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.ar-cta-note { margin-top: 16px; font-size: 12px; color: rgba(255,255,255,.3); }
