/* Secure Voting Platform - Main Stylesheet */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary: #64748b;
    --success: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #0ea5e9;
    --light: #f8fafc;
    --dark: #1e293b;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --border-radius: 0.5rem;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--gray-50);
}

/* Layout: keep footer at bottom on short pages */
html, body { height: 100%; }
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
.footer { margin-top: auto; }

/* Center small-content pages (e.g., access/registration gateway) */
.main-center { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.main-center > * { width: 100%; }


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

a, a:hover, a:focus, a:active {
    text-decoration: none;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.container-sm {
    max-width: 600px;
}

.container-md {
    max-width: 800px;
}

/* Header */
.header {
    position: fixed;
     padding: 1rem 0; 
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 900; /* keep below drawer overlay (1100) so overlay covers header */
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
}

body.has-public-header main {
    padding-top: var(--public-header-h, 72px);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
}

.logo svg {
    width: 28px;
    height: 28px;
    color: var(--primary);
}

/* Brand logo images */
.brand-logo {
    display: block;
    height: 40px;      
    width: auto;
    max-width: 240px;  
    object-fit: contain;
}

.brand-logo--mobile {
    height: 30px;      
    max-width: 240px;  
    object-fit: contain;
}

.brand-logo--sidebar {
    height: 30px;      
    max-width: 210px;  
    object-fit: contain;
}

.brand-logo--topbar {
    height: 24px;      
    max-width: 190px;  
    object-fit: contain;
}

.brand-logo--auth {
    height: 30px;     
    max-width: 280px;
    object-fit: contain;
}

.logo .brand-logo--auth {
    height: 50px !important;
    max-width: 280px !important;
    width: auto !important;
}

.logo {
    line-height: 1;
}

/* End of brand logo images */

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

.nav a {
    color: var(--gray-600);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: all 0.2s;
}

.nav a:hover {
    color: var(--gray-900);
    background: var(--gray-100);
    text-decoration: none;
}

.nav a.active {
    color: var(--primary);
    background: rgba(37, 99, 235, 0.1);
}

/* Mobile Navigation */
.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-300);
    background: var(--white);
    color: var(--gray-700);
    cursor: pointer;
    transition: all 0.2s;
}

.nav-toggle:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

.nav-toggle svg {
    width: 22px;
    height: 22px;
}

/* Public mobile drawer */
.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;

    width: min(88vw, 380px);
    background: var(--white);
    border-left: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);

    transform: translateX(110%);
    transition: transform 0.55s cubic-bezier(0.2, 0.9, 0.2, 1);

    z-index: 1200;

    display: flex;
    flex-direction: column;

    padding: 1rem;
    padding-top: calc(1rem + env(safe-area-inset-top));
    padding-bottom: calc(1rem + env(safe-area-inset-bottom));

    max-height: 100dvh;
    max-height: calc(var(--vh, 1vh) * 100);

    overflow: hidden;
}

.mobile-nav.is-open {
    transform: translateX(0);
}

/* Drawer heading and branding */
.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;

    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--gray-200);
}

.mobile-nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.mobile-nav-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.10);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.mobile-nav-mark svg {
    width: 22px;
    height: 22px;
}

.mobile-nav-title {
    font-weight: 700;
    color: var(--gray-900);
    font-size: 1.05rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-nav-close {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    background: var(--white);
    color: var(--gray-700);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.mobile-nav-close:hover {
    background: var(--gray-100);
}

.mobile-nav-close:active {
    transform: scale(0.98);
}

.mobile-nav-close svg {
    width: 20px;
    height: 20px;
}

/* Mobile Drawer body links */
.mobile-nav-body {
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-nav-section-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0.9rem 0.95rem;
    border-radius: 14px;

    color: var(--gray-800);
    text-decoration: none;

    border: 1px solid transparent;
    background: transparent;

    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.mobile-nav-link:hover {
    background: var(--gray-50);
    border-color: var(--gray-200);
    text-decoration: none;
}

.mobile-nav-link:active {
    transform: scale(0.99);
}

.mobile-nav-link.active {
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.18);
    color: var(--primary-dark);
}

.mobile-nav-chevron {
    color: var(--gray-400);
    font-size: 1.25rem;
    line-height: 1;
}

.mobile-nav-link.active .mobile-nav-chevron {
    color: var(--primary);
}

/* Mobile drawer footer */
.mobile-nav-footer {
    padding-top: 0.75rem;
    border-top: 1px solid var(--gray-200);
}

.mobile-nav-footer .btn {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1rem;
    border-radius: 14px;
}


/* Hide hamburger while drawer is open (prevents “two icons” look) */
.nav-toggle.is-open {
    opacity: 0;
    pointer-events: none;
}

/* Shared overlay for drawers */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 1100;
}

.drawer-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

/* Admin mobile topbar and overlay */
.admin-topbar {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 900;
}

.admin-topbar-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--gray-900);
    font-size: 1rem;
}

.admin-topbar-title svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-300);
    background: var(--white);
    color: var(--gray-700);
    cursor: pointer;
}

