/* 
   Election Assistant - Design System
   Modern, accessible, and interactive UI with a premium dark theme.
*/

:root {
    /* Classic Majestic Palette */
    --primary: #FF9933; /* Saffron */
    --primary-hover: #E68A2E;
    --secondary: #138808; /* Green */
    --secondary-hover: #107707;
    --bg-dark: #020c1b; /* Deep Majestic Navy */
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-glass: rgba(2, 12, 27, 0.9);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-gradient: linear-gradient(135deg, #FF9933 0%, #D47A22 100%);
    --danger: #ef4444;
    --success: #22c55e;
    
    /* Elegant Spacing & Borders */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 30px 60px rgba(0, 0, 0, 0.5);
    
    /* Animation Speeds */
    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    background: rgba(2, 12, 27, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    pointer-events: auto;
    animation: toastSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    min-width: 280px;
}

.toast.info { border-left: 4px solid var(--primary); }
.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--danger); }

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

/* ═══════════════════════════════════════ */
/* Base Styles */
/* ═══════════════════════════════════════ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Inter', 'Noto Sans Devanagari', 'Noto Sans Tamil', 'Noto Sans Telugu', sans-serif;
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(255, 153, 51, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(19, 136, 8, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(0, 51, 102, 0.15) 0%, transparent 50%);
    background-attachment: fixed;
    background-size: 200% 200%;
    animation: gradientMove 15s ease infinite;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ═══════════════════════════════════════ */
/* Layout & Transitions */
/* ═══════════════════════════════════════ */

.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 160px 20px 80px;
    min-height: calc(100vh - 80px);
}

.page {
    display: none;
}

.page.active {
    display: block;
}

/* ═══════════════════════════════════════ */
/* Government Official Navbar */
/* ═══════════════════════════════════════ */

.top-bar {
    background: #001229;
    color: #ffffff;
    height: 36px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    border-top: 5px solid;
    border-image: linear-gradient(to right, #ff9933 33%, #ffffff 33%, #ffffff 66%, #138808 66%) 1;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1100;
}

.top-bar-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
}

.top-bar-right {
    display: flex;
    gap: 20px;
    align-items: center;
}

.top-bar-right a {
    color: #ffffff;
    text-decoration: none;
    opacity: 0.9;
}

.top-bar-right a:hover {
    opacity: 1;
    text-decoration: underline;
}

#google_translate_element {
    display: flex;
    align-items: center;
    height: 24px;
    overflow: hidden;
}

.goog-te-gadget {
    font-family: inherit !important;
    font-size: 0px !important; /* Hide 'Powered by' text by shrinking it */
    color: transparent !important;
    display: flex;
    align-items: center;
}

.goog-te-gadget .goog-te-combo {
    margin: 0 !important;
    background: #ffffff !important;
    color: #333333 !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 2px 4px;
    outline: none;
    cursor: pointer;
    font-size: 0.75rem !important;
    height: 24px;
}

.goog-te-gadget span {
    display: none !important;
}

.goog-logo-link {
    display: none !important;
}

/* Hide the top banner from Google Translate */
.goog-te-banner-frame.skiptranslate, .goog-te-banner-frame {
    display: none !important;
}
body {
    top: 0px !important;
}

.font-resizer button {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0 6px;
    cursor: pointer;
    font-size: 0.7rem;
    margin-left: 2px;
}

.navbar {
    position: fixed;
    top: 36px;
    left: 0;
    width: 100%;
    height: 80px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo-emblem {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flag-icon-wave {
    height: 42px;
    width: auto;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.1));
    transform-origin: left center;
}

@keyframes flagWave {
    0%, 100% { transform: rotate(0deg) skewY(0deg); }
    25% { transform: rotate(1.5deg) skewY(1deg); }
    75% { transform: rotate(-1.5deg) skewY(-1deg); }
}

.logo-stack {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #ffffff;
    line-height: 1;
}

.logo-sub {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 10px;
    align-items: center;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    opacity: 0.8;
}

