/* COMPONENTS — Appointment Tabs, Feedback, Broadcast, Auto-Messages, Timing, Chatbot, Icons, Responsive */
/* ═══════════════════════════════════════════════════════════════ */

/* ── APPOINTMENT SCHEDULE (INT'L / NATIONAL / LOCAL) ─────── */
#appointment { background: var(--off); }
.appt-tabs { display: flex; gap: 10px; margin-bottom: 28px; flex-wrap: wrap; }
.appt-tab { padding: 10px 22px; border-radius: 100px; font-size: .83rem; font-weight: 700; cursor: pointer; transition: var(--trans); border: 2px solid var(--border); background: #fff; color: var(--muted); font-family: var(--sans); }
.appt-tab.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.appt-panel { display: none; }
.appt-panel.active { display: block; }
.appt-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(200px,1fr)); gap: 14px; }
.appt-card { background: #fff; border: 1px solid var(--border); border-radius: var(--rad); padding: 18px 16px; }
.appt-card-day { font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.appt-card-time { font-family: var(--serif); font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.appt-card-note { font-size: .74rem; color: var(--muted); }
.appt-card-badge { display: inline-block; font-size: .63rem; font-weight: 700; padding: 2px 10px; border-radius: 100px; margin-top: 6px; }
.badge-intl { background: #e8eaf6; color: #3949ab; }
.badge-natl { background: #e8f5e9; color: #2e7d32; }
.badge-local { background: var(--pale); color: var(--blue); }
.appt-contact-row { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 12px; }
.appt-contact-card { flex: 1; min-width: 180px; background: #fff; border: 1px solid var(--border); border-radius: var(--rad); padding: 14px 16px; display: flex; align-items: flex-start; gap: 11px; }
.appt-contact-icon { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; }
.aci-intl { background: #e8eaf6; }
.aci-natl { background: #e8f5e9; }
.aci-local { background: var(--pale); }
.appt-contact-card h5 { font-size: .8rem; font-weight: 700; color: var(--navy); margin-bottom: 2px; }
.appt-contact-card p { font-size: .75rem; color: var(--muted); line-height: 1.5; }
.appt-contact-card a { color: var(--blue); font-weight: 600; }


/* ── FEEDBACK SECTION ─────────────────────────────────────── */
#feedback { background: #fff; }
.feedback-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.feedback-list { display: flex; flex-direction: column; gap: 16px; }
.feedback-card { background: var(--off); border: 1px solid var(--border); border-radius: var(--rad); padding: 20px; position: relative; overflow: hidden; transition: var(--trans); }
.feedback-card:hover { box-shadow: var(--shadow-lg); }
.feedback-card-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 10px; }
.feedback-author { display: flex; align-items: center; gap: 10px; }
.feedback-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg,var(--blue),var(--sky)); color: #fff; font-weight: 800; font-size: .8rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.feedback-name { font-size: .85rem; font-weight: 700; color: var(--navy); }
.feedback-loc { font-size: .71rem; color: var(--muted); }
.feedback-type { font-size: .63rem; font-weight: 700; padding: 3px 10px; border-radius: 100px; }
.fb-type-text { background: var(--pale); color: var(--blue); }
.fb-type-video { background: #fce4ec; color: #c2185b; }
.feedback-stars { color: var(--gold); font-size: .82rem; margin-bottom: 8px; }
.feedback-text { font-size: .83rem; color: var(--text); line-height: 1.7; font-style: italic; }
.feedback-video-thumb { width: 100%; height: 140px; background: linear-gradient(135deg,#0d47a1,#0288d1); border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; cursor: pointer; position: relative; overflow: hidden; }
.feedback-video-thumb::after { content: '▶'; font-size: 2.5rem; color: rgba(255,255,255,.9); }
.feedback-video-label { font-size: .78rem; color: var(--muted); font-style: italic; }
.feedback-reply { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 10px 13px; margin-top: 12px; display: flex; align-items: flex-start; gap: 9px; }
.feedback-reply-icon { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }
.feedback-reply-text { font-size: .78rem; color: var(--muted); line-height: 1.6; }
.feedback-reply-text strong { color: var(--navy); display: block; margin-bottom: 2px; font-size: .75rem; }

/* Feedback form */
.feedback-form-wrap { background: var(--off); border: 1px solid var(--border); border-radius: var(--rad); padding: 26px 22px; position: sticky; top: 90px; }
.feedback-form-wrap h3 { font-family: var(--serif); font-size: 1.2rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.feedback-form-wrap p { font-size: .82rem; color: var(--muted); margin-bottom: 18px; }
.star-select { display: flex; gap: 6px; margin-bottom: 14px; }
.star-select span { font-size: 1.4rem; cursor: pointer; transition: transform .15s; }
.star-select span:hover { transform: scale(1.2); }
.wa-form-group { margin-bottom: 13px; }
.wa-form-group label { display: block; font-size: .77rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.wa-form-group input,
.wa-form-group select,
.wa-form-group textarea { width: 100%; padding: 10px 13px; border: 1.5px solid var(--border); border-radius: var(--rad-sm); font-family: var(--sans); font-size: .87rem; color: var(--text); outline: none; transition: border-color .2s; background: #fff; }
.wa-form-group input:focus,
.wa-form-group select:focus,
.wa-form-group textarea:focus { border-color: var(--blue); }
.wa-form-group textarea { resize: vertical; min-height: 80px; }
.upload-btn-wrap { position: relative; overflow: hidden; display: inline-block; }
.upload-btn-wrap input[type=file] { position: absolute; left: 0; top: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
#feedbackSuccess { display: none; background: #e8f5e9; border: 1px solid #a5d6a7; border-radius: 10px; padding: 13px 16px; color: #2e7d32; font-size: .84rem; font-weight: 600; margin-top: 14px; text-align: center; }

/* ── BROADCAST NOTICE ─────────────────────────────────────── */
.wa-broadcast-strip { background: linear-gradient(90deg,#1b5e20,#2e7d32); padding: 14px 0; }
.broadcast-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.broadcast-text { color: #fff; font-size: .85rem; display: flex; align-items: center; gap: 10px; }
.broadcast-text i { font-size: 1.1rem; color: #a5d6a7; }
.broadcast-text strong { color: #fff; }
.btn-broadcast { background: rgba(255,255,255,.15); color: #fff; border: 1.5px solid rgba(255,255,255,.35); font-size: .8rem; padding: 8px 18px; }
.btn-broadcast:hover { background: rgba(255,255,255,.25); }

/* ── ADMIN WHATSAPP TOOLS PANEL ───────────────────────────── */
.admin-panel-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 9500; align-items: center; justify-content: center; padding: 20px; }
.admin-panel-overlay.open { display: flex; }
.admin-panel { background: #fff; border-radius: 20px; max-width: 580px; width: 100%; max-height: 90vh; overflow-y: auto; box-shadow: 0 24px 80px rgba(0,0,0,.3); animation: modalIn .35s cubic-bezier(.4,0,.2,1); position: relative; }
.admin-panel-head { background: linear-gradient(135deg,var(--navy),var(--blue)); padding: 22px 26px; border-radius: 20px 20px 0 0; display: flex; align-items: center; justify-content: space-between; }
.admin-panel-head h3 { font-family: var(--serif); font-size: 1.2rem; color: #fff; font-weight: 700; }
.admin-panel-head p { font-size: .75rem; color: rgba(255,255,255,.65); margin-top: 2px; }
/* [removed duplicate close btn rule] */
.admin-body { padding: 24px 26px; display: flex; flex-direction: column; gap: 14px; }
.admin-msg-card { background: var(--off); border: 1px solid var(--border); border-radius: var(--rad); padding: 16px 18px; }
.admin-msg-card h4 { font-size: .84rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.admin-msg-card p { font-size: .78rem; color: var(--muted); margin-bottom: 12px; line-height: 1.6; }
.admin-msg-card .wa-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.admin-msg-card input, .admin-msg-card select { width: 100%; padding: 9px 12px; border: 1.5px solid var(--border); border-radius: var(--rad-sm); font-family: var(--sans); font-size: .83rem; color: var(--text); outline: none; background: #fff; }
.admin-msg-card input:focus { border-color: var(--blue); }
.admin-tag { font-size: .62rem; font-weight: 700; padding: 2px 9px; border-radius: 100px; }
.tag-appt { background: var(--pale); color: var(--blue); }
.tag-lens { background: #e8f5e9; color: #2e7d32; }
.tag-remind { background: #fff3e0; color: #e65100; }
.tag-lab { background: #f3e5f5; color: #7b1fa2; }
.tag-broad { background: #e8eaf6; color: #3949ab; }

/* ── RESPONSIVE ADDITIONS ─────────────────────────────────── */
@media (max-width: 768px) {
  .feedback-grid { grid-template-columns: 1fr; }
  .feedback-form-wrap { position: static; }
  .admin-msg-card .wa-form-row { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   NEW FEATURES — v2 additions
═══════════════════════════════════════════════════════════════ */


/* ── APPOINTMENT TIMINGS (INTL/NATIONAL/LOCAL) ────────────── */
#appointment-timings{background:#fff;}
.timing-tabs{display:flex;gap:0;border:1px solid var(--border);border-radius:var(--rad);overflow:hidden;margin-bottom:28px;width:fit-content;}
.timing-tab{padding:12px 24px;font-size:.83rem;font-weight:700;color:var(--muted);cursor:pointer;border:none;background:#fff;transition:var(--trans);}
.timing-tab.active{background:var(--blue);color:#fff;}
.timing-panels{}
.timing-panel{display:none;}
.timing-panel.active{display:block;}
.timing-grid-3{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px;}
.timing-card{background:var(--off);border:1px solid var(--border);border-radius:var(--rad);padding:20px 18px;position:relative;overflow:hidden;}
.timing-card::before{content:'';position:absolute;top:0;left:0;right:0;height:3px;}
.timing-intl .timing-card::before{background:linear-gradient(90deg,#1565c0,#42a5f5);}
.timing-natl .timing-card::before{background:linear-gradient(90deg,#00695c,#26a69a);}
.timing-locl .timing-card::before{background:linear-gradient(90deg,var(--blue),var(--sky));}
.timing-flag{font-size:1.6rem;margin-bottom:8px;}
.timing-zone{font-size:.65rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);margin-bottom:4px;}
.timing-day{font-size:.82rem;font-weight:700;color:var(--navy);margin-bottom:2px;}
.timing-time{font-family:var(--serif);font-size:1rem;font-weight:700;color:var(--blue);}
.timing-phone{display:flex;align-items:center;gap:6px;margin-top:10px;font-size:.78rem;color:var(--muted);}
.timing-phone i{color:var(--sky);font-size:.72rem;}
.timing-phone a{color:var(--blue);font-weight:600;}
.timing-note{background:var(--pale);border-radius:10px;padding:14px 16px;font-size:.8rem;color:var(--muted);margin-top:18px;line-height:1.7;}

/* ── FEEDBACK / TESTIMONIALS V2 ───────────────────────────── */
.feedback-wrap{display:grid;grid-template-columns:1fr 1fr;gap:32px;align-items:start;}
.feedback-list{display:flex;flex-direction:column;gap:18px;}
.feedback-card{background:var(--off);border:1px solid var(--border);border-radius:var(--rad);padding:20px;}
.feedback-card-head{display:flex;align-items:flex-start;gap:12px;margin-bottom:12px;}
.feedback-avatar{width:42px;height:42px;border-radius:50%;background:linear-gradient(135deg,var(--blue),var(--sky));color:#fff;font-weight:800;font-size:.83rem;display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.feedback-meta{}
.feedback-name{font-size:.88rem;font-weight:700;color:var(--navy);}
.feedback-loc{font-size:.72rem;color:var(--muted);}
.feedback-stars{color:var(--gold);font-size:.82rem;margin-top:2px;}
.feedback-text{font-size:.83rem;color:var(--text);line-height:1.72;font-style:italic;margin-bottom:12px;}
/* video badge */
.feedback-video-badge{display:inline-flex;align-items:center;gap:6px;background:#fee2e2;color:#dc2626;font-size:.7rem;font-weight:700;padding:4px 11px;border-radius:100px;cursor:pointer;border:none;}
.feedback-video-badge i{font-size:.75rem;}
/* doctor reply */
.doctor-reply{background:linear-gradient(135deg,var(--pale),#f0f9ff);border:1px solid var(--border);border-radius:10px;padding:13px 15px;margin-top:10px;display:flex;align-items:flex-start;gap:10px;}
.reply-icon{width:30px;height:30px;border-radius:50%;background:var(--blue);color:#fff;display:flex;align-items:center;justify-content:center;font-size:.75rem;flex-shrink:0;}
.reply-content{}
.reply-label{font-size:.65rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--blue);margin-bottom:2px;}
.reply-text{font-size:.79rem;color:var(--muted);line-height:1.6;}
/* feedback form */
.feedback-form-box{background:#fff;border:1px solid var(--border);border-radius:var(--rad);padding:24px;position:sticky;top:90px;}
.feedback-form-box h3{font-family:var(--serif);font-size:1.15rem;font-weight:700;color:var(--navy);margin-bottom:6px;}
.feedback-form-box p{font-size:.8rem;color:var(--muted);margin-bottom:18px;}
.star-picker{display:flex;gap:6px;margin-bottom:16px;}
.star-btn{font-size:1.5rem;background:none;border:none;cursor:pointer;color:#d1d5db;transition:color .15s;}
.star-btn.lit,.star-btn:hover{color:var(--gold);}
.fb-form-group{margin-bottom:12px;}
.fb-form-group label{display:block;font-size:.76rem;font-weight:700;color:var(--navy);margin-bottom:4px;}
.fb-form-group input,.fb-form-group select,.fb-form-group textarea{width:100%;padding:10px 13px;border:1.5px solid var(--border);border-radius:var(--rad-sm);font-family:var(--sans);font-size:.85rem;outline:none;transition:border-color .2s;background:#fff;color:var(--text);}
.fb-form-group input:focus,.fb-form-group textarea:focus{border-color:var(--blue);}
.fb-form-group textarea{resize:vertical;min-height:80px;}
.fb-success{display:none;background:#dcfce7;border:1px solid #86efac;border-radius:10px;padding:12px 16px;font-size:.83rem;color:#166534;margin-top:12px;font-weight:600;}

/* ── WA BROADCAST / COMMUNITY ─────────────────────────────── */
#wa-broadcast{background:linear-gradient(135deg,#064e3b,#065f46,#047857);}
.broadcast-grid{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:center;}
.broadcast-left .label{color:rgba(255,220,100,.9);}
.broadcast-left .label::before{background:rgba(255,220,100,.9);}
.broadcast-left .heading{color:#fff;}
.broadcast-left .subtext{color:rgba(255,255,255,.6);margin-bottom:20px;}
.broadcast-features{display:flex;flex-direction:column;gap:11px;}
.bc-feat{display:flex;align-items:center;gap:12px;padding:12px 15px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.1);border-radius:11px;}
.bc-feat-icon{width:36px;height:36px;background:rgba(255,255,255,.15);border-radius:9px;display:flex;align-items:center;justify-content:center;font-size:17px;flex-shrink:0;}
.bc-feat p{font-size:.8rem;color:rgba(255,255,255,.8);line-height:1.5;}
.bc-feat strong{color:#fff;}
.broadcast-right{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.15);border-radius:18px;padding:28px 24px;}
.bc-right-title{font-family:var(--serif);font-size:1.15rem;font-weight:700;color:#fff;margin-bottom:18px;}
.wa-msg-preview{display:flex;flex-direction:column;gap:10px;}
.wa-msg{background:rgba(255,255,255,.12);border-radius:10px 10px 10px 2px;padding:11px 14px;max-width:85%;}
.wa-msg.out{border-radius:10px 10px 2px 10px;margin-left:auto;background:#25d366;}
.wa-msg-label{font-size:.62rem;font-weight:700;color:rgba(255,255,255,.5);margin-bottom:3px;}
.wa-msg p{font-size:.78rem;color:#fff;line-height:1.55;}
.wa-msg-time{font-size:.6rem;color:rgba(255,255,255,.4);text-align:right;margin-top:3px;}
.bc-join-btn{display:flex;align-items:center;gap:10px;background:#25d366;color:#fff;border:none;border-radius:11px;padding:14px 22px;font-family:var(--sans);font-weight:700;font-size:.9rem;cursor:pointer;transition:var(--trans);margin-top:18px;width:100%;justify-content:center;}
.bc-join-btn:hover{background:#1da851;transform:translateY(-2px);}

/* ── AUTOMATED MESSAGES SECTION ──────────────────────────── */
#auto-messages{background:var(--off);}
.automsg-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(265px,1fr));gap:18px;}
.automsg-card{background:#fff;border:1px solid var(--border);border-radius:var(--rad);padding:20px 18px;transition:var(--trans);}
.automsg-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-lg);}
.automsg-icon{width:48px;height:48px;border-radius:13px;display:flex;align-items:center;justify-content:center;font-size:22px;margin-bottom:13px;}
.ac-green{background:#dcfce7;} .ac-blue{background:var(--pale);} .ac-gold{background:#fef9c3;}
.ac-red{background:#fee2e2;} .ac-purple{background:#f3e8ff;} .ac-teal{background:#ccfbf1;}
.ac-orange{background:#fff7ed;}
.automsg-card h4{font-size:.9rem;font-weight:700;color:var(--navy);margin-bottom:6px;}
.automsg-card p{font-size:.79rem;color:var(--muted);line-height:1.68;margin-bottom:12px;}
.automsg-preview{background:var(--off);border:1px solid var(--border);border-radius:9px;padding:10px 12px;font-size:.73rem;color:var(--text);line-height:1.6;font-style:italic;}
.automsg-preview::before{content:'💬 ';font-style:normal;}

/* ── ONLINE STORE SECTION (page) ──────────────────────────── */
#store{background:var(--off);}
.store-section-grid{display:grid;grid-template-columns:1fr 1fr;gap:52px;align-items:center;}
.store-visual{background:linear-gradient(135deg,#0277bd,#29b6f6);border-radius:var(--rad);min-height:360px;display:flex;align-items:center;justify-content:center;padding:40px;position:relative;overflow:hidden;box-shadow:var(--shadow-lg);}
.store-visual-deco{position:absolute;border-radius:50%;border:1px solid rgba(255,255,255,.1);}
.store-cats{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0;}
.store-cat{background:#fff;border:1px solid var(--border);border-radius:11px;padding:14px 13px;display:flex;align-items:center;gap:11px;transition:var(--trans);}
.store-cat:hover{border-color:var(--blue);box-shadow:var(--shadow);}
.store-cat-icon{width:38px;height:38px;border-radius:9px;background:var(--pale);display:flex;align-items:center;justify-content:center;font-size:18px;flex-shrink:0;}
.store-cat h5{font-size:.82rem;font-weight:700;color:var(--navy);margin-bottom:1px;}
.store-cat p{font-size:.72rem;color:var(--muted);}

/* ── RESPONSIVE ADDITIONS ─────────────────────────────────── */
@media(max-width:768px){
  .feedback-wrap{grid-template-columns:1fr;}
  .broadcast-grid{grid-template-columns:1fr;}
  .store-section-grid{grid-template-columns:1fr;}
  .timing-tab{padding:10px 14px;font-size:.76rem;}
}
@media(max-width:480px){
  .timing-grid-3{grid-template-columns:1fr 1fr;}
  .stat-item  { min-width: 50%; border-right: none; padding: 12px 6px; }
  .stat-num   { font-size: 1.5rem; }
  .stat-lbl   { font-size: .58rem; }
  .store-cats{grid-template-columns:1fr 1fr;}
  .store-grid{grid-template-columns:1fr 1fr;}
}

/* ═══════════════════════════════════════════════════════════════
   NEW FEATURE STYLES — Schedule · Feedback · Order · Admin
═══════════════════════════════════════════════════════════════ */

/* ── APPOINTMENT SCHEDULE ─────────────────────────────────── */
#schedule { background: #fff; }
.appt-tabs { display: flex; gap: 8px; margin-bottom: 28px; flex-wrap: wrap; }
.appt-tab  { padding: 10px 22px; border-radius: 100px; border: 2px solid var(--border); background: var(--off); font-family: var(--sans); font-size: .84rem; font-weight: 700; color: var(--muted); cursor: pointer; transition: var(--trans); }
.appt-tab.active, .appt-tab:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.appt-panel { display: none; }
.appt-panel.active { display: block; animation: fadeUp .4s ease; }
@keyframes fadeUp { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:none; } }
.appt-panel-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
.appt-region-badge { display: inline-block; background: var(--pale); color: var(--blue); font-size: .72rem; font-weight: 700; padding: 5px 14px; border-radius: 100px; margin-bottom: 12px; }
.appt-region-badge.nat  { background: #fff3e0; color: #e65100; }
.appt-region-badge.intl { background: #f3e5f5; color: #7b1fa2; }
.appt-title { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.appt-desc  { font-size: .86rem; color: var(--muted); line-height: 1.75; margin-bottom: 18px; }
.appt-times { background: var(--off); border: 1px solid var(--border); border-radius: var(--rad); padding: 16px; margin-bottom: 18px; }
.appt-time-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: .83rem; }
.appt-time-row:last-child { border-bottom: none; }
.appt-time-row.emerg { color: var(--blue); font-weight: 700; }
.appt-time-label { color: var(--muted); font-weight: 600; }
.appt-time-val { color: var(--navy); font-weight: 700; font-family: var(--serif); font-size: .95rem; }
.appt-contact-row { display: flex; gap: 11px; flex-wrap: wrap; }
.appt-card-col { display: flex; flex-direction: column; gap: 14px; }
.appt-detail-card { background: var(--off); border: 1px solid var(--border); border-radius: var(--rad); padding: 18px 16px; transition: var(--trans); }
.appt-detail-card:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.appt-card-icon { font-size: 1.6rem; margin-bottom: 8px; }
.appt-detail-card h4 { font-family: var(--serif); font-size: .98rem; font-weight: 700; color: var(--navy); margin-bottom: 5px; }
.appt-detail-card p  { font-size: .79rem; color: var(--muted); line-height: 1.65; }
@media(max-width:768px){ .appt-panel-inner { grid-template-columns: 1fr; } }

/* ── FEEDBACK SECTION ─────────────────────────────────────── */
#feedback { background: var(--off); }
.feedback-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.feedback-form-box { background: #fff; border: 1px solid var(--border); border-radius: var(--rad); padding: 28px 24px; }
.feedback-form-box h3 { font-family: var(--serif); font-size: 1.18rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.star-select { display: flex; gap: 6px; margin: 6px 0 12px; }
.star-select span { font-size: 1.6rem; cursor: pointer; color: var(--gold); transition: transform .15s; line-height: 1; }
.star-select span:hover { transform: scale(1.2); }
.video-feedback-box { background: linear-gradient(135deg,#1a237e,#0288d1); border-radius: var(--rad); padding: 24px 22px; color: #fff; margin-bottom: 16px; text-align: center; }
.vfb-icon { font-size: 2.8rem; margin-bottom: 10px; }
.video-feedback-box h4 { font-family: var(--serif); font-size: 1.1rem; font-weight: 700; margin-bottom: 7px; }
.video-feedback-box p  { font-size: .82rem; color: rgba(255,255,255,.7); line-height: 1.65; }
.fb-reply-note { background: #fff; border: 1px solid var(--border); border-radius: var(--rad); padding: 18px 18px; margin-bottom: 16px; text-align: center; }
.fb-reply-note h4 { font-family: var(--serif); font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 5px; }
.fb-reply-note p  { font-size: .8rem; color: var(--muted); line-height: 1.65; }
.fb-sample-replies { display: flex; flex-direction: column; gap: 14px; }
.fb-reply-card { background: #fff; border: 1px solid var(--border); border-radius: var(--rad); padding: 16px; }
.fb-reply-testi { margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.fb-doctor-reply { display: flex; align-items: flex-start; gap: 10px; }
.fb-reply-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg,var(--navy),var(--blue)); color: #fff; font-size: .6rem; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; text-align: center; }
.fb-reply-bubble { background: var(--pale); border-radius: 0 10px 10px 10px; padding: 10px 13px; font-size: .79rem; color: var(--text); line-height: 1.6; flex: 1; }
@media(max-width:768px){ .feedback-grid { grid-template-columns: 1fr; } }



/* ═══════════════════════════════════════════════════════════════
   AI CHATBOT — Balaji Eye Foundation
═══════════════════════════════════════════════════════════════ */

/* ── Trigger Button ─────────────────────────────────────────── */
#chat-trigger {
  position: fixed; bottom: 84px; right: 22px; z-index: 1001;
  width: 54px; height: 54px; border-radius: 50%;
  background: linear-gradient(135deg, #01335c, #0288d1);
  color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; line-height: 1;
  box-shadow: 0 4px 20px rgba(2,136,209,.5), 0 0 0 0 rgba(2,136,209,.4);
  animation: chat-pulse 2.8s ease-in-out infinite;
  transition: transform .25s ease, box-shadow .25s ease;
  -webkit-font-smoothing: antialiased;
}
#chat-trigger:hover { transform: scale(1.08); box-shadow: 0 8px 28px rgba(2,136,209,.65); animation: none; }
#chat-trigger .chat-badge {
  position: absolute; top: -4px; right: -4px;
  background: #ef4444; color: #fff;
  font-size: .55rem; font-weight: 800;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff; letter-spacing: 0;
  animation: badge-bounce .6s ease infinite alternate;
}
@keyframes chat-pulse {
  0%,100% { box-shadow: 0 4px 20px rgba(2,136,209,.45), 0 0 0 0 rgba(2,136,209,.35); }
  60%      { box-shadow: 0 4px 20px rgba(2,136,209,.45), 0 0 0 14px rgba(2,136,209,.0); }
}
@keyframes badge-bounce { from { transform: translateY(0); } to { transform: translateY(-2px); } }

/* ── Chat Window ─────────────────────────────────────────────── */
#chat-window {
  position: fixed; bottom: 160px; right: 24px; z-index: 1001;
  width: 380px; max-width: calc(100vw - 32px);
  height: 560px; max-height: calc(100vh - 180px);
  background: #fff; border-radius: 20px;
  box-shadow: 0 20px 60px rgba(1,31,56,.22), 0 4px 20px rgba(1,31,56,.12);
  display: flex; flex-direction: column; overflow: hidden;
  transform: scale(.85) translateY(20px); opacity: 0;
  pointer-events: none;
  transition: all .35s cubic-bezier(.4,0,.2,1);
  border: 1px solid rgba(2,136,209,.15);
}
#chat-window.open {
  transform: scale(1) translateY(0); opacity: 1; pointer-events: all;
}

/* ── Chat Header ─────────────────────────────────────────────── */
.chat-header {
  background: linear-gradient(135deg, #01335c 0%, #0288d1 100%);
  padding: 16px 18px; display: flex; align-items: center; gap: 12px;
  flex-shrink: 0;
}
.chat-header-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: #fff; flex-shrink: 0;
  border: 2px solid rgba(255,255,255,.3);
  position: relative;
}
.chat-online-dot {
  position: absolute; bottom: 1px; right: 1px;
  width: 10px; height: 10px; border-radius: 50%;
  background: #22c55e; border: 2px solid #fff;
}
.chat-header-info { flex: 1; min-width: 0; }
.chat-header-name { font-family: var(--serif); font-size: 1rem; font-weight: 700; color: #fff; line-height: 1.2; }
.chat-header-status { font-size: .68rem; color: rgba(255,255,255,.7); margin-top: 1px; display: flex; align-items: center; gap: 4px; }
.chat-header-status i { font-size: .58rem; color: #22c55e; }
/* [removed duplicate close btn rule] */
/* [removed duplicate close btn rule] */

/* ── Quick Suggestions ───────────────────────────────────────── */
.chat-suggestions {
  padding: 10px 14px 6px;
  background: var(--off);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.chat-suggestions-label { font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.chat-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  padding: 5px 11px; border-radius: 100px;
  border: 1px solid var(--border); background: #fff;
  font-size: .72rem; font-weight: 600; color: var(--navy);
  cursor: pointer; transition: all .2s; white-space: nowrap;
}
.chip:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ── Messages Area ───────────────────────────────────────────── */
.chat-messages {
  flex: 1; overflow-y: auto; padding: 16px 14px;
  display: flex; flex-direction: column; gap: 12px;
  scroll-behavior: smooth;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* Message bubbles */
.msg { display: flex; gap: 8px; max-width: 100%; animation: msg-in .3s ease; }
@keyframes msg-in { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:none; } }
.msg.bot { align-items: flex-end; }
.msg.user { align-items: flex-end; flex-direction: row-reverse; }
.msg-avatar {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: .72rem;
}
.msg-bubble {
  max-width: 78%; padding: 10px 14px;
  border-radius: 16px; font-size: .84rem; line-height: 1.6;
  position: relative;
}
.msg.bot  .msg-bubble { background: var(--off); color: var(--text); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.msg.user .msg-bubble { background: var(--blue); color: #fff; border-bottom-right-radius: 4px; }
.msg-time { font-size: .6rem; color: var(--muted); margin-top: 4px; text-align: right; }
.msg.user .msg-time { color: rgba(255,255,255,.65); }

/* Typing indicator */
.typing-indicator { display: flex; align-items: center; gap: 5px; padding: 10px 14px; }
.typing-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); opacity: .5; animation: typing 1.2s ease infinite; }
.typing-dot:nth-child(2) { animation-delay: .2s; }
.typing-dot:nth-child(3) { animation-delay: .4s; }
@keyframes typing { 0%,60%,100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }

/* Action buttons inside bot messages */
.msg-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.msg-action-btn {
  padding: 6px 13px; border-radius: 100px; font-size: .73rem; font-weight: 700;
  border: 1.5px solid var(--blue); color: var(--blue); background: #fff;
  cursor: pointer; transition: all .2s; display: inline-flex; align-items: center; gap: 5px;
}
.msg-action-btn:hover { background: var(--blue); color: #fff; }
.msg-action-btn.wa { border-color: #25d366; color: #25d366; }
.msg-action-btn.wa:hover { background: #25d366; color: #fff; }

/* ── Input Bar ───────────────────────────────────────────────── */
.chat-input-bar {
  padding: 12px 14px; border-top: 1px solid var(--border);
  display: flex; align-items: flex-end; gap: 9px;
  background: #fff; flex-shrink: 0;
}
.chat-input-wrap { flex: 1; position: relative; }
#chat-input {
  width: 100%; padding: 10px 40px 10px 14px;
  border: 1.5px solid var(--border); border-radius: 22px;
  font-family: var(--sans); font-size: .85rem; color: var(--text);
  outline: none; resize: none; line-height: 1.4; max-height: 100px;
  background: var(--off); transition: border-color .2s;
}
#chat-input:focus { border-color: var(--blue); background: #fff; }
#chat-input::placeholder { color: var(--muted); }
#chat-send {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--blue); color: #fff; border: none;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: .9rem; transition: all .2s; flex-shrink: 0;
}
#chat-send:hover { background: var(--navy); transform: scale(1.08); }
#chat-send:disabled { background: var(--border); cursor: not-allowed; transform: none; }
.chat-powered {
  text-align: center; font-size: .6rem; color: var(--muted);
  padding: 4px 0 8px; border-top: 1px solid var(--pale); margin-top: 4px;
}
.chat-powered i { color: var(--blue); margin-right: 3px; }

/* ── Mobile adjustments ─────────────────────────────────────── */
@media(max-width:480px){
  #chat-window { bottom: 140px; right: 16px; width: calc(100vw - 32px); height: calc(100vh - 200px); border-radius: 16px; }
  #chat-trigger { bottom: 82px; right: 16px; }
}

/* ═══════════════════════════════════════════════════════════════
   BUTTON & ICON POLISH — QA Round 3
═══════════════════════════════════════════════════════════════ */

/* ── Admin staff button (left side) ─────────────────────────── */
#admin-btn {
  position: fixed; bottom: 22px; left: 22px; z-index: 999;
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--navy); color: #fff;
  border: 2px solid rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(1,51,92,.5);
  transition: all .25s ease; cursor: pointer;
}
#admin-btn:hover { background: var(--blue); transform: scale(1.08); }
#admin-btn svg   { width: 20px; height: 20px; }

/* ── Back-to-top ─────────────────────────────────────────────── */
#back-top svg { width: 18px; height: 18px; }

/* ── Slide arrow SVG ─────────────────────────────────────────── */
.slide-arrow svg { display: block; }

/* ── Modal close buttons — all variants ─────────────────────── */
/* [removed duplicate SVG rule] */

/* ── Store modal close positioning fix ──────────────────────── */
/* [removed duplicate close btn rule] */
/* [removed duplicate close btn rule] */

/* ── Order modal close ───────────────────────────────────────── */
/* [removed duplicate close btn rule] */
/* [removed duplicate close btn rule] */

/* ── Inaug close ─────────────────────────────────────────────── */
/* [removed duplicate close btn rule] */
/* [removed duplicate close btn rule] */

/* ── Admin panel close ───────────────────────────────────────── */
/* [removed duplicate close btn rule] */
/* [removed duplicate close btn rule] */

/* ── Hamburger button ────────────────────────────────────────── */
#mob-btn {
  display: none;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  border-radius: var(--rad-sm);
  background: var(--pale); color: var(--navy);
  border: 1.5px solid var(--border);
  cursor: pointer;
}
#mob-btn svg { display: block; }

/* ── Chat send button SVG ────────────────────────────────────── */
#chat-send svg { display: block; }

/* ── WA float button — ensure clean rendering ───────────────── */
#wa-float {
  position: fixed; bottom: 22px; right: 22px; z-index: 1002;
  width: 54px; height: 54px; border-radius: 50%;
  background: #25d366; color: #fff; font-size: 1.45rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.5);
  transition: all .25s ease; text-decoration: none;
  -webkit-font-smoothing: antialiased;
}
#wa-float:hover { transform: scale(1.1); box-shadow: 0 8px 28px rgba(37,211,102,.6); }

/* ── Chip buttons with icons ─────────────────────────────────── */
.chip { transition: all .2s ease; }
.chip i { font-size: .68rem; }

/* ── Service card link button ────────────────────────────────── */
.service-card-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 14px; padding: 7px 14px;
  font-size: .78rem; font-weight: 700; color: var(--blue);
  background: var(--pale); border-radius: 100px;
  border: 1.5px solid var(--border);
  transition: all .2s ease; cursor: pointer;
}
.service-card-link:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.service-card-link i { font-size: .65rem; transition: transform .2s; }
.service-card:hover .service-card-link i { transform: translateX(3px); }

/* ── Mobile responsive for buttons ──────────────────────────── */
@media (max-width: 768px) {
  #mob-btn { display: flex; }
  .nav-links { display: none; }
}

@media (max-width: 480px) {
  #wa-float      { width: 50px; height: 50px; font-size: 1.3rem; bottom: 18px; right: 16px; }
  #chat-trigger  { width: 50px; height: 50px; font-size: 1.15rem; bottom: 78px; right: 16px; }
  #back-top      { width: 42px; height: 42px; bottom: 138px; right: 16px; }
  #admin-btn     { width: 44px; height: 44px; bottom: 18px; left: 16px; }
  #chat-window   { bottom: 140px; right: 16px; width: calc(100vw - 32px); }
  .slide-arrow   { width: 42px; height: 42px; }
}

/* ═══════════════════════════════════════════════════════════════
   INLINE SVG ICON SYSTEM — replaces all Font Awesome icons
   Every <span class="ic"> wraps a pure SVG — zero FA dependency
═══════════════════════════════════════════════════════════════ */

/* Base icon span */
.ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em; height: 1em;
  vertical-align: -0.15em;
  flex-shrink: 0;
}
.ic svg {
  width: 1em; height: 1em;
  display: block;
  fill: currentColor;
}

/* Star icons */
.ic-star {
  display: inline-block;
  width: .85em; height: .85em;
  vertical-align: -0.05em;
  fill: currentColor;
}
.feedback-stars .ic-star   { fill: var(--gold); }
.testi-stars .ic-star      { fill: var(--gold); }
.fb-reply-testi .ic-star   { fill: var(--gold); width: .7em; height: .7em; }

/* Star picker (feedback form) */
.star-select {
  display: flex; gap: 6px; margin-bottom: 16px;
}
.star-select .star-btn {
  font-size: 1.6rem; background: none; border: none;
  cursor: pointer; color: #d1d5db;
  display: flex; align-items: center;
  transition: color .15s; padding: 0;
}
.star-select .star-btn:hover,
.star-select .star-btn.lit { color: var(--gold); }
.star-select .star-btn .ic-star { fill: currentColor; width: 1.4em; height: 1.4em; }

/* WA tick double-check */
.wa-tick { display: inline-flex; align-items: center; margin-left: 2px; }

/* Chat trigger icon override */
#chat-trigger-icon { display: flex; align-items: center; justify-content: center; }
#chat-trigger-icon svg { width: 1.3rem; height: 1.3rem; fill: #fff; }

/* Ensure service icon-big SVG renders correctly */
.service-icon-big .ic svg { width: 1.8rem; height: 1.8rem; }
.service-icon-big .ic { width: 1.8rem; height: 1.8rem; }

/* Dept/cond icons */
.dept-icon .ic, .cond-icon-wrap .ic { font-size: 1.3rem; }
.dept-icon .ic svg, .cond-icon-wrap .ic svg { width: 1.3em; height: 1.3em; }

/* Trust strip */
.trust-icon-fa .ic { font-size: 1.3rem; color: var(--blue); }
.trust-icon-fa .ic svg { width: 1.3em; height: 1.3em; fill: var(--blue); }

/* About feat icons */
.about-feat-icon .ic svg { fill: var(--gold); width: 1.1em; height: 1.1em; }

/* Timing flag icons */
.timing-flag .ic, .timing-flag svg { width: 1.4rem; height: 1.4rem; }

/* FA icon in nav dropdown stays small */
.dropdown .ic svg { width: .9em; height: .9em; }

/* Button icons */
.btn .ic { width: 1em; height: 1em; }
.btn .ic svg { fill: currentColor; }

/* Footer social icons */
.footer-social a .ic svg { width: 1em; height: 1em; fill: currentColor; }

/* WA float button SVG */
#wa-float .ic svg { width: 1.5rem; height: 1.5rem; fill: #fff; }

/* Nav order btn icon */
.nav-order-btn .ic svg { fill: var(--navy); }


/* ═══════════════════════════════════════════════════════════════
   MODAL CLOSE BUTTONS — Single definitive ruleset
   All 6 modals: WA booking · Order · Store · Admin · Inaug · Chat
═══════════════════════════════════════════════════════════════ */

/* Shared base for all close buttons */
.wa-modal-close,
.order-modal-close,
.store-modal-close-btn,
.admin-close,
.inaug-close,
.chat-close-btn {
  position: absolute;
  top: 14px; right: 14px;
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  transition: all .2s ease;
  flex-shrink: 0;
  line-height: 1;
  padding: 0;
}

/* Light modals (WA booking, Order) — dark X on light bg */
.wa-modal-close,
.order-modal-close {
  background: #f1f5f9;
  border: 1.5px solid #cbd5e1;
  color: #475569;
}
.wa-modal-close:hover,
.order-modal-close:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #dc2626;
}

/* Dark modals (Store, Admin, Inaug, Chat) — white X on dark bg */
.store-modal-close-btn,
.admin-close,
.inaug-close,
.chat-close-btn {
  background: rgba(255,255,255,.2);
  border: 1.5px solid rgba(255,255,255,.4);
  color: #fff;
}
.store-modal-close-btn:hover,
.admin-close:hover,
.inaug-close:hover,
.chat-close-btn:hover {
  background: rgba(239,68,68,.85);
  border-color: rgba(239,68,68,.6);
  color: #fff;
}

/* Chat close is not absolute — it's in flexbox header */
.chat-close-btn {
  position: static;
  width: 36px; height: 36px;
}

/* SVG inside close buttons — always visible */
.wa-modal-close svg,
.order-modal-close svg,
.store-modal-close-btn svg,
.admin-close svg,
.inaug-close svg,
.chat-close-btn svg {
  display: block !important;
  width: 16px !important;
  height: 16px !important;
  stroke: currentColor !important;
  fill: none !important;
  stroke-width: 2.5 !important;
  stroke-linecap: round !important;
  flex-shrink: 0;
}

.admin-panel { position: relative; }
.store-modal { position: relative; }

