/* YansDataHub — Document Services pages (uses theme.css tokens) */
body.ds-page { font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: var(--mesh), var(--base);
    background-attachment: fixed; color: var(--text); min-height: 100vh; display: flex; flex-direction: column; }
.ds-page a { color: var(--link); }
.ds-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 10px 16px; margin: 10px auto 0; width: calc(100% - 20px); max-width: 1120px; border-radius: 16px;
    background: var(--glass); border: 1px solid var(--edge); box-shadow: var(--shadow);
    -webkit-backdrop-filter: blur(20px) saturate(150%); backdrop-filter: blur(20px) saturate(150%); }
.ds-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text) !important; }
.ds-brand .y-brand-mark { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--grad); color: #fff; }
.ds-brand b { display: block; font-family: 'Outfit', sans-serif; font-size: 16px; line-height: 1.1; }
.ds-brand b em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ds-brand small { display: block; font-size: 11px; color: var(--muted); }
.ds-nav { display: flex; align-items: center; gap: 4px; }
.ds-nav a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 11px; border-radius: 10px; color: var(--text) !important;
    text-decoration: none; font-size: 13px; font-weight: 600; }
.ds-nav a:hover { background: var(--field); }
.ds-theme { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--edge); background: var(--field); color: var(--text); }
@media (max-width: 640px) { .ds-nav a span { display: none; } .ds-nav a { padding: 8px; font-size: 16px; } }

.ds-main { width: 100%; max-width: 1120px; margin: 0 auto; padding: 22px 16px 40px; flex: 1; }
.ds-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; max-width: 1120px; width: 100%;
    margin: 0 auto; padding: 16px; font-size: 12.5px; color: var(--muted); }

.ds-hero { text-align: center; padding: 18px 0 26px; }
.ds-hero h1 { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: clamp(26px, 5vw, 40px); letter-spacing: -.5px; margin-bottom: 8px; }
.ds-hero h1 span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ds-hero p { color: var(--muted); max-width: 560px; margin: 0 auto; }

.ds-card { background: var(--glass); border: 1px solid var(--edge); border-radius: 18px; box-shadow: var(--shadow);
    -webkit-backdrop-filter: blur(20px) saturate(150%); backdrop-filter: blur(20px) saturate(150%); padding: 18px; }
.ds-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.ds-svc { display: flex; flex-direction: column; gap: 10px; }
.ds-svc-ico { width: 48px; height: 48px; border-radius: 14px; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 22px; }
.ds-svc h3 { font-size: 16px; font-weight: 700; margin: 0; }
.ds-svc p { color: var(--muted); font-size: 13px; margin: 0; flex: 1; }
.ds-price { font-family: 'Outfit', sans-serif; font-size: 22px; font-weight: 800; }
.ds-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ds-chip { font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 50px; background: var(--field); border: 1px solid var(--edge); color: var(--muted); }

.ds-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 44px; padding: 0 18px; border-radius: 12px;
    border: 0; background: var(--grad); color: #fff !important; font-weight: 700; font-size: 14px; text-decoration: none; cursor: pointer;
    box-shadow: 0 6px 18px rgba(255, 79, 154, .28); }