.menu-toggle.is-open {
    opacity: 0;
    pointer-events: none;
}

.menu-toggle svg {
    width: 22px;
    height: 22px;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 950;
}

/* Slick sticky header behavior */
.header {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.header.is-hidden {
    transform: translateY(-110%);
}

.header.is-elevated {
    box-shadow: var(--shadow-md);
}

.admin-topbar {
  transform: translateY(0);
  transition: transform 220ms ease, box-shadow 220ms ease, background-color 220ms ease, backdrop-filter 220ms ease;
  will-change: transform;
}

.admin-topbar.is-hidden {
  transform: translateY(-110%);
}

.admin-topbar.is-elevated {
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
}


/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--border-radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn:hover {
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: var(--white);
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
    border-color: var(--gray-300);
}

.btn-secondary:hover {
    background: var(--gray-200);
    color: var(--gray-900);
}

.btn-success {
    background: var(--success);
    color: var(--white);
}

.btn-success:hover {
    background: #16a34a;
    color: var(--white);
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}

.btn-danger:hover {
    background: #dc2626;
    color: var(--white);
}

.btn-outline {
    background: transparent;
    border-color: var(--gray-300);
    color: var(--gray-700);
}

.btn-outline:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}



/* Disabled button state (works for <a> and <button>) */
.btn.is-disabled,
.btn.disabled,
.btn[aria-disabled="true"] {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--gray-200);
    background: var(--gray-50);
}

/* Forms */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.375rem;
}

.form-control {
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 0.9375rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-control::placeholder {
    color: var(--gray-400);
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

.form-text {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin-top: 0.375rem;
}

.form-error {
    color: var(--danger);
    font-size: 0.8125rem;
    margin-top: 0.375rem;
}

/* Alerts */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.alert-info {
    background: #e0f2fe;
    color: #075985;
    border: 1px solid #bae6fd;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
}

.badge-primary {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
}

.badge-secondary {
    background: var(--gray-100);
    color: var(--gray-600);
}

.badge-success {
    background: #dcfce7;
    color: #166534;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-info {
    background: #e0f2fe;
    color: #075985;
}

.badge-dark {
    background: var(--gray-800);
    color: var(--white);
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
}

/* Horizontal scroll wrapper for tables on small screens */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-responsive .table {
    min-width: 720px;
}

.table th,
.table td {
    padding: 0.875rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.table th {
    font-weight: 600;
    color: var(--gray-700);
    background: var(--gray-50);
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.table tbody tr:hover {
    background: var(--gray-50);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Features Grid */
.features {
    padding: 4rem 0;
    background: var(--gray-100);
}

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

.feature-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.9375rem;
    color: var(--gray-600);
}

/* Steps */
.steps {
    padding: 4rem 0;
}

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

.step-number {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.step h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.step p {
    font-size: 0.875rem;
    color: var(--gray-600);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--gray-600);
}

/* Footer */
.footer {
    padding: 2rem 0;
    border-top: 1px solid var(--gray-200);
    text-align: center;
}

.footer .footer-tagline {
    text-align: left;
}

.footer p {
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* Admin Sidebar */
.admin-layout {
    display: flex;
    /*min-height: 100vh;*/
}

.sidebar {
    width: 260px;
    background: var(--gray-900);
    color: var(--white);
    padding: 1.5rem 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    max-height: 100dvh;
    max-height: calc(var(--vh, 1vh) * 100);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-top: calc(1.5rem + env(safe-area-inset-top));
    padding-bottom: calc(1rem + env(safe-area-inset-bottom));
}

.sidebar-header {
    padding: 0 1.5rem 1.5rem;
    border-bottom: 1px solid var(--gray-700);
    margin-bottom: 1rem;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    font-size: 1.125rem;
    font-weight: 600;
}

.sidebar-logo svg {
    width: 24px;
    height: 24px;
    color: var(--primary-light);
}

.sidebar-nav {
    padding: 0 0.75rem;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--gray-400);
    border-radius: var(--border-radius);
    margin-bottom: 0.25rem;
    transition: all 0.2s;
}

.sidebar-nav a:hover {
    background: var(--gray-800);
    color: var(--white);
    text-decoration: none;
}

.sidebar-nav a.active {
    background: var(--primary);
    color: var(--white);
}

.sidebar-nav svg {
    width: 20px;
    height: 20px;
}

.sidebar-section {
    padding: 1rem 1.5rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--gray-700);
    margin-top: auto;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gray-400);
    font-size: 0.875rem;
}

/* Admin user meta (sidebar footer) */
.sidebar-user-meta {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.sidebar-user-name {
    font-weight: 500;
    color: var(--white);
    line-height: 1.2;
}

.sidebar-user-role {
    font-size: 0.75rem;
    color: var(--gray-400);
    line-height: 1.2;
}

.sidebar-user-avatar {
    width: 36px;
    height: 36px;
    background: var(--gray-700);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 2rem;
}

/* Admin main: keep footer pinned to bottom on short pages */
.admin-layout .main-content {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}


.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
}

/* Admin sidebar drawer enhancements */
.sidebar {
    will-change: transform;
    transition: transform 0.35s ease;
}

.sidebar-close {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.06);
    color: var(--white);
    cursor: pointer;
}

.sidebar-close svg {
    width: 20px;
    height: 20px;
}

/* Voting Ballot */
.ballot {
    max-width: 800px;
    margin: 0 auto;
}

.ballot-office {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.ballot-office-header {
    padding: 1.25rem 1.5rem;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.ballot-office-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
}

.ballot-office-desc {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-top: 0.25rem;
}

.ballot-candidates {
    padding: 1rem;
}

.ballot-candidate {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.ballot-candidate:hover {
    border-color: var(--primary-light);
    background: rgba(37, 99, 235, 0.02);
}

.ballot-candidate.selected {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.05);
}

.ballot-candidate input[type="radio"],
.ballot-candidate input[type="checkbox"] {
    margin-top: 0.25rem;
}

.candidate-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--gray-200);
}

