:root {
    --primary: #cba135;
    --primary-dark: #a8852a;
    --bg-dark: #0f0f0f;
    --card-bg: rgba(255, 255, 255, 0.05);
    --text-light: #f5f5f5;
    --text-muted: #a0a0a0;
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.6;
}

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

/* Header */
header {
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Hero Section */
.hero {
    padding: 20px 0;
}

.hero h1,
.hero p {
    display: none;
}

/* Voting Container */
.voting-container {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    margin: 40px auto 60px;
    max-width: 900px;
    width: 100%;
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-align: center;
    color: var(--primary);
}

/* Party Grid */
.party-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 40px;
}

.party-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
}

.party-card:hover,
.party-card.selected {
    border-color: var(--primary);
    background: rgba(203, 161, 53, 0.1);
    transform: translateY(-5px);
}

.party-logo {
    width: 60px;
    height: 60px;
    margin: 0 auto 10px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-border);
}

.party-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.party-name {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #fff;
}

.candidate-name {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Form Styling */
.form-group {
    margin-bottom: 25px;
    text-align: left;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.95rem;
}

select,
input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 15px;
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

select:focus,
input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

select option {
    background: #111;
    color: #fff;
}

/* Buttons */
.btn {
    width: 100%;
    max-width: 500px;
    margin: 20px auto 0;
    display: block;
    padding: 16px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(45deg, var(--primary-dark), var(--primary));
    color: #000;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(203, 161, 53, 0.4);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Modals */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
}

.premium-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 440px;
    background: #fff;
    color: #000;
    border-radius: 28px;
    z-index: 10001;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    animation: modalPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPop {
    from {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }

    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.modal-img {
    height: 200px;
    background: #111 url('../images/welcome_banner.png') center/cover;
}

.modal-content {
    padding: 35px;
    text-align: center;
}

.modal-content p {
    color: #444;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.dark-modal {
    background: #111;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-modal p {
    color: #aaa;
}

.dark-modal h2 {
    color: var(--primary);
    margin-bottom: 15px;
}

/* Visibility States */
.step-hidden {
    display: none !important;
}

.step-visible {
    display: block !important;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Loader */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20000;
    transition: opacity 0.5s;
}

.spinner {
    width: 45px;
    height: 45px;
    border: 4px solid #222;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Footer */
footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Alerts */
.alert {
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: center;
}

.alert-success {
    background: rgba(0, 255, 127, 0.1);
    color: #00ff7f;
    border: 1px solid rgba(0, 255, 127, 0.2);
}

.alert-error {
    background: rgba(255, 69, 58, 0.1);
    color: #ff453a;
    border: 1px solid rgba(255, 69, 58, 0.2);
}

/* ERP Custom */
.login-box {
    max-width: 420px;
    margin: 80px auto;
    padding: 40px;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    backdrop-filter: blur(10px);
}