/* ── Cards ─────────────────────────────────────────────────────────────────── */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s, background 0.2s;
}

.card-hover:hover {
    transform: translateY(-2px);
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.card-body   { padding: 1rem; }
.card-header { padding: 0.85rem 1rem; border-bottom: 1px solid var(--border); }
.card-footer { padding: 0.75rem 1rem; border-top: 1px solid var(--border); }

/* Balance Card */
.balance-card {
    background: linear-gradient(135deg, rgba(108,99,255,0.15), rgba(0,212,170,0.10));
    border: 1px solid rgba(108,99,255,0.25);
    border-radius: var(--radius);
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
}

.balance-card::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 160px; height: 160px;
    background: radial-gradient(circle, rgba(108,99,255,0.2), transparent 70%);
    border-radius: 50%;
}

.balance-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.balance-amount {
    font-family: var(--font-mono);
    font-size: 2.25rem;
    font-weight: 600;
    line-height: 1.1;
    color: var(--text-primary);
}

.balance-currency {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-left: 0.25rem;
}

/* Stats Row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
}

.stat-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.75rem 0.65rem;
    text-align: center;
}

.stat-value {
    font-family: var(--font-numeric);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    font-feature-settings: 'tnum' 1, 'lnum' 1;
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: 0.2rem;
}

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem 1.1rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    border: none;
    transition: transform 0.15s, opacity 0.15s, background 0.15s, box-shadow 0.15s;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn:active          { transform: scale(0.96); }
.btn:disabled        { opacity: 0.45; pointer-events: none; }

.btn-primary {
    background: var(--accent-primary);
    color: #fff;
    box-shadow: 0 4px 16px rgba(108,99,255,0.3);
}
.btn-primary:hover   { background: #5a53e0; box-shadow: 0 4px 20px rgba(108,99,255,0.45); }

.btn-secondary {
    background: var(--accent-secondary);
    color: #000;
    box-shadow: 0 4px 16px rgba(0,212,170,0.25);
}

.btn-danger {
    background: var(--accent-danger);
    color: #fff;
}

.btn-ghost {
    background: rgba(0,0,0,0.03);
    color: var(--text-primary);
    border: 1px solid var(--border);
}
.btn-ghost:hover { background: rgba(0,0,0,0.06); }

.btn-outline {
    background: transparent;
    color: var(--accent-primary);
    border: 1px solid rgba(108,99,255,0.4);
}

.btn-sm  { padding: 0.4rem 0.8rem; font-size: 0.8rem; }
.btn-lg  { padding: 0.85rem 1.5rem; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-icon {
    width: 38px; height: 38px;
    padding: 0;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    font-size: 1rem;
}

/* ── Badges / Status ───────────────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.22rem 0.6rem;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: capitalize;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.badge-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.badge-pending    { background: rgba(255,179,71,0.15);  color: var(--accent-warning);   }
.badge-processing { background: rgba(108,99,255,0.15);  color: var(--accent-primary);   }
.badge-active     { background: rgba(108,99,255,0.15);  color: var(--accent-primary);   }
.badge-completed  { background: rgba(0,230,118,0.15);   color: var(--accent-success);   }
.badge-partial    { background: rgba(0,212,170,0.15);   color: var(--accent-secondary); }
.badge-cancelled         { background: rgba(255,77,109,0.15);  color: var(--accent-danger);    }
.badge-cancel_requested  { background: rgba(255,153,0,0.15);   color: #f90;                    }
.badge-refunded          { background: rgba(136,136,170,0.15); color: var(--text-secondary);   }
.badge-approved   { background: rgba(0,230,118,0.15);   color: var(--accent-success);   }
.badge-rejected   { background: rgba(255,77,109,0.15);  color: var(--accent-danger);    }

.badge-active .badge-dot, .badge-processing .badge-dot {
    background: var(--accent-primary);
    animation: pulseDot 1.5s ease-in-out infinite;
}
.badge-pending .badge-dot { background: var(--accent-warning); }
.badge-completed .badge-dot { background: var(--accent-success); }
.badge-cancelled .badge-dot { background: var(--accent-danger); }
.badge-partial .badge-dot   { background: var(--accent-secondary); }

/* ── Form Controls ─────────────────────────────────────────────────────────── */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 0.85rem;
}

.form-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 0.7rem 0.9rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

.form-control:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(88,101,242,0.15);
}

.form-control::placeholder { color: var(--text-secondary); opacity: 0.6; }

.form-control-mono {
    font-family: var(--font-mono);
    font-size: 0.82rem;
}

select.form-control {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='%236b7094' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 20px;
    padding-right: 2.5rem;
    background-color: var(--bg-card);
}

select.form-control option { background: var(--bg-secondary); color: var(--text-primary); }

/* Range Slider */
.range-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(to right, var(--accent-primary) 0%, var(--accent-primary) 50%, rgba(0,0,0,0.08) 50%);
    outline: none;
    cursor: pointer;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--accent-primary);
    box-shadow: 0 2px 8px rgba(108,99,255,0.5);
    cursor: grab;
    transition: transform 0.15s;
}

.range-slider::-webkit-slider-thumb:active { transform: scale(1.2); cursor: grabbing; }

/* ── Progress Bar ──────────────────────────────────────────────────────────── */
.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(0,0,0,0.06);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    transition: width 0.5s ease;
}

/* ── Order Card ────────────────────────────────────────────────────────────── */
.order-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.9rem;
    transition: transform 0.2s, border-color 0.2s;
}

.order-card:active { transform: scale(0.99); }

