/* ========================================================================
   SPRINGWAVE MERCHANT — 2026 DESIGN SYSTEM
   Clean Fintech · Teal + Amber · Flat Cards · Minimal
   Completely different identity from Admin (purple/dark sidebar/glass)
   ======================================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');

/* ── Tokens ─────────────────────────────────────────────────────────────── */
:root {
    /* Brand — Warm Teal, NOT purple */
    --brand: #0d9488;
    --brand-light: #5eead4;
    --brand-dark: #0f766e;
    --brand-50: #f0fdfa;
    --brand-100: #ccfbf1;

    /* Accent — Warm Amber, NOT gradient-based */
    --accent: #f59e0b;
    --accent-light: #fbbf24;
    --accent-dark: #d97706;

    /* Surfaces — Clean whites, NO glassmorphism */
    --bg-body: #fafaf9;
    --bg-card: #ffffff;
    --bg-muted: #f5f5f4;
    --bg-hover: #fafaf9;
    --bg-input: #ffffff;

    /* Text — Warm grays */
    --text: #1c1917;
    --text-secondary: #44403c;
    --text-muted: #78716c;
    --text-faint: #a8a29e;
    --text-inverse: #ffffff;

    /* Borders — Subtle warm */
    --border: #e7e5e4;
    --border-strong: #d6d3d1;
    --border-focus: var(--brand);

    /* Status */
    --green: #16a34a;
    --green-bg: #f0fdf4;
    --green-text: #15803d;
    --red: #dc2626;
    --red-bg: #fef2f2;
    --red-text: #b91c1c;
    --amber: #d97706;
    --amber-bg: #fffbeb;
    --amber-text: #92400e;

    /* Shadows — Subtle, warm-tinted */
    --shadow-xs: 0 1px 2px rgba(28, 25, 23, 0.04);
    --shadow-sm: 0 1px 3px rgba(28, 25, 23, 0.06), 0 1px 2px rgba(28, 25, 23, 0.04);
    --shadow-md: 0 4px 12px rgba(28, 25, 23, 0.07);
    --shadow-lg: 0 10px 30px rgba(28, 25, 23, 0.09);
    --shadow-xl: 0 20px 50px rgba(28, 25, 23, 0.12);

    /* Radii — Softer, rounder */
    --r-xs: 8px;
    --r-sm: 12px;
    --r-md: 16px;
    --r-lg: 20px;
    --r-xl: 28px;
    --r-full: 9999px;

    /* Motion */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --duration: 0.25s;

    /* Type — DM Sans, NOT Inter */
    --font: 'DM Sans', system-ui, -apple-system, sans-serif;
    --mono: 'SF Mono', 'Cascadia Code', 'Fira Code', monospace;
}

/* ── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { height: 100%; -webkit-text-size-adjust: 100%; }
body {
    height: 100%;
    font-family: var(--font);
    background: var(--bg-body);
    color: var(--text);
    line-height: 1.6;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

/* ── Login Page ─────────────────────────────────────────────────────────── */
.login-page {
    min-height: 100vh;
    display: flex;
    background: var(--bg-body);
}

.login-left {
    flex: 1;
    background: linear-gradient(160deg, #0d9488 0%, #0f766e 40%, #115e59 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

.login-left::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.login-left::after {
    content: '';
    position: absolute;
    bottom: -150px; left: -80px;
    width: 350px; height: 350px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
}

.login-left-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
    max-width: 380px;
}

.login-left-content .brand-mark {
    width: 80px; height: 80px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    border-radius: var(--r-xl);
    display: grid; place-items: center;
    font-weight: 800; font-size: 32px;
    margin: 0 auto 28px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-left-content h1 {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
    line-height: 1.2;
}

.login-left-content p {
    font-size: 15px;
    opacity: 0.7;
    line-height: 1.6;
}

.login-right {
    width: 480px;
    min-width: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    background: var(--bg-card);
}

.login-card {
    width: 100%;
    max-width: 360px;
}

.login-card h2 {
    font-size: 26px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.03em;
    margin-bottom: 6px;
}

.login-card .subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.input-group input {
    width: 100%;
    padding: 13px 16px;
    border-radius: var(--r-sm);
    border: 1.5px solid var(--border);
    font-size: 15px;
    color: var(--text);
    font-family: var(--font);
    background: var(--bg-input);
    transition: all var(--duration) var(--ease);
}

.input-group input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px var(--brand-50);
}

.input-group input::placeholder {
    color: var(--text-faint);
}

.login-error {
    background: var(--red-bg);
    border: 1px solid rgba(220, 38, 38, 0.12);
    color: var(--red-text);
    padding: 14px 16px;
    border-radius: var(--r-sm);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.login-footer {
    text-align: center;
    margin-top: 36px;
    font-size: 12px;
    color: var(--text-faint);
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: var(--r-sm);
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    background: var(--brand);
    color: #fff;
    transition: all var(--duration) var(--ease);
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.25);
}

.primary-btn:hover {
    background: var(--brand-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(13, 148, 136, 0.3);
}

.primary-btn:active { transform: translateY(0); }

.primary-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.primary-btn.full { width: 100%; }

.primary-btn.amber {
    background: var(--accent);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25);
}

.primary-btn.amber:hover {
    background: var(--accent-dark);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
}

/* ── Navbar ─────────────────────────────────────────────────────────────── */
.navbar {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 0 32px;
    height: 64px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 40;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-brand-icon {
    width: 38px; height: 38px;
    border-radius: var(--r-sm);
    background: var(--brand);
    color: #fff;
    display: grid; place-items: center;
    font-weight: 800;
    font-size: 16px;
    flex-shrink: 0;
}

.navbar h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
}

.navbar small {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 1px;
}

.navbar-logout {
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--text-muted);
    padding: 9px 18px;
    border-radius: var(--r-sm);
    font-size: 14px;
    font-weight: 650;
    cursor: pointer;
    transition: all var(--duration) var(--ease);
}

