:root {
  --ink: #20201d;
  --paper: #f6f1e8;
  --orange: #e35e36;
  --cobalt: #3755b1;
  --cream: #fffdf8;
  --line: rgba(32, 32, 29, .16);
  --muted: #706d65;
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--paper); }
body { margin: 0; color: var(--ink); font-family: "IBM Plex Sans Arabic", sans-serif; min-height: 100vh; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
.noise { pointer-events: none; position: fixed; inset: 0; z-index: 5; opacity: .15; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.17'/%3E%3C/svg%3E"); }
.shell { width: min(1180px, calc(100% - 48px)); margin: auto; }
.nav { height: 102px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); position: relative; z-index: 1; }
.brand { display: flex; direction: rtl; align-items: center; gap: 10px; font-size: 27px; font-weight: 700; letter-spacing: -1px; }
.brand-mark { background: var(--ink); color: var(--paper); width: 32px; height: 32px; border-radius: 50%; display: grid; place-content: center; font-size: 23px; line-height: 1; padding-bottom: 3px; }
.text-link { font-weight: 600; border-bottom: 1px solid var(--ink); padding-bottom: 3px; }
.hero { min-height: 570px; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 80px; padding: 70px 48px 68px; position: relative; }
.eyebrow { font: 500 12px "DM Mono", monospace; letter-spacing: .08em; color: var(--orange); margin: 0 0 18px; text-transform: uppercase; }
h1 { font-size: clamp(42px, 5.7vw, 76px); line-height: 1.17; letter-spacing: -3.5px; margin: 0; font-weight: 600; }
h1 em { font-family: "Playfair Display", serif; font-weight: 600; color: var(--orange); }
.lede { color: var(--muted); font-size: 18px; line-height: 1.9; max-width: 470px; margin: 28px 0 30px; }
.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.button { border: 0; cursor: pointer; padding: 13px 21px; border-radius: 1px; font-weight: 600; display: inline-flex; gap: 16px; align-items: center; justify-content: center; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-dark { background: var(--ink); color: var(--cream); }
.button-dark span { font-size: 20px; direction: ltr; }
.button-quiet { background: transparent; border: 1px solid var(--line); }
.hero-art { height: 380px; position: relative; overflow: hidden; background: #d7d5ca; isolation: isolate; }
.circle { position: absolute; border-radius: 50%; }
.circle-1 { background: var(--orange); width: 290px; height: 290px; left: -68px; top: 52px; }
.circle-2 { background: var(--cobalt); width: 212px; height: 212px; right: -25px; top: -38px; }
.card { background: var(--cream); box-shadow: 0 15px 24px rgba(32,32,29,.14); position: absolute; z-index: 1; }
.card-top { width: 235px; right: 48px; top: 105px; padding: 21px 18px; font-weight: 600; font-size: 16px; transform: rotate(-6deg); }
.card-top span { color: var(--orange); font-size: 23px; display: block; margin-bottom: 7px; }
.card-bottom { width: 180px; left: 74px; bottom: 30px; padding: 18px; transform: rotate(4deg); }
.card-bottom b { font-size: 26px; line-height: 1.2; display: block; margin-top: 5px; }
.tiny-label { font: 11px "DM Mono", monospace; letter-spacing: .1em; color: var(--orange); }
.doodle { color: var(--ink); position: absolute; right: 32px; bottom: 22px; font: 105px "Playfair Display"; line-height: .8; transform: rotate(-13deg); }
.how-it-works { border-top: 1px solid var(--line); padding: 45px 0 80px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.steps article { border-top: 3px solid var(--ink); padding-top: 18px; }
.steps article:nth-child(2) { border-color: var(--orange); }
.steps article:nth-child(3) { border-color: var(--cobalt); }
.steps span { font: 14px "DM Mono", monospace; color: var(--muted); }
.steps h2 { margin: 16px 0 9px; font-size: 20px; }
.steps p { color: var(--muted); margin: 0; line-height: 1.8; }

/* shared app layout */
.app-page { background: var(--cream); }
.app-shell { max-width: 1220px; min-height: 100vh; margin: auto; padding: 0 32px; }
.app-nav { height: 78px; border-bottom: 1px solid var(--line); display:flex; align-items:center; justify-content:space-between; }
.back-link { font-size: 14px; color: var(--muted); }
.page-head { padding: 50px 0 29px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.page-head h1 { font-size: 45px; letter-spacing: -2px; }
.page-head .sub { margin: 11px 0 0; color: var(--muted); }
.pill { font: 12px "DM Mono", monospace; border: 1px solid var(--line); border-radius: 30px; padding: 9px 12px; white-space: nowrap; }
.admin-grid { display: grid; grid-template-columns: .87fr 1.13fr; border-top: 1px solid var(--line); min-height: 670px; }
.event-form { border-inline-end: 1px solid var(--line); padding-block: 32px 50px; padding-inline: 0 40px; }
.event-form h2, .dashboard h2 { font-size: 21px; margin: 0 0 24px; }
.form-group { margin: 0 0 25px; }
.form-group label { display:block; font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.form-group input, .form-group select, .form-group textarea { width:100%; padding: 13px 14px; background:#fffdf9; border:1px solid var(--line); border-radius: 2px; color:var(--ink); outline-color: var(--orange); }
.choice-row { display:flex; flex-wrap:wrap; gap:8px; }
.choice { position: relative; cursor: pointer; }
.choice input { position:absolute; opacity:0; }
.choice span { display:block; border:1px solid var(--line); padding: 8px 12px; border-radius: 22px; font-size:13px; transition: .15s; }
.choice input:checked + span { background:var(--ink); color:var(--cream); border-color:var(--ink); }
.dashboard { padding-block: 32px 50px; padding-inline: 40px 0; }
.share-card { border:1px solid var(--line); padding: 19px; background: #f4eadf; margin-bottom: 32px; }
.share-card h3 { margin:0 0 6px; font-size: 17px; }.share-card p { color:var(--muted); font-size:14px; margin:0 0 14px; }
.copy-row { display:flex; gap:8px; }.copy-row input { flex:1; min-width:0; padding:9px 10px; border:1px solid var(--line); background:var(--cream); font:12px "DM Mono", monospace; direction:ltr; }.copy-row button { padding:9px 12px; border:0; background:var(--orange); color:white; cursor:pointer; white-space:nowrap; font-weight:600; }
.section-kicker { font: 12px "DM Mono", monospace; letter-spacing:.06em; color:var(--muted); margin: 0 0 12px; }
.answers { display:grid; gap:9px; margin-bottom: 30px; }.answer-card { display:flex; align-items:center; justify-content:space-between; gap:10px; padding: 13px 15px; border:1px solid var(--line); background:white; }.person { display:flex; align-items:center; gap:10px; }.avatar { width:33px; height:33px; border-radius:50%; color:white; display:grid; place-items:center; font-size:13px; font-weight:600; background:var(--cobalt); }.answer-card:nth-child(2) .avatar{background:var(--orange)} .answer-card:nth-child(3) .avatar{background:#727553}.answer-card small{display:block;color:var(--muted);font-size:12px;}.status { font-size:12px; color:#4a765d; background:#e5f0e8; padding:4px 8px; border-radius:12px; }
.recommendation { background:var(--ink); color:var(--cream); padding:27px; position:relative; overflow:hidden; }.recommendation::after{content:"ذ";position:absolute;left:-10px;bottom:-52px;color:rgba(255,255,255,.06);font-size:190px;font-weight:700}.recommendation > *{position:relative;z-index:1}.recommendation .section-kicker{color:#e7b9aa}.recommendation h3{font-size:25px;margin:0 0 7px}.recommendation > p{color:#d8d5cf;margin:0 0 19px;line-height:1.75;font-size:14px}.reason { border-top:1px solid rgba(255,255,255,.22); padding-top:15px; font-size:13px;line-height:1.8; }.reason strong{color:#f5b4a0}

.recommendation .button { background: #f5b4a0; color: #20201d; border: 1px solid #f5b4a0; margin-top: 18px; }
.recommendation .button:hover { background: #ffcfbd; }
.recommendation .button:focus-visible { outline: 3px solid #fffdf8; outline-offset: 3px; }
.recommendation .button:disabled { opacity: .7; cursor: wait; }
.signal-row { display: block; margin-top: 16px; }
.signal-row > input:not([type="hidden"]), .signal-row > select { display: block; width: 100%; padding: 12px; margin-top: 6px; color: #20201d; background: #fffdf8; border: 2px solid #e7b9aa; }
.signal-row > small { display: block; margin-top: 6px; color: #e7dcd4; line-height: 1.6; }
.signal-row > :focus-visible { outline: 3px solid #f5b4a0; outline-offset: 3px; }
#recommend-error { margin-top: 18px; padding: 12px; background: #fff0e9; color: #702e20; border-inline-start: 4px solid #f5b4a0; }
[hidden] { display: none !important; }
.recommendation-share { margin-top: 24px; }
.recommendation-share #feedback-summary { margin-top: 18px; color: var(--ink); }
.recommendation-share .feedback-hint { margin-top: 14px; line-height: 1.8; }
.recommendation-page .guest-intro { padding-top: 30px; }
.recommendation-page h2 { font-size: 26px; margin: 0 0 12px; }
.shared-places { display: grid; gap: 12px; margin: 24px 0; }
.shared-place { padding: 18px; border: 1px solid #686862; background: #2b2c27; }
.shared-place h3 { font-size: 20px; margin: 0; }
.shared-place p { font-size: 14px; line-height: 1.7; color: #e2ddd5; overflow-wrap: anywhere; }
.shared-place a { display: inline-block; color: #f5b4a0; text-decoration: underline; padding: 6px 0; }
.feedback-card { border: 1px solid var(--line); background: #f4eadf; margin-top: 24px; padding: 26px; }
.feedback-card p, .feedback-card small { line-height: 1.8; }
.feedback-card small { display: block; color: var(--muted); }
.rating-actions { display: flex; gap: 14px; margin: 22px 0 16px; }
.rating-actions .button { flex: 1; min-height: 54px; border: 2px solid transparent; font-size: 19px; }
.rating-good { background: #28513e; color: #fffdf8; }
.rating-bad { background: #f5b4a0; color: #20201d; }
.rating-actions .button[aria-pressed="true"] { outline: 3px solid var(--cobalt); outline-offset: 4px; }
.rating-actions .button:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 4px; }
.rating-actions .button:disabled { opacity: .65; cursor: wait; }
.feedback-totals { padding-top: 12px; border-top: 1px solid var(--line); }
#shared-error, #rating-error { padding: 14px; background: #fff0e9; color: #702e20; border-inline-start: 4px solid #b44424; }

/* plan: stops, group fit and agent steps (inside the dark recommendation card) */
.plan { margin: 4px 0 22px; }
.agent-badge { display: inline-block; font: 11px "DM Mono", monospace; letter-spacing: .04em; color: #20201d; background: #f5b4a0; padding: 5px 9px; margin: 0 0 14px; }
.agent-badge.is-fallback { background: transparent; color: #e7dcd4; border: 1px solid rgba(255,255,255,.3); }
.plan-stops { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.plan-stop { display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding: 16px; border: 1px solid #686862; background: #2b2c27; }
.stop-index { width: 34px; height: 34px; border-radius: 50%; background: #f5b4a0; color: #20201d; display: grid; place-items: center; font-weight: 700; }
.stop-body { min-width: 0; }
.stop-role { margin: 0 0 2px; font-size: 12px; color: #e7b9aa; font-weight: 600; }
.stop-body h4 { margin: 0; font-size: 19px; line-height: 1.4; }
.stop-address { margin: 4px 0 0; font-size: 13px; color: #cfcac2; line-height: 1.7; overflow-wrap: anywhere; }
.stop-address a, .plan-alternatives a { color: #f5b4a0; text-decoration: underline; }
.stop-why { margin: 10px 0 0; font-size: 14px; line-height: 1.8; color: #f1ece4; }
.fit { margin-top: 12px; padding-top: 12px; border-top: 1px dashed rgba(255,255,255,.18); }
.fit-head { display: flex; align-items: center; gap: 12px; }
.fit-label { font-size: 13px; font-weight: 600; color: #fffdf8; white-space: nowrap; }
.fit-meter { flex: 1; height: 6px; background: rgba(255,255,255,.14); border-radius: 3px; overflow: hidden; }
.fit-meter i { display: block; height: 100%; width: var(--fit); background: #9fd2b2; border-radius: 3px; }
.fit-people { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.fit-people li { font-size: 12px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); padding: 4px 9px; border-radius: 14px; }
.fit-people b { font-weight: 600; }
.fit-people small { color: #cfcac2; margin-inline-start: 6px; }
.fit-tastes { margin: 8px 0 0; font-size: 12px; color: #cfcac2; }
.considerations { margin-top: 16px; padding: 14px 16px; background: rgba(245,180,160,.1); border-inline-start: 3px solid #f5b4a0; }
.considerations .section-kicker { margin-bottom: 6px; }
.considerations ul { margin: 0; padding: 0; padding-inline-start: 18px; font-size: 13px; line-height: 1.8; color: #f1ece4; }
.plan details { margin-top: 12px; border-top: 1px solid rgba(255,255,255,.14); padding-top: 10px; }
.plan summary { cursor: pointer; font-size: 13px; font-weight: 600; color: #f5b4a0; }
.plan-alternatives ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; font-size: 13px; }
.plan-alternatives li { display: flex; justify-content: space-between; gap: 10px; }
.alt-fit { color: #cfcac2; font-size: 12px; white-space: nowrap; }
.agent-steps ol { margin: 10px 0 0; padding: 0; padding-inline-start: 20px; font-size: 13px; line-height: 1.8; color: #dcd7cf; }
.agent-steps li::marker { color: #f5b4a0; }
#recommend-progress { margin-top: 14px; font-size: 13px; line-height: 1.8; color: #f1ece4; border-inline-start: 3px solid #9fd2b2; padding-inline-start: 12px; }
@media (max-width: 760px) { .plan-stop { grid-template-columns: 28px 1fr; gap: 10px; padding: 14px; } .stop-index { width: 28px; height: 28px; } .fit-head { flex-wrap: wrap; } .fit-label { white-space: normal; } }

.plan-language { margin: 0 0 12px; font-size: 13px; color: #f5b4a0; }
/* language toggle, demo banner and left-to-right (English) adjustments */
.nav-actions { display: flex; align-items: center; gap: 14px; }
.lang-toggle { border: 1px solid var(--line); background: transparent; color: var(--ink); border-radius: 30px; padding: 7px 13px; font-size: 13px; font-weight: 600; cursor: pointer; }
.lang-toggle:hover { background: var(--ink); color: var(--cream); }
.lang-toggle:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; }
.demo-banner { margin: 0 0 22px; padding: 14px 18px; background: #e8eefc; border-inline-start: 4px solid var(--cobalt); line-height: 1.8; font-size: 14px; }
.hero-actions .text-link { font-size: 14px; }
[dir="ltr"] .button span, [dir="ltr"] .button-dark span { display: inline-block; transform: scaleX(-1); }
[dir="ltr"] h1, [dir="ltr"] .page-head h1 { letter-spacing: -1.5px; }
[dir="ltr"] .recommendation::after { left: auto; right: -10px; }
[dir="ltr"] .eyebrow, [dir="ltr"] .section-kicker { letter-spacing: .04em; }

/* guest */
.guest-layout { max-width:720px; margin:auto; padding:0 24px 70px; }.guest-nav{height:88px;display:flex;align-items:center;justify-content:space-between}.event-note{background:#f0e7dc;padding:15px 18px;border-inline-start:4px solid var(--orange);font-size:14px;line-height:1.8}.event-note b{display:block}.guest-intro{padding:48px 0 32px}.guest-intro h1{font-size:47px}.guest-intro p{color:var(--muted);line-height:1.9;margin:15px 0 0}.progress{display:flex;gap:6px;margin:0 0 33px}.progress i{height:3px;flex:1;background:#ddd6cc}.progress i.active{background:var(--orange)}.question{display:none}.question.active{display:block}.question h2{font-size:29px;letter-spacing:-1px;margin:0 0 8px}.question>p{color:var(--muted);margin:0 0 21px}.favorites{display:grid;gap:9px}.favorite-input{display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--line);padding:9px 0}.favorite-input span{font:12px "DM Mono",monospace;color:var(--orange);width:18px}.favorite-input input{border:0;background:transparent;padding:9px 0;outline:none;width:100%;font-size:16px}.form-actions{display:flex;justify-content:space-between;align-items:center;margin-top:33px}.plain-button{border:0;background:none;cursor:pointer;color:var(--muted);padding:10px 0}.success{display:none;text-align:center;padding:58px 0}.success .brand-mark{margin:auto;width:52px;height:52px;font-size:34px}.success h2{font-size:34px;margin:22px 0 10px}.success p{color:var(--muted);line-height:1.9}.toast{visibility:hidden;opacity:0;position:fixed;bottom:22px;left:50%;transform:translate(-50%,20px);padding:11px 16px;background:var(--ink);color:var(--cream);font-size:13px;transition:.2s;z-index:10}.toast.show{visibility:visible;opacity:1;transform:translate(-50%,0)}
@media (max-width: 760px) {.shell{width:min(100% - 32px, 1180px)}.nav{height:78px}.hero{grid-template-columns:1fr;gap:38px;padding:52px 0}.hero-art{height:300px}.hero-copy{order:0}.steps,.admin-grid{grid-template-columns:1fr}.steps{gap:32px}.event-form,.dashboard{border:0;padding:29px 0}.event-form{border-bottom:1px solid var(--line)}.app-shell{padding:0 20px}.page-head{padding-top:35px}.page-head h1{font-size:37px}.page-head .pill{display:none}.guest-intro h1{font-size:39px}h1{letter-spacing:-2.5px}.hero-art{margin:0 -16px}.card-top{right:42px}.card-bottom{left:46px}}

/* Guest confirmation: each favourite matched in Qloo, confirmed by the guest. */
.confirm { padding: 34px 0 10px; }
.confirm h2 { font-size: 34px; letter-spacing: -1px; margin: 0 0 8px; }
.confirm-intro { color: var(--muted); line-height: 1.9; margin: 0 0 24px; }
.confirm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.confirm-item { background: white; border: 1px solid var(--line); border-inline-start: 4px solid #4a765d; padding: 14px 16px; }
.confirm-item.is-choose { border-inline-start-color: var(--cobalt); }
.confirm-item.is-missing, .confirm-item.is-error { border-inline-start-color: var(--orange); }
.confirm-text { margin: 0 0 4px; font-weight: 600; font-size: 17px; }
.confirm-hint { margin: 0 0 8px; color: var(--muted); font-size: 13px; }
.confirm-option { display: flex; align-items: flex-start; gap: 10px; padding: 7px 0; cursor: pointer; line-height: 1.6; font-size: 15px; }
.confirm-option input { margin-top: 5px; accent-color: var(--ink); }
.confirm-retry { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 6px; }
.confirm-retry input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); background: var(--cream); font-size: 15px; }
.confirm-retry .button { padding: 10px 16px; }
.share-choice { display: flex; align-items: flex-start; gap: 10px; margin-top: 26px; font-weight: 600; cursor: pointer; line-height: 1.6; }
.share-choice input { margin-top: 6px; accent-color: var(--orange); width: 18px; height: 18px; }
.share-help { color: var(--muted); font-size: 14px; line-height: 1.8; margin: 6px 0 0; }
.confirm-error { color: #a33a1e; background: #fbe8e1; padding: 10px 12px; margin: 18px 0 0; font-size: 14px; }
.host-link-note { color: var(--muted); font-size: 13px; line-height: 1.7; margin: 10px 0 0; }
