/* ================================================
   AMAR VOTE — Modern, Trustworthy, GenZ-Ready UI
   ================================================ */

/* === CSS Variables === */
:root {
    --primary: #0F172A;
    --primary-light: #1E293B;
    --accent: #2563EB;
    --accent-hover: #1D4ED8;
    --accent-light: #DBEAFE;
    --green: #059669;
    --green-light: #D1FAE5;
    --red: #DC2626;
    --red-light: #FEE2E2;
    --amber: #F59E0B;
    --amber-light: #FEF3C7;
    --teal: #0EA5E9;
    --bg: #F8FAFC;
    --bg-card: #FFFFFF;
    --text: #1E293B;
    --text-secondary: #64748B;
    --text-muted: #94A3B8;
    --border: #E2E8F0;
    --border-hover: #CBD5E1;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.1);
    --radius: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    --transition: 0.2s ease;
    --font-en: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-bn: 'Noto Sans Bengali', 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-en);
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
}

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

a:hover {
    color: var(--accent-hover);
}

/* === Container === */
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === Navbar === */
.navbar {
    background: var(--primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(15,23,42,0.15);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
}

.brand-icon {
    font-size: 1.4rem;
}

.brand-text {
    background: linear-gradient(135deg, #fff 0%, #a5d8ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: var(--transition);
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 4px;
}

.nav-link {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all var(--transition);
}

.nav-link:hover {
    color: white;
    background: rgba(255,255,255,0.1);
}

.nav-link-cta {
    background: var(--accent);
    color: white !important;
    font-weight: 600;
}

.nav-link-cta:hover {
    background: var(--accent-hover);
}

.nav-link-outline {
    border: 1px solid rgba(255,255,255,0.3);
}

.nav-link-outline:hover {
    border-color: rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.05);
}

/* === Main Content === */
.main-content {
    flex: 1;
    padding: 32px 0 48px;
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    color: var(--primary);
}

h1 { font-size: 1.8rem; font-weight: 800; }
h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 12px; }
h3 { font-size: 1.15rem; font-weight: 600; }

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 22px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-en);
    transition: all var(--transition);
    line-height: 1.4;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--teal));
    color: white;
    box-shadow: 0 4px 14px rgba(37,99,235,0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(37,99,235,0.45);
    color: white;
}

.btn-secondary {
    background: var(--primary-light);
    color: white;
    margin-left: 8px;
}

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

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

.btn-success:hover {
    background: #047857;
    color: white;
}

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

.btn-danger:hover {
    background: #B91C1C;
    color: white;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.82rem;
    border-radius: 8px;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--text);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-light);
}

/* === Cards === */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

/* === Forms === */
.form-container {
    background: var(--bg-card);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    max-width: 460px;
    margin: 0 auto;
    border: 1px solid var(--border);
}

.form-container h2 {
    text-align: center;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 18px;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    font-family: var(--font-en);
    color: var(--text);
    background: var(--bg);
    transition: all var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
    background: white;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: var(--text-muted);
    font-size: 0.82rem;
}

/* === Messages === */
.error {
    color: #991B1B;
    background: var(--red-light);
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
    border-left: 4px solid var(--red);
    font-size: 0.9rem;
    font-weight: 500;
}

.success {
    color: #065F46;
    background: var(--green-light);
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
    border-left: 4px solid var(--green);
    font-size: 0.9rem;
    font-weight: 500;
}