.order-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.order-id {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.order-name {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.35rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.order-link {
    font-size: 0.78rem;
    color: var(--accent-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
    margin-bottom: 0.6rem;
}

.order-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.6rem;
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.order-charge {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ── Service Card ──────────────────────────────────────────────────────────── */
.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: transform 0.2s, border-color 0.2s, background 0.2s;
    cursor: pointer;
}

.service-card:active, .service-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

.service-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.03);
    border-radius: var(--radius-xs);
}

.service-info { flex: 1; min-width: 0; }

.service-name {
    font-size: 0.85rem;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 0.2rem;
}

.service-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.service-rate {
    color: var(--accent-secondary);
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 0.8rem;
}

/* ── Filter Chips ──────────────────────────────────────────────────────────── */
.filter-scroll {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 0 1rem;
}
.filter-scroll::-webkit-scrollbar { display: none; }

.chip {
    flex-shrink: 0;
    padding: 0.4rem 0.85rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.chip.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #fff;
    font-weight: 700;
}

.chip:active:not(.active) {
    background: rgba(108,99,255,0.2);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* ── Tabs ──────────────────────────────────────────────────────────────────── */
.tabs {
    display: flex;
    background: rgba(0,0,0,0.03);
    border-radius: var(--radius-sm);
    padding: 3px;
    gap: 2px;
}

.tab {
    flex: 1;
    padding: 0.45rem 0.6rem;
    border-radius: calc(var(--radius-sm) - 2px);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: none;
    transition: all 0.2s;
    text-align: center;
}

.tab.active {
    background: var(--accent-primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(108,99,255,0.35);
}

/* ── Toast Notifications ───────────────────────────────────────────────────── */
#toast-container {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    pointer-events: none;
    width: min(90vw, 340px);
}

.toast {
    background: rgba(17,17,24,0.96);
    border: 1px solid var(--border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-sm);
    padding: 0.7rem 1rem;
    font-size: 0.875rem;
    color: var(--text-primary);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    animation: toastIn 0.3s ease forwards;
    pointer-events: auto;
    width: 100%;
}

.toast.toast-out { animation: toastOut 0.3s ease forwards; }

.toast-success { border-color: rgba(0,230,118,0.3); }
.toast-error   { border-color: rgba(255,77,109,0.3); }
.toast-warning { border-color: rgba(255,179,71,0.3); }

/* ── Step Indicator ────────────────────────────────────────────────────────── */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 1rem;
}

.step {
    display: flex;
    align-items: center;
}

.step-dot {
    width: 28px; height: 28px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(0,0,0,0.03);
    border: 2px solid var(--border);
    color: var(--text-secondary);
    transition: all 0.3s;
    flex-shrink: 0;
}

.step.active   .step-dot { background: var(--accent-primary);   border-color: var(--accent-primary);   color: #fff; box-shadow: 0 0 12px rgba(108,99,255,0.5); }
.step.done     .step-dot { background: var(--accent-secondary); border-color: var(--accent-secondary); color: #000; }

.step-line {
    width: 32px; height: 2px;
    background: var(--border);
    transition: background 0.3s;
    flex-shrink: 0;
}

.step.done + .step .step-line,
.step-line.done { background: var(--accent-secondary); }

/* ── Transaction Item ──────────────────────────────────────────────────────── */
.tx-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

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

.tx-icon {
    width: 36px; height: 36px;
    border-radius: var(--radius-xs);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.tx-info { flex: 1; min-width: 0; }
.tx-desc { font-size: 0.84rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx-date { font-size: 0.73rem; color: var(--text-secondary); }

.tx-amount {
    font-family: var(--font-mono);
    font-size: 0.88rem;
    font-weight: 700;
    flex-shrink: 0;
}

.tx-amount.positive { color: var(--accent-success); }
.tx-amount.negative { color: var(--accent-danger); }

/* ── Empty State ───────────────────────────────────────────────────────────── */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    text-align: center;
    gap: 0.75rem;
}

.empty-state img { width: 140px; opacity: 0.6; }
.empty-state-title { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; }
.empty-state-sub   { font-size: 0.875rem; color: var(--text-secondary); max-width: 240px; }

/* ── Quick Actions ─────────────────────────────────────────────────────────── */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
}

.quick-action {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.85rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.quick-action:active { transform: scale(0.95); background: var(--bg-card-hover); }
.quick-action-icon { font-size: 1.4rem; }

/* ── Payment Method Card ───────────────────────────────────────────────────── */
.payment-card {
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.payment-card.selected {
    border-color: var(--accent-primary);
    background: rgba(108,99,255,0.08);
}

.payment-card:active { transform: scale(0.98); }

/* ── Settings Row ──────────────────────────────────────────────────────────── */
.settings-list { display: flex; flex-direction: column; }

.settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: opacity 0.15s;
}

.settings-row:last-child { border-bottom: none; }
.settings-row:active { opacity: 0.7; }

.settings-row-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.settings-row-icon {
    width: 34px; height: 34px;
    background: rgba(0,0,0,0.04);
    border-radius: var(--radius-xs);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.settings-row-title { font-size: 0.9rem; font-weight: 500; color: var(--text-primary); }
.settings-row-sub   { font-size: 0.75rem; color: var(--text-secondary); }
.settings-row-arrow { color: var(--text-muted); font-size: 0.875rem; }

/* ── Profile Avatar ────────────────────────────────────────────────────────── */
.avatar-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem 1rem;
    flex-direction: column;
    gap: 0.6rem;
}

.avatar {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    display: flex; align-items: center; justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    overflow: hidden;
    border: 2.5px solid rgba(108,99,255,0.4);
}

.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-name { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; }
.avatar-handle { font-size: 0.82rem; color: var(--text-secondary); }

/* ── Toggle Switch ─────────────────────────────────────────────────────────── */
.toggle {
    position: relative;
    width: 42px; height: 24px;
    flex-shrink: 0;
}

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

.toggle-track {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.12);
    border-radius: 100px;
    transition: background 0.2s;
    cursor: pointer;
}

.toggle input:checked + .toggle-track { background: var(--accent-primary); }

.toggle-track::after {
    content: '';
    position: absolute;
    top: 3px; left: 3px;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.2s;
}

.toggle input:checked + .toggle-track::after { transform: translateX(18px); }

/* ── Search Input ──────────────────────────────────────────────────────────── */
.search-wrap {
    position: relative;
    margin: 0 1rem;
}

.search-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1rem;
    pointer-events: none;
}

.search-wrap .form-control { padding-left: 2.5rem; }

/* ── Greeting Header ───────────────────────────────────────────────────────── */
.greeting-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1rem 0.5rem;
}

.greeting-text .greeting-hi {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.greeting-text .greeting-name {
    font-family: var(--font-head);
    font-size: 1.2rem;
    font-weight: 700;
}

.greeting-avatar {
    width: 42px; height: 42px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    border: 2px solid rgba(108,99,255,0.3);
    flex-shrink: 0;
}

.greeting-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ── Divider ───────────────────────────────────────────────────────────────── */
.divider {
    height: 1px;
    background: var(--border);
    margin: 0.5rem 0;
}

/* ── Skeleton Loader ───────────────────────────────────────────────────────── */
.skeleton {
    background: linear-gradient(90deg,
        rgba(0,0,0,0.04) 0%,
        rgba(0,0,0,0.08) 50%,
        rgba(0,0,0,0.04) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: var(--radius-xs);
}

.skeleton-text  { height: 14px; margin-bottom: 8px; border-radius: 4px; }
.skeleton-title { height: 20px; margin-bottom: 10px; border-radius: 4px; width: 60%; }
.skeleton-card  { height: 80px; border-radius: var(--radius); margin-bottom: 0.65rem; }

/* ── Dashboard Topbar ──────────────────────────────────────────────────────── */
.dash-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1rem 0.6rem;
    gap: 0.75rem;
}

.dash-topbar-left { flex: 1; min-width: 0; }

.dash-greeting {
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.3rem;
}

.dash-balance-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.dash-balance-val {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent-secondary);
}

/* ── Service Search Dropdown ───────────────────────────────────────────────── */
.svc-dropdown {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    background: var(--bg-secondary);
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-sm);
    max-height: 280px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.1) transparent;
}

