/* ==========================================================================
   Voteecal.in - Light Theme Stylesheet with Dark Footer
   Modern Civic Engagement & Public Representative Portal Gateway
   ========================================================================== */

:root {
    /* Base & Background Colors */
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-card: #ffffff;
    --bg-card-hover: #f8fafc;
    --bg-surface: #f8fafc;
    --bg-surface-light: #f1f5f9;
    --bg-surface-hover: #e2e8f0;
    
    /* Accent & Brand Colors */
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: rgba(37, 99, 235, 0.08);
    --primary-glow: rgba(37, 99, 235, 0.18);
    
    --accent: #4f46e5;
    --accent-gradient: linear-gradient(135deg, #1d4ed8 0%, #4f46e5 50%, #7c3aed 100%);
    --accent-btn-gradient: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    
    --success: #059669;
    --success-light: rgba(5, 150, 105, 0.1);
    --success-glow: rgba(5, 150, 105, 0.25);
    
    --warning: #d97706;
    --warning-light: rgba(217, 119, 6, 0.1);
    
    --danger: #dc2626;
    
    /* Text Colors */
    --text-main: #1e293b;
    --text-heading: #0f172a;
    --text-muted: #475569;
    --text-dim: #64748b;
    --text-white: #ffffff;
    
    /* Borders & Dividers */
    --border-subtle: #e2e8f0;
    --border-medium: #cbd5e1;
    --border-focus: rgba(37, 99, 235, 0.6);
    --border-active: #2563eb;
    
    /* Typography */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Shadows & Radii */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 14px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 20px 40px -10px rgba(15, 23, 42, 0.08), 0 8px 16px -6px rgba(15, 23, 42, 0.04);
    --shadow-glow: 0 0 25px var(--primary-glow);
    
    /* Transitions */
    --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ambient Background Light Effects */
.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.35;
}

.glow-1 {
    width: 650px;
    height: 650px;
    top: -150px;
    right: -100px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, rgba(99, 102, 241, 0) 70%);
}

.glow-2 {
    width: 550px;
    height: 550px;
    top: 35%;
    left: -150px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, rgba(59, 130, 246, 0) 70%);
}

.glow-3 {
    width: 750px;
    height: 750px;
    bottom: -200px;
    right: 10%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(241, 245, 249, 0) 70%);
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-heading);
    font-weight: 700;
    line-height: 1.25;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

button {
    font-family: var(--font-body);
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
}

input {
    font-family: var(--font-body);
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* ==========================================================================
   Header Styles
   ========================================================================== */
.main-header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0.85rem 0;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-logo {
    height: 44px;
    width: auto;
    object-fit: contain;
    transition: transform var(--transition-fast);
}

.brand-logo:hover {
    transform: scale(1.03);
}

.header-badges {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.nav-link {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.nav-link:hover {
    color: var(--primary);
    background: var(--primary-light);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
}

.live-badge {
    background: var(--success-light);
    color: var(--success);
    border: 1px solid rgba(5, 150, 105, 0.25);
}

.pulse-dot, .pulse-dot-green, .pulse-dot-amber {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    position: relative;
}

.pulse-dot, .pulse-dot-green {
    background-color: var(--success);
    box-shadow: 0 0 8px var(--success);
    animation: pulseGlow 2s infinite;
}

.pulse-dot-amber {
    background-color: var(--warning);
    box-shadow: 0 0 8px var(--warning);
    animation: pulseGlowAmber 2s infinite;
}

@keyframes pulseGlow {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.6); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 7px rgba(5, 150, 105, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(5, 150, 105, 0); }
}

@keyframes pulseGlowAmber {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.6); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 7px rgba(217, 119, 6, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(217, 119, 6, 0); }
}

/* ==========================================================================
   Hero & Interactive Gateway Card
   ========================================================================== */
.hero-section {
    padding: 3.5rem 0 4.5rem;
    position: relative;
    z-index: 2;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-content {
    max-width: 780px;
    margin-bottom: 2.75rem;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: var(--primary-light);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: var(--radius-full);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    letter-spacing: 0.2px;
}

.hero-title {
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    letter-spacing: -0.02em;
    margin-bottom: 1.2rem;
    font-weight: 800;
    color: var(--text-heading);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text-muted);
    line-height: 1.65;
    max-width: 680px;
    margin: 0 auto;
}

/* The Gateway Card */
.gateway-card {
    width: 100%;
    max-width: 760px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 2.25rem;
    box-shadow: var(--shadow-lg), 0 0 35px rgba(37, 99, 235, 0.05);
    text-align: left;
    position: relative;
    overflow: hidden;
}

.gateway-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-gradient);
}

