/* ============================================================
   WojakCoin Paper Wallet Generator — Styles
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --wjk-watermark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Ctext x='2' y='22' fill='rgba(0,0,0,0.14)' font-size='13' font-weight='700' font-family='system-ui,sans-serif'%3E%24WJK%3C/text%3E%3Ctext x='42' y='58' fill='rgba(0,0,0,0.14)' font-size='13' font-weight='700' font-family='system-ui,sans-serif'%3E%24WJK%3C/text%3E%3C/svg%3E");
    --bg-primary: #0a0a14;
    --bg-secondary: #0f0f1e;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --gold: #f0b90b;
    --gold-light: #f8d12f;
    --gold-dark: #c99a06;
    --gold-glow: rgba(240, 185, 11, 0.15);
    --green: #00c853;
    --green-bg: rgba(0, 200, 83, 0.08);
    --red: #ff4757;
    --red-bg: rgba(255, 71, 87, 0.08);
    --text-primary: #ffffff;
    --text-secondary: #8892a4;
    --text-muted: #505868;
    --border: rgba(255, 255, 255, 0.06);
    --border-light: rgba(255, 255, 255, 0.1);
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.4);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    --transition: 0.2s ease;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Navigation ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 20, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0 24px;
}

.nav-container {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 18px;
}

.logo-coin {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 16px var(--gold-glow);
    overflow: hidden;
    flex-shrink: 0;
}

.logo-coin.small {
    width: 28px;
    height: 28px;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.logo-fallback {
    font-weight: 900;
    font-size: 18px;
    color: #1a1a2e;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color var(--transition);
}

.nav-links a:hover {
    color: var(--gold);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: var(--transition);
}

/* ---------- Navbar Scrolled State ---------- */
.navbar.scrolled {
    background: rgba(10, 10, 20, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* ---------- Offline Banner ---------- */
.offline-banner {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    background: linear-gradient(135deg, rgba(0, 200, 83, 0.15), rgba(0, 200, 83, 0.05));
    border-bottom: 1px solid rgba(0, 200, 83, 0.2);
    color: var(--green);
    font-size: 13px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ---------- Hero Section ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 24px 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.4; transform: translateX(-50%) scale(1); }
    50% { opacity: 0.7; transform: translateX(-50%) scale(1.1); }
}

.floating-coin {
    position: absolute;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    opacity: 0.08;
    animation: float 6s ease-in-out infinite;
}

.floating-coin::after {
    content: 'W';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: rgba(0,0,0,0.3);
    font-size: 20px;
}

.coin-1 { top: 15%; left: 10%; animation-delay: 0s; width: 60px; height: 60px; }
.coin-2 { top: 60%; right: 8%; animation-delay: 2s; width: 40px; height: 40px; }
.coin-3 { bottom: 20%; left: 20%; animation-delay: 4s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(10deg); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--gold);
    letter-spacing: 0.5px;
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(36px, 7vw, 64px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-value {
    font-family: var(--mono);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 32px;
    background: var(--border-light);
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #0a0a14;
    font-weight: 700;
    font-size: 16px;
    border-radius: 100px;
    text-decoration: none;
    text-align: center;
    transition: all var(--transition);
    box-shadow: 0 4px 24px rgba(240, 185, 11, 0.3);
}

.hero-cta > .btn-label {
    display: inline-block;
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(240, 185, 11, 0.4);
}

/* ---------- Sections ---------- */
.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--bg-secondary);
}

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

.section-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.section-desc {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
}

/* ---------- Tabs ---------- */
.tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 4px;
    margin-bottom: 32px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}

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

.tab-btn.active {
    background: var(--gold);
    color: #0a0a14;
    font-weight: 600;
}

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

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ---------- Generate Button ---------- */
.generate-area {
    text-align: center;
    margin-bottom: 32px;
}