.navbar-logout:hover {
    border-color: var(--red);
    color: var(--red);
    background: var(--red-bg);
}

/* ── Tabs ───────────────────────────────────────────────────────────────── */
.tabs {
    display: flex;
    gap: 6px;
    padding: 16px 32px 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tabs button {
    flex: 0 0 auto;
    padding: 12px 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 650;
    color: var(--text-muted);
    transition: all var(--duration) var(--ease);
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    border-radius: var(--r-xs) var(--r-xs) 0 0;
}

.tabs button:hover {
    color: var(--text);
    background: var(--bg-muted);
}

.tabs button.active {
    color: var(--brand);
    border-bottom-color: var(--brand);
    background: var(--brand-50);
}

/* ── Container ──────────────────────────────────────────────────────────── */
.container {
    max-width: 1100px;
    margin: auto;
    padding: 32px 32px 60px;
}

/* ── Section Title ──────────────────────────────────────────────────────── */
.section-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text);
    letter-spacing: -0.02em;
}

/* ── Wallet ─────────────────────────────────────────────────────────────── */
.wallet-card {
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 50%, #115e59 100%);
    border-radius: var(--r-xl);
    padding: 36px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(13, 148, 136, 0.25);
}

.wallet-card::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
}

.wallet-card::after {
    content: '';
    position: absolute;
    bottom: -80px; left: -40px;
    width: 180px; height: 180px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
}

.wallet-label {
    font-size: 13px;
    font-weight: 600;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.wallet-amount {
    font-size: 42px;
    font-weight: 800;
    margin-top: 6px;
    letter-spacing: -0.03em;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    position: relative;
    z-index: 1;
}

.wallet-amount span {
    font-size: 16px;
    font-weight: 600;
    margin-left: 6px;
    opacity: 0.6;
}

.wallet-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.wallet-actions input {
    width: 200px;
    padding: 13px 16px;
    border-radius: var(--r-sm);
    border: 2px solid rgba(255, 255, 255, 0.2);
    font-size: 15px;
    font-family: var(--font);
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    transition: all var(--duration) var(--ease);
}

.wallet-actions input::placeholder { color: rgba(255, 255, 255, 0.4); }

.wallet-actions input:focus {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
}

.wallet-actions .primary-btn {
    background: #fff;
    color: var(--brand-dark);
    box-shadow: none;
    font-weight: 800;
}

.wallet-actions .primary-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* ── Game Search ────────────────────────────────────────────────────────── */
.game-search {
    margin-bottom: 20px;
}

.game-search input {
    width: 100%;
    max-width: 420px;
    padding: 13px 16px 13px 44px;
    border-radius: var(--r-sm);
    background: var(--bg-card) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a8a29e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='8'/><path d='m21 21-4.3-4.3'/></svg>") no-repeat 16px center;
    border: 1.5px solid var(--border);
    color: var(--text);
    font-size: 15px;
    font-family: var(--font);
    outline: none;
    transition: all var(--duration) var(--ease);
    box-shadow: var(--shadow-xs);
}

.game-search input::placeholder { color: var(--text-faint); }

.game-search input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px var(--brand-50);
}

/* ── Game Panel ─────────────────────────────────────────────────────────── */
.game-panel {
    background: var(--bg-card);
    border-radius: var(--r-lg);
    margin-bottom: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all var(--duration) var(--ease);
    box-shadow: var(--shadow-xs);
}

.game-panel:hover {
    box-shadow: var(--shadow-sm);
}

.game-panel.active {
    border-color: var(--brand);
    box-shadow: 0 0 0 1px var(--brand), var(--shadow-sm);
}

.game-panel-header {
    padding: 18px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background var(--duration) var(--ease);
}

