:root { --wine:#941638; --wine-dark:#671027; --green:#008c45; --sun:#f6a51c; --coral:#e45c4b; --ink:#1c1b1d; --muted:#706d70; --line:#e7e2df; --cream:#fff8ed; }
* { box-sizing:border-box; }
[hidden] { display:none !important; }
html { background:#f7f4f1; }
body { margin:0; color:var(--ink); font-family:"Tahoma","Arial",sans-serif; background:radial-gradient(circle at 8% 22%,rgba(0,140,69,.09),transparent 30%),radial-gradient(circle at 92% 75%,rgba(148,22,56,.10),transparent 34%),linear-gradient(125deg,#fff9f5,#f8f5f2 55%,#eef6f1); }
body:before { content:""; position:fixed; inset:0; pointer-events:none; background:linear-gradient(180deg,rgba(255,255,255,.12),rgba(255,249,239,.08) 60%,rgba(255,248,237,.28)); z-index:-1; }
button,input,select,textarea { font:inherit; }
button { cursor:pointer; }
.topbar { min-height:88px; display:flex; align-items:center; justify-content:space-between; padding:12px clamp(22px,5vw,76px); background:rgba(255,255,255,.95); border-bottom:1px solid var(--line); position:sticky; top:0; z-index:10; backdrop-filter:blur(10px); }
.topbar.solo { justify-content:center; }
.header-actions { position:absolute; inset-inline-end:clamp(22px,5vw,76px); display:flex; align-items:center; gap:12px; }
.language-toggle { border:1px solid rgba(148,22,56,.22); color:var(--wine); background:white; border-radius:999px; padding:9px 16px; font-weight:800; box-shadow:0 5px 18px rgba(56,25,33,.07); }
.brand { display:flex; align-items:center; gap:20px; }
.brand-mark { display:block; border:0; padding:0; margin:0; background:transparent; line-height:0; }
.brand img { width:164px; height:58px; object-fit:contain; }
.brand span { color:var(--muted); padding-right:20px; border-right:1px solid var(--line); font-size:14px; }
.topbar.solo .brand span { display:none; }
nav { display:flex; background:#f2eeeb; border-radius:12px; padding:4px; }
nav button { border:0; color:#686468; background:transparent; padding:11px 18px; border-radius:9px; font-weight:700; }
nav button.active { background:white; color:var(--wine); box-shadow:0 3px 12px rgba(52,31,36,.08); }
.registration-shell { max-width:1380px; margin:0 auto; min-height:calc(100vh - 150px); display:grid; grid-template-columns:.8fr 1.2fr; gap:7vw; padding:64px clamp(24px,6vw,90px); align-items:start; }
.intro-panel { position:sticky; top:150px; padding:28px; border-radius:28px; background:rgba(255,255,255,.62); border:1px solid rgba(255,255,255,.75); box-shadow:0 24px 65px rgba(89,55,38,.09); backdrop-filter:blur(7px); }
.fair-lockup { width:max-content; max-width:100%; display:flex; align-items:center; gap:14px; margin-bottom:28px; padding:10px 16px; border-radius:18px; color:white; background:linear-gradient(115deg,var(--wine) 0%,#7c2140 48%,var(--green) 100%); box-shadow:0 14px 35px rgba(103,16,39,.24); }
.fair-lockup strong { font-size:44px; line-height:1; border-inline-end:1px solid rgba(255,255,255,.45); padding-inline-end:14px; }
.fair-lockup div { display:grid; gap:4px; }.fair-lockup span { font-weight:900; }.fair-lockup small { font-size:12px; opacity:.92; }
.eyebrow { direction:ltr; display:inline-flex; color:var(--green); font-size:12px; font-weight:800; letter-spacing:.16em; align-items:center; gap:8px; }
.eyebrow:before { content:""; width:26px; height:2px; background:var(--green); }
.intro-panel h1 { margin:22px 0; font-size:clamp(43px,5vw,72px); line-height:1.22; letter-spacing:-.04em; }
.intro-panel h1 span { color:var(--wine); }
.intro-panel p { color:var(--muted); font-size:18px; line-height:2; max-width:480px; }
.purpose { margin-top:52px; color:var(--wine); font-style:italic; font-weight:700; display:flex; align-items:center; gap:12px; }
.purpose i { width:9px; height:9px; border-radius:50%; background:var(--green); box-shadow:0 0 0 6px rgba(0,140,69,.1); }
.form-card,.table-card { background:white; border:1px solid rgba(140,120,120,.15); border-radius:24px; box-shadow:0 24px 70px rgba(56,25,33,.08); }
.form-card { padding:clamp(25px,4vw,52px); }
.form-card { position:relative; overflow:visible; }
.form-heading { display:flex; justify-content:space-between; align-items:flex-start; border-bottom:1px solid var(--line); padding-bottom:24px; margin-bottom:26px; }
.form-heading span { color:var(--green); font-size:13px; font-weight:800; }
.form-heading h2 { margin:7px 0 0; font-size:29px; }
.form-heading b { color:#eee9e7; font-size:54px; line-height:1; direction:ltr; }
.field-grid { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
label,legend { color:#464145; font-size:13px; font-weight:700; }
input,select,textarea { width:100%; border:1px solid var(--line); border-radius:10px; padding:13px 14px; background:#fcfbfa; color:var(--ink); margin-top:8px; outline:none; transition:.2s; }
.phone-control { display:grid; grid-template-columns:minmax(145px,.9fr) minmax(145px,1.1fr); gap:8px; }
.phone-control select,.phone-control input { min-width:0; direction:ltr; }
.phone-control select { text-align:left; }
input:focus,select:focus,textarea:focus { border-color:var(--wine); box-shadow:0 0 0 3px rgba(148,22,56,.09); background:white; }
textarea { resize:vertical; }
fieldset { border:0; padding:0; margin:24px 0; }
.priority-row { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-top:10px; }
.priority { display:flex; flex-direction:column; border:1px solid var(--line); border-radius:12px; padding:13px; cursor:pointer; background:#fcfbfa; }
.priority input { width:auto; margin:0 0 8px; accent-color:var(--wine); }
.priority span { font-size:12px; }
.priority small { color:var(--muted); margin-top:4px; }
.priority.selected { border-color:var(--wine); background:#fff8fa; }
.contact-choice { grid-column:1 / -1; margin:0; min-width:0; }
.contact-choice-row { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:8px; }
.contact-choice-row label { min-height:48px; display:flex; align-items:center; justify-content:center; gap:9px; border:1px solid var(--line); border-radius:10px; background:#fcfbfa; cursor:pointer; transition:.2s; }
.contact-choice-row label:hover { border-color:#c58a9b; background:#fffafb; }
.contact-choice-row label.selected { color:var(--wine); border-color:var(--wine); background:#fff4f7; box-shadow:0 0 0 3px rgba(148,22,56,.08); }
.contact-choice-row input { width:17px; height:17px; margin:0; accent-color:var(--wine); }
.interest-checklist { grid-column:1 / -1; margin:0; min-width:0; }
.interest-checklist legend { width:100%; }
.interest-checklist legend small { color:var(--muted); font-weight:400; margin-right:6px; }
.interest-checklist-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin-top:8px; }
.interest-checklist-grid label { min-height:54px; display:flex; align-items:center; justify-content:flex-start; gap:9px; padding:10px 12px; border:1px solid var(--line); border-radius:10px; background:#fcfbfa; cursor:pointer; transition:.2s; }
.interest-checklist-grid label:hover { border-color:#c58a9b; background:#fffafb; }
.interest-checklist-grid label.selected { color:var(--wine); border-color:var(--wine); background:#fff4f7; box-shadow:0 0 0 3px rgba(148,22,56,.08); }
.interest-checklist-grid input { width:18px; height:18px; margin:0; accent-color:var(--wine); flex:0 0 auto; }
[dir="ltr"] .interest-checklist-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
[dir="ltr"] .interest-checklist-grid label { min-height:58px; padding:12px 16px; }
[dir="ltr"] .interest-checklist-grid label span,[dir="ltr"] .contact-choice-row label span { line-height:1.25; }
[dir="ltr"] .contact-choice-row label { min-height:54px; padding:10px 16px; }
.consent { margin:22px 0; display:flex; gap:11px; align-items:flex-start; line-height:1.7; font-weight:400; color:var(--muted); }
.consent input { width:18px; height:18px; margin:2px 0 0; accent-color:var(--wine); flex:0 0 auto; }
.primary,.export { border:0; border-radius:11px; font-weight:800; }
.primary { background:var(--wine); color:white; width:100%; display:flex; justify-content:center; align-items:center; gap:18px; padding:16px; box-shadow:0 9px 25px rgba(148,22,56,.25); }
.primary:hover { background:var(--wine-dark); transform:translateY(-1px); }
.primary:disabled,.export:disabled { opacity:.6; cursor:not-allowed; }
.notice { padding:14px 16px; border-radius:10px; margin-bottom:22px; font-size:14px; }
.notice.success { background:#e8f7ee; color:#087539; border:1px solid #bce7cc; }
.notice.error { background:#fff0f2; color:#941638; border:1px solid #efc7d0; }
.dashboard { max-width:1380px; margin:0 auto; padding:54px clamp(24px,5vw,76px) 80px; }
.dashboard-title { display:flex; justify-content:space-between; align-items:end; gap:20px; }
.dashboard-title h1 { font-size:40px; margin:12px 0 8px; }
.dashboard-title p { color:var(--muted); margin:0; }
.export { background:var(--green); color:white; padding:14px 20px; box-shadow:0 8px 22px rgba(0,140,69,.2); }
.dashboard-actions { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:10px; max-width:760px; }
.sms-test { border:1px solid #16814b; color:#087539; background:#f0fbf5; border-radius:11px; padding:13px 18px; font-weight:800; white-space:nowrap; }
.sms-test:hover { color:#fff; background:#087539; }
.sms-message { border:1px solid #cda6b1; color:var(--wine); background:#fff7f9; border-radius:11px; padding:13px 18px; font-weight:800; white-space:nowrap; }
.sms-message:hover { color:#fff; background:var(--wine); }
.sms-toggle,.sms-send,.password-button,.session-button { border:1px solid #d5d0d2; color:#403b3d; background:#fff; border-radius:11px; padding:13px 18px; font-weight:800; white-space:nowrap; }
.sms-toggle.on { color:#fff; border-color:var(--green); background:var(--green); }
.sms-toggle.off { color:#fff; border-color:#a21636; background:#a21636; }
.sms-send:hover,.password-button:hover,.session-button:hover { color:var(--wine); border-color:var(--wine); background:#fff7f9; }
.duplicate-settings-card { margin:28px 0 0; padding:20px 22px; display:flex; align-items:center; justify-content:space-between; gap:24px; border:1px solid #e3dddf; border-radius:18px; background:rgba(255,255,255,.88); box-shadow:0 12px 32px rgba(52,36,42,.07); backdrop-filter:blur(10px); }
.duplicate-settings-heading { display:flex; align-items:center; gap:13px; min-width:260px; }
.duplicate-settings-heading .settings-icon { display:grid; place-items:center; width:42px; height:42px; flex:0 0 42px; border-radius:13px; color:#fff; background:linear-gradient(135deg,var(--wine),#cf3b59); font-size:19px; font-weight:900; }
.duplicate-settings-heading h2 { margin:0 0 4px; font-size:17px; color:#332e30; }
.duplicate-settings-heading p { margin:0; color:var(--muted); font-size:12px; line-height:1.6; }
.duplicate-settings-options { display:grid; grid-template-columns:repeat(2,minmax(235px,1fr)); gap:12px; width:min(560px,100%); }
.setting-switch { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 15px; border:1px solid #ded8da; border-radius:14px; background:#fff; text-align:start; color:#403b3d; box-shadow:0 4px 12px rgba(50,36,42,.04); }
.setting-switch:hover { border-color:#b9afb2; transform:translateY(-1px); }
.setting-switch span { display:flex; flex-direction:column; gap:4px; }
.setting-switch strong { font-size:14px; }
.setting-switch small { color:#8a8285; font-size:11px; }
.setting-switch i { position:relative; width:46px; height:26px; flex:0 0 46px; border-radius:20px; background:#c8c2c4; transition:.2s ease; }
.setting-switch i::after { content:""; position:absolute; top:3px; inset-inline-start:3px; width:20px; height:20px; border-radius:50%; background:#fff; box-shadow:0 2px 5px rgba(0,0,0,.2); transition:.2s ease; }
.setting-switch.active { border-color:#a8d8bc; background:#f4fbf7; }
.setting-switch.active i { background:var(--green); }
.setting-switch.active i::after { transform:translateX(20px); }
[dir="rtl"] .setting-switch.active i::after { transform:translateX(-20px); }
.manual-phone { display:grid; grid-template-columns:65px 1fr; gap:8px; align-items:center; margin-top:8px; }
.manual-phone span { padding:13px 10px; border:1px solid var(--line); border-radius:10px; background:#f5f2f1; text-align:center; font-weight:800; }
.manual-phone input { margin:0; }
.danger-outline { border:1px solid #b52343; color:#a21636; background:#fff; border-radius:11px; padding:13px 18px; font-weight:800; }
.danger-outline:hover { color:#fff; background:#a21636; }
.delete-row { border:1px solid #efc7d0; color:#a21636; background:#fff6f8; border-radius:8px; padding:7px 11px; font-weight:800; white-space:nowrap; }
.delete-row:hover { color:#fff; background:#a21636; border-color:#a21636; }
.resend-sms { border:1px solid #b9dfca; color:#087539; background:#f0fbf5; border-radius:8px; padding:7px 11px; font-weight:800; white-space:nowrap; margin-inline-end:6px; }
.sms-detail { display:block; max-width:200px; margin-top:5px; padding:0; border:0; background:transparent; text-align:inherit; color:#6d686a; font-size:11px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; cursor:pointer; text-decoration:underline; }
.dialog-content { position:relative; padding:32px; }
.sms-full-response { padding:16px; border:1px solid var(--line); border-radius:10px; background:#f8f7f6; white-space:pre-wrap; word-break:break-word; max-height:45vh; overflow:auto; direction:ltr; text-align:left; }
.dialog-actions { margin-top:16px; }
.stats { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin:34px 0 22px; }
.stats article { background:white; border:1px solid var(--line); border-radius:18px; padding:24px; display:grid; grid-template-columns:1fr auto; align-items:center; }
.stats span { color:var(--muted); font-size:13px; font-weight:700; }
.stats strong { grid-row:1/3; grid-column:2; font-size:38px; color:var(--wine); }
.stats small { color:#9c9799; margin-top:8px; }
.stats .hot-stat { background:var(--wine); border-color:var(--wine); }
.stats .hot-stat span,.stats .hot-stat small { color:#f0cbd5; }
.stats .hot-stat strong { color:white; }
.toolbar { padding:18px; display:grid; grid-template-columns:minmax(220px,1fr) 220px auto; gap:12px; align-items:center; border-bottom:1px solid var(--line); }
.toolbar input,.toolbar select { margin:0; }
.toolbar span { color:var(--muted); font-size:13px; padding:0 8px; }
.table-wrap { overflow:auto; }
table { width:100%; border-collapse:collapse; min-width:850px; text-align:right; }
[dir="ltr"] table { text-align:left; }
[dir="ltr"] .primary .arrow { transform:rotate(180deg); }
th { background:#faf8f6; color:#7d777a; font-size:12px; padding:14px 20px; }
td { border-top:1px solid #eeeae7; padding:17px 20px; font-size:14px; vertical-align:top; }
td strong,td small { display:block; }
td small { color:#989396; margin-top:6px; font-size:12px; max-width:270px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
td a { color:var(--wine); text-decoration:none; font-weight:700; direction:ltr; display:inline-block; }
.badge { display:inline-block; padding:6px 11px; border-radius:999px; font-size:12px; font-weight:800; }
.badge.hot { background:#fbe7ec; color:var(--wine); }.badge.warm { background:#e8f7ee; color:#087539; }.badge.general { background:#efedef; color:#686268; }
.empty { padding:60px; text-align:center; color:var(--muted); }
footer { background:#211d1e; color:white; min-height:75px; display:flex; align-items:center; justify-content:space-between; padding:18px clamp(24px,5vw,76px); direction:ltr; }
footer span { font-weight:900; letter-spacing:.08em; color:#efbac8; } footer p { font-size:12px; color:#aaa3a5; }
.website-field { position:absolute !important; inset-inline-start:-9999px !important; opacity:0 !important; pointer-events:none !important; }
.admin-dialog { width:min(440px,calc(100% - 30px)); border:0; border-radius:20px; padding:0; box-shadow:0 28px 90px rgba(38,16,23,.28); }
.admin-dialog::backdrop { background:rgba(28,17,20,.58); backdrop-filter:blur(4px); }
.admin-dialog form { position:relative; padding:32px; }
.admin-dialog h2 { margin:0 0 8px; color:var(--wine); }
.admin-dialog p { color:var(--muted); line-height:1.7; margin:0 0 22px; }
.admin-dialog label { display:block; margin:14px 0; }
.dialog-close { position:absolute; top:14px; inset-inline-end:16px; border:0; background:transparent; color:#8b8587; font-size:26px; }

@media (max-width:850px) {
  .topbar { position:static; flex-direction:column; gap:10px; align-items:stretch; padding:12px 18px; }
  .header-actions { position:static; justify-content:center; }
  .brand { justify-content:center; }.brand span { display:none; } nav { width:100%; } nav button { flex:1; }
  .registration-shell { grid-template-columns:1fr; padding:34px 18px 60px; gap:30px; }
  body { background-position:24% center; background-attachment:scroll; }
  .intro-panel { position:static; padding:24px; }.intro-panel h1 { font-size:43px; }.intro-panel p { font-size:16px; }.purpose { margin-top:26px; }
  .field-grid { grid-template-columns:1fr; gap:16px; }.priority-row { grid-template-columns:1fr; }.interest-checklist-grid,[dir="ltr"] .interest-checklist-grid { grid-template-columns:1fr 1fr; }
  .dashboard { padding:34px 18px 60px; }.dashboard-title { align-items:stretch; flex-direction:column; }.dashboard-title h1 { font-size:32px; }.dashboard-actions { flex-direction:column; max-width:none; }.export,.danger-outline,.sms-test,.sms-message,.sms-toggle,.sms-send,.password-button,.session-button { width:100%; }
  .duplicate-settings-card { align-items:stretch; flex-direction:column; }.duplicate-settings-options { width:100%; }
  .stats { grid-template-columns:1fr; }.toolbar { grid-template-columns:1fr; }.toolbar span { text-align:center; }
  footer { flex-direction:column; gap:4px; text-align:center; }
}

@media (max-width:520px) {
  .duplicate-settings-options { grid-template-columns:1fr; }
  .interest-checklist-grid,[dir="ltr"] .interest-checklist-grid,.contact-choice-row { grid-template-columns:1fr; }
  .phone-control { grid-template-columns:135px minmax(0,1fr); }
}

.fair-lockup .cargo-emblem { font-size:17px; letter-spacing:.12em; line-height:1.2; }
.country-picker { position:relative; min-width:0; }
.country-value { position:absolute; width:1px; height:1px; padding:0; border:0; opacity:0; pointer-events:none; }
.country-trigger { width:100%; height:47px; margin-top:8px; padding:8px 10px; text-align:start; border:1px solid var(--line); border-radius:10px; color:var(--ink); background:#fcfbfa; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.country-trigger:after { content:"⌄"; float:right; }
.country-trigger:focus-visible { outline:2px solid var(--wine); outline-offset:2px; }
.country-menu { position:absolute; z-index:25; top:calc(100% + 5px); left:0; width:max(270px,100%); max-width:min(350px,calc(100vw - 55px)); padding:9px; background:white; border:1px solid var(--line); border-radius:12px; box-shadow:0 15px 36px #32171e30; }
.country-menu input { margin:0 0 7px; }
.country-options { max-height:260px; overflow-y:auto; }
.country-options button { display:block; width:100%; padding:10px; text-align:start; border:0; border-radius:7px; background:white; color:var(--ink); cursor:pointer; }
.country-options button:hover,.country-options button:focus,.country-options button[aria-selected="true"] { background:#f9eef1; color:var(--wine); }
.country-empty { padding:7px 10px; color:var(--muted); }

.country-trigger,.country-options button { display:flex; align-items:center; gap:9px; }
.country-trigger span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.country-trigger:after { margin-left:auto; float:none; flex:0 0 auto; }
.country-flag { width:23px; height:17px; flex:0 0 23px; object-fit:cover; border:1px solid #0002; border-radius:2px; }
