/**
 * ╔═══════════════════════════════════════════════════════════════════════════╗
 * ║                    AGORA Protocol - Centralized Styles                    ║
 * ╠═══════════════════════════════════════════════════════════════════════════╣
 * ║  Created:  2025-12-25 20:10 CET                                           ║
 * ║  Modified: 2026-01-09 14:30 CET (reorganizacija + index)                  ║
 * ╚═══════════════════════════════════════════════════════════════════════════╝
 *
 * ┌───────────────────────────────────────────────────────────────────────────┐
 * │                              QUICK INDEX                                  │
 * ├───────────────────────────────────────────────────────────────────────────┤
 * │                                                                           │
 * │  1. VARIABLES .......................... :root, barve, spacing            │
 * │  2. RESET & BASE ....................... *, html, body, noise overlay     │
 * │  3. LAYOUT ............................. .main, .wrapper, .container      │
 * │  4. TYPOGRAPHY ......................... .title, .tagline, .hint          │
 * │  5. CARDS .............................. .card, .info-box                 │
 * │  6. BUTTONS ............................ .btn-*, vsi gumbi                │
 * │  7. INPUTS ............................. .input, .text-input, .send-input │
 * │  8. FORMS .............................. .input-group, .divider, checkbox │
 * │  9. DROPDOWNS .......................... .contacts-*, .selector, .region  │
 * │ 10. COMPONENTS ......................... toast, modal, spinner, tooltip   │
 * │ 11. STEP INDICATOR ..................... .steps, .step, .step-line        │
 * │ 12. FEEDBACK & STATUS .................. .feedback-*, .status-*, loading  │
 * │ 13. DASHBOARD .......................... wallet, tx, proposals, voting    │
 * │     13.1 Wallet ........................ balance, address, send, claim    │
 * │     13.2 Transactions .................. .tx-item, .tx-amount             │
 * │     13.3 Solana Explorer ............... .solana-row, .solana-link        │
 * │     13.4 Proposals ..................... .proposals-*, .region-selector   │
 * │     13.5 Voting ........................ .vote-*, .btn-vote               │
 * │     13.6 Account ....................... .account-row, .verification-bar  │
 * │     13.7 Notifications ................. .notification-*                  │
 * │     13.8 Settings ...................... .settings-*, .settings-fab       │
 * │ 14. PAGES .............................. page-specific stili              │
 * │     14.1 Index ......................... country selector, .login-row     │
 * │     14.2 Rules ......................... .rules, .rule, .rule-tooltip     │
 * │     14.3 Demo .......................... .demo-banner, shimmer            │
 * │     14.4 Prepare ....................... .instructions, .app-links        │
 * │     14.5 Verify ........................ .qr-container, .attempts-badge   │
 * │     14.6 Register ...................... .packages, .package              │
 * │     14.7 Welcome ....................... .warning-box, .wallet-card       │
 * │     14.8 Error ......................... .attempts-box, .error-code       │
 * │     14.9 Lock .......................... .lock-*, .btn-lock               │
 * │ 15. ADMIN .............................. .admin-*                         │
 * │ 16. FEEDBACK FORM ...................... .feedback-form (dashboard)       │
 * │ 17. UTILITIES .......................... .clickable, .hidden, .visible    │
 * │ 18. ANIMATIONS ......................... @keyframes pulse, spin, shimmer  │
 * │ 19. SCROLLBAR .......................... ::-webkit-scrollbar              │
 * │ 20. MOBILE ............................. @media queries                   │
 * │                                                                           │
 * └───────────────────────────────────────────────────────────────────────────┘
 *
 * UPORABA:
 * - index.html, login.html, dashboard.html, demo.html, prepare.html, etc.
 * - <link rel="stylesheet" href="styles.css">
 */


/* ═══════════════════════════════════════════════════════════════════════════
   1. VARIABLES
   ═══════════════════════════════════════════════════════════════════════════ */
:root {
    --bg-primary: #0a0a0b;
    --bg-secondary: #111113;
    --bg-tertiary: #1a1a1d;
    --text: #fafafa;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --accent: #22c55e;
    --accent-dim: #16a34a;
    --accent-glow: rgba(34, 197, 94, 0.3);
    --border: #27272a;
    --danger: #ef4444;
    --danger-glow: rgba(239, 68, 68, 0.3);
    --warning: #f59e0b;
}


/* ═══════════════════════════════════════════════════════════════════════════
   2. RESET & BASE
   ═══════════════════════════════════════════════════════════════════════════ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Play', sans-serif;
    background: var(--bg-primary);
    color: var(--text);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin: 0;
    padding: 16px;
    padding-top: 24px;
    overflow-y: auto;
}

body.dashboard-body {
    display: block;
    padding-bottom: 80px;
}

body.centered-body {
    align-items: center;
    overflow-x: hidden;
}

body.centered-body .wrapper {
    min-width: 360px;
    max-width: 440px;
}

/* Noise overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 1000;
}


/* ═══════════════════════════════════════════════════════════════════════════
   3. LAYOUT
   ═══════════════════════════════════════════════════════════════════════════ */
.main {
    text-align: center;
    width: 100%;
    max-width: 500px;
}

.wrapper {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    position: relative;
    width: 100%;
}

.container {
    max-width: 500px;
    margin: 0 auto;
}

.section {
    margin-bottom: 1.5rem;
}

.section:last-child {
    margin-bottom: 0;
}

.section-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text);
}

.section-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}


/* ═══════════════════════════════════════════════════════════════════════════
   4. TYPOGRAPHY
   ═══════════════════════════════════════════════════════════════════════════ */
.title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.title .ubi {
    color: var(--accent);
}

