/* ==========================================================================
   Hmm.. Dialogue: Steel Man & Straw Man in Conversation
   Arkansas & Bella Vista Governance Directory
   ========================================================================== */

:root {
    --steel-color: #38bdf8;
    --steel-border: rgba(56, 189, 248, 0.4);
    --steel-bg: rgba(56, 189, 248, 0.12);
    
    --straw-color: #fb923c;
    --straw-border: rgba(251, 146, 60, 0.4);
    --straw-bg: rgba(251, 146, 60, 0.12);
    
    --action-color: #34d399;
    --action-border: rgba(52, 211, 153, 0.4);
    --action-bg: rgba(52, 211, 153, 0.12);
    
    --ar-crimson: #e11d48;
    --ar-gold: #f59e0b;
}

.hmm-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 5rem;
    width: 100%;
}

/* ---------------- Hero Section ---------------- */
.conv-hero {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.conv-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #fbbf24;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    margin-bottom: 1rem;
}

.conv-hero h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 10%, #cbd5e1 50%, #f59e0b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.conv-hero p.subtitle {
    max-width: 820px;
    margin: 0 auto 1.5rem;
    color: var(--text-secondary);
    font-size: 1.12rem;
    line-height: 1.6;
}

.quick-jump-nav {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
}

.jump-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 1.1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    transition: var(--transition);
}

.jump-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    color: #fff;
}

/* ---------------- Section Headers ---------------- */
.section-header-wrap {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 0.3rem;
}

/* ---------------- Topic Switcher & Controls ---------------- */
.dialogue-box {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(16px);
    margin-bottom: 4rem;
}

.topic-selector-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.topic-tab {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 1rem 1.1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    cursor: pointer;
    font: inherit;
    text-align: left;
    transition: var(--transition);
}

.topic-tab:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
}

.topic-tab.active {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(59, 130, 246, 0.12));
    border-color: rgba(245, 158, 11, 0.5);
    color: var(--text-primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.topic-tab .tab-icon {
    font-size: 1.3rem;
    color: #fbbf24;
    margin-top: 0.15rem;
}

.topic-tab b {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
    color: var(--text-primary);
}

.topic-tab small {
    font-size: 0.78rem;
    line-height: 1.35;
    color: var(--text-secondary);
}

/* View Mode Toggles */
.dialogue-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.25);
    padding: 0.75rem 1.25rem;
    border-radius: 14px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    flex-wrap: wrap;
    gap: 0.75rem;
}

.current-topic-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mode-toggle-group {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.04);
    padding: 3px;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
}

.mode-btn {
    padding: 0.4rem 0.85rem;
    border-radius: 8px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.mode-btn.active {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ---------------- Chat Dialogue View ---------------- */
.dialogue-stream {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.dialogue-item {
    display: flex;
    gap: 1.25rem;
    animation: convFadeIn 0.4s ease both;
}

@keyframes convFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}

.conv-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.conv-bubble {
    flex: 1;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 1.25rem 1.5rem;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.conv-speaker-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.conv-speaker-name {
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.conv-tag {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
}

/* Straw Man Styling */
.dialogue-item.straw .conv-avatar {
    background: var(--straw-bg);
    border-color: var(--straw-border);
    color: var(--straw-color);
}
.dialogue-item.straw .conv-bubble {
    border-left: 4px solid var(--straw-color);
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.08), rgba(15, 23, 42, 0.8));
}
.dialogue-item.straw .conv-speaker-name { color: var(--straw-color); }
.dialogue-item.straw .conv-tag {
    background: rgba(251, 146, 60, 0.16);
    color: var(--straw-color);
    border: 1px solid var(--straw-border);
}

/* Steel Man Styling */
.dialogue-item.steel .conv-avatar {
    background: var(--steel-bg);
    border-color: var(--steel-border);
    color: var(--steel-color);
}
.dialogue-item.steel .conv-bubble {
    border-left: 4px solid var(--steel-color);
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.08), rgba(15, 23, 42, 0.8));
}
.dialogue-item.steel .conv-speaker-name { color: var(--steel-color); }
.dialogue-item.steel .conv-tag {
    background: rgba(56, 189, 248, 0.16);
    color: var(--steel-color);
    border: 1px solid var(--steel-border);
}

/* Action / Arbiter Styling */
.dialogue-item.arbiter .conv-avatar {
    background: var(--action-bg);
    border-color: var(--action-border);
    color: var(--action-color);
}
.dialogue-item.arbiter .conv-bubble {
    border-left: 4px solid var(--action-color);
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.08), rgba(15, 23, 42, 0.8));
}
.dialogue-item.arbiter .conv-speaker-name { color: var(--action-color); }
.dialogue-item.arbiter .conv-tag {
    background: rgba(52, 211, 153, 0.16);
    color: var(--action-color);
    border: 1px solid var(--action-border);
}

.conv-text {
    font-size: 1.02rem;
    line-height: 1.6;
    color: #e2e8f0;
}