.nav-link:hover, .nav-link.active {
    opacity: 1;
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary);
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* ═══════════════════════════════════════ */
/* Buttons */
/* ═══════════════════════════════════════ */

.btn {
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    font-size: 0.95rem;
    white-space: nowrap;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
}

.user-pic {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 153, 51, 0.3), inset 0 1px 0 rgba(255,255,255,0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: linear-gradient(to bottom right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
    transform: rotate(45deg) translate(-50%, -50%);
    transition: all 0.5s ease;
    opacity: 0;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #FFAE5C 0%, #E68A2E 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 153, 51, 0.5), inset 0 1px 0 rgba(255,255,255,0.3);
}

.btn-primary:hover::after {
    opacity: 1;
    transform: rotate(45deg) translate(50%, 50%);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* ═══════════════════════════════════════ */
/* Hero Section */
/* ═══════════════════════════════════════ */

.hero {
    position: relative;
    padding: 100px 0;
    text-align: center;
}

.hero-content {
    animation: fadeInScale 1s ease-out forwards;
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.hero-badge {
    display: inline-block;
    padding: 8px 24px;
    background: rgba(255, 153, 51, 0.1);
    border: 1px solid rgba(255, 153, 51, 0.3);
    border-radius: var(--radius-full);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 32px;
    text-transform: uppercase;
}

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

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
    color: #ffffff;
    text-shadow: 0 10px 40px rgba(0,0,0,0.6);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.8rem;
    }
    .navbar {
        height: auto;
        padding: 15px 0;
    }
}

.gradient-text {
    background: linear-gradient(90deg, #FF9933 0%, #FFE5B4 50%, #138808 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #ffffff;
    display: inline-block;
    padding: 0 5px;
    filter: drop-shadow(0 4px 12px rgba(255, 153, 51, 0.2));
}

.page-header {
    text-align: center;
    margin-bottom: 60px;
}

.page-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 80px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 64px;
    padding-top: 64px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 8px;
}

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

/* Page Containers */
.chat-container, .timeline-container, .guides-container, .lookup-container {
    max-width: 1000px;
    margin: 0 auto;
    animation: fadeInUp 0.5s ease-out;
}

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

/* ═══════════════════════════════════════ */
/* Cards & Grids */
/* ═══════════════════════════════════════ */

.features-section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #FF9933, #FFFFFF, #138808);
    border-radius: var(--radius-full);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 153, 51, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 153, 51, 0.2);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(255, 153, 51, 0.15), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255, 153, 51, 0.15);
    color: #FF9933;
    box-shadow: 0 0 20px rgba(255, 153, 51, 0.2);
}

.feature-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #ffffff;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ═══════════════════════════════════════
   MAPS - PREMIUM LEAFLET STYLING
   ═══════════════════════════════════════ */
.leaflet-container {
    background: #0a0e27 !important;
    font-family: 'Inter', sans-serif !important;
}

/* Glassmorphic Popups */
.leaflet-popup-content-wrapper {
    background: rgba(26, 31, 58, 0.95) !important;
    backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    color: #fff !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

.leaflet-popup-tip {
    background: rgba(26, 31, 58, 0.95) !important;
}

.leaflet-popup-content {
    margin: 15px !important;
    line-height: 1.6 !important;
}

.leaflet-popup-content h4 {
    color: var(--primary-saffron) !important;
    font-family: 'Playfair Display', serif !important;
    margin-bottom: 8px !important;
    font-size: 1.1rem !important;
}

.leaflet-popup-content p {
    color: rgba(255, 255, 255, 0.8) !important;
    margin: 4px 0 !important;
    font-size: 0.9rem !important;
}

.leaflet-popup-content .directions-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 8px 12px;
    background: rgba(19, 136, 8, 0.2);
    border: 1px solid var(--primary-green);
    color: var(--primary-green) !important;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.leaflet-popup-content .directions-link:hover {
    background: var(--primary-green);
    color: #fff !important;
}

/* Custom Marker Styling */
.booth-marker-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-saffron);
    border: 2px solid #fff;
    border-radius: 50%;
    color: #fff;
    font-size: 14px;
    box-shadow: 0 0 15px rgba(255, 153, 51, 0.5);
}

