/* Admin Panel Specific Styles */

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    min-width: 200px;
    z-index: 100;
    margin-top: 4px;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 12px;
    width: 12px;
    height: 12px;
    background: white;
    border-left: 1px solid var(--gray-200);
    border-top: 1px solid var(--gray-200);
    transform: rotate(45deg);
}

.dropdown-item {
    display: block;
    padding: 10px 16px;
    color: var(--gray-700);
    font-size: 13px;
    border-bottom: 1px solid var(--gray-100);
    transition: all 0.2s;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: var(--gray-50);
    color: var(--gray-900);
}

/* Stats Card Variations */
.stat-card.compact {
    padding: 16px;
}

.stat-card.compact .stat-icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
}

.stat-card.compact .stat-value {
    font-size: 20px;
}

/* Transaction Type Indicators */
.trx-type-payin {
    color: var(--success);
}

.trx-type-payout {
    color: var(--info);
}

/* Amount styling */
.amount-positive {
    color: var(--success);
    font-weight: 600;
}

.amount-negative {
    color: var(--error);
    font-weight: 600;
}

/* Copy button */
.copy-btn {
    background: var(--gray-100);
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    color: var(--gray-600);
    transition: all 0.2s;
}

.copy-btn:hover {
    background: var(--gray-200);
    color: var(--gray-900);
}

/* Credential display box */
.credential-box {
    background: var(--gray-900);
    color: #00ff00;
    padding: 20px;
    border-radius: var(--border-radius);
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.8;
}

.credential-box .label {
    color: #888;
}

.credential-box .value {
    color: #fff;
    font-weight: 600;
}

/* API Key display */
.api-key-display {
    font-family: monospace;
    font-size: 13px;
    background: var(--gray-100);
    padding: 8px 12px;
    border-radius: var(--border-radius);
    word-break: break-all;
}

/* Settings page specific */
.settings-group {
    margin-bottom: 32px;
}

.settings-group-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
}

/* Switch toggle */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--gray-300);
    transition: .4s;
    border-radius: 26px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary);
}

input:checked + .slider:before {
    transform: translateX(24px);
}

/* Merchant status indicators */
.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
}

.status-dot.active { background: var(--success); }
.status-dot.inactive { background: var(--gray-400); }
.status-dot.pending { background: var(--warning); }
.status-dot.suspended { background: var(--error); }

/* Quick actions */
.quick-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.quick-action-btn {
    padding: 8px 16px;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    font-size: 13px;
    color: var(--gray-700);
    cursor: pointer;
    transition: all 0.2s;
}

.quick-action-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

/* Data export section */
.export-section {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Log entry styles */
.log-entry {
    margin-bottom: 16px;
}

.log-entry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--gray-100);
    border-bottom: 1px solid var(--gray-200);
    cursor: pointer;
}

.log-entry-content {
    padding: 16px;
    display: none;
}

.log-entry.expanded .log-entry-content {
    display: block;
}

/* Responsive table improvements */
@media (max-width: 768px) {
    .data-table th:nth-child(4),
    .data-table td:nth-child(4),
    .data-table th:nth-child(5),
    .data-table td:nth-child(5) {
        display: none;
    }
    
    .stats-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Activity log specific */
.activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.activity-icon.login { background: var(--success-light); color: var(--success); }
.activity-icon.logout { background: var(--gray-200); color: var(--gray-600); }
.activity-icon.create { background: var(--primary-light); color: var(--primary); }
.activity-icon.update { background: var(--warning-light); color: var(--warning); }
.activity-icon.delete { background: var(--error-light); color: var(--error); }

/* Form section dividers */
.form-section {
    border-top: 1px solid var(--gray-200);
    padding-top: 24px;
    margin-top: 24px;
}

.form-section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 16px;
}

