/* ==========================================
   MOBILE EVM LANDING WEBSITE STYLING SHEET
   ========================================== */

/* --- CSS Variables & Design Tokens --- */
:root {
    --bg-dark: #0A0A0B;
    --bg-card: #121215;
    --bg-alt: #16161C;
    --color-primary: #FFD700; /* Pure Vibrant Gold */
    --color-primary-rgb: 255, 215, 0;
    --color-success: #10B981; /* Electric Emerald Green */
    --color-danger: #EF4444; /* Coral Red */
    --color-text-white: #F3F4F6;
    --color-text-gray: #9CA3AF;
    --color-border: rgba(255, 215, 0, 0.15);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.06);
    --font-heading: 'Outfit', 'Noto Sans Tamil', sans-serif;
    --font-body: 'Inter', 'Noto Sans Tamil', sans-serif;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Top Announcement Bar --- */
.top-announcement-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 36px;
    background: rgba(255, 215, 0, 0.06);
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-primary);
    z-index: 1005;
}

/* --- Document Defaults & Resets --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

html, body {
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100vw;
}

body {
    background-color: var(--bg-dark);
    color: var(--color-text-white);
    font-family: var(--font-body);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

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

/* --- Layout Containers --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    border-left: 1.5px dashed rgba(255, 215, 0, 0.12); /* Sleek vertical layout lines */
    border-right: 1.5px dashed rgba(255, 215, 0, 0.12);
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.01) 0%, transparent 15%, transparent 85%, rgba(255, 215, 0, 0.01) 100%);
}

.section {
    padding: 100px 0;
}

.bg-alt {
    background-color: var(--bg-alt);
}

/* --- Reusable Utility Typography --- */
.text-gold {
    color: var(--color-primary) !important;
}

.accent-text {
    color: var(--color-primary);
}

.gradient-text {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* --- Interactive Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-family: var(--font-body);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

.btn:active {
    transform: scale(0.95) !important;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, #FFA500 100%);
    color: #000;
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.15);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 30px rgba(255, 215, 0, 0.3);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--color-text-white);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.2);
}

/* --- Navigation Header --- */
.header {
    position: fixed;
    top: 0; /* Positioned at very top */
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 11, 0.75);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
}

.nav-container {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 48px;
}

.header-actions {
    margin-left: auto; /* Push to the right */
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-btn {
    padding: 8px 18px !important;
    font-size: 13px !important;
    border-radius: var(--radius-sm) !important;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 22px;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-primary);
}

.nav {
    display: flex;
    align-items: center;
    gap: 16px; /* Slightly tighter gap to allow padding without overflow */
}

.nav a {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-gray);
    padding: 6px 14px;
    border-radius: 30px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    border: 1px solid transparent;
}

.nav a:hover {
    color: var(--color-text-white);
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.nav a:active {
    transform: scale(0.93) !important;
}

/* Active navigation item - Golden Pill style */
.nav a.active-nav {
    background-color: var(--color-primary) !important;
    color: #000 !important;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.25);
    border-color: var(--color-primary);
}

.nav-btn {
    padding: 8px 18px;
    font-size: 13px;
    border-radius: var(--radius-sm);
}

/* --- Hero Section & Layout --- */
.hero-section {
    padding-top: 125px; /* Shifted closer to the fixed header (80px) and global marquee (38px) */
    padding-bottom: 60px;
    display: flex;
    align-items: flex-start; /* Move the content further up to reduce top gap */
    background: radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 10% 80%, rgba(16, 185, 129, 0.02) 0%, transparent 40%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr; /* Copy on left, visual on right */
    gap: 64px;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 215, 0, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.2);
    color: var(--color-primary);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background-color: var(--color-primary);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.hero-title, .hub-title {
    font-size: 42px;
    line-height: 1.15;
    margin-bottom: 24px;
    font-weight: 900;
    font-family: var(--font-heading);
}

.hero-subtitle {
    font-size: 18px;
    color: var(--color-text-gray);
    margin-bottom: 36px;
    max-width: 580px;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.live-counter-card {
    background: var(--glass-bg);
    border: 1.5px solid rgba(255, 215, 0, 0.3); /* Premium gold border */
    padding: 16px 24px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 420px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.06);
}

.counter-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.live-tag {
    font-size: 11px;
    font-weight: 800;
    color: var(--color-success);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: var(--color-success);
    border-radius: 50%;
    display: inline-block;
    animation: greenPulse 1.5s infinite;
}

.counter-label {
    font-size: 12px;
    color: var(--color-text-gray);
}

.counter-number {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: 1px;
}

/* --- CSS iPhone 15 Pro Simulator --- */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-frame {
    width: 320px;
    height: 650px;
    background-color: #000;
    border-radius: 48px;
    border: 9px solid #d4af37; /* Premium Gold Bezel */
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8),
                0 0 35px rgba(255, 215, 0, 0.15);
    position: relative;
    overflow: hidden;
    animation: floatPhone 6s ease-in-out infinite;
}

/* iPhone Buttons */
.phone-button {
    position: absolute;
    background-color: #2D2D30;
    border-radius: 2px;
}
.btn-action { left: -10px; top: 110px; width: 2px; height: 18px; }
.btn-vol-up { left: -10px; top: 145px; width: 2px; height: 42px; }
.btn-vol-down { left: -10px; top: 200px; width: 2px; height: 42px; }
.btn-power { right: -10px; top: 170px; width: 2px; height: 50px; }

/* Dynamic Island Notch */
.phone-notch {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 24px;
    background-color: #000;
    border-radius: 15px;
    z-index: 100;
    box-shadow: inset 0 0 4px rgba(255, 255, 255, 0.2);
}

.phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 39px;
    position: relative;
    overflow: hidden;
    background-color: #121212;
}

/* Screen Transitions */
.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transform: translateX(30px);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.screen.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
    z-index: 10;
}

/* Simulator Screen Header */
.screen-header {
    height: 76px;
    padding-top: 36px; /* Spacing for Dynamic Island */
    padding-left: 16px;
    padding-right: 16px;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.justify-between {
    justify-content: space-between;
}

.screen-title {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 1px;
    color: var(--color-text-white);
}

.volume-btn {
    color: var(--color-primary);
    font-size: 16px;
    cursor: pointer;
}

.screen-votes-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 215, 0, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 12px;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 700;
    color: var(--color-primary);
}

.green-dot {
    width: 5px;
    height: 5px;
    background-color: var(--color-success);
    border-radius: 50%;
    display: inline-block;
}

.live-results-badge {
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--color-success);
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 8px;
    letter-spacing: 0.5px;
}

/* Screen Content */
.screen-content {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* View 1: Voter Registration form */
.reg-form {
    justify-content: center;
}

.reg-welcome {
    text-align: center;
    margin-bottom: 20px;
}

.reg-welcome h3 {
    font-size: 18px;
    color: var(--color-text-white);
    margin-bottom: 4px;
}

.reg-welcome p {
    font-size: 11px;
    color: var(--color-text-gray);
}

.form-group {
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-group label {
    font-size: 10px;
    font-weight: 600;
    color: var(--color-text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sim-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-size: 12px;
    color: var(--color-text-white);
    font-family: var(--font-body);
}

select.sim-input {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='gold' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
}

.btn-sim-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, #FFA500 100%);
    color: #000;
    border: none;
    border-radius: var(--radius-sm);
    padding: 10px;
    font-size: 11px;
    font-weight: 800;
    margin-top: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* View 2: Ballot Page */
.sim-banner {
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 10px 16px;
    text-align: center;
}

.sim-banner h4 {
    font-size: 9px;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.sim-banner p {
    font-size: 8px;
    color: var(--color-text-gray);
}

.ballot-list {
    gap: 8px;
}

.ballot-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.ballot-card:hover {
    border-color: rgba(255, 215, 0, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.ballot-serial {
    width: 22px;
    height: 22px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-white);
    border-radius: 50%;
    font-size: 10px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ballot-info {
    flex: 1;
}

.ballot-party-name {
    font-size: 10px;
    font-weight: 700;
    color: var(--color-text-white);
}

.ballot-candidate {
    font-size: 9px;
    color: var(--color-text-gray);
}

.btn-vote {
    background: rgba(255, 215, 0, 0.05);
    border: 1.5px solid var(--color-primary);
    color: var(--color-primary);
    font-size: 9px;
    font-weight: 900;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.btn-vote:hover {
    background: var(--color-primary);
    color: #000;
}

/* Dialog Styling */
.sim-dialog-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    z-index: 50;
    transition: opacity 0.3s ease;
}

.sim-dialog-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.sim-dialog {
    background: #1C1C1E;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 16px;
    width: 100%;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sim-dialog-overlay.active .sim-dialog {
    transform: scale(1);
}

.sim-dialog h4 {
    font-size: 14px;
    color: var(--color-text-white);
    margin-bottom: 6px;
}

.sim-dialog p {
    font-size: 11px;
    color: var(--color-text-gray);
    margin-bottom: 16px;
}

.sim-dialog-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.btn-sim-text {
    background: transparent;
    border: none;
    color: var(--color-danger);
    font-weight: 700;
    font-size: 11px;
    padding: 8px 14px;
    cursor: pointer;
}

.btn-sim-success {
    background: var(--color-success);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 11px;
    padding: 8px 14px;
    cursor: pointer;
}

/* View 3: Results Page */
.results-view {
    align-items: center;
    justify-content: center;
    text-align: center;
}

.success-icon-container {
    margin-bottom: 8px;
}

.checkmark-icon {
    font-size: 52px;
    color: var(--color-success);
    animation: scaleCheckmark 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.vote-thankyou {
    font-size: 18px;
    color: var(--color-text-white);
    margin-bottom: 2px;
}

.vote-subtitle {
    font-size: 10px;
    color: var(--color-text-gray);
    margin-bottom: 16px;
}

.lockout-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 12px;
    width: 100%;
    margin-bottom: 16px;
}

.lockout-label {
    font-size: 9px;
    font-weight: 700;
    color: var(--color-text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.lockout-timer {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    color: var(--color-danger);
    margin-bottom: 4px;
}

.lockout-hint {
    font-size: 8px;
    color: var(--color-text-gray);
}

.winner-preview-card {
    background: rgba(255, 215, 0, 0.02);
    border: 1px solid rgba(255, 215, 0, 0.08);
    border-radius: 14px;
    padding: 12px;
    width: 100%;
    text-align: left;
    margin-bottom: 16px;
}

.winner-label {
    font-size: 8px;
    font-weight: 800;
    color: var(--color-primary);
    text-transform: uppercase;
    margin-bottom: 2px;
}

.winner-title {
    font-size: 11px;
    font-weight: 800;
    color: var(--color-text-white);
    margin-bottom: 6px;
}

.winner-bar-bg {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 6px;
}

.winner-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary) 0%, #FFA500 100%);
    border-radius: 3px;
    transition: width 1s ease-out;
}

.winner-stats {
    display: flex;
    justify-content: space-between;
    font-size: 8px;
    color: var(--color-text-gray);
}

.btn-sim-outline-gold {
    background: transparent;
    border: 1px dashed rgba(255, 215, 0, 0.3);
    color: var(--color-primary);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 9px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    transition: var(--transition);
}

.btn-sim-outline-gold:hover {
    background: rgba(255, 215, 0, 0.05);
    border-style: solid;
}

/* --- Features Block Grid --- */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px auto;
}

.section-tag {
    font-size: 11px;
    font-weight: 800;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
    display: block;
}

.section-title {
    font-size: 38px;
    line-height: 1.2;
    margin-bottom: 16px;
    font-weight: 800;
}

.section-subtitle {
    font-size: 15px;
    color: var(--color-text-gray);
}

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--color-border);
    padding: 36px;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
    box-shadow: 0 12px 30px rgba(255, 215, 0, 0.12), 0 0 15px rgba(255, 215, 0, 0.05);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 22px;
    color: #000;
}

.bg-gold { background-color: var(--color-primary); }
.bg-emerald { background-color: var(--color-success); color: #fff; }
.bg-red { background-color: var(--color-danger); color: #fff; }
.bg-blue { background-color: #3B82F6; color: #fff; }

.feature-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-desc {
    font-size: 14px;
    color: var(--color-text-gray);
}

/* --- Workflow Steps --- */
.workflow-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    position: relative;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    background: var(--bg-card);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: var(--radius-md);
    padding: 28px 24px;
    transition: var(--transition);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.step-item:hover {
    border-color: var(--color-primary);
    box-shadow: 0 12px 30px rgba(255, 215, 0, 0.12);
    transform: translateY(-4px);
}

.step-number {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 900;
    color: rgba(255, 215, 0, 0.1);
    line-height: 1;
    margin-bottom: 12px;
    transition: var(--transition);
}

.step-item:hover .step-number {
    color: var(--color-primary);
}

.step-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-desc {
    font-size: 13px;
    color: var(--color-text-gray);
}

/* --- Media Walkthrough Section --- */
.media-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    align-items: start;
}

/* --- Media Walkthrough Section --- */
.media-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    align-items: start;
}

.video-simulator-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    height: 610px; /* Matched to the phone mockup frame height to prevent page shifting */
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
}

.video-screen {
    flex: 1;
    background: radial-gradient(circle at center, #1E1E24 0%, #08080A 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.actual-video-player {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.video-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    padding-bottom: 50px; /* Space for caption text */
}

.video-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.video-slide img {
    height: 85%;
    max-height: 90%;
    border-radius: 20px;
    border: 4px solid #3A3A3D; /* Mock Titanium bezel */
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
    object-fit: contain;
}

/* Fullscreen Styling */
#video-sim-root:fullscreen,
#video-sim-root:-webkit-full-screen {
    width: 100vw !important;
    height: 100vh !important;
    background: #000 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    border: none !important;
    border-radius: 0 !important;
}

#video-sim-root:fullscreen .video-screen,
#video-sim-root:-webkit-full-screen .video-screen {
    flex: 1 !important;
}

#video-sim-root:fullscreen .video-slide img,
#video-sim-root:-webkit-full-screen .video-slide img {
    height: 80vh !important;
    max-height: 80vh !important;
    border-width: 6px !important;
    border-radius: 28px !important;
}

#video-sim-root:fullscreen .video-caption,
#video-sim-root:-webkit-full-screen .video-caption {
    font-size: 16px !important;
    bottom: 28px !important;
    padding: 12px 32px !important;
    max-width: 600px !important;
    margin: 0 auto !important;
}

#video-sim-root:fullscreen .video-controls-bar,
#video-sim-root:-webkit-full-screen .video-controls-bar {
    height: 60px !important;
    padding: 0 24px !important;
    background: #08080C !important;
}

