/* ── Header ─────────────────────────────────────────────────── */
.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    padding-top: max(10px, env(safe-area-inset-top));
    min-height: var(--header-h);
    background: var(--header-surface);
    backdrop-filter: blur(24px) saturate(1.15);
    -webkit-backdrop-filter: blur(24px) saturate(1.15);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}
.header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.header-mascot {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--bg2);
    box-shadow: 0 4px 14px rgba(var(--accent-rgb), 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.header-mascot svg {
    width: 100% !important;
    height: 100% !important;
}
.header-mascot-fallback {
    font-size: 1.35rem;
    background: var(--accent-gradient);
}

.header-theme-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
}
.header-theme-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    font-size: 1.15rem;
    border-radius: 12px;
    background: var(--bg2);
    border: 1px solid var(--glass-border);
    transition: transform 0.2s var(--ease-spring), background 0.2s, border-color 0.2s;
}
.header-theme-wrap:active .header-theme-icon {
    transform: scale(0.9);
    background: var(--section-bg);
    border-color: var(--btn);
}
.header-left { display: flex; flex-direction: column; gap: 2px; align-items: flex-end; }
.header-right { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; min-width: 0; }
html[dir="ltr"] .header-left { align-items: flex-end; }
html[dir="ltr"] .header-right { align-items: flex-start; }
.header-name { font-weight: 600; font-size: 0.95rem; line-height: 1.3; }
.header-tagline {
    font-size: 0.68rem;
    color: var(--hint);
    display: flex;
    align-items: center;
    gap: 5px;
}
.header-tagline .live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
    animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.65; transform: scale(0.85); }
}
.header-balance-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    text-decoration: none !important;
}
.header-balance-label {
    font-size: 0.65rem;
    color: var(--hint);
    font-weight: 500;
}
.header-balance {
    color: var(--trust);
    font-weight: 700;
    font-size: 1.05rem;
    direction: ltr;
    transition: transform 0.3s var(--ease-spring);
    background: var(--trust-soft);
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(52, 211, 153, 0.2);
}
.header-balance.pulse {
    animation: scaleIn 0.3s var(--ease-spring);
}
.header-badge {
    background: var(--accent-gradient);
    color: var(--btn-text);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}
.header-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 600;
    background: var(--success-soft);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.25);
}
.header-home {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--bg2);
    border: 1px solid var(--glass-border);
    color: var(--hint);
    transition: color 0.2s, background 0.2s, transform 0.15s, border-color 0.2s;
}
.header-home:active { background: var(--btn); color: var(--btn-text); transform: scale(0.9); border-color: transparent; }

/* ── Bottom Nav ────────────────────────────────────────────── */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: flex-end;
    background: var(--nav-surface);
    backdrop-filter: blur(24px) saturate(1.15);
    -webkit-backdrop-filter: blur(24px) saturate(1.15);
    border-top: 1px solid var(--glass-border);
    padding: 6px 6px;
    padding-bottom: max(6px, env(safe-area-inset-bottom));
    z-index: 200;
    box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.08);
    max-width: 480px;
    margin: 0 auto;
}
[data-theme="dark"] .bottom-nav {
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.32);
}
.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 0 6px;
    color: var(--hint);
    font-size: 0.66rem;
    transition: color 0.25s var(--ease-out), transform 0.15s;
    position: relative;
    text-decoration: none;
    border-radius: 12px;
}
.nav-item.active {
    color: var(--btn);
    font-weight: 600;
}
.nav-item:active { transform: scale(0.92); }
.nav-item--theme {
    border: none;
    background: none;
    font-family: inherit;
    cursor: pointer;
    width: 100%;
}
.nav-item--theme:active .nav-icon {
    transform: scale(1.15);
}
.nav-icon {
    font-size: 1.22rem;
    transition: transform 0.25s var(--ease-spring);
    line-height: 1;
}
.nav-item.active .nav-icon {
    transform: scale(1.1) translateY(-1px);
}
.nav-label { font-weight: 500; line-height: 1.2; }
.nav-item.active::after {
    content: '';
    position: absolute;
    top: 0;
    width: 18px;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: var(--accent-gradient);
    animation: fadeIn 0.2s ease-out;
}
.nav-item--buy {
    flex: 1.15;
    margin-top: -20px;
}
.nav-item--buy .nav-icon-wrap {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 22px rgba(99, 102, 241, 0.5);
    border: 3px solid var(--nav-fab-ring);
    transition: transform 0.25s var(--ease-spring), box-shadow 0.25s;
}
.nav-item--buy.active .nav-icon-wrap,
.nav-item--buy:active .nav-icon-wrap {
    transform: scale(1.06);
    box-shadow: 0 8px 28px rgba(99, 102, 241, 0.6);
}
.nav-item--buy .nav-icon {
    font-size: 1.45rem;
    color: #fff;
    transform: none !important;
}
.nav-item--buy .nav-label {
    margin-top: 3px;
    font-weight: 600;
    color: var(--text);
}
.nav-item--buy.active::after { display: none; }
.nav-badge {
    position: absolute;
    top: 2px;
    inset-inline-end: calc(50% - 16px);
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    background: var(--danger);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    animation: scaleIn 0.3s var(--ease-spring);
}