.candidate-info {
    flex: 1;
}

.candidate-name {
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.candidate-details {
    font-size: 0.875rem;
    color: var(--gray-600);
}

/* Progress Bar */
.progress {
    height: 8px;
    background: var(--gray-200);
    border-radius: 9999px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--primary);
    border-radius: 9999px;
    transition: width 0.3s;
}

/* Results */
.result-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    margin-bottom: 0.75rem;
}

.result-item.winner {
    border-color: var(--success);
    background: rgba(34, 197, 94, 0.05);
}

.result-rank {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-400);
    width: 30px;
}

.result-item.winner .result-rank {
    color: var(--success);
}

.result-info {
    flex: 1;
}

.result-name {
    font-weight: 600;
    color: var(--gray-900);
}

.result-votes {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.result-percentage {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
}

/* Utilities */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--gray-500); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-primary { color: var(--primary); }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 2rem; }

.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }

.footer-powered{
  margin-top: .5rem;
  font-size: .85rem;
  opacity: .9;
}

.footer-powered a{
  text-decoration: none;
  font-weight: 600;
}

.footer-powered a:hover{
  text-decoration: none;
}


/* Responsive */
@media (max-width: 768px) {
    /* Public header */
    .header {
        position: fixed;
    }

    .header-content {
        position: relative;
    }

    .nav {
        display: none; /* hide desktop nav */
    }

    .nav-toggle {
        display: inline-flex; /* show hamburger */
    }

    /* .mobile-nav.is-open {
        display: block;
    } */

    /* Hero */
    .hero {
        padding: 3rem 0;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero p {
        font-size: 1rem;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Admin */
    .admin-topbar {
        display: flex;
    }

    .main-content {
        padding: 1.25rem;
    }

    .page-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .page-header .btn,
    .page-header .btn-group,
    .page-header a.btn {
        width: 100%;
        justify-content: center;
    }

    /* Admin drawer: premium mobile experience */
    .sidebar {
        top: 0;
        left: 0;
        bottom: 0;
        width: min(88vw, 360px);
        background: var(--white);
        color: var(--gray-900);
        border-right: 1px solid var(--gray-200);
        box-shadow: var(--shadow-lg);
        transform: translateX(-110%);
        transition: transform 0.55s cubic-bezier(0.2, 0.9, 0.2, 1);
        z-index: 1200;
        display: flex;
        flex-direction: column;
        padding: 1rem;
        padding-top: calc(1rem + env(safe-area-inset-top));
        padding-bottom: calc(1rem + env(safe-area-inset-bottom));
        height: auto;
        max-height: 100dvh;
        max-height: calc(var(--vh, 1vh) * 100);
        overflow: hidden;
    }

    .sidebar-user-avatar {
        color: var(--gray-700);
    }

    .sidebar-user-name {
        color: var(--gray-900);
    }

    .sidebar-user-role {
        color: var(--gray-600);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    /* Admin drawer header */
    .sidebar-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        padding: 0 0 0.75rem;
        margin-bottom: 0.75rem;
        border-bottom: 1px solid var(--gray-200);
    }

    .sidebar-logo {
        color: var(--gray-900);
    }

    .sidebar-logo svg {
        color: var(--primary);
    }

    /* Close button matches public drawer style */
    .sidebar-close {
        display: inline-flex;
        width: 44px;
        height: 44px;
        border-radius: 12px;
        border: 1px solid var(--gray-200);
        background: var(--white);
        color: var(--gray-700);
        transition: background 0.2s ease, transform 0.2s ease;
    }

    .sidebar-close:hover { background: var(--gray-100); }
    .sidebar-close:active { transform: scale(0.98); }

    .sidebar-close svg {
        width: 20px;
        height: 20px;
    }

    /* Drawer body scrolls, not the page */
    .sidebar-nav {
        padding: 0;
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Links feel like the public menu */
    .sidebar-nav a {
        color: var(--gray-800);
        padding: 0.9rem 0.95rem;
        border-radius: 14px;
        border: 1px solid transparent;
        background: transparent;
        transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    }

    .sidebar-nav a:hover {
        background: var(--gray-50);
        border-color: var(--gray-200);
    }

    .sidebar-nav a:active {
        transform: scale(0.99);
    }

    .sidebar-nav a.active {
        background: rgba(37, 99, 235, 0.08);
        border-color: rgba(37, 99, 235, 0.18);
        color: var(--primary-dark);
    }

    /* Footer like public drawer */
    .sidebar-footer {
        margin-top: auto;
        padding: 0.75rem 0 0;
        border-top: 1px solid var(--gray-200);
    }

    .sidebar-user {
        color: var(--gray-600);
    }

    .sidebar-user-avatar {
        background: var(--gray-100);
        color: var(--gray-600);
    }

    .main-content {
        margin-left: 0;
        padding: 1.25rem;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    /* Tables */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table {
        min-width: 720px;
    }

    /* Ballot candidates */
    .ballot-candidate {
        flex-direction: column;
        gap: 0.75rem;
    }

    .candidate-photo {
        width: 56px;
        height: 56px;
    }

    .sidebar-close {
        display: inline-flex;
    }

    .sidebar-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
    }
    
    .page-title {
        margin-top: 1.5rem;
        
    }

    .main-center {
        display: flex;
        flex-direction: column;
        align-items: start;
        justify-content: flex-start;
    }

    /* Offset admin content below fixed mobile topbar */
    body.has-admin-shell .main-content {
        padding-top: calc(1.25rem + var(--admin-topbar-h, 56px));
    }

    .footer .footer-tagline {
        text-align: center;
    }

}

@media (max-width: 560px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        margin-bottom: 1.25rem;
    }

    .stat-card {
        padding: 1rem;
        border-radius: 0.75rem;
        box-shadow: var(--shadow-sm);
    }

    .stat-label {
        font-size: 0.75rem;
        letter-spacing: 0.02em;
    }

    .stat-value {
        font-size: clamp(1.5rem, 9vw, 2.1rem);
        line-height: 1.1;
    }
}


/* =====================================================
   HOMEPAGE ENHANCEMENTS - Multi-tenant SaaS
   ===================================================== */

/* Hero Subtext */
.hero-subtext {
    font-size: 0.875rem !important;
    color: var(--gray-500) !important;
    margin-top: 1rem !important;
}

/* Trust Section */
.trust-section {
    padding: 2rem 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.trust-icon {
    width: 44px;
    height: 44px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.trust-icon svg {
    width: 22px;
    height: 22px;
    color: var(--primary);
}

.trust-content {
    display: flex;
    flex-direction: column;
}

.trust-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.2;
}

.trust-label {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

/* For Organizations Section */
.for-orgs {
    padding: 4rem 0;
    background: var(--white);
}

.org-types-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.org-type-card {
    padding: 1.5rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    transition: all 0.2s;
}

.org-type-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.org-type-icon {
    width: 48px;
    height: 48px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.org-type-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.org-type-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.org-type-card p {
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.5;
}

/* Dual Steps Layout */
.steps-dual {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 3rem;
    align-items: start;
}

.steps-divider {
    width: 1px;
    background: var(--gray-200);
    align-self: stretch;
}

.steps-column {
    text-align: left;
}

.steps-column-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
}

.steps-column-icon {
    width: 36px;
    height: 36px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.steps-column-icon svg {
    width: 18px;
    height: 18px;
    color: var(--primary);
}

.steps-list {
    margin-bottom: 1.5rem;
}

.step-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

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

.step-item .step-number {
    width: 32px;
    height: 32px;
    font-size: 0.875rem;
    margin: 0;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.step-content p {
    font-size: 0.8125rem;
    color: var(--gray-600);
    margin: 0;
}

/* CTA Section */
.cta-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    text-align: center;
}

.cta-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-section .btn-primary {
    background: var(--white);
    color: var(--primary);
}

.cta-section .btn-primary:hover {
    background: var(--gray-100);
}

.cta-section .btn-outline {
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--white);
}

.cta-section .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

/* =====================================================
   STATIC PAGES - About, Contact, Terms, Privacy
   ===================================================== */

/* Page Hero (smaller than homepage) */
.page-hero {
    padding: 3rem 0;
    background: var(--gray-100);
    text-align: center;
    border-bottom: 1px solid var(--gray-200);
}

.page-hero h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.page-hero p {
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

/* Content Section */
.content-section {
    padding: 3rem 0;
}

.content-section.alt {
    background: var(--gray-100);
}

/* Prose Content (for legal pages) */
.prose {
    max-width: 800px;
    margin: 0 auto;
    color: var(--gray-700);
    line-height: 1.75;
}

.prose h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.prose h2:first-child {
    margin-top: 0;
}

.prose h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.prose p {
    margin-bottom: 1rem;
}

.prose ul, .prose ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.prose li {
    margin-bottom: 0.5rem;
}

.prose a {
    color: var(--primary);
    text-decoration: underline;
}

.prose a:hover {
    color: var(--primary-dark);
}

.prose strong {
    font-weight: 600;
    color: var(--gray-900);
}

.prose .last-updated {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

/* About Page */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.about-value {
    text-align: center;
    padding: 1.5rem;
}

.about-value-icon {
    width: 64px;
    height: 64px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.about-value-icon svg {
    width: 32px;
    height: 32px;
    color: var(--primary);
}

.about-value h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.about-value p {
    font-size: 0.9375rem;
    color: var(--gray-600);
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    padding: 2rem;
    background: var(--gray-100);
    border-radius: var(--border-radius);
}

.contact-info h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.contact-method:last-child {
    margin-bottom: 0;
}

.contact-method-icon {
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.contact-method-icon svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.contact-method-content h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.contact-method-content p {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin: 0;
}

.contact-method-content a {
    color: var(--primary);
}

.contact-form-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2rem;
}

.contact-form-card h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
}

/* Footer Links */
.footer-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--gray-500);
    font-size: 0.875rem;
    transition: color 0.2s;
}

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

.footer-powered {
    color: var(--gray-400);
    font-size: 0.8125rem;
    margin-top: 0.5rem;
}

.footer-powered a {
    color: var(--gray-500);
}

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

/* =====================================================
   RESPONSIVE - New Sections
   ===================================================== */

@media (max-width: 992px) {
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .org-types-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-dual {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .steps-divider {
        width: 100%;
        height: 1px;
    }

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

    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .trust-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .trust-content {
        align-items: center;
    }

    .org-types-grid {
        grid-template-columns: 1fr;
    }

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

    .page-hero h1 {
        font-size: 1.75rem;
    }

    .cta-content h2 {
        font-size: 1.5rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }
}

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

    .steps-column .btn {
        width: 100%;
    }
}


/* =====================================================
   LUXURY DESIGN SYSTEM
   Premium, professional aesthetic with smooth animations
   ===================================================== */

:root {
    /* Luxury Color Palette */
    --luxury-navy: #0a1628;
    --luxury-navy-light: #1a2d4a;
    --luxury-gold: #c9a227;
    --luxury-gold-light: #e4c65b;
    --luxury-cream: #faf9f6;
    --luxury-slate: #64748b;
    
    /* Luxury Gradients */
    --gradient-luxury: linear-gradient(135deg, #0a1628 0%, #1a2d4a 50%, #0a1628 100%);
    --gradient-gold: linear-gradient(135deg, #c9a227 0%, #e4c65b 50%, #c9a227 100%);
    --gradient-text: linear-gradient(135deg, #2563eb 0%, #7c3aed 50%, #2563eb 100%);
    --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 100%);
    
    /* Luxury Shadows */
    --shadow-luxury: 0 4px 20px rgba(10, 22, 40, 0.08);
    --shadow-luxury-lg: 0 8px 40px rgba(10, 22, 40, 0.12);
    --shadow-luxury-xl: 0 20px 60px rgba(10, 22, 40, 0.15);
    --shadow-glow: 0 0 40px rgba(37, 99, 235, 0.15);
    
    /* Luxury Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* =====================================================
   HERO SECTION - LUXURY
   ===================================================== */

.hero-luxury {
    position: relative;
    padding: 8rem 0 6rem;
    background: linear-gradient(180deg, var(--luxury-cream) 0%, #fff 100%);
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(124, 58, 237, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(37, 99, 235, 0.02) 0%, transparent 40%);
    pointer-events: none;
}

.hero-luxury .container {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero-badge-luxury {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

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

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-title-luxury {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--luxury-navy);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

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

.hero-subtitle-luxury {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--gray-600);
    margin-bottom: 2rem;
    max-width: 520px;
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.hero-note {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* Luxury Buttons */
.btn-luxury {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.btn-luxury-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-luxury-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    color: #fff;
}

.btn-luxury-secondary {
    background: #fff;
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-luxury);
}

.btn-luxury-secondary:hover {
    background: var(--gray-50);
    border-color: var(--gray-300);
    transform: translateY(-2px);
    color: var(--gray-900);
}

.btn-luxury-white {
    background: #fff;
    color: var(--luxury-navy);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.btn-luxury-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    color: var(--luxury-navy);
}

.btn-luxury-outline-white {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-luxury-outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

/* Hero Visual Cards */
.hero-visual {
    position: relative;
    height: 400px;
}

.hero-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow-luxury-lg);
    border: 1px solid rgba(0, 0, 0, 0.04);
    animation: float 6s ease-in-out infinite;
}

.hero-card-1 {
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.hero-card-2 {
    top: 40%;
    left: 5%;
    animation-delay: -2s;
}

.hero-card-3 {
    bottom: 15%;
    right: 20%;
    animation-delay: -4s;
}

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

.hero-card-icon {
    width: 48px;
    height: 48px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-card-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.hero-card-content {
    display: flex;
    flex-direction: column;
}

.hero-card-label {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-card-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--luxury-navy);
}

/* =====================================================
   TRUST SECTION - LUXURY
   ===================================================== */

.trust-luxury {
    padding: 3rem 0;
    background: #fff;
    border-top: 1px solid var(--gray-100);
    border-bottom: 1px solid var(--gray-100);
}

.trust-grid-luxury {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.trust-item-luxury {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: 16px;
    transition: var(--transition-smooth);
}

.trust-item-luxury:hover {
    background: #fff;
    box-shadow: var(--shadow-luxury);
    transform: translateY(-2px);
}

.trust-icon-luxury {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.trust-icon-luxury svg {
    width: 28px;
    height: 28px;
    color: var(--primary);
}

.trust-text-luxury {
    display: flex;
    flex-direction: column;
}

.trust-number {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--luxury-navy);
}

.trust-label-luxury {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* =====================================================
   SECTION HEADERS - LUXURY
   ===================================================== */

.section-header-luxury {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3.5rem;
}

.section-badge {
    display: inline-block;
    padding: 0.375rem 1rem;
    background: rgba(37, 99, 235, 0.08);
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-header-luxury h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--luxury-navy);
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.section-header-luxury p {
    font-size: 1.125rem;
    color: var(--gray-600);
    line-height: 1.6;
}

/* =====================================================
   ACTIVE ELECTIONS - LUXURY
   ===================================================== */

.active-elections-luxury {
    padding: 5rem 0;
    background: linear-gradient(180deg, #fff 0%, var(--gray-50) 100%);
}

.elections-grid-luxury {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.5rem;
}

.election-card-luxury {
    background: #fff;
    border-radius: 20px;
    padding: 1.75rem;
    box-shadow: var(--shadow-luxury);
    border: 1px solid var(--gray-100);
    transition: var(--transition-smooth);
}

.election-card-luxury:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-luxury-lg);
}

.election-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.election-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--success);
}

.status-dot {
    width: 6px;
    height: 6px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

.election-deadline {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.election-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--luxury-navy);
    margin-bottom: 0.5rem;
}

.election-desc {
    font-size: 0.9375rem;
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.election-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-election {
    flex: 1;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.btn-election-primary {
    background: var(--primary);
    color: #fff;
}

.btn-election-primary:hover {
    background: var(--primary-dark);
    color: #fff;
}

.btn-election-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
}

.btn-election-secondary:hover {
    background: var(--gray-200);
    color: var(--gray-900);
}

/* =====================================================
   FEATURES SECTION - LUXURY
   ===================================================== */

.features-luxury {
    padding: 6rem 0;
    background: #fff;
}

.features-grid-luxury {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card-luxury {
    padding: 2rem;
    background: var(--gray-50);
    border-radius: 20px;
    border: 1px solid transparent;
    transition: var(--transition-smooth);
}

.feature-card-luxury:hover {
    background: #fff;
    border-color: var(--gray-200);
    box-shadow: var(--shadow-luxury-lg);
    transform: translateY(-4px);
}

.feature-icon-luxury {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(124, 58, 237, 0.08) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: var(--transition-smooth);
}

.feature-card-luxury:hover .feature-icon-luxury {
    background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
}

.feature-icon-luxury svg {
    width: 32px;
    height: 32px;
    color: var(--primary);
    transition: var(--transition-smooth);
}

.feature-card-luxury:hover .feature-icon-luxury svg {
    color: #fff;
}

.feature-card-luxury h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--luxury-navy);
    margin-bottom: 0.75rem;
}

.feature-card-luxury p {
    font-size: 0.9375rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* =====================================================
   ORGANIZATIONS SECTION - LUXURY
   ===================================================== */

.orgs-luxury {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--gray-50) 0%, #fff 100%);
}

.orgs-grid-luxury {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.org-card-luxury {
    padding: 2rem;
    background: #fff;
    border-radius: 20px;
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-luxury);
    transition: var(--transition-smooth);
    text-align: center;
}

.org-card-luxury:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-luxury-xl);
    border-color: rgba(37, 99, 235, 0.2);
}

.org-icon-luxury {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    transition: var(--transition-smooth);
}

.org-card-luxury:hover .org-icon-luxury {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
}

.org-icon-luxury svg {
    width: 36px;
    height: 36px;
    color: var(--gray-500);
    transition: var(--transition-smooth);
}

.org-card-luxury:hover .org-icon-luxury svg {
    color: var(--primary);
}

.org-card-luxury h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--luxury-navy);
    margin-bottom: 0.5rem;
}

.org-card-luxury p {
    font-size: 0.9375rem;
    color: var(--gray-600);
    line-height: 1.6;
}

/* =====================================================
   HOW IT WORKS - LUXURY
   ===================================================== */

.how-it-works-luxury {
    padding: 6rem 0;
    background: #fff;
}

.process-wrapper {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 3rem;
    align-items: start;
}

.process-column {
    padding: 2.5rem;
    background: var(--gray-50);
    border-radius: 24px;
    border: 1px solid var(--gray-100);
}

.process-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.process-icon-wrapper {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.process-icon-wrapper svg {
    width: 28px;
    height: 28px;
    color: #fff;
}

.process-header h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--luxury-navy);
}

.process-steps {
    margin-bottom: 2rem;
}

.process-step {
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.process-step:last-child {
    border-bottom: none;
}

.step-number-luxury {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    opacity: 0.6;
}

.step-content-luxury h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--luxury-navy);
    margin-bottom: 0.25rem;
}

.step-content-luxury p {
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.5;
}

.process-column .btn-luxury {
    width: 100%;
    justify-content: center;
}

.process-divider-luxury {
    width: 1px;
    background: linear-gradient(180deg, transparent 0%, var(--gray-300) 20%, var(--gray-300) 80%, transparent 100%);
    min-height: 400px;
}

/* =====================================================
   CTA SECTION - LUXURY
   ===================================================== */

.cta-luxury {
    position: relative;
    padding: 6rem 0;
    background: var(--gradient-luxury);
    overflow: hidden;
}

.cta-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(124, 58, 237, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.cta-content-luxury {
    position: relative;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content-luxury h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.cta-content-luxury p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.cta-buttons-luxury {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* =====================================================
   PAGE HERO - LUXURY (for About, Contact, etc.)
   ===================================================== */

.page-hero-luxury {
    padding: 5rem 0 3rem;
    background: linear-gradient(180deg, var(--luxury-cream) 0%, #fff 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero-luxury::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 30% 50%, rgba(37, 99, 235, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(124, 58, 237, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.page-hero-luxury .container {
    position: relative;
}

.page-hero-luxury h1 {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--luxury-navy);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.page-hero-luxury p {
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

/* =====================================================
   ABOUT PAGE - LUXURY
   ===================================================== */

.about-section-luxury {
    padding: 5rem 0;
}

.about-section-luxury.alt {
    background: var(--gray-50);
}

.about-intro-luxury {
    max-width: 800px;
    margin: 0 auto;
}

.about-intro-luxury h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--luxury-navy);
    margin-bottom: 1.5rem;
}

.about-intro-luxury p {
    font-size: 1.0625rem;
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.about-intro-luxury p:last-child {
    margin-bottom: 0;
}

.values-grid-luxury {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.value-card-luxury {
    padding: 2rem;
    background: #fff;
    border-radius: 20px;
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-luxury);
    text-align: center;
    transition: var(--transition-smooth);
}

.value-card-luxury:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-luxury-lg);
    border-color: rgba(37, 99, 235, 0.15);
}

.value-icon-luxury {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(124, 58, 237, 0.08) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    transition: var(--transition-smooth);
}

.value-card-luxury:hover .value-icon-luxury {
    background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
}

.value-icon-luxury svg {
    width: 36px;
    height: 36px;
    color: var(--primary);
    transition: var(--transition-smooth);
}

.value-card-luxury:hover .value-icon-luxury svg {
    color: #fff;
}

.value-card-luxury h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--luxury-navy);
    margin-bottom: 0.75rem;
}

.value-card-luxury p {
    font-size: 0.9375rem;
    color: var(--gray-600);
    line-height: 1.7;
}

.about-how-it-works {
    max-width: 800px;
    margin: 0 auto;
}

.about-how-it-works h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--luxury-navy);
    margin-bottom: 1.5rem;
}

.about-how-it-works h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--luxury-navy);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.about-how-it-works p {
    font-size: 1.0625rem;
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.about-how-it-works ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.about-how-it-works li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    color: var(--gray-600);
    line-height: 1.7;
}