.svc-dropdown::-webkit-scrollbar { width: 4px; }
.svc-dropdown::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.1); border-radius: 2px; }

.svc-drop-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 0.9rem;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

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

.svc-drop-item:hover,
.svc-drop-item:active {
    background: rgba(108,99,255,0.1);
}

.svc-drop-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    width: 28px;
    text-align: center;
    line-height: 1;
}

.svc-drop-info  { flex: 1; min-width: 0; }
.svc-drop-name  { font-size: 0.84rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.svc-drop-meta  { display: flex; gap: 0.5rem; font-size: 0.73rem; margin-top: 0.15rem; flex-wrap: wrap; }

/* ── Selected Service Card ─────────────────────────────────────────────────── */
.selected-svc-card {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 0.9rem;
    background: rgba(108,99,255,0.08);
    border: 1.5px solid rgba(108,99,255,0.3);
    border-radius: var(--radius-sm);
    animation: fadeIn 0.2s ease;
}

/* ── Price Preview Card ────────────────────────────────────────────────────── */
.price-preview-card {
    background: rgba(108,99,255,0.07);
    border: 1.5px solid rgba(108,99,255,0.2);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
    animation: fadeIn 0.25s ease;
}

/* ── Admin Panel Styles ────────────────────────────────────────────────────── */
:root {
    --adm-bg:      #f5f6fa;
    --adm-card:    rgba(0,0,0,0.03);
    --adm-border:  rgba(0,0,0,0.09);
    --adm-sidebar: #ffffff;
    --adm-hover:   rgba(108,99,255,0.10);
    --ok:          #00c853;
    --warn:        #f5a623;
    --txt2:        #3d4263;
    --acc2:        #009d80;
}

.admin-layout {
    display: flex;
    min-height: 100vh;
    background: var(--adm-bg);
    font-family: 'DM Sans', sans-serif;
    color: #1a1c2e;
}

.admin-sidebar {
    width: 220px;
    background: var(--adm-sidebar);
    border-right: 1px solid var(--adm-border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; bottom: 0; left: 0;
    z-index: 50;
    overflow-y: auto;
}

.admin-main {
    flex: 1;
    margin-left: 220px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.admin-topbar {
    background: var(--adm-sidebar);
    border-bottom: 1px solid var(--adm-border);
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 40;
}

.admin-content {
    padding: 1.5rem;
    flex: 1;
}

/* Admin cards */
.admin-layout .card {
    background: var(--adm-card);
    border: 1px solid var(--adm-border);
    border-radius: 14px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

/* Admin stat cards */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.admin-layout .stat-card {
    background: var(--adm-card);
    border: 1px solid var(--adm-border);
    border-radius: 12px;
    padding: 1rem;
}

.admin-layout .stat-label { font-size: 0.75rem; color: var(--txt2); margin-bottom: 0.35rem; }
.admin-layout .stat-value { font-family: 'JetBrains Mono', monospace; font-size: 1.5rem; font-weight: 700; }
.admin-layout .stat-value.blue  { color: #6c63ff; }
.admin-layout .stat-value.green { color: var(--ok); }
.admin-layout .stat-value.warn  { color: var(--warn); }

/* Admin tables */
.table-wrap { overflow-x: auto; }
.admin-layout table { width: 100%; border-collapse: collapse; font-size: 0.84rem; }
.admin-layout th { text-align: left; padding: 0.55rem 0.7rem; color: var(--txt2); font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1px solid var(--adm-border); white-space: nowrap; }
.admin-layout td { padding: 0.6rem 0.7rem; border-bottom: 1px solid rgba(0,0,0,0.05); vertical-align: middle; }
.admin-layout tr:last-child td { border-bottom: none; }
.admin-layout tr:hover td { background: rgba(0,0,0,0.02); }
.admin-layout .mono { font-family: 'JetBrains Mono', monospace; }

/* Admin buttons */
.admin-layout .btn          { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.5rem 1rem; border-radius: 8px; font-size: 0.85rem; font-weight: 600; border: none; cursor: pointer; transition: all 0.15s; font-family: 'DM Sans', sans-serif; }
.admin-layout .btn-primary  { background: #6c63ff; color: #fff; }
.admin-layout .btn-primary:hover { background: #5a53e0; }
.admin-layout .btn-ghost    { background: rgba(0,0,0,0.04); color: #1a1c2e; border: 1px solid var(--adm-border); }
.admin-layout .btn-ghost:hover { background: rgba(0,0,0,0.07); }
.admin-layout .btn-success  { background: rgba(0,230,118,0.15); color: var(--ok); border: 1px solid rgba(0,230,118,0.3); }
.admin-layout .btn-danger   { background: rgba(255,77,109,0.15); color: #ff4d6d; border: 1px solid rgba(255,77,109,0.3); }
.admin-layout .btn-warn     { background: rgba(255,179,71,0.15); color: var(--warn); border: 1px solid rgba(255,179,71,0.3); }
.admin-layout .btn-sm       { padding: 0.3rem 0.65rem; font-size: 0.78rem; }
.admin-layout .btn:active   { transform: scale(0.96); }

/* Admin forms */
.admin-layout .form-group { margin-bottom: 1rem; }
.admin-layout label { display: block; font-size: 0.78rem; color: var(--txt2); margin-bottom: 0.4rem; font-weight: 600; }
.admin-layout input[type=text],
.admin-layout input[type=url],
.admin-layout input[type=number],
.admin-layout input[type=password],
.admin-layout input[type=email],
.admin-layout select,
.admin-layout textarea {
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--adm-border);
    border-radius: 8px;
    color: #1a1c2e;
    padding: 0.6rem 0.85rem;
    font-size: 0.875rem;
    font-family: 'DM Sans', sans-serif;
    outline: none;
    transition: border-color 0.2s;
    -webkit-appearance: none;
    appearance: none;
}
.admin-layout input:focus,
.admin-layout select:focus,
.admin-layout textarea:focus { border-color: #6c63ff; box-shadow: 0 0 0 3px rgba(108,99,255,0.15); }
.admin-layout select { cursor: pointer; }
.admin-layout textarea { resize: vertical; min-height: 100px; }

/* Admin filter bar */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.filter-bar input  { flex: 1; min-width: 180px; max-width: 280px; }
.filter-bar select { width: auto; min-width: 130px; }

/* Admin pagination */
.pagination { display: flex; gap: 0.35rem; flex-wrap: wrap; margin-top: 1rem; }
.pagination a,
.pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; padding: 0 0.4rem; border-radius: 6px; font-size: 0.8rem; text-decoration: none; color: #1a1c2e; background: rgba(0,0,0,0.04); border: 1px solid var(--adm-border); transition: all 0.15s; }
.pagination a:hover { background: rgba(108,99,255,0.2); border-color: #6c63ff; }
.pagination span.current { background: #6c63ff; border-color: #6c63ff; color: #fff; }

/* Admin alerts */
.alert { padding: 0.75rem 1rem; border-radius: 8px; font-size: 0.875rem; margin-bottom: 1rem; }
.alert-ok  { background: rgba(0,230,118,0.1);  border: 1px solid rgba(0,230,118,0.3);  color: var(--ok); }
.alert-err { background: rgba(255,77,109,0.1); border: 1px solid rgba(255,77,109,0.3); color: #ff4d6d; }

/* ═══════════════════════════════════════════════════════════════════
   TMA DASHBOARD — CORE COMPONENTS
═══════════════════════════════════════════════════════════════════ */

/* ── TMA Header ──────────────────────────────────────────────────────────── */
.tma-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem var(--page-h-pad, 1rem) 0.5rem;
    background: var(--bg-primary);
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid var(--border);
}

.tma-header-left {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.tma-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--grad-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    overflow: hidden;
    border: 2px solid rgba(88,101,242,0.3);
}

.tma-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.tma-user-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.tma-username {
    font-family: var(--font-head);
    font-size: 0.9rem;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-primary);
}

.tma-subtitle {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

/* ── Header right group (balance + add fund) ─────────────────────────────── */
.tma-header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.tma-header-balance {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.05rem;
}

.tma-header-balance-label {
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--text-secondary);
}

.tma-header-balance-value {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.tma-header-balance-value .currency {
    font-size: 0.62rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* ── Add Fund button (compact, in header) ──────────────────────────────── */
.tma-add-funds-btn-sm {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-sm);
    background: var(--grad-primary);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: opacity 0.15s, transform 0.1s;
    box-shadow: 0 2px 8px rgba(88,101,242,0.25);
}
.tma-add-funds-btn-sm:active { transform: scale(0.95); opacity: 0.9; }

/* ── Balance Strip (compact bar) ─────────────────────────────────────────── */
.tma-balance-strip {
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin: 0 var(--page-h-pad, 1rem) 0.5rem;
    padding: 0.7rem 1rem;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.tma-balance-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
}

.tma-balance-item-label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

.tma-balance-item-value {
    font-family: var(--font-numeric);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    font-feature-settings: 'tnum' 1, 'lnum' 1;
}

.tma-balance-item-value .currency {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* ── Balance Card (legacy — kept for backwards compat) ─────────────────── */
.tma-balance-card {
    margin: 0.75rem var(--page-h-pad, 1rem);
    border-radius: var(--radius);
    background: linear-gradient(135deg, #e8ecff 0%, #e2f0fa 100%);
    border: 1px solid rgba(88,101,242,0.2);
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md), var(--glow);
}

.tma-balance-card::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(88,101,242,0.2) 0%, transparent 70%);
    pointer-events: none;
}

.tma-balance-card::after {
    content: '';
    position: absolute;
    bottom: -40px; left: -20px;
    width: 140px; height: 140px;
    background: radial-gradient(circle, rgba(42,171,238,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.tma-balance-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

.tma-balance-amount {
    font-family: var(--font-numeric);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 0.85rem;
    letter-spacing: -0.5px;
    font-feature-settings: 'tnum' 1, 'lnum' 1;
}

.tma-balance-amount .currency {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-left: 0.2rem;
}

.tma-balance-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.1rem;
    position: relative;
    z-index: 1;
}

.tma-stat {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.tma-stat-val {
    font-family: var(--font-numeric);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    font-feature-settings: 'tnum' 1, 'lnum' 1;
}

.tma-stat-lbl {
    font-size: 0.67rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tma-add-funds-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    background: var(--grad-primary);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(88,101,242,0.35);
    transition: opacity 0.15s, transform 0.15s;
    position: relative;
    z-index: 1;
    letter-spacing: 0.2px;
}

.tma-add-funds-btn:active {
    opacity: 0.85;
    transform: scale(0.98);
}

/* ── Order Form Section ──────────────────────────────────────────────────── */
.order-section {
    padding: 0.75rem var(--page-h-pad, 1rem) 1.5rem;
}

.order-section-title {
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.order-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ── Form Group v2 ───────────────────────────────────────────────────────── */
.fg {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 0.85rem;
}

.fg label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ── Input / Select ──────────────────────────────────────────────────────── */
.tma-input,
.tma-select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: var(--font-body);
    outline: none;
    transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
    -webkit-appearance: none;
    appearance: none;
}

.tma-input::placeholder { color: var(--text-muted); }

.tma-input:focus,
.tma-select:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(88,101,242,0.15);
    background: var(--bg-card-hover);
}

.tma-select option { background: var(--bg-secondary); color: var(--text-primary); }

/* Input with icon */
.tma-input-wrap {
    position: relative;
}

.tma-input-wrap .tma-input {
    padding-left: 2.6rem;
}

.tma-input-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    pointer-events: none;
    line-height: 1;
}

/* Select arrow */
.tma-select-wrap {
    position: relative;
}

.tma-select-wrap::after {
    content: '▾';
    position: absolute;
    right: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 0.8rem;
    pointer-events: none;
}

/* ── Service Info Card ───────────────────────────────────────────────────── */
.svc-info-card {
    background: linear-gradient(135deg, rgba(88,101,242,0.08) 0%, rgba(42,171,238,0.05) 100%);
    border: 1.5px solid rgba(88,101,242,0.25);
    border-radius: var(--radius);
    padding: 0.9rem 1rem;
    margin-bottom: 0.85rem;
    animation: fadeInUp 0.25s ease;
}

.svc-info-header {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin-bottom: 0.65rem;
}

.svc-id-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    background: rgba(88,101,242,0.2);
    border: 1px solid rgba(88,101,242,0.3);
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent-primary);
    white-space: nowrap;
    flex-shrink: 0;
}

.svc-info-name {
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text-primary);
}

.svc-info-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem 0.75rem;
}

.svc-meta-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.76rem;
    color: var(--text-secondary);
}

.svc-meta-item strong {
    color: var(--text-primary);
    font-weight: 600;
}

.svc-rate-highlight {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-secondary);
    font-weight: 600;
}

/* ── Quantity Stepper ────────────────────────────────────────────────────── */
.qty-stepper {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: border-color 0.18s;
}

.qty-stepper:focus-within {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(88,101,242,0.15);
}

.qty-btn {
    width: 46px;
    min-width: 46px;
    height: 48px;
    background: rgba(0,0,0,0.03);
    border: none;
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 300;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    user-select: none;
    -webkit-user-select: none;
    flex-shrink: 0;
}

.qty-btn:active { background: rgba(88,101,242,0.2); color: var(--accent-primary); }
.qty-btn:disabled { opacity: 0.35; cursor: default; }

.qty-input-inner {
    flex: 1;
    background: none;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    padding: 0.65rem 0.25rem;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
}

.qty-input-inner::-webkit-inner-spin-button,
.qty-input-inner::-webkit-outer-spin-button { -webkit-appearance: none; appearance: none; }
.qty-input-inner[type=number] { -moz-appearance: textfield; appearance: textfield; }

.qty-limits {
    font-size: 0.72rem;
    color: var(--text-muted);
    display: flex;
    gap: 1rem;
    margin-top: 0.35rem;
    padding: 0 0.1rem;
}

.qty-limits span { display: flex; align-items: center; gap: 0.25rem; }

/* ── Charge Field ────────────────────────────────────────────────────────── */
.charge-field {
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: border-color 0.2s;
}

.charge-field.has-value {
    border-color: rgba(0,230,118,0.3);
    background: rgba(0,230,118,0.04);
}

.charge-label {
    font-size: 0.76rem;
    color: var(--text-secondary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.charge-value {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-success);
}

.charge-value.zero { color: var(--text-muted); }

.balance-after-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-secondary);
    padding: 0 0.1rem;
    margin-top: 0.35rem;
}

.balance-after-val {
    font-family: var(--font-mono);
    font-weight: 600;
}

.balance-after-val.low { color: var(--accent-danger); }

/* ── Submit Order Button ─────────────────────────────────────────────────── */
.submit-order-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.9rem;
    border-radius: var(--radius-sm);
    background: var(--grad-primary);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    border: none;
    cursor: pointer;
    box-shadow: none;
    transition: opacity 0.15s, transform 0.15s;
    margin-top: 0.85rem;
}

.submit-order-btn:active:not(:disabled) {
    opacity: 0.85;
    transform: scale(0.98);
}

.submit-order-btn:disabled {
    background: var(--bg-card-hover);
    color: var(--text-muted);
    box-shadow: none;
    cursor: not-allowed;
}

/* ── Order Result Inline ─────────────────────────────────────────────────── */
.order-result-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem 1rem;
    background: rgba(0,230,118,0.06);
    border: 1.5px solid rgba(0,230,118,0.2);
    border-radius: var(--radius);
    text-align: center;
    animation: fadeInUp 0.3s ease;
    margin-top: 0.85rem;
}

.order-result-icon {
    font-size: 2.5rem;
    animation: successPop 0.4s ease;
}

.order-result-title {
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-success);
}

.order-result-id {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.order-result-error {
    padding: 0.85rem 1rem;
    background: rgba(255,77,109,0.07);
    border: 1.5px solid rgba(255,77,109,0.25);
    border-radius: var(--radius-sm);
    font-size: 0.84rem;
    color: var(--accent-danger);
    margin-top: 0.65rem;
    animation: fadeInUp 0.25s ease;
}

/* ── Updated: Buttons ────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.65rem 1.2rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.15s, box-shadow 0.15s;
    white-space: nowrap;
    letter-spacing: 0.1px;
}

.btn:active { opacity: 0.8; transform: scale(0.97); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

.btn-primary {
    background: var(--grad-primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(88,101,242,0.3);
}

.btn-secondary {
    background: rgba(88,101,242,0.15);
    color: var(--accent-primary);
    border: 1px solid rgba(88,101,242,0.3);
}

.btn-ghost {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-ghost:hover { background: var(--bg-card-hover); border-color: var(--border-hover); }
.btn-danger-soft { background: rgba(255,77,109,0.1); color: var(--accent-danger); border: 1px solid rgba(255,77,109,0.25); }
.btn-success-soft { background: rgba(0,230,118,0.1); color: var(--accent-success); border: 1px solid rgba(0,230,118,0.2); }
.btn-block { width: 100%; }
.btn-lg { padding: 0.85rem 1.5rem; font-size: 1rem; border-radius: var(--radius); }
.btn-sm { padding: 0.38rem 0.75rem; font-size: 0.78rem; border-radius: var(--radius-xs); }

/* ── Updated: Badges ─────────────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.55rem;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: capitalize;
    white-space: nowrap;
}

.badge-pending    { background: rgba(255,179,71,0.15);  color: var(--accent-warning); }
.badge-active,
.badge-processing { background: rgba(88,101,242,0.15);  color: var(--accent-primary); }
.badge-completed,
.badge-approved   { background: rgba(0,230,118,0.12);   color: var(--accent-success); }
.badge-cancelled,
.badge-rejected,
.badge-banned     { background: rgba(255,77,109,0.12);  color: var(--accent-danger); }
.badge-partial    { background: rgba(42,171,238,0.12);  color: var(--accent-secondary); }
.badge-refunded   { background: rgba(148,152,187,0.12); color: var(--text-secondary); }

/* ── Updated: Form Controls (global) ────────────────────────────────────── */
.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: var(--font-body);
    outline: none;
    transition: border-color 0.18s, box-shadow 0.18s;
    -webkit-appearance: none;
    appearance: none;
}

.form-control::placeholder { color: var(--text-muted); }

.form-control:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(88,101,242,0.15);
    background: var(--bg-card-hover);
}

