/* ========================================
   GOOGLE MATERIAL DESIGN 3 / PREMIUM THEME
   ========================================
*/
:root {
    /* Google Core Colors */
    --g-blue: #1a73e8;
    --g-blue-hover: #1557b0;
    --g-blue-light: #e8f0fe;
    --g-red: #ea4335;
    --g-red-light: #fce8e6;
    --g-yellow: #fbbc04;
    --g-yellow-light: #fef7e0;
    --g-green: #34a853;
    --g-green-light: #e6f4ea;

    /* Surfaces & Backgrounds */
    --surface: #ffffff;
    --surface-hover: #f8f9fa;
    --bg-default: #f8f9fa;
    --bg-secondary: #f1f3f4;

    /* Typography */
    --text-primary: #202124;
    --text-secondary: #3c4043; /* Darker for WCAG compliance */
    --text-disabled: #5f6368;  /* Darker for WCAG compliance */

    /* Borders & Shadows */
    --border-color: #dadce0;
    --shadow-1: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
    --shadow-2: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 2px 6px 2px rgba(60, 64, 67, 0.15);
    --shadow-3: 0 4px 8px 3px rgba(60, 64, 67, 0.15), 0 1px 3px rgba(60, 64, 67, 0.3);
    --shadow-float: 0 12px 24px rgba(60, 64, 67, 0.15), 0 4px 8px rgba(60, 64, 67, 0.1);

    /* Easing */
    --ease-google: cubic-bezier(0.4, 0.0, 0.2, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Google Sans', 'Roboto Flex', -apple-system, sans-serif;
    background: var(--bg-default);
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    animation: fadeIn 0.3s ease;
}

/* Typography Utilities */
.font-display {
    font-family: 'Google Sans Display', sans-serif;
}

.font-sans {
    font-family: 'Google Sans', sans-serif;
}

.text-balance {
    text-wrap: balance;
}

/* ================= NAV ================= */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    height: 72px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: all 0.3s var(--ease-google);
}

.nav.scrolled {
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Google Sans Display', sans-serif;
    font-weight: 500;
    font-size: 1.375rem;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
    cursor: pointer;
}

/* Google-style multi-color logo icon */
.g-logo-icon {
    width: 32px;
    height: 32px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.g-logo-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    background: conic-gradient(from 180deg at 50% 50%, var(--g-blue) 0deg, var(--g-blue) 90deg, var(--g-red) 90deg, var(--g-red) 180deg, var(--g-yellow) 180deg, var(--g-yellow) 270deg, var(--g-green) 270deg, var(--g-green) 360deg);
    opacity: 0.15;
}

.g-logo-icon span {
    position: relative;
    z-index: 1;
    color: var(--g-blue);
    font-size: 20px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 9999px;
    transition: all 0.2s var(--ease-google);
}

.nav-link:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.nav-link.active {
    color: var(--g-blue);
    background: var(--g-blue-light);
}

/* Language Selector Nav */
.nav-lang-selector {
    position: relative;
    display: inline-block;
}

.nav-lang-btn {
    padding: 8px 16px;
    border-radius: 9999px;
    border: 1px solid var(--border-color);
    background: var(--surface);
    color: var(--text-primary);
    cursor: pointer;
    font-family: 'Google Sans', sans-serif;
    font-size: 0.9375rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s var(--ease-google);
}

.nav-lang-btn:hover {
    background: var(--surface-hover);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 8px 0;
    box-shadow: var(--shadow-float);
    display: none;
    min-width: 160px;
    z-index: 200;
    max-height: 400px;
    overflow-y: auto;
}

.lang-dropdown.show {
    display: block;
    animation: fadeIn 0.2s var(--ease-google);
}

.lang-option {
    display: block;
    padding: 10px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    font-family: 'Google Sans', sans-serif;
    font-size: 0.9375rem;
    transition: background 0.2s;
}

.lang-option:hover,
.lang-option.active {
    background: var(--g-blue-light);
    color: var(--g-blue);
    font-weight: 500;
}

/* ================= LOGIN & FORMS ================= */
.stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
}