#video-sim-root:fullscreen .control-btn,
#video-sim-root:-webkit-full-screen .control-btn {
    font-size: 24px !important;
}

.video-caption {
    position: absolute;
    bottom: 12px;
    left: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--color-text-white);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    text-align: center;
    font-weight: 500;
}

/* Virtual Cursor tap overlay */
.virtual-cursor {
    position: absolute;
    width: 28px;
    height: 28px;
    background: rgba(255, 215, 0, 0.4);
    border: 2.5px solid var(--color-primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10;
}

@keyframes tapEffect {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(0.7); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(1.4); opacity: 0; }
}

/* Big Play Overlay Button */
.video-big-play-btn {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 11, 0.85);
    backdrop-filter: blur(6px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 20;
    cursor: pointer;
    transition: var(--transition);
}

.video-big-play-btn:hover {
    background: rgba(10, 10, 11, 0.75);
}

.play-icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    transition: var(--transition);
}

.video-big-play-btn:hover .play-icon-circle {
    transform: scale(1.1);
    background: var(--color-primary);
}

.play-icon {
    font-size: 26px;
    color: var(--color-primary);
    margin-left: 4px; /* offset play triangle centring */
    transition: var(--transition);
}

.video-big-play-btn:hover .play-icon {
    color: #000;
}

.video-title-placeholder {
    font-size: 18px;
    margin-bottom: 8px;
    font-family: var(--font-heading);
}

.video-subtitle-placeholder {
    font-size: 13px;
    color: var(--color-text-gray);
    max-width: 320px;
}

/* Controls Bar */
.video-controls-bar {
    height: 48px;
    background: #111115;
    border-top: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 12px;
    user-select: none;
}

.control-btn {
    background: transparent;
    border: none;
    color: var(--color-text-gray);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.control-btn:hover {
    color: var(--color-primary);
}

.timeline-container {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.timeline-fill {
    height: 100%;
    width: 0%;
    background: var(--color-primary);
    border-radius: 3px;
    transition: width 0.1s linear;
}

.time-display {
    font-size: 11px;
    color: var(--color-text-gray);
    font-family: monospace;
}

/* Sidebar Gallery cards for portrait images */
.gallery-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gallery-card {
    background: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 12px;
    display: flex;
    gap: 16px;
    align-items: center;
    overflow: hidden;
}

.gallery-img-container {
    width: 65px;
    height: 110px;
    background: #000;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    overflow: hidden;
    flex-shrink: 0;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: var(--transition);
}

.gallery-card:hover .gallery-img {
    transform: scale(1.08);
}

.gallery-card-content {
    flex: 1;
}

.gallery-card-content h4 {
    font-size: 14px;
    margin-bottom: 4px;
    color: var(--color-text-white);
}

.gallery-card-content p {
    font-size: 12px;
    color: var(--color-text-gray);
}

/* --- FAQ Section & Accordion --- */
.faq-container {
    max-width: 800px;
}

.faq-list {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: rgba(255, 215, 0, 0.45);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.03);
}

.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    padding: 24px;
    text-align: left;
    color: var(--color-text-white);
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.faq-chevron {
    font-size: 18px;
    color: var(--color-primary);
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    padding: 0 24px;
    color: var(--color-text-gray);
    font-size: 14px;
    border-top: 1px solid transparent;
}

.faq-item.active {
    border-color: var(--color-primary);
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.08);
}

.faq-item.active .faq-chevron {
    transform: rotate(180deg);
}

.faq-item.active .faq-answer {
    max-height: 200px; /* Big enough for the answer text */
    padding-bottom: 24px;
    border-color: var(--color-border);
}

/* --- Footer --- */
.footer {
    background: #060607;
    border-top: 1px solid var(--color-border);
    padding: 80px 0 40px 0;
}

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

.footer-brand h3 {
    font-size: 20px;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 14px;
    color: var(--color-text-gray);
    max-width: 320px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.footer-links h4 {
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--color-text-white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links a {
    font-size: 14px;
    color: var(--color-text-gray);
}

.footer-links a:hover {
    color: var(--color-primary);
}

.footer-credit {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-credit h4 {
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--color-text-white);
}

.footer-credit p {
    font-size: 13px;
    color: var(--color-text-gray);
}

/* --- Showcase Container & Tabs --- */
.showcase-container {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.showcase-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 4px;
    gap: 4px;
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--color-text-gray);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    padding: 10px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition);
}

.tab-btn:hover {
    color: var(--color-text-white);
    background: rgba(255, 255, 255, 0.02);
}

.tab-btn.active {
    color: #000 !important;
    background: var(--color-primary) !important;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.15);
}

.tab-btn ion-icon {
    font-size: 16px;
}

/* --- Clickable Smartphone Simulator --- */
.interactive-simulator-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
    position: relative;
    z-index: 1;
    background: 
        /* Cyan Spotlight on the left */
        radial-gradient(circle at 12% 50%, rgba(0, 212, 255, 0.18) 0%, transparent 55%),
        /* Purple Spotlight on the right */
        radial-gradient(circle at 88% 50%, rgba(138, 43, 226, 0.18) 0%, transparent 55%),
        /* Dark vignette backdrop */
        radial-gradient(circle at center, #0F172A 0%, #060810 100%);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px 20px 85px 20px;
    box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.85), 0 20px 50px rgba(0,0,0,0.5);
    overflow: hidden;
}

.sim-phone-border-wrapper {
    position: relative;
    padding: 1.5px; /* micro-thin, semi-transparent border wrapper */
    border-radius: 45.5px; /* outer radius = frame radius 44px + border padding 1.5px */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(0, 229, 255, 0.15) 35%, rgba(156, 39, 176, 0.2) 65%, rgba(156, 39, 176, 0.2) 100%);
    display: inline-block;
    z-index: 3;
    transform-style: preserve-3d;
    transform: rotateY(-13deg) rotateX(7deg) rotateZ(-1.5deg);
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    box-shadow: 
        /* Tight ambient occlusion shadow */
        0 10px 30px rgba(0, 0, 0, 0.7),
        /* Outer soft ambient drop shadow */
        -18px 25px 50px rgba(0, 0, 0, 0.75),
        /* Dynamic neon back-glow (Cyan left, Violet right) */
        -30px 30px 120px rgba(0, 150, 255, 0.25),
        30px 30px 120px rgba(156, 39, 176, 0.2);
}

.sim-phone-border-wrapper:hover {
    transform: rotateY(-5deg) rotateX(3deg) rotateZ(-0.5deg);
}

.sim-phone-frame {
    width: 290px;
    height: 590px;
    background-color: #000;
    border-radius: 44px;
    border: 9px solid #1c1c1e; /* Sleek space gray bezel */
    position: relative;
    overflow: hidden;
    z-index: 2;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    /* Box shadow for 3D extrusion on bezel & inset inner screen shadow */
    box-shadow: 
        /* Bezel depth layer shadows (3D extrusion on left edge) */
        -3px 3px 0px #2e2e30,
        -4px 4px 0px #28282a,
        -5px 5px 0px #212123,
        -6px 6px 0px #1b1b1d,
        -7px 7px 0px #151517,
        -8px 8px 0px #0f0f10,
        /* Subtle screen inset inner shadow */
        inset 0 0 12px rgba(0, 0, 0, 0.85);
}

.phone-shadow {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%) rotateX(85deg);
    width: 250px;
    height: 40px;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.95) 0%, transparent 70%);
    filter: blur(5px);
    z-index: 2;
    pointer-events: none;
}

.phone-backlight {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 380px;
    height: 680px;
    background: radial-gradient(
        circle, 
        rgba(0, 212, 255, 0.22) 0%, 
        rgba(138, 43, 226, 0.18) 40%, 
        rgba(255, 215, 0, 0.04) 70%,
        transparent 90%
    );
    filter: blur(60px);
    z-index: 0;
    pointer-events: none;
}

.sim-phone-notch {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 20px;
    background-color: #000;
    border-radius: 10px;
    z-index: 100;
    box-shadow: inset 0 0 2px rgba(255, 255, 255, 0.2);
    pointer-events: none;
}

.sim-phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 32px;
    position: relative;
    overflow: hidden;
    background-color: #121212;
    border: 1px solid #1A1D24; /* Distinct glass screen bezel separation */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Sharp high-contrast boundary overlay for screen bezel separation */
.sim-phone-screen::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid #1A1D24;
    border-radius: 32px;
    pointer-events: none;
    z-index: 999;
}

.sim-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.sim-screen.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 10;
}

.sim-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.15); /* Crop out the screenshot's embedded phone bezel */
    transition: transform 0.3s ease;
}

/* Hotspot targets */
.sim-hotspot {
    position: absolute;
    cursor: pointer;
    z-index: 20;
}

.pulse-hotspot {
    border: 2px dashed var(--color-primary);
    background: rgba(255, 215, 0, 0.15);
    border-radius: 8px;
    box-shadow: 0 0 8px var(--color-primary);
    animation: hotspotPulse 1.5s infinite;
}

@keyframes hotspotPulse {
    0% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.02); opacity: 0.9; }
    100% { transform: scale(1); opacity: 0.7; }
}

/* Help Badge */
.sim-badge {
    position: absolute;
    top: 40px;
    left: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-primary);
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 10px;
    text-align: center;
    font-weight: 700;
    z-index: 30;
    pointer-events: none;
    letter-spacing: 0.5px;
}

/* Sim Dialog Overlay */
.sim-dialog-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    z-index: 40;
    transition: opacity 0.3s ease;
}

.sim-dialog-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.sim-dialog-card {
    background: #1C1C1E;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 16px;
    width: 100%;
    text-align: center;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sim-dialog-overlay.active .sim-dialog-card {
    transform: scale(1);
}

.sim-dialog-card h4 {
    font-size: 13px;
    color: #fff;
    margin-bottom: 6px;
}

.sim-dialog-card p {
    font-size: 11px;
    color: var(--color-text-gray);
    margin-bottom: 16px;
}

.sim-dialog-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
}

/* Success Beep Overlay */
.sim-success-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 12, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    z-index: 50;
    transition: opacity 0.4s ease;
    text-align: center;
    padding: 24px;
}

.sim-success-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.sim-success-icon {
    font-size: 48px;
    color: var(--color-success);
    margin-bottom: 8px;
}

.sim-success-overlay h4 {
    font-size: 15px;
    color: #fff;
    margin-bottom: 4px;
}

.sim-success-overlay p {
    font-size: 11px;
    color: var(--color-text-gray);
}

/* Restart Button */
.sim-restart-btn {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    border: none;
    color: #000;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 800;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    z-index: 30;
    transition: var(--transition);
}

.sim-restart-btn:hover {
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
}

/* Container for stacked results page actions */
.sim-results-actions {
    position: relative;
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 30;
}

/* Override existing absolute position of restart button when inside actions container */
.sim-results-actions .sim-restart-btn {
    position: static !important;
    transform: none !important;
    width: 100% !important;
    justify-content: center;
    margin: 0 !important;
    padding: 8px 16px !important;
    border-radius: 8px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2) !important;
}

.sim-results-actions .sim-restart-btn:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 16px rgba(255, 215, 0, 0.3) !important;
}

/* Style for Host Real Election CTA button */
.sim-request-live-btn {
    background: rgba(255, 215, 0, 0.08) !important;
    border: 1.5px solid var(--color-primary) !important;
    color: var(--color-primary) !important;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 800;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition);
    width: 100%;
}

.sim-request-live-btn:hover {
    background: var(--color-primary) !important;
    color: #000 !important;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3) !important;
    transform: translateY(-1px) !important;
}

/* --- Animations (@keyframes) --- */
@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.6; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.6; }
}

@keyframes greenPulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes floatPhone {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes scaleCheckmark {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* --- Pricing Section Styles --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    align-items: stretch;
    margin-top: 50px;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 48px 36px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition);
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-primary);
    box-shadow: 0 20px 45px rgba(255, 215, 0, 0.15), 0 0 15px rgba(255, 215, 0, 0.05);
}

/* Featured Professional card */
.pricing-card.featured {
    background: linear-gradient(180deg, rgba(22, 22, 28, 0.8) 0%, rgba(10, 10, 12, 0.98) 100%);
    border: 2.5px solid var(--color-primary);
    box-shadow: 0 15px 35px rgba(255, 215, 0, 0.08);
}

.pricing-card.featured:hover {
    box-shadow: 0 25px 50px rgba(255, 215, 0, 0.15);
}

.card-glow {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.04) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.popular-tag {
    position: absolute;
    top: 14px;
    right: 14px;
    background: linear-gradient(135deg, var(--color-primary) 0%, #FFA500 100%);
    color: #000;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 30px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.2);
    z-index: 10;
}

.pricing-card-header {
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
}

.plan-name {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    color: var(--color-text-white);
    display: block;
    margin-bottom: 12px;
}

.plan-price {
    display: flex;
    align-items: baseline;
    margin-bottom: 16px;
}

.plan-price .currency {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text-white);
    margin-right: 4px;
}

.plan-price .price-val {
    font-family: var(--font-heading);
    font-size: 50px;
    font-weight: 900;
    line-height: 1;
    color: var(--color-text-white);
}

.plan-price .price-period {
    font-size: 14px;
    color: var(--color-text-gray);
    margin-left: 6px;
}

.plan-description {
    font-size: 13.5px;
    color: var(--color-text-gray);
    line-height: 1.5;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 36px 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
    position: relative;
    z-index: 1;
}

.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13.5px;
    color: var(--color-text-gray);
    line-height: 1.4;
}

.plan-features li strong {
    color: var(--color-text-white);
}

.feature-icon-check {
    font-size: 16px;
    color: var(--color-success);
    flex-shrink: 0;
    margin-top: 2px;
}

.plan-cta {
    width: 100%;
    margin-top: auto;
    position: relative;
    z-index: 1;
}

/* --- Pricing Responsive Rules --- */
@media (max-width: 991px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 440px;
        margin: 40px auto 0 auto;
        gap: 32px;
    }
}