.game-panel-header:hover {
    background: var(--bg-hover);
}

.game-left {
    display: flex;
    gap: 14px;
    align-items: center;
}

.game-thumb {
    width: 52px;
    height: 52px;
    border-radius: var(--r-sm);
    object-fit: cover;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.game-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}

.game-meta {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
}

.chevron {
    font-size: 14px;
    color: var(--text-faint);
    transition: transform var(--duration) var(--ease);
}

/* ── Game Body ──────────────────────────────────────────────────────────── */
.game-panel-body {
    display: none;
    padding: 18px 22px;
    border-top: 1px solid var(--border);
    background: var(--bg-muted);
}

/* ── Game Fields ────────────────────────────────────────────────────────── */
.game-fields {
    margin-bottom: 18px;
    padding: 16px 18px;
    background: var(--bg-card);
    border-radius: var(--r-sm);
    border: 1px solid var(--border);
}

.fields-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}

.fields-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.field-badge {
    padding: 5px 12px;
    background: var(--brand-50);
    color: var(--brand-dark);
    border-radius: var(--r-full);
    font-size: 12px;
    font-weight: 700;
    border: 1px solid var(--brand-100);
}

/* ── Items ──────────────────────────────────────────────────────────────── */
.item-header,
.item-row {
    display: grid;
    grid-template-columns: 1fr 120px 120px;
    gap: 12px;
    align-items: center;
}

.item-header {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.item-row {
    padding: 12px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.item-row:not(:last-child) {
    border-bottom: 1px dashed var(--border);
}

/* ── Badges ─────────────────────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--r-full);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.badge.instock {
    background: var(--green-bg);
    color: var(--green-text);
    border: 1px solid rgba(22, 163, 74, 0.1);
}

.badge.outofstock {
    background: var(--red-bg);
    color: var(--red-text);
    border: 1px solid rgba(220, 38, 38, 0.1);
}

/* ── Status Badges ──────────────────────────────────────────────────────── */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: var(--r-full);
    font-size: 12px;
    font-weight: 700;
}

.status-badge.active {
    background: var(--green-bg);
    color: var(--green-text);
    border: 1px solid rgba(22, 163, 74, 0.1);
}

.status-badge.inactive,
.status-badge.suspended {
    background: var(--red-bg);
    color: var(--red-text);
    border: 1px solid rgba(220, 38, 38, 0.1);
}

.status-badge.pending {
    background: var(--amber-bg);
    color: var(--amber-text);
    border: 1px solid rgba(217, 119, 6, 0.1);
}

/* ── Table ──────────────────────────────────────────────────────────────── */
table {
    width: 100%;
    border-collapse: collapse;
}

table th {
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--border);
    padding: 14px 16px;
}

table td {
    padding: 15px 16px;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

table td a {
    color: var(--brand);
    font-weight: 700;
    transition: color var(--duration) var(--ease);
}

table td a:hover {
    color: var(--brand-dark);
}

/* ── Merchant Profile Grid ──────────────────────────────────────────────── */
.merchant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 22px;
}

.merchant-card-item {
    background: var(--bg-card);
    padding: 24px;
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
    transition: all var(--duration) var(--ease);
    position: relative;
    overflow: hidden;
}

.merchant-card-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 100%;
    background: var(--brand);
    border-radius: 0 4px 4px 0;
}

.merchant-card-item:hover {
    box-shadow: var(--shadow-sm);
}

.merchant-card-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}

.merchant-card-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    word-break: break-all;
}

.merchant-card-value.code {
    font-family: var(--mono);
    background: var(--bg-muted);
    padding: 8px 12px;
    border-radius: var(--r-xs);
    display: inline-block;
    font-size: 14px;
    border: 1px solid var(--border);
}

.merchant-card-value.api-key {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--mono);
    font-size: 14px;
}

.copy-btn {
    background: var(--brand);
    color: white;
    border: none;
    padding: 7px 14px;
    border-radius: var(--r-xs);
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    transition: all var(--duration) var(--ease);
    flex-shrink: 0;
}

.copy-btn:hover {
    background: var(--brand-dark);
}

/* ── History Table ──────────────────────────────────────────────────────── */
.history-table {
    margin-top: 22px;
    overflow-x: auto;
}

.history-table table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    border: 1px solid var(--border);
}

.history-table th {
    background: var(--bg-muted);
    text-align: left;
    padding: 14px 18px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border);
}

.history-table td {
    padding: 15px 18px;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.history-table tbody tr { transition: background var(--duration) var(--ease); }
.history-table tbody tr:hover { background: var(--bg-hover); }
.history-table tbody tr:last-child td { border-bottom: none; }

/* ── Top-Up Modal ───────────────────────────────────────────────────────── */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(28, 25, 23, 0.5);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: flex-start;
    padding: 60px 20px;
    overflow-y: auto;
}

