/* ==========================================================================
   Yonexis Design System — shared by Admin, Merchant and Checkout
   Tokens → base → layout shell → components → utilities → responsive
   ========================================================================== */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../lib/inter/inter-latin-wght-normal.woff2") format("woff2");
}

:root {
  /* Brand */
  --yx-navy: #0F172A;
  --yx-navy-800: #1E293B;
  --yx-navy-700: #334155;
  --yx-blue: #2563EB;
  --yx-blue-700: #1D4ED8;
  --yx-blue-50: #EFF6FF;
  --yx-blue-100: #DBEAFE;
  --yx-emerald: #10B981;
  --yx-emerald-700: #047857;
  --yx-emerald-50: #ECFDF5;
  --yx-white: #FFFFFF;
  --yx-bg: #F8FAFC;

  /* Neutrals (slate) */
  --yx-ink: #0F172A;
  --yx-ink-2: #334155;
  --yx-muted: #64748B;
  --yx-subtle: #94A3B8;
  --yx-border: #E2E8F0;
  --yx-border-strong: #CBD5E1;
  --yx-surface: #FFFFFF;
  --yx-surface-2: #F1F5F9;

  /* Status (reserved — always paired with icon + label) */
  --yx-success: #047857;  --yx-success-bg: #ECFDF5; --yx-success-bd: #A7F3D0;
  --yx-warning: #B45309;  --yx-warning-bg: #FFFBEB; --yx-warning-bd: #FDE68A;
  --yx-danger:  #B91C1C;  --yx-danger-bg:  #FEF2F2; --yx-danger-bd:  #FECACA;
  --yx-info:    #1D4ED8;  --yx-info-bg:    #EFF6FF; --yx-info-bd:    #BFDBFE;
  --yx-neutral: #475569;  --yx-neutral-bg: #F1F5F9; --yx-neutral-bd: #E2E8F0;
  --yx-purple:  #6D28D9;  --yx-purple-bg:  #F5F3FF; --yx-purple-bd:  #DDD6FE;

  /* Categorical chart slots (validated: dataviz validate_palette, light) */
  --yx-series-1: #2563EB;
  --yx-series-2: #EB6834;
  --yx-series-3: #10B981;
  --yx-series-4: #EDA100;
  --yx-series-5: #6250D6;

  /* Type scale */
  --yx-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --yx-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --yx-fs-xs: .75rem; --yx-fs-sm: .8125rem; --yx-fs-base: .875rem; --yx-fs-md: 1rem;
  --yx-fs-lg: 1.25rem; --yx-fs-xl: 1.5rem; --yx-fs-2xl: 1.875rem;

  /* Shape & depth */
  --yx-radius-sm: 6px; --yx-radius: 10px; --yx-radius-lg: 14px; --yx-radius-xl: 20px;
  --yx-shadow-xs: 0 1px 2px rgba(15, 23, 42, .05);
  --yx-shadow-sm: 0 1px 3px rgba(15, 23, 42, .08), 0 1px 2px rgba(15, 23, 42, .04);
  --yx-shadow-md: 0 8px 24px -6px rgba(15, 23, 42, .12), 0 2px 6px rgba(15, 23, 42, .05);
  --yx-shadow-lg: 0 24px 48px -12px rgba(15, 23, 42, .25);
  --yx-ring: 0 0 0 3px rgba(37, 99, 235, .25);

  --yx-sidebar-w: 264px;
  --yx-topbar-h: 64px;

  /* Bootstrap bridge */
  --bs-body-font-family: var(--yx-font);
  --bs-body-font-size: var(--yx-fs-base);
  --bs-body-color: var(--yx-ink-2);
  --bs-body-bg: var(--yx-bg);
  --bs-primary: var(--yx-blue);
  --bs-primary-rgb: 37, 99, 235;
  --bs-success: var(--yx-emerald);
  --bs-success-rgb: 16, 185, 129;
  --bs-border-color: var(--yx-border);
  --bs-border-radius: var(--yx-radius);
  --bs-link-color: var(--yx-blue);
  --bs-link-color-rgb: 37, 99, 235;
  --bs-link-hover-color: var(--yx-blue-700);
  --bs-emphasis-color: var(--yx-ink);
  --bs-secondary-color: var(--yx-muted);
}