.title-sm {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.header {
    text-align: center;
    margin-bottom: 20px;
}

.header-title {
    font-size: 1.3rem;
    font-weight: 700;
}

.header-title .ubi {
    color: var(--accent);
}

.tagline {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.main-headline {
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 8px;
    color: var(--text);
    line-height: 1.5;
    padding: 0 8px;
}

.hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0 0 1rem 0;
}


/* ═══════════════════════════════════════════════════════════════════════════
   5. CARDS
   ═══════════════════════════════════════════════════════════════════════════ */
.card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
}

.card-title {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.card-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: -8px;
    margin-bottom: 12px;
}

.info-box {
    margin-top: 20px;
    padding: 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.info-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}


/* ═══════════════════════════════════════════════════════════════════════════
   6. BUTTONS
   ═══════════════════════════════════════════════════════════════════════════ */

/* 6.1 Base */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Play', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-full { width: 100%; }

/* 6.2 Primary (green) */
.btn-primary {
    padding: 14px 20px;
    font-family: 'Play', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    background: var(--accent);
    border: none;
    border-radius: 8px;
    color: var(--bg-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary:hover:not(:disabled) {
    background: var(--accent-dim);
    box-shadow: 0 0 20px var(--accent-glow);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 6.3 Secondary (outline) */
.btn-secondary {
    padding: 10px 20px;
    font-family: 'Play', sans-serif;
    font-size: 0.85rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-secondary.copied {
    border-color: var(--accent);
    color: var(--accent);
}

/* 6.4 Circle buttons */
.btn-circle {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.btn-close {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 1.2rem;
}

.btn-close:hover {
    border-color: var(--text-muted);
    color: var(--text);
}

.close-corner {
    position: absolute;
    top: 16px;
    right: 16px;
}

.btn-next {
    background: var(--bg-tertiary);
    border: 2px solid var(--accent);
    animation: pulse 2s infinite;
}

.btn-next:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    animation: none;
    border-color: var(--border);
}

.btn-next:disabled svg { stroke: var(--text-muted); }

.btn-next:hover:not(:disabled) {
    background: var(--accent);
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--accent-glow);
}

.btn-next:hover:not(:disabled) svg { stroke: var(--bg-primary); }

.btn-next svg {
    width: 24px;
    height: 24px;
    stroke: var(--accent);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    transition: stroke 0.25s ease;
}

/* 6.5 Icon button */
.btn-icon {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-tertiary);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.2s;
}

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

/* 6.6 Login group */
.btn-login,
.demo-link,
.lock-wallet-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 6px;
    padding: 12px 16px;
    font-family: 'Play', sans-serif;
    font-size: 0.9rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-muted);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-login:hover,
.demo-link:hover,
.lock-wallet-link:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.demo-link .icon,
.lock-wallet-link .icon {
    font-size: 1rem;
}

/* 6.7 Action buttons */
.btn-claim {
    padding: 12px 24px;
    background: var(--accent);
    border: none;
    border-radius: 8px;
    color: var(--bg-primary);
    font-family: 'Play', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-claim:hover { background: var(--accent-dim); }

.btn-send {
    padding: 8px 12px;
    background: var(--accent);
    border: none;
    border-radius: 6px;
    color: var(--bg-primary);
    font-family: 'Play', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    --hold-progress: 0;
}

.btn-send::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: calc(var(--hold-progress) * 100%);
    background: rgba(0, 0, 0, 0.3);
    transition: width 0.05s linear;
    pointer-events: none;
}

.btn-send.holding { background: #f87171; }
.btn-send:hover { background: var(--accent-dim); }
.btn-send.holding:hover { background: #f87171; }

.btn-submit {
    padding: 12px 16px;
    background: var(--accent);
    border: none;
    border-radius: 8px;
    color: var(--bg-primary);
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    --hold-progress: 0;
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: calc(var(--hold-progress) * 100%);
    background: rgba(0, 0, 0, 0.3);
    transition: width 0.05s linear;
    pointer-events: none;
}

.btn-submit.holding { background: #f87171; }
.btn-submit:hover { background: var(--accent-dim); }
.btn-submit.holding:hover { background: #f87171; }

/* 6.8 Unlock button */
.btn-unlock {
    width: 100%;
    padding: 14px 20px;
    font-family: 'Play', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    background: var(--accent);
    border: none;
    border-radius: 8px;
    color: var(--bg-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.btn-unlock:hover:not(:disabled) {
    background: var(--accent-dim);
    box-shadow: 0 0 20px var(--accent-glow);
}

.btn-unlock:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-unlock.btn-danger { background: var(--danger); }

.btn-unlock.btn-danger:hover:not(:disabled) {
    background: #dc2626;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

.btn-unlock svg {
    width: 20px;
    height: 20px;
    stroke: var(--bg-primary);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.btn-unlock.loading .spinner { display: block; }
.btn-unlock.loading .btn-text,
.btn-unlock.loading svg { display: none; }

/* 6.9 Other buttons */
.btn-reverify {
    padding: 10px 20px;
    font-family: 'Play', sans-serif;
    font-size: 0.85rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-reverify:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-back {
    font-family: 'Play', sans-serif;
    font-size: 0.85rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 8px 16px;
}

.btn-back:hover { color: var(--text); }

.btn-link {
    display: block;
    text-align: center;
    margin-top: 16px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
}

.btn-link:hover { color: var(--text); }

.btn-upgrade {
    padding: 4px 8px;
    font-size: 0.65rem;
    font-family: 'Play', sans-serif;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.btn-upgrade:hover {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--bg-primary);
}

.btn-upgrade:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.btn-upgrade.hidden { display: none; }

.btn-checkout {
    padding: 8px 16px;
    font-size: 0.8rem;
    font-family: 'Play', sans-serif;
    background: var(--accent);
    border: none;
    border-radius: 6px;
    color: var(--bg-primary);
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.btn-checkout:hover {
    background: var(--accent-dim);
    transform: scale(1.02);
}

.btn-checkout:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    pointer-events: auto;
}

/* 6.10 Button containers */
.buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.buttons.right { justify-content: flex-end; }
.buttons.waiting { opacity: 0.5; pointer-events: none; }

.back-row { margin-top: 16px; }

.btn-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}


/* ═══════════════════════════════════════════════════════════════════════════
   7. INPUTS
   ═══════════════════════════════════════════════════════════════════════════ */

/* 7.1 Generic */
.input {
    width: 100%;
    padding: 12px 16px;
    font-family: 'Play', sans-serif;
    font-size: 0.85rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    outline: none;
    transition: border-color 0.2s;
}

.input:focus { border-color: var(--accent); }
.input::placeholder { color: var(--text-muted); }
.input.error { border-color: var(--danger); }

/* 7.2 Text input */
.text-input {
    width: 100%;
    padding: 12px 16px;
    font-family: 'Play', sans-serif;
    font-size: 0.9rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.text-input::placeholder { color: var(--text-muted); }
.text-input:focus { border-color: var(--accent); }
.text-input.error { border-color: var(--danger); }

/* 7.3 Password */
.password-wrapper { position: relative; }

.password-input {
    width: 100%;
    padding: 12px 16px;
    font-family: 'Play', monospace;
    font-size: 0.85rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    outline: none;
    transition: border-color 0.2s;
    resize: none;
    height: 72px;
    line-height: 1.5;
}

.password-input::placeholder {
    color: var(--text-muted);
    font-family: 'Play', sans-serif;
}

.password-input:focus { border-color: var(--accent); }
.password-input.error { border-color: var(--danger); }

/* 7.4 Send input */
.send-input {
    flex: 1;
    font-family: monospace;
    font-size: 0.75rem;
    color: var(--text);
    background: var(--bg-tertiary);
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    outline: none;
}

.send-input:focus { border-color: var(--accent); }
.send-input::placeholder { color: var(--text-muted); }
.send-input.error {
    border-color: var(--danger);
    background: rgba(255, 77, 77, 0.1);
}

.send-input[type="number"],
#sendAmount {
    text-align: right;
    -moz-appearance: textfield !important;
}

.send-input[type="number"]::-webkit-inner-spin-button,
.send-input[type="number"]::-webkit-outer-spin-button,
#sendAmount::-webkit-inner-spin-button,
#sendAmount::-webkit-outer-spin-button {
    -webkit-appearance: none !important;
    appearance: none !important;
    margin: 0;
    display: none !important;
}

#sendAddress {
    flex: 1;
    font-family: monospace;
    font-size: 0.65rem;
    color: var(--danger);
    background: var(--bg-tertiary);
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    outline: none;
}

#sendAddress:focus { border-color: var(--accent); }
#sendAddress::placeholder { color: var(--text-muted); }

.send-error {
    padding: 4px 0;
    font-size: 0.75rem;
    color: var(--danger);
    text-align: center;
}

/* 7.5 Date select */
.date-select-row {
    display: flex;
    gap: 8px;
}

.date-select {
    flex: 1;
    padding: 12px 12px;
    font-family: 'Play', sans-serif;
    font-size: 0.9rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.date-select:focus { border-color: var(--accent); }
.date-select-year { flex: 1.3; }
.date-select option {
    background: var(--bg-secondary);
    color: var(--text);
    padding: 8px;
}

/* 7.6 Proposal input */
.proposal-input-wrapper {
    display: flex;
    gap: 8px;
}

.proposal-input {
    flex: 1;
    padding: 12px;
    background: var(--bg-tertiary);
    border: 2px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-family: 'Play', sans-serif;
    font-size: 0.9rem;
    outline: none;
}

.proposal-input:focus { border-color: var(--accent); }
.proposal-input::placeholder { color: var(--text-muted); }

.proposal-counter {
    text-align: right;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* 7.7 Region search */
.region-search {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-tertiary);
    border: none;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    font-family: 'Play', sans-serif;
    font-size: 0.85rem;
    outline: none;
}

.region-search::placeholder { color: var(--text-muted); }

/* 7.8 Addon input */
.addon-input-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.addon-price {
    font-size: 0.6rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.addon-input {
    width: 45px;
    min-width: 45px;
    max-width: 70px;
    padding: 4px 6px;
    font-size: 0.75rem;
    font-family: 'Play', sans-serif;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text);
    text-align: center;
    -moz-appearance: textfield;
}

.addon-input::-webkit-outer-spin-button,
.addon-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.addon-input:focus {
    outline: none;
    border-color: var(--accent);
}

/* 7.9 Secret key display */
.secret-key-display {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--accent);
    word-break: break-all;
    line-height: 1.6;
    user-select: all;
}

.amount-unit {
    color: var(--accent);
    font-weight: 700;
    margin-right: 8px;
}


/* ═══════════════════════════════════════════════════════════════════════════
   8. FORMS
   ═══════════════════════════════════════════════════════════════════════════ */

/* 8.1 Input group */
.input-group { margin-bottom: 16px; }

.input-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.input-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 6px;
}

/* 8.2 Divider */
.divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.divider-text {
    padding: 0 12px;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 8.3 Character counter */
.char-counter {
    position: absolute;
    bottom: 8px;
    right: 12px;
    font-size: 0.7rem;
    color: var(--text-muted);
    pointer-events: none;
}

.char-counter.valid { color: var(--accent); }
.char-counter.error { color: var(--danger); }

/* 8.4 Error text */
.error-text {
    font-size: 0.75rem;
    color: var(--danger);
    margin-top: 8px;
    text-align: left;
    display: none;
}

.error-text.visible { display: block; }

/* 8.5 Checkbox group */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.checkbox-item input[type="checkbox"] { display: none; }

.checkbox-box {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid var(--border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    margin-top: 2px;
}

.checkbox-item input:checked + .checkbox-box {
    background: var(--accent);
    border-color: var(--accent);
}

.checkbox-item input:checked + .checkbox-box::after {
    content: '✓';
    color: var(--bg-primary);
    font-size: 12px;
    font-weight: 700;
}

/* 8.6 Reverify section */
.reverify-section { text-align: center; }

.reverify-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.reverify-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.rules-consent {
    margin-top: 16px;
    margin-bottom: 8px;
}


/* ═══════════════════════════════════════════════════════════════════════════
   9. DROPDOWNS & SELECTORS
   ═══════════════════════════════════════════════════════════════════════════ */

/* 9.1 Contacts dropdown */
.contacts-dropdown { margin: 8px 0; }

.contacts-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 8px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-family: 'Play', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
}

.contacts-toggle:hover {
    background: var(--bg-secondary);
    color: var(--text);
}

.contacts-arrow {
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}

.contacts-arrow.open { transform: rotate(180deg); }

.contacts-list {
    margin-top: 4px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 8px;
    max-height: 200px;
    overflow-y: auto;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.2s ease;
}

.contact-item:hover { background: var(--bg-secondary); }
.contact-item:last-of-type { border-bottom: none; }

.contact-label {
    flex: 1;
    font-size: 0.85rem;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contact-label-input {
    flex: 1;
    font-size: 0.85rem;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--accent);
    color: var(--text);
    outline: none;
    padding: 2px 0;
}

.contact-address {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-family: monospace;
    margin-left: 8px;
}

.contact-delete {
    margin-left: 8px;
    padding: 4px 8px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.9rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.contact-delete:hover {
    color: var(--danger);
    background: rgba(255, 77, 77, 0.1);
}

.contact-delete::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--danger);
    opacity: 0.3;
    transform: scaleX(0);
    transform-origin: left;
    transition: none;
}

.contact-delete.holding::after {
    transform: scaleX(1);
    transition: transform 3s linear;
}

.contacts-empty {
    padding: 12px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.contacts-export {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.contacts-export:hover {
    background: var(--bg-secondary);
    color: var(--accent);
}

/* 9.2 Country selector */
.selector {
    position: relative;
    margin-bottom: 20px;
}

.selector input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-family: 'Play', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.selector input::placeholder { color: var(--text-muted); }
.selector input:focus { border-color: var(--accent); }
.selector.hidden { display: none; }

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-top: 4px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    z-index: 100;
}

.dropdown.open {
    max-height: 240px;
    overflow-y: auto;
    opacity: 1;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.15s;
}

.dropdown-item:hover,
.dropdown-item.active {
    background: var(--bg-secondary);
}

.dropdown-item .flag { font-size: 1.3rem; }
.dropdown-item .name { font-size: 0.95rem; color: var(--text); }

.dropdown::-webkit-scrollbar { width: 6px; }
.dropdown::-webkit-scrollbar-track { background: transparent; }
.dropdown::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.dropdown::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

.dropdown-empty {
    padding: 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.selected-country {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-tertiary);
    border: 2px solid var(--accent);
    border-radius: 10px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.selected-country.visible { display: flex; }
.selected-country:hover { background: var(--bg-secondary); }
.selected-country .flag { font-size: 1.5rem; }
.selected-country .name { font-size: 1.1rem; font-weight: 700; color: var(--text); }
.selected-country .change { font-size: 0.8rem; color: var(--text-muted); margin-left: auto; }
.selected-country .globe-sprite { margin-right: 4px; }

/* 9.3 Region selector */
.region-selector {
    position: relative;
    margin-bottom: 8px;
}

.region-selected {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: var(--bg-tertiary);
    border: 2px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.region-selected:hover { border-color: var(--accent); }
.region-flag { font-size: 1.1rem; }
.region-name { flex: 1; font-size: 0.9rem; }

.region-arrow {
    font-size: 0.7rem;
    color: var(--text-muted);
    transition: transform 0.2s;
}

.region-selector.open .region-arrow { transform: rotate(180deg); }

.region-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    z-index: 100;
    overflow: hidden;
}

.region-selector.open .region-dropdown { display: block; }

.region-list {
    max-height: 200px;
    overflow-y: auto;
}

.region-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    cursor: pointer;
    transition: background 0.15s;
}

.region-item:hover { background: var(--bg-tertiary); }
.region-item .flag { font-size: 1.1rem; }
.region-item .name { font-size: 0.85rem; }

/* 9.4 Vote filter */
.vote-filter {
    position: relative;
    margin-bottom: 12px;
}

.vote-filter-selected {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: var(--bg-tertiary);
    border: 2px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.vote-filter-selected:hover { border-color: var(--accent); }
.vote-filter.open .region-arrow { transform: rotate(180deg); }
.vote-filter.open .region-dropdown { display: block; }

/* 9.5 Settings select */
.settings-select {
    padding: 8px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-size: 0.85rem;
    font-family: inherit;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
}

.settings-select:hover,
.settings-select:focus { border-color: var(--accent); }
.settings-select option { background: var(--bg-secondary); color: var(--text); }


/* ═══════════════════════════════════════════════════════════════════════════
   10. COMPONENTS
   ═══════════════════════════════════════════════════════════════════════════ */

/* 10.1 Toast */
.toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 0.85rem;
    color: var(--text);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2000;
    max-width: 90%;
    text-align: center;
    pointer-events: none;
}

.toast.visible,
.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast.error { border-color: var(--danger); color: var(--danger); }
.toast.success { border-color: var(--accent); color: var(--accent); }
body.centered-body .toast { bottom: 24px; }

/* 10.2 Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    align-items: flex-end;
    justify-content: center;
    z-index: 2000;
}

.modal.active { display: flex; }

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px 16px 0 0;
    padding: 20px;
    width: 100%;
    max-width: 500px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.modal-title { font-size: 1.1rem; font-weight: 700; }

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

/* 10.3 Spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--bg-primary);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: none;
}

/* 10.4 Tooltips */
.info-tip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    font-size: 10px;
    font-weight: 600;
    cursor: help;
    margin-left: 6px;
    transition: all 0.2s ease;
    position: relative;
    flex-shrink: 0;
}

.info-tip:hover {
    background: rgba(99, 102, 241, 0.25);
    transform: scale(1.1);
}

.info-tip::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #1e1e2e;
    color: #e0e0e0;
    padding: 10px 14px;
    border-radius: 8px;
    font-family: 'Play', sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    width: max-content;
    max-width: 240px;
    white-space: normal;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    text-align: left;
    text-transform: none;
    letter-spacing: normal;
}

.info-tip::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #1e1e2e;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1001;
}

.info-tip:hover::after,
.info-tip:hover::before {
    opacity: 1;
    visibility: visible;
}

.has-tooltip {
    position: relative;
    cursor: pointer;
}

.has-tooltip::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #1e1e2e;
    color: #e0e0e0;
    padding: 10px 14px;
    border-radius: 8px;
    font-family: 'Play', sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    width: max-content;
    max-width: 220px;
    white-space: normal;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    text-align: left;
    pointer-events: none;
}

.has-tooltip::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #1e1e2e;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1001;
    pointer-events: none;
}

.has-tooltip:hover::after,
.has-tooltip:hover::before {
    opacity: 1;
    visibility: visible;
}

/* 10.5 Countdown ring */
.countdown-ring {
    position: relative;
    width: 64px;
    height: 64px;
    margin: 0 auto;
}

.countdown-ring svg {
    transform: rotate(-90deg);
    width: 64px;
    height: 64px;
}

.countdown-ring circle.bg {
    fill: none;
    stroke: var(--bg-tertiary);
    stroke-width: 4;
}

.countdown-ring circle.progress {
    fill: none;
    stroke: var(--accent);
    stroke-width: 4;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.1s linear;
}

.countdown-ring.error circle.progress { stroke: var(--danger); }

.countdown-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
}

/* 10.6 QR code */
.qr-container {
    background: white;
    padding: 20px;
    border-radius: 12px;
    display: inline-block;
    margin: 16px 0;
}

.qr-container img,
.qr-container canvas {
    display: block;
    width: 300px;
    height: 300px;
}

.qr-steps {
    text-align: left;
    display: inline-block;
    margin: 16px 0;
}

.qr-step {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 6px 0;
}

.qr-instructions {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

/* 10.7 Globe sprite */
.globe-sprite {
    width: 32px;
    height: 32px;
    background-image: url('globe-sprite.png');
    background-repeat: no-repeat;
    background-size: 2304px 32px;
    display: inline-block;
    vertical-align: middle;
    background-position: -1152px 0;
}

/* Hide reCAPTCHA */
.grecaptcha-badge { visibility: hidden !important; }


/* ═══════════════════════════════════════════════════════════════════════════
   11. STEP INDICATOR
   ═══════════════════════════════════════════════════════════════════════════ */
.steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.step {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.step.completed {
    background: var(--accent);
    color: var(--bg-primary);
}

.step.active {
    background: var(--accent);
    color: var(--bg-primary);
    box-shadow: 0 0 12px var(--accent-glow);
}

.step.upcoming {
    background: var(--bg-tertiary);
    border: 2px solid var(--border);
    color: var(--text-muted);
}

.step-line {
    width: 24px;
    height: 2px;
    background: var(--border);
}

.step-line.completed { background: var(--accent); }

.step-title {
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 20px;
}


/* ═══════════════════════════════════════════════════════════════════════════
   12. FEEDBACK & STATUS
   ═══════════════════════════════════════════════════════════════════════════ */

/* 12.1 Feedback components */
.feedback-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    text-align: center;
}

.feedback-icon.lg {
    font-size: 4rem;
    margin-bottom: 20px;
}

.feedback-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
    color: var(--text);
}

.feedback-title.danger { color: var(--danger); }
.feedback-title.success { color: var(--accent); }
.feedback-title.warning { color: var(--warning); }

.feedback-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 20px;
    text-align: center;
}

