/* ===================================================
   AD Consulting — Executive Scan Experience
   Color primario: #ed7423
   =================================================== */

:root {
    --primary: #ed7423;
    --primary-dark: #c45e18;
    --primary-light: #f0933f;
    --primary-bg: #fef3ea;
    --text-dark: #1a1208;
    --text-medium: #4a3c30;
    --text-light: #7a6e65;
    --bg: #faf8f5;
    --white: #ffffff;
    --border: #e8dfd5;
    --shadow-sm: 0 2px 8px rgba(237, 116, 35, 0.08);
    --shadow: 0 4px 20px rgba(26, 18, 8, 0.08);
    --shadow-lg: 0 12px 48px rgba(26, 18, 8, 0.14);
    --radius-sm: 10px;
    --radius: 18px;
    --radius-lg: 26px;
    --radius-xl: 36px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text-dark);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ======================
   LANDING PAGE
   ====================== */

.landing {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #1a0e06 0%, #261508 50%, #1a1008 100%);
    padding: 40px 24px;
}

.landing-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.12;
}

.bg-circle-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -200px;
    right: -100px;
    animation: floatBg 8s ease-in-out infinite;
}

.bg-circle-2 {
    width: 400px;
    height: 400px;
    background: #f0933f;
    bottom: -100px;
    left: -100px;
    animation: floatBg 10s ease-in-out infinite reverse;
}

.bg-circle-3 {
    width: 300px;
    height: 300px;
    background: var(--primary-light);
    top: 40%;
    left: 30%;
    animation: floatBg 12s ease-in-out infinite;
}

@keyframes floatBg {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
}

.landing-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 480px;
    width: 100%;
}

.logo-wrap {
    margin-bottom: 24px;
}

.logo {
    height: 110px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

.landing-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(237, 116, 35, 0.2);
    border: 1px solid rgba(237, 116, 35, 0.4);
    color: var(--primary-light);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 28px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 8px #4ade80;
    animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.8); }
}

.landing-title {
    font-size: clamp(52px, 10vw, 80px);
    font-weight: 900;
    line-height: 0.95;
    color: var(--white);
    letter-spacing: -2px;
    margin-bottom: 20px;
}

.title-accent {
    color: var(--primary-light);
    position: relative;
}

.landing-subtitle {
    font-size: 16px;
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
    margin-bottom: 32px;
    font-weight: 400;
}

.landing-features {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.feature-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 100px;
}

.chip-icon {
    font-size: 15px;
}

.btn-start {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    padding: 20px 40px;
    border-radius: var(--radius-xl);
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(237, 116, 35, 0.4);
    margin-bottom: 20px;
}

.btn-start:hover, .btn-start:active {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(237, 116, 35, 0.5);
}

.landing-footer {
    font-size: 13px;
    color: rgba(255,255,255,0.35);
    font-style: italic;
}

/* Archetype preview floating cards */
.landing-visual {
    display: none;
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

@media (min-width: 1100px) {
    .landing-visual { display: block; }
}

.archetype-preview {
    position: relative;
    width: 200px;
    height: 400px;
}

.ap-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    padding: 10px 18px;
    border-radius: 100px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.ap-icon { font-size: 18px; }

.ap-card-1 { top: 0; left: 0; animation: cardFloat 6s ease-in-out infinite; }
.ap-card-2 { top: 80px; right: -20px; animation: cardFloat 7s ease-in-out infinite 1s; }
.ap-card-3 { top: 160px; left: 10px; animation: cardFloat 5s ease-in-out infinite 0.5s; }
.ap-card-4 { top: 240px; right: 0; animation: cardFloat 8s ease-in-out infinite 1.5s; }
.ap-card-5 { top: 320px; left: 20px; animation: cardFloat 6.5s ease-in-out infinite 2s; }

@keyframes cardFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.dashboard-link {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 10px 16px;
    border-radius: 100px;
    transition: all 0.2s;
    z-index: 10;
}

.dashboard-link:hover {
    background: rgba(255,255,255,0.15);
    color: white;
}

/* ======================
   TEST PAGE
   ====================== */

.test-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--white);
}

.test-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--white);
    z-index: 10;
}

.back-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    color: var(--text-medium);
    text-decoration: none;
    transition: background 0.2s;
    border: 1px solid var(--border);
}

.back-btn:hover { background: var(--bg); }

.test-logo {
    height: 36px;
    width: auto;
}

.test-counter {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-medium);
    background: var(--bg);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.counter-sep {
    color: var(--border);
    margin: 0 2px;
}

.progress-wrap {
    height: 4px;
    background: var(--bg);
    position: relative;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 0 4px 4px 0;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.questions-container {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.question-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 24px 20px;
    opacity: 0;
    transform: translateX(60px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    overflow-y: auto;
}

.question-slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: all;
}

.question-slide.exit {
    opacity: 0;
    transform: translateX(-60px);
}

.question-inner {
    max-width: 620px;
    width: 100%;
}

.q-number {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary);
    margin-bottom: 12px;
}