.step-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-color);
    transition: all 0.3s var(--ease-google);
}

.step-dot.active {
    background: var(--g-blue);
    width: 32px;
    border-radius: 99px;
}

.m3-input-group {
    margin-bottom: 24px;
    text-align: left;
}

.m3-input-label {
    display: block;
    font-family: 'Google Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.m3-input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    font-family: 'Roboto Flex', sans-serif;
    font-size: 1rem;
    color: var(--text-primary);
    transition: all 0.2s;
    background: var(--surface);
    outline: none;
}

.m3-input:focus {
    border-color: var(--g-blue);
    box-shadow: 0 0 0 3px var(--g-blue-light);
}

.m3-input::placeholder {
    color: var(--text-disabled);
}

.otp-container {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 16px;
}

.otp-input {
    width: 52px;
    height: 60px;
    text-align: center;
    font-size: 1.5rem;
    font-family: 'Google Sans', sans-serif;
    font-weight: 500;
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    background: var(--surface);
    transition: all 0.2s;
    outline: none;
}

.otp-input:focus {
    border-color: var(--g-blue);
    box-shadow: 0 0 0 3px var(--g-blue-light);
}

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

.icon-spin {
    animation: spin 1s linear infinite;
}

/* Google Login Button */
.btn-google {
    width: 100%;
    background: var(--surface);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 12px 24px;
    border-radius: 9999px;
    font-family: 'Google Sans', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s var(--ease-google);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.btn-google:hover {
    background: var(--surface-hover);
    box-shadow: var(--shadow-1);
    border-color: #d2e3fc;
}

.m3-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0;
    color: var(--text-disabled);
    font-size: 0.75rem;
    font-weight: 500;
}

.m3-divider::before,
.m3-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.m3-divider:not(:empty)::before {
    margin-right: 16px;
}

.m3-divider:not(:empty)::after {
    margin-left: 16px;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    80% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

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

    100% {
        transform: translateX(100%);
    }
}

/* Secure Login Button & Pulse */
.btn-secure-login {
    background: var(--g-blue);
    color: #ffffff;
    border: none;
    padding: 10px 24px;
    border-radius: 9999px;
    font-family: 'Google Sans', sans-serif;
    font-weight: 500;
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s var(--ease-google);
    position: relative;
    box-shadow: 0 2px 4px rgba(26, 115, 232, 0.2);
}

.btn-secure-login:hover {
    background: var(--g-blue-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(26, 115, 232, 0.3);
}

.btn-secure-login::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    box-shadow: 0 0 0 0 rgba(26, 115, 232, 0.5);
    animation: pulseBtn 2s infinite;
    pointer-events: none;
}