.form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.45rem;
}

.form-group { margin-bottom: 1rem; }

/* ── Updated: Cards ──────────────────────────────────────────────────────── */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.card:hover { border-color: var(--border-hover); }

/* ── Updated: Order cards ────────────────────────────────────────────────── */
.order-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
    transition: border-color 0.18s;
}

.order-card:active { border-color: var(--border-hover); }
.order-top    { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.35rem; }
.order-id     { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-secondary); font-weight: 600; }
.order-name   { font-size: 0.85rem; font-weight: 600; margin-bottom: 0.3rem; line-height: 1.35; }
.order-link   { font-size: 0.75rem; color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 0.35rem; }
.order-meta   { display: flex; justify-content: space-between; align-items: center; font-size: 0.75rem; color: var(--text-secondary); }
.order-charge { font-family: var(--font-mono); font-size: 0.82rem; font-weight: 700; color: var(--accent-primary); }

/* ── Updated: Tabs ───────────────────────────────────────────────────────── */
.tabs {
    display: flex;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    padding: 3px;
    gap: 2px;
    border: 1px solid var(--border);
}

.tab {
    flex: 1;
    padding: 0.5rem 0.65rem;
    border-radius: calc(var(--radius-sm) - 3px);
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s;
    white-space: nowrap;
}