.card-header {
    margin-bottom: 1.85rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
}

.step-indicator {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.step-badge {
    width: 44px;
    height: 44px;
    background: var(--primary-light);
    border: 1px solid rgba(37, 99, 235, 0.2);
    color: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.card-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 0.15rem;
}

.card-description {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.gateway-form {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-heading);
}

.label-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--text-white);
    font-size: 0.75rem;
    font-weight: 700;
}

.label-hint {
    margin-left: auto;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--success);
}

/* ==========================================================================
   Custom State Dropdown Component
   ========================================================================== */
.custom-dropdown {
    position: relative;
    width: 100%;
}

.dropdown-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.15rem;
    background: var(--bg-surface);
    border: 1.5px solid var(--border-medium);
    border-radius: var(--radius-md);
    color: var(--text-main);
    transition: all var(--transition-fast);
    text-align: left;
}

.dropdown-trigger:hover {
    background: #ffffff;
    border-color: var(--primary);
}

.dropdown-trigger:focus-visible, .custom-dropdown.open .dropdown-trigger {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
    background: #ffffff;
}

.selected-state-display {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.state-icon-wrapper {
    width: 36px;
    height: 36px;
    background: var(--primary-light);
    border: 1px solid rgba(37, 99, 235, 0.2);
    color: var(--primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
}

.state-text {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.state-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-heading);
}

.state-tag {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.18rem 0.55rem;
    border-radius: var(--radius-full);
}

.state-tag.active-tag {
    background: var(--success-light);
    color: var(--success);
    border: 1px solid rgba(5, 150, 105, 0.25);
}

.dropdown-arrow {
    color: var(--text-dim);
    font-size: 0.9rem;
    transition: transform var(--transition-fast);
}

.custom-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
    color: var(--primary);
}

/* Dropdown Menu Container */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1.5px solid var(--border-medium);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg), 0 10px 30px rgba(15, 23, 42, 0.12);
    z-index: 150;
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: fadeInSlide 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInSlide {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.custom-dropdown.open .dropdown-menu {
    display: flex;
}

.dropdown-search-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--border-subtle);
    background: var(--bg-surface);
}

.dropdown-search-box i {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.dropdown-search-box input {
    width: 100%;
    background: none;
    border: none;
    outline: none;
    color: var(--text-heading);
    font-size: 0.92rem;
}

.dropdown-search-box input::placeholder {
    color: var(--text-dim);
}

.dropdown-options-list {
    max-height: 250px;
    overflow-y: auto;
    padding: 0.4rem 0;
}

/* Dropdown Scrollbar */
.dropdown-options-list::-webkit-scrollbar, .constituency-container::-webkit-scrollbar {
    width: 6px;
}

.dropdown-options-list::-webkit-scrollbar-track, .constituency-container::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.dropdown-options-list::-webkit-scrollbar-thumb, .constituency-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.dropdown-options-list::-webkit-scrollbar-thumb:hover, .constituency-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.state-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.15rem;
    transition: background var(--transition-fast);
    cursor: pointer;
}

.state-option.active-state {
    background: #eff6ff;
    cursor: pointer;
}

.state-option.active-state:hover {
    background: #dbeafe;
}

.state-option.disabled-state {
    opacity: 0.65;
    cursor: not-allowed;
}

.state-option.disabled-state:hover {
    background: #f8fafc;
}

.state-option-left {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.state-option-name {
    font-size: 0.94rem;
    font-weight: 500;
    color: var(--text-main);
}

.state-option.active-state .state-option-name {
    color: var(--primary);
    font-weight: 700;
}

.state-option-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.18rem 0.5rem;
    border-radius: var(--radius-full);
}

.state-option-badge.live {
    background: var(--success-light);
    color: var(--success);
}

.state-option-badge.upcoming {
    background: #e2e8f0;
    color: var(--text-muted);
}

/* ==========================================================================
   Role Selector Group (MP vs MLA)
   ========================================================================== */
.role-selector-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.role-btn {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1.1rem 1.25rem;
    background: var(--bg-surface);
    border: 1.5px solid var(--border-medium);
    border-radius: var(--radius-md);
    color: var(--text-main);
    position: relative;
    transition: all var(--transition-fast);
    text-align: left;
}