/* ── Cards ─────────────────────────────────────────────────── */
.card {
    background: var(--section-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 14px;
    margin-bottom: 10px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s var(--ease-out), box-shadow 0.2s, border-color 0.2s, background 0.3s;
}
.card-clickable { cursor: pointer; }
.card-clickable:active { transform: scale(0.98); box-shadow: var(--shadow-md); }
.card-raised { box-shadow: var(--shadow-md); }
.card-highlight { border-inline-start: 3px solid var(--btn); }
.card-glow {
    border-color: rgba(92,107,192,0.2);
    box-shadow: var(--shadow-sm), 0 0 20px rgba(92,107,192,0.06);
}
.card-title { font-weight: 600; font-size: 1rem; margin-bottom: 6px; }
.card-subtitle { color: var(--hint); font-size: 0.8rem; }
.card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
}
.card-label { color: var(--hint); font-size: 0.85rem; }
.card-value { font-weight: 500; font-size: 0.9rem; }
.card-divider {
    height: 1px;
    background: var(--border);
    margin: 8px 0;
}

.card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.card-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
}

/* ── Stat Cards ────────────────────────────────────────────── */
.stat-card {
    background: var(--section-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 14px 10px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.3s, transform 0.2s, background 0.3s;
}
.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--link);
    animation: countUp 0.5s var(--ease-out) both;
}
.stat-label { color: var(--hint); font-size: 0.72rem; margin-top: 4px; font-weight: 500; }
.stat-card-top-green { border-top: 3px solid var(--success); }
.stat-card-top-green .stat-value { color: var(--success); }
.stat-card-top-orange { border-top: 3px solid var(--warning); }
.stat-card-top-orange .stat-value { color: var(--warning); }
.stat-card-top-blue { border-top: 3px solid var(--link); }
.stat-card-top-blue .stat-value { color: var(--link); }
.stat-card-top-red { border-top: 3px solid var(--danger); }
.stat-card-top-red .stat-value { color: var(--danger); }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s var(--ease-out);
    font-family: inherit;
    position: relative;
    overflow: hidden;
}
.btn:active { transform: scale(0.96); }
.btn:disabled { opacity: 0.4; pointer-events: none; }