.tab.active {
    background: var(--accent-primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(88,101,242,0.3);
}

/* ── Progress Bar ────────────────────────────────────────────────────────── */
.progress-bar {
    height: 4px;
    background: rgba(0,0,0,0.07);
    border-radius: 100px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--grad-primary);
    border-radius: 100px;
    transition: width 0.6s ease;
}

/* ── Toast ───────────────────────────────────────────────────────────────── */
#toast-container {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: calc(100% - 2rem);
    max-width: 390px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}

.toast {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    background: var(--bg-card-hover);
    border: 1px solid var(--border-hover);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    animation: toastIn 0.3s ease forwards;
    pointer-events: auto;
    font-size: 0.875rem;
    backdrop-filter: blur(16px);
}

.toast.toast-out { animation: toastOut 0.3s ease forwards; }
.toast-success { border-color: rgba(0,230,118,0.3); }
.toast-error   { border-color: rgba(255,77,109,0.3); }
.toast-warning { border-color: rgba(255,179,71,0.3); }

/* ── Transaction item ────────────────────────────────────────────────────── */
.tx-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

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

.tx-icon {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.tx-info    { flex: 1; min-width: 0; }
.tx-desc    { font-size: 0.84rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx-date    { font-size: 0.72rem; color: var(--text-secondary); margin-top: 0.1rem; }
.tx-amount  { font-family: var(--font-mono); font-size: 0.88rem; font-weight: 700; }
.tx-amount.positive { color: var(--accent-success); }
.tx-amount.negative { color: var(--accent-danger); }

/* ── Empty state ─────────────────────────────────────────────────────────── */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    padding: 2.5rem 1rem;
    text-align: center;
}

.empty-state img { width: 120px; opacity: 0.45; }
.empty-state-title { font-family: var(--font-head); font-size: 1rem; font-weight: 700; }
.empty-state-sub   { font-size: 0.84rem; color: var(--text-secondary); max-width: 240px; line-height: 1.55; }

/* ── Skeleton ────────────────────────────────────────────────────────────── */
.skeleton {
    background: linear-gradient(90deg,
        rgba(0,0,0,0.04) 0%,
        rgba(0,0,0,0.08) 50%,
        rgba(0,0,0,0.04) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: var(--radius-xs);
}

.skeleton-card { height: 76px; border-radius: var(--radius-sm); margin-bottom: 0.65rem; }

/* ── Spinner ─────────────────────────────────────────────────────────────── */
.spinner-sm {
    display: inline-block;
    width: 14px; height: 14px;
    border: 2px solid rgba(0,0,0,0.12);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    vertical-align: middle;
}

/* ── Settings row ────────────────────────────────────────────────────────── */
.settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
}

.settings-row:last-child { border-bottom: none; }

.settings-row-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.settings-row-icon {
    width: 34px; height: 34px;
    border-radius: 10px;
    background: rgba(88,101,242,0.1);
    border: 1px solid rgba(88,101,242,0.15);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.settings-row-title { font-size: 0.875rem; font-weight: 600; color: var(--text-primary); }
.settings-row-sub   { font-size: 0.72rem; color: var(--text-secondary); margin-top: 0.1rem; }
.settings-row-arrow { color: var(--text-muted); font-size: 1.1rem; flex-shrink: 0; }

/* ── Toggle ──────────────────────────────────────────────────────────────── */
.toggle { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-track {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.12);
    border-radius: 100px;
    transition: background 0.25s;
    cursor: pointer;
}
.toggle-track::after {
    content: '';
    position: absolute;
    top: 3px; left: 3px;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.25s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.toggle input:checked + .toggle-track { background: var(--accent-primary); }
.toggle input:checked + .toggle-track::after { transform: translateX(20px); }

/* ── Avatar ──────────────────────────────────────────────────────────────── */
.avatar-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem 1rem;
    gap: 0.5rem;
}

.avatar {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: var(--grad-primary);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-head);
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    overflow: hidden;
    border: 3px solid rgba(88,101,242,0.3);
    box-shadow: 0 0 0 4px rgba(88,101,242,0.1);
}

.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-name { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; }
.avatar-handle { font-size: 0.8rem; color: var(--text-secondary); }

/* ── Page header (non-dashboard pages) ──────────────────────────────────── */
.page-header {
    padding: 0.9rem var(--page-h-pad, 1rem) 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-secondary);
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid var(--border);
}