.conv-takeaways {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.conv-takeaways ul {
    margin: 0.35rem 0 0 1.25rem;
}
.conv-takeaways li {
    margin: 0.3rem 0;
}

/* ---------------- Side-by-Side View ---------------- */
.comparative-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.comp-card {
    border-radius: 18px;
    padding: 1.5rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--glass-border);
}

.comp-card.straw {
    border-top: 4px solid var(--straw-color);
    background: linear-gradient(180deg, rgba(251, 146, 60, 0.06), transparent 80%);
}

.comp-card.steel {
    border-top: 4px solid var(--steel-color);
    background: linear-gradient(180deg, rgba(56, 189, 248, 0.06), transparent 80%);
}

.comp-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.85rem;
    font-size: 1.1rem;
    font-weight: 700;
}

/* ---------------- Bella Vista Leadership Spotlight ---------------- */
.bv-section {
    margin-bottom: 4.5rem;
}

.bv-mayor-spotlight {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 2rem;
    background: linear-gradient(160deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2.2rem;
    box-shadow: var(--glass-shadow);
    margin-bottom: 2rem;
}

.mayor-badge-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.mayor-seal {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: radial-gradient(circle, #38bdf8 0%, #0369a1 100%);
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.35);
}

.mayor-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.25rem;
}

.mayor-term {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.mayor-contact-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.bv-contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
}

.bv-contact-btn:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.4);
    color: #38bdf8;
}

.mayor-dilemma-content h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
}

.criteria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}

.criteria-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: 1.1rem;
}

.criteria-card h4 {
    font-size: 0.95rem;
    color: #38bdf8;
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.criteria-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

/* Wards & Council Grid */
.bv-spots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
}

.spot-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.4rem;
    transition: var(--transition);
}

.spot-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.spot-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.spot-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    line-height: 1.45;
}

.spot-details {
    font-size: 0.82rem;
    color: #cbd5e1;
    background: rgba(0, 0, 0, 0.25);
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    border-left: 3px solid #38bdf8;
}

/* ---------------- Arkansas Representatives Directory ---------------- */
.reps-section {
    margin-bottom: 4rem;
}

.rep-filter-toolbar {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.8rem;
    flex-wrap: wrap;
}

.rep-search-box {
    flex: 1 1 280px;
    position: relative;
}

.rep-search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.rep-search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.6rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-primary);
    font: inherit;
    transition: var(--transition);
}

.rep-search-box input:focus {
    outline: none;
    border-color: #e11d48;
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.2);
}

.rep-cat-chips {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.rep-chip {
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    font: inherit;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.rep-chip:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

.rep-chip.active {
    background: rgba(225, 29, 72, 0.16);
    border-color: rgba(225, 29, 72, 0.6);
    color: #fff;
}

/* Representatives Cards */
.reps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 1.4rem;
}

.rep-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    animation: convFadeIn 0.35s ease both;
}

.rep-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.rep-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    gap: 0.5rem;
}

.rep-title-group h3 {
    font-size: 1.22rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.15rem;
}

.rep-role {
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 500;
}

.rep-badge {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    white-space: nowrap;
}

.rep-badge.fed { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.rep-badge.state { background: rgba(225, 29, 72, 0.15); color: #fb7185; }
.rep-badge.local { background: rgba(52, 211, 153, 0.15); color: #34d399; }

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

.rep-meta-list {
    font-size: 0.82rem;
    color: #cbd5e1;
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.rep-meta-list span {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.rep-meta-list i {
    width: 16px;
    color: #fbbf24;
}

.rep-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.rep-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.rep-btn.primary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
}
.rep-btn.primary:hover {
    background: rgba(225, 29, 72, 0.2);
    border-color: rgba(225, 29, 72, 0.5);
    color: #fff;
}

.rep-btn.facts {
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: #38bdf8;
}
.rep-btn.facts:hover {
    background: rgba(56, 189, 248, 0.18);
    border-color: #38bdf8;
}

/* ---------------- Fact Portals Directory Grid ---------------- */
.fact-portals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.portal-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.4rem;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.portal-card:hover {
    border-color: rgba(245, 158, 11, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.portal-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.portal-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 1rem;
}

.portal-link-text {
    font-size: 0.8rem;
    color: #fbbf24;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* ---------------- Multi-Step Navigation & Stepper System ---------------- */
.stepper-wrapper {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(16px);
    position: sticky;
    top: 76px;
    z-index: 90;
    transition: var(--transition);
}

.stepper-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.stepper-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.step-pill {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.18);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.step-title-display {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stepper-view-toggle {
    display: inline-flex;
    background: rgba(0, 0, 0, 0.3);
    padding: 3px;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
}

.toggle-mode-btn {
    padding: 0.4rem 0.85rem;
    border-radius: 8px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.toggle-mode-btn.active {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Stepper Progress Track */
.stepper-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 1.25rem;
    position: relative;
}

.stepper-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #38bdf8 60%, #34d399);
    border-radius: 999px;
    transition: width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.5);
}

/* Stepper Tabs Bar */
.stepper-tabs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.6rem;
}

.step-tab-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 0.85rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    cursor: pointer;
    font: inherit;
    text-align: left;
    transition: var(--transition);
    position: relative;
}

.step-tab-btn:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.18);
    color: var(--text-primary);
}

.step-tab-btn.active {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(56, 189, 248, 0.15));
    border-color: rgba(245, 158, 11, 0.6);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.step-tab-btn.completed .step-num {
    background: #34d399;
    color: #04130d;
}

.step-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: grid;
    place-items: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
    transition: var(--transition);
}

.step-tab-btn.active .step-num {
    background: #fbbf24;
    color: #0b0f19;
}

.step-label {
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Step Content Panes */
.step-pane {
    animation: convFadeIn 0.35s ease both;
    display: block;
}

/* In guided mode, hidden panes are set to display:none */
body.mode-guided .step-pane.step-hidden {
    display: none !important;
}

/* Step Footer Navigation Bar */
.step-footer-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 1.1rem 1.6rem;
    margin-top: 2.5rem;
    backdrop-filter: blur(12px);
    box-shadow: var(--glass-shadow);
    flex-wrap: wrap;
    gap: 1rem;
}

.step-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 1.35rem;
    border-radius: 12px;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.step-nav-btn.prev-btn {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
}

.step-nav-btn.prev-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateX(-3px);
}