.generate-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 48px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #0a0a14;
    font-family: var(--font);
    font-weight: 700;
    font-size: 18px;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    text-align: center;
    transition: all var(--transition);
    box-shadow: 0 4px 24px rgba(240, 185, 11, 0.3);
    position: relative;
    overflow: hidden;
}

.generate-btn > .btn-label {
    display: inline-block;
}

.generate-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 30%, rgba(255,255,255,0.2) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s;
    pointer-events: none;
}

.generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(240, 185, 11, 0.4);
}

.generate-btn:hover::after {
    transform: translateX(100%);
}

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

.generate-btn.generating {
    opacity: 0.7;
    pointer-events: none;
}

.btn-icon {
    font-size: 20px;
}

/* ---------- Placeholder ---------- */
.wallet-placeholder {
    text-align: center;
    padding: 64px 24px;
    background: var(--bg-card);
    border: 2px dashed var(--border-light);
    border-radius: var(--radius-lg);
    color: var(--text-muted);
}

.wallet-placeholder p {
    margin-top: 16px;
    font-size: 15px;
}

/* ---------- Wallet Display ---------- */
.wallet-display {
    opacity: 0;
}

.wallet-display.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

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

.wallet-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 20px;
    transition: border-color var(--transition);
}

.wallet-card:hover {
    border-color: var(--border-light);
}

.address-card {
    border-left: 3px solid var(--green);
}

.wif-card {
    border-left: 3px solid var(--red);
}

.card-header {
    padding: 20px 24px 0;
}

.card-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.card-badge.safe {
    background: var(--green-bg);
    color: var(--green);
}

.card-badge.danger {
    background: var(--red-bg);
    color: var(--red);
}

.card-header h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.card-hint {
    font-size: 13px;
    color: var(--text-muted);
}

.card-body {
    padding: 20px 24px 24px;
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.qr-wrapper {
    flex-shrink: 0;
    background: #ffffff;
    border-radius: var(--radius);
    padding: 8px;
    box-shadow: var(--shadow);
}

.qr-wrapper canvas {
    display: block;
    border-radius: 4px;
}

.key-display {
    flex: 1;
    min-width: 0;
}

.key-text {
    display: block;
    font-family: var(--mono);
    font-size: 14px;
    line-height: 1.8;
    word-break: break-all;
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.3);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    margin-bottom: 12px;
}

.key-text.wif {
    color: var(--red);
}

.copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-family: var(--font);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}

.copy-btn:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.copy-btn.copied {
    background: var(--green-bg);
    color: var(--green);
    border-color: var(--green);
}

/* ---------- Wallet Actions ---------- */
.wallet-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
}

.print-btn {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #0a0a14;
    box-shadow: 0 2px 12px rgba(240, 185, 11, 0.2);
}

.print-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(240, 185, 11, 0.3);
}

.secondary-btn {
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
}

.secondary-btn:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

/* ---------- Paper Wallet Preview ---------- */
.paper-wallet-section {
    margin-top: 16px;
}

.paper-wallet-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.paper-wallet-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* $WJK watermark (polkadot-style repeating pattern) */
.paper-wallet {
    background-color: #ffffff;
    background-image: var(--wjk-watermark);
    background-size: 80px 80px;
    background-repeat: repeat;
    border-radius: var(--radius-lg);
    overflow: visible;
    box-shadow: var(--shadow-lg);
    position: relative;
}

/* Scissor cut guide (preview) – rounded outline for cutting */
.paper-wallet::before {
    content: '';
    position: absolute;
    inset: -14px;
    border: 2px dashed #bdbdbd;
    border-radius: 24px;
    pointer-events: none;
}

.paper-wallet::after {
    content: '✂';
    position: absolute;
    top: -26px;
    left: -26px;
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    font-size: 16px;
    color: #777;
    background: #fff;
    border: 1px solid #bdbdbd;
    border-radius: 50%;
    pointer-events: none;
}

.paper-wallet-inner {
    display: flex;
    flex-direction: column;
}