.page-header-title {
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 700;
}

.section-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
}

.page-section { padding: 0.75rem var(--page-h-pad, 1rem); }

/* ── Payment card ────────────────────────────────────────────────────────── */
.payment-card {
    padding: 0.85rem 1rem;
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: border-color 0.18s, background 0.18s;
}

.payment-card.selected {
    border-color: var(--accent-primary);
    background: rgba(88,101,242,0.07);
}

/* ── Range slider ────────────────────────────────────────────────────────── */
.range-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 100px;
    outline: none;
    cursor: pointer;
    background: rgba(0,0,0,0.08);
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--accent-primary);
    box-shadow: 0 0 6px rgba(88,101,242,0.4);
    cursor: pointer;
    transition: transform 0.15s;
}

.range-slider:active::-webkit-slider-thumb { transform: scale(1.25); }

/* ── Divider ─────────────────────────────────────────────────────────────── */
.divider {
    height: 1px;
    background: var(--border);
    margin: 0.5rem 0;
}

/* ── Service card (services page) ────────────────────────────────────────── */
.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
    cursor: pointer;
    transition: border-color 0.18s, background 0.18s;
}

.service-card:active { border-color: var(--accent-primary); background: rgba(88,101,242,0.06); }

.service-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: rgba(88,101,242,0.1);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.service-rate { color: var(--accent-secondary); font-family: var(--font-mono); font-size: 0.78rem; font-weight: 600; }