/* === Badges === */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-draft { background: #F1F5F9; color: #475569; }
.badge-active { background: var(--green-light); color: #065F46; }
.badge-closed { background: var(--red-light); color: #991B1B; }
.badge-free { background: #F1F5F9; color: #475569; }
.badge-starter { background: var(--accent-light); color: #1E40AF; }
.badge-event { background: var(--amber-light); color: #92400E; }
.badge-pending { background: var(--amber-light); color: #92400E; }
.badge-paid { background: var(--green-light); color: #065F46; }
.badge-expired { background: var(--red-light); color: #991B1B; }

/* === Hero Section === */
.hero {
    text-align: center;
    padding: 48px 20px;
}

.hero h1, .hero h2 {
    font-size: 2rem;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 20px;
}

.actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* === Stats Grid === */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 14px;
    margin: 20px 0;
}

.stat-card {
    background: var(--bg-card);
    padding: 20px 16px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-card strong {
    display: block;
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--accent), var(--teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.stat-card span {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* === Tables === */
.results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 18px;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.results-table th, .results-table td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    font-size: 0.92rem;
}

.results-table th {
    background: var(--bg);
    font-weight: 700;
    color: var(--text);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

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

.results-table tbody tr {
    transition: background var(--transition);
}

.results-table tbody tr:hover {
    background: #F8FAFC;
}

.winner-row {
    background: var(--green-light) !important;
}

/* === Progress Bar === */
.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 4px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--teal));
    border-radius: var(--radius-full);
    transition: width 0.6s ease;
}

/* === Vote Page === */
.vote-page {
    max-width: 580px;
    margin: 0 auto;
}

.vote-page h2 {
    color: var(--primary);
    margin-bottom: 8px;
}

.vote-form {
    margin-top: 20px;
}

.candidates-list {
    margin: 16px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.candidate-item {
    display: flex;
    align-items: center;
    padding: 16px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
}

.candidate-item:hover {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.08);
}

.candidate-item input[type="radio"] {
    margin-right: 14px;
    width: 20px;
    height: 20px;
    accent-color: var(--accent);
    cursor: pointer;
    flex-shrink: 0;
}

.candidate-item input[type="radio"]:checked + label {
    color: var(--accent);
}

.candidate-item label {
    cursor: pointer;
    flex: 1;
    font-size: 0.95rem;
}

/* === Dashboard === */
.dashboard h2 {
    color: var(--primary);
    margin-bottom: 16px;
}

/* === Superadmin === */
.superadmin-login {
    max-width: 400px;
    margin: 60px auto;
}

/* === Detail Sections === */
.detail-section {
    background: var(--bg-card);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
    border: 1px solid var(--border);
}

/* === Footer === */
.site-footer {
    background: var(--primary);
    color: rgba(255,255,255,0.8);
    margin-top: auto;
    padding-top: 36px;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 30px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

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

.footer-brand .brand-icon {
    font-size: 1.6rem;
}

.footer-brand .brand-text {
    font-size: 1.2rem;
    font-weight: 700;
}

.footer-tagline {
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    margin-top: 4px;
}

.footer-links h4,
.footer-trust h4 {
    color: white;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.footer-links a {
    display: block;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 4px 0;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: white;
}

.trust-badges {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.trust-badge {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.6);
}

.footer-bottom {
    text-align: center;
    padding: 16px 0;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
}

/* ========== Guide Page ========== */
.guide-page {
    max-width: 800px;
    margin: 0 auto;
    font-family: var(--font-bn);
}

.guide-hero {
    text-align: center;
    padding: 24px 20px 16px;
}

.guide-hero h1 {
    font-size: 1.7rem;
    color: var(--primary);
    margin-bottom: 8px;
    font-family: var(--font-bn);
    -webkit-text-fill-color: var(--primary);
}

.guide-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
}

.guide-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 28px;
    padding: 0 10px;
}

.guide-nav-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-full);
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 0.88rem;
    transition: all var(--transition);
}

.guide-nav-item:hover {
    border-color: var(--accent);
    background: var(--accent-light);
    color: var(--accent);
    transform: translateY(-1px);
}

.guide-nav-icon {
    font-size: 1.1rem;
}

.guide-section {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 22px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.guide-section h2 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--bg);
    font-family: var(--font-bn);
}

.guide-steps {
    margin-top: 14px;
}

.guide-step {
    display: flex;
    gap: 14px;
    margin-bottom: 16px;
    padding: 14px;
    background: var(--bg);
    border-radius: var(--radius);
    border-left: 4px solid var(--accent);
}

.step-number {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, var(--accent), var(--teal));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
}

.step-content h3 {
    margin-bottom: 4px;
    color: var(--primary);
    font-size: 1rem;
    font-family: var(--font-bn);
}

.step-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.92rem;
}

.step-example {
    margin-top: 8px;
    padding: 8px 12px;
    background: var(--accent-light);
    border-radius: 8px;
    font-size: 0.88rem;
}

.step-example code {
    color: var(--accent);
    font-weight: 600;
}

.step-note {
    margin-top: 8px;
    padding: 8px 12px;
    background: var(--amber-light);
    border-radius: 8px;
    font-size: 0.85rem;
    color: #92400E;
}

.guide-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.guide-plan-card {
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    position: relative;
    transition: all var(--transition);
}

.guide-plan-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.guide-plan-card.featured {
    border-color: var(--accent);
    background: var(--accent-light);
}

.plan-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent), var(--teal));
    color: white;
    padding: 2px 14px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
}

.plan-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    margin: 10px 0;
}