.btn-primary {
    background: var(--accent-gradient);
    color: var(--btn-text);
    box-shadow: 0 2px 12px rgba(92,107,192,0.3);
}
.btn-primary:active { box-shadow: 0 1px 4px rgba(92,107,192,0.2); }
.btn-success { background: var(--success); color: #fff; box-shadow: 0 2px 12px rgba(76,175,80,0.3); }
.btn-danger { background: var(--danger); color: #fff; box-shadow: 0 2px 12px rgba(244,67,54,0.3); }
.btn-warning { background: var(--warning); color: #fff; box-shadow: 0 2px 12px rgba(255,152,0,0.3); }
.btn-secondary { background: var(--bg2); color: var(--text); border: 1px solid var(--border); }
.btn-ghost { background: transparent; color: var(--link); }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 14px; font-size: 0.8rem; }
.btn-lg { padding: 14px 24px; font-size: 1rem; border-radius: var(--radius); }

/* Loading button state */
.btn-loading {
    color: transparent !important;
    pointer-events: none;
}
.btn-loading::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* ── Badges ────────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    white-space: nowrap;
}
.badge-success { background: rgba(76,175,80,0.15); color: var(--success); }
.badge-warning { background: rgba(255,152,0,0.15); color: var(--warning); }
.badge-danger { background: rgba(244,67,54,0.15); color: var(--danger); }
.badge-info { background: rgba(33,150,243,0.15); color: var(--info); }
.badge-muted { background: rgba(138,138,154,0.15); color: var(--hint); }

/* ── Monitoring totals ─────────────────────────────────────── */
.monitor-totals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 8px;
}
.monitor-stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 12px;
    text-align: center;
}
.monitor-stat-num {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.1;
}
.monitor-stat-label {
    font-size: 0.72rem;
    color: var(--hint);
    margin-top: 4px;
}
.monitor-stat-sub {
    font-size: 0.65rem;
    color: var(--hint);
    opacity: 0.7;
    margin-top: 2px;
}

/* ── Forms ─────────────────────────────────────────────────── */
.form-group { margin-bottom: 14px; }
.form-label {
    display: block;
    margin-bottom: 6px;
    color: var(--section-header);
    font-size: 0.8rem;
    font-weight: 600;
}
.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--section-bg);
    color: var(--text);
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--btn);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.15);
    background: var(--section-bg);
}
.form-input::placeholder { color: var(--hint); opacity: 0.6; }
.form-textarea { min-height: 80px; resize: vertical; }
.form-hint { font-size: 0.72rem; color: var(--hint); margin-top: 4px; }
.form-error { font-size: 0.72rem; color: var(--danger); margin-top: 4px; }

/* ── Stepper ───────────────────────────────────────────────── */
.stepper {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 4px 8px;
}
.stepper-btn {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: var(--btn-text);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s var(--ease-spring), opacity 0.15s;
}
.stepper-btn:active { transform: scale(0.85); }
.stepper-btn:disabled { opacity: 0.25; background: var(--bg2); }
.stepper-value { font-weight: 700; font-size: 1.15rem; min-width: 32px; text-align: center; }

/* ── Tables ────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-sm); }
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
    direction: ltr;
    text-align: left;
}
th {
    background: var(--bg2);
    color: var(--hint);
    font-weight: 600;
    padding: 10px 8px;
    position: sticky;
    top: 0;
    white-space: nowrap;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
}
td {
    padding: 10px 8px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.8rem;
}
tr:nth-child(even) { background: var(--row-stripe); }
tr:hover { background: var(--row-hover); }

/* ── Tabs ──────────────────────────────────────────────────── */
.tabs {
    display: flex;
    gap: 0;
    background: var(--bg2);
    border-radius: var(--radius-sm);
    padding: 3px;
    margin-bottom: 14px;
}
.tab {
    flex: 1;
    padding: 9px 8px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--hint);
    transition: all 0.25s var(--ease-out);
    border: none;
    background: none;
    font-family: inherit;
}
.tab.active {
    background: var(--accent-gradient);
    color: var(--btn-text);
    box-shadow: 0 2px 8px rgba(92,107,192,0.25);
    font-weight: 600;
}

/* ── Section ───────────────────────────────────────────────── */
.section {
    padding: 14px 16px;
}
.section-title {
    color: var(--section-header);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

/* ── Accordion ─────────────────────────────────────────────── */
.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 1px solid var(--border);
    margin-bottom: 2px;
    transition: background 0.2s;
}
.accordion-header:active { background: var(--bg2); }
.accordion-header .arrow { transition: transform 0.25s var(--ease-out); }
.accordion-header.open .arrow { transform: rotate(90deg); }
.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s var(--ease-out);
    padding: 0 8px 0 20px;
}
.accordion-body.open { max-height: 2000px; padding: 8px 8px 8px 20px; }