.paper-side {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.paper-public {
    background-color: #fafaf5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Ctext x='2' y='22' fill='rgba(0,0,0,0.14)' font-size='13' font-weight='700' font-family='system-ui,sans-serif'%3E%24WJK%3C/text%3E%3Ctext x='42' y='58' fill='rgba(0,0,0,0.14)' font-size='13' font-weight='700' font-family='system-ui,sans-serif'%3E%24WJK%3C/text%3E%3C/svg%3E");
    background-size: 80px 80px;
    background-repeat: repeat;
    border-radius: 14px 14px 0 0;
}

.paper-private {
    background-color: #fef5f5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Ctext x='2' y='22' fill='rgba(0,0,0,0.14)' font-size='13' font-weight='700' font-family='system-ui,sans-serif'%3E%24WJK%3C/text%3E%3Ctext x='42' y='58' fill='rgba(0,0,0,0.14)' font-size='13' font-weight='700' font-family='system-ui,sans-serif'%3E%24WJK%3C/text%3E%3C/svg%3E");
    background-size: 80px 80px;
    background-repeat: repeat;
    border-radius: 0 0 14px 14px;
}

.paper-header {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.paper-header-private {
    color: #8b0000;
}

.paper-logo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f0b90b, #c99a06);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.paper-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.paper-logo-fallback {
    font-weight: 900;
    font-size: 16px;
    color: #1a1a2e;
    display: flex;
    align-items: center;
    justify-content: center;
}

.paper-lock {
    flex-shrink: 0;
    color: #8b0000;
}

.paper-title-group {
    display: flex;
    flex-direction: column;
}

.paper-brand {
    font-weight: 800;
    font-size: 14px;
    color: #1a1a2e;
    letter-spacing: 1px;
}

.private-brand {
    color: #8b0000;
}

.paper-label {
    font-size: 10px;
    color: #888;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.private-label {
    color: #cc3333;
}

.paper-qr {
    background: #ffffff;
    padding: 6px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.paper-qr canvas {
    display: block;
}

.paper-key {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    word-break: break-all;
    text-align: center;
    color: #333;
    padding: 6px 12px;
    background: rgba(0,0,0,0.04);
    border-radius: 6px;
    width: 100%;
    line-height: 1.5;
}

.paper-key-private {
    color: #8b0000;
    background: rgba(139, 0, 0, 0.06);
}

.fold-line {
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 0;
    background: #fafafa;
    border-top: 2px dashed #ccc;
    border-bottom: 2px dashed #ccc;
}

.fold-line::before,
.fold-line::after {
    content: '✂';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #888;
    pointer-events: none;
}

.fold-line::before {
    left: 10px;
}

.fold-line::after {
    right: 10px;
}

.fold-text {
    font-size: 10px;
    color: #aaa;
    letter-spacing: 2px;
    white-space: nowrap;
}

/* ---------- Bulk Generation ---------- */
.bulk-controls {
    text-align: center;
    margin-bottom: 32px;
}

.bulk-label {
    display: block;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.bulk-input-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.bulk-input {
    width: 80px;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: var(--mono);
    font-size: 16px;
    text-align: center;
    outline: none;
    transition: border-color var(--transition);
}

.bulk-input:focus {
    border-color: var(--gold);
}

.bulk-gen-btn {
    padding: 12px 32px;
    font-size: 15px;
}

.bulk-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
}

.bulk-results {
    opacity: 0;
}

.bulk-results.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.bulk-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.bulk-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.bulk-table th {
    padding: 12px 16px;
    text-align: left;
    background: var(--bg-card);
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--border);
}

.bulk-table td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    font-family: var(--mono);
    font-size: 11px;
    word-break: break-all;
}

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

.bulk-table tr:hover td {
    background: var(--bg-card);
}

.address-cell {
    color: var(--green);
}

.wif-cell {
    color: var(--red);
}

/* ---------- Security Grid ---------- */
.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.security-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all var(--transition);
}

.security-card:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
}

.security-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    background: var(--gold-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--gold);
}