.plan-price small {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-muted);
}

.guide-plan-card ul {
    list-style: none;
    text-align: left;
    padding: 0;
    margin-top: 10px;
}

.guide-plan-card ul li {
    padding: 4px 0;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.security-item {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 18px;
    text-align: center;
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.security-item:hover {
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.security-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.security-item h3 {
    font-size: 0.92rem;
    margin-bottom: 6px;
    color: var(--primary);
    font-family: var(--font-bn);
}

.security-item p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.faq-list {
    margin-top: 8px;
}

.faq-item {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3 {
    font-size: 0.92rem;
    color: var(--primary);
    margin-bottom: 6px;
    font-family: var(--font-bn);
}

.faq-item p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.guide-contact {
    text-align: center;
}

.contact-info {
    margin-top: 12px;
}

.contact-info p {
    margin: 6px 0;
    font-size: 0.95rem;
}

.contact-info a {
    color: var(--accent);
    font-weight: 600;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* ========== Responsive ========== */

/* Tablet */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.3rem; }

    .hero h1, .hero h2 {
        font-size: 1.6rem;
    }
}

/* Mobile */
@media (max-width: 600px) {
    /* Navbar mobile */
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--primary);
        flex-direction: column;
        padding: 12px 20px 20px;
        gap: 4px;
        transform: translateY(-120%);
        transition: transform 0.3s ease;
        box-shadow: 0 8px 20px rgba(0,0,0,0.3);
        z-index: 999;
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .nav-link {
        padding: 10px 14px;
        font-size: 1rem;
    }

    .nav-link-cta {
        text-align: center;
        margin-top: 4px;
    }

    /* Content */
    .main-content {
        padding: 20px 0 36px;
    }

    .container {
        padding: 0 16px;
    }

    /* Hero */
    .hero {
        padding: 30px 10px;
    }

    .hero h1, .hero h2 {
        font-size: 1.4rem;
    }

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

    /* Forms */
    .form-container {
        padding: 24px 20px;
        margin: 0 -4px;
        border-radius: var(--radius);
    }

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

    .stat-card {
        padding: 14px 10px;
    }

    .stat-card strong {
        font-size: 1.4rem;
    }

    /* Tables */
    .results-table {
        font-size: 0.85rem;
    }

    .results-table th, .results-table td {
        padding: 10px 12px;
    }

    /* Buttons */
    .btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }

    .btn-sm {
        padding: 5px 10px;
        font-size: 0.78rem;
    }

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

    .actions .btn {
        width: 100%;
        max-width: 280px;
    }

    .btn-secondary {
        margin-left: 0;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Guide responsive */
    .guide-hero h1 {
        font-size: 1.3rem;
    }

    .guide-nav {
        gap: 8px;
    }

    .guide-nav-item {
        padding: 8px 14px;
        font-size: 0.8rem;
    }

    .guide-section {
        padding: 18px 14px;
        margin-bottom: 16px;
        border-radius: var(--radius);
    }

    .guide-step {
        flex-direction: column;
        gap: 10px;
        padding: 12px;
    }

    .guide-plans {
        grid-template-columns: 1fr;
    }

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

/* Small phones */
@media (max-width: 380px) {
    .security-grid {
        grid-template-columns: 1fr;
    }

    .guide-nav {
        flex-direction: column;
        align-items: center;
    }

    .nav-brand .brand-text {
        font-size: 1.1rem;
    }
}

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

@keyframes confirmPulse {
    0% { box-shadow: 0 0 0 0 rgba(5,150,105,0.5); }
    70% { box-shadow: 0 0 0 15px rgba(5,150,105,0); }
    100% { box-shadow: 0 0 0 0 rgba(5,150,105,0); }
}

.vote-confirmed {
    animation: confirmPulse 1.5s ease-out;
}

.fade-in {
    animation: fadeIn 0.4s ease forwards;
}

/* === Utility Classes === */
/* === Candidate Photos === */
.candidate-photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
    flex-shrink: 0;
}

.candidate-photo-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--teal));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.candidate-photo-sm {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
    flex-shrink: 0;
}

.candidate-photo-placeholder-sm {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--teal));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* === Share Buttons === */
.share-section {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    font-family: var(--font-en);
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
}

.share-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.share-whatsapp:hover {
    border-color: #25D366;
    color: #25D366;
    background: #f0fdf4;
}

.share-facebook:hover {
    border-color: #1877F2;
    color: #1877F2;
    background: #eff6ff;
}

.share-copy:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-light);
}

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