/* ---------- Base ---------- */
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--yx-font); font-size: var(--yx-fs-base); color: var(--yx-ink-2); background: var(--yx-bg); -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01"; }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { color: var(--yx-ink); font-weight: 650; letter-spacing: -.01em; }
h1, .h1 { font-size: var(--yx-fs-xl); } h2, .h2 { font-size: var(--yx-fs-lg); } h3, .h3 { font-size: 1.0625rem; } h4, .h4 { font-size: var(--yx-fs-md); } h5, .h5 { font-size: var(--yx-fs-base); }
a { text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
.btn:hover, .nav-link:hover, .dropdown-item:hover, .yx-nav a:hover, .list-group-item:hover { text-decoration: none; }
code, .font-monospace, .yx-mono { font-family: var(--yx-mono); font-size: .8125em; }
code { color: var(--yx-ink-2); background: var(--yx-surface-2); padding: .1em .35em; border-radius: 4px; }
.text-muted, .text-secondary { color: var(--yx-muted) !important; }
.small, small { font-size: var(--yx-fs-sm); }
.fw-semibold { font-weight: 600 !important; }
.tabular { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--yx-blue); outline-offset: 2px; }
.visually-hidden-focusable:focus { position: fixed !important; top: .5rem; left: .5rem; z-index: 2000; background: #fff; padding: .5rem 1rem; border-radius: var(--yx-radius); box-shadow: var(--yx-shadow-md); }
::selection { background: var(--yx-blue-100); }

/* ---------- Buttons ---------- */
.btn { --bs-btn-font-weight: 550; --bs-btn-font-size: var(--yx-fs-base); --bs-btn-padding-y: .5rem; --bs-btn-padding-x: .95rem; --bs-btn-border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; white-space: nowrap; }
.btn-sm { --bs-btn-padding-y: .3rem; --bs-btn-padding-x: .65rem; --bs-btn-font-size: var(--yx-fs-sm); --bs-btn-border-radius: 7px; }
.btn-lg { --bs-btn-padding-y: .75rem; --bs-btn-padding-x: 1.25rem; --bs-btn-font-size: var(--yx-fs-md); --bs-btn-border-radius: 10px; }
.btn-primary { --bs-btn-bg: var(--yx-blue); --bs-btn-border-color: var(--yx-blue); --bs-btn-hover-bg: var(--yx-blue-700); --bs-btn-hover-border-color: var(--yx-blue-700); --bs-btn-active-bg: #1E40AF; --bs-btn-active-border-color: #1E40AF; --bs-btn-disabled-bg: #93B4F5; --bs-btn-disabled-border-color: #93B4F5; box-shadow: 0 1px 2px rgba(37, 99, 235, .3); }
.btn-success { --bs-btn-bg: var(--yx-emerald-700); --bs-btn-border-color: var(--yx-emerald-700); --bs-btn-hover-bg: #065F46; --bs-btn-hover-border-color: #065F46; }
.btn-dark { --bs-btn-bg: var(--yx-navy); --bs-btn-border-color: var(--yx-navy); --bs-btn-hover-bg: var(--yx-navy-800); }
.btn-outline-secondary, .btn-light { --bs-btn-color: var(--yx-ink-2); --bs-btn-bg: #fff; --bs-btn-border-color: var(--yx-border-strong); --bs-btn-hover-color: var(--yx-ink); --bs-btn-hover-bg: var(--yx-surface-2); --bs-btn-hover-border-color: var(--yx-border-strong); --bs-btn-active-bg: var(--yx-border); --bs-btn-active-color: var(--yx-ink); box-shadow: var(--yx-shadow-xs); }
.btn-outline-danger { --bs-btn-color: var(--yx-danger); --bs-btn-border-color: var(--yx-danger-bd); --bs-btn-hover-bg: var(--yx-danger); --bs-btn-hover-border-color: var(--yx-danger); }
.btn-ghost { --bs-btn-color: var(--yx-ink-2); --bs-btn-hover-bg: var(--yx-surface-2); --bs-btn-hover-color: var(--yx-ink); --bs-btn-border-color: transparent; }
.btn-icon { width: 36px; height: 36px; padding: 0; }
.btn-icon.btn-sm { width: 30px; height: 30px; }

/* ---------- Forms ---------- */
.form-label { font-weight: 550; color: var(--yx-ink); font-size: var(--yx-fs-sm); margin-bottom: .35rem; }
.form-text { color: var(--yx-muted); font-size: var(--yx-fs-xs); }
.form-control, .form-select { font-size: var(--yx-fs-base); border-color: var(--yx-border-strong); border-radius: 8px; padding: .55rem .8rem; color: var(--yx-ink); background-color: #fff; }
.form-control-sm, .form-select-sm { padding: .35rem .65rem; font-size: var(--yx-fs-sm); }
.form-control-lg { padding: .75rem 1rem; font-size: var(--yx-fs-md); border-radius: 10px; }
.form-control::placeholder { color: var(--yx-subtle); }
.form-control:focus, .form-select:focus, .form-check-input:focus { border-color: var(--yx-blue); box-shadow: var(--yx-ring); }
.form-control:disabled, .form-control[readonly] { background: var(--yx-surface-2); }
.form-check-input:checked { background-color: var(--yx-blue); border-color: var(--yx-blue); }
.form-switch .form-check-input { width: 2.25em; }
.input-group-text { background: var(--yx-surface-2); border-color: var(--yx-border-strong); color: var(--yx-muted); font-size: var(--yx-fs-base); }
.required::after { content: " *"; color: var(--yx-danger); }
.yx-otp { display: flex; gap: .5rem; justify-content: center; }
.yx-otp input { width: 48px; height: 56px; text-align: center; font-size: 1.375rem; font-weight: 600; border-radius: 10px; }
.yx-dropzone { border: 1.5px dashed var(--yx-border-strong); border-radius: var(--yx-radius); background: var(--yx-surface-2); padding: 1.25rem; text-align: center; color: var(--yx-muted); transition: border-color .15s, background .15s; cursor: pointer; }
.yx-dropzone:hover, .yx-dropzone.is-dragover { border-color: var(--yx-blue); background: var(--yx-blue-50); color: var(--yx-blue-700); }
.yx-dropzone i { font-size: 1.5rem; display: block; margin-bottom: .25rem; }
.yx-choice { display: block; border: 1px solid var(--yx-border-strong); border-radius: var(--yx-radius); padding: .9rem 1rem; cursor: pointer; background: #fff; transition: border-color .15s, box-shadow .15s; height: 100%; }
.yx-choice:hover { border-color: var(--yx-blue); }
.yx-choice input { margin-right: .5rem; }
.yx-choice:has(input:checked) { border-color: var(--yx-blue); box-shadow: var(--yx-ring); background: var(--yx-blue-50); }
.yx-choice .yx-choice-title { font-weight: 600; color: var(--yx-ink); }
.yx-choice .yx-choice-desc { font-size: var(--yx-fs-xs); color: var(--yx-muted); margin-top: .15rem; }

/* ---------- App shell ---------- */
.yx-shell { display: flex; min-height: 100vh; }
.yx-sidebar { position: fixed; inset: 0 auto 0 0; width: var(--yx-sidebar-w); background: var(--yx-navy); color: #CBD5E1; display: flex; flex-direction: column; z-index: 1040; transition: transform .2s ease; }
.yx-sidebar::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 50% at 0% 0%, rgba(37, 99, 235, .22), transparent 60%), radial-gradient(90% 40% at 100% 100%, rgba(16, 185, 129, .12), transparent 60%); }
.yx-sidebar > * { position: relative; z-index: 1; }
.yx-brand { display: flex; align-items: center; gap: .7rem; padding: 1.1rem 1.25rem; height: var(--yx-topbar-h); border-bottom: 1px solid rgba(148, 163, 184, .12); color: #fff; }
.yx-brand:hover { color: #fff; }
.yx-brand-mark { width: 36px; height: 36px; border-radius: 9px; background: #fff; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); flex: none; }
.yx-brand-mark img { width: 28px; height: 28px; object-fit: contain; }
.yx-brand-text { line-height: 1.1; }
.yx-brand-name { font-weight: 800; letter-spacing: .08em; font-size: .95rem; }
.yx-brand-sub { font-size: .6875rem; color: #94A3B8; letter-spacing: .04em; text-transform: uppercase; font-weight: 600; }
.yx-org-switch { margin: .9rem 1rem .25rem; padding: .6rem .75rem; border-radius: var(--yx-radius); background: rgba(148, 163, 184, .08); border: 1px solid rgba(148, 163, 184, .14); display: flex; align-items: center; gap: .6rem; color: #E2E8F0; }
.yx-org-avatar { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: linear-gradient(135deg, var(--yx-blue), var(--yx-emerald)); color: #fff; font-weight: 700; font-size: .75rem; flex: none; }
.yx-org-switch .small { color: #94A3B8; font-size: .6875rem; }
.yx-nav { flex: 1; overflow-y: auto; padding: .5rem .75rem 1rem; scrollbar-width: thin; scrollbar-color: rgba(148, 163, 184, .3) transparent; }
.yx-nav-section { font-size: .6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #64748B; padding: 1rem .75rem .4rem; }
.yx-nav a { display: flex; align-items: center; gap: .7rem; padding: .5rem .75rem; margin: 1px 0; border-radius: 8px; color: #CBD5E1; font-weight: 500; font-size: var(--yx-fs-base); transition: background .12s, color .12s; }
.yx-nav a i { font-size: 1.05rem; width: 1.25rem; text-align: center; color: #94A3B8; transition: color .12s; }
.yx-nav a:hover { background: rgba(148, 163, 184, .1); color: #fff; }
.yx-nav a:hover i { color: #fff; }
.yx-nav a.active { background: linear-gradient(90deg, rgba(37, 99, 235, .9), rgba(37, 99, 235, .65)); color: #fff; box-shadow: 0 4px 12px -2px rgba(37, 99, 235, .45); }
.yx-nav a.active i { color: #fff; }
.yx-nav .yx-nav-badge { margin-left: auto; font-size: .6875rem; font-weight: 700; padding: .1rem .45rem; border-radius: 999px; background: rgba(16, 185, 129, .18); color: #6EE7B7; }
.yx-nav .yx-nav-badge.is-warn { background: rgba(245, 158, 11, .18); color: #FCD34D; }
.yx-nav .yx-nav-sub { padding-left: 2.7rem; font-size: var(--yx-fs-sm); padding-top: .35rem; padding-bottom: .35rem; }
.yx-sidebar-foot { padding: .9rem 1.25rem; border-top: 1px solid rgba(148, 163, 184, .12); font-size: .6875rem; color: #64748B; }
.yx-sidebar-foot a { color: #94A3B8; }

.yx-main { flex: 1; min-width: 0; margin-left: var(--yx-sidebar-w); display: flex; flex-direction: column; }
.yx-topbar { position: sticky; top: 0; z-index: 1030; height: var(--yx-topbar-h); background: rgba(255, 255, 255, .88); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--yx-border); display: flex; align-items: center; gap: .75rem; padding: 0 1.5rem; }
.yx-search { position: relative; flex: 1; max-width: 460px; }
.yx-search i { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); color: var(--yx-subtle); }
.yx-search input { padding-left: 2.2rem; background: var(--yx-surface-2); border-color: transparent; }
.yx-search input:focus { background: #fff; }
.yx-search kbd { position: absolute; right: .6rem; top: 50%; transform: translateY(-50%); font-size: .6875rem; background: #fff; color: var(--yx-muted); border: 1px solid var(--yx-border); box-shadow: none; padding: .1rem .35rem; }
.yx-topbar-actions { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.yx-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--yx-navy); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: .75rem; flex: none; }
.yx-avatar.sm { width: 28px; height: 28px; font-size: .6875rem; }
.yx-avatar.lg { width: 48px; height: 48px; font-size: 1rem; }
.yx-user-btn { display: flex; align-items: center; gap: .55rem; padding: .25rem .5rem .25rem .25rem; border-radius: 999px; border: 1px solid transparent; background: none; }
.yx-user-btn:hover { background: var(--yx-surface-2); }
.yx-user-meta { text-align: left; line-height: 1.15; }
.yx-user-meta .name { font-weight: 600; color: var(--yx-ink); font-size: var(--yx-fs-sm); }
.yx-user-meta .role { font-size: .6875rem; color: var(--yx-muted); }
.yx-notif-dot { position: absolute; top: 6px; right: 7px; width: 8px; height: 8px; border-radius: 50%; background: #EF4444; border: 2px solid #fff; }
.yx-env-toggle { display: inline-flex; background: var(--yx-surface-2); border-radius: 999px; padding: 3px; border: 1px solid var(--yx-border); }
.yx-env-toggle button { border: 0; background: transparent; font-size: var(--yx-fs-xs); font-weight: 650; padding: .3rem .75rem; border-radius: 999px; color: var(--yx-muted); }
.yx-env-toggle button.active[data-env="test"] { background: #FEF3C7; color: #92400E; box-shadow: var(--yx-shadow-xs); }
.yx-env-toggle button.active[data-env="live"] { background: #fff; color: var(--yx-emerald-700); box-shadow: var(--yx-shadow-xs); }
.yx-test-stripe { display: none; background: repeating-linear-gradient(-45deg, #FEF3C7, #FEF3C7 10px, #FDE68A 10px, #FDE68A 20px); color: #78350F; font-size: var(--yx-fs-xs); font-weight: 650; text-align: center; padding: .3rem; letter-spacing: .02em; }
body.yx-env-test .yx-test-stripe { display: block; }

.yx-prototype-bar { background: var(--yx-navy); color: #CBD5E1; font-size: var(--yx-fs-xs); padding: .4rem 1.5rem; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.yx-prototype-bar strong { color: #FCD34D; letter-spacing: .04em; }
.yx-content { padding: 1.5rem; flex: 1; width: 100%; max-width: 1600px; }
.yx-footer { padding: 1rem 1.5rem; font-size: var(--yx-fs-xs); color: var(--yx-subtle); border-top: 1px solid var(--yx-border); display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }
.yx-footer a { color: var(--yx-muted); }
.yx-backdrop { display: none; position: fixed; inset: 0; background: rgba(15, 23, 42, .5); z-index: 1035; }

/* ---------- Page header ---------- */
.yx-page-header { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.yx-page-header h1 { margin: 0; font-size: 1.5rem; }
.yx-page-header .yx-subtitle { color: var(--yx-muted); margin: .25rem 0 0; max-width: 70ch; }
.yx-page-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.breadcrumb { --bs-breadcrumb-divider-color: var(--yx-subtle); --bs-breadcrumb-item-active-color: var(--yx-muted); font-size: var(--yx-fs-xs); margin-bottom: .4rem; }
.breadcrumb a { color: var(--yx-muted); }

/* ---------- Cards ---------- */
.card { --bs-card-border-color: var(--yx-border); --bs-card-border-radius: var(--yx-radius-lg); --bs-card-inner-border-radius: calc(var(--yx-radius-lg) - 1px); --bs-card-cap-bg: transparent; --bs-card-spacer-y: 1.25rem; --bs-card-spacer-x: 1.25rem; box-shadow: var(--yx-shadow-sm); }
.card-header { padding-top: 1rem; padding-bottom: 1rem; display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.card-header h2, .card-header h3, .card-title { font-size: 1rem; margin: 0; font-weight: 650; color: var(--yx-ink); }
.card-header .card-sub { font-size: var(--yx-fs-xs); color: var(--yx-muted); margin: .15rem 0 0; font-weight: 400; }
.card-footer { background: var(--yx-bg); }
.card-flush .card-body { padding: 0; }

/* KPI tile */
.yx-kpi { padding: 1.1rem 1.25rem; height: 100%; display: flex; flex-direction: column; gap: .35rem; }
.yx-kpi-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.yx-kpi-label { font-size: var(--yx-fs-sm); color: var(--yx-muted); font-weight: 550; }
.yx-kpi-icon { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-size: 1rem; flex: none; }
.yx-kpi-value { font-size: 1.625rem; font-weight: 700; color: var(--yx-ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.yx-kpi-foot { font-size: var(--yx-fs-xs); color: var(--yx-muted); display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.yx-delta { display: inline-flex; align-items: center; gap: .15rem; font-weight: 650; padding: .05rem .4rem; border-radius: 999px; }
.yx-delta.up { color: var(--yx-success); background: var(--yx-success-bg); }
.yx-delta.down { color: var(--yx-danger); background: var(--yx-danger-bg); }
.yx-delta.flat { color: var(--yx-neutral); background: var(--yx-neutral-bg); }
.tone-blue { background: var(--yx-blue-50); color: var(--yx-blue); }
.tone-green { background: var(--yx-emerald-50); color: var(--yx-emerald-700); }
.tone-amber { background: var(--yx-warning-bg); color: var(--yx-warning); }
.tone-red { background: var(--yx-danger-bg); color: var(--yx-danger); }
.tone-navy { background: #E2E8F0; color: var(--yx-navy); }
.tone-purple { background: var(--yx-purple-bg); color: var(--yx-purple); }

/* Hero balance card */
.yx-hero-card { background: linear-gradient(135deg, var(--yx-navy) 0%, #172554 55%, #064E3B 130%); color: #E2E8F0; border: 0; position: relative; overflow: hidden; }
.yx-hero-card::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(37, 99, 235, .45), transparent 70%); }
.yx-hero-card .yx-kpi-label { color: #94A3B8; }
.yx-hero-card .yx-kpi-value { color: #fff; font-size: 2rem; }
.yx-hero-card .yx-provider { color: #fff; }

/* ---------- Status badges ---------- */
.yx-badge { display: inline-flex; align-items: center; gap: .35rem; font-size: var(--yx-fs-xs); font-weight: 600; padding: .2rem .55rem; border-radius: 999px; border: 1px solid; white-space: nowrap; line-height: 1.35; }
.yx-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.yx-badge.no-dot::before { display: none; }
.yx-badge.success { color: var(--yx-success); background: var(--yx-success-bg); border-color: var(--yx-success-bd); }
.yx-badge.warning { color: var(--yx-warning); background: var(--yx-warning-bg); border-color: var(--yx-warning-bd); }
.yx-badge.danger { color: var(--yx-danger); background: var(--yx-danger-bg); border-color: var(--yx-danger-bd); }
.yx-badge.info { color: var(--yx-info); background: var(--yx-info-bg); border-color: var(--yx-info-bd); }
.yx-badge.neutral { color: var(--yx-neutral); background: var(--yx-neutral-bg); border-color: var(--yx-neutral-bd); }
.yx-badge.purple { color: var(--yx-purple); background: var(--yx-purple-bg); border-color: var(--yx-purple-bd); }
.yx-badge.pulse::before { animation: yx-pulse 1.6s ease-in-out infinite; }
@keyframes yx-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.yx-tag { display: inline-flex; align-items: center; gap: .3rem; font-size: var(--yx-fs-xs); font-weight: 550; padding: .15rem .5rem; border-radius: 6px; background: var(--yx-surface-2); color: var(--yx-ink-2); border: 1px solid var(--yx-border); }
.yx-env-pill { font-size: .625rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .15rem .45rem; border-radius: 4px; }
.yx-env-pill.live { background: var(--yx-emerald-50); color: var(--yx-emerald-700); border: 1px solid var(--yx-success-bd); }
.yx-env-pill.test { background: #FEF3C7; color: #92400E; border: 1px solid #FDE68A; }
.yx-provider { display: inline-flex; align-items: center; gap: .4rem; font-weight: 550; color: var(--yx-ink); }
.yx-provider-dot { width: 18px; height: 18px; border-radius: 5px; display: grid; place-items: center; color: #fff; font-size: .625rem; font-weight: 800; flex: none; }
.yx-method { display: inline-flex; align-items: center; gap: .4rem; }
.yx-method i { color: var(--yx-muted); }

/* ---------- Tables ---------- */
.yx-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.yx-table { width: 100%; margin: 0; border-collapse: separate; border-spacing: 0; font-size: var(--yx-fs-sm); }
.yx-table thead th { position: sticky; top: 0; background: var(--yx-bg); color: var(--yx-muted); font-weight: 600; font-size: .6875rem; text-transform: uppercase; letter-spacing: .05em; padding: .65rem 1rem; border-bottom: 1px solid var(--yx-border); white-space: nowrap; z-index: 1; }
.yx-table tbody td { padding: .75rem 1rem; border-bottom: 1px solid var(--yx-border); vertical-align: middle; color: var(--yx-ink-2); }
.yx-table tbody tr:last-child td { border-bottom: 0; }
.yx-table tbody tr { transition: background .1s; }
.yx-table tbody tr:hover { background: #F8FAFF; }
.yx-table tbody tr.is-clickable { cursor: pointer; }
.yx-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.yx-table .amount { font-weight: 600; color: var(--yx-ink); }
.yx-table .id { font-family: var(--yx-mono); font-size: .75rem; color: var(--yx-ink-2); }
.yx-table .cell-main { font-weight: 600; color: var(--yx-ink); }
.yx-table .cell-sub { font-size: var(--yx-fs-xs); color: var(--yx-muted); }
.yx-table tfoot td { padding: .75rem 1rem; font-weight: 650; color: var(--yx-ink); background: var(--yx-bg); border-top: 1px solid var(--yx-border); }
.yx-table tr.is-selected { background: var(--yx-blue-50); }
.yx-table tr.row-error td { background: var(--yx-danger-bg); }
.yx-table tr.row-warn td { background: var(--yx-warning-bg); }
.yx-table-toolbar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; padding: .85rem 1rem; border-bottom: 1px solid var(--yx-border); }
.yx-table-toolbar .form-control, .yx-table-toolbar .form-select { width: auto; min-width: 140px; }
.yx-table-toolbar .yx-search { max-width: 320px; flex: 1 1 220px; }
.yx-table-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding: .75rem 1rem; border-top: 1px solid var(--yx-border); font-size: var(--yx-fs-xs); color: var(--yx-muted); }
.pagination { --bs-pagination-font-size: var(--yx-fs-sm); --bs-pagination-color: var(--yx-ink-2); --bs-pagination-border-color: var(--yx-border); --bs-pagination-active-bg: var(--yx-blue); --bs-pagination-active-border-color: var(--yx-blue); margin: 0; }

/* Definition lists */
.yx-dl { display: grid; grid-template-columns: minmax(120px, 38%) 1fr; gap: .6rem 1rem; margin: 0; font-size: var(--yx-fs-sm); }
.yx-dl dt { color: var(--yx-muted); font-weight: 500; }
.yx-dl dd { margin: 0; color: var(--yx-ink); font-weight: 550; word-break: break-word; }
.yx-copy { border: 0; background: none; color: var(--yx-subtle); padding: 0 .25rem; }
.yx-copy:hover { color: var(--yx-blue); }

/* ---------- Tabs ---------- */
.yx-tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--yx-border); margin-bottom: 1.25rem; overflow-x: auto; scrollbar-width: none; }
.yx-tabs::-webkit-scrollbar { display: none; }
.yx-tabs a, .yx-tabs button { border: 0; background: none; padding: .65rem .9rem; color: var(--yx-muted); font-weight: 550; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; font-size: var(--yx-fs-base); display: inline-flex; align-items: center; gap: .4rem; }
.yx-tabs a:hover, .yx-tabs button:hover { color: var(--yx-ink); text-decoration: none; }
.yx-tabs .active { color: var(--yx-blue); border-bottom-color: var(--yx-blue); }
.yx-tabs .count { font-size: .6875rem; background: var(--yx-surface-2); color: var(--yx-muted); border-radius: 999px; padding: 0 .45rem; font-weight: 650; }
.yx-tabs .active .count { background: var(--yx-blue-50); color: var(--yx-blue); }
.yx-segmented { display: inline-flex; background: var(--yx-surface-2); border: 1px solid var(--yx-border); border-radius: 9px; padding: 3px; }
.yx-segmented button, .yx-segmented a { border: 0; background: none; padding: .3rem .7rem; border-radius: 7px; font-size: var(--yx-fs-xs); font-weight: 600; color: var(--yx-muted); }
.yx-segmented .active { background: #fff; color: var(--yx-ink); box-shadow: var(--yx-shadow-xs); }

/* ---------- Callouts ---------- */
.yx-callout { display: flex; gap: .85rem; padding: .9rem 1rem; border-radius: var(--yx-radius); border: 1px solid; font-size: var(--yx-fs-sm); }
.yx-callout > i { font-size: 1.15rem; line-height: 1.2; flex: none; }
.yx-callout .yx-callout-title { font-weight: 650; margin-bottom: .15rem; }
.yx-callout p:last-child { margin-bottom: 0; }
.yx-callout.info { background: var(--yx-info-bg); border-color: var(--yx-info-bd); color: #1E3A8A; }
.yx-callout.warning { background: var(--yx-warning-bg); border-color: var(--yx-warning-bd); color: #78350F; }
.yx-callout.danger { background: var(--yx-danger-bg); border-color: var(--yx-danger-bd); color: #7F1D1D; }
.yx-callout.success { background: var(--yx-success-bg); border-color: var(--yx-success-bd); color: #064E3B; }
.yx-callout.neutral { background: var(--yx-surface-2); border-color: var(--yx-border); color: var(--yx-ink-2); }
.yx-callout.regulatory { background: #fff; border-color: var(--yx-danger-bd); border-left: 4px solid var(--yx-danger); color: var(--yx-ink-2); }
.yx-callout.regulatory > i { color: var(--yx-danger); }

/* ---------- Empty / loading / error states ---------- */
.yx-empty { text-align: center; padding: 3rem 1.5rem; color: var(--yx-muted); }
.yx-empty-icon { width: 56px; height: 56px; border-radius: 16px; display: inline-grid; place-items: center; background: var(--yx-surface-2); color: var(--yx-subtle); font-size: 1.5rem; margin-bottom: .9rem; }
.yx-empty h3 { font-size: 1rem; margin-bottom: .3rem; }
.yx-empty p { max-width: 46ch; margin: 0 auto 1rem; }
.yx-skeleton { background: linear-gradient(90deg, #EEF2F7 25%, #F8FAFC 37%, #EEF2F7 63%); background-size: 400% 100%; animation: yx-shimmer 1.4s ease infinite; border-radius: 6px; min-height: 12px; }
@keyframes yx-shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.yx-spinner { width: 20px; height: 20px; border: 2.5px solid var(--yx-blue-100); border-top-color: var(--yx-blue); border-radius: 50%; animation: yx-spin .8s linear infinite; display: inline-block; }
@keyframes yx-spin { to { transform: rotate(360deg); } }
.yx-state-demo { border: 1px dashed var(--yx-border-strong); border-radius: var(--yx-radius); }

/* ---------- Timeline ---------- */
.yx-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.yx-timeline li { position: relative; padding: 0 0 1.15rem 2rem; }
.yx-timeline li::before { content: ""; position: absolute; left: 9px; top: 20px; bottom: -2px; width: 2px; background: var(--yx-border); }
.yx-timeline li:last-child::before { display: none; }
.yx-timeline .dot { position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: .625rem; background: var(--yx-neutral-bg); color: var(--yx-neutral); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--yx-border); }
.yx-timeline .dot.success { background: var(--yx-success-bg); color: var(--yx-success); box-shadow: 0 0 0 1px var(--yx-success-bd); }
.yx-timeline .dot.danger { background: var(--yx-danger-bg); color: var(--yx-danger); box-shadow: 0 0 0 1px var(--yx-danger-bd); }
.yx-timeline .dot.warning { background: var(--yx-warning-bg); color: var(--yx-warning); box-shadow: 0 0 0 1px var(--yx-warning-bd); }
.yx-timeline .dot.info { background: var(--yx-info-bg); color: var(--yx-info); box-shadow: 0 0 0 1px var(--yx-info-bd); }
.yx-timeline .t-title { font-weight: 600; color: var(--yx-ink); font-size: var(--yx-fs-sm); }
.yx-timeline .t-meta { font-size: var(--yx-fs-xs); color: var(--yx-muted); }
.yx-timeline .t-detail { font-size: var(--yx-fs-xs); color: var(--yx-ink-2); margin-top: .15rem; }

/* ---------- Stepper (onboarding) ---------- */
.yx-stepper { list-style: none; margin: 0; padding: 0; }
.yx-stepper li a { display: flex; gap: .75rem; align-items: flex-start; padding: .6rem .75rem; border-radius: 9px; color: var(--yx-ink-2); }
.yx-stepper li a:hover { background: var(--yx-surface-2); }
.yx-stepper li.active a { background: var(--yx-blue-50); }
.yx-stepper .step-num { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--yx-border-strong); display: grid; place-items: center; font-size: .75rem; font-weight: 700; color: var(--yx-muted); background: #fff; flex: none; }
.yx-stepper li.done .step-num { background: var(--yx-emerald-700); border-color: var(--yx-emerald-700); color: #fff; }
.yx-stepper li.active .step-num { border-color: var(--yx-blue); color: var(--yx-blue); box-shadow: var(--yx-ring); }
.yx-stepper li.attention .step-num { border-color: var(--yx-warning); color: var(--yx-warning); background: var(--yx-warning-bg); }
.yx-stepper .step-title { font-weight: 600; font-size: var(--yx-fs-sm); color: var(--yx-ink); }
.yx-stepper .step-desc { font-size: var(--yx-fs-xs); color: var(--yx-muted); }
.yx-progress { height: 6px; border-radius: 999px; background: var(--yx-surface-2); overflow: hidden; }
.yx-progress > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--yx-blue), var(--yx-emerald)); }
.yx-progress.is-warn > span { background: #F59E0B; }
.yx-progress.is-danger > span { background: #EF4444; }

/* ---------- Charts ---------- */
.yx-chart { position: relative; height: 280px; }
.yx-chart.sm { height: 180px; }
.yx-chart.lg { height: 340px; }
.yx-legend { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: var(--yx-fs-xs); color: var(--yx-ink-2); }
.yx-legend span { display: inline-flex; align-items: center; gap: .4rem; }
.yx-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.yx-bar-row { display: grid; grid-template-columns: 110px 1fr 70px; align-items: center; gap: .75rem; font-size: var(--yx-fs-sm); margin-bottom: .6rem; }
.yx-bar-track { height: 8px; background: var(--yx-surface-2); border-radius: 999px; overflow: hidden; }
.yx-bar-track > span { display: block; height: 100%; border-radius: 999px; }
.yx-health { display: inline-flex; gap: 2px; align-items: flex-end; height: 22px; }
.yx-health i { width: 5px; border-radius: 2px; background: var(--yx-emerald); display: block; }
.yx-health i.warn { background: #F59E0B; }
.yx-health i.bad { background: #EF4444; }

/* ---------- Code blocks ---------- */
.yx-code { background: var(--yx-navy); color: #E2E8F0; border-radius: var(--yx-radius); padding: 1rem 1.1rem; font-family: var(--yx-mono); font-size: .78rem; line-height: 1.6; overflow-x: auto; margin: 0; white-space: pre; }
.yx-code .k { color: #93C5FD; } .yx-code .s { color: #6EE7B7; } .yx-code .c { color: #64748B; } .yx-code .n { color: #FCD34D; }
.yx-code-tabs { display: flex; gap: .25rem; background: var(--yx-navy-800); padding: .35rem .5rem 0; border-radius: var(--yx-radius) var(--yx-radius) 0 0; }
.yx-code-tabs button { border: 0; background: none; color: #94A3B8; font-size: var(--yx-fs-xs); font-weight: 600; padding: .45rem .8rem; border-radius: 7px 7px 0 0; }
.yx-code-tabs button.active { background: var(--yx-navy); color: #fff; }
.yx-code-tabs + .yx-code { border-top-left-radius: 0; border-top-right-radius: 0; }
.yx-secret { display: flex; align-items: center; gap: .5rem; background: var(--yx-surface-2); border: 1px solid var(--yx-border); border-radius: 8px; padding: .45rem .7rem; font-family: var(--yx-mono); font-size: .78rem; color: var(--yx-ink); }
.yx-secret span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Misc components ---------- */
.yx-list { list-style: none; padding: 0; margin: 0; }
.yx-list > li { display: flex; align-items: center; gap: .85rem; padding: .8rem 1.25rem; border-bottom: 1px solid var(--yx-border); }
.yx-list > li:last-child { border-bottom: 0; }
.yx-list .meta { font-size: var(--yx-fs-xs); color: var(--yx-muted); }
.yx-icon-tile { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex: none; font-size: 1.05rem; }
.yx-divider { height: 1px; background: var(--yx-border); margin: 1.25rem 0; }
.yx-section-title { font-size: .6875rem; text-transform: uppercase; letter-spacing: .07em; color: var(--yx-muted); font-weight: 700; margin-bottom: .75rem; }
.yx-stat-inline { display: flex; flex-direction: column; }
.yx-stat-inline .label { font-size: var(--yx-fs-xs); color: var(--yx-muted); }
.yx-stat-inline .value { font-weight: 700; color: var(--yx-ink); font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.yx-matrix th, .yx-matrix td { text-align: center; }
.yx-matrix td:first-child, .yx-matrix th:first-child { text-align: left; }
.yx-check-yes { color: var(--yx-emerald-700); } .yx-check-no { color: var(--yx-border-strong); }
.dropdown-menu { --bs-dropdown-border-color: var(--yx-border); --bs-dropdown-border-radius: var(--yx-radius); --bs-dropdown-font-size: var(--yx-fs-sm); --bs-dropdown-link-active-bg: var(--yx-blue); box-shadow: var(--yx-shadow-md); padding: .35rem; }
.dropdown-item { border-radius: 6px; padding: .45rem .7rem; display: flex; align-items: center; gap: .5rem; }
.dropdown-header { font-size: .6875rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.modal-content { border: 0; border-radius: var(--yx-radius-lg); box-shadow: var(--yx-shadow-lg); }
.modal-header, .modal-footer { border-color: var(--yx-border); }
.modal-title { font-size: 1.05rem; font-weight: 650; }
.offcanvas { border-color: var(--yx-border) !important; }
.yx-toast-stack { position: fixed; bottom: 1.25rem; right: 1.25rem; z-index: 2000; display: flex; flex-direction: column; gap: .5rem; max-width: min(420px, calc(100vw - 2.5rem)); }
.yx-toast { background: var(--yx-navy); color: #E2E8F0; border-radius: var(--yx-radius); padding: .8rem 1rem; box-shadow: var(--yx-shadow-lg); display: flex; gap: .7rem; align-items: flex-start; font-size: var(--yx-fs-sm); animation: yx-toast-in .2s ease; }
.yx-toast i { font-size: 1.1rem; color: #FCD34D; }
.yx-toast strong { color: #fff; display: block; }
.yx-toast button { margin-left: auto; background: none; border: 0; color: #94A3B8; }
@keyframes yx-toast-in { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Auth layout ---------- */
.yx-auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); background: #fff; }
.yx-auth-panel { background: var(--yx-navy); color: #CBD5E1; padding: 3rem; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.yx-auth-panel::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 10% 10%, rgba(37, 99, 235, .45), transparent 70%), radial-gradient(50% 40% at 90% 90%, rgba(16, 185, 129, .3), transparent 70%); }
.yx-auth-panel::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(148, 163, 184, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 163, 184, .06) 1px, transparent 1px); background-size: 40px 40px; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }
.yx-auth-panel > * { position: relative; z-index: 1; }
.yx-auth-panel h2 { color: #fff; font-size: 2.1rem; line-height: 1.2; letter-spacing: -.02em; font-weight: 700; }
.yx-auth-panel .lead { color: #94A3B8; font-size: 1rem; }
.yx-auth-feature { display: flex; gap: .85rem; align-items: flex-start; margin-bottom: 1.1rem; }
.yx-auth-feature i { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(37, 99, 235, .2); color: #93C5FD; font-size: 1rem; flex: none; }
.yx-auth-feature strong { color: #F1F5F9; display: block; font-size: var(--yx-fs-sm); }
.yx-auth-feature span { font-size: var(--yx-fs-xs); }
.yx-auth-form { display: flex; flex-direction: column; justify-content: center; padding: 3rem clamp(1.5rem, 6vw, 6rem); }
.yx-auth-form .inner { width: 100%; max-width: 420px; margin: 0 auto; }
.yx-auth-logo { height: 76px; width: auto; margin-bottom: 1.75rem; }
.yx-auth-form h1 { font-size: 1.625rem; margin-bottom: .35rem; }
.yx-auth-badge-row { display: flex; gap: 1.25rem; flex-wrap: wrap; font-size: var(--yx-fs-xs); color: #94A3B8; }
.yx-auth-badge-row span { display: inline-flex; align-items: center; gap: .35rem; }
.yx-or { display: flex; align-items: center; gap: .75rem; color: var(--yx-subtle); font-size: var(--yx-fs-xs); margin: 1.25rem 0; }
.yx-or::before, .yx-or::after { content: ""; flex: 1; height: 1px; background: var(--yx-border); }
.yx-pw-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: .5rem; }
.yx-pw-meter span { height: 4px; border-radius: 4px; background: var(--yx-border); }
.yx-pw-meter span.on { background: var(--yx-emerald); }

/* ---------- Checkout ---------- */
.yx-checkout-body { background: radial-gradient(1200px 500px at 50% -10%, #DBEAFE, transparent 60%), var(--yx-bg); min-height: 100vh; }
.yx-checkout { max-width: 920px; margin: 0 auto; padding: 2rem 1rem 3rem; }
.yx-checkout-card { background: #fff; border-radius: var(--yx-radius-xl); box-shadow: var(--yx-shadow-lg); overflow: hidden; display: grid; grid-template-columns: 320px 1fr; min-height: 560px; }
.yx-checkout-summary { background: var(--yx-navy); color: #CBD5E1; padding: 1.75rem; display: flex; flex-direction: column; gap: 1.25rem; position: relative; overflow: hidden; }
.yx-checkout-summary::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 40% at 0% 0%, rgba(37, 99, 235, .45), transparent 70%), radial-gradient(60% 30% at 100% 100%, rgba(16, 185, 129, .3), transparent 70%); }
.yx-checkout-summary > * { position: relative; }
.yx-merchant-logo { width: 52px; height: 52px; border-radius: 14px; background: #fff; display: grid; place-items: center; color: var(--yx-emerald-700); font-weight: 800; font-size: 1.1rem; }
.yx-checkout-amount { font-size: 2.25rem; font-weight: 750; color: #fff; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.yx-checkout-summary .yx-dl dt { color: #94A3B8; }
.yx-checkout-summary .yx-dl dd { color: #F1F5F9; }
.yx-checkout-main { padding: 1.75rem; display: flex; flex-direction: column; }
.yx-method-list { display: flex; flex-direction: column; gap: .5rem; }
.yx-method-option { display: flex; align-items: center; gap: .85rem; padding: .85rem 1rem; border: 1px solid var(--yx-border); border-radius: 12px; background: #fff; text-align: left; width: 100%; transition: border-color .15s, box-shadow .15s; color: var(--yx-ink-2); }
.yx-method-option:hover { border-color: var(--yx-blue); }
.yx-method-option.active { border-color: var(--yx-blue); box-shadow: var(--yx-ring); }
.yx-method-option .yx-icon-tile { background: var(--yx-surface-2); color: var(--yx-ink); }
.yx-method-option.active .yx-icon-tile { background: var(--yx-blue-50); color: var(--yx-blue); }
.yx-method-option .title { font-weight: 600; color: var(--yx-ink); }
.yx-method-option .desc { font-size: var(--yx-fs-xs); color: var(--yx-muted); }
.yx-method-panel { display: none; }
.yx-method-panel.active { display: block; animation: yx-toast-in .2s ease; }
.yx-bank-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.yx-bank-grid label { border: 1px solid var(--yx-border); border-radius: 10px; padding: .7rem .5rem; text-align: center; font-size: var(--yx-fs-xs); font-weight: 600; cursor: pointer; color: var(--yx-ink); }
.yx-bank-grid label:has(input:checked) { border-color: var(--yx-blue); background: var(--yx-blue-50); box-shadow: var(--yx-ring); }
.yx-bank-grid input { display: none; }
.yx-secure-frame { border: 1.5px dashed var(--yx-border-strong); border-radius: 12px; padding: 1.1rem; background: repeating-linear-gradient(-45deg, #fff, #fff 8px, #F8FAFC 8px, #F8FAFC 16px); }
.yx-upi-qr { width: 148px; height: 148px; border-radius: 12px; border: 1px solid var(--yx-border); padding: 8px; background: #fff; }
.yx-checkout-foot { display: flex; align-items: center; justify-content: center; gap: .5rem; color: var(--yx-muted); font-size: var(--yx-fs-xs); margin-top: 1.25rem; flex-wrap: wrap; }
.yx-checkout-foot img { height: 22px; }
.yx-result { max-width: 480px; margin: 0 auto; background: #fff; border-radius: var(--yx-radius-xl); box-shadow: var(--yx-shadow-lg); padding: 2.25rem 2rem; text-align: center; }
.yx-result-icon { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; font-size: 2.2rem; margin: 0 auto 1.25rem; }
.yx-result-icon.success { background: var(--yx-success-bg); color: var(--yx-emerald-700); box-shadow: 0 0 0 10px rgba(16, 185, 129, .08); }
.yx-result-icon.danger { background: var(--yx-danger-bg); color: var(--yx-danger); box-shadow: 0 0 0 10px rgba(239, 68, 68, .07); }
.yx-result-icon.warning { background: var(--yx-warning-bg); color: var(--yx-warning); box-shadow: 0 0 0 10px rgba(245, 158, 11, .08); }
.yx-result-icon.info { background: var(--yx-blue-50); color: var(--yx-blue); }
.yx-processing-ring { width: 84px; height: 84px; border-radius: 50%; border: 4px solid var(--yx-blue-100); border-top-color: var(--yx-blue); border-right-color: var(--yx-emerald); animation: yx-spin 1s linear infinite; margin: 0 auto 1.5rem; }
.yx-receipt { text-align: left; background: var(--yx-bg); border: 1px solid var(--yx-border); border-radius: 12px; padding: 1rem 1.1rem; margin: 1.25rem 0; }
.yx-test-ribbon { position: fixed; top: 14px; right: -38px; transform: rotate(45deg); background: #F59E0B; color: #fff; font-size: .6875rem; font-weight: 800; letter-spacing: .08em; padding: .3rem 2.75rem; z-index: 50; box-shadow: var(--yx-shadow-sm); }

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
  .yx-checkout-card { grid-template-columns: 280px 1fr; }
}
@media (max-width: 991.98px) {
  .yx-sidebar { transform: translateX(-100%); box-shadow: var(--yx-shadow-lg); }
  body.yx-sidebar-open .yx-sidebar { transform: none; }
  body.yx-sidebar-open .yx-backdrop { display: block; }
  .yx-main { margin-left: 0; }
  .yx-topbar { padding: 0 1rem; }
  .yx-content { padding: 1.25rem 1rem; }
  .yx-auth { grid-template-columns: 1fr; }
  .yx-auth-panel { display: none; }
  .yx-search { max-width: none; }
}
@media (max-width: 767.98px) {
  .yx-page-header { align-items: flex-start; }
  .yx-page-header h1 { font-size: 1.3rem; }
  .yx-page-actions { width: 100%; }
  .yx-page-actions > .btn { flex: 1 1 auto; }
  .yx-user-meta, .yx-hide-sm { display: none !important; }
  .yx-kpi-value { font-size: 1.375rem; }
  .yx-dl { grid-template-columns: 1fr; gap: .15rem; }
  .yx-dl dd { margin-bottom: .55rem; }
  .yx-checkout { padding: 0; }
  .yx-checkout-card { grid-template-columns: 1fr; border-radius: 0; min-height: 100vh; box-shadow: none; }
  .yx-checkout-summary { padding: 1.25rem; gap: .75rem; }
  .yx-checkout-summary .yx-hide-sm { display: none; }
  .yx-checkout-amount { font-size: 1.75rem; }
  .yx-checkout-main { padding: 1.25rem; }
  .yx-bank-grid { grid-template-columns: repeat(2, 1fr); }
  .yx-bar-row { grid-template-columns: 80px 1fr 56px; }
  .yx-result { border-radius: 0; box-shadow: none; min-height: 100vh; padding-top: 3rem; }
  .yx-table-toolbar .form-select, .yx-table-toolbar .form-control { flex: 1 1 140px; }
  .yx-auth-form { padding: 2rem 1.25rem; }
}
@media (max-width: 575.98px) {
  .yx-topbar .yx-search { display: none; }
  .yx-env-toggle button { padding: .3rem .55rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media print {
  .yx-sidebar, .yx-topbar, .yx-prototype-bar, .yx-page-actions, .yx-footer { display: none !important; }
  .yx-main { margin: 0; }
  .card { box-shadow: none; }
}

/* ---------- Late additions ---------- */
.yx-bar-sub { display: flex; justify-content: space-between; font-size: var(--yx-fs-xs); color: var(--yx-muted); margin: -.35rem 0 .75rem; padding-left: calc(110px + .75rem); }
@media (max-width: 767.98px) { .yx-bar-sub { padding-left: calc(80px + .75rem); } }
@media (max-width: 575.98px) {
  .yx-table thead th, .yx-table tbody td, .yx-table tfoot td { padding-left: .6rem; padding-right: .6rem; }
  .yx-table-wrap .yx-table td:first-child, .yx-table-wrap .yx-table th:first-child { padding-left: 1rem; }
}
/* Long identifiers (payment/order ids, provider references) wrap instead of widening the page on small screens. */
.yx-page-header h1, .yx-dl dd, .yx-mono, .breadcrumb-item { overflow-wrap: anywhere; }

/* Step F: long ids inside tables wrap on small screens instead of pushing status/amount columns off-screen */
@media (max-width: 575.98px) { .yx-table a.id, .yx-table span.id { overflow-wrap: anywhere; word-break: break-all; } }