/* --- Responsive Layout Breaks --- */
@media (max-width: 991px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }
    .hero-content {
        align-items: center;
    }
    .hero-title, .hub-title {
        font-size: 36px;
    }
    .media-container {
        grid-template-columns: 1fr;
    }
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767px) {
    .header {
        position: relative;
    }
    .nav-container {
        height: auto;
        padding: 16px 0;
        flex-direction: column;
        gap: 16px;
    }
    .nav {
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .section {
        padding: 60px 0;
    }
    .hero-section {
        padding-top: 40px;
    }
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

.sub-credit {
    font-size: 11px !important;
    color: #555 !important;
    margin-top: 12px;
}

/* --- Contact Section Styles --- */
.contact-card-wrapper {
    background: var(--bg-card);
    border: 1.5px solid rgba(255, 215, 0, 0.25);
    border-radius: var(--radius-lg);
    padding: 48px;
    max-width: 850px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 25px rgba(255, 215, 0, 0.05);
}

.contact-card-info {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-gray);
    margin-bottom: 8px;
    font-weight: 700;
}

.contact-creator-tamil {
    font-size: 32px;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 8px;
    font-family: var(--font-heading);
    letter-spacing: 0.02em;
}

.contact-creator-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text-white);
    margin-bottom: 32px;
}

.contact-creator-name .divider {
    color: rgba(255, 255, 255, 0.2);
    margin: 0 8px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14.5px;
    color: var(--color-text-gray);
}

.contact-icon {
    font-size: 22px;
    color: var(--color-primary);
    flex-shrink: 0;
}

.contact-link {
    color: var(--color-text-white);
    font-weight: 600;
    border-bottom: 1.5px solid rgba(255, 215, 0, 0.2);
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.warning-row {
    background: rgba(239, 68, 68, 0.04);
    border: 1px solid rgba(239, 68, 68, 0.15);
    padding: 12px 16px;
    border-radius: var(--radius-md);
}

.warning-row .contact-text {
    font-weight: 700;
    color: var(--color-danger);
}

.contact-card-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1.5px dashed rgba(255, 215, 0, 0.15);
    padding: 28px;
    border-radius: var(--radius-md);
    text-align: center;
}

.contact-qr-img {
    width: 170px;
    height: 170px;
    background: white;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.qr-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 800;
    color: var(--color-success);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 767px) {
    .contact-card-wrapper {
        grid-template-columns: 1fr;
        padding: 32px 24px;
        gap: 36px;
    }
}

/* --- Google Translate Custom Styling --- */
.lang-selector-container {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-right: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid rgba(255, 215, 0, 0.25);
    border-radius: var(--radius-sm);
    padding: 2px 10px;
    transition: var(--transition);
}

.lang-selector-container:hover {
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.15);
}

.lang-icon {
    font-size: 18px;
    color: var(--color-primary);
    display: flex;
    align-items: center;
}

.lang-selector {
    display: inline-block;
}

#google_translate_element select.goog-te-combo {
    background: transparent !important;
    border: none !important;
    color: var(--color-text-white) !important;
    padding: 6px 0 !important;
    font-family: var(--font-body) !important;
    font-size: 13px !important;
    outline: none !important;
    cursor: pointer !important;
    font-weight: 600 !important;
}

#google_translate_element select.goog-te-combo option {
    color: #1e293b !important;
    background-color: #ffffff !important;
    font-family: var(--font-body) !important;
}

/* Clean Google Translate overrides */
.goog-logo-link, 
.goog-te-gadget span, 
.goog-te-banner-frame,
#goog-gt-tt,
.translation-stats {
    display: none !important;
}

.goog-te-gadget {
    color: transparent !important;
    font-size: 0 !important;
}

body {
    top: 0 !important;
}

/* --- Hero Section Branding Logo --- */
.hero-logo {
    width: 320px;
    height: 320px;
    border-radius: var(--radius-sm); /* Square size with clean rounded corners */
    border: 2.5px solid var(--color-primary);
    margin-top: 24px;
    margin-bottom: 24px;
    box-shadow: 0 0 35px rgba(255, 215, 0, 0.25);
    object-fit: cover;
    max-width: 100%;
}

@media (max-width: 767px) {
    .hero-logo {
        width: 240px;
        height: 240px;
    }
}

/* --- Live Voting QR Showcase Tab --- */
.qr-showcase-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
    position: relative;
    z-index: 1;
    background: 
        /* Cyan Spotlight on the left */
        radial-gradient(circle at 12% 50%, rgba(0, 212, 255, 0.18) 0%, transparent 55%),
        /* Purple Spotlight on the right */
        radial-gradient(circle at 88% 50%, rgba(138, 43, 226, 0.18) 0%, transparent 55%),
        /* Dark vignette backdrop */
        radial-gradient(circle at center, #0F172A 0%, #060810 100%);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px 20px 85px 20px;
    box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.85), 0 20px 50px rgba(0,0,0,0.5);
    overflow: hidden;
}

.qr-showcase-card {
    background: var(--bg-card);
    border: 1.5px solid rgba(255, 215, 0, 0.25);
    border-radius: var(--radius-lg);
    padding: 32px;
    width: 100%;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.5), 0 0 25px rgba(255, 215, 0, 0.05);
}

.qr-entry-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--color-text-gray);
    letter-spacing: 0.1em;
    margin-bottom: 4px;
}

.qr-entry-link {
    font-size: 16px;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 20px;
    border-bottom: 1.5px solid rgba(255, 215, 0, 0.3);
    transition: var(--transition);
}

.qr-entry-link:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.qr-live-badge {
    background: rgba(239, 68, 68, 0.1);
    border: 1.5px solid rgba(239, 68, 68, 0.3);
    color: #FF6B6B;
    font-size: 11px;
    font-weight: 800;
    padding: 6px 16px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
}

.pulse-dot-red {
    width: 8px;
    height: 8px;
    background-color: #EF4444;
    border-radius: 50%;
    display: inline-block;
    animation: redPulse 1.5s infinite;
}

@keyframes redPulse {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); }
    70% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.qr-code-container {
    background: white;
    padding: 12px;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.live-voting-qr {
    width: 180px;
    height: 180px;
    display: block;
    object-fit: contain;
}

/* ==========================================
   ECI OFFICIAL RESOURCE PAGE STYLING
   ========================================== */
.eci-hero-section {
    padding-top: 120px; /* Adjusted after removing top announcement bar */
    padding-bottom: 60px;
    background: linear-gradient(180deg, rgba(255, 215, 0, 0.03) 0%, transparent 100%);
    text-align: center;
}

.eci-title {
    font-size: 48px;
    font-family: var(--font-heading);
    font-weight: 900;
    margin-bottom: 16px;
    line-height: 1.2;
}

.eci-subtitle {
    color: var(--color-text-gray);
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 30px auto;
}

/* ECI Card Layout */
.voter-portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.eci-card {
    background: var(--bg-card);
    border: 1px solid var(--color-border);
    padding: 30px;
    border-radius: var(--radius-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.eci-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-primary);
    box-shadow: 0 12px 30px rgba(255, 215, 0, 0.1);
}

.eci-card-icon {
    font-size: 36px;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.eci-card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.eci-card-desc {
    color: var(--color-text-gray);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

.eci-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 14px;
    margin-top: auto;
}

.eci-card-link ion-icon {
    transition: transform 0.2s;
}

.eci-card-link:hover ion-icon {
    transform: translateX(4px);
}

/* Pledge Widget Section */
.pledge-section {
    background: var(--bg-alt);
    padding: 80px 0;
}

.pledge-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

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

.pledge-info-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 20px;
}

.pledge-info-desc {
    color: var(--color-text-gray);
    margin-bottom: 30px;
}

.pledge-lang-toggle {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.pledge-lang-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--color-text-white);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.pledge-lang-btn:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.08);
}

.pledge-lang-btn:active {
    transform: scale(0.95);
}

.pledge-lang-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #000;
}

.pledge-text-content {
    background: rgba(0,0,0,0.2);
    border: 1px dashed rgba(255, 215, 0, 0.2);
    padding: 24px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    line-height: 1.8;
    color: #E5E7EB;
    margin-bottom: 24px;
    font-style: italic;
    min-height: 150px;
}

.pledge-form-input {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    color: var(--color-text-white);
    font-family: var(--font-body);
    font-size: 15px;
    margin-bottom: 16px;
    outline: none;
    transition: var(--transition);
}

.pledge-form-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.1);
}

.pledge-certificate-card {
    background: radial-gradient(circle at center, #1b1b22 0%, #121215 100%);
    border: 3px double var(--color-primary);
    border-radius: var(--radius-md);
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 400px;
    justify-content: center;
}

.pledge-certificate-card::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px solid rgba(255, 215, 0, 0.15);
    pointer-events: none;
}

.cert-emblem {
    font-size: 48px;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.cert-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 8px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.cert-subtitle {
    font-size: 12px;
    color: var(--color-text-gray);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.cert-text {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--color-text-white);
}

.cert-signature-name {
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.4);
    padding-bottom: 4px;
    width: 80%;
    min-height: 38px;
}

.cert-seal {
    width: 60px;
    height: 60px;
    border: 2px dashed var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 900;
    color: var(--color-primary);
    margin-top: 20px;
    background: rgba(255, 215, 0, 0.03);
}

.pledge-stats {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    background: rgba(255, 215, 0, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.15);
    padding: 10px 20px;
    border-radius: 30px;
    width: fit-content;
}

.pledge-stats-number {
    font-weight: 800;
    color: var(--color-primary);
}

/* App Store section styling */
.apps-section {
    padding: 80px 0;
}

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

.app-card {
    background: var(--bg-card);
    border: 1px solid var(--color-border);
    padding: 30px;
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition);
}

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

.app-icon {
    font-size: 48px;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.app-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.app-desc {
    color: var(--color-text-gray);
    font-size: 14px;
    margin-bottom: 24px;
}

.app-badge-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #000;
    border: 1px solid var(--glass-border);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    color: white;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
}

.app-badge-link:hover {
    border-color: var(--color-primary);
    background: #0A0A0B;
}

.app-badge-link ion-icon {
    font-size: 20px;
}

/* ==========================================
   FULLSCREEN TV MODE KIOSK OVERLAY STYLING
   ========================================== */
.tv-kiosk-overlay {
    display: none;
}

/* When fullscreen is active */
.tv-kiosk-overlay:fullscreen,
.tv-kiosk-overlay.active {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 100vw;
    height: 100vh;
    background-color: #071A36;
    padding: 30px 40px;
    box-sizing: border-box;
    overflow: hidden;
    color: #fff;
    font-family: var(--font-body);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
}

/* Close button / exit TV mode */
.tv-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10000;
    transition: all 0.2s ease;
}

.tv-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.tv-close-btn:active {
    transform: scale(0.95);
}

.tv-container {
    width: 100%;
    max-width: 1200px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 0 auto;
}

/* Header Box */
.tv-header-box {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #1E3A8A 0%, #0F172A 100%);
    border-radius: 16px;
    border: 2px solid rgba(255, 213, 74, 0.5);
    box-shadow: 0 0 20px rgba(255, 213, 74, 0.15);
}

.tv-live-tag {
    background-color: #EF5350;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.5px;
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    box-shadow: 0 0 10px rgba(239, 83, 80, 0.6);
}

.tv-election-title {
    font-size: 28px;
    font-weight: 900;
    color: #FFD54A;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 6px;
    text-shadow: 0 0 10px rgba(255, 213, 74, 0.3);
}

.tv-election-desc {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    opacity: 0.9;
}

/* Center Panel Grid layout */
.tv-center-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 30px;
    align-items: center;
    margin: 20px 0;
    flex-grow: 1;
}

@media (max-width: 768px) {
    .tv-center-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        gap: 15px;
    }
    .tv-ad-box {
        display: none; /* Hide ads on mobile screens */
    }
}

.tv-ad-box {
    background: rgba(255, 255, 255, 0.03);
    border: 2px dashed rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.tv-ad-placeholder {
    font-size: 12px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: 0.1em;
}

/* Center QR Code box */
.tv-qr-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.tv-scan-instruction {
    border: 3px solid #FFD54A;
    background: rgba(255, 213, 74, 0.15);
    color: #fff;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 1.5px;
    padding: 10px 24px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    box-shadow: 0 0 15px rgba(255, 213, 74, 0.3);
}

.tv-qr-card {
    background: #fff;
    padding: 16px;
    border-radius: 24px;
    box-shadow: 0 0 30px rgba(255, 213, 74, 0.25);
    margin-bottom: 16px;
}

.tv-qr-img {
    width: 240px;
    height: 240px;
    display: block;
    object-fit: contain;
}

.tv-manual-url {
    text-align: center;
}

.tv-url-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.1em;
    margin-bottom: 4px;
}

.tv-manual-url a {
    font-size: 24px;
    font-weight: 900;
    color: #FFD54A;
    text-decoration: underline;
    text-shadow: 0 0 10px rgba(255, 213, 74, 0.2);
}

/* Footer Bar */
.tv-footer-bar {
    background-color: #0F172A;
    border-radius: 8px;
    padding: 14px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
    border-top: 1px solid rgba(255, 215, 0, 0.1);
}

.tv-footer-bar p {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.tv-support-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Kiosk Auto-URL Splash Screen styles */
.kiosk-splash-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #071A36;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: var(--font-body);
}

.kiosk-splash-card {
    background: linear-gradient(135deg, #1E3A8A 0%, #0F172A 100%);
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-md);
    padding: 40px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    max-width: 400px;
    width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.kiosk-splash-icon {
    font-size: 60px;
    color: var(--color-primary);
    margin-bottom: 10px;
}

/* --- Visitor Stats Card --- */
.visitor-stats-card {
    margin-top: 32px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 340px;
    transition: var(--transition);
}

.visitor-stats-card:hover {
    border-color: rgba(255, 215, 0, 0.3);
    background: rgba(255, 255, 255, 0.04);
}

.visitor-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 215, 0, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 22px;
}

.visitor-info-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.visitor-count-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--color-text-gray);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.visitor-count-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

#visitor-count-val {
    font-size: 24px;
    font-weight: 800;
    color: var(--color-text-white);
    font-family: var(--font-heading);
    line-height: 1;
}