.feedback-header {
    text-align: center;
    margin-bottom: 24px;
}

/* 12.2 Status (backward compat) */
.status-icon { font-size: 3rem; margin-bottom: 16px; text-align: center; }
.status-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 10px; color: var(--text); text-align: center; }
.status-desc { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 20px; line-height: 1.5; text-align: center; }
.status-text { color: var(--text-secondary); font-size: 0.9rem; margin-top: 12px; }
.status-text.success { color: var(--accent); }
.status-text.error { color: var(--danger); }

.status-hint {
    font-size: 0.85rem;
    color: var(--accent);
    background: rgba(99, 102, 241, 0.1);
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-weight: 500;
    text-align: center;
}

/* 12.3 States */
.loading-state { text-align: center; padding: 40px 0; }
.loading-text { color: var(--text-secondary); font-size: 0.9rem; margin-top: 16px; }

.status-screen { display: none; text-align: center; padding: 20px 0; }
.status-screen.active { display: block; }

.status-container { text-align: center; padding: 20px 0; }
.status-container.hidden { display: none; }

.empty-state { text-align: center; padding: 20px; color: var(--text-muted); font-size: 0.85rem; }
.error-state { text-align: center; padding: 20px; display: none; }
.main-content { display: none; }


/* ═══════════════════════════════════════════════════════════════════════════
   13. DASHBOARD
   ═══════════════════════════════════════════════════════════════════════════ */