/* ── Toast ─────────────────────────────────────────────────── */
.toast {
    position: fixed;
    top: 12px;
    left: 50%;
    transform: translateX(-50%) translateY(-80px);
    padding: 12px 18px;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 500;
    z-index: 1000;
    transition: transform 0.35s var(--ease-spring);
    max-width: 90vw;
    background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--glass-border);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
}
.toast::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    bottom: 0;
    width: 3px;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast-success::before { background: var(--success); }
.toast-error::before { background: var(--danger); }
.toast-info::before { background: var(--info); }
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: rgba(255,255,255,0.2);
    animation: progressBar 2.5s linear forwards;
}
.toast-icon {
    font-size: 1rem;
    font-weight: 700;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}
.toast-success .toast-icon { background: var(--success-soft); color: var(--success); }
.toast-error .toast-icon { background: var(--danger-soft); color: var(--danger); }
.toast-info .toast-icon { background: var(--info-soft); color: var(--info); }

/* ── Modal ─────────────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: var(--overlay);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 500;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s;
}
.modal-overlay.show { opacity: 1; }
.modal-sheet {
    background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--glass-border);
    border-radius: 20px 20px 0 0;
    padding: 8px 16px 20px;
    padding-bottom: max(20px, env(safe-area-inset-bottom));
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.35s var(--ease-out);
    box-shadow: 0 -4px 30px rgba(0,0,0,0.3);
}
.modal-overlay.show .modal-sheet { transform: translateY(0); }
.modal-handle {
    width: 36px;
    height: 4px;
    border-radius: 2px;
    background: var(--modal-handle);
    margin: 8px auto 16px;
}
.modal-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 12px; }
.modal-content { margin-bottom: 16px; line-height: 1.6; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; }

/* ── Loader ────────────────────────────────────────────────── */
.loader {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border);
    border-top-color: var(--btn);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

/* ── Skeleton ──────────────────────────────────────────────── */
.skeleton {
    background: linear-gradient(90deg, var(--bg2) 25%, var(--shimmer-mid) 50%, var(--bg2) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}
.skeleton-text { height: 14px; margin-bottom: 8px; border-radius: 4px; }
.skeleton-text-sm { height: 10px; width: 60%; }
.skeleton-circle { border-radius: 50%; }
.skeleton-card { height: 80px; border-radius: var(--radius); margin-bottom: 10px; }
.skeleton-wallet { height: 140px; border-radius: var(--radius); margin-bottom: 10px; }
.skeleton-stat { height: 72px; border-radius: var(--radius); }
.skeleton-action { height: 90px; border-radius: var(--radius); }

/* ── Pagination ────────────────────────────────────────────── */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 0;
}

/* ── Progress Bar ──────────────────────────────────────────── */
.progress-bar {
    height: 6px;
    background: var(--bg2);
    border-radius: 3px;
    overflow: hidden;
    display: flex;
}
.progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.4s var(--ease-out);
}

/* ── Step Progress ────────────────────────────────────────── */
.step-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 20px;
    padding: 0 8px;
}
.step-item {
    display: flex;
    align-items: center;
    gap: 0;
}
.step-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    background: var(--bg2);
    color: var(--hint);
    border: 2px solid var(--border);
    transition: all 0.3s var(--ease-out);
    flex-shrink: 0;
}
.step-circle.active {
    background: var(--accent-gradient);
    color: #fff;
    border-color: var(--btn);
    box-shadow: 0 0 0 4px rgba(92,107,192,0.15);
}
.step-circle.done {
    background: var(--success);
    color: #fff;
    border-color: var(--success);
}
.step-label {
    font-size: 0.68rem;
    color: var(--hint);
    margin-top: 4px;
    text-align: center;
    white-space: nowrap;
    transition: color 0.2s;
}
.step-label.active { color: var(--text); font-weight: 600; }
.step-label.done { color: var(--success); }
.step-line {
    flex: 1;
    height: 2px;
    background: var(--border);
    min-width: 20px;
    max-width: 60px;
    margin: 0 4px;
    transition: background 0.3s;
}
.step-line.done { background: var(--success); }
.step-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