.step-nav-btn.prev-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.step-nav-btn.next-btn {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #04130d;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.step-nav-btn.next-btn:hover {
    filter: brightness(1.1);
    transform: translateX(3px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
}

.step-nav-btn.finish-btn {
    background: linear-gradient(135deg, #34d399, #10b981);
    color: #04130d;
    box-shadow: 0 4px 15px rgba(52, 211, 153, 0.3);
}

.step-quick-dots {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.step-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: var(--transition);
}

.step-dot:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.2);
}

.step-dot.active {
    width: 24px;
    border-radius: 999px;
    background: #fbbf24;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.6);
}

.step-dot.completed {
    background: #34d399;
}

/* Floating Navigation Dock (on mobile / bottom of screen) */
.floating-step-dock {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(15, 23, 42, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    border-radius: 999px;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    z-index: 1000;
    backdrop-filter: blur(16px);
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.floating-step-dock.visible {
    transform: translateX(-50%) translateY(0);
}

.floating-dock-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #e2e8f0;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dock-btn {
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.dock-btn.prev {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.dock-btn.next {
    background: #fbbf24;
    color: #0b0f19;
}

/* ---------------- Sub-Stepper for Dialogue Walkthrough ---------------- */
.dialogue-walkthrough-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 0.6rem;
}

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

.walkthrough-btns {
    display: flex;
    gap: 0.45rem;
}

.walkthrough-btn {
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    transition: var(--transition);
}

.walkthrough-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.walkthrough-btn.advance {
    background: rgba(56, 189, 248, 0.2);
    border-color: rgba(56, 189, 248, 0.4);
    color: #38bdf8;
}

/* ---------------- Interactive Mayoral Scorecard Widget ---------------- */
.scorecard-box {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 1.5rem;
    margin-top: 1.75rem;
}

.scorecard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.scorecard-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 0.65rem;
    transition: var(--transition);
    flex-wrap: wrap;
    gap: 0.5rem;
}

.scorecard-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.scorecard-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: #e2e8f0;
}

.scorecard-rank-btns {
    display: flex;
    gap: 0.35rem;
}

.rank-btn {
    padding: 0.3rem 0.65rem;
    border-radius: 6px;
    font: inherit;
    font-size: 0.76rem;
    font-weight: 600;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.rank-btn:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.25);
}

.rank-btn.selected {
    background: #38bdf8;
    color: #032030;
    border-color: #38bdf8;
    font-weight: 700;
}

.scorecard-summary-card {
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(52, 211, 153, 0.1));
    border: 1px solid rgba(56, 189, 248, 0.3);
    font-size: 0.9rem;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* ---------------- Responsive Styles ---------------- */
@media (max-width: 1050px) {
    .stepper-tabs {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .bv-mayor-spotlight {
        grid-template-columns: 1fr;
    }
    .comparative-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .stepper-tabs {
        grid-template-columns: 1fr;
    }
    .stepper-wrapper {
        top: 60px;
        padding: 1rem;
    }
}

@media (max-width: 650px) {
    .dialogue-item {
        flex-direction: column;
        gap: 0.75rem;
    }
    .conv-avatar {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    .hmm-container {
        padding: 1.5rem 1rem 4rem;
    }
    .dialogue-box {
        padding: 1.25rem;
    }
    .reps-grid {
        grid-template-columns: 1fr;
    }
    .step-footer-nav {
        flex-direction: column;
        gap: 1rem;
    }
    .step-nav-btn {
        width: 100%;
        justify-content: center;
    }
}