.q-text {
    font-size: clamp(22px, 4vw, 30px);
    font-weight: 800;
    line-height: 1.25;
    color: var(--text-dark);
    margin-bottom: 32px;
    letter-spacing: -0.5px;
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.option-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 22px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    width: 100%;
    min-height: 72px;
}

.option-btn:hover {
    border-color: var(--primary);
    background: var(--primary-bg);
    transform: translateX(4px);
}

.option-btn.selected {
    border-color: var(--primary);
    background: var(--primary-bg);
    box-shadow: 0 0 0 1px var(--primary);
}

.option-btn.selected .option-letter {
    background: var(--primary);
    color: white;
}

.option-letter {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 800;
    color: var(--text-medium);
    transition: all 0.2s;
}

.option-text {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.4;
}

/* Loading */
.loading-inner {
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px !important;
}

.scanning-animation {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto 36px;
}

.scan-ring {
    position: absolute;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--primary);
}

.scan-ring-1 {
    inset: 0;
    animation: spin 1.2s linear infinite;
    border-color: var(--primary) transparent transparent transparent;
}

.scan-ring-2 {
    inset: 16px;
    animation: spin 1.8s linear infinite reverse;
    border-color: var(--primary-light) transparent transparent transparent;
    opacity: 0.7;
}

.scan-ring-3 {
    inset: 32px;
    animation: spin 2.4s linear infinite;
    border-color: var(--primary-dark) transparent transparent transparent;
    opacity: 0.5;
}

.scan-core {
    position: absolute;
    inset: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-bg);
    border-radius: 50%;
}

.scan-icon { font-size: 28px; }

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-title {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--text-dark);
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}

.loading-sub {
    font-size: 15px;
    color: var(--text-light);
}

/* Nav */
.test-nav {
    padding: 20px 24px 32px;
    background: var(--white);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
}

.btn-next {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 17px;
    font-weight: 700;
    padding: 18px 36px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font);
    box-shadow: 0 6px 24px rgba(237, 116, 35, 0.35);
}

.btn-next:disabled {
    background: #cbd5e1;
    box-shadow: none;
    cursor: not-allowed;
}

.btn-next:not(:disabled):hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 28px rgba(237, 116, 35, 0.45);
}

/* ======================
   RESULT PAGE
   ====================== */

.result-page {
    min-height: 100vh;
    background: var(--bg);
    padding-bottom: 60px;
}

.result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.result-logo {
    height: 36px;
    width: auto;
}

.result-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-light);
    background: var(--bg);
    padding: 6px 12px;
    border-radius: 100px;
    border: 1px solid var(--border);
}

.result-content {
    max-width: 640px;
    margin: 0 auto;
    padding: 24px 20px;
}

.archetype-card {
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    animation: slideUp 0.6s ease forwards;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.arch-glow {
    position: absolute;
    inset: -50%;
    background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.arch-header {
    margin-bottom: 20px;
}

.arch-focus-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 100px;
}

.arch-icon-wrap {
    margin: 16px 0;
}

.arch-icon {
    font-size: 72px;
    display: block;
    filter: drop-shadow(0 4px 16px rgba(0,0,0,0.2));
}

.arch-name {
    font-size: 34px;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 12px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.arch-description {
    font-size: 16px;
    opacity: 0.88;
    line-height: 1.6;
    max-width: 360px;
    margin: 0 auto;
}

/* Insight cards */
.insight-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
}

.insight-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 22px 24px;
    border: 1px solid var(--border);
    animation: slideUp 0.6s ease forwards;
    animation-delay: 0.15s;
    opacity: 0;
}

.insights-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.half-card {
    animation-delay: 0.25s !important;
}

.insight-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.insight-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.insight-icon { font-size: 14px; }

.insight-text {
    font-size: 15px;
    color: var(--text-dark);
    line-height: 1.55;
    font-weight: 500;
}

/* Lead capture */
.lead-section {
    animation: slideUp 0.6s ease forwards;
    animation-delay: 0.35s;
    opacity: 0;
    margin-bottom: 16px;
}

.lead-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border);
}

.lead-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
}

.lead-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.lead-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.lead-sub {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.4;
}

.lead-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-medium);
}

.form-group input {
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: var(--font);
    color: var(--text-dark);
    background: var(--bg);
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus {
    border-color: var(--primary);
    background: var(--white);
}

.form-group input::placeholder {
    color: #a0aec0;
}

.btn-lead {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 700;
    padding: 18px 28px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font);
    box-shadow: 0 4px 16px rgba(237, 116, 35, 0.3);
}

.btn-lead:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(237, 116, 35, 0.4);
}

.btn-lead:disabled { opacity: 0.6; cursor: not-allowed; }

.lead-success {
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: var(--radius);
    padding: 36px 24px;
    margin-bottom: 16px;
    gap: 10px;
}

.success-icon { font-size: 40px; }

.lead-success h3 {
    font-size: 18px;
    font-weight: 700;
    color: #166534;
}