.role-btn:hover {
    background: #ffffff;
    border-color: rgba(37, 99, 235, 0.5);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.role-btn.active {
    background: #eff6ff;
    border-color: var(--primary);
    box-shadow: 0 0 16px rgba(37, 99, 235, 0.12);
}

.role-btn.active::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 0.75rem;
    color: var(--primary);
}

.role-btn-icon {
    width: 42px;
    height: 42px;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--text-dim);
    transition: all var(--transition-fast);
}

.role-btn.active .role-btn-icon {
    background: var(--primary-light);
    color: var(--primary);
    border: 1px solid rgba(37, 99, 235, 0.25);
}

.role-btn-content {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.role-btn-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-heading);
}

.role-btn-subtitle {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.role-badge {
    position: absolute;
    bottom: 8px;
    right: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-dim);
    background: #e2e8f0;
    padding: 0.1rem 0.45rem;
    border-radius: 4px;
}

.role-btn.active .role-badge {
    color: var(--primary);
    background: var(--primary-light);
}

/* ==========================================================================
   Constituency Search & Selector
   ========================================================================== */
.constituency-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.counter-badge {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-surface-light);
    border: 1px solid var(--border-subtle);
    padding: 0.2rem 0.65rem;
    border-radius: var(--radius-full);
}

.search-input-wrapper {
    position: relative;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 1.15rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
    font-size: 0.95rem;
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 0.85rem 2.8rem 0.85rem 2.85rem;
    background: var(--bg-surface);
    border: 1.5px solid var(--border-medium);
    border-radius: var(--radius-md);
    color: var(--text-heading);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.search-input:focus {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
    outline: none;
}

.search-input::placeholder {
    color: var(--text-dim);
}

.clear-search-btn {
    position: absolute;
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
    font-size: 0.9rem;
    padding: 0.35rem;
    border-radius: 50%;
    transition: color var(--transition-fast);
}

.clear-search-btn:hover {
    color: var(--text-heading);
}

/* Constituency Container & Grid */
.constituency-container {
    max-height: 280px;
    overflow-y: auto;
    background: var(--bg-surface);
    border: 1.5px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    position: relative;
    min-height: 140px;
}

.constituency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.6rem;
}

.constituency-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0.9rem;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
    transition: all var(--transition-fast);
    user-select: none;
}

.constituency-item:hover {
    background: #ffffff;
    border-color: rgba(37, 99, 235, 0.4);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
    transform: translateY(-1px);
}

.constituency-item.selected {
    background: #eff6ff;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.15);
}

.constituency-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    overflow: hidden;
}

.constituency-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-heading);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
}

.constituency-rep {
    font-size: 0.74rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.constituency-meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-left: 0.5rem;
    flex-shrink: 0;
}

.portal-dot-active {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--success);
    box-shadow: 0 0 6px var(--success);
}

.constituency-item.selected .constituency-check {
    color: var(--primary);
    font-size: 0.85rem;
}

/* Loading & Empty States */
.loading-spinner-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2.5rem 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(37, 99, 235, 0.15);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.no-results-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2.5rem 1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    text-align: center;
}

.no-results-message i {
    font-size: 2rem;
    color: var(--text-dim);
}

/* ==========================================================================
   Action Footer & Connect Button
   ========================================================================== */
.action-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-subtle);
    flex-wrap: wrap;
}

.selection-summary {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.summary-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-dim);
    font-weight: 700;
}

.summary-pills {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.summary-pill {
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    color: var(--text-muted);
}

.summary-pill.highlight {
    background: var(--primary-light);
    color: var(--primary);
    border: 1px solid rgba(37, 99, 235, 0.3);
}

.connect-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.95rem 2.25rem;
    background: var(--accent-btn-gradient);
    color: var(--text-white);
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    min-width: 170px;
}

.connect-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
    filter: brightness(1.05);
}

.connect-btn:not(:disabled):active {
    transform: translateY(0);
}

.connect-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
    background: #e2e8f0;
    color: var(--text-dim);
}

.btn-icon {
    font-size: 0.95rem;
    transition: transform var(--transition-fast);
}

.connect-btn:not(:disabled):hover .btn-icon {
    transform: translateX(4px);
}

.btn-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ==========================================================================
   How It Works Section
   ========================================================================== */
