:root {
    --bg-primary: #06060b;
    --bg-2: #0e0e16;
    --bg-card: #141420;
    --bg-input: #08080e;
    --text-primary: #f0f0f5;
    --text-secondary: #c8c8d8;
    --accent: #3b82f6;
    --accent-2: #818cf8;
    --accent-hover: #2563eb;
    --accent-glow: rgba(59, 130, 246, 0.45);
    --glow: rgba(59, 130, 246, 0.15);
    --glow-2: rgba(129, 140, 248, 0.1);
    --border: rgba(255, 255, 255, 0.06);
    --border-strong: rgba(255, 255, 255, 0.1);
    --border-subtle: rgba(255, 255, 255, 0.04);
    --success: #34d399;
    --error: #f87171;
    --warning: #fbbf24;
    --radius: 16px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    width: 100%;
    -webkit-font-smoothing: antialiased;
}

/* Hero glow behind the first screen */
body::before {
    content: '';
    position: fixed;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: min(700px, 100vw);
    height: 500px;
    background: radial-gradient(ellipse, var(--glow) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

a { color: inherit; text-decoration: none; }

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: 64px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 clamp(1.25rem, 4vw, 3rem);
    background: rgba(6, 6, 11, 0.8);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.3px;
}

.logo-accent {
    color: var(--accent);
    font-style: normal;
}

.logo-icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    display: block;
}

.btn-wallet {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .5rem 1rem;
    background: var(--accent-hover); color: #fff;
    font-size: .85rem; font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 0 20px 2px rgba(59, 130, 246, .45), 0 0 8px 0 rgba(59, 130, 246, .35);
    transition: all .2s ease;
}
.btn-wallet:hover {
    background: var(--accent);
    box-shadow: 0 0 28px 4px rgba(59, 130, 246, .6), 0 0 12px 1px rgba(59, 130, 246, .5);
    transform: translateY(-1px);
}
.btn-wallet svg { width: 16px; height: 16px; }

/* Main */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: calc(64px + 3rem) clamp(1.25rem, 4vw, 3rem) 3rem;
    max-width: 1140px;
    margin: 0 auto;
    width: 100%;
}

/* Footer */
.footer {
    padding: 2rem clamp(1.25rem, 4vw, 3rem);
    text-align: center;
    border-top: 1px solid var(--border);
    max-width: 1140px;
    margin: 0 auto;
    width: 100%;
}

.footer p {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.footer a:hover {
    color: var(--accent);
}

/* Card */
.card {
    background: rgba(20, 20, 32, 0.5);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
    width: 100%;
    max-width: 640px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px var(--glow);
}

.card h1 {
    font-size: clamp(1.6rem, 4.5vw, 2rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 1.75rem;
    color: var(--text-primary);
}

.card h1 .grad {
    background: linear-gradient(90deg, #ffffff 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card h1.card-title-hero {
    font-size: clamp(1.8rem, 5vw, 2.6rem);
    text-align: center;
    margin-bottom: 2rem;
}

.order-id-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
}

.order-id-row h1 {
    margin-bottom: 0;
}

h2 { font-size: 1.1rem; margin-bottom: 1rem; color: var(--text-secondary); }
h3 { font-size: 1rem; margin-bottom: 0.75rem; color: var(--text-secondary); }

/* Info row */
.info-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.info-box {
    flex: 1;
    background: var(--bg-input);
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    position: relative;
    transition: border-color .25s ease, transform .25s ease;
}

.info-box:hover {
    border-color: rgba(59, 130, 246, 0.2);
    transform: translateY(-1px);
}

.help-icon {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid var(--text-secondary);
    font-size: 0.6rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    z-index: 2;
}

.help-icon:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    z-index: 50;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4);
    line-height: 1.5;
}

.tooltip.visible {
    display: block;
}

.epoch-timer {
    margin-top: 0.4rem;
    color: var(--accent);
    font-weight: 600;
}

.info-box .label, .field-ro .label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.info-box .value {
    font-size: 1.15rem;
    font-weight: 700;
    padding-right: 1.5rem;
}

/* Form fields */
.field {
    margin-bottom: 1.25rem;
}

.field label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
    font-weight: 500;
}