/* ── Admin Nav Grid ────────────────────────────────────────── */
.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    padding: 0;
}
.admin-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 8px;
    background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    text-decoration: none;
    color: var(--text);
    transition: transform 0.15s, box-shadow 0.15s;
}
.admin-grid-item:active { transform: scale(0.95); box-shadow: var(--shadow-md); }
.admin-grid-icon {
    font-size: 1.4rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg2);
    border-radius: 10px;
}
.admin-grid-label { font-size: 0.75rem; font-weight: 500; text-align: center; }

/* ── Code/Output ───────────────────────────────────────────── */
.code-block {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px;
    font-family: 'SF Mono', Monaco, Consolas, monospace;
    font-size: 0.8rem;
    direction: ltr;
    text-align: left;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 300px;
    overflow-y: auto;
    color: var(--text);
    line-height: 1.5;
}

/* ── Connection Guide ──────────────────────────────────────── */
.guide-os-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.guide-os-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 8px 12px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    color: var(--text);
    font-size: 1.4rem;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
.guide-os-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    /* dark tile: light Apple logo + white macOS badge both readable */
    background: #1f2937;
    overflow: hidden;
}
.guide-os-emoji {
    font-size: 1.85rem;
    line-height: 1;
    display: block;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}
.guide-macos-svg {
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 10px;
}
.guide-os-btn .guide-os-label {
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.2;
}
.guide-os-btn:active { transform: scale(0.96); background: var(--bg2); border-color: var(--btn); }