.about-how-it-works li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.6;
}

.about-how-it-works li strong {
    color: var(--luxury-navy);
    font-weight: 600;
}

.about-how-it-works a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.about-how-it-works a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* =====================================================
   CONTACT PAGE - LUXURY
   ===================================================== */

.contact-section-luxury {
    padding: 5rem 0;
}

.contact-grid-luxury {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: start;
}

.contact-info-luxury {
    padding: 2.5rem;
    background: linear-gradient(135deg, var(--luxury-navy) 0%, var(--luxury-navy-light) 100%);
    border-radius: 24px;
    color: #fff;
}

.contact-info-luxury h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.contact-info-luxury > p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.contact-method-luxury {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    margin-bottom: 1rem;
    transition: var(--transition-smooth);
}

.contact-method-luxury:hover {
    background: rgba(255, 255, 255, 0.12);
}

.contact-method-luxury:last-child {
    margin-bottom: 0;
}

.contact-method-icon-luxury {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-method-icon-luxury svg {
    width: 24px;
    height: 24px;
    color: #fff;
}

.contact-method-content-luxury h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-method-content-luxury p {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.contact-method-content-luxury a {
    color: #fff;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.contact-method-content-luxury a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.contact-form-luxury {
    padding: 2.5rem;
    background: #fff;
    border-radius: 24px;
    box-shadow: var(--shadow-luxury-lg);
    border: 1px solid var(--gray-100);
}

.contact-form-luxury h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--luxury-navy);
    margin-bottom: 1.5rem;
}