@keyframes pulseBtn {
    0% {
        box-shadow: 0 0 0 0 rgba(26, 115, 232, 0.6);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(26, 115, 232, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(26, 115, 232, 0);
    }
}

/* ================= VIEWS ================= */
.view {
    display: none;
    opacity: 0;
    animation: fadeIn 0.4s var(--ease-google) forwards;
}

.view.active {
    display: block;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#view-landing {
    background: #000000 !important;
}

/* ================= HERO ================= */
.hero {
    min-height: 100vh;
    padding-top: 72px;
    position: relative;
    overflow: hidden;
    background: var(--surface);
    display: flex;
    flex-direction: column;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: radial-gradient(circle at 15% 50%, rgba(26, 115, 232, 0.04), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(52, 168, 83, 0.04), transparent 25%);
}

.hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 6rem 2rem 4rem;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

@media (max-width: 960px) {
    .hero-inner {
        grid-template-columns: 1fr;
        padding: 4rem 1.5rem;
        text-align: center;
    }

    .nav-links {
        display: none;
    }

    .hero-visual {
        display: none;
    }

    /* Simplified for mobile */
    .hero-btns {
        justify-content: center;
    }
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 9999px;
    background: var(--surface);
    border: 1px solid var(--border-color);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.eyebrow-icon {
    color: var(--g-blue);
    font-size: 18px;
}

.hero-title {
    font-family: 'Google Sans Display', sans-serif;
    font-size: clamp(3rem, 5.5vw, 4.5rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.hero-title strong {
    font-weight: 500;
}

.g-text-gradient {
    background: linear-gradient(90deg, var(--g-blue) 0%, var(--g-red) 33%, var(--g-yellow) 66%, var(--g-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-family: 'Roboto Flex', sans-serif;
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 540px;
    margin-bottom: 2.5rem;
    font-weight: 400;
}

@media (max-width: 960px) {
    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }
}

.hero-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.btn-primary {
    padding: 12px 32px;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    background: var(--g-blue);
    color: white;
    font-family: 'Google Sans', sans-serif;
    font-size: 1.0625rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s var(--ease-google);
}

.btn-primary:hover {
    background: var(--g-blue-hover);
    box-shadow: var(--shadow-2);
    transform: translateY(-1px);
}

.btn-secondary {
    padding: 12px 32px;
    border-radius: 9999px;
    cursor: pointer;
    background: white;
    color: var(--g-blue);
    font-family: 'Google Sans', sans-serif;
    font-size: 1.0625rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s var(--ease-google);
}

.btn-secondary:hover {
    background: var(--g-blue-light);
    border-color: var(--g-blue-light);
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px 8px 12px;
    border-radius: 9999px;
    border: 1px solid var(--border-color);
    background: var(--surface);
    color: var(--text-secondary);
    font-family: 'Google Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s var(--ease-google);
    margin-bottom: 24px;
    width: fit-content;
}

.btn-back:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--text-disabled);
    transform: translateX(-4px);
}

.btn-back .material-symbols-rounded {
    font-size: 20px;
}

/* Hero Visual - Google Material Card Style */
.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.m3-card {
    width: 380px;
    background: var(--surface);
    border-radius: 28px;
    padding: 24px;
    box-shadow: var(--shadow-float);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 10;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-10px)
    }
}

.m3-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.m3-title {
    font-family: 'Google Sans', sans-serif;
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.m3-badge {
    background: var(--g-green-light);
    color: var(--g-green);
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.m3-list-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: 16px;
    margin-bottom: 12px;
    background: var(--surface);
    border: 1px solid var(--border-color);
    transition: all 0.2s var(--ease-google);
}

.m3-list-item.highlight {
    background: var(--g-blue-light);
    border-color: transparent;
}

.m3-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Google Sans', sans-serif;
    font-weight: 500;
    font-size: 1rem;
}

.m3-info {
    flex: 1;
}

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

.m3-sub {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.m3-score {
    font-family: 'Google Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 500;
}

.float-chip {
    position: absolute;
    z-index: 20;
    background: var(--surface);
    border-radius: 9999px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-2);
    border: 1px solid var(--border-color);
    font-family: 'Google Sans', sans-serif;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-primary);
}

.float-chip .material-symbols-rounded {
    font-size: 20px;
}

.fc-1 {
    top: 40px;
    right: -20px;
    animation: float 5s ease-in-out 1s infinite;
    color: var(--g-blue);
}

.fc-2 {
    bottom: 60px;
    left: -30px;
    animation: float 5s ease-in-out 2s infinite reverse;
    color: var(--g-green);
}

/* ================= MARQUEE ================= */
.marquee-section {
    background: var(--surface);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 24px 0;
    overflow: hidden;
}