.ad-dashboard { --ad-border:#e2e8f0; color:#334155; min-width:0; }
.ad-dashboard .ad-hero { display:grid; grid-template-columns:1.1fr 1fr; gap:36px; padding:36px; margin-bottom:30px; border:1px solid #373c76; border-radius:24px; background:radial-gradient(ellipse at top right,rgba(129,140,248,.4),transparent 65%),linear-gradient(120deg,#0f172a,#25275f 65%,#4338ca); color:#fff; box-shadow:0 16px 36px rgba(49,46,129,.18); }
.ad-dashboard .ad-eyebrow { display:block; font-size:10px; font-weight:700; letter-spacing:1.8px; color:#6366f1; }
.ad-dashboard .ad-hero .ad-eyebrow { color:#c7d2fe; }
.ad-dashboard .ad-hero h1 { font-size:clamp(25px,2.5vw,38px); line-height:1.2; letter-spacing:-1.2px; margin:14px 0; color:#fff; }
.ad-dashboard .ad-hero p { color:#cbd5e1; max-width:420px; font-size:13px; line-height:1.8; }
.ad-dashboard .ad-hero-actions { display:flex; flex-wrap:wrap; align-items:center; gap:16px; margin-top:24px; }
.ad-dashboard .ad-hero-link { display:inline-flex; align-items:center; gap:20px; padding:11px 16px; border-radius:10px; background:#fff; color:#3730a3; font-weight:600; font-size:12px; }
.ad-dashboard .ad-hero-link:hover { background:#e0e7ff; }
.ad-dashboard .ad-date { color:#c7d2fe; font-size:11px; }
.ad-dashboard .ad-hero-summary { min-width:0; align-self:center; padding:24px; border:1px solid rgba(255,255,255,.17); background:rgba(255,255,255,.07); border-radius:18px; }
.ad-dashboard .ad-hero-balance > span { display:block; color:#c7d2fe; font-size:12px; }
.ad-dashboard .ad-hero-balance > strong { display:block; font-size:clamp(23px,2.4vw,36px); line-height:1.4; letter-spacing:-1px; margin:8px 0; overflow-wrap:anywhere; font-variant-numeric:tabular-nums; }
.ad-dashboard .ad-hero-balance a { color:#e0e7ff; font-size:12px; }
.ad-dashboard .ad-hero-mini { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; border-top:1px solid rgba(255,255,255,.14); padding-top:18px; margin-top:20px; }
.ad-dashboard .ad-hero-mini span { display:block; color:#c7d2fe; font-size:11px; margin-bottom:6px; }
.ad-dashboard .ad-hero-mini strong { font-size:14px; overflow-wrap:anywhere; }
.ad-dashboard .ad-hero-main { min-width:0; }
.ad-dashboard .ad-gateway-balances { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,160px),1fr)); gap:10px; margin-top:20px; }
.ad-dashboard .ad-gateway-tile { display:block; padding:12px 14px; border:1px solid rgba(199,210,254,.2); border-radius:12px; background:rgba(255,255,255,.07); color:#fff; min-width:0; }
.ad-dashboard .ad-gateway-tile:hover { background:rgba(255,255,255,.13); color:#fff; }
.ad-dashboard .ad-gateway-tile > span { display:block; font-size:11px; font-weight:600; color:#e0e7ff; }
.ad-dashboard .ad-gateway-tile small { display:block; font-size:9px; color:#c7d2fe; margin-top:3px; font-weight:400; }
.ad-dashboard .ad-gateway-tile > strong { display:block; margin-top:7px; font-size:18px; letter-spacing:-.4px; overflow-wrap:anywhere; font-variant-numeric:tabular-nums; }
.ad-dashboard .ad-gateway-empty { color:#cbd5e1; font-size:12px; }
.ad-dashboard .ad-gateway-mapping { grid-column:1 / -1; min-width:0; border-top:1px solid rgba(199,210,254,.18); padding-top:18px; }
.ad-dashboard .ad-mapping-heading { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; font-size:12px; font-weight:600; margin-bottom:12px; }
.ad-dashboard .ad-mapping-heading a { color:#c7d2fe; font-size:11px; font-weight:500; }
.ad-dashboard .ad-mapping-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.ad-dashboard .ad-route-panel { background:rgba(15,23,42,.15); border:1px solid rgba(199,210,254,.15); border-radius:12px; padding:12px; min-width:0; }
.ad-dashboard .ad-route-direction { display:inline-block; padding:3px 9px; border-radius:6px; font-size:10px; font-weight:600; margin-bottom:10px; }
.ad-dashboard .ad-route-direction.payin { background:#d1fae5; color:#065f46; }
.ad-dashboard .ad-route-direction.payout { background:#fee2e2; color:#991b1b; }
.ad-dashboard .ad-route-line { display:flex; align-items:flex-start; gap:10px; margin-bottom:8px; }
.ad-dashboard .ad-route-line:last-child { margin-bottom:0; }
.ad-dashboard .ad-route-line > strong { flex:0 0 42px; color:#e0e7ff; font-size:11px; padding-top:5px; }
.ad-dashboard .ad-route-list { display:flex; flex-wrap:wrap; gap:6px; min-width:0; }
.ad-dashboard .ad-route-chip { background:rgba(255,255,255,.07); border:1px solid rgba(199,210,254,.15); border-radius:7px; padding:5px 8px; overflow-wrap:anywhere; }
.ad-dashboard .ad-route-chip b { display:block; color:#f1f5f9; font-size:10px; font-weight:600; }
.ad-dashboard .ad-route-chip small { display:block; color:#c7d2fe; font-size:9px; margin-top:2px; }
.ad-dashboard .ad-route-off { color:#fecaca; font-size:10px; padding-top:5px; }
.ad-dashboard .ad-hero .ad-mapping-note { max-width:none; color:#c7d2fe; font-size:10px; line-height:1.7; margin-top:10px; }
@media (max-width:768px) { .ad-dashboard .ad-mapping-grid { grid-template-columns:minmax(0,1fr); } }
.ad-dashboard .ad-section-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:18px; }
.ad-dashboard .ad-section-heading h2 { color:#0f172a; font-size:20px; letter-spacing:-.5px; margin-top:4px; }
.ad-dashboard .ad-section-heading a { font-size:12px; font-weight:600; }
.ad-dashboard .stats-grid { gap:16px; }
.ad-dashboard .ad-primary-stats { grid-template-columns:repeat(4,minmax(0,1fr)); }
.ad-dashboard .ad-finance-stats { grid-template-columns:repeat(3,minmax(0,1fr)); }
.ad-dashboard .stat-card { min-width:0; flex-wrap:wrap; gap:12px; padding:22px; border-radius:18px; border-color:var(--ad-border); box-shadow:0 4px 18px rgba(15,23,42,.025); }
.ad-dashboard .stat-card:hover { border-color:#c7d2fe; box-shadow:0 10px 24px rgba(49,46,129,.07); }
.ad-dashboard .ad-primary-stats .stat-card { flex-direction:column; background:linear-gradient(150deg,#fff,#f8faff); }
.ad-dashboard .stat-icon { width:42px; height:42px; border-radius:13px; }
/* Amounts must never clip — shrink font instead of truncating */
.ad-dashboard .stat-card .stat-content { min-width:0; flex:1; width:100%; overflow:visible; }
.ad-dashboard .stat-card .stat-value { font-size:clamp(18px,1.5vw,25px); white-space:normal; overflow:visible; text-overflow:clip; overflow-wrap:anywhere; font-variant-numeric:tabular-nums; letter-spacing:-.6px; line-height:1.4; }
.ad-dashboard .stat-label { text-transform:none; letter-spacing:0; font-size:12px; color:#64748b; }
.ad-dashboard .stat-change { display:block; font-size:11px; line-height:1.8; color:#64748b; overflow-wrap:anywhere; }
.ad-dashboard .stat-change.up { color:#047857; }
.ad-dashboard .ad-finance-stats .stat-card > a { flex-basis:100%; border-top:1px solid rgba(148,163,184,.2); padding-top:12px; color:#4f46e5 !important; }
.ad-dashboard .ad-finance-stats .stat-card:nth-child(2) .stat-change strong:first-child { color:#047857 !important; }
.ad-dashboard .ad-finance-stats .stat-card:nth-child(2) .stat-change strong:last-child { color:#be123c !important; }
.ad-dashboard .ad-finance-stats .stat-card:nth-child(3) .stat-change strong { color:#047857 !important; }
.ad-dashboard .ad-finance-stats .stat-card:last-child .stat-change strong { color:#92400e !important; }
.ad-dashboard .ad-finance-stats .stat-card:last-child .stat-label { color:#b91c1c !important; }
.ad-dashboard .ad-finance-stats .stat-card:last-child .stat-value { color:#dc2626 !important; }
.ad-dashboard .ad-activity-grid { margin-top:28px; grid-template-columns:minmax(0,1fr); }
.ad-dashboard .card { min-width:0; border-radius:18px; border-color:var(--ad-border); box-shadow:0 4px 18px rgba(15,23,42,.025); }
.ad-dashboard .card-header { gap:14px; flex-wrap:wrap; padding:20px 22px; background:linear-gradient(120deg,#f8faff,#fff); }
.ad-dashboard .card-header h3 { font-size:14px; letter-spacing:-.2px; }
.ad-dashboard .btn-outline { border-color:#c7d2fe; color:#4f46e5; border-radius:9px; }
.ad-dashboard .dash-chart { display:flex; align-items:flex-end; gap:5px; height:230px; padding:14px 8px 26px; position:relative; background:repeating-linear-gradient(to top,transparent 0,transparent calc(25% - 1px),#f1f5f9 calc(25% - 1px),#f1f5f9 25%); }
.ad-dashboard .dash-bar { flex:1; display:flex; align-items:flex-end; justify-content:center; gap:3px; height:100%; min-width:0; position:relative; outline-offset:4px; }
.ad-dashboard .dash-bar > span { display:block; width:42%; border-radius:5px 5px 0 0; min-height:2px; }
.ad-dashboard .dash-bar .b-in { background:linear-gradient(to top,#059669,#34d399); }
.ad-dashboard .dash-bar .b-out { background:linear-gradient(to top,#e11d48,#f87171); }
.ad-dashboard .dash-bar .b-day { position:absolute; bottom:-20px; left:50%; transform:translateX(-50%); width:auto; min-height:0; font-size:10px; color:#64748b; background:none; }
.ad-dashboard .dash-bar:is(:hover,:focus-visible)::after { content:attr(data-tip); position:absolute; bottom:100%; left:50%; transform:translateX(-50%); background:#1e293b; color:#fff; font-size:11px; padding:8px 10px; border-radius:8px; width:190px; max-width:70vw; white-space:normal; z-index:5; box-shadow:0 6px 18px rgba(15,23,42,.15); }
.ad-dashboard .dash-bar:first-child:is(:hover,:focus-visible)::after { left:0; transform:none; }
.ad-dashboard .dash-bar:last-child:is(:hover,:focus-visible)::after { left:auto; right:0; transform:none; }
.ad-dashboard .data-table { min-width:580px; }
.ad-dashboard .data-table th { background:#f8fafc; font-size:10px; }
.ad-dashboard .data-table td { padding:16px 20px; }
.ad-dashboard .data-table code { color:#4f46e5; font-weight:600; }
.ad-dashboard .data-table tbody tr:hover { background:#f8faff; }
.ad-dashboard a:focus-visible { outline:2px solid #818cf8; outline-offset:4px; }
@media (min-width:1600px) {
    .ad-dashboard .ad-activity-grid { grid-template-columns:minmax(0,1fr) minmax(0,1.2fr); }
}
@media (max-width:1200px) {
    .ad-dashboard .ad-primary-stats, .ad-dashboard .ad-finance-stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .ad-dashboard .ad-hero { gap:24px; padding:28px; }
}
@media (max-width:768px) {
    .ad-dashboard .ad-hero { grid-template-columns:1fr; padding:24px; border-radius:20px; }
    .ad-dashboard .ad-hero-summary { padding:20px; }
    .ad-dashboard .stats-grid { grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:12px; }
    .ad-dashboard .stat-card { padding:18px; }
    .ad-dashboard .ad-section-heading { align-items:flex-start; flex-direction:column; gap:8px; }
    .ad-dashboard .data-table th:nth-child(4), .ad-dashboard .data-table td:nth-child(4) { display:table-cell; }
    .ad-dashboard .dash-chart { height:200px; gap:2px; }
    .ad-dashboard .dash-bar { gap:1px; }
}
@media (max-width:480px) {
    .ad-dashboard .stats-grid { grid-template-columns:minmax(0,1fr) !important; }
    .ad-dashboard .ad-hero { padding:20px; }
    .ad-dashboard .ad-hero-mini { grid-template-columns:minmax(0,1fr); gap:14px; }
    .ad-dashboard .card-header { padding:16px; }
}
@media (prefers-reduced-motion:reduce) {
    .ad-dashboard .stat-card, .ad-dashboard .stat-icon { animation:none; transition:none; transform:none; }
}

.tx-overview { margin-bottom:20px; }
.tx-overview-heading { display:flex; align-items:end; justify-content:space-between; flex-wrap:wrap; gap:12px; margin-bottom:18px; }
.tx-overview-heading > div > span { color:#0f766e; font-size:10px; font-weight:700; letter-spacing:1.6px; }
.tx-overview-heading h2 { font-size:22px; color:#0f172a; letter-spacing:-.6px; margin-top:4px; }
.tx-overview-heading > p { color:#64748b; font-size:11px; }
.tx-overview-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
.tx-overview-card { --tx-accent:#0f766e; --tx-soft:#ecfdf5; --tx-border:#ccfbf1; background:linear-gradient(150deg,#f0fdfa,#fff 35%); border:1px solid #d8e6e4; border-top:3px solid var(--tx-accent); border-radius:18px; padding:20px; min-width:0; box-shadow:0 5px 20px rgba(15,23,42,.035); }
.tx-overview-card.payout { --tx-accent:#475569; --tx-soft:#f1f5f9; --tx-border:#e2e8f0; background:linear-gradient(150deg,#edf2f7,#fff 35%); border-color:#dce3ec; border-top-color:var(--tx-accent); }
.tx-overview-card.today.payin { --tx-accent:#0369a1; --tx-soft:#f0f9ff; --tx-border:#bae6fd; background:linear-gradient(150deg,#f0f9ff,#fff 35%); }
.tx-overview-card.today.payout { --tx-accent:#9a5b20; --tx-soft:#fffbeb; --tx-border:#fde7b2; background:linear-gradient(150deg,#fffbeb,#fff 35%); }
.tx-card-top { display:flex; justify-content:space-between; align-items:center; gap:10px; font-size:10px; color:#64748b; }
.tx-direction { color:var(--tx-accent); background:var(--tx-soft); border:1px solid var(--tx-border); padding:4px 9px; border-radius:7px; font-weight:700; }
.tx-overview-card h3 { color:#475569; font-size:12px; font-weight:500; margin:16px 0 5px; }
.tx-volume { font-size:clamp(19px,1.7vw,28px); color:#0f172a; font-weight:700; letter-spacing:-.7px; overflow-wrap:anywhere; line-height:1.4; font-variant-numeric:tabular-nums; }
.tx-volume-note { color:#64748b; font-size:10px; margin-top:6px; }
.tx-rate { display:flex; justify-content:space-between; gap:8px; font-size:10px; color:#64748b; margin-top:18px; }
.tx-rate strong { color:var(--tx-accent); }
.tx-rate-track { height:4px; background:#f1f5f9; border-radius:5px; margin-top:7px; overflow:hidden; }
.tx-rate-track > span { display:block; height:100%; background:var(--tx-accent); border-radius:5px; }
.tx-breakdown { margin-top:20px; }
.tx-breakdown h4 { display:flex; flex-wrap:wrap; justify-content:space-between; gap:6px; color:#334155; font-size:11px; margin-bottom:6px; }
.tx-breakdown h4 small { font-size:9px; color:#64748b; font-weight:400; }
.tx-breakdown-row { display:flex; justify-content:space-between; align-items:center; gap:10px; padding:9px 0; border-bottom:1px solid #f1f5f9; }
.tx-breakdown-row > span { font-size:11px; font-weight:600; color:#475569; min-width:0; overflow-wrap:anywhere; }
.tx-breakdown-row small { display:block; color:#64748b; font-size:9px; font-weight:400; margin-top:2px; }
.tx-breakdown-row > strong { font-size:11px; color:#0f172a; text-align:right; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; min-width:0; }
.tx-extra { margin-top:14px; }
.tx-extra > summary { font-size:11px; color:var(--tx-accent); font-weight:600; cursor:pointer; padding:4px 0; }
.tx-extra > summary:focus-visible { outline:2px solid var(--tx-accent); outline-offset:3px; }
.tx-empty { font-size:10px; color:#64748b; padding:10px 0; }
.tx-card-footer { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; background:#f8fafc; border:1px solid #edf2f7; border-radius:10px; padding:12px; margin-top:16px; }
.tx-card-footer span { display:block; color:#64748b; font-size:9px; }
.tx-card-footer strong { display:block; font-size:11px; color:#334155; margin-top:3px; overflow-wrap:anywhere; }
.tx-overview-note { font-size:10px; color:#64748b; line-height:1.7; margin-top:12px; }
.tx-simple-summary { margin-bottom:20px; padding:20px; background:#fff; border:1px solid #e2e8f0; border-radius:14px; box-shadow:0 3px 12px rgba(15,23,42,.025); }
.tx-simple-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-bottom:18px; }
.tx-simple-heading h3 { font-size:14px; color:#0f172a; }
.tx-simple-heading p { font-size:10px; color:#64748b; margin-top:4px; }
.tx-simple-metrics { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:16px; }
.tx-simple-metrics span { display:block; font-size:11px; color:#64748b; }
.tx-simple-metrics strong { display:block; font-size:18px; color:#0f172a; letter-spacing:-.4px; margin-top:4px; overflow-wrap:anywhere; font-variant-numeric:tabular-nums; }
.po-dashboard .po-hero { background:radial-gradient(ellipse at top right,rgba(45,212,191,.24),transparent 65%),linear-gradient(120deg,#0f172a,#164e63 65%,#0f766e); border-color:#285c68; }
.po-dashboard .po-hero .ad-eyebrow, .po-dashboard .po-hero .ad-date, .po-dashboard .po-hero .ad-hero-balance > span, .po-dashboard .po-hero .ad-hero-mini span { color:#ccfbf1; }
.po-dashboard .po-hero .ad-hero-link { color:#115e59; }
.po-dashboard .po-today-title { font-size:21px; color:#fff; letter-spacing:-.4px; margin:10px 0 18px; }
.po-dashboard .po-today-methods { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.po-dashboard .po-today-method { padding:14px; border:1px solid rgba(204,251,241,.18); border-radius:13px; background:rgba(255,255,255,.05); min-width:0; }
.po-dashboard .po-today-method h4 { color:#ccfbf1; font-size:12px; margin-bottom:12px; }
.po-dashboard .po-gateway-hero { display:flex; flex-direction:column; gap:18px; }
.po-dashboard .po-gateway-heading { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; }
.po-dashboard .po-gateway-heading .po-today-title { margin-bottom:0; }
.po-dashboard .po-gateway-heading > a:not(.ad-hero-link) { color:#ccfbf1; font-size:12px; }
.po-dashboard .po-leader-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr)); gap:14px; }
.po-dashboard .po-leader-card { padding:16px 18px; border:1px solid rgba(153,246,228,.3); border-radius:14px; background:rgba(153,246,228,.07); min-width:0; }
.po-dashboard .po-leader-card.payout { border-color:rgba(254,202,202,.3); background:rgba(254,202,202,.05); }
.po-dashboard .po-leader-card h3 { font-size:15px; font-weight:600; color:#ccfbf1; margin-bottom:12px; }
.po-dashboard .po-leader-card.payout h3 { color:#fecaca; }
.po-dashboard .po-leader-row { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:4px 12px; margin-top:10px; }
.po-dashboard .po-leader-row > span { grid-column:1 / -1; font-size:10px; color:#cbd5e1; }
.po-dashboard .po-leader-row > strong { font-size:12px; font-weight:600; color:#fff; overflow-wrap:anywhere; }
.po-dashboard .po-leader-row > b { font-size:12px; color:#f8fafc; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.po-dashboard .po-leader-card > small { display:block; margin-top:12px; font-size:9px; color:#cbd5e1; }
@media (max-width:480px) { .po-dashboard .po-leader-row { grid-template-columns:minmax(0,1fr); } }
.po-dashboard .po-gateway-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr)); gap:16px; }
.po-dashboard .po-gateway-card { border:1px solid rgba(204,251,241,.22); border-radius:16px; background:rgba(15,23,42,.18); padding:18px; min-width:0; }
.po-dashboard .po-gateway-top { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; margin-bottom:16px; }
.po-dashboard .po-gateway-name { background:#ccfbf1; color:#115e59; font-size:16px; font-weight:700; letter-spacing:.7px; padding:8px 12px; border-radius:9px; overflow-wrap:anywhere; max-width:100%; }
.po-dashboard .po-gateway-balance { min-width:0; }
.po-dashboard .po-gateway-balance span { display:block; color:#cbd5e1; font-size:10px; }
.po-dashboard .po-gateway-balance strong { display:block; margin-top:3px; color:#fff; font-size:22px; letter-spacing:-.5px; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.po-dashboard .po-gateway-amount { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:5px; font-size:11px; }
.po-dashboard .po-gateway-amount + .po-gateway-amount { margin-top:10px; padding-top:10px; border-top:1px solid rgba(204,251,241,.12); }
.po-dashboard .po-gateway-amount span { color:#cbd5e1; }
.po-dashboard .po-gateway-amount strong { color:#fff; font-size:12px; overflow-wrap:anywhere; font-variant-numeric:tabular-nums; min-width:0; }
.po-dashboard .po-hero .po-balance-note { font-size:10px; color:#cbd5e1; margin-top:10px; max-width:none; }
@media (max-width:480px) { .po-dashboard .po-today-methods { grid-template-columns:minmax(0,1fr); } }
.po-dashboard .tx-overview-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px; }
.po-dashboard .tx-overview-card { padding:0; border:1px solid #dce5e9; background:#fff; overflow:hidden; border-radius:20px; box-shadow:0 5px 22px rgba(15,23,42,.04); }
.po-dashboard .po-card-hero { padding:24px; background:radial-gradient(ellipse at top right,rgba(45,212,191,.2),transparent 70%),linear-gradient(120deg,#0f172a,#134e4a); }
.po-dashboard .payout .po-card-hero { background:radial-gradient(ellipse at top right,rgba(148,163,184,.2),transparent 70%),linear-gradient(120deg,#0f172a,#334155); }
.po-dashboard .today.payin .po-card-hero { background:radial-gradient(ellipse at top right,rgba(56,189,248,.2),transparent 70%),linear-gradient(120deg,#0f172a,#164e63); }
.po-dashboard .today.payout .po-card-hero { background:radial-gradient(ellipse at top right,rgba(251,191,36,.15),transparent 70%),linear-gradient(120deg,#1e293b,#713f12); }
.po-dashboard .po-card-hero .tx-card-top, .po-dashboard .po-card-hero h3, .po-dashboard .po-card-hero .tx-volume-note, .po-dashboard .po-card-hero .tx-rate { color:#e2e8f0; }
.po-dashboard .po-card-hero .tx-volume, .po-dashboard .po-card-hero .tx-rate strong { color:#fff; }
.po-dashboard .po-card-hero .tx-volume { font-size:clamp(24px,2.5vw,34px); }
.po-dashboard .po-card-hero .tx-direction { background:rgba(255,255,255,.1); border-color:rgba(255,255,255,.2); color:#fff; }
.po-dashboard .po-card-hero .tx-rate-track { background:rgba(255,255,255,.16); }
.po-dashboard .po-card-hero .tx-rate-track > span { background:#99f6e4; }
.po-dashboard .po-card-body { padding:22px 24px; }
.po-dashboard .po-card-body .tx-breakdown { margin-top:0; }
.po-dashboard .tx-breakdown-row > strong { font-size:13px; }
@media (max-width:768px) {
    .tx-simple-metrics { grid-template-columns:repeat(3,minmax(0,1fr)); }
    .po-dashboard .tx-overview-grid { grid-template-columns:minmax(0,1fr); }
}
@media (max-width:480px) {
    .tx-simple-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .po-dashboard .po-card-hero, .po-dashboard .po-card-body { padding:20px; }
}
@media (max-width:1400px) { .tx-overview-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:600px) {
    .tx-overview-grid { grid-template-columns:minmax(0,1fr); gap:12px; }
    .tx-overview-card { padding:18px; }
    .tx-overview-heading { align-items:flex-start; }
    .tx-volume { font-size:26px; }
}

.ad-dashboard .dq-controls { margin-bottom:28px; scroll-margin-top:84px; }
.ad-dashboard .dq-gateway-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.ad-dashboard .dq-gateway-card { border:1px solid #dce1ef; background:#fff; border-radius:20px; overflow:hidden; min-width:0; box-shadow:0 6px 22px rgba(49,46,129,.05); }
.ad-dashboard .dq-gateway-head { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; padding:22px; background:radial-gradient(ellipse at top right,rgba(129,140,248,.25),transparent 70%),linear-gradient(120deg,#0f172a,#312e81); color:#fff; }
.ad-dashboard .dq-gateway-head > div > span { font-size:9px; letter-spacing:1.5px; color:#c7d2fe; }
.ad-dashboard .dq-gateway-head h3 { margin-top:4px; font-size:21px; letter-spacing:.6px; color:#fff; overflow-wrap:anywhere; }
.ad-dashboard .dq-active-count { font-size:10px; background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.17); border-radius:8px; padding:6px 9px; }
.ad-dashboard .dq-gateway-body { padding:4px 20px 18px; }
.ad-dashboard .dq-channel-row { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:12px; padding:16px 0; border-bottom:1px solid #edf0f6; }
.ad-dashboard .dq-row-title > strong { display:flex; flex-wrap:wrap; align-items:center; gap:8px; color:#334155; font-size:13px; }
.ad-dashboard .dq-direction { padding:3px 7px; font-size:10px; font-weight:600; border-radius:6px; }
.ad-dashboard .dq-direction.payin { color:#16654b; background:#ecf7f1; }
.ad-dashboard .dq-direction.payout { color:#a33c3c; background:#fdf0f0; }
.ad-dashboard .dq-row-title small { display:block; font-size:9px; color:#64748b; margin-top:5px; }
.ad-dashboard .dq-primary-indicator { color:#4338ca; background:#eef2ff; border:1px solid #c7d2fe; font-size:9px; font-weight:600; padding:3px 7px; border-radius:6px; }
.ad-dashboard .dq-primary-button { grid-column:1 / -1; justify-self:start; color:#4338ca; background:#eef2ff; border:1px solid #c7d2fe; font-size:10px; font-weight:600; padding:5px 9px; border-radius:7px; cursor:pointer; }
.ad-dashboard .dq-primary-button:hover { background:#e0e7ff; }
.ad-dashboard .dq-primary-button:focus-visible { outline:2px solid #6366f1; outline-offset:3px; }
.ad-dashboard .dq-toggle { display:flex; align-items:center; gap:7px; cursor:pointer; position:relative; min-height:32px; }
.ad-dashboard .dq-toggle > input { position:absolute; width:1px; height:1px; opacity:0; }
.ad-dashboard .dq-switch { display:block; width:34px; height:20px; padding:3px; border-radius:20px; background:#cbd5e1; }
.ad-dashboard .dq-switch::after { content:''; display:block; width:14px; height:14px; border-radius:50%; background:#fff; box-shadow:0 1px 3px rgba(15,23,42,.15); }
.ad-dashboard .dq-toggle > input:checked + .dq-switch { background:#059669; }
.ad-dashboard .dq-toggle > input:checked + .dq-switch::after { transform:translateX(14px); }
.ad-dashboard .dq-switch-state { width:22px; color:#64748b; font-size:10px; font-weight:600; }
.ad-dashboard .dq-switch-state::after { content:'OFF'; }
.ad-dashboard .dq-toggle > input:checked ~ .dq-switch-state { color:#047857; }
.ad-dashboard .dq-toggle > input:checked ~ .dq-switch-state::after { content:'ON'; }
.ad-dashboard .dq-toggle > input:focus-visible + .dq-switch { outline:2px solid #6366f1; outline-offset:3px; }
.ad-dashboard .dq-limits { grid-column:1 / -1; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.ad-dashboard .dq-limits label { font-size:10px; color:#64748b; min-width:0; }
.ad-dashboard .dq-limits input { display:block; width:100%; min-width:0; margin-top:5px; padding:8px 10px; font-size:13px; background:#fafbff; }
.ad-dashboard .dq-confirm { display:flex; align-items:flex-start; gap:8px; color:#92400e; font-size:10px; line-height:1.7; margin-top:16px; }
.ad-dashboard .dq-confirm input { margin-top:3px; flex-shrink:0; accent-color:#6366f1; }
.ad-dashboard .dq-save { display:flex; flex-wrap:wrap; gap:12px; align-items:center; justify-content:space-between; border-top:1px solid #edf0f6; margin-top:14px; padding-top:16px; }
.ad-dashboard .dq-save > span, .ad-dashboard .dq-help { font-size:10px; color:#64748b; line-height:1.8; }
.ad-dashboard .dq-help { margin-top:12px; }
.ad-dashboard .dq-missing { padding:12px 0; border-bottom:1px solid #edf0f6; font-size:11px; color:#64748b; }
@media (max-width:1000px) { .ad-dashboard .dq-gateway-grid { grid-template-columns:minmax(0,1fr); } }
@media (max-width:480px) { .ad-dashboard .dq-gateway-head { padding:18px; } .ad-dashboard .dq-gateway-body { padding:4px 16px 16px; } }

.ra-dashboard .ad-hero { background:radial-gradient(ellipse at top right,rgba(45,212,191,.25),transparent 65%),linear-gradient(120deg,#0f172a,#164e63); }
.ra-dashboard .ad-hero-summary h3 { color:#fff; font-size:15px; }
.ra-dashboard .ad-hero-summary p { margin-top:12px; font-size:12px; }
.ra-dashboard .ra-hero-suggestions { display:grid; gap:8px; margin-top:22px; }
.ra-dashboard .ra-hero-suggestions h2 { font-size:13px; font-weight:600; color:#ccfbf1; margin-bottom:4px; }
.ra-dashboard .ra-suggestion-link { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:11px 14px; border:1px solid rgba(204,251,241,.2); border-radius:10px; background:rgba(255,255,255,.06); color:#fff; }
.ra-dashboard .ra-suggestion-link:hover { background:rgba(255,255,255,.12); border-color:rgba(204,251,241,.45); color:#fff; }
.ra-dashboard .ra-suggestion-link b { display:block; font-size:12px; }
.ra-dashboard .ra-suggestion-link small { display:block; font-size:10px; color:#cbd5e1; margin-top:3px; overflow-wrap:anywhere; }
.ra-dashboard .ra-group, .ra-dashboard .ra-balance { scroll-margin-top:84px; }
.ra-dashboard .ra-group:target, .ra-dashboard .ra-balance:target { outline:2px solid #14b8a6; outline-offset:3px; }
.ra-dashboard .ra-settings { margin-bottom:20px; }
.ra-dashboard .card-header { flex-wrap:wrap; gap:12px; }
.ra-dashboard .ra-settings .card-header > span { font-size:11px; color:#64748b; }
.ra-dashboard .ra-form { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; align-items:end; }
.ra-dashboard .ra-form label { font-size:11px; color:#475569; font-weight:600; min-width:0; }
.ra-dashboard .ra-form .form-input { display:block; width:100%; margin-top:6px; min-width:0; }
.ra-dashboard .ra-note { font-size:11px; line-height:1.8; color:#64748b; margin-top:10px; }
.ra-dashboard .ra-note p + p { margin-top:12px; }
.ra-dashboard .ra-liquidity { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr)); gap:16px; }
.ra-dashboard .ra-balance { border:1px solid #dce8eb; border-radius:12px; padding:16px; background:#f8fcfd; min-width:0; }
.ra-dashboard .ra-balance h3 { color:#115e59; font-size:14px; margin-bottom:12px; }
.ra-dashboard .ra-balance dl > div { display:flex; flex-wrap:wrap; justify-content:space-between; gap:6px; padding:7px 0; font-size:11px; }
.ra-dashboard dt { color:#64748b; }
.ra-dashboard dd { color:#0f172a; font-weight:600; overflow-wrap:anywhere; }
.ra-dashboard .ra-groups { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; margin-bottom:20px; }
.ra-dashboard .ra-direction { padding:4px 9px; border-radius:6px; font-size:10px; font-weight:600; }
.ra-dashboard .ra-direction.payin { color:#047857; background:#ecfdf5; }
.ra-dashboard .ra-direction.payout { color:#b91c1c; background:#fef2f2; }
.ra-dashboard .ra-verdict { padding:14px; background:#eef6ff; border:1px solid #dbeafe; border-radius:10px; color:#334155; font-size:12px; }
.ra-dashboard .ra-verdict > strong { color:#1e40af; }
.ra-dashboard .ra-verdict > p { margin:8px 0; line-height:1.7; }
.ra-dashboard .ra-verdict small { color:#64748b; font-size:10px; }
.ra-dashboard .ra-candidate { border:1px solid #e2e8f0; border-radius:12px; padding:16px; margin-top:14px; min-width:0; }
.ra-dashboard .ra-candidate.current { border-color:#a5b4fc; background:#fafbff; }
.ra-dashboard .ra-candidate-heading { display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px; font-size:12px; color:#334155; }
.ra-dashboard .ra-candidate-heading > span { color:#64748b; font-size:10px; }
.ra-dashboard .ra-candidate-metrics { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-top:12px; font-size:10px; }
.ra-dashboard .ra-candidate-metrics dd { margin-top:4px; font-size:12px; font-variant-numeric:tabular-nums; }
.ra-dashboard .ra-reasons { font-size:10px; color:#92400e; line-height:1.8; padding:10px 12px 10px 26px; background:#fffbeb; border-radius:8px; margin-top:12px; }
@media (max-width:1000px) { .ra-dashboard .ra-groups { grid-template-columns:minmax(0,1fr); } }
@media (max-width:640px) { .ra-dashboard .ra-form { grid-template-columns:minmax(0,1fr); } }

.wallet-capacity { margin-bottom:24px; border-color:#c7d2fe; border-radius:18px; }
.wallet-capacity .card-header { flex-wrap:wrap; gap:12px; background:linear-gradient(120deg,#eef2ff,#fff); }
.wallet-capacity .card-header p { font-size:11px; color:#64748b; margin-top:4px; }
.wallet-plan-total { display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:18px; padding:14px; border-radius:10px; background:#f8fafc; }
.wallet-plan-total strong { color:#3730a3; font-size:14px; }
.wallet-plan-total span { color:#64748b; font-size:11px; }
.wallet-plan-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr)); gap:16px; }
.wallet-plan-card { padding:18px; border:1px solid #dce3f3; border-radius:14px; background:linear-gradient(150deg,#f6f7ff,#fff 40%); min-width:0; }
.wallet-plan-head { display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:14px; }
.wallet-plan-head h4 { font-size:16px; color:#312e81; }
.wallet-plan-head span { font-size:9px; color:#92400e; background:#fffbeb; border-radius:6px; padding:4px 7px; }
.wallet-plan-card dl > div { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:8px 0; border-bottom:1px solid #f1f5f9; }
.wallet-plan-card dt { color:#64748b; font-size:10px; }
.wallet-plan-card dd { color:#334155; font-size:12px; font-weight:600; text-align:right; overflow-wrap:anywhere; min-width:0; }
.wallet-plan-proposal { background:#eef2ff; border:1px solid #e0e7ff; border-radius:10px; padding:12px; margin:14px 0; }
.wallet-plan-proposal span, .wallet-plan-proposal small { display:block; color:#6366a0; font-size:10px; }
.wallet-plan-proposal strong { display:block; color:#312e81; font-size:23px; margin:5px 0; overflow-wrap:anywhere; }
.wallet-plan-card details { margin-top:14px; }
.wallet-plan-card summary { cursor:pointer; color:#4f46e5; font-size:11px; }
.wallet-plan-note { font-size:10px; color:#64748b; line-height:1.8; margin-top:10px; }
.wallet-plan-ack { display:flex; align-items:flex-start; gap:8px; padding:10px; background:#fffbeb; color:#92400e; border-radius:8px; font-size:11px; line-height:1.7; margin-bottom:14px; }
.wallet-plan-ack input { margin-top:3px; flex-shrink:0; }
#admin-withdraw-form { scroll-margin-top:84px; }
.wallet-target-check { padding:18px; border:1px solid #c7d2fe; border-radius:14px; background:#f8faff; margin-bottom:24px; scroll-margin-top:84px; }
.wallet-target-check > h4 { color:#312e81; font-size:15px; margin-bottom:12px; }
.wallet-target-form { display:flex; align-items:end; gap:12px; flex-wrap:wrap; }
.wallet-target-form label { font-size:11px; color:#64748b; flex:1; min-width:160px; }
.wallet-target-form .form-input { display:block; width:100%; margin-top:5px; }
.wallet-target-result { display:flex; flex-direction:column; gap:7px; background:#fff; border:1px solid #e0e7ff; padding:14px; border-radius:10px; margin:16px 0; }
.wallet-target-result > strong { font-size:13px; color:#3730a3; }
.wallet-target-result > span { font-size:11px; color:#475569; line-height:1.7; }
.wallet-target-row { padding:14px; border:1px solid #dce3f3; border-radius:12px; background:#fff; min-width:0; }
.wallet-target-row .wallet-plan-proposal { margin-top:0; }
@media (max-width:480px) { .wallet-target-check { padding:14px; } .wallet-target-form .btn { width:100%; } }



/* ════════════════════════════════
   USDT WITHDRAWALS (create / manage) — scoped .uw-*
   ════════════════════════════════ */
.uw-page { --uw-teal:#0ea5e9; --uw-teal-d:#0369a1; --uw-ink:#0b1220; display:flex; flex-direction:column; gap:20px; animation:fadeInUp .35s var(--ease-out) both; }
.uw-page [hidden], .uw-modal [hidden], .uw-toast[hidden] { display:none !important; }
.uw-page code, .uw-modal code { font-family:'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,monospace; }
.uw-hero { position:relative; overflow:hidden; display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap; padding:26px 28px; border-radius:20px; color:#fff;
  background:linear-gradient(135deg,#1d4ed8 0%,#2563eb 45%,#0ea5e9 100%); box-shadow:0 16px 36px -18px rgba(37,99,235,.55); }
  box-shadow:0 18px 40px -18px rgba(15,23,42,.55); }
.uw-hero::after { content:''; position:absolute; inset:0; background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M0 40L40 0' stroke='%23ffffff' stroke-opacity='.04'/%3E%3C/svg%3E"); pointer-events:none; }
.uw-hero-main { display:flex; align-items:center; gap:18px; min-width:0; position:relative; z-index:1; }
.uw-hero-icon { width:58px; height:58px; flex-shrink:0; border-radius:16px; display:flex; align-items:center; justify-content:center; color:#fff; background:rgba(255,255,255,.18); border:1px solid rgba(255,255,255,.3); }
.uw-eyebrow { display:inline-block; font-size:11px; font-weight:700; letter-spacing:1.4px; text-transform:uppercase; color:#e0f2fe; margin-bottom:4px; }
.uw-hero h1 { font-size:24px; font-weight:700; letter-spacing:-.4px; margin:0 0 4px; color:#fff; }
.uw-hero p { margin:0; font-size:13.5px; color:rgba(240,249,255,.88); max-width:560px; }
.uw-hero-side { display:flex; align-items:center; gap:10px; flex-wrap:wrap; position:relative; z-index:1; }
.uw-hero-chip { padding:10px 14px; border-radius:12px; background:rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.25); display:flex; flex-direction:column; gap:2px; }
.uw-hero-chip span { font-size:10.5px; text-transform:uppercase; letter-spacing:.8px; color:rgba(240,249,255,.8); font-weight:600; }
.uw-hero-chip strong { font-size:14px; color:#fff; white-space:nowrap; }

.uw-btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:10px 18px; border-radius:12px; font-size:13.5px; font-weight:600; font-family:inherit; border:1px solid transparent; cursor:pointer; text-decoration:none; white-space:nowrap; transition:transform .18s var(--ease-out),box-shadow .18s,background .18s,opacity .18s; }
.uw-btn:active:not(:disabled) { transform:scale(.97); }
.uw-btn:disabled { opacity:.5; cursor:not-allowed; box-shadow:none !important; }
.uw-btn-sm { padding:7px 13px; font-size:12.5px; border-radius:10px; }
.uw-btn-block { width:100%; padding:15px 20px; font-size:15px; border-radius:14px; }
.uw-btn-primary { color:#fff; background:linear-gradient(135deg,#2563eb 0%,#3b82f6 45%,var(--uw-teal) 130%); box-shadow:0 10px 22px -10px rgba(37,99,235,.75); }
.uw-btn-primary:hover:not(:disabled) { transform:translateY(-1px); box-shadow:0 14px 28px -10px rgba(37,99,235,.85); }
.uw-btn-success { color:#fff; background:linear-gradient(135deg,#059669,#10b981); box-shadow:0 10px 22px -10px rgba(16,185,129,.8); }
.uw-btn-success:hover:not(:disabled) { transform:translateY(-1px); }
.uw-btn-danger { color:#fff; background:linear-gradient(135deg,#dc2626,#f43f5e); box-shadow:0 10px 22px -10px rgba(239,68,68,.8); }
.uw-btn-danger:hover:not(:disabled) { transform:translateY(-1px); }
.uw-btn-light { color:var(--gray-700); background:#fff; border-color:var(--gray-200); }
.uw-btn-light:hover { background:var(--gray-50); border-color:var(--gray-300); }
.uw-btn-glass { color:#fff; background:rgba(255,255,255,.12); border-color:rgba(255,255,255,.22); backdrop-filter:blur(8px); }
.uw-btn-glass:hover { background:rgba(255,255,255,.2); transform:translateY(-1px); }
.uw-btn.is-loading { position:relative; color:transparent !important; }
.uw-btn.is-loading::after { content:''; position:absolute; width:18px; height:18px; border-radius:50%; border:2.5px solid rgba(255,255,255,.4); border-top-color:#fff; animation:uwSpin .7s linear infinite; }
@keyframes uwSpin { to { transform:rotate(360deg); } }

.uw-card { background:#fff; border:1px solid var(--gray-200); border-radius:18px; box-shadow:0 1px 2px rgba(15,23,42,.04),0 8px 24px -16px rgba(15,23,42,.18); min-width:0; }
.uw-card-head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:18px 22px; border-bottom:1px solid var(--gray-100); }
.uw-card-head h3 { margin:0; font-size:15px; font-weight:700; color:var(--gray-900); }
.uw-link { font-size:13px; font-weight:600; color:var(--primary); text-decoration:none; }
.uw-link:hover { text-decoration:underline; }

.uw-alert { display:flex; align-items:center; gap:10px; padding:13px 16px; border-radius:14px; font-size:13.5px; font-weight:500; }
.uw-alert-error { background:#fff1f2; color:#b91c1c; border:1px solid #fecdd3; }
.uw-success { display:flex; align-items:center; gap:14px; padding:16px 18px; border-radius:16px; background:linear-gradient(135deg,#ecfdf5,#f0fdfa); border:1px solid #a7f3d0; animation:fadeInUp .35s var(--ease-out) both; }
.uw-success-icon { width:42px; height:42px; flex-shrink:0; border-radius:50%; display:flex; align-items:center; justify-content:center; color:#fff; background:linear-gradient(135deg,#059669,#34d399); box-shadow:0 0 0 6px rgba(16,185,129,.14); }
.uw-success-body { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; font-size:13px; color:#065f46; }
.uw-success-body strong { font-size:14.5px; color:#064e3b; }

/* create layout */
.uw-create-grid { display:grid; grid-template-columns:minmax(0,1fr) 380px; gap:20px; align-items:start; }
.uw-form { padding:8px 24px 24px; }
.uw-step { padding:20px 0; border-bottom:1px dashed var(--gray-200); }
.uw-step:last-of-type { border-bottom:0; margin-bottom:8px; }
.uw-step-head { display:flex; align-items:flex-start; gap:12px; margin-bottom:16px; }
.uw-step-head h3 { margin:0; font-size:15px; font-weight:700; color:var(--gray-900); }
.uw-step-head p { margin:2px 0 0; font-size:12.5px; color:var(--gray-500); }
.uw-step-no { width:28px; height:28px; flex-shrink:0; border-radius:9px; display:flex; align-items:center; justify-content:center; font-size:13px; font-weight:700; color:#fff; background:linear-gradient(135deg,#2563eb,var(--uw-teal)); box-shadow:0 6px 14px -6px rgba(37,99,235,.7); }
.uw-row-2 { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.uw-field { display:flex; flex-direction:column; gap:6px; margin-bottom:14px; min-width:0; }
.uw-field:last-child { margin-bottom:0; }
.uw-field label { font-size:12.5px; font-weight:600; color:var(--gray-700); }
.uw-field label em { font-style:normal; font-weight:500; color:var(--gray-400); }
.uw-input { width:100%; padding:11px 14px; border:1.5px solid var(--gray-200); border-radius:12px; background:#fff; font-size:14px; font-family:inherit; color:var(--gray-900); transition:border-color .18s,box-shadow .18s,background .18s; min-width:0; }
.uw-input:hover { border-color:var(--gray-300); }
.uw-input:focus { outline:none; border-color:#3b82f6; box-shadow:0 0 0 4px rgba(59,130,246,.12); }
.uw-input.is-invalid { border-color:#f87171; box-shadow:0 0 0 4px rgba(248,113,113,.12); }
.uw-input-lg { font-size:18px; font-weight:700; letter-spacing:-.2px; }
.uw-input-icon { padding-left:40px; }
textarea.uw-input { resize:vertical; min-height:44px; }
.uw-mono { font-family:'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,monospace; font-size:13px; letter-spacing:.2px; }
.uw-affix { position:relative; display:flex; align-items:stretch; }
.uw-affix .uw-input { flex:1; }
.uw-prefix { position:absolute; left:14px; top:50%; transform:translateY(-50%); font-weight:700; color:var(--gray-400); pointer-events:none; }
.uw-prefix + .uw-input { padding-left:30px; }
.uw-suffix { position:absolute; right:8px; top:50%; transform:translateY(-50%); font-size:11.5px; font-weight:700; padding:4px 9px; border-radius:8px; pointer-events:none; }
.uw-affix .uw-input:has(+ .uw-suffix) { padding-right:72px; }
.uw-suffix-usdt { color:var(--uw-teal-d); background:rgba(14,165,233,.12); }
.uw-addr-state { color:var(--gray-400); background:transparent; }
.uw-addr-state.ok { color:#059669; background:#d1fae5; }
.uw-addr-state.bad { color:#dc2626; background:#fee2e2; }
.uw-hint { font-size:11.5px; color:var(--gray-400); }
.uw-hint-bad { color:#dc2626; }
.uw-quick { display:flex; gap:6px; flex-wrap:wrap; }
.uw-quick button { padding:5px 11px; border-radius:8px; border:1px solid var(--gray-200); background:var(--gray-50); font-size:12px; font-weight:600; color:var(--gray-600); cursor:pointer; font-family:inherit; transition:all .15s; }
.uw-quick button:hover { border-color:#93c5fd; color:#2563eb; background:#eff6ff; }
.uw-quick .uw-quick-max { color:var(--uw-teal-d); border-color:rgba(14,165,233,.35); background:rgba(14,165,233,.08); }

/* merchant search */
.uw-search { position:relative; }
.uw-search-icon { position:absolute; left:14px; top:50%; transform:translateY(-50%); color:var(--gray-400); pointer-events:none; }
.uw-search-sm .uw-search-icon { left:12px; }
.uw-search-sm .uw-input-icon { padding-left:36px; }
.uw-spinner { position:absolute; right:14px; top:50%; width:16px; height:16px; margin-top:-8px; border-radius:50%; border:2px solid var(--gray-200); border-top-color:#3b82f6; animation:uwSpin .7s linear infinite; }
.uw-results { position:absolute; left:0; right:0; top:calc(100% + 6px); z-index:30; background:#fff; border:1px solid var(--gray-200); border-radius:14px; box-shadow:0 20px 40px -16px rgba(15,23,42,.3); padding:6px; max-height:340px; overflow-y:auto; animation:fadeInUp .18s var(--ease-out); }
.uw-result { width:100%; display:flex; align-items:center; gap:12px; padding:10px; border:0; border-radius:10px; background:transparent; cursor:pointer; text-align:left; font-family:inherit; }
.uw-result:hover, .uw-result.active { background:#f0f9ff; }
.uw-result-main { flex:1; min-width:0; display:flex; flex-direction:column; }
.uw-result-main strong { font-size:13.5px; color:var(--gray-900); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.uw-result-main small, .uw-result-bal small { font-size:11.5px; color:var(--gray-500); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.uw-result-bal { display:flex; flex-direction:column; align-items:flex-end; font-size:13px; font-weight:700; color:var(--gray-800); }
.uw-result-empty { padding:16px; text-align:center; font-size:13px; color:var(--gray-500); }
.uw-avatar { width:44px; height:44px; flex-shrink:0; border-radius:12px; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:14px; color:#fff; background:linear-gradient(135deg,#3b82f6,var(--uw-teal)); }
.uw-avatar-sm { width:34px; height:34px; font-size:12px; border-radius:10px; }
.uw-merchant { border:1.5px solid #bfdbfe; border-radius:16px; overflow:hidden; background:linear-gradient(180deg,#f5faff,#fff); animation:fadeInUp .25s var(--ease-out); }
.uw-merchant-top { display:flex; align-items:center; gap:12px; padding:14px 16px; }
.uw-merchant-info { flex:1; min-width:0; display:flex; flex-direction:column; gap:4px; }
.uw-merchant-info strong { font-size:15px; color:var(--gray-900); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.uw-merchant-info > span { display:flex; align-items:center; gap:6px; flex-wrap:wrap; font-size:12px; color:var(--gray-500); }
.uw-merchant-bal { display:grid; grid-template-columns:1fr 1fr; border-top:1px solid #dbeafe; }
.uw-merchant-bal > div { padding:12px 16px; display:flex; flex-direction:column; gap:2px; }
.uw-merchant-bal > div + div { border-left:1px solid #dbeafe; }
.uw-merchant-bal span { font-size:11px; text-transform:uppercase; letter-spacing:.6px; color:var(--gray-500); font-weight:600; }
.uw-merchant-bal strong { font-size:17px; color:var(--gray-900); letter-spacing:-.3px; }
.uw-text-warning { color:#d97706 !important; }
.uw-pill { display:inline-flex; align-items:center; padding:2px 8px; border-radius:999px; font-size:10.5px; font-weight:700; text-transform:uppercase; letter-spacing:.4px; background:var(--gray-100); color:var(--gray-600); }
.uw-pill-ok { background:#d1fae5; color:#047857; }
.uw-pill-warn { background:#fef3c7; color:#b45309; }
.uw-pill-tg { background:#e0f2fe; color:#0369a1; }

/* live preview */
.uw-preview { position:sticky; top:calc(var(--header-height) + 16px); overflow:hidden; padding:22px; border-radius:20px; color:var(--gray-700);
  background:linear-gradient(180deg,#f0f9ff 0%,#ffffff 100%); border:1px solid #bae6fd; box-shadow:0 14px 32px -20px rgba(14,165,233,.45); transition:box-shadow .25s,border-color .25s; }
.uw-preview.is-danger { border-color:#fca5a5; box-shadow:0 14px 32px -20px rgba(239,68,68,.45); }
.uw-preview-glow { display:none; }

.uw-preview > *:not(.uw-preview-glow) { position:relative; }
.uw-preview-head { display:flex; justify-content:space-between; align-items:center; font-size:11.5px; font-weight:700; letter-spacing:1.2px; text-transform:uppercase; color:#0369a1; }
.uw-live { display:inline-flex; align-items:center; gap:6px; color:#0284c7; }
.uw-live i { width:7px; height:7px; border-radius:50%; background:#0ea5e9; animation:uwPulse 1.8s infinite; }
@keyframes uwPulse { 0% { box-shadow:0 0 0 0 rgba(14,165,233,.6); } 70% { box-shadow:0 0 0 8px rgba(14,165,233,0); } 100% { box-shadow:0 0 0 0 rgba(14,165,233,0); } }
.uw-preview-total { margin:18px 0 16px; padding:18px; border-radius:16px; background:linear-gradient(135deg,#2563eb,#0ea5e9); display:flex; flex-direction:column; gap:4px; }
.uw-preview-total small { font-size:12px; color:rgba(240,249,255,.85); }
.uw-preview-total strong { font-size:32px; font-weight:800; letter-spacing:-1px; color:#fff; line-height:1.15; word-break:break-all; }
.uw-preview-total span { font-size:12.5px; color:#e0f2fe; font-weight:600; }
.uw-preview-rows { display:flex; flex-direction:column; gap:10px; }
.uw-preview-rows > div { display:flex; justify-content:space-between; gap:12px; font-size:13px; }
.uw-preview-rows span { color:var(--gray-500); }
.uw-preview-rows b { color:var(--gray-900); font-weight:600; text-align:right; }
.uw-preview-rows .uw-preview-sep { height:1px; background:#e0f2fe; }
.uw-preview-strong span { color:var(--gray-800); font-weight:600; }
.uw-preview-strong b { font-size:16px; font-weight:800; }
.uw-preview b.uw-neg, .uw-neg { color:#dc2626 !important; }
.uw-meter { margin-top:18px; height:8px; border-radius:99px; background:#e0f2fe; overflow:hidden; }
.uw-meter-bar { height:100%; width:0; border-radius:99px; background:linear-gradient(90deg,#38bdf8,#2563eb); transition:width .35s var(--ease-out),background .25s; }
.uw-meter-bar.high { background:linear-gradient(90deg,#fbbf24,#f59e0b); }
.uw-meter-bar.over { background:linear-gradient(90deg,#f87171,#ef4444); }
.uw-meter-label { margin-top:6px; font-size:11.5px; color:var(--gray-500); }
.uw-preview-warn { margin-top:14px; display:flex; align-items:center; gap:8px; padding:10px 12px; border-radius:12px; background:#fef2f2; border:1px solid #fecaca; color:#b91c1c; font-size:12.5px; font-weight:600; }
.uw-preview-notes { margin:16px 0 0; padding:14px 0 0 0; list-style:none; border-top:1px solid #e0f2fe; display:flex; flex-direction:column; gap:6px; }
.uw-preview-notes li { position:relative; padding-left:16px; font-size:12px; color:var(--gray-500); }
.uw-preview-notes li::before { content:''; position:absolute; left:2px; top:7px; width:5px; height:5px; border-radius:50%; background:#0ea5e9; }
.uw-preview-notes b { color:var(--gray-800); }

/* stats */
.uw-stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.uw-stat { --c:#3b82f6; position:relative; overflow:hidden; padding:18px 18px 16px; border-radius:18px; background:#fff; border:1px solid var(--gray-200); display:flex; flex-direction:column; gap:3px; transition:transform .2s var(--ease-out),box-shadow .2s; }
.uw-stat:hover { transform:translateY(-2px); box-shadow:0 14px 28px -18px rgba(15,23,42,.35); }
.uw-stat::before { content:''; position:absolute; inset:0 0 auto 0; height:3px; background:var(--c); }
.uw-stat::after { content:''; position:absolute; right:-40px; bottom:-40px; width:120px; height:120px; border-radius:50%; background:var(--c); opacity:.06; }
.uw-stat-icon { width:38px; height:38px; border-radius:11px; display:flex; align-items:center; justify-content:center; color:var(--c); background:color-mix(in srgb,var(--c) 12%,#fff); margin-bottom:8px; }
.uw-stat span { font-size:11.5px; font-weight:600; text-transform:uppercase; letter-spacing:.6px; color:var(--gray-500); }
.uw-stat strong { font-size:21px; font-weight:800; letter-spacing:-.5px; color:var(--gray-900); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.uw-stat small { font-size:12px; color:var(--gray-500); }
.uw-stat-processing { --c:#0ea5e9; }
.uw-stat-completed { --c:#2563eb; }
.uw-stat-failed { --c:#0284c7; }
.uw-stat-today { --c:#3b82f6; }

/* toolbar */
.uw-toolbar { display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; padding:16px 18px; border-bottom:1px solid var(--gray-100); }
.uw-tabs { display:flex; gap:4px; padding:4px; border-radius:12px; background:var(--gray-100); overflow-x:auto; max-width:100%; scrollbar-width:none; }
.uw-tabs::-webkit-scrollbar { display:none; }
.uw-tabs a { display:inline-flex; align-items:center; gap:6px; padding:7px 13px; border-radius:9px; font-size:13px; font-weight:600; color:var(--gray-600); text-decoration:none; white-space:nowrap; transition:all .15s; }
.uw-tabs a:hover { color:var(--gray-900); }
.uw-tabs a.active { background:#fff; color:var(--gray-900); box-shadow:0 1px 3px rgba(15,23,42,.12); }
.uw-tabs em { font-style:normal; font-size:11px; padding:1px 7px; border-radius:99px; background:rgba(100,116,139,.14); color:var(--gray-600); }
.uw-tabs em.uw-em-warn { background:#fef3c7; color:#b45309; }
.uw-filters { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.uw-filters .uw-input { padding:8px 12px; font-size:13px; border-radius:10px; }
.uw-filters .uw-search { width:240px; }
.uw-filters .uw-search .uw-input { padding-left:36px; }
.uw-filters input[type=date] { width:150px; }

/* tables */
.uw-table-wrap { overflow-x:auto; -webkit-overflow-scrolling:touch; }
.uw-table { width:100%; border-collapse:separate; border-spacing:0; }
.uw-table th { padding:11px 16px; text-align:left; font-size:11px; font-weight:700; letter-spacing:.7px; text-transform:uppercase; color:var(--gray-500); background:var(--gray-50); border-bottom:1px solid var(--gray-200); white-space:nowrap; }
.uw-table td { padding:14px 16px; border-bottom:1px solid var(--gray-100); font-size:13.5px; color:var(--gray-700); vertical-align:middle; }
.uw-table td > strong, .uw-table td > small, .uw-table td > code { display:block; }
.uw-table td small { font-size:11.5px; color:var(--gray-500); margin-top:3px; }
.uw-table td strong { color:var(--gray-900); font-weight:700; }
.uw-table tbody tr { transition:background .12s; }
.uw-table tbody tr:hover td { background:#f5faff; }
.uw-table tbody tr:last-child td { border-bottom:0; }
.uw-table .uw-r { text-align:right; white-space:nowrap; }
.uw-table td[data-label=Merchant] strong { white-space:nowrap; max-width:200px; overflow:hidden; text-overflow:ellipsis; }
.uw-table td small { white-space:nowrap; }
.uw-row-processing td:first-child { box-shadow:inset 3px 0 0 #f59e0b; }
.uw-trx { font-size:12.5px; font-weight:600; color:#1d4ed8; }
.uw-usdt { color:var(--uw-teal-d) !important; }
.uw-usdt::after { content:' USDT'; font-size:10.5px; font-weight:700; opacity:.7; }
.uw-addr { display:flex; align-items:center; gap:6px; }
.uw-addr code { white-space:nowrap; font-size:12.5px; color:var(--gray-700); background:var(--gray-100); padding:3px 8px; border-radius:7px; }
.uw-icon-btn { width:28px; height:28px; display:inline-flex; align-items:center; justify-content:center; border-radius:8px; border:1px solid var(--gray-200); background:#fff; color:var(--gray-500); cursor:pointer; transition:all .15s; }
.uw-icon-btn:hover { color:#2563eb; border-color:#bfdbfe; background:#eff6ff; }
.uw-hash, .uw-reason { max-width:220px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.uw-reason { color:#dc2626 !important; }
.uw-tg-dot { display:inline-block; padding:0 5px; border-radius:5px; font-size:9.5px; font-weight:800; color:#0369a1; background:#e0f2fe; }
.uw-badge { width:max-content; display:inline-flex; align-items:center; gap:6px; padding:4px 10px; border-radius:999px; font-size:12px; font-weight:700; white-space:nowrap; }
.uw-badge i { width:6px; height:6px; border-radius:50%; background:currentColor; }
.uw-badge-processing { background:#fef3c7; color:#b45309; }
.uw-badge-processing i { animation:uwPulseAmber 1.6s infinite; }
@keyframes uwPulseAmber { 0% { box-shadow:0 0 0 0 rgba(245,158,11,.6); } 70% { box-shadow:0 0 0 6px rgba(245,158,11,0); } 100% { box-shadow:0 0 0 0 rgba(245,158,11,0); } }
.uw-badge-completed { background:#d1fae5; color:#047857; }
.uw-badge-failed { background:#fee2e2; color:#b91c1c; }
.uw-actions { display:inline-flex; gap:6px; justify-content:flex-end; flex-wrap:nowrap; }
.uw-act { display:inline-flex; align-items:center; gap:5px; padding:7px 10px; border-radius:9px; font-size:12px; font-weight:700; font-family:inherit; cursor:pointer; border:1px solid transparent; transition:all .15s; }
.uw-act:hover { transform:translateY(-1px); }
.uw-act-edit { background:#eff6ff; color:#1d4ed8; border-color:#dbeafe; }
.uw-act-edit:hover { background:#dbeafe; }
.uw-act-complete { background:#ecfdf5; color:#047857; border-color:#d1fae5; }
.uw-act-complete:hover { background:#d1fae5; }
.uw-act-fail { background:#fff1f2; color:#be123c; border-color:#ffe4e6; }
.uw-act-fail:hover { background:#ffe4e6; }
.uw-empty { padding:48px 20px; text-align:center; color:var(--gray-400); font-size:13.5px; }
.uw-empty p { margin:10px 0 0; }
.uw-pager { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; padding:14px 18px; border-top:1px solid var(--gray-100); font-size:12.5px; color:var(--gray-500); }
.uw-pager div { display:flex; gap:4px; }
.uw-pager a { min-width:34px; height:34px; display:inline-flex; align-items:center; justify-content:center; padding:0 10px; border-radius:10px; border:1px solid var(--gray-200); color:var(--gray-600); font-weight:600; text-decoration:none; transition:all .15s; }
.uw-pager a:hover { border-color:#93c5fd; color:#2563eb; }
.uw-pager a.active { background:linear-gradient(135deg,#2563eb,#3b82f6); color:#fff; border-color:transparent; box-shadow:0 6px 14px -6px rgba(37,99,235,.7); }

/* modals */
.uw-modal .modal { max-width:560px; border-radius:22px; }
.uw-modal .modal-body { padding:20px 22px; }
.uw-modal .modal-footer { padding:14px 22px 20px; border-top:0; }
.uw-modal-head { display:flex; align-items:center; gap:12px; padding:20px 22px; border-bottom:1px solid var(--gray-100); }
.uw-modal-head > div:nth-child(2) { flex:1; min-width:0; }
.uw-modal-head h3 { margin:0; font-size:17px; font-weight:700; }
.uw-modal-head p { margin:2px 0 0; font-size:12.5px; color:var(--gray-500); font-family:'JetBrains Mono',ui-monospace,monospace; }
.uw-modal-head .modal-close { font-size:22px; }
.uw-modal-icon { width:42px; height:42px; flex-shrink:0; border-radius:12px; display:flex; align-items:center; justify-content:center; color:#fff; background:linear-gradient(135deg,#2563eb,#3b82f6); box-shadow:0 8px 18px -8px rgba(37,99,235,.8); }
.uw-modal-merchant { display:flex; align-items:center; gap:8px; flex-wrap:wrap; padding:10px 14px; margin-bottom:16px; border-radius:12px; background:var(--gray-50); border:1px solid var(--gray-100); font-size:12.5px; color:var(--gray-500); }
.uw-modal-merchant strong { font-size:14px; color:var(--gray-900); }
.uw-modal-merchant [data-f=status] { margin-left:auto; }
.uw-modal-hero { text-align:center; padding:28px 26px 6px; }
.uw-modal-hero h3 { margin:14px 0 6px; font-size:19px; font-weight:800; color:var(--gray-900); }
.uw-modal-hero p { margin:0; font-size:13.5px; line-height:1.55; color:var(--gray-600); }
.uw-modal-hero p b { color:var(--gray-900); }
.uw-modal-ring { width:68px; height:68px; margin:0 auto; border-radius:50%; display:flex; align-items:center; justify-content:center; color:#fff; animation:uwPop .4s var(--ease-out) both; }
@keyframes uwPop { from { transform:scale(.6); opacity:0; } to { transform:scale(1); opacity:1; } }
.uw-modal-hero-success .uw-modal-ring { background:linear-gradient(135deg,#059669,#34d399); box-shadow:0 0 0 10px rgba(16,185,129,.12),0 14px 28px -10px rgba(16,185,129,.7); }
.uw-modal-hero-danger .uw-modal-ring { background:linear-gradient(135deg,#dc2626,#fb7185); box-shadow:0 0 0 10px rgba(239,68,68,.12),0 14px 28px -10px rgba(239,68,68,.7); }
.uw-modal .uw-modal-hero ~ .modal-footer .uw-btn { flex:1; }
.uw-confirm-box { display:flex; flex-direction:column; gap:10px; padding:14px 16px; margin-bottom:16px; border-radius:14px; background:var(--gray-50); border:1px solid var(--gray-100); }
.uw-confirm-box > div { display:flex; justify-content:space-between; align-items:baseline; gap:14px; font-size:13px; }
.uw-confirm-box span { color:var(--gray-500); flex-shrink:0; }
.uw-confirm-box b, .uw-confirm-box code { color:var(--gray-900); text-align:right; font-size:12.5px; }
.uw-break { word-break:break-all; }
.uw-diff { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; padding:14px; border-radius:14px; background:var(--gray-50); border:1px solid var(--gray-200); transition:all .2s; }
.uw-diff > div { display:flex; flex-direction:column; gap:2px; min-width:0; }
.uw-diff span { font-size:11px; text-transform:uppercase; letter-spacing:.5px; font-weight:600; color:var(--gray-500); }
.uw-diff b { font-size:14.5px; color:var(--gray-900); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.uw-diff-effect { grid-column:1/-1; margin:4px 0 0; padding-top:10px; border-top:1px dashed var(--gray-200); font-size:12.5px; color:var(--gray-600); }
.uw-diff.is-up { background:#fffbeb; border-color:#fde68a; }
.uw-diff.is-up .uw-diff-change b { color:#b45309; }
.uw-diff.is-down { background:#ecfdf5; border-color:#a7f3d0; }
.uw-diff.is-down .uw-diff-change b { color:#047857; }
.uw-diff.is-bad { background:#fff1f2; border-color:#fecdd3; }
.uw-diff.is-bad .uw-diff-change b, .uw-diff.is-bad .uw-diff-effect { color:#b91c1c; font-weight:600; }
.uw-toast { position:fixed; left:50%; bottom:28px; z-index:1100; transform:translate(-50%,20px); opacity:0; padding:10px 18px; border-radius:12px; background:#0b1220; color:#fff; font-size:13px; font-weight:600; box-shadow:0 14px 30px -12px rgba(0,0,0,.5); transition:all .25s var(--ease-out); }
.uw-toast.show { opacity:1; transform:translate(-50%,0); }

/* responsive */
@media (max-width:1200px) {
  .uw-create-grid { grid-template-columns:minmax(0,1fr) 340px; }
  .uw-stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:1024px) {
  .uw-create-grid { grid-template-columns:minmax(0,1fr); }
  .uw-preview { position:relative; top:0; order:-1; }
  .uw-filters { width:100%; }
  .uw-filters .uw-search { flex:1 1 100%; width:auto; }
  .uw-filters input[type=date] { flex:1; width:auto; }
}
@media (max-width:768px) {
  .uw-page { gap:14px; }
  .uw-hero { padding:20px; border-radius:18px; }
  .uw-hero h1 { font-size:20px; }
  .uw-hero-icon { width:48px; height:48px; border-radius:14px; }
  .uw-hero-side { width:100%; }
  .uw-hero-chip { flex:1; }
  .uw-hero-side .uw-btn { width:100%; }
  .uw-form { padding:4px 16px 18px; }
  .uw-row-2 { grid-template-columns:minmax(0,1fr); gap:0; }
  .uw-row-2 .uw-field { margin-bottom:14px; }
  .uw-preview-total strong { font-size:28px; }
  .uw-toolbar { padding:14px; }
  .uw-tabs { width:100%; }
  .uw-tabs a { flex:1; justify-content:center; }

  .uw-table thead { display:none; }
  .uw-table, .uw-table tbody, .uw-table tr, .uw-table td { display:block; width:100%; }
  .uw-table tbody { padding:12px; display:flex; flex-direction:column; gap:12px; }
  .uw-table tbody tr { border:1px solid var(--gray-200); border-radius:16px; overflow:hidden; background:#fff; box-shadow:0 6px 16px -12px rgba(15,23,42,.25); }
  .uw-table tbody tr:hover td { background:transparent; }
  .uw-table td { display:grid; grid-template-columns:auto minmax(0,1fr); column-gap:14px; row-gap:2px; justify-items:end; align-items:center; padding:10px 14px; border-bottom:1px solid var(--gray-100); text-align:right !important; }
  .uw-table td::before { content:attr(data-label); grid-column:1; grid-row:1 / span 4; align-self:start; justify-self:start; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.5px; color:var(--gray-400); padding-top:2px; }
  .uw-table td > * { grid-column:2; max-width:100%; }
  .uw-table td small { margin-top:0; }
  .uw-table td:first-child { background:var(--gray-50); }
  .uw-row-processing td:first-child { box-shadow:inset 3px 0 0 #f59e0b; }
  .uw-table td[data-label=Actions] { border-bottom:0; }
  .uw-table td[data-label=Actions]::before { display:none; }
  .uw-table td[data-label=Actions] > * { grid-column:1 / -1; }
  .uw-actions { width:100%; }
  .uw-act { flex:1; justify-content:center; padding:10px; }
  .uw-hash, .uw-reason { max-width:180px; }

  .uw-modal .modal { width:100%; max-width:none; max-height:92vh; margin-top:auto; border-radius:22px 22px 0 0; }
  .uw-modal.modal-overlay { align-items:flex-end; }
  .uw-modal .modal-footer { position:sticky; bottom:0; background:#fff; }
  .uw-modal .modal-footer .uw-btn { flex:1; }
  .uw-diff { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .uw-diff-change { grid-column:1/-1; }
  .uw-pager { justify-content:center; }
}
@media (max-width:480px) {
  .uw-stats { grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:10px; }
  .uw-stat { padding:14px; border-radius:14px; }
  .uw-stat strong { font-size:16px; }
  .uw-stat-icon { width:32px; height:32px; margin-bottom:4px; }
  .uw-merchant-bal strong { font-size:15px; }
  .uw-quick button { flex:1; }
  .uw-act span { display:none; }
}
@media (prefers-reduced-motion:reduce) {
  .uw-page, .uw-page *, .uw-modal * { animation:none !important; transition:none !important; }
}