/* --- 13.1 Wallet --- */
.balance-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

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

.balance-value {
    font-size: 1.8rem;
    font-weight: 700;
}

.balance-value span {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.claim-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.claim-available {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
}

.claim-available span {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.claim-timer {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.address-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.address-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    min-width: 50px;
}

.address-value {
    flex: 1;
    font-family: monospace;
    font-size: 0.65rem;
    color: var(--accent);
    background: var(--bg-tertiary);
    padding: 8px 10px;
    border-radius: 6px;
    word-break: break-all;
}

.send-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

/* --- 13.2 Transactions --- */
.transactions-section {
    margin: 0.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 0.5rem;
}

.transactions-header { margin-bottom: 0.35rem; }

.transactions-title {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.transactions-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    max-height: 150px;
    overflow-y: auto;
}

.tx-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.3rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 0.7rem;
}

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

.tx-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    flex: 1;
    min-width: 0;
}

.tx-main {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.68rem;
}

.tx-type { color: rgba(255, 255, 255, 0.7); }
.tx-address { font-family: monospace; font-size: 0.62rem; color: rgba(255, 255, 255, 0.4); }
.tx-separator { color: rgba(255, 255, 255, 0.2); }
.tx-time { color: rgba(255, 255, 255, 0.3); font-size: 0.6rem; }
.tx-contact { font-family: monospace; font-size: 0.62rem; color: rgba(255, 255, 255, 0.4); }