.form-group-luxury {
    margin-bottom: 1.5rem;
}

.form-label-luxury {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.form-label-luxury .required {
    color: var(--danger);
}

.form-control-luxury {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    background: var(--gray-50);
    color: var(--gray-800);
    transition: var(--transition-smooth);
}

.form-control-luxury:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.form-control-luxury::placeholder {
    color: var(--gray-400);
}

textarea.form-control-luxury {
    min-height: 150px;
    resize: vertical;
}

.form-text-luxury {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin-top: 0.375rem;
}

.form-row-luxury {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.btn-submit-luxury {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-submit-luxury:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.alert-luxury {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
}

.alert-luxury.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #166534;
}

.alert-luxury.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #991b1b;
}

/* FAQ Section */
.faq-section-luxury {
    padding: 5rem 0;
    background: var(--gray-50);
}

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

.faq-item-luxury {
    padding: 1.75rem;
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--gray-100);
    transition: var(--transition-smooth);
}

.faq-item-luxury:hover {
    box-shadow: var(--shadow-luxury);
    border-color: rgba(37, 99, 235, 0.15);
}

.faq-item-luxury h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--luxury-navy);
    margin-bottom: 0.5rem;
}

.faq-item-luxury p {
    font-size: 0.9375rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0;
}

/* =====================================================
   RESPONSIVE - LUXURY DESIGN
   ===================================================== */