.user-marker-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #4285F4;
    border: 2px solid #fff;
    border-radius: 50%;
    color: #fff;
    font-size: 14px;
    box-shadow: 0 0 15px rgba(66, 133, 244, 0.5);
}

/* Map Details Overlay */
.map-details-overlay {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(26, 31, 58, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 12px;
    max-width: 250px;
    display: none;
    animation: slideUp 0.4s ease;
}

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

.map-details-overlay h5 {
    margin: 0 0 5px 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.map-details-overlay p {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
}

/* ═══════════════════════════════════════ */
/* Footer */
/* ═══════════════════════════════════════ */

.footer {
    padding: 80px 0 40px;
    background: linear-gradient(to bottom, rgba(10, 14, 39, 0.8), #050714);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, #FF9933 33.33%, #FFFFFF 33.33%, #FFFFFF 66.66%, #138808 66.66%);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-col-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.5rem;
    color: #ffffff;
}

.footer-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.footer-socials a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition-normal);
}

.footer-socials a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-col h4 {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 24px;
    position: relative;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: #ffffff;
    padding-left: 5px;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

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

.footer-tech {
    font-size: 0.85rem;
    font-weight: 600;
    background: linear-gradient(90deg, #FF9933, #FFFFFF, #138808);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ═══════════════════════════════════════ */
/* Page Layouts & Components */
/* ═══════════════════════════════════════ */

/* Timeline Section */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 31px;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, #FF9933, #FFFFFF, #138808);
    opacity: 0.3;
}

.timeline-item {
    display: flex;
    gap: 24px;
    margin-bottom: 48px;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.timeline-icon {
    width: 64px;
    height: 64px;
    background: var(--bg-card);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    z-index: 1;
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 24px;
    border-radius: var(--radius-lg);
    flex-grow: 1;
    transition: var(--transition-normal);
}

.timeline-content:hover {
    border-color: rgba(99, 102, 241, 0.2);
    transform: translateX(5px);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.timeline-phase {
    color: #FF9933;
    font-size: 1.1rem;
    font-weight: 700;
}

.timeline-duration {
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
}

.timeline-duration.live-date {
    background: rgba(255, 153, 51, 0.2);
    color: #FF9933;
    border: 1px solid rgba(255, 153, 51, 0.4);
    font-weight: 700;
    box-shadow: 0 0 15px rgba(255, 153, 51, 0.15);
}

.timeline-icon.pulse-icon {
    border-color: #FF9933;
    animation: iconPulse 2s infinite;
}

@keyframes iconPulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 153, 51, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255, 153, 51, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 153, 51, 0); }
}

.timeline-content.live-content {
    border-left: 4px solid #FF9933;
    background: linear-gradient(to right, rgba(255, 153, 51, 0.05), transparent);
}

/* Lookup Section Enhancements */
.lookup-search {
    margin: 40px 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.lookup-input-wrapper {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 24px;
    border-radius: var(--radius-full);
    gap: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.lookup-input-wrapper:focus-within {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 30px rgba(255, 153, 51, 0.2);
    transform: translateY(-2px);
}

.lookup-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
}

.lookup-input {
    flex-grow: 1;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.1rem;
    outline: none;
    padding: 8px 0;
}

.lookup-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.lookup-results {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.results-header {
    text-align: center;
    margin-bottom: 40px;
}

.results-header h3 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: #ffffff;
}

.results-header p {
    color: var(--text-secondary);
}

.reps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 24px;
}

.rep-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 32px;
    display: flex;
    gap: 32px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.rep-card:hover {
    transform: scale(1.02);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.rep-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-gradient);
    opacity: 0.6;
}

.rep-photo, .rep-photo-placeholder {
    width: 140px;
    height: 140px;
    border-radius: var(--radius-md);
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.rep-photo-placeholder {
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.rep-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

.rep-office {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 8px;
}

.rep-name {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 6px;
    color: #ffffff;
}

.rep-party {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    display: inline-block;
    padding: 2px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-full);
}

.rep-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #ffffff;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.contact-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-color: var(--primary);
}

/* Advanced Research Section */
.advanced-research-section {
    margin-top: 60px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.section-desc {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.research-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    gap: 20px;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.research-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.research-icon {
    font-size: 2rem;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
}

.research-info h4 {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 4px;
}

.research-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Calendar Section */
.calendar-section {
    margin-top: 80px;
    padding: 60px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.section-subtitle {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 32px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 12px;
}

.calendar-dates {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.calendar-date-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: all 0.3s ease;
}

.calendar-date-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-5px);
    border-color: rgba(255, 153, 51, 0.2);
}

.date-info {
    display: flex;
    gap: 20px;
    align-items: center;
}

.date-badge {
    width: 64px;
    height: 74px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    overflow: hidden;
}

.date-badge .month {
    background: var(--primary);
    width: 100%;
    text-align: center;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 0;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.date-badge .day {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    padding: 8px 0;
}

.date-text h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.date-text p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.8rem;
}

/* Guides Section */
.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.guide-card {
    cursor: pointer;
    text-align: left;
}

.guide-meta {
    margin-top: 20px;
    font-size: 0.8rem;
    color: #138808;
    font-weight: 600;
    text-transform: uppercase;
}

.guide-header-full {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-bottom: 48px;
    text-align: left;
}

.guide-icon-large {
    font-size: 3rem;
    padding: 20px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
}

.guide-step {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
    text-align: left;
}

.step-number {
    width: 40px;
    height: 40px;
    background: #003366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

/* Lookup Results */
.lookup-results {
    margin-top: 48px;
}

.rep-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 32px;
    display: flex;
    gap: 32px;
    margin-bottom: 24px;
    align-items: center;
}

.rep-photo {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-md);
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.1);
}

