/* Order pages: /services/digital/{type} and /services/smm. Tokens match services.css and buy-number.css. */
.od {
    --od-accent: #2563eb;
    --od-accent-hover: #1d4ed8;
    --od-accent-soft: #eff4ff;
    --od-accent-line: #bfd3fb;
    --od-ink: #0f172a;
    --od-text: #334155;
    --od-muted: #64748b;
    --od-faint: #94a3b8;
    --od-line: #e5e9f0;
    --od-line-soft: #eef1f5;
    --od-surface: #fff;
    --od-subtle: #f6f8fb;
    --od-green: #15803d;
    --od-green-soft: #f0fdf4;
    --od-red: #b91c1c;
    --od-red-soft: #fef2f2;
    max-width: 1080px;
    margin: 0 auto;
    padding-bottom: 32px;
    color: var(--od-ink);
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
}
.od *, .od *::before, .od *::after { box-sizing: border-box; }
:where(.od) button { font: inherit; }
.od [wire\:loading], .od [wire\:loading\.grid], .od [wire\:loading\.inline-flex] { display: none; }
.od .od-num { font-variant-numeric: tabular-nums; }

/* Breadcrumb + header */
.od-crumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--od-faint); margin-bottom: 18px; }
.od-crumb a { color: var(--od-muted); text-decoration: none; }
.od-crumb a:hover { color: var(--od-accent); }
.od-crumb b { color: var(--od-ink); font-weight: 500; }

.od-head { margin-bottom: 20px; }
.od-head h1 { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -.025em; line-height: 1.2; }
.od-head p { margin: 6px 0 0; max-width: 600px; font-size: 15px; line-height: 1.55; color: var(--od-muted); }
.od-head.has-art { display: flex; align-items: center; gap: 16px; }
.od-head-art { width: 64px; height: 64px; flex-shrink: 0; object-fit: contain; }

/* Category tabs (digital types) */
.od-tabs {
    display: flex; gap: 6px; margin: 0 0 20px; padding: 4px; overflow-x: auto; scrollbar-width: none;
    background: var(--od-surface); border: 1px solid var(--od-line); border-radius: 14px;
}
.od-tabs::-webkit-scrollbar { display: none; }
.od-tab {
    display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; height: 38px; padding: 0 14px;
    border-radius: 10px; font-size: 13.5px; font-weight: 500; color: var(--od-muted); text-decoration: none; white-space: nowrap;
    transition: background .15s, color .15s;
}
.od-tab:hover { color: var(--od-ink); background: var(--od-subtle); }
.od-tab.is-on { background: var(--od-accent-soft); color: var(--od-accent); font-weight: 600; }
.od-tab img { width: 22px; height: 22px; flex-shrink: 0; object-fit: contain; }

/* Layout */
.od-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.od-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.od-side { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 16px; }

.od-card { background: var(--od-surface); border: 1px solid var(--od-line); border-radius: 18px; padding: 20px; }
.od-step { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.od-step-n {
    width: 24px; height: 24px; border-radius: 999px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
    background: var(--od-ink); color: #fff; font-size: 12px; font-weight: 600;
}
.od-step-n.is-off { background: var(--od-subtle); color: var(--od-faint); border: 1px solid var(--od-line); }
.od-step h2 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.od-step small { margin-left: auto; font-size: 12.5px; color: var(--od-faint); white-space: nowrap; }

/* Fields */
.od-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.od-fields.is-one { grid-template-columns: minmax(0, 1fr); }
.od-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.od-field > span { font-size: 13px; font-weight: 500; color: var(--od-text); }
.od-field > span em { font-style: normal; font-weight: 400; color: var(--od-faint); }
.od-input {
    width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--od-line); border-radius: 12px;
    background: var(--od-surface); font: inherit; font-size: 15px; color: var(--od-ink); outline: none; box-shadow: none;
    transition: border-color .15s, box-shadow .15s;
}
.od-input::placeholder { color: var(--od-faint); }
.od-input:focus { border-color: #93b4f5; box-shadow: 0 0 0 4px rgba(37, 99, 235, .1); }
.od-input.is-bad { border-color: #fca5a5; }
.od-err { font-size: 12.5px; color: var(--od-red); }
.od-hint { font-size: 12.5px; color: var(--od-faint); }

.od-search { position: relative; display: block; }
.od-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--od-faint); pointer-events: none; }
.od-search .od-input { padding-left: 40px; }