.lead-success p {
    font-size: 14px;
    color: #15803d;
    line-height: 1.5;
}

.restart-section {
    text-align: center;
    padding: 8px 0;
}

.btn-restart {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 100px;
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.btn-restart:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--primary-bg);
}

/* ======================
   DASHBOARD PAGE
   ====================== */

.dashboard-page {
    min-height: 100vh;
    background: linear-gradient(160deg, #150c04 0%, #1e1008 60%, #150c04 100%);
    display: flex;
    flex-direction: column;
    color: white;
    font-family: var(--font);
    padding: 0;
    overflow: hidden;
}

.dash-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 36px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(10px);
}

.dash-logo-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
}

.dash-logo {
    height: 44px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.dash-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dash-event-label {
    font-size: 15px;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    letter-spacing: -0.2px;
}

.dash-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.3);
    padding: 3px 10px;
    border-radius: 100px;
}

.live-pulse {
    width: 6px;
    height: 6px;
    background: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 8px #4ade80;
    animation: pulseDot 1.5s ease-in-out infinite;
}

.dash-total-wrap {
    text-align: right;
}

.dash-total-number {
    font-size: 52px;
    font-weight: 900;
    color: var(--primary-light);
    line-height: 1;
    letter-spacing: -2px;
    transition: all 0.5s ease;
}

.dash-total-label {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dash-body {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 20px;
    padding: 20px 36px;
    overflow: hidden;
    min-height: 0;
}

.dash-left, .dash-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 0;
}

.dash-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--radius-lg);
    padding: 22px;
    backdrop-filter: blur(10px);
}

.dash-card-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.4);
    margin-bottom: 16px;
}

.chart-wrap {
    position: relative;
    max-width: 240px;
    margin: 0 auto;
}

.chart-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.cc-number {
    font-size: 36px;
    font-weight: 900;
    color: white;
    letter-spacing: -1px;
    line-height: 1;
}

.cc-label {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.top-card {
    background: linear-gradient(135deg, rgba(237, 116, 35, 0.15) 0%, rgba(237, 116, 35, 0.05) 100%);
    border-color: rgba(237, 116, 35, 0.25);
    text-align: center;
}

.top-card-inner {
    padding: 8px 0;
}

.top-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.4);
    margin-bottom: 10px;
}

.top-icon {
    font-size: 40px;
    margin-bottom: 8px;
    display: block;
}

.top-name {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-light);
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}

.top-focus {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Archetype bars */
.archetypes-card {
    flex: 1;
}

.archetype-bars {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.arch-bar-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.abi-icon {
    font-size: 20px;
    flex-shrink: 0;
    width: 28px;
    text-align: center;
}

.abi-info {
    flex: 1;
    min-width: 0;
}

.abi-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 5px;
}

.abi-name {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.abi-count {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255,255,255,0.5);
    flex-shrink: 0;
    margin-left: 8px;
}

.abi-bar-bg {
    height: 6px;
    background: rgba(255,255,255,0.06);
    border-radius: 100px;
    overflow: hidden;
}

.abi-bar-fill {
    height: 100%;
    border-radius: 100px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Recent list */
.recent-card {
    max-height: 220px;
    overflow: hidden;
}

.recent-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 160px;
    overflow: hidden;
}

.recent-empty {
    font-size: 13px;
    color: rgba(255,255,255,0.25);
    font-style: italic;
    text-align: center;
    padding: 20px 0;
}

.recent-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: rgba(255,255,255,0.04);
    border-radius: var(--radius-sm);
    animation: slideInRight 0.4s ease;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.ri-icon { font-size: 18px; }

.ri-name {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
}

.ri-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.ri-time {
    font-size: 11px;
    color: rgba(255,255,255,0.3);
    flex-shrink: 0;
}

.dash-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 36px;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 12px;
    color: rgba(255,255,255,0.25);
}

.dash-scan-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.3);
    text-decoration: none;
    font-size: 12px;
    transition: color 0.2s;
}

.dash-scan-link:hover { color: var(--primary-light); }

/* ======================
   RESPONSIVE
   ====================== */

@media (max-width: 700px) {
    .form-row { grid-template-columns: 1fr; }
    .insights-row { grid-template-columns: 1fr; }
    .arch-name { font-size: 28px; }
    .arch-icon { font-size: 56px; }
    .q-text { font-size: 20px; }
    .landing-title { font-size: 52px; }
    .dash-body {
        grid-template-columns: 1fr;
        padding: 16px;
        overflow-y: auto;
    }
    .dash-header { padding: 16px 20px; }
    .dash-total-number { font-size: 36px; }
    .dash-footer { padding: 12px 20px; }
}

@media (max-width: 480px) {
    .landing { padding: 32px 20px; }
    .btn-start { padding: 18px 32px; font-size: 16px; }
    .result-content { padding: 16px; }
    .archetype-card { padding: 32px 20px; }
    .option-btn { min-height: 64px; padding: 16px 18px; }
    .option-text { font-size: 14px; }
}