.marquee-inner {
    display: inline-flex;
    gap: 3rem;
    white-space: nowrap;
    animation: marquee 30s linear infinite;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.lang-item {
    font-family: 'Google Sans', sans-serif;
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-item.highlight {
    color: var(--g-blue);
    font-weight: 500;
}

/* ================= HOW IT WORKS (Google Style) ================= */
.section {
    padding: 8rem 2rem;
    background: var(--bg-default);
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title {
    font-family: 'Google Sans Display', sans-serif;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-desc {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.m3-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media(max-width: 768px) {
    .m3-grid {
        grid-template-columns: 1fr;
    }
}

.m3-feature-card {
    background: var(--surface);
    border-radius: 28px;
    padding: 40px 32px;
    border: 1px solid var(--border-color);
    transition: all 0.3s var(--ease-google);
}

.m3-feature-card:hover {
    box-shadow: var(--shadow-2);
    transform: translateY(-4px);
}

.m3-icon-box {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.m3-feature-title {
    font-family: 'Google Sans', sans-serif;
    font-weight: 500;
    font-size: 1.375rem;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.m3-feature-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ================= PARTIES ================= */
.parties-section {
    background: var(--surface);
}

.m3-party-card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.2s var(--ease-google);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.m3-party-card:hover {
    box-shadow: var(--shadow-2);
    border-color: transparent;
}

.m3-party-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.m3-party-logo {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Google Sans Display', sans-serif;
    font-size: 1.25rem;
    font-weight: 500;
}

.m3-party-name {
    font-family: 'Google Sans', sans-serif;
    font-weight: 500;
    font-size: 1.125rem;
    color: var(--text-primary);
}

.m3-party-meta {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.m3-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.m3-tag {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 500;
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.m3-party-desc {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.5;
    flex: 1;
}

.m3-party-footer {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.m3-btn-text {
    background: none;
    border: none;
    color: var(--g-blue);
    font-family: 'Google Sans', sans-serif;
    font-weight: 500;
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background 0.2s;
}

.m3-btn-text:hover {
    background: var(--g-blue-light);
}

/* ================= TRUST ================= */
.trust-section {
    background: var(--bg-secondary);
    border-radius: 40px;
    margin: 2rem;
    padding: 6rem 2rem;
}

@media(max-width: 768px) {
    .trust-section {
        margin: 0;
        border-radius: 0;
    }
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

@media(max-width: 768px) {
    .trust-grid {
        grid-template-columns: 1fr;
    }
}

.trust-item {
    display: flex;
    gap: 20px;
}

.trust-icon {
    color: var(--g-green);
    font-size: 32px;
    flex-shrink: 0;
}

.trust-content h3 {
    font-family: 'Google Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.trust-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ================= COOL SMILEY FOOTER ================= */
.footer-cool {
    background: #000000;
    color: #ffffff;
    position: relative;
    padding: 8rem 2rem 2rem;
    overflow: hidden;
    font-family: 'Google Sans Display', sans-serif;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
}

.footer-cool-content {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.footer-headline {
    font-size: clamp(3rem, 8vw, 6.5rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-top: 2rem;
}

.footer-headline .indent {
    display: block;
    padding-left: 10%;
}

.smileys-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 350px;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.sm-icon {
    position: absolute;
    will-change: transform;
}

/* Glassmorphic Contact Card */
.glass-contact {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 24px;
    width: max-content;
    max-width: 100%;
    margin-top: auto;
    margin-bottom: 2rem;
}

.glass-contact p {
    font-family: 'Google Sans', sans-serif;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 12px;
}

.social-pills-container {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-pill-new {
    background: #ffffff;
    color: #000000;
    padding: 8px 16px;
    border-radius: 9999px;
    font-family: 'Google Sans', sans-serif;
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.2s ease, background 0.2s ease;
}

.social-pill-new:hover {
    transform: translateY(-2px);
    background: #f1f3f4;
}

.footer-bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-family: 'Google Sans', sans-serif;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom-bar a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-bottom-bar a:hover {
    color: #ffffff;
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.to-top-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Google Sans', sans-serif;
    font-size: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}

.to-top-btn:hover {
    color: #ffffff;
}

@media (max-width: 768px) {
    .footer-headline .indent {
        padding-left: 0;
    }

    .footer-bottom-bar {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .smileys-bg {
        height: 250px;
    }
}

/* Standard Footer (Dark Mode to match Cool Footer) */
.footer-standard {
    background: #000000 !important;
    padding: 4rem 2rem;
    color: #ffffff !important;
    width: 100%;
}

.footer-standard .footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    position: relative;
    z-index: 10;
}

.footer-standard .footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-standard .footer-brand .g-logo-icon {
    margin-bottom: 16px;
}

.footer-standard .footer-brand p {
    color: #ffffff !important;
    font-size: 1rem;
    max-width: 300px;
    line-height: 1.5;
    opacity: 1 !important;
}

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

.footer-standard .footer-col h4 {
    font-family: 'Google Sans', sans-serif;
    font-weight: 500;
    color: #ffffff !important;
    margin-bottom: 16px;
    opacity: 1 !important;
}

.footer-standard .footer-col a {
    display: block;
    color: #ffffff !important;
    text-decoration: none;
    margin-bottom: 12px;
    font-size: 0.9375rem;
    transition: color 0.2s;
    opacity: 1 !important;
}

.footer-standard .footer-col a:hover {
    color: var(--g-blue) !important;
}

.footer-standard .footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ffffff !important;
    font-size: 0.875rem;
    opacity: 1 !important;
}

/* ================= APP VIEWS (Dashboard, Compare, etc.) ================= */
.app-view {
    background: var(--bg-default);
    min-height: 100vh;
    padding: 100px 2rem 4rem;
    max-width: 1280px;
    margin: 0 auto;
}

.app-header {
    margin-bottom: 2rem;
}

.app-title {
    font-family: 'Google Sans Display', sans-serif;
    font-size: 2rem;
    font-weight: 400;
    color: var(--text-primary);
}

.app-subtitle {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-top: 8px;
}

/* M3 Container */
.m3-container {
    background: var(--surface);
    border-radius: 24px;
    border: 1px solid var(--border-color);
    padding: 32px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

/* Compare Table & Filters */
.compare-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.m3-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-secondary);
    padding: 4px;
    border-radius: 9999px;
}

.m3-tab {
    padding: 8px 16px;
    border-radius: 9999px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-family: 'Google Sans', sans-serif;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.m3-tab.active {
    background: var(--surface);
    color: var(--g-blue);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    padding: 8px 16px;
}

.search-box input {
    border: none;
    outline: none;
    background: transparent;
    font-family: 'Google Sans', sans-serif;
    font-size: 0.9375rem;
    color: var(--text-primary);
    width: 160px;
}

.search-box .material-symbols-rounded {
    color: var(--text-disabled);
    font-size: 18px;
}

.m3-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.m3-table th {
    padding: 16px;
    font-family: 'Google Sans', sans-serif;
    font-weight: 500;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border-color);
}

.m3-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9375rem;
    vertical-align: top;
}

.m3-table tr:last-child td {
    border-bottom: none;
}

.status-match {
    color: var(--g-green);
    font-weight: 500;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    line-height: 1.4;
}

.status-partial {
    color: var(--g-yellow);
    font-weight: 500;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    line-height: 1.4;
}

.status-none {
    color: var(--text-disabled);
    display: flex;
    align-items: flex-start;
    gap: 6px;
    line-height: 1.4;
}

.info-icon {
    font-size: 16px;
    color: var(--text-disabled);
    cursor: pointer;
    transition: color 0.2s;
    margin-left: auto;
}

.info-icon:hover {
    color: var(--g-blue);
}

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

/* Dashboard Grid & New Features */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-top: 24px;
}

@media (max-width: 960px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.m3-card-inner {
    background: var(--surface);
    border-radius: 24px;
    border: 1px solid var(--border-color);
    padding: 24px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

/* Trial EVM Booth - Realistic Indian EVM */
.voting-booth {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.indian-evm-unit {
    background: #cfd8dc;
    border: 3px solid #90a4ae;
    border-radius: 8px;
    padding: 16px 12px;
    width: 100%;
    max-width: 360px;
    box-shadow: inset 2px 2px 4px rgba(255, 255, 255, 0.6), inset -2px -2px 4px rgba(0, 0, 0, 0.1), 0 8px 16px rgba(0, 0, 0, 0.1);
}

.evm-top-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 0 8px;
}

.evm-ready-light {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #4caf50;
    box-shadow: 0 0 8px #4caf50;
    border: 1px solid #2e7d32;
    transition: all 0.3s;
}

.evm-label {
    font-family: 'Roboto', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: #546e7a;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.evm-row {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #b0bec5;
    margin-bottom: 6px;
    padding: 6px 8px;
    border-radius: 4px;
    transition: opacity 0.2s;
}

.evm-sno {
    width: 24px;
    font-weight: 700;
    color: #37474f;
    font-size: 0.875rem;
    text-align: center;
    border-right: 1px solid #eceff1;
    padding-right: 8px;
    margin-right: 8px;
}

.evm-party-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.evm-party-name {
    font-weight: 600;
    color: #263238;
    font-size: 0.9375rem;
    line-height: 1.2;
}

.evm-candidate {
    font-size: 0.65rem;
    color: #78909c;
    text-transform: uppercase;
}

.evm-led {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #37474f;
    border: 2px solid #263238;
    margin-right: 16px;
    transition: all 0.2s;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
}

.evm-row.voted .evm-led {
    background: #f44336;
    border-color: #d32f2f;
    box-shadow: 0 0 10px #f44336, inset 0 0 4px rgba(255, 255, 255, 0.5);
}

.evm-blue-btn {
    width: 48px;
    height: 28px;
    background: #1976d2;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    position: relative;
    box-shadow: 0 4px 0 #0d47a1, inset 0 2px 2px rgba(255, 255, 255, 0.2);
    transition: all 0.1s;
    flex-shrink: 0;
}

.evm-blue-btn:active,
.evm-row.voted .evm-blue-btn {
    transform: translateY(4px);
    box-shadow: 0 0 0 #0d47a1, inset 0 2px 2px rgba(255, 255, 255, 0.2);
}

.evm-row.disabled {
    opacity: 0.6;
}

.evm-row.disabled .evm-blue-btn {
    cursor: not-allowed;
}

/* Countdown Widget */
.countdown-widget {
    background: linear-gradient(135deg, var(--g-blue), #0d47a1);
    color: white;
    border-radius: 24px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-2);
}

.countdown-widget::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.countdown-number {
    font-family: 'Google Sans Display', sans-serif;
    font-size: 2.5rem;
    font-weight: 500;
    line-height: 1;
    margin-bottom: 4px;
}

.countdown-label {
    font-size: 0.8125rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

/* Activity Feed */
.activity-item {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.activity-item:last-child {
    margin-bottom: 0;
}

.activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.activity-text {
    font-size: 0.9375rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.activity-time {
    font-size: 0.75rem;
    color: var(--text-disabled);
    margin-top: 4px;
}

/* Quiz / Forms */
.m3-radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.m3-radio-option {
    padding: 16px 20px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s;
    background: var(--surface);
}

.m3-radio-option:hover {
    background: var(--bg-secondary);
}

.m3-radio-option.selected-correct {
    background: var(--g-green-light);
    border-color: var(--g-green);
    color: var(--g-green);
}

.m3-radio-option.selected-wrong {
    background: var(--g-red-light);
    border-color: var(--g-red);
    color: var(--g-red);
}

/* Animation Utility */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s var(--ease-google), transform 0.6s var(--ease-google);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

/* ====================================================
   BULLETPROOF GOOGLE TRANSLATE UI RESET
   Fixes the top banner, body shifting, and font highlights
   ==================================================== */
/* Hide the iframe banner (Covers both legacy and modern Google Translate classes) */
.goog-te-banner-frame,
iframe.goog-te-banner-frame,
.VIpgJd-ZVi9od-ORHb-OEVmcd,
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf,
.skiptranslate>iframe.goog-te-banner-frame {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
}

/* Prevent Google from pushing the page down */
html {
    top: 0 !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body {
    top: 0 !important;
    margin-top: 0 !important;
    position: static !important;
}

html.translated-ltr,
html.translated-rtl,
html.translated-ltr body,
html.translated-rtl body {
    margin-top: 0 !important;
    padding-top: 0 !important;
    top: 0 !important;
}

/* Hide hover tooltips and highlight boxes */
#goog-gt-tt,
.goog-te-balloon-frame {
    display: none !important;
}

.goog-text-highlight {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

/* Fix UI breakdowns caused by Google injecting <font> tags inside flex containers */
font {
    display: contents !important;
}

/* ================= FOOTER ================= */
.footer {
    background: #000000;
    color: #ffffff;
    padding: 64px 0 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer .nav-logo {
    color: #ffffff;
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
}

.footer a:hover {
    color: #ffffff;
}