:root {
    --primary: #6C63FF;
    --primary-dark: #554FD8;
    --secondary: #FF6584;
    --success: #36D399;
    --warning: #FFB347;
    --dark: #1A1A2E;
    --light: #F8F9FF;
    --gradient: linear-gradient(135deg, #6C63FF 0%, #FF6584 100%);
    --shadow: 0 20px 40px rgba(108, 99, 255, 0.15);
    --shadow-lg: 0 30px 60px rgba(108, 99, 255, 0.25);
    --radius: 20px;
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(145deg, #ffffff 0%, #f5f7ff 100%);
    color: var(--dark);
    overflow-x: hidden;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient);
    border-radius: 10px;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 0.8rem 0;
    box-shadow: 0 4px 20px rgba(108, 99, 255, 0.1);
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary) !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand i {
    font-size: 1.8rem;
    color: var(--primary);
}

.nav-link {
    color: var(--dark) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 50px;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary) !important;
    background: rgba(108, 99, 255, 0.1);
}

.nav-link.active {
    background: var(--gradient);
    color: white !important;
}

.dropdown-menu {
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: none;
}

@media (max-width: 992px) {
    .navbar-collapse {
        background: white;
        padding: 1rem;
        border-radius: 12px;
        margin-top: 10px;
        box-shadow: var(--shadow);
    }
}

/* Hero Section */
.pricing-hero {
    padding: 120px 0 40px;
    text-align: center;
    background: radial-gradient(circle at 10% 30%, rgba(108, 99, 255, 0.03) 0%, rgba(255, 101, 132, 0.02) 100%);
}

.pricing-hero h1 {
    font-size: 2.8rem;
    background: linear-gradient(135deg, var(--dark) 20%, var(--primary) 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-hero .lead {
    font-size: 1.1rem;
    color: #5a5a7a;
    max-width: 700px;
    margin: 0 auto;
}

/* Tabs Styling */
.election-type-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 40px 0 30px;
    flex-wrap: wrap;
}

.type-tab {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    background: white;
    color: #666;
    border: 2px solid var(--primary);
}

.type-tab.active {
    background: var(--gradient);
    color: white;
    border-color: transparent;
}

.type-tab i {
    margin-right: 8px;
}

/* Pricing Cards */
.pricing-card {
    background: white;
    border-radius: 32px;
    padding: 1.8rem 1.5rem;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(108, 99, 255, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.popular {
    border: 2px solid var(--primary);
    background: linear-gradient(145deg, #ffffff, #fefbff);
}

.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 40px;
    white-space: nowrap;
}

.plan-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
    margin: 10px 0 5px;
}

.plan-price small {
    font-size: 0.8rem;
    font-weight: 500;
    color: #777;
}

.price-desc {
    font-size: 0.7rem;
    color: #7a7a9a;
    margin-bottom: 1rem;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 1.5rem;
    flex-grow: 1;
}

.features-list li {
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: #2d2d44;
}

.features-list li i.fa-check-circle {
    color: var(--success);
    width: 18px;
}

.features-list li i.fa-times-circle {
    color: #ddd;
    width: 18px;
}

.features-list li i.fa-users,
.features-list li i.fa-tasks,
.features-list li i.fa-user-friends,
.features-list li i.fa-sliders-h,
.features-list li i.fa-headset,
.features-list li i.fa-calendar-alt,
.features-list li i.fa-layer-group,
.features-list li i.fa-user-tag {
    width: 20px;
    color: var(--primary);
}

.btn-plan {
    width: 100%;
    padding: 12px;
    border-radius: 60px;
    font-weight: 700;
    background: var(--gradient);
    color: white;
    border: none;
    transition: var(--transition);
    cursor: pointer;
}

.btn-plan-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-plan-outline:hover {
    background: var(--gradient);
    color: white;
    border-color: transparent;
}

.btn-plan:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(108, 99, 255, 0.3);
}

/* Upgrade Info Box */
.upgrade-note {
    background: #eef2ff;
    border-radius: 20px;
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: center;
}

/* Modal Styles */
.instruction-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.instruction-modal.active {
    display: flex;
}

.modal-content-custom {
    background: white;
    max-width: 500px;
    width: 90%;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header-custom {
    background: var(--gradient);
    padding: 20px 25px;
    color: white;
    text-align: center;
}

.modal-header-custom i {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.modal-header-custom h3 {
    margin: 0;
    font-size: 1.5rem;
}

.modal-body-custom {
    padding: 25px;
}

.instruction-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.instruction-list li {
    padding: 10px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
    color: #444;
}

.instruction-list li:last-child {
    border-bottom: none;
}

.instruction-list li i {
    color: var(--primary);
    font-size: 1.1rem;
    margin-top: 2px;
}

.plan-summary {
    background: #f8f9ff;
    padding: 15px;
    border-radius: 16px;
    margin: 15px 0;
    text-align: center;
    border-left: 4px solid var(--primary);
}

.plan-summary p {
    margin: 5px 0;
    font-size: 0.9rem;
}

.plan-summary strong {
    color: var(--primary);
}

.modal-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.btn-modal-primary {
    flex: 1;
    padding: 12px;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    background: var(--gradient);
    color: white;
    cursor: pointer;
    transition: var(--transition);
}

.btn-modal-secondary {
    flex: 1;
    padding: 12px;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition);
}

.btn-modal-primary:hover,
.btn-modal-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* ==================== ENHANCED FOOTER ==================== */
footer {
    background: var(--dark);
    color: white;
    padding: 0px 0 10px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
    z-index: 2;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@media(max-width:992px) {
    .footer-bottom {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

    }
}

.copyright-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    margin-bottom: 10px;
    line-height: 1.6;
}

.copyright-text strong {
    color: white;
    font-weight: 600;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.developer-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 5px;
    border-radius: 50px;
    color: white;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    font-size: 0.8rem;
    gap: 10px;
    margin-top: 2px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.developer-badge:hover {
    background: var(--gradient);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(108, 99, 255, 0.2);
}

.developer-badge i {
    color: var(--primary);
}

.policy-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.policy-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.8rem;
    transition: var(--transition);
}

.policy-links a:hover {
    color: white;
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media(max-width:992px) {
    .footer-bottom {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

    }
}