/* ── Modern method picker ─────────────────────────────────── */
.guide-method-picker {
    padding: 18px 16px 16px;
}
.guide-method-picker-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.guide-method-picker-os {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #1f2937;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.guide-method-picker-titles {
    min-width: 0;
    flex: 1;
}
.guide-method-picker-title {
    font-weight: 800;
    font-size: 1rem;
    line-height: 1.3;
    margin-top: 6px;
}
.guide-method-picker-sub {
    font-size: 0.76rem;
    color: var(--hint);
    margin-top: 4px;
    line-height: 1.4;
}
.guide-step-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.guide-step-pill {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--bg2, rgba(0,0,0,.06));
    color: var(--hint);
    border: 1px solid var(--border);
}
.guide-step-pill.is-active {
    background: rgba(59, 130, 246, 0.14);
    color: var(--primary, #3b82f6);
    border-color: rgba(59, 130, 246, 0.35);
}
.guide-step-pill.is-done {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
    border-color: rgba(16, 185, 129, 0.3);
}
.guide-method-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.guide-method-card {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 12px 12px 10px;
    border: 1.5px solid var(--border);
    border-radius: 16px;
    background: var(--bg);
    color: var(--text);
    cursor: pointer;
    text-align: start;
    transition: border-color 0.18s, transform 0.15s, box-shadow 0.18s, background 0.18s;
    box-shadow: 0 1px 0 rgba(0,0,0,.03);
}
.guide-method-card:active {
    transform: scale(0.985);
}
.guide-method-card.is-recommended {
    border-color: rgba(16, 185, 129, 0.55);
    background: linear-gradient(135deg, rgba(16,185,129,.08), rgba(59,130,246,.04));
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.12);
}
.guide-method-card.tone-tt.is-recommended {
    border-color: rgba(5, 150, 105, 0.65);
}
.guide-method-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--bg2, rgba(0,0,0,.05));
}
.guide-method-icon-wrap.tone-tt {
    background: linear-gradient(145deg, #10b981, #059669);
    color: #fff;
}
.guide-method-icon-wrap.tone-hiddify { background: rgba(139, 92, 246, 0.15); }
.guide-method-icon-wrap.tone-netmod { background: rgba(14, 165, 233, 0.15); }
.guide-method-icon-wrap.tone-rocket { background: rgba(249, 115, 22, 0.15); }
.guide-method-icon-wrap.tone-sing { background: rgba(99, 102, 241, 0.15); }
.guide-method-icon-wrap.tone-npv { background: rgba(234, 179, 8, 0.16); }
.guide-method-icon-wrap.tone-neko { background: rgba(100, 116, 139, 0.18); }
.guide-method-emoji {
    font-size: 1.35rem;
    line-height: 1;
}
.guide-method-copy {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.guide-method-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.guide-method-title {
    font-weight: 800;
    font-size: 0.9rem;
    line-height: 1.25;
}
.guide-method-desc {
    font-size: 0.74rem;
    color: var(--hint);
    line-height: 1.35;
}
.guide-pill-rec {
    font-size: 0.65rem;
    font-weight: 800;
    color: #047857;
    background: rgba(16, 185, 129, 0.16);
    border: 1px solid rgba(16, 185, 129, 0.28);
    padding: 2px 8px;
    border-radius: 999px;
    letter-spacing: 0.01em;
}
.guide-method-go {
    color: var(--hint);
    display: flex;
    flex-shrink: 0;
    opacity: 0.75;
}
.guide-method-card:active .guide-method-go { color: var(--primary, #3b82f6); }

/* legacy class kept for safety */
.guide-method-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 8px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    color: var(--text);
    cursor: pointer;
    transition: border-color 0.2s, transform 0.15s;
}
.guide-method-name {
    font-weight: 600;
    font-size: 0.88rem;
    line-height: 1.3;
    text-align: start;
}
.guide-method-btn:active { border-color: var(--btn); transform: scale(0.98); }
.guide-method-recommended { border-color: var(--success); background: rgba(76,175,80,0.04); }
.guide-recommended-tag {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--success);
    background: rgba(52, 199, 89, 0.12);
    padding: 2px 8px;
    border-radius: 10px;
    flex-shrink: 0;
}
.guide-tutorial-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px;
    margin-bottom: 14px;
    border-radius: var(--radius);
    background: var(--success);
    color: #fff;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    transition: transform 0.15s;
}
.guide-tutorial-link:active { transform: scale(0.97); }
.guide-note {
    background: rgba(92,107,192,0.08);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    margin-bottom: 14px;
    font-size: 0.8rem;
    color: var(--hint);
    border-inline-start: 3px solid var(--btn);
}

/* ── Toggle Switch ─────────────────────────────────────────── */
.toggle, .toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    display: inline-block;
}
.toggle input, .toggle-switch input { display: none; }
.toggle .toggle-slider, .toggle-switch .toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--bg2);
    border-radius: 24px;
    cursor: pointer;
    transition: background 0.25s;
    border: 1px solid var(--border);
}
.toggle .toggle-slider::before, .toggle-switch .toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--hint);
    top: 2px;
    left: 2px;
    transition: all 0.25s var(--ease-out);
}
.toggle input:checked + .toggle-slider,
.toggle-switch input:checked + .toggle-slider {
    background: var(--success);
    border-color: var(--success);
}
.toggle input:checked + .toggle-slider::before,
.toggle-switch input:checked + .toggle-slider::before {
    left: 22px;
    background: #fff;
}

/* ── Segmented Control ────────────────────────────────────── */
.seg { display: flex; background: var(--bg2); border-radius: var(--radius-sm); padding: 3px; gap: 0; }
.seg-btn {
    flex: 1;
    padding: 7px 6px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--hint);
    border: none;
    background: none;
    font-family: inherit;
    transition: all 0.25s var(--ease-out);
    white-space: nowrap;
}
.seg-btn.active {
    background: var(--accent-gradient);
    color: var(--btn-text);
    box-shadow: 0 2px 8px rgba(92,107,192,0.25);
}

/* ── Search ────────────────────────────────────────────────── */
.search-bar {
    position: relative;
    margin-bottom: 14px;
}
.search-bar .form-input {
    padding-inline-end: 36px;
}
.search-bar::before {
    content: '';
    width: 14px;
    height: 14px;
    border: 2px solid var(--hint);
    border-radius: 50%;
    position: absolute;
    inset-inline-end: 14px;
    top: 50%;
    transform: translateY(-60%);
    opacity: 0.5;
}
.search-bar::after {
    content: '';
    width: 2px;
    height: 6px;
    background: var(--hint);
    position: absolute;
    inset-inline-end: 11px;
    top: 50%;
    transform: translateY(30%) rotate(-45deg);
    border-radius: 1px;
    opacity: 0.5;
}

