@charset "UTF-8";
:root {
  color-scheme: light;
  --ink: #153d31;
  --muted: #71847a;
  --mint: #d8f7e6;
  --mint-strong: #1a9b68;
  --forest: #08774f;
  --forest-deep: #075d40;
  --line: rgba(30, 105, 72, 0.12);
  --shadow: 0 30px 90px rgba(37, 100, 72, 0.15), 0 7px 24px rgba(33, 88, 63, 0.07);
  --font: "IBM Plex Sans Arabic", "Noto Sans Arabic", Tahoma, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; scroll-behavior: smooth; }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: #f4fff8;
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, textarea { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, textarea:focus-visible, a:focus-visible {
  outline: 3px solid rgba(21, 148, 96, 0.42);
  outline-offset: 3px;
}

.ambient { position: fixed; z-index: -2; pointer-events: none; border-radius: 50%; filter: blur(2px); }
.ambient-one { width: 54vw; height: 54vw; top: -26vw; right: -5vw; background: radial-gradient(circle, rgba(175, 242, 205, .72), rgba(213, 250, 229, .1) 68%, transparent 72%); }
.ambient-two { width: 51vw; height: 51vw; left: -19vw; top: 35vh; background: radial-gradient(circle, rgba(208, 246, 222, .8), rgba(225, 251, 235, .1) 68%, transparent 72%); }
.ambient-three { width: 35vw; height: 35vw; right: 34vw; bottom: -20vw; background: radial-gradient(circle, rgba(193, 236, 214, .55), transparent 70%); }
.grain { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .16; 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='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.11'/%3E%3C/svg%3E"); }
.page-shell { width: min(1220px, calc(100% - 88px)); margin-inline: auto; position: relative; }
.topbar { min-height: 94px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid rgba(25, 105, 71, .1); }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: inherit; }
.brand-logo { width: 42px; height: 42px; border-radius: 14px; box-shadow: 0 5px 12px rgba(11, 112, 73, .15); }
.brand-copy { display: grid; gap: 0; }
.brand-copy strong { font-size: 15px; line-height: 1.45; font-weight: 700; letter-spacing: -.035em; }
.brand-copy span { color: #84948b; font-size: 11px; line-height: 1.45; }
.edit-trigger { display: inline-flex; align-items: center; gap: 9px; border: 1px solid rgba(20, 119, 76, .14); border-radius: 999px; padding: 10px 16px; color: #31634c; background: rgba(255,255,255,.55); backdrop-filter: blur(12px); cursor: pointer; font-size: 12px; font-weight: 600; transition: background .2s, border-color .2s, transform .2s; }
.edit-trigger:hover { background: white; border-color: rgba(20,119,76,.3); transform: translateY(-1px); }
.edit-trigger svg, .private-label svg, .member-count svg, .action-button svg, .promo-copy-button svg, .more-info-button svg, .trust-icon svg, .dialog-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.main-layout { min-height: min(780px, calc(100vh - 150px)); display: grid; grid-template-columns: minmax(0, 1fr) minmax(400px, 510px); align-items: center; gap: clamp(54px, 9vw, 134px); padding-block: 42px 68px; }
.intro { max-width: 500px; padding: 8px 0 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: #268b60; font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: #31b377; box-shadow: 0 0 0 5px rgba(49,179,119,.12); }
.intro h1 { margin: 24px 0 18px; color: #183e31; font-size: clamp(42px, 5.4vw, 68px); font-weight: 600; line-height: 1.3; letter-spacing: -.065em; }
.intro h1 span { color: #218c61; }
.intro-copy { max-width: 375px; margin: 0; color: #77877f; font-size: 15px; line-height: 2.05; }
.trust-note { display: flex; align-items: center; gap: 12px; margin-top: 34px; }
.trust-icon { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid rgba(32, 138, 90, .14); border-radius: 13px; color: #30946a; background: rgba(255,255,255,.58); }
.trust-icon svg { width: 18px; height: 18px; }
.trust-note strong, .trust-note small { display: block; }
.trust-note strong { font-size: 12px; font-weight: 600; }
.trust-note small { margin-top: 3px; color: #94a198; font-size: 10px; }
.decorative-word { margin-top: 76px; color: rgba(53, 127, 91, .37); font-size: 11px; letter-spacing: .16em; }

.invite-wrap { position: relative; isolation: isolate; justify-self: center; width: 100%; max-width: 470px; }
.card-halo { position: absolute; z-index: -1; inset: 7% -9% 4%; border-radius: 44px; background: linear-gradient(135deg, rgba(188, 248, 213, .68), rgba(255,255,255,.28) 48%, rgba(198, 239, 216, .55)); filter: blur(30px); }
.invite-card { position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,.86); border-radius: 30px; padding: 27px 29px 22px; background: linear-gradient(147deg, rgba(255,255,255,.89), rgba(255,255,255,.72)); box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.96); backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px); }
.invite-card::before { position: absolute; top: -115px; left: -105px; width: 210px; height: 210px; border: 1px solid rgba(96, 184, 133, .08); border-radius: 50%; content: ""; box-shadow: 0 0 0 17px rgba(96,184,133,.025), 0 0 0 37px rgba(96,184,133,.018); pointer-events: none; }
.card-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.group-type { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border: 1px solid rgba(37, 152, 100, .1); border-radius: 999px; color: #347c59; background: rgba(228, 249, 236, .78); font-size: 10px; font-weight: 600; }
.online-dot { width: 6px; height: 6px; border-radius: 50%; background: #37af74; box-shadow: 0 0 0 3px rgba(55,175,116,.12); }
.private-label { display: inline-flex; align-items: center; gap: 5px; color: #93a39a; font-size: 10px; }
.private-label svg { width: 14px; height: 14px; }
.group-heading { display: flex; align-items: center; gap: 17px; margin-top: 27px; }
.avatar-frame { position: relative; flex: 0 0 auto; width: 91px; height: 91px; display: grid; place-items: center; }
.avatar-aura { position: absolute; inset: 0; border: 1px solid rgba(54, 169, 109, .15); border-radius: 50%; box-shadow: 0 0 0 6px rgba(188, 241, 207, .23), 0 0 0 12px rgba(188, 241, 207, .1); }
.group-logo { position: relative; width: 72px; height: 72px; border: 3px solid rgba(255,255,255,.95); border-radius: 50%; background: #d8f7e6; object-fit: cover; box-shadow: 0 8px 22px rgba(16, 105, 66, .15); }
.avatar-status { position: absolute; z-index: 1; right: 5px; bottom: 8px; width: 14px; height: 14px; border: 3px solid white; border-radius: 50%; background: #45c17f; }
.group-title-wrap { min-width: 0; }
.group-title-wrap h2 { overflow-wrap: anywhere; margin: 0 0 9px; color: #183e31; font-size: clamp(20px, 2.3vw, 25px); font-weight: 600; line-height: 1.5; letter-spacing: -.04em; }
.member-count { display: inline-flex; align-items: center; gap: 6px; color: #86968d; font-size: 11px; }
.member-count svg { width: 14px; height: 14px; color: #68a882; }
.group-description { margin: 22px 0 20px; color: #72847a; font-size: 12px; line-height: 1.95; }
.promo-card { display: flex; align-items: center; gap: 12px; min-height: 73px; padding: 12px 14px; border: 1px solid rgba(32, 143, 87, .13); border-radius: 17px; background: linear-gradient(105deg, rgba(234, 250, 239, .87), rgba(246, 255, 249, .94)); }
.promo-icon { display: grid; flex: 0 0 auto; width: 37px; height: 37px; place-items: center; border: 1px solid rgba(36,148,91,.12); border-radius: 12px; color: #319666; background: white; }
.promo-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.promo-copy { min-width: 0; flex: 1; }
.promo-caption { display: block; overflow: hidden; color: #8a9a90; font-size: 9px; white-space: nowrap; text-overflow: ellipsis; }
.promo-code { display: block; margin-top: 3px; color: #1e7e54; direction: ltr; font-family: var(--font); font-size: 17px; font-weight: 700; letter-spacing: .1em; line-height: 1.2; text-align: right; }
.promo-copy-button { display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto; border: 0; border-radius: 9px; padding: 8px 9px; color: #368861; background: rgba(255,255,255,.72); cursor: pointer; font-size: 9px; font-weight: 600; transition: background .2s; }
.promo-copy-button:hover { background: white; }
.promo-copy-button svg { width: 14px; height: 14px; }
.link-status { display: flex; align-items: center; gap: 8px; min-height: 30px; margin: 5px 0 3px; color: #899b91; font-size: 9px; }
.status-dot { width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: #d1a259; }
.link-status.is-ready { color: #43825f; }
.link-status.is-ready .status-dot { background: #38ad70; box-shadow: 0 0 0 3px rgba(56,173,112,.12); }
.action-row { display: grid; grid-template-columns: 1.28fr .82fr; gap: 9px; }
.action-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 45px; border: 1px solid rgba(35, 112, 74, .13); border-radius: 13px; color: #48715c; background: rgba(255,255,255,.75); cursor: pointer; font-size: 11px; font-weight: 600; transition: transform .2s, background .2s, box-shadow .2s; }
.action-button:hover { transform: translateY(-1px); background: white; box-shadow: 0 5px 14px rgba(48,112,75,.08); }
.action-button svg { width: 16px; height: 16px; color: #57936e; }
.more-info-button { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 14px auto 15px; padding: 3px 8px; border: 0; color: #799085; background: transparent; cursor: pointer; font-size: 10px; transition: color .2s; }
.more-info-button:hover { color: #178251; }
.more-info-button svg { width: 14px; height: 14px; }
.join-button { position: relative; display: flex; width: 100%; align-items: center; gap: 12px; overflow: hidden; min-height: 66px; border: 1px solid rgba(5, 103, 66, .2); border-radius: 16px; padding: 11px 16px; color: white; background: linear-gradient(104deg, #14915c, #0b704a); box-shadow: 0 9px 20px rgba(17, 128, 78, .22), inset 0 1px 0 rgba(255,255,255,.18); cursor: pointer; text-align: right; transition: transform .2s, box-shadow .2s, filter .2s; }
.join-button::before { position: absolute; inset-block: 0; right: -50%; width: 35%; transform: skewX(-24deg); background: linear-gradient(90deg, transparent, rgba(255,255,255,.13), transparent); content: ""; transition: right .6s; }
.join-button:hover { transform: translateY(-2px); filter: saturate(1.08); box-shadow: 0 13px 27px rgba(17,128,78,.3), inset 0 1px 0 rgba(255,255,255,.18); }
.join-button:hover::before { right: 130%; }
.whatsapp-mark { display: grid; flex: 0 0 auto; width: 38px; height: 38px; place-items: center; border: 1px solid rgba(255,255,255,.24); border-radius: 12px; background: rgba(255,255,255,.15); }
.whatsapp-mark svg { width: 27px; height: 27px; fill: currentColor; }
.join-label { position: relative; z-index: 1; flex: 1; }
.join-label strong, .join-label small { display: block; }
.join-label strong { font-size: 13px; font-weight: 600; }
.join-label small { margin-top: 2px; color: rgba(255,255,255,.77); font-size: 9px; }
.join-arrow { position: relative; z-index: 1; width: 17px; height: 17px; fill: none; stroke: rgba(255,255,255,.84); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.privacy-footnote { margin: 12px 0 0; color: #a0aea5; font-size: 9px; text-align: center; }
.privacy-footnote span { margin-left: 4px; color: #53aa7a; }
.floating-note { position: absolute; z-index: 2; display: flex; align-items: center; gap: 7px; border: 1px solid rgba(255,255,255,.85); border-radius: 12px; padding: 8px 11px; color: #507762; background: rgba(255,255,255,.7); box-shadow: 0 8px 24px rgba(41,102,73,.1); backdrop-filter: blur(14px); font-size: 9px; }
.floating-note b { color: #44aa72; font-size: 14px; }
.note-top { top: 14%; left: -42px; transform: rotate(-4deg); }
.note-bottom { right: -42px; bottom: 15%; transform: rotate(3deg); }

.editor-panel { margin: -13px auto 56px; max-width: 910px; border: 1px solid rgba(255,255,255,.94); border-radius: 25px; padding: 28px 32px 26px; background: rgba(255,255,255,.75); box-shadow: 0 20px 65px rgba(44,111,75,.12); backdrop-filter: blur(22px); animation: rise-in .35s ease-out both; }
.editor-panel[hidden] { display: none !important; }
.editor-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 23px; }
.editor-kicker, .dialog-kicker { color: #429568; font-size: 10px; font-weight: 600; }
.editor-heading h2 { margin: 7px 0 4px; color: #1d4736; font-size: 22px; font-weight: 600; letter-spacing: -.04em; }
.editor-heading p { margin: 0; color: #829187; font-size: 11px; line-height: 1.8; }
.editor-close, .dialog-close { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(39,130,82,.13); border-radius: 50%; color: #688477; background: rgba(250,255,252,.8); cursor: pointer; font-size: 22px; line-height: 1; }
.editor-form { display: grid; grid-template-columns: 1fr 1fr; gap: 17px 18px; }
.field { display: grid; gap: 7px; color: #4e6b5b; font-size: 11px; font-weight: 600; }
.field-wide { grid-column: 1 / -1; }
.field input, .field textarea { width: 100%; border: 1px solid rgba(58,119,83,.16); border-radius: 11px; padding: 11px 13px; color: #264c38; background: rgba(253,255,253,.92); font-size: 12px; font-weight: 400; transition: border-color .18s, box-shadow .18s; }
.field input:focus, .field textarea:focus { border-color: rgba(28,149,89,.5); outline: none; box-shadow: 0 0 0 3px rgba(49,168,104,.1); }
.field textarea { min-height: 75px; resize: vertical; line-height: 1.8; }
.field input::placeholder, .field textarea::placeholder { color: #a9b6ad; }
.field small { color: #93a097; font-size: 9px; font-weight: 400; line-height: 1.7; }
.logo-field { gap: 9px; }
.upload-control { display: flex; align-items: center; gap: 11px; width: 100%; border: 1px dashed rgba(50,136,82,.27); border-radius: 12px; padding: 11px 13px; color: #427557; background: rgba(237,250,241,.6); cursor: pointer; }
.upload-control:hover { background: rgba(230,248,236,.9); }
.upload-icon { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 10px; color: #258554; background: white; font-size: 19px; }
.upload-control strong, .upload-control small { display: block; }
.upload-control strong { font-size: 10px; }
.upload-control small { margin-top: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; clip-path: inset(50%); border: 0; }
.editor-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 2px; }
.save-indicator { display: inline-flex; align-items: center; gap: 7px; color: #87978d; font-size: 10px; }
.save-dot { width: 6px; height: 6px; border-radius: 50%; background: #51b27b; }
.reset-button { border: 0; padding: 7px 0; color: #9a8270; background: transparent; cursor: pointer; font-size: 10px; }
.reset-button:hover { color: #916348; }

.site-footer { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 54px; border-top: 1px solid rgba(25, 105, 71, .09); color: #9aa9a0; font-size: 9px; }
.footer-separator { color: #56aa78; }
.footer-mark { margin-right: 3px; color: #57ad7d; }
.info-dialog { position: fixed; inset: 0; width: min(390px, calc(100% - 32px)); max-width: none; max-height: min(90vh, 650px); overflow: auto; border: 1px solid rgba(255,255,255,.95); border-radius: 24px; padding: 28px; color: var(--ink); background: linear-gradient(145deg, #fff, #f7fff9); box-shadow: 0 26px 90px rgba(17,62,40,.24); }
.info-dialog::backdrop { background: rgba(18,48,34,.24); backdrop-filter: blur(5px); }
.dialog-close { position: absolute; top: 18px; left: 18px; }
.dialog-icon { display: grid; width: 44px; height: 44px; margin-bottom: 18px; place-items: center; border: 1px solid rgba(40,145,88,.15); border-radius: 15px; color: #2a9660; background: #effbf3; }
.dialog-icon svg { width: 21px; height: 21px; }
.info-dialog h2 { margin: 5px 0 17px; color: #1a4533; font-size: 22px; font-weight: 600; }
.dialog-details { padding: 15px 16px; border: 1px solid rgba(44,137,81,.12); border-radius: 15px; background: rgba(239,250,243,.74); }
.dialog-details strong { display: block; color: #24543a; font-size: 14px; }
.dialog-details span { display: block; margin-top: 4px; color: #8b9c90; font-size: 10px; }
.dialog-details p { margin: 13px 0 0; color: #718278; font-size: 11px; line-height: 1.9; }
.dialog-tip { display: flex; gap: 9px; margin: 14px 0 20px; color: #83948a; font-size: 10px; line-height: 1.8; }
.dialog-tip span { color: #51a776; }
.dialog-tip p { margin: 0; }
.dialog-done { width: 100%; min-height: 44px; border: 0; border-radius: 12px; color: white; background: #168251; cursor: pointer; font-size: 12px; font-weight: 600; }
.dialog-done:hover { background: #0e7146; }
.toast { position: fixed; z-index: 20; right: 50%; bottom: max(24px, env(safe-area-inset-bottom)); max-width: calc(100% - 36px); transform: translate(50%, 14px); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 11px 16px; color: #fff; background: rgba(24, 59, 42, .94); box-shadow: 0 12px 32px rgba(15,54,34,.2); opacity: 0; pointer-events: none; font-size: 11px; text-align: center; transition: opacity .22s, transform .22s; }
.toast.is-visible { transform: translate(50%, 0); opacity: 1; }

@keyframes rise-in { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 1500px) { .page-shell { width: min(1280px, calc(100% - 120px)); } }
@media (max-width: 920px) {
  .page-shell { width: min(760px, calc(100% - 56px)); }
  .main-layout { grid-template-columns: minmax(0, .9fr) minmax(365px, 1fr); gap: 42px; }
  .invite-card { padding-inline: 23px; }
  .intro h1 { font-size: clamp(40px, 6.2vw, 56px); }
}
@media (max-width: 760px) {
  .page-shell { width: min(520px, calc(100% - 38px)); }
  .topbar { min-height: 76px; }
  .brand-logo { width: 38px; height: 38px; border-radius: 13px; }
  .edit-trigger { gap: 6px; padding: 9px 11px; font-size: 10px; }
  .edit-trigger svg { width: 15px; height: 15px; }
  .main-layout { min-height: 0; grid-template-columns: 1fr; gap: 26px; padding-block: 37px 46px; }
  .intro { max-width: none; padding: 0 3px; }
  .intro h1 { margin: 17px 0 10px; font-size: clamp(38px, 10vw, 54px); line-height: 1.25; }
  .intro-copy { max-width: 390px; font-size: 13px; line-height: 1.9; }
  .trust-note { display: none; }
  .decorative-word { display: none; }
  .invite-wrap { width: min(100%, 470px); }
  .invite-card { border-radius: 26px; padding: 22px 21px 18px; }
  .group-heading { margin-top: 24px; }
  .group-description { margin-top: 18px; }
  .floating-note { display: none; }
  .editor-panel { margin: 0 auto 42px; padding: 23px 20px; border-radius: 21px; }
}
@media (max-width: 430px) {
  .page-shell { width: calc(100% - 28px); }
  .topbar { min-height: 70px; }
  .brand-copy strong { font-size: 13px; }
  .brand-copy span { font-size: 9px; }
  .edit-trigger { padding: 8px 9px; }
  .main-layout { gap: 22px; padding-top: 30px; }
  .eyebrow { font-size: 10px; }
  .intro h1 { font-size: clamp(36px, 10vw, 44px); }
  .intro-copy { font-size: 12px; }
  .invite-card { padding: 19px 16px 17px; }
  .avatar-frame { width: 79px; height: 79px; }
  .group-logo { width: 63px; height: 63px; }
  .group-title-wrap h2 { font-size: 19px; }
  .member-count { font-size: 10px; }
  .promo-card { gap: 9px; padding-inline: 10px; }
  .promo-copy-button { gap: 4px; padding-inline: 7px; font-size: 8px; }
  .action-button { gap: 6px; font-size: 10px; }
  .action-button svg { width: 14px; height: 14px; }
  .join-button { min-height: 62px; }
  .editor-form { grid-template-columns: 1fr; gap: 14px; }
  .field-wide { grid-column: auto; }
  .editor-heading h2 { font-size: 19px; }
  .editor-footer { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 360px) {
  .action-row { grid-template-columns: 1fr 1fr; }
  .action-button { min-height: 43px; }
  .promo-caption { font-size: 8px; }
  .promo-copy-button span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