/* Chat Enhancements */
.chat-container {
    height: calc(100vh - 250px);
    max-height: 850px;
    min-height: 550px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
    border-top: 4px solid var(--primary);
}

.chat-header {
    padding: 20px 32px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.chat-avatar {
    width: 48px;
    height: 48px;
    background: var(--accent-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 8px 20px rgba(255, 153, 51, 0.3);
}

.chat-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.chat-status {
    font-size: 0.75rem;
    color: var(--success);
    display: flex;
    align-items: center;
    gap: 6px;
}

.chat-status::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 5px var(--success);
}

.chat-messages {
    flex-grow: 1;
    padding: 32px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.message-wrapper {
    display: flex;
    gap: 14px;
    margin-bottom: 24px;
    width: 100%;
    animation: messageSlide 0.3s ease-out;
}

.user-wrapper {
    justify-content: flex-end;
}

.bot-wrapper {
    justify-content: flex-start;
}

.msg-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 24px; /* Align with bubble top after label */
}

.user-avatar {
    background: var(--accent-gradient);
    box-shadow: 0 4px 12px rgba(255, 153, 51, 0.2);
}

.bot-avatar {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--primary);
}

.message-container {
    max-width: 75%;
    display: flex;
    flex-direction: column;
}

.user-wrapper .message-container {
    align-items: flex-end;
}

.bot-wrapper .message-container {
    align-items: flex-start;
}

.message-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    color: var(--text-secondary);
}

.message {
    padding: 14px 20px;
    line-height: 1.6;
    position: relative;
    border-radius: 12px;
}

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

.message.user {
    background: var(--accent-gradient);
    color: #ffffff;
    border-radius: 20px 20px 4px 20px;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(255, 153, 51, 0.2);
}

.message.bot {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-radius: 20px 20px 20px 4px;
    backdrop-filter: blur(5px);
}