.ds-btn:hover { filter: brightness(1.06); }
.ds-btn:disabled { opacity: .6; cursor: wait; }
.ds-btn.ghost { background: var(--field); color: var(--text) !important; border: 1px solid var(--edge); box-shadow: none; }
.ds-btn.sm { height: 34px; padding: 0 12px; font-size: 12.5px; border-radius: 10px; }
.ds-btn.block { width: 100%; }
.ds-btn.ok { background: linear-gradient(118deg, #10b981, #059669); box-shadow: 0 6px 18px rgba(16, 185, 129, .3); }

/* Form */
.ds-layout { display: grid; grid-template-columns: 260px 1fr; gap: 16px; align-items: start; }
@media (max-width: 900px) { .ds-layout { grid-template-columns: 1fr; } .ds-steps { display: none; } }
.ds-steps { position: sticky; top: 90px; }
.ds-steps a { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 10px; color: var(--muted) !important;
    text-decoration: none; font-size: 13px; font-weight: 600; }
.ds-steps a:hover { background: var(--field); color: var(--text) !important; }
.ds-steps a .n { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-size: 11px; background: var(--field); border: 1px solid var(--edge); }
.ds-steps a.done .n { background: var(--ok); color: #fff; border-color: transparent; }
.ds-sec { margin-bottom: 14px; scroll-margin-top: 90px; }
.ds-sec h2 { font-size: 15px; font-weight: 700; margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }
.ds-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
@media (max-width: 640px) { .ds-fields { grid-template-columns: 1fr; } }
.ds-f { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.ds-f.wide { grid-column: 1 / -1; }
.ds-f label { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.ds-f label .req { color: var(--accent); }
.ds-f input, .ds-f select, .ds-f textarea { width: 100%; min-height: 44px; border-radius: 11px; border: 1px solid var(--edge); background: var(--field);
    color: var(--text); font: inherit; font-size: 14px; padding: 9px 12px; outline: none; }
.ds-f select option { color: #111; }
.ds-f textarea { min-height: 88px; resize: vertical; }
.ds-f input:focus, .ds-f select:focus, .ds-f textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 79, 154, .16); }
.ds-f .hint { font-size: 11.5px; color: var(--faint); }
.ds-f .err { font-size: 11.5px; color: var(--bad); display: none; }
.ds-f.bad input, .ds-f.bad select, .ds-f.bad textarea, .ds-f.bad .ds-drop { border-color: var(--bad); }
.ds-f.bad .err { display: block; }
.ds-yn { display: flex; gap: 8px; }
.ds-yn label { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; border-radius: 11px;
    border: 1px solid var(--edge); background: var(--field); cursor: pointer; color: var(--text); font-size: 14px; }
.ds-yn input { display: none; }
.ds-yn input:checked + span { color: var(--accent); font-weight: 700; }
.ds-yn label:has(input:checked) { border-color: var(--accent); background: rgba(255, 79, 154, .1); }
.ds-drop { display: flex; align-items: center; gap: 10px; padding: 10px 12px; min-height: 56px; border-radius: 12px; border: 1px dashed var(--edge);
    background: var(--field); cursor: pointer; }
.ds-drop i { font-size: 22px; color: var(--accent); }
.ds-drop .t { font-size: 13px; }
.ds-drop .t small { display: block; color: var(--faint); font-size: 11px; }
.ds-drop.has { border-style: solid; border-color: rgba(16, 185, 129, .5); }
.ds-drop.has i { color: var(--ok); }
.ds-drop input { display: none; }

.ds-bar { position: sticky; bottom: 10px; z-index: 20; display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap;
    margin-top: 14px; padding: 12px 14px; }
.ds-bar .saved { font-size: 12px; color: var(--muted); }

/* Status & payment */
.ds-tone { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 50px; font-size: 12px; font-weight: 700; }
.ds-tone.ok   { background: rgba(16, 185, 129, .15); color: #10b981; }
.ds-tone.warn { background: rgba(245, 158, 11, .15); color: #f59e0b; }
.ds-tone.bad  { background: rgba(239, 68, 68, .15); color: #f87171; }
.ds-tone.info { background: rgba(34, 184, 240, .15); color: #22b8f0; }
.ds-pay { max-width: 520px; margin: 0 auto; text-align: center; }
.ds-pay .amt { font-family: 'Outfit', sans-serif; font-size: 40px; font-weight: 800; margin: 6px 0 2px; }
.ds-pay .opts { display: grid; gap: 10px; margin-top: 16px; }
.ds-note { border-radius: 12px; padding: 11px 13px; font-size: 13px; text-align: left; }
.ds-note.warn { background: rgba(245, 158, 11, .12); border: 1px solid rgba(245, 158, 11, .3); }
.ds-note.info { background: rgba(34, 184, 240, .1); border: 1px solid rgba(34, 184, 240, .28); }
.ds-note.ok   { background: rgba(16, 185, 129, .1); border: 1px solid rgba(16, 185, 129, .3); }
.ds-note.bad  { background: rgba(239, 68, 68, .1); border: 1px solid rgba(239, 68, 68, .3); }

.ds-apps { display: grid; gap: 12px; }
.ds-app { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; }
@media (max-width: 640px) { .ds-app { grid-template-columns: auto 1fr; } .ds-app .act { grid-column: 1 / -1; } }
.ds-app h4 { font-size: 15px; margin: 0 0 3px; font-weight: 700; }
.ds-app .meta { font-size: 12px; color: var(--muted); }
.ds-app .act { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.ds-timeline { list-style: none; margin: 10px 0 0; padding: 0 0 0 14px; border-left: 2px solid var(--edge); }
.ds-timeline li { position: relative; padding: 0 0 10px 10px; font-size: 12.5px; }
.ds-timeline li::before { content: ""; position: absolute; left: -20px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--grad); }
.ds-timeline small { color: var(--faint); display: block; }

.ds-summary dl { display: grid; grid-template-columns: minmax(140px, 40%) 1fr; gap: 6px 12px; margin: 0; font-size: 13px; }
.ds-summary dt { color: var(--muted); font-weight: 500; }
.ds-summary dd { margin: 0; word-break: break-word; }

/* Modal */
.ds-modal { position: fixed; inset: 0; z-index: 100; background: rgba(6, 2, 20, .6); display: none; align-items: center; justify-content: center; padding: 14px; }
.ds-modal.show { display: flex; }
.ds-modal .ds-card { width: 100%; max-width: 420px; background: var(--sheet); }
.ds-modal h3 { font-size: 18px; font-weight: 700; margin: 0; }
.ds-modal .x { border: 0; background: transparent; color: var(--text); font-size: 20px; opacity: .6; }
.ds-otp { letter-spacing: 12px; text-align: center; font-size: 24px !important; font-weight: 700; }

.ds-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(30px); opacity: 0; pointer-events: none; z-index: 200;
    background: #10b981; color: #fff; padding: 11px 20px; border-radius: 50px; font-weight: 600; font-size: 13.5px; transition: .25s; max-width: 92vw; text-align: center; }
.ds-toast.show { opacity: 1; transform: translateX(-50%); }
.ds-toast.bad { background: #ef4444; }
.ds-empty { text-align: center; padding: 40px 10px; color: var(--muted); }
.ds-empty i { font-size: 40px; display: block; margin-bottom: 8px; opacity: .6; }

/* Normal / Express choice */
.ds-speed { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ds-speed label { cursor: pointer; margin: 0; }
.ds-speed input { display: none; }
.ds-speed span { display: block; height: 100%; padding: 9px 10px; border-radius: 12px; border: 1px solid var(--edge); background: var(--field); font-size: 12.5px; line-height: 1.35; }
.ds-speed span small { display: block; color: var(--faint); font-size: 11px; margin-top: 2px; }
.ds-speed input:checked + span { border-color: var(--accent); background: rgba(255, 79, 154, .1); box-shadow: 0 0 0 2px rgba(255, 79, 154, .15); }