.field input, .field select {
    width: 100%;
    padding: 0.8rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus, .field select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.field .hint {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.35rem;
}

.cost-display {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding: 0.4rem 0;
}

/* Buttons */
#submit-btn {
    margin-top: 0.75rem;
}

button, .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.95rem;
    background: var(--accent-hover);
    color: #ffffff;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 0 10px 1px rgba(59, 130, 246, .23), 0 0 4px 0 rgba(59, 130, 246, .18);
}

button:hover, .btn:hover {
    background: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 0 28px 4px rgba(59, 130, 246, .6), 0 0 12px 1px rgba(59, 130, 246, .5);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.error {
    color: var(--error);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    padding: 0.6rem 0.8rem;
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.2);
    border-radius: 8px;
}

/* Contact section */
.contact-section {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--border);
}

.contact-section p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.contact-buttons {
    display: flex;
    gap: 0.75rem;
}

.btn-contact {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: transparent;
    color: var(--accent);
    border: 1.5px solid var(--accent);
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    box-shadow: none;
    width: auto;
}

.btn-contact:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 24px var(--glow);
}

.btn-contact svg {
    flex-shrink: 0;
}

/* Status page */
.status-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 24px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.status-pending { background: rgba(251, 191, 36, 0.12); color: var(--warning); border: 1px solid rgba(251, 191, 36, 0.25); }
.status-confirming, .status-confirmed { background: rgba(251, 191, 36, 0.12); color: var(--warning); border: 1px solid rgba(251, 191, 36, 0.25); }
.status-paid, .status-sending { background: rgba(59, 130, 246, 0.15); color: var(--accent); border: 1px solid rgba(59, 130, 246, 0.3); }
.status-expired, .status-refunded { background: rgba(248, 113, 113, 0.12); color: var(--error); border: 1px solid rgba(248, 113, 113, 0.25); }
.status-completed { background: rgba(52, 211, 153, 0.15); color: var(--success); border: 1px solid rgba(52, 211, 153, 0.3); }
.status-failed { background: rgba(248, 113, 113, 0.12); color: var(--error); border: 1px solid rgba(248, 113, 113, 0.25); }

.payment-info {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.payment-info.success { border-color: rgba(0, 200, 83, 0.4); }

.payment-info .hint {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.error-box { border-color: rgba(248, 113, 113, 0.4); }

.rate-timer {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(59, 130, 246, 0.4);
    background: rgba(59, 130, 246, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
}
.rate-timer-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.rate-timer-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}

.field-ro {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
    gap: 1rem;
}

.field-ro:last-child { border-bottom: none; }

.field-ro .value {
    text-align: right;
    word-break: break-all;
    font-size: 0.9rem;
}

.mono { font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace; font-size: 0.82rem; }

.tx-link {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}

.tx-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.copyable {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
    padding: 0;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: none;
    flex-shrink: 0;
}

.copy-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(59, 130, 246, 0.1);
    transform: none;
    box-shadow: none;
}

.copy-btn.copied {
    color: var(--success);
    border-color: var(--success);
}

.qr-container {
    text-align: center;
    margin: 1rem 0;
}

.qr-img {
    width: 200px;
    height: 200px;
    border-radius: 12px;
}

.order-details {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 1rem auto;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Crypto select dropdown */
.crypto-select {
    position: relative;
    width: 100%;
}

.crypto-selected {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.8rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    min-height: 46px;
}

.crypto-select.open .crypto-selected {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
    border-radius: 12px 12px 0 0;
}

.crypto-placeholder {
    color: var(--text-secondary);
}

.crypto-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--accent);
    border-top: none;
    border-radius: 0 0 12px 12px;
    z-index: 100;
    max-height: 320px;
    overflow: hidden;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px var(--glow);
}

.crypto-dropdown.open {
    display: flex;
}