.chat-input-container {
    padding: 24px 32px;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-input-wrapper {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 8px 12px;
    display: flex;
    align-items: flex-end;
    gap: 12px;
    transition: var(--transition-normal);
}

.chat-input-wrapper:focus-within {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 20px rgba(255, 153, 51, 0.15);
}

.chat-input {
    flex-grow: 1;
    background: transparent;
    border: none;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.95rem;
    padding: 10px 4px;
    resize: none;
    outline: none;
    max-height: 150px;
}

.chat-input-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 4px;
}

.chat-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-normal);
}

.chat-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.chat-action-btn.recording {
    background: var(--danger);
    color: white;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.chat-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-normal);
    flex-shrink: 0;
    margin-bottom: 4px;
}

.chat-send-btn:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
}

.chat-send-btn:not(:disabled):hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

.chat-disclaimer {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: center;
}

.chat-disclaimer a {
    color: var(--primary);
    text-decoration: none;
}

.chat-disclaimer a:hover {
    text-decoration: underline;
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 4px 8px;
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    background: var(--text-secondary);
    border-radius: 50%;
    animation: typing 1s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 100% { transform: translateY(0); opacity: 0.4; }
    50% { transform: translateY(-4px); opacity: 1; }
}

.chat-suggestions {
    margin-bottom: 20px;
}

.suggestion-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    display: block;
}

.suggestion-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chip:hover {
    background: rgba(255, 153, 51, 0.1);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.chat-welcome {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-lg);
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

.welcome-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.chat-welcome h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: #ffffff;
}

.chat-welcome p {
    color: var(--text-secondary);
}

/* Maps Section */
.maps-wrapper {
    background: var(--bg-card);
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.map-search {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.map-search input {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 12px 20px;
    border-radius: var(--radius-md);
}

/* Video Gallery */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.video-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-normal);
}

.video-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.video-info {
    padding: 20px;
}

.video-info h4 {
    margin-bottom: 8px;
    color: var(--text-primary);
}

.video-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ═══════════════════════════════════════ */
/* FAQ Section Styles */
/* ═══════════════════════════════════════ */

.faq-container {
    max-width: 800px;
    margin: 40px auto;
}

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    overflow: hidden;
    transition: var(--transition-normal);
}

.faq-question {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
}

.faq-icon {
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.faq-answer {
    max-height: 0;
    padding: 0 24px;
    overflow: hidden;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.faq-item.active {
    background: rgba(255, 255, 255, 0.06);
    border-color: #FF9933; /* Saffron highlight */
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-bottom: 20px;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* Video Gallery Section - Enhanced Resolution Scaling */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); /* Increased from 350px to force 720p/1080p streams */
    gap: 40px;
    margin-top: 50px;
}

.video-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.video-card:hover {
    transform: translateY(-15px) scale(1.02);
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--primary);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.video-frame-wrapper {
    position: relative;
    padding-top: 56.25%; /* Perfect 16:9 Aspect Ratio */
    overflow: hidden;
    background: #000;
}

.video-frame-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    image-rendering: -webkit-optimize-contrast; /* Sharpening for some browsers */
}

.video-frame-wrapper::after {
    content: 'HD';
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    letter-spacing: 1px;
    pointer-events: none;
    z-index: 5;
}

.video-info {
    padding: 24px;
}

.video-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary-gradient);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 50px;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

/* Play Overlay for HD Previews */
.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    transition: background 0.3s ease;
}

.video-card:hover .play-overlay {
    background: rgba(0, 0, 0, 0.1);
}

.play-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    padding-left: 5px; /* Visual centering of triangle */
    box-shadow: 0 10px 20px rgba(255, 153, 51, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.video-card:hover .play-icon {
    transform: scale(1.15);
    box-shadow: 0 15px 30px rgba(255, 153, 51, 0.6);
}

.video-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* ═══════════════════════════════════════ */
/* Global Premium Preloader */
/* ═══════════════════════════════════════ */

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #020c1b;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.8s cubic-bezier(0.8, 0, 0.2, 1), visibility 0.8s;
    overflow: hidden;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.05);
}