.live-pulse-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 9px;
    color: #10B981;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.pulse-dot-green {
    width: 7px;
    height: 7px;
    background-color: #10B981;
    border-radius: 50%;
    display: inline-block;
    animation: greenPulse 1.5s infinite;
}

@keyframes greenPulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
    70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* --- Custom Voter UI Enhancements --- */
/* Zoom in and out pulse animation for QR Code Container */
@keyframes qrZoomPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.04); }
    100% { transform: scale(1); }
}
.qr-zoom-pulse {
    animation: qrZoomPulse 2.5s infinite ease-in-out;
}

/* Floating Hand Gesture Animation */
@keyframes handFloat {
    0% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}
.floating-hand {
    animation: handFloat 1.2s infinite ease-in-out;
    display: inline-block;
}

/* Flash News Ticker Marquee Animation */
@keyframes tickerMarquee {
    0% { transform: translate3d(100%, -50%, 0); }
    100% { transform: translate3d(-100%, -50%, 0); }
}
.ticker-marquee-text {
    position: absolute;
    top: 50%;
    animation: tickerMarquee 15s linear infinite;
}

/* Hide scrollbar for candidates list inside Phone Simulator */
#phone-candidates-list::-webkit-scrollbar {
    display: none;
}

/* Candidate Panel styling for TV overlay */
.tv-candidate-panel {
    background: rgba(15, 23, 42, 0.7);
    border: 2px solid rgba(255, 213, 74, 0.4);
    border-radius: 16px;
    height: 380px; /* matched to center QR container layout height */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 213, 74, 0.1);
}

.tv-candidate-panel-title {
    background: rgba(255, 213, 74, 0.15);
    color: #FFD54A;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 10px;
    text-align: center;
    border-bottom: 1.5px solid rgba(255, 213, 74, 0.3);
}

.tv-candidate-list {
    flex-grow: 1;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 213, 74, 0.3) transparent;
}

.tv-candidate-list::-webkit-scrollbar {
    width: 6px;
}
.tv-candidate-list::-webkit-scrollbar-thumb {
    background: rgba(255, 213, 74, 0.3);
    border-radius: 3px;
}

.tv-candidate-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    transition: transform 0.2s, border-color 0.2s;
}
.tv-candidate-card:hover {
    transform: scale(1.02);
    border-color: rgba(255, 213, 74, 0.3);
}

.tv-candidate-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid #FFD54A;
    background: #fff;
    overflow: hidden;
    flex-shrink: 0;
}
.tv-candidate-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tv-candidate-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}
.tv-candidate-name {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}
.tv-candidate-alliance {
    font-size: 9.5px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.2;
}

/* Override phone to be straight in Scan to Vote Live (Mode 3) */
.qr-showcase-wrapper .sim-phone-border-wrapper {
    transform: none !important;
    box-shadow: 
        /* Tight ambient occlusion shadow */
        0 10px 30px rgba(0, 0, 0, 0.7),
        /* Outer soft ambient drop shadow */
        0 20px 50px rgba(0, 0, 0, 0.85),
        /* Dynamic neon back-glow (Cyan left, Violet right) */
        -30px 30px 120px rgba(0, 150, 255, 0.25),
        30px 30px 120px rgba(156, 39, 176, 0.2);
}

.qr-showcase-wrapper .sim-phone-border-wrapper:hover {
    transform: scale(1.02) !important; /* simple micro-scale on hover since it's straight */
}

.qr-showcase-wrapper .sim-phone-frame {
    transform: none !important;
    border: 9px solid #1c1c1e !important;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.85) !important;
}

.qr-showcase-wrapper .phone-shadow {
    bottom: 20px !important;
    transform: translateX(-50%) !important;
    width: 250px !important;
    height: 18px !important;
    filter: blur(6px) !important;
    z-index: 2 !important;
}

/* --- Studio White Floor Effect --- */
.studio-floor {
    position: absolute;
    bottom: -15px;
    left: -10%;
    width: 120%;
    height: 160px;
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.08) 12%, 
        rgba(255, 255, 255, 0.85) 55%, 
        rgba(255, 255, 255, 1) 100%
    );
    transform: perspective(600px) rotateX(18deg);
    transform-origin: bottom center;
    z-index: 1;
    pointer-events: none;
    opacity: 0.98;
    box-shadow: inset 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* --- Dynamic Live Election Flash News Banner --- */
.live-news-banner {
    width: 100%;
    height: 38px;
    background: #0B0A0B;
    border-top: 1px solid rgba(255, 215, 0, 0.15);
    border-bottom: 1.5px solid var(--color-primary);
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
    z-index: 1001; /* sits just inside the fixed header */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.live-news-badge {
    background: linear-gradient(135deg, var(--color-primary) 0%, #FFA500 100%);
    color: #000;
    font-family: var(--font-heading);
    font-size: 9.5px;
    font-weight: 900;
    letter-spacing: 0.08em;
    padding: 0 16px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.6);
    border-right: 1.5px solid #FFD700;
    flex-shrink: 0;
}

.live-news-marquee-container {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    background: rgba(255, 215, 0, 0.03);
}

.live-news-text-marquee {
    display: inline-block;
    white-space: nowrap;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    position: absolute;
    top: 50%;
    animation: globalMarquee 22s linear infinite;
}

@keyframes globalMarquee {
    0% { transform: translate3d(100vw, -50%, 0); }
    100% { transform: translate3d(-100%, -50%, 0); }
}

/* --- Layman Quick-Guide Bar --- */
.quick-guide-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.guide-card {
    background: var(--bg-card);
    border: 1.5px solid var(--color-border);
    padding: 24px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.guide-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.08);
}

.guide-icon {
    font-size: 32px;
    color: var(--color-primary);
    background: rgba(255, 215, 0, 0.08);
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.guide-info h4 {
    font-size: 16px;
    margin-bottom: 4px;
    color: var(--color-text-white);
}

.guide-info p {
    font-size: 13px;
    color: var(--color-text-gray);
    line-height: 1.4;
}

/* --- Trending Mock Elections --- */
.trending-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.trend-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    padding: 28px 24px;
    border-radius: var(--radius-md);
    position: relative;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.trend-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
    box-shadow: 0 12px 35px rgba(255, 215, 0, 0.05);
}

.trend-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 9px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.trend-badge.sport { background: rgba(16, 185, 129, 0.1); color: var(--color-success); border: 1px solid rgba(16, 185, 129, 0.2); }
.trend-badge.drama { background: rgba(139, 92, 246, 0.1); color: #A78BFA; border: 1px solid rgba(139, 92, 246, 0.2); }
.trend-badge.fun { background: rgba(245, 158, 11, 0.1); color: #F59E0B; border: 1px solid rgba(245, 158, 11, 0.2); }
.trend-badge.policy { background: rgba(255, 215, 0, 0.1); color: var(--color-primary); border: 1px solid rgba(255, 215, 0, 0.2); }

.trend-icon {
    font-size: 40px;
    margin-bottom: 20px;
    width: fit-content;
}

.trend-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--color-text-white);
}

.trend-card p {
    font-size: 13px;
    color: var(--color-text-gray);
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.trend-action {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s ease;
}

.trend-card:hover .trend-action {
    gap: 10px;
}

/* --- Ballot Slideshow & Power BI --- */
.slideshow-interactive-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 48px;
    align-items: center;
    margin-top: 40px;
}

.slider-phone-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.slider-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.slider-scale {
    transform: scale(0.95);
    transition: var(--transition);
}

.slide-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0E0F12;
    display: flex;
    flex-direction: column;
    padding: 40px 16px 20px 16px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-screen.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    z-index: 5;
}

.slide-header {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 900;
    color: var(--color-primary);
    text-align: center;
    border-bottom: 1px solid rgba(255, 215, 0, 0.15);
    padding-bottom: 8px;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.slide-ballot-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-grow: 1;
    overflow-y: auto;
    scrollbar-width: none;
}

.slide-ballot-list::-webkit-scrollbar {
    display: none;
}

.slide-cand {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.slide-cand:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 215, 0, 0.2);
}

.cand-symbol {
    font-size: 20px;
}

.cand-info {
    flex-grow: 1;
}

.cand-info h5 {
    font-size: 11px;
    font-weight: 700;
    color: var(--color-text-white);
    margin-bottom: 2px;
}

.cand-info span {
    font-size: 8px;
    color: var(--color-text-gray);
    display: block;
}

.btn-slide-vote {
    background: rgba(255, 215, 0, 0.05);
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    font-size: 8px;
    font-weight: 900;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
}

.slide-cand:hover .btn-slide-vote {
    background: var(--color-primary);
    color: #000;
}

.slide-footer {
    text-align: center;
    font-size: 8px;
    color: var(--color-text-gray);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 8px;
    margin-top: 8px;
}

/* --- Power BI Mock --- */
.pbi-dashboard-container {
    display: flex;
    flex-direction: column;
}

.pbi-report-card {
    background: #18191E;
    border: 2px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    min-height: 480px;
    display: flex;
    flex-direction: column;
}

.pbi-header {
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.pbi-logo {
    background: #F2C811;
    color: #000;
    font-weight: 900;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.pbi-title {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 800;
    color: var(--color-text-white);
}

.pbi-status {
    margin-left: auto;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--color-success);
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pbi-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    flex-grow: 1;
}

.pbi-chart-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
}

.pbi-chart-card.full-width {
    grid-column: span 2;
}

.pbi-chart-card h4 {
    font-size: 11px;
    color: var(--color-text-gray);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pbi-metric-value {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 900;
    color: var(--color-primary);
    line-height: 1;
}

.pbi-sub {
    font-size: 11px;
    color: var(--color-text-gray);
    margin-bottom: 12px;
}

.pbi-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 6px;
}

.pbi-progress-fill {
    height: 100%;
    background: var(--color-primary);
    border-radius: 3px;
}

.pbi-legend {
    font-size: 10px;
    color: var(--color-text-gray);
}

.pbi-bar-chart {
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
    flex-grow: 1;
}

.pbi-bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pbi-bar-label {
    font-size: 11px;
    width: 50px;
    color: var(--color-text-gray);
}

.pbi-bar-container {
    flex-grow: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
}

.pbi-bar-fill {
    height: 100%;
    border-radius: 4px;
}

.pbi-bar-fill.fill-gold {
    background: linear-gradient(90deg, var(--color-primary) 0%, #FFA500 100%);
}

.pbi-bar-val {
    font-size: 11px;
    font-weight: 700;
    color: var(--color-text-white);
    width: 30px;
    text-align: right;
}

.pbi-gender-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.pbi-gender-item strong {
    color: var(--color-primary);
}

/* --- Ease of Voting Banner --- */
.easy-voting-banner {
    background: rgba(255, 215, 0, 0.02);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 32px;
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: 100%;
}

.easy-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--color-text-white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.easy-steps-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 900px;
    gap: 16px;
}

.easy-step {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.easy-num {
    width: 44px;
    height: 44px;
    background: var(--color-primary);
    color: #000;
    border-radius: 50%;
    font-size: 18px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.25);
    flex-shrink: 0;
}

.easy-info h4 {
    font-size: 14px;
    color: var(--color-primary);
    margin-bottom: 2px;
}

.easy-info p {
    font-size: 12px;
    color: var(--color-text-gray);
    line-height: 1.4;
}

.easy-arrow {
    font-size: 24px;
    color: rgba(255, 215, 0, 0.3);
}

/* --- Advert / CTA Banner --- */
.advert-cta-banner {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05) 0%, rgba(16, 185, 129, 0.03) 100%);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 40px;
    margin-top: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 100%;
}

.advert-content {
    max-width: 650px;
}

.advert-content h2 {
    font-size: 24px;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.advert-content p {
    font-size: 14px;
    color: var(--color-text-gray);
    line-height: 1.6;
}

.advert-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-shrink: 0;
    width: 220px;
}

.advert-actions .btn {
    width: 100%;
}

/* --- AI Command Center --- */
.command-center-grid {
    display: grid;
    grid-template-columns: 1.15fr 1.85fr;
    gap: 32px;
    margin-top: 40px;
}

.cc-stats-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cc-metric-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 16px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
}

.cc-metric-card:hover {
    border-color: var(--color-primary);
    transform: translateX(4px);
}