.how-it-works-section {
    padding: 5rem 0;
    border-top: 1px solid var(--border-subtle);
    background: #ffffff;
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 3rem;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.9rem;
    background: var(--primary-light);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: var(--radius-full);
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    margin-bottom: 0.75rem;
    color: var(--text-heading);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.step-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    text-align: left;
    position: relative;
    transition: all var(--transition-normal);
}

.step-card:hover {
    background: #ffffff;
    transform: translateY(-4px);
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: var(--shadow-md);
}

.step-icon-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.step-icon-box i {
    font-size: 1.75rem;
    color: var(--primary);
}

.step-number {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: #cbd5e1;
}

.step-title {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
    color: var(--text-heading);
}

.step-desc {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

/* ==========================================================================
   Stats Counter Section
   ========================================================================== */
.stats-section {
    padding: 3.5rem 0;
    background: #f8fafc;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    text-align: center;
}

.stat-card {
    padding: 1.25rem;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--text-heading);
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.92rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* ==========================================================================
   Coming Soon / Representative In-Development Modal
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    animation: modalFadeIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.modal-card {
    width: 100%;
    max-width: 520px;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 2.25rem;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.25);
    position: relative;
    text-align: center;
    animation: modalSlideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalSlideUp {
    from { transform: translateY(24px) scale(0.96); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.modal-close-btn {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.modal-close-btn:hover {
    background: #e2e8f0;
    color: var(--text-heading);
}

.modal-icon-container {
    position: relative;
    width: 68px;
    height: 68px;
    margin: 0 auto 1.25rem;
}

.modal-icon-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(217, 119, 6, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulseGlowAmber 2s infinite;
}

.modal-icon {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--warning-light);
    border: 1px solid rgba(217, 119, 6, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--warning);
}

.modal-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.25rem 0.75rem;
    background: var(--warning-light);
    border: 1px solid rgba(217, 119, 6, 0.25);
    border-radius: var(--radius-full);
    color: var(--warning);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.modal-title {
    font-size: 1.6rem;
    color: var(--text-heading);
    margin-bottom: 1.25rem;
}

/* Representative Spotlight Box in Modal */
.representative-spotlight {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-surface);
    border: 1.5px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1rem 1.15rem;
    text-align: left;
    margin-bottom: 1.25rem;
}

.rep-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--primary-light);
    border: 1px solid rgba(37, 99, 235, 0.2);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.rep-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    overflow: hidden;
}

.rep-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-dim);
    font-weight: 700;
}

.rep-name {
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--text-heading);
    text-transform: uppercase;
    letter-spacing: 0.2px;
}

.rep-meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: var(--primary);
    font-weight: 600;
    flex-wrap: wrap;
}

.rep-dot {
    color: var(--text-dim);
}

.modal-message {
    font-size: 0.94rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 1.25rem;
    text-align: left;
}

.modal-message strong {
    color: var(--text-heading);
}

.modal-features-hint {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0.85rem 1rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-bottom: 1.5rem;
}

.hint-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.hint-item i {
    color: var(--success);
    font-size: 0.75rem;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.modal-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.9rem 1.5rem;
    background: var(--accent-btn-gradient);
    color: var(--text-white);
    font-size: 0.98rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
    transition: all var(--transition-fast);
}

.modal-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

/* ==========================================================================
   Footer Styles (Dark Theme Theme Contrast)
   ========================================================================== */
.main-footer {
    background: #090e1a;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 4rem 0 2rem;
    color: #94a3b8;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 340px;
}

.footer-logo {
    height: 42px;
    width: auto;
    object-fit: contain;
    margin-bottom: 1rem;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.footer-tagline {
    font-size: 0.92rem;
    color: #94a3b8;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 4rem;
    flex-wrap: wrap;
}

.footer-col-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-col a {
    font-size: 0.88rem;
    color: #94a3b8;
    transition: color var(--transition-fast);
}

.footer-col a:hover {
    color: #60a5fa;
}

.footer-link-active {
    font-size: 0.88rem;
    color: #34d399;
    font-weight: 700;
}

.footer-link-muted {
    font-size: 0.88rem;
    color: #64748b;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 2rem;
}

.footer-bottom-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.86rem;
    color: #64748b;
}

.footer-secure-note {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #94a3b8;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0 3.5rem;
    }

    .gateway-card {
        padding: 1.5rem 1.25rem;
    }

    .role-selector-group {
        grid-template-columns: 1fr;
    }

    .action-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .connect-btn {
        width: 100%;
    }

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

    .footer-links {
        gap: 2rem;
    }
}