/* ── Filter chips ────────────────────────────────────────────────────────── */
.filter-chips { display: flex; gap: 0.4rem; flex-wrap: wrap; padding-bottom: 2px; }

.chip {
    padding: 0.38rem 0.85rem;
    border-radius: 100px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.chip.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(88,101,242,0.35);
}

/* ── Platform Icon Badges (inside chips & cards) ────────────────────────── */
.plat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 5px;
    font-size: 0.6rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
    line-height: 1;
    font-family: var(--font-head);
}
.plat-icon.ig   { background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.plat-icon.fb   { background: #1877f2; }
.plat-icon.yt   { background: #ff0000; border-radius: 4px; }
.plat-icon.tw   { background: #000000; }
.plat-icon.tt   { background: #010101; font-size: 0.65rem; }
.plat-icon.tg   { background: #2aabee; }
.plat-icon.sp   { background: #1db954; }
.plat-icon.sc   { background: #fffc00; color: #000; }
.plat-icon.th   { background: #000000; }
.plat-icon.oth  { background: rgba(148,152,187,0.3); color: var(--text-secondary); }
.plat-icon-img  { width: 18px; height: 18px; border-radius: 4px; object-fit: contain; flex-shrink: 0; vertical-align: middle; }

/* ── Custom Dropdown Panel (Centered Popup) ─────────────────────────────── */
.dropdown-overlay {
    position: fixed;
    inset: 0;
    z-index: 500;
    background: rgba(0,0,0,0.6);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}
.dropdown-overlay.open { opacity: 1; pointer-events: auto; }

.dropdown-panel {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.92);
    z-index: 501;
    width: calc(100% - 2.5rem);
    max-width: 400px;
    max-height: 70vh;
    background: var(--bg-secondary, #f2f3f7);
    border-radius: var(--radius, 16px);
    display: flex;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 16px 48px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.06);
    pointer-events: none;
}
.dropdown-panel.open { opacity: 1; transform: translate(-50%, -50%) scale(1); pointer-events: auto; }

.dropdown-panel-handle { display: none; }

.dropdown-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem 0.5rem;
    flex-shrink: 0;
}
.dropdown-panel-title {
    font-family: var(--font-head);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}
.dropdown-panel-close {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: rgba(0,0,0,0.05);
    border: none;
    color: var(--text-secondary);
    font-size: 1.1rem;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
}

.dropdown-panel-search {
    padding: 0 1rem 0.65rem;
    flex-shrink: 0;
}
.dropdown-panel-search input {
    width: 100%;
    padding: 0.6rem 0.85rem;
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-family: var(--font-body);
    outline: none;
}
.dropdown-panel-search input:focus { border-color: var(--accent-primary); }
.dropdown-panel-search input::placeholder { color: var(--text-muted); }

.dropdown-panel-list {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 0 0.5rem 1rem;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 0.65rem;
    border-radius: var(--radius-xs);
    cursor: pointer;
    transition: background 0.12s;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.85rem;
}
.dropdown-item:active { background: rgba(88,101,242,0.1); }
.dropdown-item.selected { background: rgba(88,101,242,0.12); }

.dropdown-item-main { flex: 1; min-width: 0; }
.dropdown-item-name {
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dropdown-item-sub {
    font-size: 0.72rem;
    color: var(--text-secondary);
    margin-top: 0.1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dropdown-item-right {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-secondary);
    white-space: nowrap;
    flex-shrink: 0;
}
.dropdown-item-count {
    font-size: 0.7rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

/* ── Inline Search Results (below search input) ─────────────────────────── */
.search-results {
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    max-height: 260px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: -2px;
}
.search-results:empty { display: none; }

.search-result-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.75rem;
    cursor: pointer;
    transition: background 0.1s;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-size: 0.82rem;
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:active { background: rgba(88,101,242,0.1); }
.search-result-item .sr-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-result-item .sr-rate { font-family: var(--font-mono); font-size: 0.72rem; color: var(--accent-secondary); font-weight: 600; flex-shrink: 0; }
.search-result-item .sr-id { font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-muted); flex-shrink: 0; }

/* ── Fake select trigger (replaces native <select>) ─────────────────────── */
.custom-select-trigger {
    width: 100%;
    padding: 0.75rem 2.2rem 0.75rem 1rem;
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.88rem;
    font-family: var(--font-body);
    cursor: pointer;
    transition: border-color 0.18s, box-shadow 0.18s;
    position: relative;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    -webkit-appearance: none;
    appearance: none;
    text-align: left;
    display: block;
}
.custom-select-trigger.placeholder { color: var(--text-muted); }
.custom-select-trigger.has-value {
    white-space: normal;
    overflow: visible;
    word-break: break-word;
    line-height: 1.35;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
}
.custom-select-trigger:active { border-color: var(--accent-primary); box-shadow: 0 0 0 3px rgba(88,101,242,0.15); }

/* ── Search input ────────────────────────────────────────────────────────── */
.search-wrap { position: relative; margin-bottom: 0.75rem; }
.search-icon {
    position: absolute; left: 0.85rem; top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem; pointer-events: none; color: var(--text-muted);
}
.search-wrap .form-control { padding-left: 2.4rem; }

/* ── Balance card (legacy, keep for profile page) ────────────────────────── */
.balance-card {
    background: linear-gradient(135deg, rgba(88,101,242,0.15), rgba(42,171,238,0.08));
    border: 1px solid rgba(88,101,242,0.22);
    border-radius: var(--radius);
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
}

.balance-card::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 160px; height: 160px;
    background: radial-gradient(circle, rgba(88,101,242,0.2), transparent 70%);
    border-radius: 50%;
}

.balance-label {
    font-size: 0.72rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.balance-amount {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.1;
    color: var(--text-primary);
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
}

.stat-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.75rem 0.65rem;
    text-align: center;
}

.stat-value { font-family: var(--font-numeric); font-size: 1.15rem; font-weight: 700; font-feature-settings: 'tnum' 1, 'lnum' 1; }
.stat-label { font-size: 0.68rem; color: var(--text-secondary); margin-top: 0.2rem; }

/* ── Profile form controls ───────────────────────────────────────────────── */
.form-control-mono { font-family: var(--font-mono); font-size: 0.8rem; }
.btn-icon {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    width: 34px; height: 34px;
    border-radius: var(--radius-xs);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.9rem; cursor: pointer;
    transition: background 0.15s;
    flex-shrink: 0;
}

.btn-icon:active { background: var(--bg-card-hover); }

/* ── Small phone responsiveness (≤375px) ────────────────────────────────── */
@media (max-width: 375px) {
    .tma-balance-amount       { font-size: 1.65rem; }
    .tma-stat-val             { font-size: 0.8rem; }
    .tma-balance-stats        { gap: 1rem; }

    .stat-value               { font-size: 0.95rem; }
    .stat-item                { padding: 0.6rem 0.4rem; }

    .page-header-title        { font-size: 1.05rem; }
    .section-title            { font-size: 0.8rem; }

    .svc-info-name            { font-size: 0.8rem; }
    .svc-meta-item            { font-size: 0.72rem; }
    .order-name               { font-size: 0.82rem; }

    .submit-order-btn         { font-size: 0.9rem; padding: 0.75rem 1rem; }

    .chip                     { font-size: 0.72rem; padding: 0.3rem 0.6rem; }
    .badge                    { font-size: 0.65rem; padding: 0.2rem 0.5rem; }

    .tma-input                { font-size: 0.9rem; }
    .form-label               { font-size: 0.78rem; }

    .tx-desc                  { font-size: 0.8rem; }
    .tx-amount                { font-size: 0.85rem; }
    .order-card               { padding: 0.75rem; }
    .card                     { padding: 0.75rem; }
}

/* ── Very small phones (≤320px) ─────────────────────────────────────────── */
@media (max-width: 320px) {
    .tma-balance-amount       { font-size: 1.4rem; }
    .tma-stat-val             { font-size: 0.72rem; }
    .tma-balance-stats        { gap: 0.75rem; }

    .stat-value               { font-size: 0.85rem; }

    .page-header-title        { font-size: 0.95rem; }

    :root { --page-h-pad: 0.65rem; }

    .bottom-nav               { padding: 0 0.25rem; }
    .nav-label                { font-size: 0.56rem; }

    .submit-order-btn         { font-size: 0.82rem; }
    .chip                     { font-size: 0.68rem; padding: 0.25rem 0.5rem; }
}