.cc-metric-icon {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.cc-metric-icon.bg-gold { background: rgba(255, 215, 0, 0.08); color: var(--color-primary); }
.cc-metric-icon.bg-emerald { background: rgba(16, 185, 129, 0.08); color: var(--color-success); }
.cc-metric-icon.bg-red { background: rgba(239, 68, 68, 0.08); color: var(--color-danger); }
.cc-metric-icon.bg-blue { background: rgba(59, 130, 246, 0.08); color: #3B82F6; }

.cc-metric-info {
    display: flex;
    flex-direction: column;
}

.cc-label {
    font-size: 11px;
    color: var(--color-text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cc-value {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
}

.cc-terminal-panel {
    background: #07080B;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    height: 330px;
    overflow: hidden;
}

.terminal-header {
    background: #111216;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.terminal-dot.red { background-color: #EF4444; }
.terminal-dot.yellow { background-color: #F59E0B; }
.terminal-dot.green { background-color: #10B981; }

.terminal-title {
    font-family: monospace;
    font-size: 10px;
    color: var(--color-text-gray);
    margin-left: 12px;
}

.terminal-pulse {
    margin-left: auto;
    font-size: 9px;
    font-weight: 800;
    color: var(--color-success);
    letter-spacing: 0.5px;
}

.terminal-body {
    padding: 16px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 11px;
    line-height: 1.6;
    color: #4ADE80; /* Terminal Green */
    overflow-y: auto;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.terminal-line {
    word-break: break-all;
}

.line-time {
    color: #9CA3AF;
}

.line-sys {
    color: #3B82F6;
    font-weight: 700;
}

.line-warn {
    color: #F59E0B;
    font-weight: 700;
}

/* Responsive Overrides for new elements */
@media (max-width: 992px) {
    .quick-guide-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .trending-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .slideshow-interactive-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .command-center-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .easy-steps-grid {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .easy-arrow {
        transform: rotate(90deg);
        align-self: center;
    }
    .advert-cta-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }
    .advert-actions {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .trending-grid {
        grid-template-columns: 1fr;
    }
    .pbi-grid {
        grid-template-columns: 1fr;
    }
    .pbi-chart-card.full-width {
        grid-column: span 1;
    }
    .pbi-gender-item {
        font-size: 11px;
    }
}

/* =========================================
   PORTAL DUAL-LOGO HEADER & STYLING RULES
   ========================================= */

.portal-header {
    background-color: var(--bg-dark);
    border-bottom: 1.5px solid var(--color-border);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.portal-header-top {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 20px;
}

.chanakya-logo {
    max-height: 120px;
    width: auto;
    transition: var(--transition);
}

.portal-title-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    gap: 4px;
}

.portal-main-title {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 900;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 1px;
    margin: 0;
    background: linear-gradient(135deg, #FFF 60%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.portal-subtitle-1 {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    color: var(--color-text-white);
    margin: 0;
}

.portal-subtitle-2 {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    color: var(--color-primary);
    letter-spacing: 0.5px;
    margin: 0;
}

/* 3-Button Navigation Bar */
.portal-nav-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 15px;
    padding: 0 20px;
}

.portal-nav-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--color-text-gray);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.portal-nav-btn:hover {
    background: rgba(255, 215, 0, 0.05);
    border-color: rgba(255, 215, 0, 0.3);
    color: var(--color-text-white);
}

.portal-nav-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #000;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.25);
}

/* Showcase Section Overrides */
.showcase-section {
    padding: 15px 0 40px 0;
}

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

.showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 40px;
    align-items: flex-start;
}

/* Active State Hiding/Layout rules (KIOSK Mode) */
.state-active-election #promo-hero-text {
    display: none !important;
}

.state-active-election #promo-showcase-content {
    display: none !important;
}

/* Hide navigation bar in Kiosk Mode */
.state-active-election .portal-nav-bar {
    display: none !important;
}

/* Hide the media/video showcase and categories hub in Kiosk Mode */
.state-active-election #how-to-vote-section,
.state-active-election #inactive-hero-hub {
    display: none !important;
}

/* Hide footer links in Kiosk Mode */
.state-active-election .footer-links {
    display: none !important;
}

/* Center and simplify footer content in Kiosk Mode */
.state-active-election .footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

/* Active Election Block Styling */
.active-election-portal-block {
    background-color: var(--bg-card);
    border-top: 1px solid var(--color-border);
    padding: 0 0 50px 0;
}

.portal-flex-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px 0 20px;
}

.org-logo-wrapper {
    background: #FFFFFF;
    border: 3px solid var(--color-primary);
    border-radius: 50%;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.15);
    margin-bottom: 20px;
    overflow: hidden;
    transition: var(--transition);
}

.org-logo-wrapper img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.active-election-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: 0.5px;
    margin-bottom: 30px;
    text-transform: uppercase;
}

/* Voting Targets Layout */
.voting-targets-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
    gap: 24px;
    width: 100%;
    max-width: 900px;
    margin-top: 10px;
}

.voter-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: var(--color-primary);
    border: 2px solid var(--color-primary);
    color: #000;
    font-family: var(--font-heading);
    padding: 24px 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.25);
    transition: var(--transition);
    animation: goldPulse 2s infinite ease-in-out;
    box-sizing: border-box;
}

@keyframes goldPulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(255, 215, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); }
}

.voter-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(255, 215, 0, 0.35);
}

.voter-action-img-link {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 2.5px solid var(--color-border);
    transition: var(--transition);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    box-sizing: border-box;
}

.voter-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.voter-action-img-link:hover {
    transform: translateY(-2px);
    border-color: var(--color-primary);
    box-shadow: 0 12px 30px rgba(255, 215, 0, 0.25);
}

.voter-action-img-link:hover .voter-banner-img {
    transform: scale(1.02);
}

.voter-qr-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 100%;
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 2.5px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 16px;
    box-sizing: border-box;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.qr-badge {
    background: #000;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    font-size: 10px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.5px;
}

.qr-code-frame {
    background: #FFFFFF;
    padding: 8px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--color-primary);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 220px;
    aspect-ratio: 1 / 1;
    box-sizing: border-box;
}

.qr-code-frame img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

/* =========================================
   RESPONSIVE COMPATIBILITY STYLES
   ========================================= */

@media (max-width: 768px) {
    body {
        padding-bottom: 75px !important; /* Reserve space for bottom navigation bar */
    }
    
    body.state-active-election {
        padding-bottom: 0 !important;
    }
    
    body.kiosk-body-active {
        padding-bottom: 0 !important;
    }
    
    body.show-how-to-vote {
        padding-bottom: 75px !important; /* Revert to single bar padding when category tabs are hidden */
    }

    .portal-header {
        position: static !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        box-shadow: none !important;
    }

    .portal-header-top {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .chanakya-logo.right-logo {
        display: none; /* Hide one logo on mobile to save vertical header space */
    }
    
    .portal-main-title {
        font-size: 18px;
    }
    
    .portal-subtitle-combined {
        font-size: 13px;
    }

    .chanakya-logo {
        max-height: 80px;
    }
    
    .portal-nav-bar {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        background: rgba(10, 10, 11, 0.96) !important;
        backdrop-filter: blur(15px) !important;
        -webkit-backdrop-filter: blur(15px) !important;
        border-top: 1.5px solid var(--color-border) !important;
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-around !important;
        align-items: center !important;
        padding: 10px 12px 14px 12px !important;
        margin: 0 !important;
        z-index: 2000 !important;
        box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.8) !important;
        gap: 0 !important;
    }
    
    .portal-nav-btn {
        flex: 1 !important;
        width: auto !important;
        font-size: 11px !important;
        padding: 10px 8px !important;
        border-radius: var(--radius-sm) !important;
        white-space: nowrap !important;
        text-align: center !important;
        justify-content: center !important;
        margin: 0 4px !important;
    }
    
    .hub-title, .hero-title {
        font-size: 32px !important;
        text-align: center !important;
    }
    .hub-subtitle, .hero-subtitle {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    .hub-category-tabs {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        width: 100% !important;
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border: none !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 8px 16px !important;
        margin: 0 0 20px 0 !important;
        z-index: 10 !important;
        box-shadow: none !important;
        gap: 8px !important;
        box-sizing: border-box !important;
    }
    
    .hub-category-tabs::-webkit-scrollbar {
        display: none !important; /* Seamless presentation */
    }

    .hub-cat-btn {
        flex: none !important;
        width: auto !important;
        justify-content: center !important;
        padding: 10px 20px !important;
        border-radius: 30px !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        white-space: nowrap !important;
        margin: 0 !important;
        border-width: 1px !important;
        gap: 8px !important;
    }

    .hub-cat-btn ion-icon {
        font-size: 14px !important;
    }

    .modal-card {
        padding: 20px !important;
        max-height: 95vh !important;
        border-radius: var(--radius-md) !important;
    }

    .hide-mobile {
        display: none !important;
    }

    .sim-phone-border-wrapper.sim-kiosk-active .sim-phone-frame {
        width: 100vw !important;
        height: 100vh !important;
        border: none !important;
        border-radius: 0 !important;
        transform: none !important;
        margin: 0 !important;
    }
    
    .showcase-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .hero-title {
        font-size: 32px;
        text-align: center;
    }
    
    .hero-subtitle {
        text-align: center;
    }
    
    .visitor-stats-card {
        margin: 0 auto;
    }
    
    /* Stacking targets grid on mobile */
    .voting-targets-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        max-width: 480px;
        margin: 0 auto;
    }

    /* Hide QR Code on Mobile */
    .voter-qr-box {
        display: none !important;
    }
    
    /* Expand touch target to full width on mobile screen */
    .voter-action-btn {
        width: 100%;
        padding: 18px 24px;
        font-size: 18px;
    }
}

/* Sticky Category Tab hiding states */
body.kiosk-body-active .hub-category-tabs {
    display: none !important;
}

body.kiosk-body-active .sim-exit-fullscreen-btn {
    display: block !important;
}

body.state-active-election .hub-category-tabs {
    display: none !important;
}


/* --- Dynamic Showcase Visibility Rules --- */

/* During active elections, hide the walkthrough instructions by default */
.state-active-election #how-to-vote-section {
    display: none;
}

/* If the user clicks "How to Vote" button during active election, reveal it */
.state-active-election.reveal-how-to-vote #how-to-vote-section {
    display: block !important;
    animation: slideDownFade 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideDownFade {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Hidden Admin Trigger Spot --- */
.hidden-admin-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-left: 6px;
    cursor: pointer;
    vertical-align: middle;
    text-decoration: none;
    z-index: 10;
}

.hidden-admin-trigger::after {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: transparent;
    transition: all 0.3s ease;
}

/* Lights up green on hover or touch */
.hidden-admin-trigger:hover::after,
.hidden-admin-trigger:active::after {
    background: #00FF66;
    box-shadow: 0 0 8px #00FF66, 0 0 15px #00FF66;
}

/* --- INACTIVE HERO HUB LAYOUT --- */
.inactive-hero-hub {
    padding: 15px 0 60px 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(255, 215, 0, 0.02) 50%, var(--bg-dark) 100%);
    border-bottom: 1.5px dashed rgba(255, 215, 0, 0.12);
}

.inactive-hub-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: flex-start;
}

.hub-right-simulator {
    order: 2;
}

.hub-left-content {
    order: 1;
}

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


.hub-subtitle {
    font-size: 14px;
    color: var(--color-text-gray);
    margin-bottom: 30px;
    line-height: 1.6;
    max-width: 600px;
}

.pulse-vote-container {
    display: inline-block;
    animation: votePulse 2.5s infinite ease-in-out;
    transform-origin: center center;
    vertical-align: middle;
}

.pulse-vote-text {
    font-weight: 900;
    background: linear-gradient(135deg, #FFD700 0%, #FF8C00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

@keyframes votePulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 0px rgba(255, 140, 0, 0));
    }
    50% {
        transform: scale(1.18);
        filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.55));
    }
}

/* --- CATEGORY SELECTOR TABS --- */
.hub-category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.hub-cat-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid rgba(255, 255, 255, 0.06);
    color: var(--color-text-gray);
    padding: 12px 24px;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.hub-cat-btn img, .hub-cat-btn ion-icon {
    font-size: 16px;
}

.hub-cat-btn:hover {
    border-color: rgba(255, 215, 0, 0.4);
    color: var(--color-text-white);
    transform: translateY(-1px);
}

.hub-cat-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #000;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.25);
}

/* --- CAROUSEL TOPIC CARDS --- */
.hub-cards-carousel {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (max-width: 640px) {
    .hub-cards-carousel {
        grid-template-columns: 1fr;
        justify-items: center;
    }
    
    .carousel-topic-card {
        justify-content: center !important;
        text-align: center !important;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .carousel-topic-card .topic-card-info {
        align-items: center !important;
    }
    
    .carousel-topic-card .topic-card-info p {
        text-align: center !important;
    }
}

.carousel-topic-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1.5px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 15px;
    box-sizing: border-box;
    text-align: left;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.carousel-topic-card .topic-card-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.carousel-topic-card:hover {
    border-color: rgba(255, 215, 0, 0.2);
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.carousel-topic-card.active {
    border-color: var(--color-primary);
    background: rgba(255, 215, 0, 0.03);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.1);
}

.topic-card-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    transition: var(--transition);
}

.carousel-topic-card.active .topic-card-icon {
    background: rgba(255, 215, 0, 0.12);
    border-color: var(--color-primary);
    color: var(--color-primary);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

.topic-card-info h3 {
    font-size: 14px;
    font-weight: 800;
    color: var(--color-text-white);
    margin-bottom: 0;
    line-height: 1.2;
    word-break: break-word;
    white-space: normal;
}

.topic-card-info p {
    font-size: 11px;
    color: var(--color-text-gray);
    line-height: 1.4;
    margin-bottom: 8px;
    word-break: break-word;
    white-space: normal;
}

.topic-card-cta {
    font-size: 10px;
    font-weight: 800;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- DYNAMIC HTML SMARTPHONE SIMULATOR --- */
.hub-right-simulator {
    display: flex;
    justify-content: center;
    align-items: center;
}

.dynamic-phone-screen {
    width: 100%;
    height: 100%;
    background-color: #0f1115;
    position: relative;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.sim-screen-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 40px 16px 20px 16px;
    box-sizing: border-box;
}

.sim-phone-header {
    width: 100%;
    height: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    font-weight: 800;
    color: var(--color-primary);
    border-bottom: 1.5px solid rgba(255, 215, 0, 0.1);
    padding-bottom: 6px;
    margin-bottom: 15px;
    box-sizing: border-box;
}

.sim-phone-live {
    font-size: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.sim-phone-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow: hidden;
}

.sim-phone-body.scrollable-body {
    overflow-y: auto;
    padding-right: 2px;
}

/* Hide scrollbar for Chrome/Safari */
.sim-phone-body.scrollable-body::-webkit-scrollbar {
    width: 4px;
}
.sim-phone-body.scrollable-body::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.2);
    border-radius: 4px;
}

.sim-title {
    font-size: 16px;
    font-weight: 900;
    color: var(--color-primary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
}

.sim-desc {
    font-size: 13px;
    color: var(--color-text-gray);
    line-height: 1.4;
    text-align: left;
}

.sim-form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.sim-input-label {
    font-size: 11px;
    font-weight: 800;
    color: var(--color-text-gray);
    text-transform: uppercase;
}

.sim-input, .sim-select {
    background: #07080a;
    border: 1.5px solid rgba(255, 215, 0, 0.2);
    color: #fff;
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 10px;
    font-family: var(--font-body);
    box-sizing: border-box;
}

.sim-input:focus, .sim-select:focus {
    border-color: var(--color-primary);
    outline: none;
}

.sim-action-btn {
    font-size: 14px;
    font-weight: 800;
    padding: 10px 16px !important;
    border-radius: 10px !important;
}

/* Candidates Ballot Cards */
.sim-ballot-header {
    text-align: left;
    margin-bottom: 12px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
}

.sim-ballot-header h4 {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
}

.sim-ballot-badge {
    font-size: 12px;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: 0.5px;
}

.sim-candidates-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sim-candidate-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    box-sizing: border-box;
    gap: 12px;
    min-height: 125px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: var(--transition);
}

.sim-candidate-card:hover {
    border-color: rgba(255, 215, 0, 0.25);
    background: rgba(255, 255, 255, 0.04);
}

.sim-cand-badge-num {
    position: absolute;
    top: 8px;
    left: 12px;
    font-size: 11px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.35);
    font-family: var(--font-heading);
}

