/*
 * Dara chat (chat.daryno.xyz): the landing (.dl-*) and the chat (.dc-*).
 * Quiet and white, as ChatGPT is, with the brand's purple for Dara herself.
 */
.dara {
  --d-bg: #fff;
  --d-side: #f7f7f9;
  --d-line: #ececf1;
  --d-ink: #0f1222;
  --d-text: #3b3f51;
  --d-mute: #7b8094;
  --d-soft: #f3f1ff;
  --d-brand: #6a38ff;
  --d-brand-2: #0d1b52;
  --d-gold: #f7b500;
  margin: 0;
  background: var(--d-bg);
  color: var(--d-text);
  font-family: var(--ar-body-font-family);
}
.dara a { color: inherit; }
[x-cloak] { display: none !important; }

/* Dara, drawn: a small planet of the brand's colours. */
.dara-orb { display: inline-block; flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; clip-path: circle(50%); background: radial-gradient(circle at 32% 28%, #fff 0 6%, #c9b8ff 14%, var(--d-brand) 46%, var(--d-brand-2) 100%); box-shadow: inset -4px -6px 12px rgba(13, 27, 82, .45); }
.dara-orb--xs { width: 28px; height: 28px; }
.dara-orb--sm { width: 30px; height: 30px; }
.dara-orb--lg { width: 72px; height: 72px; }
.dara-orb.is-thinking { animation: dara-pulse 1.2s ease-in-out infinite; }
@keyframes dara-pulse { 50% { transform: scale(.86); filter: saturate(1.4); } }
@media (prefers-reduced-motion: reduce) { .dara-orb.is-thinking, .dc-thinking span { animation: none !important; } }

/* A coin, as the app draws it. */
.dc-coin { display: inline-block; flex-shrink: 0; width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffe58a, var(--d-gold) 55%, #c98a00); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35); }
.dc-coin--lg { width: 26px; height: 26px; }

/* ---------- The landing ---------- */
.dl-wrap { width: 100%; max-width: 1080px; margin-inline: auto; padding-inline: 20px; }
.dl-bar { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid transparent; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.6) blur(14px); }
.dl-bar__in { display: flex; align-items: center; gap: 24px; height: 64px; }
.dl-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--d-ink) !important; font-size: 20px; font-weight: 900; text-decoration: none; }
.dl-logo small { margin-inline-start: 4px; color: var(--d-mute); font-size: 12px; font-weight: 600; }
.dl-nav { display: flex; gap: 22px; }
.dl-nav a { color: var(--d-text); font-size: 15px; font-weight: 600; text-decoration: none; }
.dl-nav a:hover { color: var(--d-brand); }
.dl-bar__end { display: flex; align-items: center; gap: 12px; margin-inline-start: auto; }
.dl-link { font-weight: 700; text-decoration: none; }
.dl-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; font-size: 15px; font-weight: 800; text-decoration: none; transition: transform .15s, background .15s; }
.dl-btn:hover { transform: translateY(-1px); }
.dl-btn--dark { background: var(--d-ink); color: #fff !important; }
.dl-btn--dark:hover { background: #262a40; }
.dl-btn--light { background: #fff; color: var(--d-ink) !important; }

.dl-hero { position: relative; overflow: hidden; padding: 64px 0 40px; text-align: center; }
.dl-hero__glow { position: absolute; inset: -40% 10% auto; height: 620px; border-radius: 50%; background: radial-gradient(closest-side, rgba(106, 56, 255, .16), rgba(247, 181, 0, .06) 60%, transparent); pointer-events: none; }
.dl-hero__in { position: relative; display: flex; flex-direction: column; align-items: center; }
.dl-pill { display: inline-flex; align-items: center; gap: 6px; margin: 22px 0 0; padding: 6px 14px; border: 1px solid #e4dcff; border-radius: 999px; background: #fff; color: var(--d-brand); font-size: 14px; font-weight: 800; }
.dl-hero h1 { margin: 18px 0 0; color: var(--d-ink); font-size: clamp(34px, 6vw, 60px); font-weight: 900; line-height: 1.3; }
.dl-hero h1 span { background: linear-gradient(90deg, var(--d-brand), #b05cff 60%, var(--d-gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dl-lead { max-width: 620px; margin: 18px 0 0; color: var(--d-mute); font-size: 18px; line-height: 1.9; }

.dl-ask { display: flex; align-items: flex-end; gap: 8px; width: 100%; max-width: 680px; margin-top: 32px; padding: 10px 10px 10px 10px; border: 1px solid var(--d-line); border-radius: 28px; background: #fff; box-shadow: 0 18px 50px -18px rgba(13, 27, 82, .22); }
.dl-ask textarea { flex: 1; min-width: 0; min-height: 44px; max-height: 160px; padding: 10px 12px; border: 0; background: none; color: var(--d-ink); font: inherit; font-size: 17px; line-height: 1.6; resize: none; outline: none; field-sizing: content; }
.dl-ask button, .dc-send { display: grid; flex-shrink: 0; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--d-ink); color: #fff; font-size: 20px; cursor: pointer; transition: background .15s; }
.dl-ask button:hover, .dc-send:hover { background: var(--d-brand); }
.dl-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 720px; margin: 18px 0 0; padding: 0; list-style: none; }
.dl-chips a { display: block; padding: 8px 14px; border: 1px solid var(--d-line); border-radius: 999px; background: #fff; font-size: 14px; font-weight: 600; text-decoration: none; transition: border-color .15s, color .15s; }
.dl-chips a:hover { border-color: var(--d-brand); color: var(--d-brand); }

.dl-demo { margin-top: 24px; }
.dl-demo__win { max-width: 760px; margin-inline: auto; overflow: hidden; border: 1px solid var(--d-line); border-radius: 22px; background: #fff; box-shadow: 0 30px 70px -30px rgba(13, 27, 82, .25); }
.dl-demo__bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--d-line); background: var(--d-side); }
.dl-demo__bar span { width: 10px; height: 10px; border-radius: 50%; background: #dcdce4; }
.dl-demo__bar em { margin-inline-start: auto; color: var(--d-mute); font-size: 12px; font-style: normal; font-weight: 700; }
.dl-demo__body { display: grid; gap: 18px; padding: 22px; }
.dl-demo__me { justify-self: end; max-width: 80%; margin: 0; padding: 10px 16px; border-radius: 20px; background: var(--d-side); color: var(--d-ink); }
.dl-demo__dara { display: flex; gap: 12px; }
.dl-demo__dara p, .dl-demo__dara li { color: var(--d-ink); line-height: 1.9; }
.dl-demo__dara p { margin: 0 0 6px; }
.dl-demo__dara ul { margin: 0; padding-inline-start: 20px; }

.dl-sec { padding-top: 88px; text-align: center; }
.dl-eyebrow { margin: 0; color: var(--d-brand); font-size: 14px; font-weight: 800; }
.dl-sec h2, .dl-cta h2 { margin: 8px 0 0; color: var(--d-ink); font-size: clamp(26px, 4vw, 38px); font-weight: 900; line-height: 1.4; }
.dl-sub { margin: 10px 0 0; color: var(--d-mute); font-size: 17px; }
.dl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 36px; text-align: start; }
.dl-card { padding: 24px; border: 1px solid var(--d-line); border-radius: 20px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.dl-card:hover { border-color: #d9ceff; box-shadow: 0 16px 40px -24px rgba(106, 56, 255, .45); }
.dl-card i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--d-soft); color: var(--d-brand); font-size: 22px; }
.dl-card h3 { margin: 16px 0 6px; color: var(--d-ink); font-size: 18px; font-weight: 800; }
.dl-card p { margin: 0; color: var(--d-mute); font-size: 15px; line-height: 1.85; }

.dl-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 36px 0 0; padding: 0; list-style: none; text-align: start; counter-reset: none; }
.dl-steps li { position: relative; padding: 24px; border-radius: 20px; background: var(--d-side); }
.dl-steps li:first-child { background: var(--d-soft); }
.dl-steps__n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--d-ink); color: #fff; font-weight: 900; }
.dl-steps h3 { margin: 16px 0 6px; color: var(--d-ink); font-size: 18px; font-weight: 800; }
.dl-steps p { margin: 0; color: var(--d-mute); font-size: 15px; line-height: 1.85; }

.dl-faq { display: grid; gap: 10px; max-width: 760px; margin: 32px auto 0; text-align: start; }
.dl-faq details { border: 1px solid var(--d-line); border-radius: 16px; background: #fff; }
.dl-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; color: var(--d-ink); font-weight: 800; list-style: none; cursor: pointer; }
.dl-faq summary::-webkit-details-marker { display: none; }
.dl-faq summary i { color: var(--d-mute); transition: transform .2s; }
.dl-faq details[open] summary i { transform: rotate(180deg); }
.dl-faq details p { margin: 0; padding: 0 20px 18px; color: var(--d-mute); line-height: 1.9; }

.dl-cta { display: flex; flex-direction: column; align-items: center; margin-top: 88px; padding: 48px 24px; border-radius: 28px; background: radial-gradient(120% 140% at 50% 0%, #3a1f9e, var(--d-brand-2) 70%); color: #fff; text-align: center; }
.dl-cta h2 { margin-top: 16px; color: #fff; }
.dl-cta p { margin: 8px 0 22px; color: rgba(255, 255, 255, .75); }

.dl-foot { margin-top: 64px; padding: 28px 0 36px; border-top: 1px solid var(--d-line); }
.dl-foot__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; color: var(--d-mute); font-size: 14px; }
.dl-foot__in p { margin: 0; }
.dl-foot nav { display: flex; gap: 18px; }
.dl-foot a { text-decoration: none; }
.dl-foot a:hover { color: var(--d-brand); }

@media (max-width: 860px) {
  .dl-nav { display: none; }
  .dl-grid, .dl-steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .dl-wrap { padding-inline: 16px; }
  .dl-bar__in { gap: 10px; }
  .dl-logo small { display: none; }
  .dl-btn { padding: 9px 14px; font-size: 14px; }
  .dl-hero { padding-top: 40px; }
  .dl-lead { font-size: 16px; }
  .dl-sec { padding-top: 64px; }
  .dl-demo__body { padding: 16px; }
  .dl-demo__me { max-width: 92%; }
}

/* ---------- The chat ---------- */
.dara--app { height: 100dvh; overflow: hidden; }
.dc { display: flex; height: 100dvh; }
.dc-side { display: flex; flex-direction: column; width: 272px; flex-shrink: 0; padding: 12px; border-inline-end: 1px solid var(--d-line); background: var(--d-side); }
.dc-side__top { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 12px; }
.dc-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--d-ink) !important; font-size: 19px; font-weight: 900; text-decoration: none; }
.dc-new { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 1px solid var(--d-line); border-radius: 12px; background: #fff; color: var(--d-ink); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.dc-new:hover { border-color: #d9ceff; }
.dc-scroll { flex: 1; min-height: 0; margin: 10px -4px 0; padding-inline: 4px; overflow-y: auto; }
.dc-history { margin-top: 8px; }
.dc-personas { display: grid; gap: 2px; }
.dc-persona { display: flex; align-items: center; border-radius: 10px; }
.dc-persona:hover, .dc-persona.is-on { background: #ebebf0; }
.dc-persona > button:first-child, .dc-persona--add { display: flex; flex: 1; align-items: center; gap: 10px; min-width: 0; padding: 6px 8px; border: 0; background: none; color: var(--d-ink); font: inherit; font-size: 14px; text-align: start; cursor: pointer; }
.dc-persona--add { width: 100%; border-radius: 10px; color: var(--d-mute); }
.dc-persona__icon { display: grid; flex-shrink: 0; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--d-soft); color: var(--d-brand); font-size: 15px; }
.dc-persona__icon.is-mine { background: #fff6dc; color: #b7791f; }
.dc-persona--add .dc-persona__icon { border: 1px dashed #cfd0da; background: none; color: var(--d-mute); }
.dc-persona__name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.dc-persona:hover .dc-history__del { display: block; }
.dc-tune { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 10px; background: none; color: var(--d-ink); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.dc-tune:hover { background: #ebebf0; }
.dc-tune i { color: var(--d-mute); font-size: 17px; }
.dc-tune em { margin-inline-start: auto; padding: 1px 8px; border-radius: 99px; background: #e8f7ee; color: #15803d; font-size: 11.5px; font-style: normal; font-weight: 800; }
.dc-history__when { margin: 14px 8px 6px; color: var(--d-mute); font-size: 12px; font-weight: 800; }
.dc-history__when:first-child { margin-top: 4px; }
.dc-history__none { margin: 8px; color: var(--d-mute); font-size: 13px; line-height: 1.8; }
.dc-history__item { position: relative; display: flex; align-items: center; border-radius: 10px; }
.dc-history__item:hover, .dc-history__item.is-on { background: #ebebf0; }
.dc-history__item > button:first-child { flex: 1; min-width: 0; padding: 8px 10px; overflow: hidden; border: 0; background: none; color: var(--d-ink); font: inherit; font-size: 14px; text-align: start; white-space: nowrap; text-overflow: ellipsis; cursor: pointer; }
.dc-history__del { display: none; padding: 6px 8px; border: 0; background: none; color: var(--d-mute); cursor: pointer; }
.dc-history__del:hover { color: #dc2626; }
.dc-history__item:hover .dc-history__del, .dc-history__item.is-on .dc-history__del { display: block; }
@media (hover: none) { .dc-history__del { display: block; } }

.dc-side__foot { display: grid; gap: 10px; padding-top: 12px; border-top: 1px solid var(--d-line); }
.dc-coins { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.dc-coins b { color: var(--d-ink); font-weight: 900; }
.dc-coins a { margin-inline-start: auto; color: var(--d-brand) !important; font-size: 13px; font-weight: 800; text-decoration: none; }
.dc-me { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 12px; }
.dc-me__name { display: flex; flex: 1; flex-direction: column; min-width: 0; overflow: hidden; color: var(--d-ink); font-size: 14px; font-weight: 800; white-space: nowrap; text-overflow: ellipsis; }
.dc-me__name small { color: #b7791f; font-size: 11.5px; font-weight: 800; }
.dc-me form { margin: 0; }
.dc-guest { display: grid; gap: 10px; padding: 14px; border: 1px solid #e4dcff; border-radius: 16px; background: #fff; }
.dc-guest p { margin: 0; color: var(--d-mute); font-size: 13px; line-height: 1.8; }
.dc-meter { display: block; height: 6px; overflow: hidden; border-radius: 99px; background: #efeff4; }
.dc-meter span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--d-gold), var(--d-brand)); }
.dc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border: 0; border-radius: 999px; font: inherit; font-size: 15px; font-weight: 800; text-decoration: none; white-space: nowrap; cursor: pointer; }
.dc-btn--dark { background: var(--d-ink); color: #fff !important; }
.dc-btn--dark:hover { background: var(--d-brand); }
.dc-icon { display: grid; flex-shrink: 0; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 10px; background: none; color: var(--d-text); font-size: 20px; cursor: pointer; }
.dc-icon:hover { background: #ebebf0; }
.dc-scrim { display: none; }

.dc-main { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.dc-top { display: flex; align-items: center; gap: 8px; height: 56px; padding-inline: 16px; }
.dc-top__title { display: inline-flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; color: var(--d-ink); font-size: 17px; font-weight: 900; white-space: nowrap; text-overflow: ellipsis; }
.dc-top__title i { color: var(--d-brand); font-size: 18px; }
.dc-top__title small { color: var(--d-mute); font-size: 13px; font-weight: 600; }
.dc-pill { display: inline-flex; align-items: center; gap: 6px; margin-inline-start: auto; padding: 5px 12px; border: 1px solid var(--d-line); border-radius: 999px; color: var(--d-ink); font-size: 14px; font-weight: 900; }
.dc-only-sm { display: none; }

.dc-log { flex: 1; min-height: 0; overflow-y: auto; }
.dc-col { width: 100%; max-width: 780px; margin-inline: auto; padding-inline: 20px; }
.dc-log .dc-col { display: grid; gap: 22px; padding-block: 12px 28px; }

.dc-hello { display: flex; flex-direction: column; align-items: center; padding-top: 9vh; text-align: center; }
.dc-hello__icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 22px; background: var(--d-soft); color: var(--d-brand); font-size: 34px; }
.dc-hello__sub { margin: 8px 0 0; color: var(--d-mute); font-size: 16px; }
.dc-hello h1 { margin: 20px 0 0; color: var(--d-ink); font-size: clamp(22px, 3.4vw, 30px); font-weight: 900; line-height: 1.5; }
.dc-starters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: 100%; margin-top: 28px; }
.dc-starters button { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center; padding: 14px 16px; border: 1px solid var(--d-line); border-radius: 16px; background: #fff; color: var(--d-text); font: inherit; text-align: start; cursor: pointer; transition: border-color .15s, background .15s; }
.dc-starters button:hover { border-color: #d9ceff; background: #fcfbff; }
.dc-starters i { grid-row: span 2; color: var(--d-brand); font-size: 20px; }
.dc-starters b { color: var(--d-ink); font-size: 14.5px; font-weight: 800; }
.dc-starters span { color: var(--d-mute); font-size: 13.5px; line-height: 1.7; }

.dc-msg--me { display: flex; justify-content: flex-end; }
.dc-msg--me p { max-width: 78%; margin: 0; padding: 10px 16px; border-radius: 20px; background: var(--d-side); color: var(--d-ink); font-size: 16px; line-height: 1.85; white-space: pre-wrap; overflow-wrap: anywhere; }
.dc-msg--dara { display: flex; align-items: flex-start; gap: 14px; }
.dc-msg__body { flex: 1; min-width: 0; padding-top: 2px; color: var(--d-ink); font-size: 16px; line-height: 2; overflow-wrap: anywhere; }
.dc-msg__body p { margin: 0 0 10px; }
.dc-msg__body ul, .dc-msg__body ol { margin: 0 0 10px; padding-inline-start: 22px; }
.dc-msg__body li + li { margin-top: 2px; }
.dc-msg__body h3 { margin: 16px 0 6px; color: var(--d-ink); font-size: 17px; font-weight: 900; }
.dc-msg__body > h3:first-child { margin-top: 0; }
.dc-msg__body strong { color: var(--d-ink); font-weight: 800; }
.dc-msg__body code { padding: 1px 6px; border-radius: 6px; background: #f1f1f5; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .86em; unicode-bidi: isolate; }
.dc-msg__body pre { margin: 0 0 10px; padding: 14px 16px; overflow-x: auto; border-radius: 14px; background: #0f1222; color: #e7e8f0; font-size: 14px; line-height: 1.7; text-align: left; }
.dc-msg__body pre code { padding: 0; background: none; color: inherit; font-size: inherit; }
.dc-msg__body > :last-child { margin-bottom: 0; }
/* Each block reads in its own language's direction (dir="auto"), aligned to its own start. */
.dc-msg--me p, .dc-msg__body p, .dc-msg__body ul, .dc-msg__body ol, .dc-msg__body h3, .dc-compose textarea, .dc-field, .dl-ask textarea { text-align: start; }
.dc-thinking { display: inline-flex; gap: 5px; padding-top: 12px; }
.dc-thinking span { width: 7px; height: 7px; border-radius: 50%; background: var(--d-mute); animation: dc-dot 1.2s infinite; }
.dc-thinking span:nth-child(2) { animation-delay: .15s; }
.dc-thinking span:nth-child(3) { animation-delay: .3s; }
@keyframes dc-dot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.dc-error { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 12px 14px; border-radius: 14px; background: #fef2f2; color: #b91c1c; font-size: 14.5px; }
.dc-error a { font-weight: 800; }

.dc-foot { padding-bottom: max(14px, env(safe-area-inset-bottom)); }
.dc-compose { display: grid; gap: 4px; padding: 8px; border: 1px solid var(--d-line); border-radius: 26px; background: #fff; box-shadow: 0 10px 34px -16px rgba(13, 27, 82, .25); }
.dc-compose:focus-within { border-color: #cfc2ff; }
.dc-compose textarea { width: 100%; min-width: 0; height: 44px; max-height: 220px; padding: 10px 12px; border: 0; background: none; color: var(--d-ink); font: inherit; font-size: 16px; line-height: 1.6; resize: none; outline: none; }
.dc-send:disabled { background: #c9cad6; cursor: default; }
.dc-tools { display: flex; align-items: center; gap: 4px; }
.dc-tool { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px; border: 1px solid transparent; border-radius: 999px; background: none; color: var(--d-text); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.dc-tool:hover { background: #f1f1f5; }
.dc-tool i { font-size: 17px; }
.dc-tool--switch { border-color: var(--d-line); }
.dc-tool--switch.is-on { border-color: #cfc2ff; background: var(--d-soft); color: var(--d-brand); }
.dc-switch { position: relative; width: 26px; height: 15px; border-radius: 99px; background: #d5d6df; transition: background .15s; }
.dc-switch::after { content: ''; position: absolute; top: 2px; inset-inline-start: 2px; width: 11px; height: 11px; border-radius: 50%; background: #fff; transition: inset-inline-start .15s; }
.dc-tool--switch.is-on .dc-switch { background: var(--d-brand); }
.dc-tool--switch.is-on .dc-switch::after { inset-inline-start: 13px; }
.dc-tool__busy { color: var(--d-mute); font-size: 12.5px; }
.dc-tools .dc-send { margin-inline-start: auto; width: 40px; height: 40px; }
.dc-doc { display: flex; align-items: center; gap: 10px; margin: 2px 4px 4px; padding: 8px 10px; border-radius: 14px; background: var(--d-side); }
.dc-doc > i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #fff; color: var(--d-brand); font-size: 18px; }
.dc-doc > span { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.dc-doc b { overflow: hidden; color: var(--d-ink); font-size: 14px; white-space: nowrap; text-overflow: ellipsis; }
.dc-doc small { color: var(--d-mute); font-size: 12px; }
.dc-doc .dc-icon { width: 30px; height: 30px; font-size: 15px; }

.dc-modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(13, 18, 34, .45); }
.dc-modal__box { width: 100%; max-width: 560px; max-height: calc(100dvh - 32px); overflow-y: auto; padding: 20px; border-radius: 22px; background: #fff; box-shadow: 0 30px 80px -20px rgba(13, 27, 82, .4); }
.dc-modal__box header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.dc-modal__box h2 { margin: 0; color: var(--d-ink); font-size: 19px; font-weight: 900; }
.dc-label { display: block; margin: 12px 0 6px; color: var(--d-ink); font-size: 14px; font-weight: 800; }
.dc-label small { color: var(--d-mute); font-weight: 600; }
.dc-field { width: 100%; padding: 10px 12px; border: 1px solid var(--d-line); border-radius: 12px; background: #fff; color: var(--d-ink); font: inherit; font-size: 15px; line-height: 1.8; outline: none; resize: vertical; }
.dc-field:focus { border-color: #b9a6ff; box-shadow: 0 0 0 3px rgba(106, 56, 255, .12); }
.dc-field-error { margin: 6px 0 0; color: #b91c1c; font-size: 13px; }
.dc-hint { margin: 8px 0 0; color: var(--d-mute); font-size: 13px; line-height: 1.8; }
.dc-check { display: flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--d-text); font-size: 14px; cursor: pointer; }
.dc-check input { width: 18px; height: 18px; accent-color: var(--d-brand); }
.dc-modal__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.dc-btn--plain { background: #f1f1f5; color: var(--d-ink) !important; }
.dc-btn--danger { margin-inline-start: auto; background: #fef2f2; color: #b91c1c !important; }
.dc-fine { margin: 8px 0 0; color: var(--d-mute); font-size: 12.5px; text-align: center; }
.dc-fine a { color: var(--d-brand) !important; font-weight: 800; }

.dc-wall { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; padding: 16px 18px; border: 1px solid #e4dcff; border-radius: 20px; background: linear-gradient(135deg, #f6f2ff, #fff8e6); }
.dc-wall__icon { display: grid; flex-shrink: 0; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: #fff; color: var(--d-brand); font-size: 24px; }
.dc-wall > div { flex: 1; min-width: 0; }
.dc-wall h2 { margin: 0; color: var(--d-ink); font-size: 17px; font-weight: 900; }
.dc-wall p { margin: 4px 0 0; color: var(--d-text); font-size: 14px; line-height: 1.8; }
.dc-consent { margin-bottom: 10px; padding: 18px; border: 1px solid var(--d-line); border-radius: 20px; background: #fff; }
.dc-consent h2 { margin: 0 0 6px; color: var(--d-ink); font-size: 17px; font-weight: 900; }
.dc-consent p, .dc-consent li { color: var(--d-text); font-size: 14px; line-height: 1.85; }
.dc-consent p { margin: 0 0 6px; }
.dc-consent ul { margin: 0 0 6px; padding-inline-start: 20px; }
.dc-consent .dc-btn { margin-top: 6px; }

@media (max-width: 900px) {
  .dc-side { position: fixed; inset-block: 0; inset-inline-start: 0; z-index: 30; width: min(300px, 86vw); transform: translateX(100%); transition: transform .22s ease; }
  .dc-side.is-open { transform: none; box-shadow: 0 0 60px rgba(13, 27, 82, .25); }
  .dc-scrim { position: fixed; inset: 0; z-index: 20; display: block; background: rgba(13, 18, 34, .35); }
  .dc-only-sm { display: grid; }
  .dc-top { padding-inline: 8px; border-bottom: 1px solid var(--d-line); }
  .dc-top__title { margin-inline: auto; }
  .dc-pill { margin-inline-start: 0; }
}
@media (max-width: 560px) {
  .dc-col { padding-inline: 14px; }
  .dc-hello { padding-top: 5vh; }
  .dc-starters { grid-template-columns: minmax(0, 1fr); }
  .dc-starters button:nth-child(n+3) { display: none; }
  .dc-tool__label { display: none; }
  .dc-msg--me p { max-width: 88%; }
  .dc-wall { flex-wrap: wrap; }
  .dc-wall .dc-btn { width: 100%; }
}

/* ---------- Profile, packages and paying (.dp-*) ---------- */
.dl-me { display: inline-flex; border-radius: 50%; }
.dl-me:focus-visible { outline: 2px solid var(--d-brand); outline-offset: 2px; }
.dc-me__link { display: flex; flex: 1; align-items: center; gap: 10px; min-width: 0; color: inherit !important; text-decoration: none; }
.dc-me__name small { color: var(--d-mute) !important; font-weight: 600 !important; }

.dp-wrap { max-width: 980px; padding-block: 28px 64px; }
.dp-hero { display: grid; grid-template-columns: auto 1fr; gap: 16px 18px; align-items: center; padding: 24px; border: 1px solid var(--d-line); border-radius: 24px; background: radial-gradient(120% 140% at 100% 0%, #f4f0ff, #fff 60%); }
.dp-hero__who h1 { margin: 0; color: var(--d-ink); font-size: 24px; font-weight: 900; }
.dp-hero__who p { margin: 4px 0 0; color: var(--d-mute); text-align: end; direction: ltr; unicode-bidi: plaintext; text-align: start; }
.dp-stats { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.dp-stat { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px var(--d-line); }
.dp-stat > i { display: grid; place-items: center; width: 26px; height: 26px; color: var(--d-mute); font-size: 22px; }
.dp-stat.is-premium > i { color: #b7791f; }
.dp-stat span { display: flex; flex-direction: column; }
.dp-stat b { color: var(--d-ink); font-size: 20px; font-weight: 900; }
.dp-stat small { color: var(--d-mute); font-size: 13px; }
.dp-gift { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; margin: 0; color: var(--d-text); font-size: 14px; }
.dp-gift i { color: var(--d-brand); }

.dp-sec { margin-top: 36px; }
.dp-sec > h2, .dp-sec > h1 { margin: 0 0 14px; color: var(--d-ink); font-size: 22px; font-weight: 900; }
.dp-sub { margin: 18px 0 10px; color: var(--d-ink); font-size: 16px; font-weight: 800; }
.dp-sub small { margin-inline-start: 6px; color: var(--d-mute); font-size: 13px; font-weight: 600; }
.dp-empty { margin: 0; padding: 18px; border-radius: 16px; background: var(--d-side); color: var(--d-mute); }
.dp-empty a { color: var(--d-brand) !important; font-weight: 800; }

.dp-plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; text-align: start; }
.dl-sec .dp-plans { margin-top: 30px; }
.dp-plan { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 22px 20px 20px; border: 1px solid var(--d-line); border-radius: 22px; background: #fff; }
.dp-plan.is-featured { border-color: #c9b8ff; box-shadow: 0 18px 44px -24px rgba(106, 56, 255, .55); }
.dp-plan__tag { position: absolute; top: -11px; inset-inline-start: 18px; padding: 3px 10px; border-radius: 99px; background: var(--d-brand); color: #fff; font-size: 12px; font-weight: 800; }
.dp-plan__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: #fff8e6; color: #b7791f; font-size: 24px; }
.dp-plan h3 { margin: 8px 0 0; color: var(--d-ink); font-size: 18px; font-weight: 900; }
.dp-plan__gives { margin: 0; color: var(--d-brand); font-size: 14px; font-weight: 800; }
.dp-plan__text { margin: 0; color: var(--d-mute); font-size: 14px; line-height: 1.8; }
.dp-plan__price { margin-top: auto; padding-top: 10px; color: var(--d-ink); font-size: 20px; font-weight: 900; }
.dp-plan__buy { justify-content: center; margin-top: 8px; border: 0; cursor: pointer; }

.dp-buys { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.dp-buys li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 16px; border: 1px solid var(--d-line); border-radius: 18px; background: #fff; }
.dp-buys__what { display: flex; flex: 1; flex-direction: column; min-width: 200px; }
.dp-buys__what b { color: var(--d-ink); font-weight: 800; }
.dp-buys__what small { color: var(--d-mute); font-size: 13px; }
.dp-buys__why { color: #b91c1c !important; }
.dp-status { padding: 4px 12px; border-radius: 99px; font-size: 13px; font-weight: 800; white-space: nowrap; }
.dp-status--ok { background: #e8f7ee; color: #15803d; }
.dp-status--bad { background: #fef2f2; color: #b91c1c; }
.dp-status--wait { background: #fff6dc; color: #92400e; }

.dp-form { max-width: 560px; }
.dp-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.dp-saved { display: inline-flex; align-items: center; gap: 6px; color: #15803d; font-weight: 700; }
.dp-out { margin-top: 18px; }
.dp-out .dc-btn { gap: 6px; }

.dp-pay { max-width: 680px; }
.dp-back { display: inline-flex; align-items: center; gap: 6px; color: var(--d-mute) !important; font-size: 14px; font-weight: 700; text-decoration: none; }
.dp-pay .dp-sec:first-of-type { margin-top: 14px; }
.dp-pay__gives { margin: 0; color: var(--d-brand); font-weight: 800; }
.dp-pay__amount { display: block; margin: 10px 0 8px; color: var(--d-ink); font-size: 28px; font-weight: 900; }
.dp-steps { display: grid; gap: 18px; margin: 24px 0 0; padding: 0; list-style: none; counter-reset: step; }
.dp-steps > li { position: relative; padding: 20px 20px 20px 20px; padding-inline-start: 62px; border: 1px solid var(--d-line); border-radius: 22px; background: #fff; counter-increment: step; }
.dp-steps > li::before { content: counter(step, persian); position: absolute; top: 18px; inset-inline-start: 18px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--d-ink); color: #fff; font-weight: 900; }
.dp-steps h2 { margin: 2px 0 14px; color: var(--d-ink); font-size: 17px; font-weight: 900; }
.dp-card { display: grid; gap: 8px; padding: 18px; border-radius: 18px; background: linear-gradient(135deg, #2b1a7a, var(--d-brand-2)); color: #fff; }
.dp-card__number { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 22px; letter-spacing: .06em; text-align: left; }
.dp-card__holder { color: rgba(255, 255, 255, .75); font-size: 14px; }
.dp-card .dc-btn { justify-self: start; gap: 6px; }
.dp-last4 { max-width: 140px; letter-spacing: .3em; text-align: left; }
.dp-receipt { display: block; max-width: 220px; max-height: 260px; margin-top: 10px; border-radius: 12px; object-fit: contain; box-shadow: inset 0 0 0 1px var(--d-line); }
.dp-done { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 24px; padding: 20px; border-radius: 22px; background: #ecfdf3; }
.dp-done > i { color: #15803d; font-size: 34px; }
.dp-done > div { flex: 1; min-width: 200px; }
.dp-done h2 { margin: 0; color: var(--d-ink); font-size: 18px; font-weight: 900; }
.dp-done p { margin: 4px 0 0; color: var(--d-text); line-height: 1.8; }
.dp-done--wait { background: #fff8e6; }
.dp-done--wait > i { color: #b7791f; }
.dp .dc-error { margin-top: 18px; }

@media (max-width: 560px) {
  .dp-hero { padding: 18px; }
  .dp-stats, .dp-form__row { grid-template-columns: minmax(0, 1fr); }
  .dp-card__number { font-size: 18px; }
  .dp-steps > li { padding-inline-start: 20px; padding-top: 58px; }
}