.tx-amount {
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
    margin-left: 0.5rem;
}

.tx-amount.positive { color: #4ade80; }
.tx-amount.negative { color: #f87171; }

.transactions-empty {
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.65rem;
    padding: 0.5rem 0;
}

/* Transaction icons (demo page) */
.tx-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-right: 12px;
}

.tx-icon.receive { background: rgba(34, 197, 94, 0.15); }
.tx-icon.send { background: rgba(239, 68, 68, 0.15); }
.tx-icon.claim { background: rgba(99, 102, 241, 0.15); }
.tx-details { flex: 1; }
.tx-list { margin-top: 12px; }

/* --- 13.3 Solana Explorer --- */
.solana-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    padding: 4px 0;
}

.solana-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.solana-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: monospace;
    font-size: 0.7rem;
    color: var(--accent);
    text-decoration: none;
    padding: 3px 8px;
    background: rgba(74, 222, 128, 0.08);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.solana-link:hover {
    background: rgba(74, 222, 128, 0.18);
    color: #6ee7a0;
}

.solana-icon {
    font-size: 0.6rem;
    opacity: 0.7;
}

/* --- 13.4 Proposals --- */
.proposals-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.proposals-count {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
}

.proposals-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.3;
}

.proposals-locked {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.proposals-locked-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

/* --- 13.5 Voting --- */
.vote-item {
    background: var(--bg-tertiary);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
}

.vote-item:last-child { margin-bottom: 0; }

.vote-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.vote-category {
    font-size: 0.65rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vote-region {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.vote-text {
    font-size: 0.9rem;
    margin-bottom: 10px;
    line-height: 1.4;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.vote-buttons {
    display: flex;
    gap: 8px;
}

.btn-vote {
    flex: 1;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text);
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-vote.yes:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(34, 197, 94, 0.1);
}

.btn-vote.no:hover {
    border-color: var(--danger);
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
}

.btn-vote.voting,
.btn-vote:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--bg-tertiary);
}

.btn-vote.voted {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-vote.selected.yes {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--bg-primary);
}

.btn-vote.selected.no {
    border-color: var(--danger);
    background: var(--danger);
    color: var(--bg-primary);
}

/* Vote hold buttons */
.btn-vote-hold {
    flex: 1;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text);
    font-size: 1.4rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
    --hold-progress: 0;
}