.loader-bg-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.loader-blob {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    animation: drift 10s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.saffron-blob {
    background: #FF9933;
    top: -200px;
    left: -100px;
}

.green-blob {
    background: #138808;
    bottom: -200px;
    right: -100px;
    animation-delay: -5s;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

.loader-glass {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: floatCard 4s ease-in-out infinite;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.loader-rings {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
}

.ring-saffron {
    width: 120px;
    height: 120px;
    border-top: 2px solid #FF9933;
    border-right: 2px solid rgba(255, 153, 51, 0.2);
    animation: spinRing 2s linear infinite;
}

.ring-white {
    width: 90px;
    height: 90px;
    border-bottom: 2px solid #FFFFFF;
    border-left: 2px solid rgba(255, 255, 255, 0.2);
    animation: spinRing 1.5s linear infinite reverse;
}

.ring-green {
    width: 60px;
    height: 60px;
    border-top: 2px solid #138808;
    border-left: 2px solid rgba(19, 136, 8, 0.2);
    animation: spinRing 1s linear infinite;
}

@keyframes spinRing {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.core-orb {
    font-size: 1.8rem;
    animation: pulseOrb 2s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

@keyframes pulseOrb {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; }
}

.loader-typography {
    text-align: center;
}

.loader-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 4px;
    margin-bottom: 15px;
    background: linear-gradient(90deg, #FF9933, #FFFFFF, #138808);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.9;
}

.loader-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.status-bar-container {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.status-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #FF9933, #FFFFFF, #138808);
    border-radius: 4px;
    animation: fillBar 1.5s ease-in-out forwards;
}

@keyframes fillBar {
    0% { width: 0%; }
    50% { width: 60%; }
    100% { width: 100%; }
}

.status-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
    animation: pulseText 1.5s ease-in-out infinite alternate;
}

@keyframes pulseText {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* ═══════════════════════════════════════
   AI CHAT INTERFACE - PREMIUM
   ═══════════════════════════════════════ */
.chat-toggle-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    padding: 14px 28px;
    background: var(--primary-gradient);
    border: none;
    border-radius: var(--radius-full);
    color: white;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(255, 153, 51, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chat-toggle-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(255, 153, 51, 0.6);
}

.toggle-icon { font-size: 1.4rem; }
.toggle-text { font-size: 1rem; letter-spacing: 0.5px; }

.chat-overlay {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 420px;
    height: 650px;
    max-height: calc(100vh - 150px);
    z-index: 1000;
    display: none;
    animation: chatSlideIn 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

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

.chat-window {
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.chat-header {
    padding: 24px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bot-avatar-small {
    width: 40px;
    height: 40px;
    background: rgba(255, 153, 51, 0.1);
    border: 1px solid var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.chat-header h3 {
    font-size: 1.1rem;
    margin: 0;
    color: white;
}

.chat-status {
    font-size: 0.75rem;
    color: var(--success);
    font-weight: 500;
}

.chat-header-actions button {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    margin-left: 10px;
    transition: color 0.3s;
}

.chat-header-actions button:hover { color: white; }

.chat-messages {
    flex-grow: 1;
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}

.chat-input-area {
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 12px;
}

.chat-input-wrapper {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    padding: 0 12px;
}

#chat-input {
    flex-grow: 1;
    background: transparent;
    border: none;
    color: white;
    padding: 12px 8px;
    outline: none;
    resize: none;
    max-height: 100px;
    font-family: inherit;
}

.voice-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
}

.send-btn {
    width: 48px;
    height: 48px;
    background: var(--primary-gradient);
    border: none;
    border-radius: 14px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--text-secondary);
}

.chat-welcome { text-align: center; padding: 20px 0; }
.welcome-icon { font-size: 3rem; margin-bottom: 12px; display: block; }
.chat-suggestions { margin-top: 20px; }
.suggestion-label { font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 10px; display: block; }
.suggestion-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s;
}
.chip:hover { background: rgba(255, 153, 51, 0.1); color: var(--primary); border-color: var(--primary); }

/* ═══════════════════════════════════════
   NEWS TICKER - PREMIUM
   ═══════════════════════════════════════ */
.news-ticker {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    height: 40px;
    overflow: hidden;
    position: fixed;
    top: 116px; /* Below Top-Bar (36px) + Navbar (80px) */
    left: 0;
    width: 100%;
    z-index: 900;
}

.ticker-label {
    background: #e11d48; /* Red urgency color */
    color: white;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    z-index: 2;
    box-shadow: 10px 0 20px rgba(0,0,0,0.3);
}

.ticker-dot {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    margin-right: 10px;
    animation: pulseTicker 1s infinite alternate;
}

@keyframes pulseTicker {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

.ticker-content {
    flex-grow: 1;
    overflow: hidden;
    white-space: nowrap;
}

.ticker-track {
    display: inline-block;
    padding-left: 100%;
    animation: tickerMove 65s linear infinite;
}

.ticker-track span {
    display: inline-block;
    padding: 0 40px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    font-weight: 500;
}

@keyframes tickerMove {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* ═══════════════════════════════════════
   VOTER PLEDGE & CERTIFICATE - PREMIUM
   ═══════════════════════════════════════ */
.pledge-container {
    max-width: 900px;
    margin: 0 auto;
}

.pledge-form-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    backdrop-filter: blur(10px);
}

.pledge-icon { font-size: 4rem; margin-bottom: 20px; }

.pledge-input-group {
    margin: 30px 0;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.pledge-input-group label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-weight: 600;
}

.pledge-input-group input {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: white;
    font-size: 1.1rem;
    text-align: center;
}

/* Certificate Frame */
.certificate-frame {
    background: #fff;
    padding: 15px;
    border-radius: 4px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    position: relative;
    color: #333;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.cert-border {
    position: absolute;
    top: 20px; left: 20px; right: 20px; bottom: 20px;
    border: 6px double #FF9933;
    pointer-events: none;
}

.cert-content {
    border: 2px solid #138808;
    padding: 60px;
    text-align: center;
    background: #fff;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cert-header img { width: 60px; margin-bottom: 10px; }
.cert-header h4 { margin: 0; color: #1a1a1a; letter-spacing: 2px; }
.cert-header p { margin: 0; font-size: 0.8rem; color: #666; }

.cert-body h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #1a1a1a;
    margin: 30px 0 10px 0;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.cert-desc { font-style: italic; color: #666; margin-top: 20px; }

#cert-user-name {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--primary);
    margin: 10px 0;
    text-transform: uppercase;
    text-decoration: underline;
}

.cert-text {
    font-size: 1rem;
    line-height: 1.8;
    color: #444;
    margin: 20px auto;
    max-width: 600px;
}

.cert-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 0.8rem;
    color: #888;
}

/* ═══════════════════════════════════════
   PLEDGE PAGE ENHANCEMENTS
   ═══════════════════════════════════════ */
.pledge-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.stat-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 25px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: var(--transition-fast);
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
}

.stat-icon { font-size: 2rem; }
.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}
.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pledge-extras {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pledge-extras h3 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.right-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.right-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    opacity: 0.5;
}

.right-card:hover {
    background: rgba(15, 23, 42, 0.8);
    border-color: var(--primary);
    transform: translateY(-5px);
}

.right-icon { font-size: 2.5rem; margin-bottom: 15px; }
.right-card h4 { margin-bottom: 10px; color: var(--primary); }
.right-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }

.cert-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-30deg);
    font-size: 6rem;
    opacity: 0.03;
    font-weight: 900;
    white-space: nowrap;
    pointer-events: none;
}

.cert-signature {
    position: absolute;
    bottom: 20px;
    right: 30px;
    font-family: 'Playfair Display', serif;
    font-size: 0.9rem;
    font-style: italic;
    color: rgba(0, 0, 0, 0.4);
    letter-spacing: 0.5px;
}

@media print {
    @page {
        size: A4 landscape;
        margin: 15mm;
    }
    
    body {
        background: #fff !important;
        color: #000 !important;
        margin: 0;
        padding: 0;
    }

    /* Hide everything except the certificate */
    .top-bar, .navbar, .news-ticker, .footer, .btn, .cert-actions, 
    .pledge-form-card, .chat-overlay, .chat-toggle, .page-header,
    .page:not(#page-pledge) {
        display: none !important;
    }

    .main-content {
        padding: 0 !important;
        margin: 0 !important;
        max-width: none !important;
    }

    #page-pledge {
        display: block !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .pledge-container, .pledge-content-wrapper {
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .certificate-display {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .certificate-frame {
        width: 100% !important;
        max-width: none !important;
        height: auto !important;
        min-height: 180mm; /* Close to A4 landscape height */
        margin: 0 !important;
        box-shadow: none !important;
        border: none !important;
        background: #fff !important;
        display: block !important;
    }

    .cert-content {
        height: 170mm !important;
        width: 100% !important;
        border-width: 3px !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .cert-border {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    #cert-user-name {
        color: #ff9933 !important;
        text-decoration: underline !important;
    }
}

.state-search-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.state-search-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
}

.state-selector-wrapper {
    position: relative;
}

.state-select {
    width: 100%;
    padding: 18px 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    transition: var(--transition-fast);
    appearance: none;
}

.state-select:hover, .state-select:focus {
    border-color: var(--primary);
    background: rgba(255, 153, 51, 0.05);
}

.state-select option {
    background-color: #0f172a; /* Solid dark background for options */
    color: #ffffff;
    padding: 10px;
}

.state-selector-wrapper::after {
    content: '▼';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.state-result-container {
    margin-top: 20px;
    animation: fadeIn 0.5s ease-out;
}

.state-schedule-card {
    background: rgba(255, 255, 255, 0.03);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-md);
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.state-schedule-card.no-election {
    border-left-color: var(--text-secondary);
    opacity: 0.8;
}

.state-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 10px;
}

.state-card-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
}

.state-card-badge {
    background: rgba(255, 153, 51, 0.1);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.state-card-body {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.schedule-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.schedule-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

.schedule-value {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
}

.phases-list {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.phase-row {
    background: rgba(255, 255, 255, 0.02);
    padding: 10px 15px;
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.phase-name { font-weight: 600; color: var(--primary); }
.phase-date { color: var(--text-primary); }

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

/* Rep Card Premium Styles */
.rep-card-premium {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-normal);
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
}

.rep-card-premium:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 153, 51, 0.2);
    box-shadow: var(--shadow-md);
}

.rep-card-main {
    display: flex;
    gap: 30px;
    padding: 30px;
}

@media (max-width: 768px) {
    .rep-card-main {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

.rep-photo-container {
    position: relative;
    flex-shrink: 0;
}

.rep-photo-large {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 3px solid rgba(255, 255, 255, 0.1);
}

.rep-photo-placeholder-large {
    width: 180px;
    height: 180px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    border-radius: var(--radius-md);
}

.rep-party-badge {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-gradient);
    color: white;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
}

.rep-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.rep-office-tag {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--primary);
    letter-spacing: 1px;
}

.rep-name-large {
    font-size: 1.8rem;
    font-weight: 800;
    margin: -5px 0 5px 0;
}

.rep-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 10px;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.meta-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.meta-value {
    font-size: 0.95rem;
    color: var(--text-primary);
}

.contact-buttons, .social-buttons {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

.btn-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.btn-icon:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.rep-actions {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.research-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.research-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.link-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.research-btn {
    padding: 10px 20px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-fast);
}

.research-btn.adr {
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.research-btn.prs {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.research-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.no-data {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: italic;
}