.crypto-search-wrap {
    padding: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.crypto-search {
    width: 100%;
    padding: 0.55rem 0.75rem;
    background: var(--bg-input);
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.crypto-search:focus {
    border-color: var(--accent);
}

.crypto-list {
    overflow-y: auto;
    max-height: 260px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.crypto-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1rem;
    cursor: pointer;
    transition: background 0.15s;
}

.crypto-item:hover {
    background: rgba(59, 130, 246, 0.08);
}

.crypto-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    flex-shrink: 0;
}

.crypto-icon-fallback {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    font-size: 0.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-transform: uppercase;
}

.crypto-item-info {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    min-width: 0;
}

.crypto-coin {
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
}

.crypto-network {
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.crypto-separator {
    height: 1px;
    background: var(--border);
    margin: 0.15rem 1rem;
}

.crypto-empty {
    padding: 1rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Legal pages */
.legal-card {
    max-width: 720px;
}

.legal-card h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    -webkit-text-fill-color: var(--text-primary);
    background: none;
}

.legal-card h2 {
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-top: 1.75rem;
    margin-bottom: 0.5rem;
}

.legal-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.legal-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 0.5rem 0;
}

.legal-card li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    padding-left: 1.25rem;
    position: relative;
    margin-bottom: 0.25rem;
}

.legal-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
}

.legal-card a {
    color: var(--accent);
    text-decoration: none;
}

.legal-card a:hover {
    text-decoration: underline;
}

/* Referral page */
.ref-card {
    max-width: 900px;
}

.ref-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.25rem;
}

.ref-divider {
    height: 1px;
    background: var(--border);
    margin: 2rem 0;
}

.ref-check-title {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1rem;
    -webkit-text-fill-color: var(--text-primary);
    background: none;
}

.ref-lookup {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.ref-lookup-input {
    flex: 1;
    padding: 0.8rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ref-lookup-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.ref-lookup-btn {
    width: auto;
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
    border-radius: 12px;
    white-space: nowrap;
}

/* Stats grid */
.ref-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.ref-stat-card {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    transition: border-color .25s ease, transform .25s ease;
}

.ref-stat-card:hover {
    border-color: rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

.ref-stat-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.ref-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.ref-stat-accent { color: var(--accent); }
.ref-stat-success { color: var(--success); }

/* Table card */
.ref-table-card {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.ref-table-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
}

.ref-table-header h3 {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 600;
}

.ref-table-wrap {
    overflow-x: auto;
}

.ref-table {
    width: 100%;
    border-collapse: collapse;
}

.ref-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.02);
    white-space: nowrap;
    border-bottom: 1px solid var(--border);
}

.ref-table td {
    padding: 0.7rem 1rem;
    font-size: 0.82rem;
    color: var(--text-primary);
    white-space: nowrap;
    border-bottom: 1px solid var(--border-subtle);
}

.ref-table tbody tr {
    transition: background 0.15s;
}

.ref-table tbody tr:hover {
    background: rgba(59, 130, 246, 0.04);
}

.ref-table tbody tr:last-child td {
    border-bottom: none;
}

/* Status badges */
.ref-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.ref-badge-completed {
    background: rgba(52, 211, 153, 0.12);
    color: var(--success);
    border: 1px solid rgba(52, 211, 153, 0.25);
}

.ref-badge-pending {
    background: rgba(251, 191, 36, 0.12);
    color: var(--warning);
    border: 1px solid rgba(251, 191, 36, 0.25);
}

.ref-badge-failed {
    background: rgba(248, 113, 113, 0.12);
    color: var(--error);
    border: 1px solid rgba(248, 113, 113, 0.25);
}

/* Pagination */
.ref-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.ref-pagination button {
    width: auto;
    padding: 0.35rem 1rem;
    font-size: 0.78rem;
    border-radius: 8px;
}

/* Empty state */
.ref-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.ref-status-completed { color: var(--success); }
.ref-status-pending { color: var(--warning); }
.ref-status-failed { color: var(--error); }

/* Responsive */
@media (max-width: 560px) {
    main { padding: calc(64px + 1.5rem) 1rem 2rem; }
    .card { padding: 1.5rem; border-radius: 14px; }
    .card h1 { font-size: 1.5rem; }
    .info-row { flex-direction: column; }
    .contact-buttons { flex-direction: column; }
    .ref-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .ref-lookup { flex-direction: column; }
    .ref-lookup-btn { width: 100%; }
    .logo { font-size: 1rem; }
    .logo-icon { width: 24px; height: 24px; border-radius: 6px; }
    .btn-wallet { font-size: .75rem; padding: .4rem .8rem; }
}