/* Provider / operator chips */
.od-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.od-chip {
    display: flex; align-items: center; gap: 10px; min-width: 0; height: 54px; padding: 0 12px; text-align: left; cursor: pointer;
    border: 1px solid var(--od-line); border-radius: 12px; background: var(--od-surface); color: var(--od-ink);
    transition: border-color .15s, background .15s, box-shadow .15s;
}
.od-chip:hover { border-color: #c8d5ea; background: #fbfcfe; }
.od-chip.is-on { border-color: var(--od-accent); background: var(--od-accent-soft); box-shadow: 0 0 0 1px var(--od-accent) inset; }
.od-chip b { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.od-chip small { display: block; font-size: 11.5px; color: var(--od-faint); }
.od-chip > span:last-child { min-width: 0; display: flex; flex-direction: column; }

/* Brand logo (also for guests: user-panel.css loads for signed-in users only) */
.od .up-logo {
    position: relative; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
    border-radius: 9px; background: #fff; border: 1px solid var(--od-line); overflow: hidden;
}
.od .up-logo img { width: 66%; height: 66%; object-fit: contain; display: block; }
/* Shipped brand pictures fill the tile (square art, own background). */
.od .up-logo img[src*="/images/brands/"], .od .up-logo img[src*="/images/dash/"] { width: 100%; height: 100%; object-fit: cover; }
.od .up-logo img[src*="/images/brands/operators/"], .od .up-logo img[src*="/images/brands/ewallets/"], .od .up-logo img[src*="/images/dash/"] { width: 82%; height: 82%; object-fit: contain; }
.od .up-logo-fallback {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    background: var(--od-subtle); color: var(--od-muted); font-weight: 600; font-size: 13px;
}

/* Product (nominal) cards */
.od-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.od-product {
    position: relative; display: flex; flex-direction: column; gap: 4px; min-width: 0; min-height: 96px; padding: 14px; text-align: left; cursor: pointer;
    border: 1px solid var(--od-line); border-radius: 14px; background: var(--od-surface); color: var(--od-ink);
    transition: border-color .15s, background .15s, box-shadow .15s;
}
.od-product:hover { border-color: #c8d5ea; box-shadow: 0 4px 14px -8px rgba(15, 23, 42, .18); }
.od-product.is-on { border-color: var(--od-accent); background: var(--od-accent-soft); box-shadow: 0 0 0 1px var(--od-accent) inset; }
.od-product b { font-size: 14px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.od-product small { font-size: 12px; color: var(--od-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.od-product .od-price { margin-top: auto; padding-top: 6px; font-size: 15px; font-weight: 700; color: var(--od-accent); }
.od-product .od-tick {
    position: absolute; top: 10px; right: 10px; width: 18px; height: 18px; border-radius: 999px; display: none;
    align-items: center; justify-content: center; background: var(--od-accent); color: #fff;
}
.od-product.is-on .od-tick { display: inline-flex; }

/* SMM: category + service lists */
.od-pills { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.od-pill {
    display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; cursor: pointer;
    border: 1px solid var(--od-line); border-radius: 999px; background: var(--od-surface);
    font-size: 13px; font-weight: 500; color: var(--od-text); transition: border-color .15s, background .15s, color .15s;
}
.od-pill:hover { border-color: #c8d5ea; color: var(--od-ink); }
.od-pill.is-on { border-color: var(--od-ink); background: var(--od-ink); color: #fff; }

.od-list { margin-top: 12px; max-height: 340px; overflow-y: auto; border: 1px solid var(--od-line); border-radius: 14px; overscroll-behavior: contain; }
.od-row {
    display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 10px 14px; text-align: left; cursor: pointer;
    border: 0; border-bottom: 1px solid var(--od-line-soft); background: var(--od-surface); color: var(--od-ink); transition: background .12s;
}
.od-row:last-child { border-bottom: 0; }
.od-row:hover { background: var(--od-subtle); }
.od-row.is-on { background: var(--od-accent-soft); }
.od-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.od-row-main b { font-size: 13.5px; font-weight: 500; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.od-row.is-on .od-row-main b { font-weight: 600; }
.od-row-main small { font-size: 12px; color: var(--od-faint); }
.od-row-end { flex-shrink: 0; text-align: right; }
.od-row-end b { display: block; font-size: 13.5px; font-weight: 600; }
.od-row-end small { font-size: 11.5px; color: var(--od-faint); }
.od-radio { width: 18px; height: 18px; flex-shrink: 0; border-radius: 999px; border: 1.5px solid #cbd5e1; background: #fff; transition: border-color .15s; }
.od-row.is-on .od-radio { border: 5px solid var(--od-accent); }

.od-desc { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--od-subtle); font-size: 13px; line-height: 1.6; color: var(--od-text); white-space: pre-line; overflow-wrap: anywhere; max-height: 220px; overflow-y: auto; }
.od-desc b { display: block; margin-bottom: 2px; font-size: 12px; font-weight: 600; color: var(--od-muted); }

/* Empty + loading */
.od .is-busy { opacity: .55; transition: opacity .15s; }
.od-row .up-logo { color: var(--od-faint); }
.od-empty { padding: 26px 16px; text-align: center; border: 1px dashed var(--od-line); border-radius: 14px; font-size: 13.5px; color: var(--od-muted); }
.od-empty b { display: block; margin-bottom: 2px; color: var(--od-ink); font-weight: 600; }
.od-skel { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.od-skel span { height: 96px; border-radius: 14px; background: linear-gradient(90deg, #f1f4f8 0%, #f8fafc 50%, #f1f4f8 100%); background-size: 200% 100%; animation: od-shine 1.2s linear infinite; }
@keyframes od-shine { to { background-position: -200% 0; } }

/* Alerts */
.od-alert { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 14px; font-size: 14px; line-height: 1.5; border: 1px solid; }
.od-alert svg { flex-shrink: 0; margin-top: 1px; }
.od-alert.is-ok { background: var(--od-green-soft); border-color: #bbf7d0; color: var(--od-green); }
.od-alert.is-bad { background: var(--od-red-soft); border-color: #fecaca; color: var(--od-red); }

/* Summary */
.od-sum h3 { margin: 0 0 12px; font-size: 15px; font-weight: 600; }
.od-sum dl { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.od-sum dl > div { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.od-sum dt { color: var(--od-muted); flex-shrink: 0; }
.od-sum dd { margin: 0; text-align: right; font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
.od-sum dd.is-empty { color: var(--od-faint); font-weight: 400; }
.od-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--od-line-soft); }
.od-total span { font-size: 13.5px; color: var(--od-muted); }
.od-total b { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.od-balance { margin-top: 8px; font-size: 12.5px; color: var(--od-faint); display: flex; justify-content: space-between; gap: 8px; }
.od-balance.is-low { color: var(--od-red); }
.od-balance a { color: var(--od-accent); text-decoration: none; font-weight: 500; }

.od-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 48px; margin-top: 14px; padding: 0 18px;
    border: 0; border-radius: 12px; background: var(--od-accent); color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none;
    transition: background .15s, opacity .15s;
}
.od-btn:hover { background: var(--od-accent-hover); }
.od-btn[disabled] { opacity: .55; cursor: not-allowed; }
.od-spin { animation: od-spin .8s linear infinite; }
@keyframes od-spin { to { transform: rotate(360deg); } }

/* Notes */
.od-notes h3 { margin: 0 0 10px; font-size: 14px; font-weight: 600; }
.od-notes ul, .od-notes ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.od-notes li { display: flex; gap: 10px; font-size: 13px; line-height: 1.5; color: var(--od-text); }
.od-notes li svg { flex-shrink: 0; margin-top: 2px; color: var(--od-green); }
.od-notes ol { counter-reset: od; }
.od-notes ol li::before {
    counter-increment: od; content: counter(od); flex-shrink: 0; width: 20px; height: 20px; margin-top: 0; border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center; background: var(--od-subtle); border: 1px solid var(--od-line);
    font-size: 11px; font-weight: 600; color: var(--od-muted);
}

@media (max-width: 920px) {
    .od-grid { grid-template-columns: minmax(0, 1fr); }
    .od-side { position: static; }
}
@media (max-width: 640px) {
    .od-head h1 { font-size: 23px; }
    .od-head.has-art { align-items: flex-start; gap: 12px; }
    .od-head-art { width: 48px; height: 48px; }
    .od-head p { font-size: 14px; }
    .od-card { padding: 16px; border-radius: 16px; }
    .od-fields { grid-template-columns: minmax(0, 1fr); }
    .od-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .od-products, .od-skel { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .od-product { min-height: 90px; padding: 12px; }
    .od-product b { font-size: 13.5px; }
    .od-product .od-price { font-size: 14.5px; }
    .od-list { max-height: 300px; }
    .od-total b { font-size: 20px; }
}
