/*
Theme Name: Hôpital CaraMED
Theme URI: https://www.hopitalcaramed.ht
Author: Hôpital CaraMED
Author URI: https://www.hopitalcaramed.ht
Description: Thème WordPress sur mesure pour l'Hôpital CaraMED — services médicaux, médecins, prise de rendez-vous, tableau de bord patient et intégration CARALAB.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: hopital-caramed
*/

  :root{
    --ink:#0e2438;
    --ink-soft:#4c6478;
    --paper:#ffffff;
    --paper-alt:#f7fafc;
    --blue:#049fd1;
    --blue-deep:#075e82;
    --blue-tint:#e4f6fb;
    --blue-tint-soft:#f1fafd;
    --red:#d8161a;
    --red-deep:#a80f12;
    --amber:#c1832c;
    --green:#1a7a52;
    --line:#e1ebf0;
  }
  *{box-sizing:border-box;}
  html{scroll-behavior:smooth;}
  body{
    margin:0; background:var(--paper); color:var(--ink);
    font-family:'IBM Plex Sans', sans-serif; font-size:16px; line-height:1.55;
    -webkit-font-smoothing:antialiased;
  }
  h1,h2,h3,.serif{ font-family:'Fraunces', serif; font-weight:500; line-height:1.12; margin:0; color:var(--blue-deep); }
  p{margin:0;}
  a{color:inherit; text-decoration:none;}
  img,svg{max-width:100%; display:block;}
  button{font-family:inherit;}
  .wrap{max-width:1180px; margin:0 auto; padding:0 32px;}
  @media (max-width:640px){ .wrap{padding:0 20px;} }
  .icon{width:22px; height:22px; stroke:currentColor; fill:none; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round;}

  /* ---------- Top utility bar ---------- */
  .topbar{background:var(--blue-deep); color:#d9eff7;}
  .topbar .wrap{display:flex; justify-content:space-between; align-items:center; height:38px; font-size:12.5px;}
  .topbar-left{display:flex; gap:22px;}
  .topbar-item{display:flex; align-items:center; gap:6px; color:#cdeaf4;}
  .topbar-item .icon{width:13px; height:13px;}
  .topbar-right{color:#aeddec; font-weight:500;}
  @media (max-width:760px){ .topbar{display:none;} }

  /* ---------- Header ---------- */
  header{ position:sticky; top:0; z-index:60; background:rgba(255,255,255,0.96); backdrop-filter:blur(10px); border-bottom:1px solid var(--line); box-shadow:0 1px 0 rgba(14,36,56,.02); }
  .nav-row{ display:flex; align-items:center; justify-content:space-between; height:80px; gap:20px; }
  .brand{display:flex; align-items:center; gap:11px;}
  .brand-mark{ width:42px; height:42px; border-radius:50%; overflow:hidden; flex-shrink:0; box-shadow:0 0 0 1px var(--line); }
  .brand-mark img{width:100%; height:100%; object-fit:cover;}
  .brand-name{font-family:'Fraunces',serif; font-size:20px; font-weight:600; color:var(--blue-deep); letter-spacing:0.1px; line-height:1.2;}
  .brand-sub{display:block; font-family:'IBM Plex Sans',sans-serif; font-size:10.5px; font-weight:600; letter-spacing:1px; color:var(--red); text-transform:uppercase;}
  nav.primary{display:flex; align-items:center; gap:6px;}
  nav.primary a.nav-link{ font-size:14.5px; color:var(--ink-soft); font-weight:500; padding:10px 14px; border-radius:20px; transition:color .15s ease, background .15s ease; }
  nav.primary a.nav-link:hover{color:var(--blue-deep); background:var(--blue-tint-soft);}
  .caralab-chip{ display:inline-flex; align-items:center; gap:7px; background:var(--blue-deep); color:#fff !important; padding:9px 16px; border-radius:20px; font-size:14px; font-weight:600; border:1px solid var(--blue-deep); margin-left:6px; }
  .caralab-chip .icon{width:15px; height:15px;}
  .caralab-chip:hover{background:var(--blue);}
  .header-actions{display:flex; align-items:center; gap:10px;}
  .btn{ display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:11px 22px; font-size:14.5px; font-weight:600; border-radius:24px; border:1px solid transparent; cursor:pointer; white-space:nowrap; transition:background .15s ease, border-color .15s ease, transform .1s ease; }
  .btn:active{transform:scale(.98);}
  .btn-primary{background:var(--red); color:#fff;}
  .btn-primary:hover{background:var(--red-deep);}
  .btn-ghost{background:transparent; color:var(--blue-deep); border-color:var(--line); border-radius:24px;}
  .btn-ghost:hover{border-color:var(--blue);}
  .btn-line{background:transparent; color:var(--blue-deep); border-bottom:1px solid var(--blue-deep); border-radius:0; padding:4px 0;}
  .menu-toggle{display:none; background:none; border:none; cursor:pointer; padding:8px;}
  .menu-toggle span{display:block; width:22px; height:2px; background:var(--ink); margin:5px 0; transition:transform .2s ease, opacity .2s ease;}
  .menu-toggle.active span:nth-child(1){transform:translateY(7px) rotate(45deg);}
  .menu-toggle.active span:nth-child(2){opacity:0;}
  .menu-toggle.active span:nth-child(3){transform:translateY(-7px) rotate(-45deg);}

  .mobile-panel{ display:none; flex-direction:column; padding:10px 20px 22px; border-bottom:1px solid var(--line); background:#fff; }
  .mobile-panel.open{display:flex;}
  .mobile-panel a.nav-link{ padding:13px 4px; font-size:15.5px; color:var(--ink); border-bottom:1px solid var(--line); border-radius:0; }
  .mobile-panel .caralab-chip{ margin:14px 0 6px; justify-content:center; }
  .mobile-panel .mp-actions{display:flex; gap:10px; margin-top:8px;}
  .mobile-panel .btn{flex:1;}

  @media (max-width:980px){ nav.primary, .header-actions{display:none;} .menu-toggle{display:block;} }

  /* ---------- Hero ---------- */
  .hero{padding:56px 0 0;}
  .hero-grid{display:grid; grid-template-columns:1.05fr 0.85fr; gap:56px; align-items:center; padding-bottom:48px;}
  @media (max-width:900px){.hero-grid{grid-template-columns:1fr; gap:36px;}}
  .eyebrow{font-size:13.5px; color:var(--blue); font-weight:600; margin-bottom:16px; letter-spacing:.2px;}
  .hero h1{font-size:52px; letter-spacing:-0.5px;}
  @media (max-width:640px){.hero h1{font-size:34px;}}
  .hero-sub{margin-top:20px; font-size:17.5px; color:var(--ink-soft); max-width:46ch;}
  .hero-actions{display:flex; flex-wrap:wrap; gap:14px; margin-top:30px;}
  .hero-note{margin-top:18px; font-size:13.5px; color:var(--ink-soft);}
  .hero-visual{ background:var(--blue-tint-soft); border:1px solid var(--line); border-radius:16px; padding:32px; text-align:center; }
  .hero-visual img{width:150px; height:150px; margin:0 auto; border-radius:50%;}
  .pulse-caption{display:flex; justify-content:space-between; margin-top:22px; font-size:12.5px; color:var(--ink-soft); text-align:left; gap:10px;}
  .pulse-caption strong{color:var(--blue-deep); font-family:'Fraunces',serif; font-size:21px; font-weight:600; display:block;}

  /* ---------- Slider (4 banners) ---------- */
  .slider-wrap{padding:0 0 76px;}
  .slider{ position:relative; border-radius:16px; overflow:hidden; border:1px solid var(--line); }
  .slides-track{display:flex; transition:transform .65s cubic-bezier(.65,0,.35,1);}
  .slide{min-width:100%; display:grid; grid-template-columns:1.1fr 1fr; align-items:center;}
  @media (max-width:760px){ .slide{grid-template-columns:1fr;} }
  .slide-text{padding:46px 48px;}
  @media (max-width:640px){ .slide-text{padding:30px 26px;} }
  .slide-text .eyebrow{margin-bottom:14px;}
  .slide-text h3{font-size:28px; line-height:1.18;}
  @media (max-width:640px){ .slide-text h3{font-size:22px;} }
  .slide-text p{margin-top:12px; font-size:15px; max-width:38ch;}
  .slide-text a.slide-cta{margin-top:20px; display:inline-flex; align-items:center; gap:8px; font-size:14px; font-weight:600;}
  .slide-media{ display:flex; align-items:center; justify-content:center; padding:26px 30px; height:100%; min-height:240px; }
  .slide-media svg{width:88%; max-width:280px; height:auto;}
  @media (max-width:760px){ .slide-media{min-height:180px; padding-bottom:0;} }

  .slide-1{background:linear-gradient(135deg,#eaf9fd,#dcf2f9);} .slide-1 .eyebrow,.slide-1 h3{color:var(--blue-deep);} .slide-1 p{color:#2f5e6f;} .slide-1 a.slide-cta{color:var(--blue-deep);}
  .slide-2{background:linear-gradient(135deg,#fdeceb,#fbdedb);} .slide-2 .eyebrow,.slide-2 h3{color:var(--red-deep);} .slide-2 p{color:#7a3b39;} .slide-2 a.slide-cta{color:var(--red-deep);}
  .slide-3{background:linear-gradient(135deg,#eef7f1,#e1f1e6);} .slide-3 .eyebrow,.slide-3 h3{color:#1c6b46;} .slide-3 p{color:#3c6a52;} .slide-3 a.slide-cta{color:#1c6b46;}
  .slide-4{background:linear-gradient(135deg,#f3f0fb,#e9e3f8);} .slide-4 .eyebrow,.slide-4 h3{color:#4c3a9c;} .slide-4 p{color:#584e7d;} .slide-4 a.slide-cta{color:#4c3a9c;}

  .slider-arrow{ position:absolute; top:50%; transform:translateY(-50%); width:40px; height:40px; border-radius:50%; background:#fff; border:1px solid var(--line); display:flex; align-items:center; justify-content:center; cursor:pointer; box-shadow:0 10px 24px -12px rgba(14,36,56,.35); z-index:5; }
  .slider-arrow:hover{border-color:var(--blue);}
  .slider-arrow.prev{left:14px;} .slider-arrow.next{right:14px;}
  .slider-arrow .icon{width:18px; height:18px; color:var(--blue-deep);}
  @media (max-width:560px){ .slider-arrow{width:34px; height:34px;} }

  .slider-dots{display:flex; justify-content:center; gap:8px; margin-top:16px;}
  .dot{width:8px; height:8px; border-radius:50%; background:var(--line); cursor:pointer; border:none; padding:0; transition:width .2s ease, background .2s ease;}
  .dot.active{width:24px; border-radius:5px; background:var(--blue);}

  /* ---------- Section shell ---------- */
  section{padding:76px 0;}
  .section-tinted{background:var(--paper-alt); border-top:1px solid var(--line); border-bottom:1px solid var(--line);}
  .section-head{max-width:580px; margin-bottom:44px;}
  .section-head h2{font-size:33px;}
  .section-head p{margin-top:14px; color:var(--ink-soft); font-size:16.5px;}

  /* ---------- Services (redesigned) ---------- */
  .services-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:20px;}
  @media (max-width:900px){.services-grid{grid-template-columns:repeat(2,1fr);}}
  @media (max-width:560px){.services-grid{grid-template-columns:1fr;}}
  .service-card{ background:var(--paper); border:1px solid var(--line); border-radius:14px; padding:28px 26px; transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
  .service-card:hover{ transform:translateY(-4px); box-shadow:0 20px 40px -26px rgba(14,36,56,.35); border-color:#cfe8f0; }
  .service-icon{ width:52px; height:52px; border-radius:13px; display:flex; align-items:center; justify-content:center; margin-bottom:18px; }
  .service-icon .icon{width:25px; height:25px; color:#fff; stroke-width:1.7;}
  .service-card h3{font-size:18.5px; font-weight:600; margin-bottom:8px; color:var(--ink);}
  .service-card p{color:var(--ink-soft); font-size:14.5px;}
  .service-card .tag{font-size:12.5px; color:var(--blue-deep); font-weight:600; margin-top:16px; display:block; padding-top:14px; border-top:1px solid var(--line);}

  /* ---------- Steps (redesigned) ---------- */
  .steps-wrap{position:relative; margin-top:10px;}
  .steps-line{ position:absolute; top:27px; left:0; right:0; height:2px; background:var(--line); }
  @media (max-width:860px){ .steps-line{display:none;} }
  .steps-grid{ display:grid; grid-template-columns:repeat(7,1fr); gap:14px; position:relative; }
  @media (max-width:860px){ .steps-grid{grid-template-columns:1fr; gap:0;} }
  .step-card{position:relative; padding-top:0;}
  @media (max-width:860px){
    .step-card{ display:grid; grid-template-columns:56px 1fr; gap:16px; padding:18px 0; border-bottom:1px solid var(--line); }
    .step-card:last-child{border-bottom:none;}
  }
  .step-node{ width:54px; height:54px; border-radius:50%; background:#fff; border:2px solid var(--blue); color:var(--blue-deep); display:flex; align-items:center; justify-content:center; font-family:'Fraunces',serif; font-weight:600; font-size:18px; position:relative; z-index:2; margin-bottom:18px; }
  .step-card h4{font-size:15px; font-weight:600; color:var(--ink); margin-bottom:6px;}
  .step-card p{font-size:13px; color:var(--ink-soft); line-height:1.45;}

  /* ---------- CARALAB highlight ---------- */
  .caralab-band{ background:var(--blue-deep); color:#fff; border-radius:16px; padding:52px 48px; display:grid; grid-template-columns:1.2fr 0.8fr; gap:40px; align-items:center; }
  @media (max-width:820px){.caralab-band{grid-template-columns:1fr; padding:36px 28px;}}
  .caralab-band .eyebrow{color:#a6e4f4;}
  .caralab-band h2{color:#fff; font-size:32px;}
  .caralab-band p{color:#d3eef7; margin-top:14px; font-size:16px; max-width:48ch;}
  .caralab-actions{display:flex; flex-wrap:wrap; gap:12px; margin-top:26px;}
  .btn-on-dark{background:#fff; color:var(--blue-deep); border-radius:24px;}
  .btn-on-dark:hover{background:#eaf8fc;}
  .btn-outline-dark{border:1px solid rgba(255,255,255,0.4); color:#fff; border-radius:24px;}
  .btn-outline-dark:hover{border-color:#fff;}
  .caralab-panel{ background:rgba(255,255,255,0.08); border:1px solid rgba(255,255,255,0.2); border-radius:10px; padding:22px; }
  .caralab-panel-row{display:flex; justify-content:space-between; padding:10px 0; border-bottom:1px solid rgba(255,255,255,0.14); font-size:14px;}
  .caralab-panel-row:last-child{border-bottom:none;}
  .status-dot{display:inline-flex; align-items:center; gap:6px; font-size:12.5px; color:#a9e0d4;}
  .status-dot::before{content:""; width:7px; height:7px; border-radius:50%; background:#4fd1a5;}

  /* ---------- Booking extension ---------- */
  .booking-card{ background:#fff; border:1px solid var(--line); border-radius:18px; padding:36px; box-shadow:0 30px 60px -40px rgba(14,36,56,.35); }
  @media (max-width:640px){ .booking-card{padding:24px 20px;} }
  .booking-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:18px;}
  @media (max-width:760px){ .booking-grid{grid-template-columns:1fr;} }
  .field label{display:block; font-size:12.5px; font-weight:600; color:var(--ink-soft); margin-bottom:7px;}
  .field select, .field input[type="date"]{ width:100%; padding:12px 14px; border:1px solid var(--line); border-radius:9px; font-family:'IBM Plex Sans',sans-serif; font-size:14.5px; color:var(--ink); background:#fff; }
  .field select:focus, .field input:focus{outline:none; border-color:var(--blue);}
  .slots-wrap{margin-top:22px;}
  .slots-wrap label{display:block; font-size:12.5px; font-weight:600; color:var(--ink-soft); margin-bottom:10px;}
  .slots{display:flex; flex-wrap:wrap; gap:10px;}
  .slot-btn{ padding:9px 16px; border:1px solid var(--line); border-radius:9px; background:#fff; font-size:13.5px; font-weight:500; color:var(--ink); cursor:pointer; transition:border-color .15s ease, background .15s ease, color .15s ease; }
  .slot-btn:hover{border-color:var(--blue);}
  .slot-btn.active{ background:var(--blue); border-color:var(--blue); color:#fff; }
  .booking-footer{display:flex; justify-content:space-between; align-items:center; margin-top:26px; flex-wrap:wrap; gap:14px;}
  .booking-footer p{font-size:12.5px; color:var(--ink-soft);}
  .btn-confirm{background:var(--red); color:#fff; border-radius:24px; padding:13px 26px;}
  .btn-confirm:hover{background:var(--red-deep);}
  .btn-confirm:disabled{background:#e7ccc9; cursor:not-allowed;}
  .booking-summary{ display:none; margin-top:22px; border:1px solid #cdeee0; background:#f2fbf6; border-radius:12px; padding:20px 22px; align-items:flex-start; gap:14px; }
  .booking-summary.show{display:flex;}
  .booking-summary .icon{width:22px; height:22px; color:var(--green); flex-shrink:0; margin-top:2px;}
  .booking-summary h4{font-size:15px; font-weight:600; color:#124f34;}
  .booking-summary p{font-size:13.5px; color:#2f6b4f; margin-top:4px;}
  .booking-summary a{font-size:12.5px; font-weight:600; color:var(--green); margin-top:8px; display:inline-block; text-decoration:underline;}

  /* ---------- Doctors (redesigned) ---------- */
  .doctors-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:22px;}
  @media (max-width:900px){.doctors-grid{grid-template-columns:repeat(2,1fr);}}
  @media (max-width:520px){.doctors-grid{grid-template-columns:1fr;}}
  .doctor-card{ background:var(--paper); border:1px solid var(--line); border-radius:16px; padding:26px 24px; text-align:center; transition:transform .18s ease, box-shadow .18s ease; }
  .doctor-card:hover{transform:translateY(-4px); box-shadow:0 20px 40px -28px rgba(14,36,56,.35);}
  .doctor-avatar{ width:76px; height:76px; border-radius:50%; margin:0 auto 16px; display:flex; align-items:center; justify-content:center; font-family:'Fraunces',serif; font-size:24px; font-weight:600; color:#fff; }
  .doctor-card h4{font-size:16px; font-weight:600; color:var(--ink);}
  .doctor-spec{ display:inline-block; font-size:12px; font-weight:600; color:var(--blue-deep); background:var(--blue-tint-soft); padding:4px 12px; border-radius:12px; margin-top:8px; }
  .doctor-days{display:flex; justify-content:center; gap:5px; margin-top:16px;}
  .day-chip{ width:24px; height:24px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:10.5px; font-weight:600; color:#b7c4cd; background:var(--paper-alt); }
  .day-chip.on{background:var(--blue); color:#fff;}
  .doctor-card .avail{font-size:12px; color:var(--ink-soft); margin-top:12px;}
  .doctor-card .doctor-book{ display:inline-block; margin-top:14px; font-size:12.5px; font-weight:600; color:var(--red-deep); border-bottom:1px solid currentColor; }

  /* ---------- Dashboard preview ---------- */
  .dash-grid{display:grid; grid-template-columns:1.4fr 1fr; gap:24px;}
  @media (max-width:900px){.dash-grid{grid-template-columns:1fr;}}
  .dash-card{background:var(--paper); border:1px solid var(--line); border-radius:14px; padding:26px;}
  .dash-greeting{font-size:13px; color:var(--ink-soft);}
  .dash-greeting strong{color:var(--ink); font-family:'Fraunces',serif; font-size:22px; display:block; margin-top:4px; font-weight:600;}
  .appt-row{display:flex; justify-content:space-between; align-items:center; padding:14px 0; border-bottom:1px solid var(--line); gap:10px;}
  .appt-row:last-child{border-bottom:none;}
  .appt-meta{font-size:13px; color:var(--ink-soft);}
  .badge{font-size:11.5px; font-weight:600; padding:4px 10px; border-radius:12px; white-space:nowrap;}
  .badge-confirmed{background:#dcf3ea; color:#1a7a52;}
  .badge-pending{background:#fbeed6; color:var(--amber);}
  .mini-caralab{ margin-top:20px; border:1px solid var(--line); border-radius:12px; padding:18px; display:flex; justify-content:space-between; align-items:center; background:var(--blue-tint-soft); gap:12px; flex-wrap:wrap; }
  .mini-caralab-title{display:flex; align-items:center; gap:10px;}
  .mini-caralab-title .icon{width:20px; height:20px; color:var(--blue-deep);}
  .mini-caralab h4{font-size:14.5px; font-weight:600; color:var(--blue-deep);}
  .mini-caralab p{font-size:12.5px; color:var(--ink-soft); margin-top:3px;}

  /* ---------- Footer ---------- */
  footer{background:var(--blue-deep); color:#d3eef7; padding:56px 0 28px;}
  .foot-grid{display:grid; grid-template-columns:1.4fr repeat(3,1fr); gap:40px;}
  @media (max-width:800px){.foot-grid{grid-template-columns:1fr 1fr;}}
  @media (max-width:520px){.foot-grid{grid-template-columns:1fr;}}
  .foot-brand{display:flex; align-items:center; gap:10px; margin-bottom:4px;}
  .foot-brand img{width:32px; height:32px; border-radius:50%;}
  footer h4{font-size:13.5px; color:#fff; font-weight:600; margin-bottom:14px;}
  footer a{display:block; font-size:13.5px; color:#bfe1ee; padding:5px 0;}
  footer a:hover{color:#fff;}
  .foot-brand-text p{font-size:13.5px; color:#bfe1ee; margin-top:12px; max-width:32ch;}
  .foot-bottom{margin-top:44px; padding-top:22px; border-top:1px solid rgba(255,255,255,.18); display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; font-size:12.5px; color:#a7cddb;}

  .reveal{opacity:0; transform:translateY(14px); animation:rise .7s ease forwards;}
  @keyframes rise{to{opacity:1; transform:translateY(0);}}

  /* ---------- Auth modals ---------- */
  .modal-overlay{ position:fixed; inset:0; background:rgba(14,36,56,.55); backdrop-filter:blur(3px); display:none; align-items:center; justify-content:center; z-index:200; padding:20px; }
  .modal-overlay.open{display:flex;}
  .modal-card{ background:#fff; border-radius:20px; max-width:440px; width:100%; max-height:92vh; overflow-y:auto; padding:34px 30px 28px; position:relative; box-shadow:0 40px 90px -30px rgba(14,36,56,.55); animation:modalIn .25s ease; }
  @keyframes modalIn{ from{opacity:0; transform:translateY(10px) scale(.98);} to{opacity:1; transform:translateY(0) scale(1);} }
  @media (max-width:520px){ .modal-card{padding:26px 20px 22px; border-radius:16px;} }
  .modal-close{ position:absolute; top:16px; right:16px; width:32px; height:32px; border-radius:50%; border:1px solid var(--line); background:#fff; display:flex; align-items:center; justify-content:center; cursor:pointer; color:var(--ink-soft); }
  .modal-close:hover{border-color:var(--blue); color:var(--blue-deep);}
  .modal-close .icon{width:15px; height:15px;}
  .modal-head{margin-bottom:22px; padding-right:28px;}
  .modal-head h3{font-size:22px;}
  .modal-head p{font-size:13.5px; color:var(--ink-soft); margin-top:6px;}
  .modal-body form{display:block;}
  .form-row{display:grid; grid-template-columns:1fr 1fr; gap:12px;}
  @media (max-width:400px){.form-row{grid-template-columns:1fr;}}
  .form-field{margin-bottom:16px;}
  .form-field label{font-size:12.5px; font-weight:600; color:var(--ink-soft); margin-bottom:6px; display:block;}
  .input-wrap{position:relative;}
  .form-field input[type="text"], .form-field input[type="email"], .form-field input[type="tel"], .form-field input[type="password"]{
    width:100%; padding:12px 14px; border:1px solid var(--line); border-radius:9px; font-family:'IBM Plex Sans',sans-serif; font-size:14.5px; color:var(--ink); background:#fff;
  }
  .form-field input:focus{outline:none; border-color:var(--blue);}
  .input-wrap input[type="password"], .input-wrap input.pw-input{padding-right:42px;}
  .pw-toggle{ position:absolute; right:8px; top:50%; transform:translateY(-50%); background:none; border:none; cursor:pointer; color:var(--ink-soft); padding:6px; display:flex; }
  .pw-toggle .icon{width:17px; height:17px;}
  .pw-toggle:hover{color:var(--blue-deep);}
  .pw-meter{height:5px; border-radius:3px; background:var(--line); margin-top:10px; overflow:hidden;}
  .pw-meter-fill{height:100%; width:0%; background:var(--red); transition:width .25s ease, background .25s ease;}
  .pw-label{font-size:11.5px; margin-top:6px; font-weight:600; color:var(--ink-soft);}
  .pw-checklist{margin-top:12px; display:flex; flex-direction:column; gap:6px;}
  .pw-check-item{display:flex; align-items:center; gap:8px; font-size:12px; color:var(--ink-soft);}
  .pw-check-item .icon{width:14px; height:14px; color:var(--line); flex-shrink:0;}
  .pw-check-item.ok{color:var(--green);}
  .pw-check-item.ok .icon{color:var(--green);}
  .match-note{font-size:12px; margin-top:8px; color:var(--ink-soft);}
  .match-note.ok{color:var(--green);}
  .match-note.bad{color:var(--red-deep);}
  .checkbox-row{display:flex; align-items:flex-start; gap:10px; font-size:13px; color:var(--ink-soft); margin-bottom:14px; line-height:1.4;}
  .checkbox-row input{margin-top:3px; flex-shrink:0;}
  .twofa-row{ display:flex; align-items:flex-start; gap:12px; background:var(--blue-tint-soft); border:1px solid var(--line); border-radius:12px; padding:14px 16px; margin-bottom:18px; }
  .twofa-row .icon{width:20px; height:20px; color:var(--blue-deep); flex-shrink:0; margin-top:1px;}
  .twofa-row strong{font-size:13.5px; color:var(--ink); display:block;}
  .twofa-row span{font-size:12px; color:var(--ink-soft);}
  .twofa-row input{margin-left:auto; margin-top:3px; flex-shrink:0;}
  .form-actions .btn{width:100%; justify-content:center;}
  .form-actions .btn:disabled{background:#e7ccc9; cursor:not-allowed;}
  .form-switch{text-align:center; margin-top:18px; font-size:13.5px; color:var(--ink-soft);}
  .form-switch a{color:var(--blue-deep); font-weight:600; cursor:pointer;}
  .field-hint{font-size:12px; color:var(--ink-soft); text-align:right; margin-top:-10px; margin-bottom:14px;}
  .field-hint a{color:var(--blue-deep); font-weight:600; cursor:pointer;}

  .otp-icon-circle{ width:52px; height:52px; border-radius:50%; background:var(--blue-tint-soft); display:flex; align-items:center; justify-content:center; margin:0 auto 16px; }
  .otp-icon-circle .icon{width:24px; height:24px; color:var(--blue-deep);}
  .otp-row{display:flex; gap:8px; justify-content:center; margin:20px 0 14px;}
  .otp-row input{ width:44px; height:52px; text-align:center; font-size:20px; font-weight:600; border:1px solid var(--line); border-radius:10px; color:var(--ink); }
  @media (max-width:420px){ .otp-row{gap:6px;} .otp-row input{width:38px; height:46px; font-size:17px;} }
  .otp-row input:focus{outline:none; border-color:var(--blue);}
  .otp-resend{text-align:center; font-size:12.5px; color:var(--ink-soft); margin-bottom:20px;}
  .otp-resend button{background:none; border:none; color:var(--blue-deep); font-weight:600; cursor:pointer; padding:0;}
  .otp-resend button:disabled{color:var(--line); cursor:not-allowed;}

  .form-success{text-align:center; padding:6px 0 4px;}
  .form-success .icon-circle{ width:58px; height:58px; border-radius:50%; background:#dff5e9; display:flex; align-items:center; justify-content:center; margin:0 auto 18px; }
  .form-success .icon-circle .icon{width:26px; height:26px; color:var(--green);}
  .form-success h4{font-size:19px; color:var(--ink); font-family:'Fraunces',serif; font-weight:600;}
  .form-success p{font-size:13.5px; color:var(--ink-soft); margin-top:8px; max-width:34ch; margin-left:auto; margin-right:auto;}
  .form-success .btn{margin-top:22px;}

  .step-view{display:none;}
  .step-view.active{display:block;}
  .form-error{display:none; background:#fdeceb; color:var(--red-deep); border:1px solid #f6c8c3; border-radius:8px; padding:10px 12px; font-size:12.5px; margin-bottom:14px;}
  .form-error.show{display:block;}

/* ---------- Doctor photo support ---------- */
.doctor-avatar{ overflow:hidden; }
.doctor-avatar img{ width:100%; height:100%; object-fit:cover; border-radius:50%; }

/* ---------- Admin callout (replaces static admin mockup) ---------- */
.admin-callout{ background:var(--paper); border:1px solid var(--line); border-radius:16px; padding:34px 32px; display:flex; justify-content:space-between; align-items:center; gap:24px; flex-wrap:wrap; }
.admin-callout-icon{ width:52px; height:52px; border-radius:14px; background:var(--blue-tint-soft); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.admin-callout-icon .icon{width:24px; height:24px; color:var(--blue-deep);}
.admin-callout-text h3{font-size:19px; font-weight:600; color:var(--ink); font-family:'Fraunces',serif;}
.admin-callout-text p{font-size:13.5px; color:var(--ink-soft); margin-top:6px; max-width:52ch;}
.admin-callout-links{display:flex; gap:12px; flex-wrap:wrap;}