.btn-vote-hold::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: calc(var(--hold-progress) * 100%);
    transition: width 0.05s linear;
    pointer-events: none;
}

.btn-vote-hold.yes::before { background: rgba(34, 197, 94, 0.3); }
.btn-vote-hold.no::before { background: rgba(239, 68, 68, 0.3); }
.btn-vote-hold.yes { border-color: var(--accent); color: var(--accent); }
.btn-vote-hold.no { border-color: var(--danger); color: var(--danger); }
.btn-vote-hold.yes:hover { background: rgba(34, 197, 94, 0.1); }
.btn-vote-hold.no:hover { background: rgba(239, 68, 68, 0.1); }
.btn-vote-hold.holding { transform: scale(0.98); }
.btn-vote-hold.yes.holding { background: rgba(34, 197, 94, 0.2); }
.btn-vote-hold.no.holding { background: rgba(239, 68, 68, 0.2); }

.vote-context {
    font-size: 0.9rem;
    margin-bottom: 16px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
    text-align: center;
    color: var(--text);
}

.vote-choices {
    display: flex;
    gap: 16px;
}

.vote-choice {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.vote-choice-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
    min-height: 2.6em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vote-choice.yes .vote-choice-label { color: var(--accent); }
.vote-choice.no .vote-choice-label { color: var(--danger); }

.vote-results { margin-top: 8px; }

.vote-bar {
    height: 8px;
    background: var(--danger);
    border-radius: 4px;
    overflow: hidden;
}

.vote-bar-yes {
    height: 100%;
    background: var(--accent);
    border-radius: 4px 0 0 4px;
}

.vote-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 0.75rem;
}

.stat-yes { color: var(--accent); }
.stat-no { color: var(--danger); }

.vote-my-choice {
    margin-top: 10px;
    font-size: 1.1rem;
    text-align: center;
}

.vote-my-choice .yes { color: var(--accent); }
.vote-my-choice .no { color: var(--danger); }

/* --- 13.6 Account --- */
.account-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    gap: 8px;
}

.account-row:last-of-type { border-bottom: none; }

.account-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.account-value {
    font-size: 0.85rem;
    color: var(--text);
    font-weight: 500;
    flex: 1;
    text-align: right;
}

.account-value.pro { color: var(--accent); }
.account-value.warning { color: var(--warning); }
.account-value.danger { color: var(--danger); }

.verification-bar {
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    margin-top: 12px;
    overflow: hidden;
}

.verification-progress {
    height: 100%;
    background: var(--accent);
    border-radius: 3px;
    transition: width 0.3s;
}

.verification-progress.warning { background: var(--warning); }
.verification-progress.danger { background: var(--danger); }

.verification-status {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 8px;
    text-align: center;
}

