/* =============================================================================
   File: static/app.css
   Tree: snap-coin-deals/static/app.css
   Description: SNAP Deals — maritime dark theme, mobile-first
   Version: 0.8.0
   Comments: Removed class-based screen show/hide — JS controls display directly
             No .hidden class on screens or views — style.display used throughout
             Deep harbour palette, sea glass teal accent
             Mobile-first single column, bottom nav, card feed
             Added: claim QR expand/collapse styles
             Added: expandable deal cards — header-only collapsed state
             Changed: deal meta prominent, claim button subtle, biz name full
             Fixed: grid cards align-self start
             Fixed: category label lighter color
             Added: profile hero, metrics grid
             Added: login wallet step styles
             Added: enroll member modal styles, enroll result styles
             Added: wallet-input-wrap — QR scan button inside wallet field
             Added: safe-area-inset padding on header and bottom-nav
============================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=DM+Sans:wght@300;400;500;600&family=DM+Mono:wght@400;500&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg:               #0a0e12;
    --bg-panel:         #0f1419;
    --bg-card:          #141b22;
    --bg-card-hover:    #1a2330;
    --bg-modal:         #0d1318;
    --border:           #1e2d3d;
    --border-light:     #253545;

    --accent:           #3dd6c0;
    --accent-dim:       #1f7a6e;
    --accent-glow:      rgba(61, 214, 192, 0.15);

    --text:             #e8edf2;
    --text-dim:         #7a8a9a;
    --text-muted:       #3d4f5f;
    --text-label:       #5a7080;

    --green:            #2ecc71;
    --red:              #e74c3c;
    --amber:            #f39c12;

    --claimed-bg:       #0d1a10;
    --claimed-border:   #1a3a1f;
    --claimed-text:     #2ecc71;

    --font-display:     'Playfair Display', Georgia, serif;
    --font-body:        'DM Sans', system-ui, sans-serif;
    --font-mono:        'DM Mono', 'Courier New', monospace;

    --header-h:         56px;
    --nav-h:            64px;
    --radius:           10px;
    --radius-sm:        6px;
    --radius-lg:        16px;
}

html, body {
    height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(61, 214, 192, 0.03) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(41, 128, 185, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* =============================================================================
   SCREENS
============================================================================= */

.screen { position: fixed; inset: 0; z-index: 10; }

#screen-login {
    background: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    padding-top: calc(24px + env(safe-area-inset-top));
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
}

#screen-app {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

/* =============================================================================
   LOGIN
============================================================================= */

#login-wrap {
    width: 100%;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

#login-logo { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }

.logo-snap {
    font-family: var(--font-display);
    font-size: 42px;
    color: var(--accent);
    letter-spacing: 2px;
    text-shadow: 0 0 30px rgba(61, 214, 192, 0.4);
}

.logo-deals {
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 300;
    color: var(--text-dim);
    letter-spacing: 4px;
    text-transform: uppercase;
}

#login-tagline {
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 24px;
    font-family: var(--font-mono);
}

/* each login step is a full-width form */
.login-step {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#login-token-input,
#login-wallet-input {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 48px 14px 16px;
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
}

#login-token-input {
    padding-right: 16px;
}

#login-token-input:focus,
#login-wallet-input:focus { border-color: var(--accent-dim); }

/* wallet input wrapper — positions QR button inside the field */
.wallet-input-wrap {
    position: relative;
    width: 100%;
}

.wallet-input-wrap #login-wallet-input {
    width: 100%;
}

#btn-scan-wallet {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 6px;
    color: var(--accent-dim);
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

#btn-scan-wallet:active { color: var(--accent); }

#btn-login,
#btn-login-wallet {
    width: 100%;
    background: var(--accent);
    color: var(--bg);
    border: none;
    border-radius: var(--radius);
    padding: 14px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
}

#btn-login:active,
#btn-login-wallet:active { transform: scale(0.98); opacity: 0.9; }

