/* Hero */
.num-page-hero { background: var(--hero-gradient); color: white; text-align: center; padding: 24px 24px 20px; position: relative; overflow: hidden; }
.num-page-hero::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); pointer-events: none; }
.num-page-hero h1 { font-size: 36px; font-weight: 900; color: white; line-height: 1.2; margin-bottom: 12px; letter-spacing: -0.02em; }
.num-page-hero p  { font-size: 16px; color: rgba(255,255,255,0.75); max-width: 520px; margin: 0 auto; line-height: 1.6; }

.num-wrapper { max-width: 760px; margin: -20px auto 0; padding: 0 20px 56px; position: relative; z-index: 1; }

.num-hero { display: none; }

.num-explainer {
    background: var(--accent-bg); border: 1px solid var(--accent-border);
    border-radius: 16px; padding: 18px 20px; margin-bottom: 24px;
    font-size: 13.5px; color: var(--accent-text-dark); line-height: 1.7;
}
.num-explainer strong { color: var(--accent-text); }

.num-form-card {
    background: var(--bg-card); border: 1.5px solid var(--border);
    border-radius: 20px; padding: 28px 24px; margin-bottom: 24px;
    box-shadow: var(--shadow-card);
}
.num-form-card label {
    display: block; font-weight: 600; color: #334155;
    margin-bottom: 5px; font-size: 13px;
}
.num-form-card input, .num-form-card select {
    width: 100%; padding: 10px 12px; border: 1.5px solid #e2e8f0;
    border-radius: 10px; font-size: 14px; color: #0f172a;
    background: white; box-sizing: border-box; transition: border-color 0.15s;
    margin-bottom: 16px;
}
.num-form-card input:focus, .num-form-card select:focus {
    outline: none; border-color: var(--input-focus-border); box-shadow: 0 0 0 3px var(--focus-ring);
}

.num-field-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
@media (max-width: 520px) { .num-field-grid { grid-template-columns: 1fr; } }

.num-submit-btn {
    display: block; width: 100%; padding: 15px;
    background: var(--brand-gradient);
    color: white; border: none; border-radius: 14px;
    font-size: 17px; font-weight: 700; cursor: pointer;
    transition: opacity 0.15s, transform 0.15s; margin-top: 4px;
}
.num-submit-btn:hover  { opacity: 0.88; transform: translateY(-1px); }
.num-submit-btn:disabled { opacity: 0.5; cursor: default; transform: none; }

.error-box {
    background: #fef2f2; border: 1px solid #fecaca; color: #dc2626;
    padding: 12px 16px; border-radius: 12px; font-size: 14px; margin-bottom: 20px;
}