/* Upgrade options */
.upgrade-options {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.upgrade-option {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border: 1px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.65rem;
}

.upgrade-option:hover { border-color: var(--accent); }

.upgrade-option:has(input:checked) {
    border-color: var(--accent);
    background: rgba(34, 197, 94, 0.1);
}

.upgrade-option input[type="radio"] {
    width: 12px;
    height: 12px;
    accent-color: var(--accent);
    margin: 0;
}

.upgrade-label { color: var(--text); font-weight: 500; }
.upgrade-price { color: var(--accent); font-weight: 700; }
#upgradeRow.hidden { display: none; }
.upgrade-option.hidden { display: none; }

/* Checkout */
.checkout-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    margin-bottom: 12px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    border: 1px solid var(--accent);
}

.checkout-total {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent);
}

/* --- 13.7 Notifications --- */
.notification-item {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.notification-item:last-child { border-bottom: none; padding-bottom: 0; }
.notification-item:first-child { padding-top: 0; }
.notification-icon { font-size: 1.2rem; }
.notification-text { font-size: 0.85rem; line-height: 1.4; }
.notification-time { font-size: 0.7rem; color: var(--text-muted); margin-top: 4px; }

/* --- 13.8 Settings --- */
.settings-fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 100;
}

.settings-fab:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.settings-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.settings-item:hover { border-color: var(--text-muted); }
.settings-item.danger { color: var(--danger); }
.settings-item.danger:hover { border-color: var(--danger); background: rgba(239, 68, 68, 0.1); }
.settings-item-icon { font-size: 1.2rem; }
.settings-item-text { flex: 1; font-size: 0.9rem; }


/* ═══════════════════════════════════════════════════════════════════════════
   14. PAGES
   ═══════════════════════════════════════════════════════════════════════════ */

/* --- 14.1 Index --- */
.login-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.login-row.hidden { display: none; }

/* --- 14.2 Rules --- */
.rules {
    text-align: left;
    margin: 20px 0;
}

.rule {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.rule:last-child { border-bottom: none; }

.rule-number {
    width: 24px;
    height: 24px;
    min-width: 24px;
    background: var(--accent);
    color: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.rule-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    flex: 1;
}

.rule-tooltip {
    position: relative;
    cursor: help;
}

.rule-tooltip::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #1e1e2e;
    color: #e0e0e0;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.5;
    width: max-content;
    max-width: 260px;
    white-space: normal;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    text-align: left;
}

.rule-tooltip::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #1e1e2e;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1001;
}

.rule-tooltip:hover::after,
.rule-tooltip:hover::before {
    opacity: 1;
    visibility: visible;
}

/* --- 14.3 Demo --- */
.demo-banner {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.15));
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    text-align: center;
}

.demo-banner-text {
    font-size: 0.85rem;
    color: #a5b4fc;
}

.demo-banner-link {
    color: #818cf8;
    text-decoration: underline;
    cursor: pointer;
}

.demo-banner-link:hover { color: #a5b4fc; }

.demo-badge {
    display: inline-block;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Shimmer effect */
.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 2s infinite;
}

/* --- 14.4 Prepare --- */
.instructions {
    text-align: left;
    margin: 20px 0;
}

.instruction-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
}

.instruction-number {
    width: 24px;
    height: 24px;
    min-width: 24px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    color: var(--text-muted);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.instruction-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.app-links {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 20px 0;
}

.app-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s;
}

.app-link:hover {
    border-color: var(--accent);
    background: var(--bg-secondary);
}

.app-link img {
    width: 24px;
    height: 24px;
}

/* --- 14.5 Verify --- */
.attempts-badge {
    display: inline-block;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 6px 12px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.attempts-badge.warning {
    border-color: var(--warning);
    color: var(--warning);
}

.attempts-badge.danger {
    border-color: var(--danger);
    color: var(--danger);
}

/* --- 14.6 Register --- */
.packages {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

.package {
    background: var(--bg-tertiary);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.package:hover { border-color: var(--text-muted); }
.package.selected { border-color: var(--accent); }

.package-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.package-name {
    font-size: 1rem;
    font-weight: 700;
}

.package-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
}

.package-features {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* --- 14.7 Welcome --- */
.warning-box {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid var(--warning);
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
}

.warning-box-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--warning);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.warning-box-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.wallet-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.wallet-card-title {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.wallet-address {
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--accent);
    word-break: break-all;
    margin-bottom: 12px;
}

/* --- 14.8 Error --- */
.attempts-box {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--danger);
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
    text-align: center;
}

.attempts-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--danger);
}

.attempts-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.error-code {
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    padding: 8px 12px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 12px;
}

/* --- 14.9 Lock --- */
.lock-info {
    text-align: center;
    margin: 20px 0;
}

.lock-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.lock-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.lock-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.btn-lock {
    width: 100%;
    padding: 14px 20px;
    font-family: 'Play', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    background: var(--danger);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 16px;
}

.btn-lock:hover {
    background: #dc2626;
    box-shadow: 0 0 20px var(--danger-glow);
}


/* ═══════════════════════════════════════════════════════════════════════════
   15. ADMIN
   ═══════════════════════════════════════════════════════════════════════════ */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.admin-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.admin-stat {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}

.admin-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

.admin-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.admin-section {
    margin-bottom: 24px;
}

.admin-section-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}


/* ═══════════════════════════════════════════════════════════════════════════
   16. FEEDBACK FORM (Dashboard)
   ═══════════════════════════════════════════════════════════════════════════ */
.feedback-form {
    margin-top: 16px;
}

.feedback-input {
    width: 100%;
    padding: 12px;
    font-family: 'Play', sans-serif;
    font-size: 0.85rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    resize: vertical;
    min-height: 80px;
    outline: none;
}

.feedback-input:focus { border-color: var(--accent); }
.feedback-input::placeholder { color: var(--text-muted); }