.modal-content {
    background: var(--bg-card);
    width: 480px;
    max-width: 100%;
    padding: 32px;
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-xl);
    position: relative;
    border: 1px solid var(--border);
    animation: modalSlideUp 0.3s var(--ease);
}

@keyframes modalSlideUp {
    from { transform: translateY(16px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-content h3 {
    margin-top: 0;
    font-size: 21px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 18px;
    letter-spacing: -0.02em;
}

.modal-content p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 10px 0;
}

.close-btn {
    position: absolute;
    top: 18px; right: 20px;
    width: 36px; height: 36px;
    border-radius: var(--r-sm);
    background: var(--bg-muted);
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    display: grid; place-items: center;
    transition: all var(--duration) var(--ease);
}

.close-btn:hover {
    background: var(--red-bg);
    color: var(--red);
}

/* Amount Breakdown */
.amount-breakdown {
    text-align: left;
    margin-bottom: 20px;
    padding: 18px;
    background: var(--bg-muted);
    border-radius: var(--r-sm);
    border: 1px solid var(--border);
}

.amount-breakdown p {
    margin: 4px 0 2px;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.amount-breakdown strong {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
    color: var(--text);
    font-weight: 700;
}

.highlight-total {
    font-size: 22px !important;
    color: var(--brand) !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em;
}

/* Acknowledgement Message */
.ack-message {
    background: var(--amber-bg);
    color: var(--amber-text);
    padding: 14px 16px;
    border-radius: var(--r-sm);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 18px;
    border: 1px solid rgba(217, 119, 6, 0.1);
}

/* Wallet Address Box */
.wallet-address {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: var(--bg-muted);
    padding: 14px 16px;
    border-radius: var(--r-sm);
    margin: 14px 0;
    word-break: break-all;
    border: 1px solid var(--border);
}

.wallet-address code {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--text);
    word-break: break-all;
}

.wallet-address button {
    background: var(--brand);
    color: #fff;
    border: none;
    padding: 7px 16px;
    border-radius: var(--r-xs);
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    transition: all var(--duration) var(--ease);
    flex-shrink: 0;
}

.wallet-address button:hover {
    background: var(--brand-dark);
}

/* Upload Section */
.upload-section {
    margin: 18px 0;
    text-align: left;
}

.upload-section label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 8px;
}

.upload-section input[type="file"] {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--r-sm);
    font-size: 14px;
    background: var(--bg-input);
    font-family: var(--font);
    cursor: pointer;
    transition: border-color var(--duration) var(--ease);
}

.upload-section input[type="file"]:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px var(--brand-50);
}

/* Image Preview */
.preview-container {
    position: relative;
    margin-top: 14px;
    display: none;
    width: 140px;
}

.preview-container img {
    width: 100%;
    border-radius: var(--r-sm);
    border: 1px solid var(--border);
}

.remove-preview {
    position: absolute;
    top: -6px; right: -6px;
    background: var(--red);
    color: white;
    width: 24px; height: 24px;
    font-size: 14px;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    cursor: pointer;
    border: 2px solid #fff;
    transition: all var(--duration) var(--ease);
}

.remove-preview:hover {
    transform: scale(1.1);
}

/* ── Success Modal ──────────────────────────────────────────────────────── */
.tp-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(28, 25, 23, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.tp-modal-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--r-xl);
    text-align: center;
    max-width: 380px;
    width: 90%;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
    animation: modalSlideUp 0.3s var(--ease);
}

.tp-status-icon {
    width: 72px; height: 72px;
    background: var(--green);
    color: white;
    font-size: 32px;
    display: grid; place-items: center;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
}

.tp-modal-title {
    font-size: 21px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.tp-modal-text {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 14px;
}

.tp-action-btn {
    background: var(--text);
    color: white;
    border: none;
    width: 100%;
    padding: 14px;
    border-radius: var(--r-sm);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all var(--duration) var(--ease);
}

.tp-action-btn:hover {
    background: var(--text-secondary);
    transform: translateY(-1px);
}

/* ── Mobile ─────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .login-page {
        flex-direction: column;
    }

    .login-left {
        display: none;
    }

    .login-right {
        width: 100%;
        min-width: unset;
        padding: 32px 24px;
    }

    .wallet-card {
        flex-direction: column;
        align-items: stretch;
        padding: 28px 24px;
    }

    .wallet-actions {
        width: 100%;
    }

    .wallet-actions input {
        flex: 1;
    }

    .tabs {
        padding: 12px 16px 0;
    }

    .tabs button {
        padding: 10px 14px;
        font-size: 13px;
    }

    .item-header,
    .item-row {
        grid-template-columns: 1fr 90px;
    }

    .merchant-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 24px 16px 48px;
    }

    .navbar {
        padding: 0 16px;
    }
}