/* ── Empty State ───────────────────────────────────────────── */
.empty-state { text-align: center; padding: 36px 24px; }
.empty-state-icon {
    font-size: 2.8rem;
    margin-bottom: 12px;
    display: block;
    animation: float 3s ease-in-out infinite;
}
.empty-state-title { font-weight: 700; font-size: 1rem; margin-bottom: 6px; }
.empty-state-text { color: var(--hint); font-size: 0.82rem; margin-bottom: 16px; line-height: 1.6; }

/* ── Wallet / Topup ──────────────────────────────────────── */
.amount-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.amount-btn {
    padding: 12px 4px;
    border: 1.5px solid var(--glass-border);
    border-radius: var(--radius-sm);
    background: var(--glass);
    color: var(--text);
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s var(--ease-out);
    text-align: center;
}
.amount-btn:active { transform: scale(0.95); }
.amount-btn-active {
    border-color: var(--btn);
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 2px 12px rgba(92,107,192,0.25);
}
.method-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 8px;
    border: 1.5px solid var(--glass-border);
    border-radius: var(--radius);
    background: var(--glass);
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s var(--ease-out);
    text-align: right;
}
.method-card:active { transform: scale(0.98); }
.method-card-active {
    border-color: var(--btn);
    background: rgba(92,107,192,0.08);
    box-shadow: 0 0 0 2px rgba(92,107,192,0.15);
}

/* ── Info Banner ──────────────────────────────────────────── */
.info-banner {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: var(--radius);
    font-size: 0.82rem;
    line-height: 1.5;
    margin-bottom: 12px;
}
.info-banner-success { background: var(--success-soft); color: var(--success); }
.info-banner-info { background: var(--info-soft); color: var(--info); }
.info-banner-warning { background: var(--warning-soft); color: var(--warning); }
.info-banner-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 1px; }

/* ── Transaction Item ─────────────────────────────────────── */
.txn-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    margin-bottom: 8px;
    transition: transform 0.15s;
}
.txn-item:active { transform: scale(0.98); }
.txn-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.txn-body { flex: 1; min-width: 0; }
.txn-title { font-weight: 600; font-size: 0.88rem; }
.txn-sub { color: var(--hint); font-size: 0.72rem; margin-top: 2px; }
.txn-amount { font-weight: 700; font-size: 0.92rem; text-align: left; direction: ltr; white-space: nowrap; }
.txn-status { margin-top: 2px; text-align: left; }

/* ── Trust strip ───────────────────────────────────────────── */
.trust-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 0 10px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin-bottom: 4px;
}
.trust-strip::-webkit-scrollbar { display: none; }
.trust-badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 13px;
    border-radius: 22px;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--hint);
    white-space: nowrap;
}
.trust-badge--secure {
    border-color: rgba(16, 185, 129, 0.35);
    background: var(--success-soft);
    color: var(--success);
}
.trust-badge--speed {
    border-color: rgba(99, 102, 241, 0.35);
    background: rgba(99, 102, 241, 0.1);
    color: var(--link);
}
.trust-badge--support {
    border-color: rgba(59, 130, 246, 0.35);
    background: var(--info-soft);
    color: var(--info);
}

/* ── Hero banner ───────────────────────────────────────────── */
.hero-banner {
    position: relative;
    padding: 18px 16px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(16, 185, 129, 0.07) 100%);
    border: 1px solid var(--glass-border);
    margin-bottom: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.hero-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    inset-inline-end: -20%;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    pointer-events: none;
}
.hero-banner > * { position: relative; z-index: 1; }
.hero-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.4;
}
.hero-sub {
    font-size: 0.78rem;
    color: var(--hint);
    line-height: 1.5;
}

/* ── Feature highlights ────────────────────────────────────── */
.feature-list { margin: 12px 0; }
.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 11px 0;
}
.feature-item + .feature-item { border-top: 1px solid var(--border); }
.feature-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
    background: rgba(99, 102, 241, 0.12);
}
.feature-item-icon--green { background: var(--success-soft); }
.feature-item-icon--blue { background: var(--info-soft); }
.feature-item-title { font-size: 0.88rem; font-weight: 600; margin-bottom: 2px; }
.feature-item-desc { font-size: 0.75rem; color: var(--hint); line-height: 1.45; }