#login-error,
#login-wallet-error {
    color: var(--red);
    font-size: 13px;
    text-align: center;
    font-family: var(--font-mono);
    display: none;
}

#login-wallet-hint {
    font-size: 13px;
    color: var(--text-dim);
    font-family: var(--font-mono);
    text-align: center;
    margin-bottom: 4px;
}

#login-footer {
    margin-top: 32px;
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 2px;
    font-family: var(--font-mono);
    text-transform: uppercase;
}

/* =============================================================================
   HEADER
============================================================================= */

#header {
    height: calc(var(--header-h) + env(safe-area-inset-top));
    padding-top: env(safe-area-inset-top);
    background: var(--bg-panel);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding-left: 16px;
    padding-right: 16px;
    gap: 12px;
    flex-shrink: 0;
    position: relative;
    z-index: 5;
}

#header-left { display: flex; align-items: baseline; gap: 8px; flex: 1; }
#header-left .logo-snap  { font-size: 22px; text-shadow: 0 0 16px rgba(61,214,192,0.3); }
#header-left .logo-deals { font-size: 11px; letter-spacing: 3px; }

#header-center { flex: 1; text-align: center; }

#header-location {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 1px;
    font-family: var(--font-mono);
}

#header-right { flex: 1; display: flex; align-items: center; justify-content: flex-end; gap: 10px; }

#header-role-badge {
    font-size: 10px;
    font-family: var(--font-mono);
    letter-spacing: 1px;
    padding: 3px 8px;
    border-radius: 20px;
    text-transform: uppercase;
}

#header-role-badge.role-member   { background: rgba(61,214,192,0.1); color: var(--accent); border: 1px solid var(--accent-dim); }
#header-role-badge.role-business { background: rgba(243,156,18,0.1); color: var(--amber);  border: 1px solid rgba(243,156,18,0.3); }
#header-role-badge.role-admin    { background: rgba(231,76,60,0.1);  color: var(--red);    border: 1px solid rgba(231,76,60,0.3); }

#btn-logout {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
}

#btn-logout:hover { color: var(--red); }

/* =============================================================================
   MAIN CONTENT
============================================================================= */

#main-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px;
    padding-bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom));
    position: relative;
    z-index: 1;
}

#main-content::-webkit-scrollbar       { width: 4px; }
#main-content::-webkit-scrollbar-track { background: transparent; }
#main-content::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* =============================================================================
   VIEWS
============================================================================= */

.view { display: none; }

.view-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.view-title {
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--text);
}

/* =============================================================================
   DEAL CARDS — expandable
============================================================================= */

#deals-feed { display: flex; flex-direction: column; gap: 10px; }

.deal-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color 0.2s;
    align-self: start;
}

.deal-card:not(.claimed):hover { border-color: var(--border-light); }
.deal-card.claimed             { background: var(--claimed-bg); border-color: var(--claimed-border); opacity: 0.75; }

.deal-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
    user-select: none;
}

.deal-card-header-info { flex: 1; min-width: 0; }

.biz-name-full {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    white-space: normal;
    word-break: break-word;
    line-height: 1.3;
}

.biz-category {
    font-size: 11px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-mono);
    margin-top: 2px;
}

.deal-expand-icon { font-size: 16px; color: var(--text-dim); flex-shrink: 0; line-height: 1; }

.deal-card-body { display: none; padding: 0 16px 16px; border-top: 1px solid var(--border); }
.deal-card-body.open { display: block; }

.deal-title { font-size: 16px; font-weight: 600; color: var(--text); margin: 14px 0 6px; line-height: 1.3; }

.deal-description { font-size: 13px; color: var(--text-dim); line-height: 1.5; margin-bottom: 14px; }