.security-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.security-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ---------- Steps Grid ---------- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 48px;
}

.step-card {
    text-align: center;
    padding: 32px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}

.step-card:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #0a0a14;
    font-weight: 800;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.step-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ---------- Network Info ---------- */
.network-info {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.network-info h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

.params-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.param {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-sm);
}

.param-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.param-value {
    font-family: var(--mono);
    font-size: 14px;
    color: var(--gold);
    font-weight: 500;
}

/* ---------- Footer ---------- */
.footer {
    padding: 32px 0;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-name {
    font-weight: 600;
    font-size: 14px;
}

.footer-info {
    text-align: right;
}

.footer-info p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-copy {
    font-size: 12px !important;
    margin-top: 4px;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(10, 10, 20, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 16px 24px;
        gap: 12px;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.open {
        display: flex;
    }

    .hero-stats {
        gap: 16px;
    }

    .card-body {
        flex-direction: column;
        align-items: center;
    }

    .key-display {
        width: 100%;
        text-align: center;
    }

    .wallet-actions {
        justify-content: center;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-info {
        text-align: center;
    }

    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .generate-btn {
        padding: 14px 32px;
        font-size: 16px;
    }

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

    .params-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---------- Selection Colors ---------- */
::selection {
    background: rgba(240, 185, 11, 0.3);
    color: #fff;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ---------- Bulk Paper Wallets (hidden on screen, shown for print) ---------- */
.bulk-paper-wallets {
    display: none;
}

/* ---------- Print-Only Paper Wallet ---------- */
.print-only {
    display: none;
}

/* ---------- Print Styles ---------- */
@media print {
    /* Hide everything */
    body > * {
        display: none !important;
    }

    /* Show only the generator section which contains the paper wallet */
    body > .section:has(.paper-wallet),
    body > section:has(.paper-wallet) {
        display: block !important;
    }

    /* Hide UI chrome, keep active tab content */
    .section-header,
    .tabs,
    .generate-area,
    .wallet-placeholder,
    .wallet-card,
    .wallet-actions,
    .paper-wallet-title,
    .paper-wallet-desc,
    .tab-content:not(.active),
    .bulk-controls,
    .bulk-actions,
    .navbar,
    .hero,
    .footer,
    .print-only {
        display: none !important;
    }

    /* Bulk: show tab + results + paper wallets, hide table */
    #tab-bulk.active,
    #tab-bulk.active .bulk-results,
    #tab-bulk.active .bulk-paper-wallets {
        display: block !important;
    }

    .bulk-results {
        opacity: 1 !important;
    }

    .table-wrapper {
        display: none !important;
    }

    .bulk-paper-wallets {
        display: block !important;
    }

    .bulk-paper-wallet-card {
        page-break-after: always;
        page-break-inside: avoid;
        margin: 20px auto !important;
    }

    .bulk-paper-wallet-card:last-child {
        page-break-after: auto;
    }

    body {
        background: #fff !important;
        margin: 0;
        padding: 0;
    }

    /* Force backgrounds to print (watermark + colors) */
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        color-adjust: exact !important;
    }

    .paper-wallet {
        margin: 20px auto !important;
        width: 90% !important;
        max-width: 680px !important;
        box-shadow: none !important;
        border: 2px solid #333 !important;
        border-radius: 16px !important;
        overflow: visible !important;
        page-break-inside: avoid;
    }

    .paper-side {
        padding: 16px 20px !important;
        gap: 8px !important;
    }

    .paper-qr {
        box-shadow: none !important;
        border: 2px solid #eee !important;
    }

    .paper-qr canvas {
        width: 140px !important;
        height: 140px !important;
    }

    .paper-key {
        font-size: 9px !important;
        padding: 4px 10px !important;
    }

    .fold-line {
        padding: 4px 0 !important;
    }

    .paper-wallet::before {
        border-color: #6a6a6a !important;
    }

    .paper-wallet::after {
        background: #fff !important;
        color: #555 !important;
    }
}
