:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --success: #16a34a;
  --danger: #dc2626;
  --bg: #f3f4f6;
  --card: #ffffff;
  --text: #1e293b;
  --muted: #64748b;
  --border: #e2e8f0;
  --shadow: 0 1px 3px rgba(0, 0, 0, .1);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}
.ar { font-family: Tahoma, Arial, sans-serif; direction: rtl; unicode-bidi: bidi-override; color: var(--muted); font-size: .75em; }

/* ---- Nav ---- */
.topnav { display: flex; align-items: center; justify-content: space-between; padding: 0 1.2rem; background: var(--primary); color: #fff; height: 54px; }
.topnav .brand { font-weight: 700; font-size: 1.1rem; }
.nav-links a { color: #fff; text-decoration: none; margin-left: 1.2rem; opacity: .85; font-size: .92rem; }
.nav-links a:hover, .nav-links a.active { opacity: 1; border-bottom: 2px solid #fff; padding-bottom: 2px; }

/* ---- Base ---- */
.container { max-width: 1280px; margin: 0 auto; padding: 1.5rem 1rem; }
.page-head h1 { margin: 0 0 .2rem; }
.muted { color: var(--muted); font-size: .92rem; }
.date-picker { display: flex; align-items: center; gap: .5rem; margin-top: .8rem; }
.date-picker input { padding: .4rem; border: 1px solid var(--border); border-radius: 6px; }

/* ---- Boutons ---- */
.btn { padding: .5rem 1rem; border: none; border-radius: 8px; cursor: pointer; font-size: .92rem; transition: .15s; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: #fff; border: 1px solid var(--border); color: var(--text); }
.btn-present { background: var(--success); color: #fff; flex: 1; }
.btn-absent { background: var(--danger); color: #fff; flex: 1; }
.btn-present.sel { box-shadow: 0 0 0 3px rgba(22,163,74,.35); }
.btn-absent.sel { box-shadow: 0 0 0 3px rgba(220,38,38,.35); }

/* ---- Emploi du temps ---- */
.timetable-wrap { overflow-x: auto; margin-top: 1.2rem; }
table.tt { border-collapse: collapse; width: 100%; min-width: 900px; background: var(--card); box-shadow: var(--shadow); border-radius: 10px; overflow: hidden; }
.tt th, .tt td { border: 1px solid var(--border); padding: .5rem .6rem; text-align: center; vertical-align: middle; }
.tt th { background: var(--primary); color: #fff; font-size: 1rem; font-family: Tahoma, Arial, sans-serif; }
.tt-time { width: 55px; background: #f8fafc; font-weight: 600; }
.tt-empty { background: #fbfbfc; }
.tt-slot { cursor: pointer; font-size: .82rem; transition: .12s; }
.tt-slot:hover { background: #eff6ff; }
.tt-slot .tt-subject { font-weight: 700; color: var(--primary-dark); font-family: Tahoma, Arial, sans-serif; font-size: .95rem; }
.tt-slot .tt-subject-fr { color: var(--muted); font-size: .72rem; }
.tt-slot .tt-teacher { color: var(--muted); font-size: .75rem; }
.tt-slot .tt-room { color: var(--muted); font-size: .72rem; font-family: Tahoma, Arial, sans-serif; }
.tt-slot.mine { background: #f0fdf4; }
.tt-slot.mine:hover { background: #ecfccb; }
.tt-counts { margin-top: 2px; font-size: .72rem; font-family: Tahoma, Arial, sans-serif; }
.c-absent { color: var(--danger); font-weight: 600; }

/* ---- Badges ---- */
.b-present { display: inline-block; background: #dcfce7; color: var(--success); border-radius: 20px; padding: 1px 8px; font-size: .7rem; font-weight: 600; }
.b-absent { display: inline-block; background: #fee2e2; color: var(--danger); border-radius: 20px; padding: 1px 8px; font-size: .7rem; font-weight: 600; }

/* ---- Modale ---- */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; z-index: 100; }
.modal-box { background: var(--card); border-radius: 14px; width: 440px; max-width: 92vw; padding: 1.2rem; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .6rem; }
.modal-head h3 { margin: 0; }
.modal-close { border: none; background: none; font-size: 1.6rem; cursor: pointer; color: var(--muted); line-height: 1; }
.signal-actions { display: flex; gap: .6rem; margin: 1rem 0; }
.photo-upload .dropzone { border: 2px dashed var(--border); border-radius: 10px; padding: 1.2rem; text-align: center; cursor: pointer; color: var(--muted); font-size: .9rem; transition: .15s; }
.photo-upload .dropzone:hover { border-color: var(--primary); color: var(--primary); }
.photo-upload img { margin-top: .6rem; width: 100%; border-radius: 8px; }
.modal-foot { margin-top: 1rem; text-align: right; }

/* ---- Options (présence par enseignant) ---- */
.opts { margin-top: 1.2rem; }
.opts table { background: var(--card); box-shadow: var(--shadow); border-radius: 10px; width: 100%; border-collapse: collapse; }
.opts th, .opts td { border-bottom: 1px solid var(--border); padding: .6rem .8rem; text-align: left; }
.opts th { background: #f8fafc; }

/* ---- Stats / graphiques ---- */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .8rem; margin: 1.2rem 0; }
.st-card { background: var(--card); border-radius: 12px; padding: 1rem; text-align: center; box-shadow: var(--shadow); }
.st-num { font-size: 1.6rem; font-weight: 800; color: var(--primary-dark); }
.st-lbl { color: var(--muted); font-size: .8rem; }
.charts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.chart-card { background: var(--card); border-radius: 12px; padding: 1rem; box-shadow: var(--shadow); }
.chart-card h3 { margin: 0 0 .6rem; font-size: .95rem; }
.chart-wide { grid-column: 1 / -1; }
.chart-card canvas { max-height: 260px; }

/* ---- Toast ---- */
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: #1e293b; color: #fff; padding: .7rem 1.4rem; border-radius: 30px; font-size: .92rem; z-index: 200; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.toast-err { background: var(--danger); }

/* ---- Responsive ---- */
@media (max-width: 760px) {
  .charts-grid { grid-template-columns: 1fr; }
  .topnav { flex-wrap: wrap; height: auto; padding: .5rem; }
  .nav-links a { margin-left: .8rem; }
}

/* ---- Admin : onglets ---- */
.tabs { display: flex; gap: .4rem; margin: 1rem 0; flex-wrap: wrap; }
.tab { padding: .55rem 1.1rem; border: 1px solid var(--border); border-radius: 22px; background: var(--card); cursor: pointer; font-size: .9rem; }
.tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---- Admin : formulaires & listes ---- */
.schedule-toolbar { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; background: var(--card); padding: .9rem; border-radius: 12px; box-shadow: var(--shadow); margin-bottom: 1rem; }
.schedule-toolbar select, .schedule-toolbar input { padding: .45rem; border: 1px solid var(--border); border-radius: 6px; }
.a-form { background: var(--card); padding: 1rem; border-radius: 12px; box-shadow: var(--shadow); margin-bottom: 1rem; display: flex; flex-direction: column; gap: .5rem; max-width: 420px; }
.a-form h3 { margin: 0 0 .3rem; }
.a-form input, .a-form select { padding: .5rem; border: 1px solid var(--border); border-radius: 6px; }
.opts-table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.opts-table th, .opts-table td { border-bottom: 1px solid var(--border); padding: .55rem .8rem; text-align: left; }
.opts-table th { background: #f8fafc; }
.btn-del { border: none; background: var(--danger); color: #fff; border-radius: 6px; width: 22px; height: 22px; cursor: pointer; font-size: .7rem; line-height: 1; opacity: .8; }
.btn-del:hover { opacity: 1; }
.tt-slot-admin { position: relative; font-size: .82rem; }
.tt-slot-admin .btn-del { position: absolute; top: 3px; right: 3px; }

/* ---- V3 : classes, arabe, benchmark ---- */
.class-badge { display: inline-block; background: var(--primary); color: #fff; padding: 2px 12px; border-radius: 20px; font-size: .85rem; vertical-align: middle; }
.toolbar { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin-top: .8rem; }
.class-switch { padding: .45rem .8rem; border: 1px solid var(--border); border-radius: 8px; font-weight: 600; }
.tt-subject-ar { color: var(--primary); font-size: .78rem; font-weight: 600; }
.chip { display: inline-block; background: #eef2ff; color: var(--primary); border-radius: 12px; padding: 1px 8px; font-size: .72rem; margin-right: 3px; }
.chk { display: inline-flex; align-items: center; gap: 4px; margin-right: 10px; font-size: .85rem; }
.bench-num { font-weight: 700; color: var(--primary-dark); }
.class-checkboxes { display: flex; flex-wrap: wrap; gap: 6px; }
.charts-grid { margin-top: 1rem; }

/* Landing pages / responsive authentication additions */
:root { --primary: #155e75; --primary-dark: #164e63; --accent: #0f766e; --bg: #f5f8fa; --text: #172b3a; --muted: #667987; --border: #dce6eb; --shadow: 0 14px 44px rgba(18, 58, 78, .08); }
body { font-family: "DM Sans", "Noto Sans Arabic", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, select { font: inherit; }
.btn { min-height: 44px; font-weight: 700; }
.landing-body { background: #fbfcfd; color: #173044; }
.landing-nav { height: 76px; max-width: 1180px; margin: auto; padding: 0 26px; display: flex; justify-content: space-between; align-items: center; }
.landing-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #173044; font-weight: 800; letter-spacing: -.04em; font-size: 1.25rem; }
.landing-brand > span:last-child > span { color: #168276; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: #155e75; color: #fff; font-size: 1rem; letter-spacing: 0; box-shadow: 0 5px 12px #155e7530; }
.landing-nav nav { display: flex; align-items: center; gap: 22px; }
.nav-login { color: #30485a; text-decoration: none; font-size: .91rem; font-weight: 700; }
.nav-cta { padding: 10px 16px; text-decoration: none; font-size: .88rem; }
.hero { max-width: 1180px; margin: auto; min-height: 548px; padding: 74px 26px 78px; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.hero-copy { max-width: 550px; position: relative; z-index: 1; }
.eyebrow { color: #287466; text-transform: uppercase; letter-spacing: .09em; font-weight: 700; font-size: .69rem; display: flex; align-items: center; gap: 9px; }
.eyebrow > span { width: 8px; height: 8px; border-radius: 50%; background: #28a584; box-shadow: 0 0 0 4px #28a5841a; }
.hero h1 { font-size: clamp(2.55rem, 4.5vw, 4rem); line-height: 1.09; letter-spacing: -.055em; color: #16334a; margin: 22px 0 17px; max-width: 600px; }
.hero h1 em { font-style: normal; color: #168276; }
.hero-intro { max-width: 525px; color: #647987; font-size: 1.02rem; line-height: 1.8; margin: 0; }
.hero-actions { display: flex; align-items: center; gap: 22px; margin-top: 29px; flex-wrap: wrap; }
.btn-large { min-height: 52px; padding: 0 20px; border-radius: 11px; text-decoration: none; display: inline-flex; gap: 18px; align-items: center; box-shadow: 0 8px 18px #155e752c; }
.hero-secondary { color: #365566; font-size: .87rem; font-weight: 700; text-decoration: none; }
.hero-assurance { margin-top: 22px; font-size: .76rem; color: #768997; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.hero-assurance > span:first-child { color: #168276; font-weight: 900; }
.assurance-sep { color: #becad0; }
.hero-art { min-height: 410px; display: grid; place-items: center; position: relative; isolation: isolate; }
.hero-art:before { content: ""; position: absolute; width: 390px; height: 390px; border-radius: 50%; background: linear-gradient(145deg,#e6f4ef,#e9f1f9); z-index: -2; }
.hero-orbit { position: absolute; border: 1px solid #6eb9a72c; border-radius: 50%; z-index: -1; }
.orbit-one { width: 465px; height: 465px; }.orbit-two { width: 520px; height: 520px; border-color: #6193b21c; }
.schedule-card { position: relative; width: min(100%, 405px); padding: 22px 23px 16px; background: rgba(255,255,255,.94); border: 1px solid #e4ecee; border-radius: 19px; box-shadow: 0 28px 70px #183f5018; transform: rotate(-1deg); }
.schedule-card-head { display: flex; align-items: center; justify-content: space-between; padding: 0 2px 17px; border-bottom: 1px solid #edf1f2; }
.schedule-card-head > div { display: grid; gap: 5px; }.schedule-card-head small { color: #76908e; font-size: .59rem; font-weight: 700; letter-spacing: .1em; }.schedule-card-head strong { font-size: 1.08rem; color: #19384a; }
.calendar-icon { width: 35px; height: 35px; display: grid; place-items: center; color: #168276; border-radius: 10px; background: #e8f6f1; font-size: 1.15rem; }
.schedule-line { display: grid; grid-template-columns: 54px 1fr 26px; gap: 11px; align-items: center; padding: 16px 0; border-bottom: 1px solid #f0f3f4; }.schedule-line > div { min-width: 0; display: grid; gap: 5px; }.schedule-line strong { color: #1b3c4e; font-size: .82rem; }.schedule-line small { color: #81919a; font-size: .67rem; font-family: "Noto Sans Arabic", sans-serif; }
.time-pill { color: #6d8391; background: #f4f7f8; border-radius: 7px; padding: 6px 5px; font-size: .64rem; font-weight: 700; text-align: center; }.check-pill { color: #17836f; background: #e5f5ee; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .74rem; font-weight: 900; }.muted-line { opacity: .63; }.pending-pill { color: #8a7440; background: #faf3df; border-radius: 20px; padding: 4px 7px; font-size: .58rem; text-align: center; }
.schedule-card-foot { color: #85969e; font-size: .63rem; display: flex; align-items: center; gap: 7px; padding: 14px 1px 0; }.live-dot,.note-dot { width: 7px; height: 7px; border-radius: 50%; background: #25a77d; }
.floating-note { position: absolute; z-index: 1; background: #fff; border: 1px solid #e6eeee; border-radius: 12px; box-shadow: 0 12px 28px #163f5015; display: flex; gap: 8px; align-items: center; padding: 11px 13px; color: #667e88; font-size: .67rem; }.floating-note strong { color: #204355; }.note-top { top: 50px; right: 1px; }.note-bottom { bottom: 34px; left: 0; line-height: 1.5; }.note-check { width: 25px; height: 25px; border-radius: 8px; background: #e8f6f1; color: #168276; display: grid; place-items: center; font-weight: 900; }
.benefits { background: #f4f8f8; padding: 73px 26px 80px; }.section-heading { text-align: center; margin: 0 auto 34px; }.section-heading > span { color: #208276; font-size: .67rem; letter-spacing: .14em; font-weight: 800; }.section-heading h2 { font-size: clamp(1.65rem, 3vw, 2.25rem); color: #17364b; letter-spacing: -.04em; margin: 9px 0 8px; }.section-heading p { color: #71838d; margin: 0; font-size: .9rem; }
.benefit-grid { max-width: 1128px; margin: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }.benefit-card { background: #fff; border: 1px solid #e5edee; border-radius: 14px; padding: 23px 22px; min-height: 190px; }.benefit-icon { width: 39px; height: 39px; border-radius: 11px; display: grid; place-items: center; font-size: 1.1rem; font-weight: 800; }.icon-blue { color: #3778ae; background: #eaf3fb; }.icon-green { color: #17816d; background: #e8f6ef; }.icon-violet { color: #7862a7; background: #f0edfa; }.benefit-card h3 { color: #1a394c; font-size: .94rem; margin: 15px 0 7px; }.benefit-card p { color: #72848d; font-size: .77rem; line-height: 1.7; margin: 0; }
.closing-cta { max-width: 1128px; margin: 60px auto; padding: 29px 34px; border-radius: 18px; color: white; background: linear-gradient(110deg,#155e75,#197d77); display: flex; justify-content: space-between; align-items: center; gap: 18px; }.closing-cta span { color: #c7e3dd; font-size: .73rem; }.closing-cta h2 { margin: 5px 0 0; font-size: 1.33rem; }.btn-white { color: #155e75; background: white; text-decoration: none; display: inline-flex; align-items: center; gap: 13px; padding: 0 18px; }
.landing-footer { max-width: 1180px; min-height: 76px; margin: auto; padding: 16px 26px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px solid #ecf0f1; }.landing-footer .landing-brand { font-size: 1rem; }.landing-footer .brand-mark { width: 29px; height: 29px; }.landing-footer p,.landing-footer > a:last-child { color: #81919a; font-size: .73rem; margin: 0; text-decoration: none; }
.auth-body { min-height: 100vh; color: #18364a; background: radial-gradient(ellipse at 11% 2%,#dff3ed 0,transparent 36%),radial-gradient(ellipse at 98% 94%,#e9eff8 0,transparent 33%),#f7fafb; padding: 20px; }.auth-shell { max-width: 520px; margin: 0 auto; display: flex; align-items: center; flex-direction: column; }.auth-brand { align-self: flex-start; margin: 8px 0 18px; }.auth-card { width: 100%; background: #fff; border: 1px solid #e4ecee; border-radius: 20px; padding: 28px 35px 25px; box-shadow: 0 24px 70px #163f5015; }.auth-back { text-decoration: none; color: #627b88; font-size: .78rem; font-weight: 700; }.auth-heading { text-align: center; padding-top: 14px; }.auth-icon { margin: auto; width: 43px; height: 43px; display: grid; place-items: center; border-radius: 14px; background: #e7f4f0; color: #14796d; font-size: 1.2rem; }.auth-kicker { color: #248478; font-size: .61rem; letter-spacing: .14em; font-weight: 800; margin: 13px 0 5px; }.auth-heading h1 { margin: 0; font-size: 1.7rem; letter-spacing: -.045em; color: #18394e; line-height: 1.2; }.auth-subtitle { color: #71838d; font-size: .77rem; line-height: 1.6; margin: 8px auto 20px; max-width: 375px; }.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 11px; background: #f2f6f7; margin: 0 0 17px; }.auth-tab { min-height: 39px; border: 0; border-radius: 8px; background: transparent; color: #687f8b; font-size: .77rem; font-weight: 700; cursor: pointer; }.auth-tab.active { background: #fff; color: #155e75; box-shadow: 0 2px 7px #173d5012; }
.auth-form { display: grid; gap: 8px; }.auth-form label { color: #355164; font-size: .72rem; font-weight: 700; margin-top: 2px; }.auth-form label span { font-weight: 400; color: #80909a; }.auth-form input,.auth-form select { width: 100%; min-height: 46px; border: 1px solid #dce6e9; border-radius: 9px; background: #fff; padding: 0 12px; color: #243f50; font-size: .81rem; outline: none; }.auth-form input::placeholder { color: #a1adb4; }.auth-form input:focus,.auth-form select:focus { border-color: #51a69a; box-shadow: 0 0 0 3px #16827619; }.auth-submit { width: 100%; display: flex; justify-content: space-between; align-items: center; border-radius: 9px; margin-top: 7px; padding: 0 15px; }.auth-submit span { font-size: 1.1rem; }.auth-privacy { color: #84939b; text-align: center; font-size: .66rem; margin: 1px 0 0; line-height: 1.5; }.auth-divider { display: flex; align-items: center; gap: 12px; margin: 17px 0 13px; color: #89969e; font-size: .66rem; }.auth-divider:before,.auth-divider:after { content: ""; height: 1px; background: #e9eef0; flex: 1; }.google-button { width: 100%; min-height: 47px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid #dae3e6; border-radius: 9px; background: #fff; color: #334f60; font-size: .76rem; font-weight: 700; cursor: pointer; }.google-button:hover:not(:disabled) { background: #f8fbfb; border-color: #b7c8ce; }.google-button:disabled { color: #89969d; background: #f8f9fa; cursor: not-allowed; }.google-button svg { width: 18px; height: 18px; }.google-note,.auth-legal { text-align: center; color: #89969e; font-size: .62rem; line-height: 1.5; margin: 8px 0 0; }.auth-legal { border-top: 1px solid #edf1f2; margin-top: 16px; padding-top: 13px; }.auth-footer { color: #8c9aa1; font-size: .67rem; text-align: center; margin: 15px 0 8px; }.auth-footer span { padding: 0 5px; }.auth-message { border-radius: 9px; background: #fff0ee; color: #ae473c; font-size: .75rem; padding: 10px 12px; margin: 0 0 12px; }.auth-success { background: #eaf7f0; color: #21785c; }.hidden { display: none !important; }
@media (max-width: 820px) {
  .hero-art { overflow: hidden; }
  .orbit-one { width: min(340px, 96vw); height: min(340px, 96vw); }
  .orbit-two { width: min(370px, 102vw); height: min(370px, 102vw); }
  .note-top { right: 4px; }
  .note-bottom { left: 4px; }
  .landing-nav { height: 64px; padding: 0 17px; }.landing-nav nav { gap: 11px; }.nav-login { font-size: .8rem; }.nav-cta { font-size: .75rem; padding: 8px 11px; min-height: 39px; }
  .hero { min-height: 0; padding: 44px 19px 56px; grid-template-columns: 1fr; gap: 26px; }.hero h1 { font-size: clamp(2.25rem, 10.4vw, 3.2rem); margin: 17px 0 13px; }.hero-intro { font-size: .92rem; line-height: 1.72; }.hero-actions { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 23px; }.btn-large { justify-content: space-between; }.hero-secondary { text-align: center; padding: 3px; }.hero-assurance { font-size: .68rem; }
  .hero-art { min-height: 330px; margin: 0 -2px; }.hero-art:before { width: 290px; height: 290px; }.schedule-card { width: min(100%, 365px); padding: 17px 16px 13px; transform: none; }.schedule-line { grid-template-columns: 48px 1fr 24px; padding: 13px 0; gap: 8px; }.schedule-line strong { font-size: .77rem; }.schedule-line small { font-size: .62rem; }.note-top { top: 11px; }.note-bottom { bottom: 8px; }.floating-note { padding: 9px 10px; font-size: .61rem; }
  .benefits { padding: 48px 18px 54px; }.section-heading { margin-bottom: 22px; }.section-heading p { font-size: .8rem; }.benefit-grid { grid-template-columns: 1fr; gap: 11px; }.benefit-card { min-height: 0; padding: 17px; }.benefit-card h3 { margin-top: 11px; }.closing-cta { margin: 36px 16px; padding: 23px 20px; display: grid; }.closing-cta h2 { font-size: 1.18rem; }.btn-white { justify-content: space-between; }.landing-footer { padding: 18px; display: grid; grid-template-columns: 1fr auto; }.landing-footer p { grid-column: 1 / -1; grid-row: 2; }.landing-footer > a:last-child { grid-column: 1 / -1; grid-row: 3; }
  .auth-body { padding: max(12px, env(safe-area-inset-top)) 13px max(12px, env(safe-area-inset-bottom)); }.auth-shell { width: 100%; max-width: 480px; }.auth-brand { margin: 5px 0 12px; }.auth-card { padding: 20px 19px 18px; border-radius: 16px; }.auth-heading { padding-top: 10px; }.auth-heading h1 { font-size: 1.5rem; }.auth-subtitle { margin-bottom: 16px; }.auth-form { gap: 7px; }.auth-form input,.auth-form select { min-height: 49px; font-size: 16px; }.auth-submit,.google-button { min-height: 50px; font-size: .84rem; }.auth-footer { font-size: .63rem; margin-top: 11px; }
}
@media (max-width: 380px) { .landing-nav { padding: 0 12px; }.landing-brand { gap: 7px; font-size: 1.1rem; }.landing-nav nav { gap: 8px; }.nav-cta { padding: 7px 8px; font-size: .7rem; }.hero { padding-inline: 15px; }.hero-art { min-height: 300px; }.schedule-card { padding: 15px 12px 12px; }.note-top { right: -2px; top: 2px; }.note-bottom { left: -2px; bottom: 0; }.auth-body { padding-inline: 9px; }.auth-card { padding-inline: 15px; } }


/* ---- Winoprof public landing + mobile-first authentication ---- */
:root { --primary: #155e75; --primary-dark: #164e63; --accent: #0f766e; --bg: #f5f8fa; --text: #172b3a; --muted: #667987; --border: #dce6eb; --shadow: 0 14px 44px rgba(18, 58, 78, .08); }
body { font-family: "DM Sans", "Noto Sans Arabic", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, select { font: inherit; }
.btn { min-height: 44px; font-weight: 700; }
.landing-body { background: #fbfcfd; color: #173044; }
.landing-nav { height: 76px; max-width: 1180px; margin: auto; padding: 0 26px; display: flex; justify-content: space-between; align-items: center; }
.landing-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #173044; font-weight: 800; letter-spacing: -.04em; font-size: 1.25rem; }
.landing-brand > span:last-child > span { color: #168276; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: #155e75; color: #fff; font-size: 1rem; letter-spacing: 0; box-shadow: 0 5px 12px #155e7530; }
.landing-nav nav { display: flex; align-items: center; gap: 22px; }
.nav-login { color: #30485a; text-decoration: none; font-size: .91rem; font-weight: 700; }
.nav-cta { padding: 10px 16px; text-decoration: none; font-size: .88rem; }
.hero { max-width: 1180px; margin: auto; min-height: 548px; padding: 74px 26px 78px; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.hero-copy { max-width: 550px; position: relative; z-index: 1; }
.eyebrow { color: #287466; text-transform: uppercase; letter-spacing: .09em; font-weight: 700; font-size: .69rem; display: flex; align-items: center; gap: 9px; }
.eyebrow > span { width: 8px; height: 8px; border-radius: 50%; background: #28a584; box-shadow: 0 0 0 4px #28a5841a; }
.hero h1 { font-size: clamp(2.55rem, 4.5vw, 4rem); line-height: 1.09; letter-spacing: -.055em; color: #16334a; margin: 22px 0 17px; max-width: 600px; }
.hero h1 em { font-style: normal; color: #168276; }
.hero-intro { max-width: 525px; color: #647987; font-size: 1.02rem; line-height: 1.8; margin: 0; }
.hero-actions { display: flex; align-items: center; gap: 22px; margin-top: 29px; flex-wrap: wrap; }
.btn-large { min-height: 52px; padding: 0 20px; border-radius: 11px; text-decoration: none; display: inline-flex; gap: 18px; align-items: center; box-shadow: 0 8px 18px #155e752c; }
.hero-secondary { color: #365566; font-size: .87rem; font-weight: 700; text-decoration: none; }
.hero-assurance { margin-top: 22px; font-size: .76rem; color: #768997; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.hero-assurance > span:first-child { color: #168276; font-weight: 900; }
.assurance-sep { color: #becad0; }
.hero-art { min-height: 410px; display: grid; place-items: center; position: relative; isolation: isolate; }
.hero-art:before { content: ""; position: absolute; width: 390px; height: 390px; border-radius: 50%; background: linear-gradient(145deg,#e6f4ef,#e9f1f9); z-index: -2; }
.hero-orbit { position: absolute; border: 1px solid #6eb9a72c; border-radius: 50%; z-index: -1; }
.orbit-one { width: 465px; height: 465px; }
.orbit-two { width: 520px; height: 520px; border-color: #6193b21c; }
.schedule-card { position: relative; width: min(100%, 405px); padding: 22px 23px 16px; background: rgba(255,255,255,.94); border: 1px solid #e4ecee; border-radius: 19px; box-shadow: 0 28px 70px #183f5018; transform: rotate(-1deg); }
.schedule-card-head { display: flex; align-items: center; justify-content: space-between; padding: 0 2px 17px; border-bottom: 1px solid #edf1f2; }
.schedule-card-head > div { display: grid; gap: 5px; }
.schedule-card-head small { color: #76908e; font-size: .59rem; font-weight: 700; letter-spacing: .1em; }
.schedule-card-head strong { font-size: 1.08rem; color: #19384a; }
.calendar-icon { width: 35px; height: 35px; display: grid; place-items: center; color: #168276; border-radius: 10px; background: #e8f6f1; font-size: 1.15rem; }
.schedule-line { display: grid; grid-template-columns: 54px 1fr 26px; gap: 11px; align-items: center; padding: 16px 0; border-bottom: 1px solid #f0f3f4; }
.schedule-line > div { min-width: 0; display: grid; gap: 5px; }
.schedule-line strong { color: #1b3c4e; font-size: .82rem; }
.schedule-line small { color: #81919a; font-size: .67rem; font-family: "Noto Sans Arabic", sans-serif; }
.time-pill { color: #6d8391; background: #f4f7f8; border-radius: 7px; padding: 6px 5px; font-size: .64rem; font-weight: 700; text-align: center; }
.check-pill { color: #17836f; background: #e5f5ee; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .74rem; font-weight: 900; }
.muted-line { opacity: .63; }
.pending-pill { color: #8a7440; background: #faf3df; border-radius: 20px; padding: 4px 7px; font-size: .58rem; text-align: center; }
.schedule-card-foot { color: #85969e; font-size: .63rem; display: flex; align-items: center; gap: 7px; padding: 14px 1px 0; }
.live-dot,.note-dot { width: 7px; height: 7px; border-radius: 50%; background: #25a77d; }
.floating-note { position: absolute; z-index: 1; background: #fff; border: 1px solid #e6eeee; border-radius: 12px; box-shadow: 0 12px 28px #163f5015; display: flex; gap: 8px; align-items: center; padding: 11px 13px; color: #667e88; font-size: .67rem; }
.floating-note strong { color: #204355; }
.note-top { top: 50px; right: 1px; }
.note-bottom { bottom: 34px; left: 0; line-height: 1.5; }
.note-check { width: 25px; height: 25px; border-radius: 8px; background: #e8f6f1; color: #168276; display: grid; place-items: center; font-weight: 900; }
.benefits { background: #f4f8f8; padding: 73px 26px 80px; }
.section-heading { text-align: center; margin: 0 auto 34px; }
.section-heading > span { color: #208276; font-size: .67rem; letter-spacing: .14em; font-weight: 800; }
.section-heading h2 { font-size: clamp(1.65rem, 3vw, 2.25rem); color: #17364b; letter-spacing: -.04em; margin: 9px 0 8px; }
.section-heading p { color: #71838d; margin: 0; font-size: .9rem; }
.benefit-grid { max-width: 1128px; margin: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
.benefit-card { background: #fff; border: 1px solid #e5edee; border-radius: 14px; padding: 23px 22px; min-height: 190px; }
.benefit-icon { width: 39px; height: 39px; border-radius: 11px; display: grid; place-items: center; font-size: 1.1rem; font-weight: 800; }
.icon-blue { color: #3778ae; background: #eaf3fb; }.icon-green { color: #17816d; background: #e8f6ef; }.icon-violet { color: #7862a7; background: #f0edfa; }
.benefit-card h3 { color: #1a394c; font-size: .94rem; margin: 15px 0 7px; }
.benefit-card p { color: #72848d; font-size: .77rem; line-height: 1.7; margin: 0; }
.closing-cta { max-width: 1128px; margin: 60px auto; padding: 29px 34px; border-radius: 18px; color: white; background: linear-gradient(110deg,#155e75,#197d77); display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.closing-cta span { color: #c7e3dd; font-size: .73rem; }.closing-cta h2 { margin: 5px 0 0; font-size: 1.33rem; }
.btn-white { color: #155e75; background: white; text-decoration: none; display: inline-flex; align-items: center; gap: 13px; padding: 0 18px; }
.landing-footer { max-width: 1180px; min-height: 76px; margin: auto; padding: 16px 26px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px solid #ecf0f1; }
.landing-footer .landing-brand { font-size: 1rem; }.landing-footer .brand-mark { width: 29px; height: 29px; }
.landing-footer p,.landing-footer > a:last-child { color: #81919a; font-size: .73rem; margin: 0; text-decoration: none; }

.auth-body { min-height: 100vh; color: #18364a; background: radial-gradient(ellipse at 11% 2%,#dff3ed 0,transparent 36%),radial-gradient(ellipse at 98% 94%,#e9eff8 0,transparent 33%),#f7fafb; padding: 20px; }
.auth-shell { max-width: 520px; margin: 0 auto; display: flex; align-items: center; flex-direction: column; }
.auth-brand { align-self: flex-start; margin: 8px 0 18px; }
.auth-card { width: 100%; background: #fff; border: 1px solid #e4ecee; border-radius: 20px; padding: 28px 35px 25px; box-shadow: 0 24px 70px #163f5015; }
.auth-back { text-decoration: none; color: #627b88; font-size: .78rem; font-weight: 700; }
.auth-heading { text-align: center; padding-top: 14px; }
.auth-icon { margin: auto; width: 43px; height: 43px; display: grid; place-items: center; border-radius: 14px; background: #e7f4f0; color: #14796d; font-size: 1.2rem; }
.auth-kicker { color: #248478; font-size: .61rem; letter-spacing: .14em; font-weight: 800; margin: 13px 0 5px; }
.auth-heading h1 { margin: 0; font-size: 1.7rem; letter-spacing: -.045em; color: #18394e; line-height: 1.2; }
.auth-subtitle { color: #71838d; font-size: .77rem; line-height: 1.6; margin: 8px auto 20px; max-width: 375px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 11px; background: #f2f6f7; margin: 0 0 17px; }
.auth-tab { min-height: 39px; border: 0; border-radius: 8px; background: transparent; color: #687f8b; font-size: .77rem; font-weight: 700; cursor: pointer; }
.auth-tab.active { background: #fff; color: #155e75; box-shadow: 0 2px 7px #173d5012; }
.auth-form { display: grid; gap: 8px; }
.auth-form label { color: #355164; font-size: .72rem; font-weight: 700; margin-top: 2px; }
.auth-form label span { font-weight: 400; color: #80909a; }
.auth-form input,.auth-form select { width: 100%; min-height: 46px; border: 1px solid #dce6e9; border-radius: 9px; background: #fff; padding: 0 12px; color: #243f50; font-size: .81rem; outline: none; }
.auth-form input::placeholder { color: #a1adb4; }
.auth-form input:focus,.auth-form select:focus { border-color: #51a69a; box-shadow: 0 0 0 3px #16827619; }
.auth-submit { width: 100%; display: flex; justify-content: space-between; align-items: center; border-radius: 9px; margin-top: 7px; padding: 0 15px; }
.auth-submit span { font-size: 1.1rem; }
.auth-privacy { color: #84939b; text-align: center; font-size: .66rem; margin: 1px 0 0; line-height: 1.5; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 17px 0 13px; color: #89969e; font-size: .66rem; }
.auth-divider:before,.auth-divider:after { content: ""; height: 1px; background: #e9eef0; flex: 1; }
.google-button { width: 100%; min-height: 47px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid #dae3e6; border-radius: 9px; background: #fff; color: #334f60; font-size: .76rem; font-weight: 700; cursor: pointer; }
.google-button:hover:not(:disabled) { background: #f8fbfb; border-color: #b7c8ce; }
.google-button:disabled { color: #89969d; background: #f8f9fa; cursor: not-allowed; }
.google-button svg { width: 18px; height: 18px; }
.google-note,.auth-legal { text-align: center; color: #89969e; font-size: .62rem; line-height: 1.5; margin: 8px 0 0; }
.auth-legal { border-top: 1px solid #edf1f2; margin-top: 16px; padding-top: 13px; }
.auth-footer { color: #8c9aa1; font-size: .67rem; text-align: center; margin: 15px 0 8px; }
.auth-footer span { padding: 0 5px; }
.auth-message { border-radius: 9px; background: #fff0ee; color: #ae473c; font-size: .75rem; padding: 10px 12px; margin: 0 0 12px; }
.auth-success { background: #eaf7f0; color: #21785c; }
.hidden { display: none !important; }

@media (max-width: 760px) {
  .landing-nav { height: 64px; padding: 0 17px; }
  .landing-nav nav { gap: 11px; }
  .nav-login { font-size: .8rem; }
  .nav-cta { font-size: .75rem; padding: 8px 11px; min-height: 39px; }
  .hero { min-height: 0; padding: 44px 19px 56px; grid-template-columns: 1fr; gap: 26px; }
  .hero h1 { font-size: clamp(2.25rem, 10.4vw, 3.2rem); margin: 17px 0 13px; }
  .hero-intro { font-size: .92rem; line-height: 1.72; }
  .hero-actions { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 23px; }
  .btn-large { justify-content: space-between; }
  .hero-secondary { text-align: center; padding: 3px; }
  .hero-assurance { font-size: .68rem; }
  .hero-art { min-height: 330px; margin: 0 -2px; }
  .hero-art:before { width: 290px; height: 290px; }
  .orbit-one { width: 340px; height: 340px; }.orbit-two { width: 370px; height: 370px; }
  .schedule-card { width: min(100%, 365px); padding: 17px 16px 13px; transform: none; }
  .schedule-line { grid-template-columns: 48px 1fr 24px; padding: 13px 0; gap: 8px; }
  .schedule-line strong { font-size: .77rem; }.schedule-line small { font-size: .62rem; }
  .note-top { top: 11px; right: 0; }.note-bottom { left: 0; bottom: 8px; }
  .floating-note { padding: 9px 10px; font-size: .61rem; }
  .benefits { padding: 48px 18px 54px; }
  .section-heading { margin-bottom: 22px; }.section-heading p { font-size: .8rem; }
  .benefit-grid { grid-template-columns: 1fr; gap: 11px; }
  .benefit-card { min-height: 0; padding: 17px; }
  .benefit-card h3 { margin-top: 11px; }
  .closing-cta { margin: 36px 16px; padding: 23px 20px; display: grid; }
  .closing-cta h2 { font-size: 1.18rem; }
  .btn-white { justify-content: space-between; }
  .landing-footer { padding: 18px; display: grid; grid-template-columns: 1fr auto; }
  .landing-footer p { grid-column: 1 / -1; grid-row: 2; }
  .landing-footer > a:last-child { grid-column: 1 / -1; grid-row: 3; }
  .auth-body { padding: max(12px, env(safe-area-inset-top)) 13px max(12px, env(safe-area-inset-bottom)); }
  .auth-shell { width: 100%; max-width: 480px; }
  .auth-brand { margin: 5px 0 12px; }
  .auth-card { padding: 20px 19px 18px; border-radius: 16px; }
  .auth-heading { padding-top: 10px; }.auth-heading h1 { font-size: 1.5rem; }
  .auth-subtitle { margin-bottom: 16px; }
  .auth-form { gap: 7px; }
  .auth-form input,.auth-form select { min-height: 49px; font-size: 16px; }
  .auth-submit,.google-button { min-height: 50px; font-size: .84rem; }
  .auth-footer { font-size: .63rem; margin-top: 11px; }
}

@media (max-width: 380px) {
  .landing-nav { padding: 0 12px; }.landing-brand { gap: 7px; font-size: 1.1rem; }
  .landing-nav nav { gap: 8px; }.nav-cta { padding: 7px 8px; font-size: .7rem; }
  .hero { padding-inline: 15px; }.hero-art { min-height: 300px; }
  .schedule-card { padding: 15px 12px 12px; }
  .note-top { right: -2px; top: 2px; }.note-bottom { left: -2px; bottom: 0; }
  .auth-body { padding-inline: 9px; }.auth-card { padding-inline: 15px; }
}