.deal-meta { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.deal-meta-item { display: flex; align-items: center; gap: 4px; }

.deal-meta-prominent { font-size: 14px; font-family: var(--font-mono); font-weight: 500; color: var(--text-dim); }

.btn-claim {
    width: 100%;
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent-dim);
    border-radius: var(--radius);
    padding: 12px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.btn-claim:hover    { background: var(--accent-glow); border-color: var(--accent); }
.btn-claim:active   { opacity: 0.8; }
.btn-claim:disabled { border-color: var(--border); color: var(--text-muted); cursor: default; background: transparent; }

.claimed-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    border-radius: var(--radius);
    background: var(--claimed-bg);
    border: 1px solid var(--claimed-border);
    color: var(--claimed-text);
    font-size: 12px;
    font-family: var(--font-mono);
    letter-spacing: 1px;
}

/* =============================================================================
   BIZ AVATAR
============================================================================= */

.biz-avatar {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    color: #fff;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

.biz-avatar.food    { background: linear-gradient(135deg, #c0392b, #e74c3c); }
.biz-avatar.retail  { background: linear-gradient(135deg, #8e44ad, #c0527a); }
.biz-avatar.service { background: linear-gradient(135deg, #2471a3, #2980b9); }
.biz-avatar.other   { background: linear-gradient(135deg, #1a6b3a, #27ae60); }

/* =============================================================================
   VALUE PILL / BADGES
============================================================================= */

.deal-value-pill {
    background: rgba(61,214,192,0.08);
    border: 1px solid var(--accent-dim);
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}

.savings-badge {
    background: rgba(61,214,192,0.08);
    border: 1px solid var(--accent-dim);
    color: var(--accent);
    font-size: 12px;
    font-family: var(--font-mono);
    padding: 4px 10px;
    border-radius: 20px;
}

.count-badge {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 12px;
    font-family: var(--font-mono);
    padding: 4px 10px;
    border-radius: 20px;
}

/* =============================================================================
   MY CLAIMS
============================================================================= */

#my-claims-list { display: flex; flex-direction: column; gap: 10px; }

.claim-row { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }

.claim-row-main { padding: 14px 16px; display: flex; align-items: center; gap: 12px; }

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

.claim-row-title { font-size: 14px; font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.claim-row-biz { font-size: 12px; color: var(--text-muted); margin-top: 2px; font-family: var(--font-mono); }

.claim-row-value { font-family: var(--font-mono); font-size: 13px; color: var(--accent); white-space: nowrap; }

.claim-status { font-size: 10px; font-family: var(--font-mono); letter-spacing: 1px; padding: 3px 8px; border-radius: 20px; }

.claim-status.pending   { background: rgba(243,156,18,0.1);  color: var(--amber); border: 1px solid rgba(243,156,18,0.2); }
.claim-status.confirmed { background: rgba(46,204,113,0.1);  color: var(--green); border: 1px solid rgba(46,204,113,0.2); }
.claim-status.redeemed  { background: rgba(231,76,60,0.1);   color: var(--red);   border: 1px solid rgba(231,76,60,0.2); }

.btn-show-qr {
    background: none;
    border: none;
    color: var(--accent-dim);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 1px;
    cursor: pointer;
    padding: 2px 4px;
    transition: color 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-show-qr:hover { color: var(--accent); }

.claim-qr-panel { display: none; flex-direction: column; align-items: center; gap: 12px; padding: 16px; border-top: 1px solid var(--border); background: var(--bg-panel); }
.claim-qr-panel.open { display: flex; }

.claim-qr-canvas { background: #fff; padding: 12px; border-radius: var(--radius-sm); }

.claim-qr-label { font-size: 11px; font-family: var(--font-mono); color: var(--text-muted); letter-spacing: 1px; text-align: center; }

.claim-qr-id { font-size: 10px; font-family: var(--font-mono); color: var(--text-muted); word-break: break-all; text-align: center; opacity: 0.6; }

/* =============================================================================
   PROFILE
============================================================================= */

#profile-content { display: flex; flex-direction: column; gap: 12px; }

.profile-hero {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 4px;
}

.profile-avatar {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent-dim), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 20px;
    color: var(--bg);
    flex-shrink: 0;
    letter-spacing: 1px;
}

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

.profile-name { font-family: var(--font-display); font-size: 20px; color: var(--text); line-height: 1.2; }

.profile-role-tag { font-size: 10px; font-family: var(--font-mono); letter-spacing: 1.5px; color: var(--accent); margin-top: 4px; }

.profile-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }

.profile-label { font-size: 11px; color: var(--text-muted); font-family: var(--font-mono); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 4px; }

.profile-value { font-size: 14px; color: var(--text); font-family: var(--font-mono); word-break: break-all; }

.profile-address { font-size: 11px; color: var(--text-dim); word-break: break-all; line-height: 1.6; }

.profile-section-title { font-family: var(--font-display); font-size: 18px; color: var(--text); margin-top: 4px; margin-bottom: 4px; }

.profile-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.metric-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; text-align: center; }

.metric-value { font-family: var(--font-display); font-size: 28px; color: var(--text); line-height: 1.1; margin-bottom: 4px; }

.metric-label { font-size: 11px; color: var(--text-muted); font-family: var(--font-mono); letter-spacing: 1px; text-transform: uppercase; }

/* =============================================================================
   BUSINESS VIEWS
============================================================================= */

.btn-action-sm {
    background: var(--accent);
    color: var(--bg);
    border: none;
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: opacity 0.2s;
    font-family: var(--font-body);
}

.btn-action-sm:active { opacity: 0.8; }

#biz-deals-list,
#biz-claims-list { display: flex; flex-direction: column; gap: 10px; }

.biz-deal-row { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }

.biz-deal-row-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }

.biz-deal-row-title { font-size: 14px; font-weight: 500; color: var(--text); }

.biz-deal-row-meta { display: flex; gap: 12px; font-size: 12px; font-family: var(--font-mono); color: var(--text-muted); }

.biz-claim-row { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; display: flex; align-items: center; gap: 12px; }

.biz-claim-info { flex: 1; min-width: 0; }
.biz-claim-title { font-size: 13px; font-weight: 500; color: var(--text); }
.biz-claim-meta { font-size: 11px; color: var(--text-muted); font-family: var(--font-mono); margin-top: 2px; }

/* =============================================================================
   SCANNER
============================================================================= */

#scanner-content { display: flex; flex-direction: column; gap: 16px; }
#scanner-input-wrap { display: flex; gap: 10px; }

#scanner-wallet-input {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 14px;
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 12px;
    outline: none;
    transition: border-color 0.2s;
}

#scanner-wallet-input:focus { border-color: var(--accent-dim); }

#btn-verify-member {
    background: var(--accent);
    color: var(--bg);
    border: none;
    border-radius: var(--radius);
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    white-space: nowrap;
    font-family: var(--font-body);
}

#scanner-result { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; display: none; }

#scanner-result.verified   { border-color: rgba(46,204,113,0.4); background: rgba(46,204,113,0.05); }
#scanner-result.unverified { border-color: rgba(231,76,60,0.4);  background: rgba(231,76,60,0.05); }

.scanner-result-status { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.scanner-result-status.ok  { color: var(--green); }
.scanner-result-status.bad { color: var(--red); }
.scanner-result-detail { font-size: 13px; color: var(--text-dim); font-family: var(--font-mono); }

/* =============================================================================
   ADMIN
============================================================================= */

.admin-count-bar {
    font-size: 12px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.admin-row {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.admin-row-info  { flex: 1; min-width: 0; }
.admin-row-name  { font-size: 14px; font-weight: 500; color: var(--text); }
.admin-row-meta  { font-size: 11px; color: var(--text-muted); font-family: var(--font-mono); margin-top: 2px; word-break: break-all; }

.status-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.status-dot.active   { background: var(--green); box-shadow: 0 0 6px var(--green); }
.status-dot.inactive { background: var(--red); }

/* =============================================================================
   BOTTOM NAV
============================================================================= */

#bottom-nav {
    height: calc(var(--nav-h) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--bg-panel);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: stretch;
    flex-shrink: 0;
    position: relative;
    z-index: 5;
}

.nav-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 10px;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: color 0.2s;
    padding: 8px 4px;
    text-transform: uppercase;
}

.nav-tab .nav-icon        { font-size: 20px; line-height: 1; transition: transform 0.15s; }
.nav-tab.active           { color: var(--accent); }
.nav-tab.active .nav-icon { transform: translateY(-2px); }

/* =============================================================================
   MODALS
============================================================================= */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    z-index: 100;
    display: none;
    align-items: flex-end;
    padding: 16px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
    backdrop-filter: blur(4px);
}

.modal-box {
    width: 100%;
    background: var(--bg-modal);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg) var(--radius-lg) var(--radius) var(--radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-height: 85vh;
    overflow-y: auto;
}

.modal-title {
    font-family: var(--font-display);
    font-size: 20px;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
}

.modal-input {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 14px;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
    resize: vertical;
    transition: border-color 0.2s;
}

.modal-input:focus { border-color: var(--accent-dim); }

.modal-section-label {
    font-size: 11px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: -6px;
}

.modal-controls { display: flex; gap: 10px; margin-top: 4px; }

.btn-modal-cancel {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 13px;
    color: var(--text-dim);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.btn-modal-cancel:hover { border-color: var(--border-light); }

.btn-modal-confirm {
    flex: 2;
    background: var(--accent);
    border: none;
    border-radius: var(--radius);
    padding: 13px;
    color: var(--bg);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-modal-confirm:active { opacity: 0.85; }

.modal-error {
    color: var(--red);
    font-size: 12px;
    font-family: var(--font-mono);
    text-align: center;
    display: none;
    line-height: 1.5;
}

/* enroll result styles */
.enroll-result-name {
    font-family: var(--font-display);
    font-size: 18px;
    color: var(--text);
    text-align: center;
}

.enroll-result-address {
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 12px 14px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent);
    word-break: break-all;
    line-height: 1.7;
    text-align: center;
    letter-spacing: 0.5px;
}

.enroll-result-snap {
    font-family: var(--font-mono);
    font-size: 16px;
    color: var(--green);
    text-align: center;
    font-weight: 500;
}

.btn-enroll-copy {
    width: 100%;
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent-dim);
    border-radius: var(--radius);
    padding: 12px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.btn-enroll-copy:hover { background: var(--accent-glow); border-color: var(--accent); }

/* =============================================================================
   EMPTY STATES
============================================================================= */

.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 24px; gap: 12px; text-align: center; }

.empty-state-icon { font-size: 40px; opacity: 0.3; }
.empty-state-text { font-size: 14px; color: var(--text-muted); font-family: var(--font-mono); }

/* =============================================================================
   LOADING
============================================================================= */

.loading-pulse { display: flex; align-items: center; justify-content: center; padding: 32px; gap: 8px; color: var(--text-muted); font-size: 13px; font-family: var(--font-mono); }

.loading-pulse::before { content: ''; width: 8px; height: 8px; background: var(--accent); border-radius: 50%; animation: pulse 1.2s ease-in-out infinite; }

@keyframes pulse {
    0%, 100% { opacity: 0.2; transform: scale(0.8); }
    50%       { opacity: 1;   transform: scale(1.1); }
}

/* =============================================================================
   RESPONSIVE
============================================================================= */

@media (min-width: 600px) {
    #deals-feed { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; align-items: start; }
}

@media (min-width: 900px) {
    #deals-feed { grid-template-columns: repeat(3, 1fr); align-items: start; }
    #main-content { max-width: 960px; margin: 0 auto; padding: 24px; padding-bottom: calc(var(--nav-h) + 24px); }
}

/* =============================================================================
   File: static/app.css
   Tree: snap-coin-deals/static/app.css
   Created: 2026-04-02 | Updated: 2026-04-04 | Version: 0.8.0
============================================================================= */