.sim-cand-info-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center Name, Party, and Button vertically */
    flex-grow: 1;
    text-align: center;
    justify-content: center;
    padding-top: 5px;
}

.sim-cand-name-header {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 2px;
    text-align: center;
    width: 100%;
    font-family: var(--font-heading);
}

.sim-cand-party-sub {
    font-size: 11px;
    color: var(--color-text-gray);
    font-weight: 600;
    margin-bottom: 12px;
    text-align: center;
    width: 100%;
}

.sim-cand-photo-wrapper-v2 {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 215, 0, 0.25);
    background: #0f1219;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.sim-candidate-card:hover .sim-cand-photo-wrapper-v2 {
    transform: scale(1.08) rotate(3deg);
}

.sim-cand-photo-v2 {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sim-cand-photo-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.btn-sim-vote {
    background: var(--color-success);
    border: none;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-sim-vote:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

/* Confirm Card Screen */
.sim-confirm-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid var(--color-primary);
    border-radius: 12px;
    padding: 16px;
    box-sizing: border-box;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.sim-confirm-card h4 {
    font-size: 16px;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.sim-confirm-card p {
    font-size: 14px;
    color: var(--color-text-white);
    line-height: 1.4;
    margin-bottom: 15px;
}

.sim-confirm-actions {
    display: flex;
    gap: 8px;
}

.btn-sim-cancel {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-white);
    font-size: 13px;
    font-weight: 800;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-sim-confirm {
    flex: 1;
    background: var(--color-primary);
    border: 1.5px solid var(--color-primary);
    color: #000;
    font-size: 13px;
    font-weight: 800;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-sim-confirm:hover {
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

/* Results Screen */
.sim-results-header {
    text-align: left;
    margin-bottom: 12px;
}

.sim-results-header h4 {
    font-size: 14px;
    font-weight: 800;
    color: var(--color-primary);
}

.sim-total-votes {
    font-size: 11px;
    color: var(--color-text-gray);
    font-weight: 700;
}

.sim-results-bars {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sim-result-bar-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.sim-bar-label-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 800;
}

.sim-bar-name {
    color: var(--color-text-white);
}

.sim-bar-pct {
    color: var(--color-primary);
}

.sim-bar-track {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
}

.sim-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1s cubic-bezier(0.175, 0.885, 0.32, 1);
}

.sim-restart-btn {
    padding: 8px 16px !important;
    border-radius: 8px !important;
}

/* --- TOP 10 LEADERBOARD --- */
.leaderboard-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 900px;
    margin: 30px auto 0 auto;
}

.leaderboard-row {
    background: rgba(255, 255, 255, 0.02);
    border: 1.5px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-md);
    padding: 12px 20px;
    display: grid;
    grid-template-columns: 40px 1.5fr 2fr 80px;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    transition: var(--transition);
    box-sizing: border-box;
}

.leaderboard-row:hover {
    border-color: rgba(255, 215, 0, 0.2);
    background: rgba(255, 255, 255, 0.04);
    transform: translateX(4px);
}

.row-rank-box {
    font-size: 16px;
    font-weight: 900;
    color: var(--color-primary);
    font-family: var(--font-heading);
}

.row-info-box {
    text-align: left;
}

.row-category {
    font-size: 8px;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.row-info-box h3 {
    font-size: 14px;
    font-weight: 800;
    color: var(--color-text-white);
    margin-top: 2px;
}

.row-pct-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.row-pct-info {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    font-weight: 800;
}

.row-votes-val {
    color: var(--color-text-gray);
}

.row-pct-val {
    color: var(--color-primary);
}

.row-pct-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
}

.row-pct-fill {
    height: 100%;
    background-color: var(--color-primary);
    border-radius: 3px;
}

.row-btn {
    padding: 6px 12px !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    width: 100%;
    text-align: center;
}

@media (max-width: 768px) {
    .leaderboard-row {
        grid-template-columns: 30px 1.5fr 1fr;
        padding: 12px;
        gap: 12px;
    }
    
    .row-action-box {
        display: none;
    }
}

/* --- GLASSMORPHIC REQUEST MODAL OVERLAY --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    animation: fadeIn 0.3s ease;
}

.modal-card {
    background: #0f1115;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 30px;
    box-sizing: border-box;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 215, 0, 0.05);
    position: relative;
    animation: slideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-gray);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: var(--transition);
}

.modal-close-btn:hover {
    background: #EF4444;
    color: #fff;
    border-color: #EF4444;
}

.modal-header {
    text-align: center;
    margin-bottom: 25px;
}

.modal-header-icon {
    font-size: 36px;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 4px;
}

.modal-header p {
    font-size: 11px;
    color: var(--color-text-gray);
    line-height: 1.4;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.form-group label {
    font-size: 11px;
    font-weight: 800;
    color: var(--color-text-gray);
    text-transform: uppercase;
}

.form-group input, .form-group textarea {
    background: #07080a;
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    font-family: var(--font-body);
    width: 100%;
    box-sizing: border-box;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.1);
}

.btn-submit-form {
    width: 100%;
    padding: 12px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes scaleUp {
    from { transform: scale(0.6); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* --- NAVIGATION HIGHLIGHT --- */
.request-btn-highlight {
    background: rgba(255, 215, 0, 0.08) !important;
    border: 1.5px solid var(--color-primary) !important;
    color: var(--color-primary) !important;
}

.request-btn-highlight:hover {
    background: var(--color-primary) !important;
    color: #000 !important;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3) !important;
}


/* --- Fullscreen Kiosk Simulator Styling --- */
.sim-phone-border-wrapper.sim-kiosk-active,
.sim-phone-border-wrapper:fullscreen,
.sim-phone-border-wrapper:-webkit-full-screen,
.sim-phone-border-wrapper:-moz-full-screen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start !important; /* Touch the top of the physical screen */
    overflow-y: auto !important; /* Allow natural flow/scroll if needed */
    background-color: #0A0A0B !important;
    z-index: 99999 !important;
    transform: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    margin: 0 !important;
}

.sim-phone-border-wrapper.sim-kiosk-active .sim-phone-frame,
.sim-phone-border-wrapper:fullscreen .sim-phone-frame,
.sim-phone-border-wrapper:-webkit-full-screen .sim-phone-frame,
.sim-phone-border-wrapper:-moz-full-screen .sim-phone-frame {
    /* Transform property is left clear of !important so inline JS style can scale the frame */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.75) !important;
    border-radius: 40px !important;
    border: 12px solid #1c1c1e !important;
    width: 390px !important;
    height: 844px !important;
    background-color: #000 !important;
    position: relative !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
}

body.kiosk-body-active .sim-exit-fullscreen-btn,
.sim-phone-border-wrapper.sim-kiosk-active .sim-exit-fullscreen-btn,
.sim-phone-border-wrapper:fullscreen .sim-exit-fullscreen-btn,
.sim-phone-border-wrapper:-webkit-full-screen .sim-exit-fullscreen-btn,
.sim-phone-border-wrapper:-moz-full-screen .sim-exit-fullscreen-btn {
    display: inline-block !important;
}

.sim-phone-border-wrapper.sim-kiosk-active .phone-shadow,
.sim-phone-border-wrapper.sim-kiosk-active .studio-floor,
.sim-phone-border-wrapper:fullscreen .phone-shadow,
.sim-phone-border-wrapper:fullscreen .studio-floor,
.sim-phone-border-wrapper:-webkit-full-screen .phone-shadow,
.sim-phone-border-wrapper:-webkit-full-screen .studio-floor,
.sim-phone-border-wrapper:-moz-full-screen .phone-shadow,
.sim-phone-border-wrapper:-moz-full-screen .studio-floor {
    display: none !important;
}

/* Body lock when kiosk active */
body.kiosk-body-active {
    overflow: hidden !important;
    height: 100vh !important;
    width: 100vw !important;
}

/* Prevent containing block issues for fullscreen kiosk mode */
body.kiosk-body-active .interactive-simulator-wrapper,
body.kiosk-body-active .qr-showcase-wrapper {
    perspective: none !important;
}

.sim-phone-border-wrapper.sim-kiosk-active {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y pinch-zoom !important;
}

/* Floating Zoom Controls for Kiosk Mode */
.sim-kiosk-zoom-controls {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: none; /* Only visible in kiosk mode */
    flex-direction: column;
    gap: 8px;
    z-index: 100000; /* Above fullscreen simulator */
    background: rgba(15, 17, 21, 0.85);
    border: 1.5px solid rgba(255, 215, 0, 0.4);
    border-radius: 12px;
    padding: 6px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.sim-phone-border-wrapper.sim-kiosk-active .sim-kiosk-zoom-controls {
    display: flex;
}

.zoom-btn {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    background: rgba(255, 215, 0, 0.05);
    color: #FFD700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.zoom-btn:hover {
    background: #FFD700;
    color: #000;
    border-color: #FFD700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.zoom-btn:active {
    transform: scale(0.95);
}

/* --- 3D PRODUCT MATRIX SHOWCASE SECTION (PREMIUM UPGRADE) --- */
.hardware-showcase-section {
    position: relative;
    background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(255, 215, 0, 0.02) 50%, var(--bg-dark) 100%);
    border-top: 1.5px dashed rgba(255, 215, 0, 0.1);
    border-bottom: 1.5px dashed rgba(255, 215, 0, 0.1);
    overflow: hidden;
    padding: 80px 0;
}

.hardware-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

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

/* 3D Interactive Stage */
.hw-stage-wrapper {
    position: relative;
    width: 100%;
    height: 650px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at center, rgba(255, 215, 0, 0.05) 0%, transparent 70%);
    border-radius: var(--radius-lg);
    border: 1.5px solid rgba(255, 215, 0, 0.05);
    background-color: rgba(10, 10, 12, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    overflow: hidden;
    padding-bottom: 30px;
}

.gold-particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Scene Setup */
.hw-3d-card {
    position: relative;
    width: 290px;
    height: 500px;
    z-index: 2;
    transform-style: preserve-3d;
    perspective: 1500px;
    transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-chassis {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
    transform: rotateY(-15deg) rotateX(12deg);
}

/* Rotation Animation Mode */
.hw-3d-card.mode-orbit .phone-chassis {
    animation: rotate3DPhone 20s infinite linear;
}

@keyframes rotate3DPhone {
    0% {
        transform: rotateY(0deg) rotateX(10deg);
    }
    100% {
        transform: rotateY(360deg) rotateX(10deg);
    }
}

/* Exploded State Mode */
.hw-3d-card.mode-explode .phone-chassis {
    transform: rotateY(-38deg) rotateX(16deg);
}

/* Custom Tilt/Angle transitions on active callouts (zoom to hotspots) */
.hw-3d-card.zoom-ui .phone-chassis {
    transform: scale(1.1) rotateY(-5deg) rotateX(10deg);
}
.hw-3d-card.zoom-security .phone-chassis {
    transform: scale(1.1) rotateY(-40deg) rotateX(15deg) translateZ(20px);
}
.hw-3d-card.zoom-ledger .phone-chassis {
    transform: scale(1.15) rotateY(-50deg) rotateX(20deg) translateZ(-20px);
}
.hw-3d-card.zoom-button .phone-chassis {
    transform: scale(1.6) rotateY(-15deg) rotateX(25deg) translateY(-110px) translateZ(40px);
}

/* Outer Wireframe Ring */
.wireframe-ring {
    position: absolute;
    width: 440px;
    height: 440px;
    transform-style: preserve-3d;
    transform: rotateX(75deg) rotateY(15deg) translateZ(-20px);
    pointer-events: none;
    z-index: 0;
    transition: all 1.2s ease-in-out;
}

.hw-3d-card.mode-explode .wireframe-ring {
    transform: rotateX(75deg) rotateY(15deg) translateZ(-80px) scale(1.1);
}

.ring-svg {
    width: 100%;
    height: 100%;
    animation: spinRing 40s infinite linear;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.3));
}

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

.ring-label {
    position: absolute;
    font-family: var(--font-heading);
    font-size: 8px;
    font-weight: 800;
    color: rgba(255, 215, 0, 0.4);
    letter-spacing: 1px;
    white-space: nowrap;
    text-transform: uppercase;
}

.ring-label.label-1 { top: 0; left: 50%; transform: translateX(-50%); }
.ring-label.label-2 { bottom: 0; left: 50%; transform: translateX(-50%); }
.ring-label.label-3 { top: 50%; right: -20px; transform: translateY(-50%) rotate(90deg); }

/* Phone Layers Stacking */
.phone-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 36px;
    box-sizing: border-box;
    transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.8s ease, border-color 0.8s ease, box-shadow 0.8s ease;
    overflow: hidden;
    backface-visibility: visible;
}

.layer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 30%, rgba(0, 0, 0, 0.4) 100%);
    pointer-events: none;
    z-index: 5;
}

/* Layer 1: Back Cover (Ledger Layer) */
.layer-ledger {
    background: rgba(15, 18, 24, 0.95);
    border: 2px solid rgba(255, 215, 0, 0.25);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), inset 0 0 20px rgba(255, 215, 0, 0.05);
    transform: translateZ(-16px);
}

.hw-3d-card.mode-explode .layer-ledger {
    transform: translateZ(-95px);
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.15), inset 0 0 25px rgba(255, 215, 0, 0.1);
}

/* Layer 2: Middle PCB (Security Layer) */
.layer-security {
    background: rgba(10, 22, 16, 0.95);
    border: 2px solid rgba(16, 185, 129, 0.25);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.7), inset 0 0 20px rgba(16, 185, 129, 0.05);
    transform: translateZ(0px);
}

.hw-3d-card.mode-explode .layer-security {
    transform: translateZ(0px);
    border-color: rgba(16, 185, 129, 0.6);
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.15), inset 0 0 25px rgba(16, 185, 129, 0.1);
}

/* Layer 3: UI Screen Layer */
.layer-ui {
    background: #0f1115;
    border: 2.5px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
    transform: translateZ(16px);
}