/* Number chips */
.num-chips {
    display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px;
}
.num-chip {
    flex: 1 1 calc(33% - 8px); min-width: 90px;
    background: var(--accent-bg); border-radius: 16px; padding: 14px 12px; text-align: center;
}
.num-chip.primary { background: var(--brand-gradient); }
.num-chip-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--accent-text); }
.num-chip.primary .num-chip-label { color: #fde68a; }
.num-chip-value { font-size: 28px; font-weight: 800; color: #0f172a; line-height: 1.1; margin-top: 4px; }
.num-chip.primary .num-chip-value { color: white; }
.num-chip-sub { font-size: 12px; color: #64748b; margin-top: 3px; font-weight: 600; }
.num-chip.primary .num-chip-sub { color: #e9d5ff; }

/* Master number badge */
.master-badge {
    display: inline-block; background: linear-gradient(90deg, #f59e0b, #f97316);
    color: white; font-size: 12px; font-weight: 800; padding: 2px 8px;
    border-radius: 6px; letter-spacing: 0.07em; text-transform: uppercase;
    vertical-align: middle; margin-left: 6px;
}

/* Lo Shu grid */
.loshu-card { background: var(--bg-card); border: 1.5px solid var(--accent-border); border-radius: 20px; padding: 22px 20px; margin-bottom: 24px; }
.loshu-card h2 { font-size: 18px; font-weight: 800; color: var(--text-900); margin: 0 0 4px; }
.loshu-card .loshu-sub { font-size: 13px; color: var(--text-400); margin: 0 0 16px; line-height: 1.6; }
.loshu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 280px; margin: 0 auto 16px; }
.loshu-cell { aspect-ratio: 1; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--accent-bg); border: 1.5px solid var(--accent-border); }
.loshu-cell.empty { background: transparent; border-style: dashed; }
.loshu-cell-value { font-size: 22px; font-weight: 800; color: var(--accent-text); letter-spacing: 0.04em; }
.loshu-cell.empty .loshu-cell-value { color: var(--text-400); font-size: 14px; font-weight: 600; }
.loshu-facts { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: center; font-size: 13.5px; color: var(--text-900); }
.loshu-facts strong { color: var(--accent-text); }
.naam-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.naam-list li { background: var(--accent-bg); border: 1.5px solid var(--accent-border); border-radius: 12px; padding: 12px 14px; font-size: 14px; color: var(--text-900); line-height: 1.7; }
.naam-list a { color: var(--accent-text); font-weight: 700; }

/* Result */
.num-result-card {
    background: white; border: 2px solid var(--accent-border);
    border-radius: 20px; padding: 28px 24px; margin-bottom: 24px;
}
.num-result-header { margin-bottom: 18px; }
.num-result-header h2 { font-size: 22px; font-weight: 800; color: #0f172a; margin-bottom: 4px; }
.num-result-header p  { font-size: 13px; color: #64748b; }

.num-result-body { font-size: 14.5px; color: #334155; line-height: 1.8; }
.num-result-body h2 { font-size: 17px; font-weight: 800; color: #0f172a; margin: 20px 0 6px; }
.num-result-body h3 { font-size: 15px; font-weight: 700; color: var(--accent-text); margin: 16px 0 4px; }
.num-result-body p  { margin-bottom: 8px; }
.num-result-body ul { padding-left: 20px; margin-bottom: 8px; }
.num-result-body li { margin-bottom: 4px; }
.num-result-body strong { color: #0f172a; }
.num-result-body hr { border: none; border-top: 1px solid #f1f5f9; margin: 16px 0; }

.num-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.num-new-btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--accent-bg); color: var(--accent-text); padding: 10px 20px;
    border-radius: 12px; font-weight: 700; font-size: 14px;
    text-decoration: none; transition: background 0.15s;
}
.num-new-btn:hover { background: var(--accent-bg-hover); }

/* Pro gate */
.pro-gate-card {
    background: linear-gradient(135deg, #fffbeb, var(--accent-bg));
    border: 2px solid var(--accent-border); border-radius: 20px;
    padding: 32px 28px; text-align: center; margin-bottom: 24px;
}
.pro-gate-icon { font-size: 48px; margin-bottom: 12px; }
.pro-gate-card h2 { font-size: 22px; font-weight: 800; color: #0f172a; margin-bottom: 10px; }
.pro-gate-card p  { font-size: 15px; color: #64748b; line-height: 1.6; margin-bottom: 20px;
    max-width: 420px; margin-left: auto; margin-right: auto; }
.pro-gate-btn {
    display: inline-block; background: var(--brand-gradient);
    color: white; padding: 14px 32px; border-radius: 14px;
    font-weight: 700; font-size: 16px; text-decoration: none; transition: opacity 0.15s;
}
.pro-gate-btn:hover { opacity: 0.88; }

/* History nudge */
.num-history-card {
    background: white; border: 1.5px solid #e2e8f0; border-radius: 16px;
    padding: 16px 20px; margin-bottom: 20px;
    display: flex; align-items: center; gap: 14px;
}
.num-history-icon { font-size: 32px; flex-shrink: 0; }
.num-history-info { flex: 1; }
.num-history-label { font-size: 12px; color: #94a3b8; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.num-history-name  { font-size: 15px; font-weight: 700; color: #0f172a; margin-top: 2px; }
.num-history-sub   { font-size: 12px; color: #64748b; margin-top: 2px; }
.num-history-link  {
    background: var(--accent-bg); color: var(--accent-text); font-size: 13px; font-weight: 700;
    padding: 8px 14px; border-radius: 10px; text-decoration: none; white-space: nowrap;
    transition: background 0.15s;
}
.num-history-link:hover { background: #ddd6fe; }

@media (max-width: 480px) {
    .num-wrapper { padding: 20px 14px 48px; }
    .num-hero h1 { font-size: 24px; }
    .num-chip    { flex: 1 1 calc(50% - 6px); }
    .num-result-card { padding: 18px 14px; }
    .num-result-body { font-size: 13.5px; }
    .num-result-body h2 { font-size: 15px; }
    .num-result-body h3 { font-size: 14px; }
    .num-actions { flex-direction: column; }
    .num-actions a { width: 100%; justify-content: center; box-sizing: border-box; }
}
@keyframes numspin   { from{transform:rotate(0deg)}to{transform:rotate(360deg)} }
@keyframes numbounce { 0%,60%,100%{transform:translateY(0);opacity:.5}30%{transform:translateY(-8px);opacity:1} }
.naam-table { width: 100%; border-collapse: collapse; font-size: 14px; color: var(--text-900); margin-bottom: 16px; }
.naam-table th, .naam-table td { border-top: 1px solid var(--accent-border); padding: 10px 6px; text-align: left; vertical-align: top; line-height: 1.6; }
.naam-table thead th { border-top: 0; font-size: 13px; color: var(--text-400); font-weight: 700; }
.naam-table tbody th { white-space: nowrap; font-weight: 800; }
.naam-table a { color: var(--accent-text); font-weight: 700; display: inline-block; min-height: 24px; min-width: 24px; text-align: center; padding: 2px 3px; }
.naam-group { display: block; }
.naam-lat { color: var(--text-400); font-size: 13px; }
.naam-faq-q { font-size: 15px; font-weight: 800; color: var(--text-900); margin: 14px 0 4px; }