.feedback-submit {
    margin-top: 12px;
    width: 100%;
    padding: 12px;
    background: var(--accent);
    border: none;
    border-radius: 8px;
    color: var(--bg-primary);
    font-family: 'Play', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.feedback-submit:hover { background: var(--accent-dim); }
.feedback-submit:disabled { opacity: 0.5; cursor: not-allowed; }


/* ═══════════════════════════════════════════════════════════════════════════
   17. UTILITIES
   ═══════════════════════════════════════════════════════════════════════════ */
.clickable { cursor: pointer; }
.refreshing { opacity: 0.5; pointer-events: none; }
.hidden { display: none !important; }
.visible { display: block !important; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }


/* ═══════════════════════════════════════════════════════════════════════════
   18. ANIMATIONS
   ═══════════════════════════════════════════════════════════════════════════ */
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
    50% { box-shadow: 0 0 0 8px transparent; }
}

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

@keyframes shimmer {
    to { left: 100%; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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


/* ═══════════════════════════════════════════════════════════════════════════
   19. SCROLLBAR
   ═══════════════════════════════════════════════════════════════════════════ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-tertiary); border-radius: 3px; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }


/* ═══════════════════════════════════════════════════════════════════════════
   20. MOBILE
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    body { padding: 12px; }
    .wrapper { padding: 20px; }
    .title { font-size: 1.75rem; }
    .admin-stats { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    body { padding: 8px; padding-top: 16px; }
    .wrapper { padding: 16px; border-radius: 10px; }
    .title { font-size: 1.5rem; }
    .title-sm { font-size: 1.25rem; }
    .tagline { font-size: 0.8rem; }
    .main-headline { font-size: 1rem; }
    
    .btn-primary { padding: 12px 16px; font-size: 0.9rem; }
    .btn-circle { width: 44px; height: 44px; min-width: 44px; }
    .btn-next svg { width: 20px; height: 20px; }
    
    .steps { gap: 6px; }
    .step { width: 24px; height: 24px; font-size: 0.7rem; }
    .step-line { width: 16px; }
    
    .card { padding: 14px; }
    .card-title { font-size: 0.65rem; }
    
    .balance-value { font-size: 1.5rem; }
    .claim-available { font-size: 1.2rem; }
    
    .qr-container { padding: 16px; }
    .qr-container img,
    .qr-container canvas { width: 250px; height: 250px; }
    
    .app-links { flex-direction: column; }
    .app-link { justify-content: center; }
    
    .vote-buttons { flex-direction: column; gap: 8px; }
    .vote-choices { flex-direction: column; gap: 12px; }
    
    .settings-fab { width: 44px; height: 44px; font-size: 1.1rem; bottom: 16px; right: 16px; }
    
    body.centered-body .wrapper { min-width: unset; max-width: unset; }
}

@media (max-width: 400px) {
    .wrapper { padding: 14px; }
    .balance-value { font-size: 1.3rem; }
    .address-value { font-size: 0.6rem; }
    .send-input { font-size: 0.7rem; }
    #sendAddress { font-size: 0.6rem; }
}
/**
 * VOX - Dodatni stili za volilni sistem
 * Dopolnjuje AGORA styles.css
 * 2026-01-09
 */

/* Feature kartica */
.vox-feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 12px;
    text-align: left;
}

.vox-feature-icon { font-size: 1.5rem; flex-shrink: 0; }
.vox-feature-title { color: var(--accent); font-weight: 600; margin-bottom: 4px; }
.vox-feature-desc { font-size: 0.8rem; color: var(--text-muted); margin: 0; }

/* Korak */
.vox-step {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    text-align: left;
}

.vox-step-num {
    width: 28px;
    height: 28px;
    min-width: 28px;
    background: var(--accent);
    color: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

/* Tabs */
.vox-tabs { display: flex; gap: 8px; margin-bottom: 20px; }

.vox-tab {
    flex: 1;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-family: 'Play', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
}

.vox-tab:hover { border-color: var(--accent); }

.vox-tab.active {
    background: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
    font-weight: 600;
}

/* Volitev kartica */
.vox-election {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.vox-election-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.vox-election-desc { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 12px; }
.vox-election-deadline { color: var(--warning); font-size: 0.8rem; margin-bottom: 16px; }

/* Glasovalne možnosti */
.vox-options { display: flex; flex-direction: column; gap: 10px; }

.vox-option {
    padding: 14px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 1rem;
    font-family: 'Play', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.vox-option:hover {
    border-color: var(--accent);
    background: rgba(34, 197, 94, 0.1);
}

/* Že glasoval */
.vox-voted {
    text-align: center;
    padding: 20px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid var(--accent);
    border-radius: 8px;
}

.vox-voted-icon { font-size: 2rem; margin-bottom: 8px; }
.vox-voted-text { color: var(--accent); font-weight: 600; }

/* Modal (centriran) */
.vox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.vox-modal.active { display: flex; }

.vox-modal-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.vox-modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
}

/* Hash prikaz */
.vox-hash {
    display: block;
    background: var(--bg-primary);
    padding: 12px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 0.7rem;
    word-break: break-all;
    color: var(--accent);
    margin: 12px 0;
}

/* Rezultat box */
.vox-result {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid var(--accent);
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}

.vox-result-title {
    color: var(--accent);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
    text-align: center;
}

/* Seznam enot */
.vox-units { max-height: 200px; overflow-y: auto; margin-top: 12px; }

.vox-unit {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    background: var(--bg-tertiary);
    border-radius: 6px;
    margin-bottom: 6px;
    font-size: 0.8rem;
}

.vox-unit code {
    color: var(--text-muted);
    font-size: 0.6rem;
    max-width: 55%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Spinner */
.vox-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

/* Tab content */
.tab-content.hidden { display: none; }

/* Utility */
.mb-0 { margin-bottom: 0 !important; }
.link { color: var(--accent); text-decoration: none; }
.link:hover { text-decoration: underline; }