.hw-3d-card.mode-explode .layer-ui {
    transform: translateZ(95px);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

/* Layer 4: Front Glass Layer */
.layer-glass {
    background: rgba(255, 255, 255, 0.02);
    border: 2px solid rgba(255, 255, 255, 0.15);
    transform: translateZ(18px);
    pointer-events: none;
}

.hw-3d-card.mode-explode .layer-glass {
    transform: translateZ(125px);
    border-color: rgba(255, 255, 255, 0.3);
    opacity: 0.8;
}

.glass-glare-effect {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0.02) 100%);
    transform: rotate(30deg);
}

.bezel-notch {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 22px;
    background: #000;
    border-radius: 12px;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Layer Captions in Exploded Mode */
.layer-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-heading);
    font-size: 9px;
    font-weight: 800;
    color: #8E9297;
    letter-spacing: 0.8px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 6;
    background: rgba(0, 0, 0, 0.6);
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.hw-3d-card.mode-explode .layer-caption {
    opacity: 1;
}

.layer-ledger .layer-caption { color: var(--color-primary); border-color: rgba(255, 215, 0, 0.2); }
.layer-security .layer-caption { color: #10B981; border-color: rgba(16, 185, 129, 0.2); }
.layer-ui .layer-caption { color: var(--color-text-white); }


/* UI Screen Mockup Contents */
.phone-screen-replica {
    width: 100%;
    height: 100%;
    padding: 38px 14px 14px 14px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    background: #0a0b0d;
}

.replica-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 8.5px;
    color: #ffffff;
    opacity: 0.6;
    margin-bottom: 8px;
    padding: 0 4px;
}