/* ── Trust footer (buy flow) ───────────────────────────────── */
.trust-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 14px 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}
.trust-footer-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    color: var(--hint);
    font-weight: 500;
}
.trust-footer-item span:first-child { font-size: 0.9rem; }

/* ── Admin welcome ─────────────────────────────────────────── */
.admin-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.06) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    margin-bottom: 14px;
}
.admin-welcome-title { font-size: 1.1rem; font-weight: 700; }
.admin-welcome-sub { font-size: 0.78rem; color: var(--hint); margin-top: 3px; }
.admin-status-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.admin-status-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    background: var(--glass);
    border: 1px solid var(--glass-border);
}
.admin-status-chip .status-led {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--hint);
}
.admin-status-chip.ok .status-led {
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
}
.admin-status-chip.warn .status-led {
    background: var(--warning);
    box-shadow: 0 0 8px var(--warning);
}

/* Buy page — available locations info card */
.loc-info-card {
    background: var(--section-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 14px;
    margin-bottom: 14px;
}
.loc-info-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}
.loc-info-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}
.loc-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    font-size: 0.78rem;
    color: var(--text);
    line-height: 1.4;
}
.loc-empty { color: var(--hint); font-size: 0.85rem; }
.loc-info-note {
    font-size: 0.72rem;
    color: var(--hint);
    line-height: 1.7;
}

/* Admin Groups & Locations — enhanced card UI */
.grp-card {
    margin-bottom: 12px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--section-bg);
}
.grp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.grp-title-block { min-width: 0; flex: 1; }
.grp-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.grp-name {
    font-size: 0.98rem;
    color: var(--text);
}
.grp-id {
    font-size: 0.7rem;
    color: var(--hint);
    margin-top: 2px;
}
.grp-id code {
    background: var(--glass);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
}
.grp-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
    flex-wrap: wrap;
}
.grp-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px 14px;
    padding: 10px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.grp-meta { min-width: 0; }
.grp-meta-label {
    font-size: 0.68rem;
    color: var(--hint);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
    font-weight: 600;
}
.grp-meta-value {
    font-size: 0.82rem;
    color: var(--text);
    word-break: break-word;
}
.grp-meta-value code {
    background: var(--glass);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.78rem;
    color: var(--text);
}
.grp-meta-pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    font-size: 0.75rem;
}
.grp-meta-pill.muted {
    color: var(--hint);
    font-style: italic;
}
.grp-link-ok {
    color: var(--success);
    font-weight: 600;
}
.grp-link-missing {
    color: var(--warning);
    font-style: italic;
}
.grp-servers {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.grp-srv-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    font-size: 0.72rem;
    color: var(--text);
}
.grp-srv-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--hint);
    flex-shrink: 0;
}
.grp-srv-dot.on {
    background: var(--success);
    box-shadow: 0 0 6px var(--success);
}
.grp-srv-dot.off {
    background: var(--warning);
}
.grp-empty {
    color: var(--hint);
    font-style: italic;
    font-size: 0.78rem;
}
.grp-loading {
    color: var(--hint);
    font-size: 0.8rem;
    padding: 6px 0;
}

/* Form select / form input — make them visually consistent inside modals.
   Modal overlays used to render raw <select> with no theming. */
.form-select,
.form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--section-bg);
    color: var(--text);
    font: inherit;
    font-size: 0.88rem;
    line-height: 1.4;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.form-select {
    background-image: linear-gradient(45deg, transparent 50%, var(--hint) 50%),
                      linear-gradient(135deg, var(--hint) 50%, transparent 50%);
    background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-inline-end: 32px;
}
.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--btn);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.15);
}
.form-input::placeholder { color: var(--hint); opacity: 0.65; }

/* Buy page — location card ad title + status */
.location-card .location-ad {
    font-size: 0.72rem;
    color: var(--hint);
    margin-top: 2px;
    line-height: 1.4;
}
.location-card .location-status {
    font-size: 0.68rem;
    color: var(--warning);
    margin-top: 4px;
}