@media (max-width: 1200px) {
    .hero-luxury .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        max-width: 700px;
        margin: 0 auto;
    }
    
    .hero-subtitle-luxury {
        max-width: 100%;
    }
    
    .hero-cta-group {
        justify-content: center;
    }
    
    .hero-visual {
        display: none;
    }
}

@media (max-width: 992px) {
    .trust-grid-luxury {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid-luxury {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .orgs-grid-luxury {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .process-divider-luxury {
        display: none;
    }
    
    .values-grid-luxury {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid-luxury {
        grid-template-columns: 1fr;
    }
    
    .faq-grid-luxury {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-luxury {
        padding: 5rem 0 4rem;
    }
    
    .hero-title-luxury {
        font-size: 2.5rem;
    }
    
    .hero-cta-group {
        flex-direction: column;
    }
    
    .btn-luxury {
        width: 100%;
        justify-content: center;
    }
    
    .trust-grid-luxury {
        grid-template-columns: 1fr;
    }
    
    .trust-item-luxury {
        justify-content: center;
    }
    
    .section-header-luxury h2 {
        font-size: 2rem;
    }
    
    .features-grid-luxury {
        grid-template-columns: 1fr;
    }
    
    .orgs-grid-luxury {
        grid-template-columns: 1fr;
    }
    
    .values-grid-luxury {
        grid-template-columns: 1fr;
    }
    
    .page-hero-luxury h1 {
        font-size: 2rem;
    }
    
    .cta-content-luxury h2 {
        font-size: 2rem;
    }
    
    .cta-buttons-luxury {
        flex-direction: column;
    }
    
    .form-row-luxury {
        grid-template-columns: 1fr;
    }
    
    .contact-info-luxury,
    .contact-form-luxury {
        padding: 1.75rem;
    }
}

@media (max-width: 480px) {
    .hero-title-luxury {
        font-size: 2rem;
    }
    
    .section-header-luxury h2 {
        font-size: 1.75rem;
    }
    
    .process-column {
        padding: 1.5rem;
    }
}


/* =====================================================
   SMOOTH ANIMATIONS & SCROLL EFFECTS
   ===================================================== */

/* Scroll-triggered fade-in animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Animation classes for scroll reveal */
.animate-on-scroll {
    opacity: 0;
}

.animate-on-scroll.animated {
    animation-duration: 0.6s;
    animation-fill-mode: both;
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-fade-up.animated {
    animation-name: fadeInUp;
}

.animate-fade-left.animated {
    animation-name: fadeInLeft;
}

.animate-fade-right.animated {
    animation-name: fadeInRight;
}

.animate-scale.animated {
    animation-name: scaleIn;
}

/* Staggered animation delays */
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
.animate-delay-5 { animation-delay: 0.5s; }
.animate-delay-6 { animation-delay: 0.6s; }

/* Smooth page transitions */
.page-transition {
    animation: pageEnter 0.4s ease-out;
}

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

/* Button hover effects */
.btn-luxury::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
    pointer-events: none;
}

.btn-luxury {
    position: relative;
    overflow: hidden;
}

.btn-luxury:hover::after {
    opacity: 1;
}

/* Card hover lift effect */
.card-lift {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-lift:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-luxury-xl);
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Focus states for accessibility */
.btn-luxury:focus,
.form-control-luxury:focus,
.btn-submit-luxury:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

/* Loading spinner for forms */
.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.btn-loading span {
    opacity: 0;
}

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

/* Subtle pulse animation for live indicators */
@keyframes subtle-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

.pulse-subtle {
    animation: subtle-pulse 2s ease-in-out infinite;
}

/* Gradient text animation */
@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.gradient-text-animated {
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
}

/* Smooth image loading */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

img[data-src] {
    opacity: 0;
}

img.loaded {
    opacity: 1;
}

/* Progress bar for page loading */
.page-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, #7c3aed 100%);
    z-index: 9999;
    transition: width 0.3s ease;
}

.page-progress.complete {
    width: 100%;
    opacity: 0;
    transition: width 0.3s ease, opacity 0.3s ease 0.3s;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .hero-card {
        animation: none;
    }
}