.replica-screen-header {
    font-family: var(--font-heading);
    font-size: 10px;
    font-weight: 900;
    color: var(--color-primary);
    letter-spacing: 0.5px;
    text-align: center;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.replica-screen-title {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 800;
    color: #ffffff;
    text-align: center;
    margin-bottom: 2px;
    letter-spacing: 0.2px;
}

.replica-screen-subtitle {
    font-size: 8.5px;
    font-weight: 700;
    color: var(--color-primary);
    opacity: 0.8;
    text-align: center;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.replica-candidates {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.replica-candidate {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    height: 52px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.replica-candidate.active {
    border-color: rgba(255, 215, 0, 0.2);
    background: rgba(255, 215, 0, 0.02);
}

.cand-meta {
    display: flex;
    flex-direction: column;
    text-align: left;
    width: 60%;
}

.cand-num {
    font-size: 7px;
    color: #8E9297;
    font-weight: 700;
}

.cand-name {
    font-family: var(--font-heading);
    font-size: 10px;
    font-weight: 800;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cand-party {
    font-size: 7.5px;
    color: #8E9297;
    font-weight: 600;
}

.cand-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1.5px solid #2d3748;
    background-color: #1a202c;
    background-size: cover;
    position: absolute;
    left: 120px;
}

.cand-avatar.red {
    border-color: #EF4444;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.2) 0%, #111 100%);
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}
.cand-avatar.green {
    border-color: #10B981;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, #111 100%);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}
.cand-avatar.yellow {
    border-color: #FBBF24;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.2) 0%, #111 100%);
    box-shadow: 0 0 8px rgba(251, 191, 36, 0.4);
}

/* Mini Blue Button Re-creation */
.mini-evm-button {
    width: 76px;
    height: 24px;
    background: linear-gradient(180deg, #1e3a8a 0%, #1e40af 100%);
    border: 1px solid #2d3748;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 2px;
    cursor: pointer;
    transition: all 0.1s ease;
}

.mini-evm-button .mini-btn-text {
    font-size: 5px;
    font-weight: 900;
    color: #FFD700;
    text-align: center;
    text-transform: uppercase;
    line-height: 1.1;
    letter-spacing: 0.1px;
}

.mini-evm-button.active-prompt {
    background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
    border-color: #FFD700;
    box-shadow: 0 0 6px rgba(255, 215, 0, 0.2);
}

.replica-candidate.active .mini-evm-button.success-flash {
    background: #1d4ed8 !important;
    border-color: #10B981 !important;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.8) !important;
}

.replica-candidate.active .mini-evm-button.success-flash .mini-btn-text {
    color: #10B981 !important;
}


/* Hardware Layer Visual Details */
.security-visuals {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.secure-processor-chip {
    padding: 10px 16px;
    background: #111;
    border: 2px solid #10B981;
    color: #10B981;
    border-radius: 10px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 1px;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
    z-index: 3;
}

.circuit-paths-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.7;
}

.status-indicator {
    position: absolute;
    top: 45px;
    right: 25px;
    font-size: 8px;
    font-weight: 800;
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
    padding: 3px 6px;
    border-radius: 6px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Ledger Vault Visuals */
.ledger-visuals {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    gap: 12px;
}

.ledger-db-cylinder {
    width: 44px;
    height: 52px;
    background: linear-gradient(90deg, #111317 0%, #20242d 50%, #111317 100%);
    border: 1.5px solid #FFD700;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.15);
    position: relative;
}

.ledger-db-cylinder::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255, 215, 0, 0.3);
}

.ledger-db-cylinder::after {
    content: '';
    position: absolute;
    top: 32px;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255, 215, 0, 0.3);
}

.ledger-core-chip {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 9px;
    color: #FFD700;
    letter-spacing: 0.5px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.2);
    padding: 3px 8px;
    border-radius: 6px;
}

.ledger-nodes {
    display: flex;
    gap: 25px;
    margin-top: 10px;
}

.ledger-nodes .node {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #FFD700;
    box-shadow: 0 0 8px #FFD700;
    display: inline-block;
}


/* Interactive Virtual Hand */
.virtual-hand-wireframe {
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 160px;
    height: 160px;
    pointer-events: none;
    z-index: 10;
    opacity: 0;
    transform: rotate(25deg);
    transition: all 1.2s cubic-bezier(0.25, 1, 0.5, 1);
    filter: drop-shadow(0 0 10px rgba(0, 191, 255, 0.5));
}

.virtual-hand-wireframe.approach {
    opacity: 1;
    bottom: 110px;
    left: 10px;
    transform: rotate(0deg);
}

.virtual-hand-wireframe.approach-active {
    opacity: 1;
    bottom: 155px;
    left: 45px;
    transform: rotate(-10deg) scale(0.92);
}

.hand-svg {
    width: 100%;
    height: 100%;
}


/* Showcase Control Bar styling */
.hw-controls-bar {
    position: absolute;
    bottom: 24px;
    display: flex;
    gap: 10px;
    background: rgba(15, 17, 21, 0.8);
    border: 1px solid rgba(255, 215, 0, 0.12);
    border-radius: 30px;
    padding: 5px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 20;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin-top: 20px;
}

.hw-ctrl-btn {
    background: transparent;
    border: none;
    outline: none;
    color: var(--color-text-gray);
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 18px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.hw-ctrl-btn ion-icon {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.hw-ctrl-btn.active {
    background: var(--color-primary);
    color: #000000;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.25);
}

.hw-ctrl-btn:hover:not(.active) {
    color: var(--color-text-white);
    background: rgba(255, 255, 255, 0.05);
}


/* Hotspots Styling Updates to stay relative to phone container */
.hw-3d-card .tech-hotspot {
    opacity: 0.85;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hw-3d-card.mode-orbit .tech-hotspot {
    pointer-events: none;
    opacity: 0.2;
}

.hw-3d-card.mode-interaction .tech-hotspot {
    pointer-events: none;
    opacity: 0.1;
}

.tech-hotspot.active .hotspot-dot {
    background-color: var(--color-primary);
    box-shadow: 0 0 12px var(--color-primary);
}


/* Interactive Sandbox & Detailed Callout panels */
.hw-callout-card {
    display: none;
    background: rgba(255, 255, 255, 0.02);
    border: 1.5px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: left;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: all 0.3s ease;
    animation: fadeIn 0.4s ease-out forwards;
}

.hw-callout-card.active {
    display: flex;
    gap: 16px;
}

.hw-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 215, 0, 0.1);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.hw-callout-card.active .hw-card-icon {
    background: var(--color-primary);
    color: #000;
}

.hw-callout-card h3 {
    font-size: 16px;
    font-weight: 800;
    color: var(--color-text-white);
    margin-bottom: 8px;
    font-family: var(--font-heading);
}

.hw-callout-card p {
    font-size: 13px;
    color: var(--color-text-gray);
    line-height: 1.5;
}

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

/* Tactile Sandbox */
.tactile-sandbox {
    background: rgba(255, 255, 255, 0.01);
    border: 1.5px solid rgba(255, 215, 0, 0.08);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: left;
    box-shadow: inset 0 0 20px rgba(255, 215, 0, 0.02);
}

.sandbox-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sandbox-desc {
    font-size: 12px;
    color: var(--color-text-gray);
    line-height: 1.4;
    margin-bottom: 24px;
}

.tactile-stage {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
}

/* Highly detailed tactile button recreation */
.tactile-evm-button {
    position: relative;
    cursor: pointer;
    user-select: none;
    transition: all 0.1s ease;
}

.tactile-switch-base {
    width: 220px;
    height: 80px;
    background: #0f1218;
    border: 3px solid #2d3748;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.6), inset 0 2px 4px rgba(255, 255, 255, 0.05);
    padding: 6px;
    box-sizing: border-box;
    display: flex;
    transition: all 0.1s ease;
}

.tactile-blue-panel {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #1e3a8a 0%, #1e40af 100%);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4), inset 0 2px 2px rgba(255, 255, 255, 0.1);
    padding: 5px;
    box-sizing: border-box;
    display: flex;
    transition: all 0.1s ease;
}

.tactile-gold-bezel {
    width: 100%;
    height: 100%;
    background: #111827;
    border: 2px solid #FFD700;
    border-radius: 5px;
    box-shadow: inset 0 0 10px rgba(255, 215, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    transition: all 0.1s ease;
}

.tactile-btn-text {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 900;
    color: #FFD700;
    text-align: center;
    line-height: 1.3;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.1s ease;
}

/* Hover State */
.tactile-evm-button:hover .tactile-blue-panel {
    background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5), inset 0 2px 2px rgba(255, 255, 255, 0.2);
}

.tactile-evm-button:hover .tactile-gold-bezel {
    box-shadow: inset 0 0 15px rgba(255, 215, 0, 0.4);
}

/* Active Pressed State */
.tactile-evm-button:active .tactile-switch-base {
    transform: translateY(4px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.8), inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

.tactile-evm-button:active .tactile-blue-panel {
    background: #1d4ed8;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.8);
}

.tactile-evm-button:active .tactile-gold-bezel {
    border-color: #FF8C00;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.9);
}

.tactile-evm-button:active .tactile-btn-text {
    color: #FF8C00;
    transform: scale(0.96);
}

/* Validation Flash State */
.tactile-evm-button.success-flash .tactile-gold-bezel {
    border-color: #10B981 !important;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.6), inset 0 0 10px rgba(16, 185, 129, 0.4) !important;
}

.tactile-evm-button.success-flash .tactile-btn-text {
    color: #10B981 !important;
}

.sandbox-status-text {
    font-size: 11px;
    font-weight: 700;
    color: var(--color-text-gray);
    margin-top: 16px;
    text-align: center;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.sandbox-status-text.active {
    color: #10B981;
    animation: textFlash 0.5s ease;
}

@keyframes textFlash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@media (max-width: 768px) {
    .hw-stage-wrapper {
        height: 520px;
    }
    
    .hw-3d-card {
        width: 210px;
        height: 380px;
    }
    
    .wireframe-ring {
        width: 320px;
        height: 320px;
    }
    
    .replica-status-bar {
        font-size: 7px;
    }
    
    .replica-screen-header {
        font-size: 8px;
    }
    
    .replica-screen-title {
        font-size: 9.5px;
    }
    
    .replica-screen-subtitle {
        font-size: 7px;
        margin-bottom: 6px;
    }
    
    .replica-candidate {
        height: 40px;
        padding: 4px 6px;
    }
    
    .cand-name {
        font-size: 8.5px;
    }
    
    .cand-party {
        font-size: 6px;
    }
    
    .cand-avatar {
        width: 18px;
        height: 18px;
        left: 90px;
    }
    
    .mini-evm-button {
        width: 58px;
        height: 18px;
    }
    
    .mini-evm-button .mini-btn-text {
        font-size: 4px;
    }
    
    .hw-controls-bar {
        bottom: 12px;
        padding: 3px;
    }
    
    .hw-ctrl-btn {
        font-size: 9px;
        padding: 5px 12px;
    }
    
    .virtual-hand-wireframe {
        width: 110px;
        height: 110px;
    }
    
    .virtual-hand-wireframe.approach {
        bottom: 90px;
        left: -10px;
    }
    
    .virtual-hand-wireframe.approach-active {
        bottom: 120px;
        left: 20px;
    }
}

/* --- PREMIUM 3D SIMULATOR OVERLAYS --- */
.hub-right-simulator, 
.interactive-simulator-wrapper {
    perspective: 1500px !important;
}

.sim-phone-border-wrapper {
    transform-style: preserve-3d !important;
    position: relative;
}

/* 3D Wireframe Ring behind the Simulator */
.sim-wireframe-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 440px;
    height: 440px;
    transform: translate(-50%, -50%) translateZ(-40px) rotateX(75deg);
    pointer-events: none;
    z-index: 1;
}

.sim-wireframe-ring .ring-svg {
    width: 100%;
    height: 100%;
    animation: spinRing 40s infinite linear;
    filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.2));
}

.sim-wireframe-ring .ring-label {
    position: absolute;
    font-family: var(--font-heading);
    font-size: 7px;
    font-weight: 800;
    color: rgba(255, 215, 0, 0.3);
    letter-spacing: 0.8px;
    white-space: nowrap;
    text-transform: uppercase;
}

.sim-wireframe-ring .ring-label.label-1 { top: 0; left: 50%; transform: translateX(-50%); }
.sim-wireframe-ring .ring-label.label-2 { bottom: 0; left: 50%; transform: translateX(-50%); }
.sim-wireframe-ring .ring-label.label-3 { top: 50%; right: -20px; transform: translateY(-50%) rotate(90deg); }

/* Side Layer Indicators on the Right */
.sim-side-layers {
    position: absolute;
    right: -170px;
    top: 50%;
    transform: translateY(-50%) translateZ(15px);
    display: flex;
    flex-direction: column;
    gap: 75px;
    width: 150px;
    pointer-events: none;
    z-index: 5;
    text-align: left;
}

.side-layer-item {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.85;
}

.side-layer-item .brace-mark {
    width: 6px;
    height: 38px;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-left: none;
    border-radius: 0 4px 4px 0;
    flex-shrink: 0;
}

.side-layer-item:nth-child(1) .brace-mark { border-color: rgba(255, 255, 255, 0.35); }
.side-layer-item:nth-child(2) .brace-mark { border-color: rgba(16, 185, 129, 0.35); }
.side-layer-item:nth-child(3) .brace-mark { border-color: rgba(255, 215, 0, 0.35); }

.side-layer-item .layer-text {
    font-family: var(--font-heading);
    font-size: 9px;
    font-weight: 800;
    color: var(--color-text-gray);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1.2;
}

.side-layer-item:nth-child(1) .layer-text { color: var(--color-text-white); }
.side-layer-item:nth-child(2) .layer-text { color: #10B981; }
.side-layer-item:nth-child(3) .layer-text { color: var(--color-primary); }

/* Exploded Button Detail at the Bottom Right */
.sim-button-exploded-detail {
    position: absolute;
    right: -130px;
    bottom: 20px;
    transform: translateZ(30px);
    display: flex;
    align-items: center;
    gap: 15px;
    pointer-events: none;
    z-index: 5;
}

.detail-btn-replica {
    width: 68px;
    height: 32px;
    background: #0f1218;
    border: 1px solid #2d3748;
    border-radius: 4px;
    padding: 2px;
    box-sizing: border-box;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    display: flex;
}

.replica-blue {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #1e3a8a 0%, #1e40af 100%);
    border-radius: 3px;
    padding: 1.5px;
    box-sizing: border-box;
    display: flex;
}

.replica-gold {
    width: 100%;
    height: 100%;
    background: #111827;
    border: 1px solid #FFD700;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.replica-gold span {
    font-family: var(--font-heading);
    font-size: 3.5px;
    font-weight: 900;
    color: #FFD700;
    text-align: center;
    line-height: 1.2;
    text-transform: uppercase;
}

.detail-labels {
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-align: left;
}

.detail-labels .lbl-item {
    font-size: 7.5px;
    font-weight: 700;
    color: var(--color-text-gray);
    letter-spacing: 0.2px;
    white-space: nowrap;
    text-transform: uppercase;
}

.detail-labels .lbl-item.lbl-1 { color: var(--color-text-white); font-weight: 800; }
.detail-labels .lbl-item.lbl-3 { color: #3b82f6; }
.detail-labels .lbl-item.lbl-4 { color: var(--color-primary); }

/* Responsive Overlays scaling and hiding */
@media (max-width: 1200px) {
    .sim-side-layers {
        right: -130px;
        gap: 65px;
        width: 110px;
    }
    .sim-side-layers .layer-text {
        font-size: 8px;
    }
    .sim-button-exploded-detail {
        right: -100px;
        bottom: 5px;
    }
}

@media (max-width: 992px) {
    /* Hide side profile detail elements on smaller viewports to prevent layout overflow */
    .sim-side-layers,
    .sim-button-exploded-detail,
    .sim-wireframe-ring {
        display: none !important;
    }
}

/* =========================================
   CINEMATIC SPLIT SCREEN PORTAL STYLES
   ========================================= */

.active-election-portal-block {
    background: #0A0A0B !important;
    padding: 0 !important;
    border-bottom: 2px solid var(--color-primary);
}

.cinematic-portal-container {
    display: flex;
    flex-direction: row;
    min-height: 500px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* Left Side: Carousel */
.cinematic-carousel-wrapper {
    flex: 0 0 60%;
    position: relative;
    height: auto;
    min-height: 500px;
    background: #121215;
    overflow: hidden;
}

.cinematic-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 1;
    transition: opacity 1.5s ease-in-out;
}

.cinematic-carousel-slide.active {
    opacity: 1;
    z-index: 2;
}
.ken-burns-bg-blur {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background-size: cover;
    background-position: center;
    filter: blur(20px) brightness(0.3);
    transform: scale(1.05);
    transition: transform 10s ease-out;
    z-index: 1;
}

.cinematic-carousel-slide.active .ken-burns-bg-blur {
    transform: scale(1.15) translate(10px, -5px);
}

.cinematic-center-img {
    position: absolute;
    top: 5%;
    left: 5%;
    width: 90%;
    height: 90%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 2;
    transform: scale(0.98);
    transition: transform 10s ease-out;
}

.cinematic-carousel-slide.active .cinematic-center-img {
    transform: scale(1.02);
}

.cinematic-carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(10, 10, 11, 0) 50%, rgba(10, 10, 11, 0.9) 100%),
                linear-gradient(0deg, rgba(10, 10, 11, 0.4) 0%, rgba(10, 10, 11, 0) 100%);
    z-index: 3;
    pointer-events: none;
}

/* Right Side: Glass Action Panel */
.glass-action-panel {
    flex: 0 0 40%;
    background: rgba(18, 18, 21, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    z-index: 4;
    border-left: 1px solid rgba(255, 215, 0, 0.15);
    text-align: center;
    box-sizing: border-box;
}

.org-logo-wrapper-new {
    width: 80px;
    height: 80px;
    background: #FFFFFF;
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
    margin-bottom: 20px;
    overflow: hidden;
}

.org-logo-wrapper-new img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.glass-action-panel .active-election-title {
    font-size: 26px;
    margin-bottom: 30px;
    text-shadow: 0 2px 10px rgba(255, 215, 0, 0.1);
}

.cinematic-actions-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: 100%;
    max-width: 320px;
}

.voter-qr-box-new {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: var(--radius-md);
    padding: 16px;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.voter-action-btn-new {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: linear-gradient(135deg, var(--color-primary) 0%, #FFA500 100%);
    color: #000;
    font-family: var(--font-heading);
    font-weight: 900;
    padding: 20px 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.3);
    text-decoration: none;
    transition: var(--transition);
    animation: goldPulseCinematic 2.5s infinite ease-in-out;
}

@keyframes goldPulseCinematic {
    0% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(255, 215, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); }
}

.voter-action-btn-new:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(255, 215, 0, 0.45);
    color: #000;
}

.voter-action-btn-new .vote-btn-text {
    font-size: 18px;
    letter-spacing: 0.5px;
}

.voter-action-btn-new .vote-btn-sub {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    opacity: 0.75;
    margin-top: 4px;
}

/* Responsive Cinematic Layout */
@media (max-width: 991px) {
    .cinematic-portal-container {
        flex-direction: column;
        min-height: auto;
    }
    
    .cinematic-carousel-wrapper {
        flex: 0 0 auto;
        height: 350px;
        min-height: auto;
    }
    
    .cinematic-carousel-overlay {
        background: linear-gradient(0deg, rgba(10, 10, 11, 0.9) 10%, rgba(10, 10, 11, 0) 100%),
                    linear-gradient(90deg, rgba(10, 10, 11, 0.4) 0%, rgba(10, 10, 11, 0.4) 100%);
    }
    
    .glass-action-panel {
        flex: 0 0 auto;
        width: 100%;
        padding: 30px 20px;
        border-left: none;
        border-top: 1px solid rgba(255, 215, 0, 0.15);
    }
}

@media (max-width: 600px) {
    .voter-qr-box-new {
        display: none !important;
    }
    
    .cinematic-carousel-wrapper {
        height: 250px;
    }
    
    .glass-action-panel .active-election-title {
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    .voter-action-btn-new {
        padding: 16px 12px;
    }
}

/* Celebrating Leaders: Falling Flower Petals */
.flower-shower {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    overflow: hidden;
    opacity: 0;
    transition: opacity 1s ease;
}

.cinematic-carousel-slide.active.candidate-slide .flower-shower {
    opacity: 1;
}

.petal {
    position: absolute;
    background: radial-gradient(circle, #ffb7c5 0%, #ff8da1 100%); /* Elegant Rose Pink */
    border-radius: 150% 0 150% 150%;
    width: 15px;
    height: 15px;
    opacity: 0.8;
    animation: fallPetal 6s linear infinite;
}

/* Generate multiple petals with different paths, delays and sizes */
.petal:nth-child(1) { left: 10%; width: 12px; height: 12px; animation-duration: 5s; animation-delay: 0s; }
.petal:nth-child(2) { left: 25%; width: 16px; height: 16px; animation-duration: 7s; animation-delay: 1.5s; }
.petal:nth-child(3) { left: 40%; width: 10px; height: 10px; animation-duration: 4.5s; animation-delay: 0.5s; }
.petal:nth-child(4) { left: 55%; width: 14px; height: 14px; animation-duration: 6.5s; animation-delay: 2s; }
.petal:nth-child(5) { left: 70%; width: 18px; height: 18px; animation-duration: 8s; animation-delay: 1s; }
.petal:nth-child(6) { left: 85%; width: 12px; height: 12px; animation-duration: 5.5s; animation-delay: 3s; }
.petal:nth-child(7) { left: 20%; width: 14px; height: 14px; animation-duration: 6s; animation-delay: 4s; }
.petal:nth-child(8) { left: 50%; width: 11px; height: 11px; animation-duration: 5s; animation-delay: 3.5s; }
.petal:nth-child(9) { left: 75%; width: 15px; height: 15px; animation-duration: 7.5s; animation-delay: 2.5s; }
.petal:nth-child(10) { left: 90%; width: 13px; height: 13px; animation-duration: 6.2s; animation-delay: 0.8s; }

@keyframes fallPetal {
    0% {
        top: -10%;
        transform: translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        top: 110%;
        transform: translateX(80px) rotate(360deg);
        opacity: 0;
    }
}

/* Finalized Logo Styles */
.brand-logo-wrapper {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
}

.brand-logo-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-svg-logo {
    flex-shrink: 0;
}

.brand-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 42px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.01em;
    color: #FFFFFF;
}

.brand-title span {
    color: var(--color-blue, #00A2E8);
}

.brand-tagline {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 900;
    color: #FFFFFF;
    margin-top: 10px;
    text-transform: uppercase;
    opacity: 0.95;
    width: 100%;
    text-align: center;
    letter-spacing: 0.1em;
}

@keyframes tilakPulse {
    0% { filter: drop-shadow(0 0 2px rgba(217, 26, 26, 0.4)); }
    50% { filter: drop-shadow(0 0 8px rgba(217, 26, 26, 0.8)); }
    100% { filter: drop-shadow(0 0 2px rgba(217, 26, 26, 0.4)); }
}

.tilak-path {
    animation: tilakPulse 3s infinite ease-in-out;
}

/* Rotating Chanakya Logo Styles */
.chanakya-logo-wrapper {
    position: relative;
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chanakya-logo-wrapper .rotating-svg {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.chanakya-logo-wrapper .chanakya-center-img {
    position: absolute;
    width: 65%; /* Mathematically centered within SVG inner ring (r=32.5) */
    height: 65%;
    border-radius: 50%;
    z-index: 1;
    object-fit: cover;
}

@keyframes spinRing {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.rotating-group {
    animation: spinRing 25s linear infinite;
    transform-origin: 50px 50px;
    will-change: transform;
    transform: translate3d(0, 0, 0); /* Force crisp GPU vector rendering */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

/* Mobile responsive sizing for the rotating logo wrapper */
@media (max-width: 991px) {
    .chanakya-logo.chanakya-logo-wrapper {
        width: 80px !important;
        height: 80px !important;
    }
}

/* Logo Transition Keyframe Animations & Sizing */
.brand-logo {
    height: 120px;
    width: auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
    mix-blend-mode: screen; /* Makes the black background of the image transparent */
    transition: opacity 1.2s ease-in-out;
}

.logo-commission {
    margin-top: -50px;
    margin-bottom: -50px;
    animation: logoCrossFadeCommission 10s infinite ease-in-out;
}

.logo-company {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    opacity: 0;
    pointer-events: none;
    animation: logoCrossFadeCompany 10s infinite ease-in-out;
}

@keyframes logoCrossFadeCommission {
    0%, 45% { opacity: 1; pointer-events: auto; }
    50%, 95% { opacity: 0; pointer-events: none; }
    100% { opacity: 1; pointer-events: auto; }
}

@keyframes logoCrossFadeCompany {
    0%, 45% { opacity: 0; pointer-events: none; }
    50%, 95% { opacity: 1; pointer-events: auto; }
    100% { opacity: 0; pointer-events: none; }
}

/* Responsive adjustment for logo images on smaller screens */
@media (max-width: 768px) {
    .brand-logo {
        height: 80px;
    }
    .logo-commission {
        margin-top: -20px;
        margin-bottom: -20px;
    }
}

/* --- HEADER SOCIAL ACTIONS (LIKE & SHARE) --- */
.header-social-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    z-index: 100;
    flex-shrink: 0;
}

.social-action-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md, 8px);
    padding: 7px 12px;
    color: var(--color-text-white, #FFF);
    font-family: var(--font-heading);
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    width: 85px;
    justify-content: center;
    outline: none;
}

.social-action-btn ion-icon {
    font-size: 13px;
    transition: transform 0.2s ease;
}

/* Like Button Styles */
.social-action-btn.like-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.4);
    color: #EF4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
    transform: translateY(-2px);
}

.social-action-btn.like-btn.liked {
    background: rgba(239, 68, 68, 0.2);
    border-color: #EF4444;
    color: #EF4444;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
}

.social-action-btn.like-btn.liked ion-icon {
    transform: scale(1.2);
    color: #EF4444;
}

/* Share Button Styles */
.social-action-btn.share-btn:hover {
    background: rgba(0, 162, 232, 0.1);
    border-color: rgba(0, 162, 232, 0.4);
    color: #00A2E8;
    box-shadow: 0 0 10px rgba(0, 162, 232, 0.2);
    transform: translateY(-2px);
}

/* Adjustments for smaller viewports (hide or shift to horizontal layout) */
@media (max-width: 991px) {
    .header-social-actions {
        flex-direction: row;
        margin-right: 0;
        margin-top: 10px;
    }
}

@media (max-width: 600px) {
    .header-social-actions {
        display: flex !important;
        flex-direction: row;
        justify-content: center;
        margin-right: 0;
        margin-top: 10px;
        width: 100%;
        gap: 12px;
    }
    .social-action-btn {
        width: auto;
        min-width: 95px;
        padding: 8px 14px;
        font-size: 10px;
    }
}


