/* ================= GLOBAL RESETS & FONTS ================= */
:root { 
    --primary: #7ed957; 
    --accent: #aeff3b; 
    --dark-bg: #111;
    --panel-bg: rgba(255, 255, 255, 0.05);
    --border: rgba(255, 255, 255, 0.1);
}

body { 
    margin: 0; 
    font-family: 'Inter', 'Segoe UI', sans-serif; 
    color: #fff;
    background: linear-gradient(rgba(0,0,0,0.85), rgba(0,0,0,0.85)), url('https://images.unsplash.com/photo-1467269204594-9661b134dd2b');
    background-size: cover; 
    background-attachment: fixed;
    min-height: 100vh;
}

/* ================= LAYOUT CONTAINERS ================= */
header { text-align: center; padding: 60px 20px 40px; }

section { 
    max-width: 900px; 
    margin: 0 auto 40px; 
    background: rgba(15, 15, 15, 0.9); 
    border-radius: 24px; 
    padding: 40px; 
    backdrop-filter: blur(15px); 
    border: 1px solid var(--border); 
    box-shadow: 0 20px 50px rgba(0,0,0,0.5); 
}

.stat-desc { 
    font-size: 0.65rem; 
    color: #888; 
    margin-top: 5px; 
    line-height: 1.2; 
    font-weight: normal; 
    text-transform: none;
}

/* ================= TYPOGRAPHY & BADGES ================= */
h1 { margin: 15px 0; letter-spacing: -1px; line-height: 1.2; }
h2 { color: var(--primary); margin-bottom: 10px; }
h3 { margin-top: 30px; margin-bottom: 15px; font-weight: 600; color: #fff; }

.badge { background: var(--primary); color: #000; padding: 5px 15px; border-radius: 20px; font-weight: bold; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; }
.text-link { color: var(--primary); text-decoration: underline; cursor: pointer; font-size: 0.9rem; }

/* ================= FORMS & INPUTS ================= */
.grid-form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.field { display: flex; flex-direction: column; position: relative; }
.full { grid-column: span 2; }

label { font-size: 0.85rem; margin-bottom: 8px; color: #aaa; }

input, select { 
    padding: 14px; 
    border-radius: 12px; 
    border: 1px solid rgba(255,255,255,0.2); 
    background: rgba(255,255,255,0.05); 
    color: #fff; 
    outline: none; 
    font-size: 1rem; 
    width: 100%; 
    box-sizing: border-box; 
    transition: 0.3s;
}

input:focus, select:focus { border-color: var(--primary); background: rgba(255,255,255,0.1); }
option { background: #222; color: #fff; }

/* CHECKBOX GRID STYLING (Work Env & Languages) */
.work-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); 
    gap: 10px; 
}

.work-option { 
    background: rgba(255,255,255,0.05); 
    padding: 12px 15px; 
    border-radius: 8px; 
    border: 1px solid rgba(255,255,255,0.1); 
    display: flex; 
    align-items: center; 
    cursor: pointer; 
    font-size: 0.9rem; 
    color: #ddd; 
    transition: 0.2s;
    user-select: none;
}

.work-option:hover { 
    background: rgba(255,255,255,0.1); 
    border-color: var(--primary); 
    color: #fff;
}

.work-option input { 
    margin-right: 12px; 
    width: 18px; 
    height: 18px; 
    cursor: pointer; 
    accent-color: var(--primary); /* Makes the checkbox green */
}


/* ================= BUTTONS ================= */
.btn { 
    padding: 16px 30px; 
    border-radius: 12px; 
    border: none; 
    font-weight: 700; 
    cursor: pointer; 
    transition: 0.3s; 
    text-align: center; 
    font-size: 1rem; 
    width: 100%; 
    box-sizing: border-box;
    display: inline-block;
    text-decoration: none;
}

.btn-main { background: linear-gradient(135deg, #7ed957, #2ecc71); color: #000; }
.btn-main:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(126, 217, 87, 0.4); }

/* ================= DASHBOARD SERVICES GRID ================= */
.service-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); 
    gap: 15px; 
    margin-top: 20px; 
}

.service-card { 
    background: rgba(255,255,255,0.05); 
    border: 1px solid rgba(255,255,255,0.1); 
    padding: 25px 15px; 
    border-radius: 16px; 
    text-align: center; 
    transition: 0.3s;
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    min-height: 140px; 
    text-decoration: none; 
    color: #fff;
    position: relative;
    overflow: hidden;
}

.service-card:hover { 
    transform: translateY(-5px); 
    background: rgba(255,255,255,0.1); 
    border-color: var(--primary); 
}

.service-card.locked { 
    opacity: 0.5; 
    pointer-events: none; 
    border-color: transparent; 
    background: rgba(0,0,0,0.3); 
}

.service-icon { font-size: 2.5rem; margin-bottom: 15px; line-height: 1; }
.service-title { font-size: 0.95rem; font-weight: bold; line-height: 1.3; margin-bottom: 8px; }

/* ================= VOUCH PAGE SPECIFIC ================= */
.profile-header { text-align: center; margin-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 20px; }
.profile-name { font-size: 2rem; color: var(--primary); margin: 0; }
.profile-job { font-size: 1.1rem; color: #fff; margin: 5px 0; font-weight: bold; }
.profile-exp { color: #aaa; font-size: 0.9rem; }

.divider { text-align: center; margin: 30px 0; position: relative; }
.divider span { background: #151515; padding: 0 15px; color: #666; font-size: 0.8rem; position: relative; z-index: 1; text-transform: uppercase; letter-spacing: 1px; }
.divider:before { content: ""; position: absolute; top: 50%; left: 0; width: 100%; height: 1px; background: #333; z-index: 0; }

.gift-panel { 
    background: rgba(126, 217, 87, 0.05); 
    border: 1px dashed var(--primary); 
    padding: 25px; 
    border-radius: 12px; 
    text-align: center; 
    margin-top: 20px;
}

/* ================= DASHBOARD SCOREBOX & EXTRAS ================= */
.score-box { background: linear-gradient(135deg, #111, #222); padding: 30px; border-radius: 20px; text-align: center; border: 1px solid #444; margin-bottom: 30px; position: relative; overflow: hidden; }
.score-val { font-size: 3.5rem; font-weight: 800; color: var(--primary); text-shadow: 0 0 20px rgba(126, 217, 87, 0.4); margin: 10px 0; }
.percentile-bar { height: 12px; background: #333; border-radius: 6px; margin: 15px 0; overflow: hidden; position: relative; }
.percentile-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); transition: width 1s ease; }

.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-top: 20px; }
.stat-item { background: rgba(255,255,255,0.05); padding: 15px; border-radius: 12px; }
.stat-label { font-size: 0.75rem; color: #aaa; text-transform: uppercase; }
.stat-num { font-size: 1.2rem; font-weight: bold; color: #fff; margin-top: 5px; }

/* ================= MOBILE RESPONSIVE ================= */
@media(max-width: 768px) { 
    header { padding: 40px 20px; }
    section { padding: 25px; margin: 10px; }
    
    .grid-form { grid-template-columns: 1fr; } 
    .full { grid-column: span 1; } 
    .work-grid { grid-template-columns: 1fr; }
    
    .stat-grid { grid-template-columns: 1fr; gap: 10px; }
    .score-val { font-size: 2.5rem; }
}

/* DASHBOARD STATS MOBILE FIX */
@media(max-width: 600px) {
    .stat-grid {
        grid-template-columns: 1fr; /* Stacks items on mobile */
        gap: 10px;
    }
    .stat-item {
        padding: 12px;
    }
}

/* POPUP AUTO-HIDE ANIMATION */
/* Slimmer, modern popup */
.yay-popup { 
    position: fixed; 
    top: 20px; 
    right: 20px; 
    background: var(--primary); 
    color: #000; 
    padding: 12px 25px; 
    border-radius: 50px; /* Pill shape */
    box-shadow: 0 5px 15px rgba(0,0,0,0.3); 
    z-index: 9999; 
    display: none; 
    pointer-events: none; /* Prevents blocking clicks */
    border: 1px solid rgba(0,0,0,0.1);
}

.yay-popup h3 { margin: 0; font-size: 1rem; display: inline-block; margin-right: 5px; }
.yay-popup p { margin: 0; font-size: 0.85rem; display: inline-block; }

/* The Fade Class */
.fade-out { 
    opacity: 0; 
    transform: translateY(-20px); 
    transition: opacity 0.8s ease, transform 0.8s ease; 
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(20px); pointer-events: none; }
}

/* COUNTDOWN STYLING */
.countdown-wrapper { 
    display: flex; 
    justify-content: center; 
    gap: 8px; /* Reduced gap for mobile */
    margin-top: 20px; 
}

.time-box { 
    background: rgba(0, 0, 0, 0.6); 
    border: 1px solid var(--primary); 
    border-radius: 8px; 
    width: 65px; /* Fixed width to prevent jumping */
    padding: 10px 0; 
    display: flex; 
    flex-direction: column; 
    align-items: center;
    box-shadow: 0 0 15px rgba(126, 217, 87, 0.2);
}

.time-val { 
    font-size: 1.6rem; 
    font-weight: 800; 
    color: var(--primary); 
    line-height: 1; 
}

/* Pulsing effect */
#s { color: #ff4d4d; animation: pulse 1s infinite; }

.time-label { 
    font-size: 0.6rem; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    margin-top: 5px; 
    color: white; 
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* MOBILE SCALING */
@media(max-width: 400px) {
    .time-box {
        width: 55px; /* Slightly smaller on very small screens */
        padding: 8px 0;
    }
    .time-val { font-size: 1.3rem; }
    .time-label { font-size: 0.5rem; }
}

/* COUNTDOWN RADIANT GLOW */
.time-box { 
    background: #000; 
    border: 1px solid var(--primary); 
    border-radius: 8px; 
    width: 68px; 
    padding: 10px 0; 
    display: flex; 
    flex-direction: column; 
    align-items: center;
    box-shadow: 0 0 5px var(--primary);
    animation: glow-pulse 2s infinite ease-in-out; /* Smooth pulsing glow */
}

@keyframes glow-pulse {
    0% { box-shadow: 0 0 5px var(--primary); border-color: var(--primary); }
    50% { box-shadow: 0 0 20px var(--primary); border-color: var(--accent); }
    100% { box-shadow: 0 0 5px var(--primary); border-color: var(--primary); }
}

/* DISCOUNT STICKER */
.discount-tag {
    background: #ff4d4d;
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    text-transform: uppercase;
}

.old-price {
    text-decoration: line-through;
    color: #888;
    font-size: 0.8rem;
    margin-right: 5px;
}

.opt-explanation {
    font-size: 0.7rem;
    color: var(--primary);
    margin-top: 4px;
    font-style: italic;
    display: block;
}

/* LIMITED OFFER TEXT */
.offer-alert {
    color: #ff4d4d;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
    animation: text-pulse 1.5s infinite;
}

@keyframes text-pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.02); }
    100% { opacity: 1; transform: scale(1); }
}

/* PRICING STYLES */
.opt-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
}

.old-price {
    text-decoration: line-through;
    color: #ff4d4d; /* Red color for old price */
    font-size: 0.75rem;
    margin-bottom: 2px;
    opacity: 0.8;
}

.new-price {
    font-weight: 800;
    color: var(--primary);
    font-size: 1.2rem; /* Bigger new price */
    text-shadow: 0 0 10px rgba(126, 217, 87, 0.3);
}

/* Updated Option Info */
.opt-explanation {
    font-size: 0.7rem;
    color: #aaa;
    margin-top: 4px;
    font-style: italic;
    display: block;
    line-height: 1.2;
}

/* TAB NAVIGATION */
.dashboard-tabs { 
    display: flex; 
    flex-wrap: wrap; /* Allows tabs to drop to next line */
    gap: 10px; 
    margin-bottom: 25px; 
    justify-content: center;
}
.tab-link { 
    flex: 1 1 auto; /* Grow to fit, but wrap when needed */
    min-width: 120px; 
    max-width: 200px; /* Prevents one tab from being too wide */
    text-align: center;
    padding: 12px 10px;
    font-size: 0.85rem;
    line-height: 1.2; /* Better for two-line text */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}
.tab-link.active {
    background: var(--primary);
    color: #000;
    font-weight: bold;
}
.tab-content { display: none; }
.tab-content.active { display: block; }

/* FIELD VALIDATION INDICATORS */
.field-status {
    position: absolute;
    right: 15px;
    top: 38px;
    font-size: 1.2rem;
}
.status-done { color: var(--primary); }
.status-missing { color: #555; opacity: 0.5; }

/* SIMPLE TIMER */
.simple-timer {
    font-family: monospace;
    background: #000;
    padding: 4px 8px;
    border-radius: 4px;
    color: var(--primary);
    font-weight: bold;
}

/* The Darkened Background */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85); /* Darker backdrop for focus */
    backdrop-filter: blur(5px);      /* Modern blur effect */
    display: none;                   /* Hidden by default */
    align-items: center;             /* Vertical center */
    justify-content: center;         /* Horizontal center */
    z-index: 10000;                  /* Above everything else */
    padding: 20px;
}

/* The Popup Box */
.modal-box {
    background: #222;
    border: 1px solid #444;
    padding: 30px;
    border-radius: 20px;
    max-width: 450px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Smooth Entrance Animation */
@keyframes popIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.modal-box h2 {
    margin-top: 0;
    color: var(--primary); /* Using your green theme */
    font-size: 1.8rem;
}

.modal-box p {
    color: #bbb;
    line-height: 1.6;
    margin-bottom: 25px;
}

.modal-btns {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Smaller, Grayed-out Identity Section */
.identity-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid #333;
    padding: 15px;
    border-radius: 12px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px; /* Reduced gap */
    margin-bottom: 30px;
}

.identity-section .field {
    margin-bottom: 0; /* Tighten spaces */
}

.identity-section label {
    font-size: 0.7rem;
    color: #666; /* Darker gray labels */
    margin-bottom: 2px;
}

.identity-section input {
    background: transparent !important;
    border: none !important;
    color: #888 !important; /* Dimmed text */
    padding: 0 !important;
    font-size: 0.9rem;
    cursor: default;
}

.strength-bar-bg {
    width: 100%;
    height: 12px;
    background: #222;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #333;
    position: relative;
}

.strength-bar-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 1.5s cubic-bezier(0.1, 0, 0.1, 1);
    box-shadow: 0 0 10px rgba(20, 129, 52, 0.2);
}

/* Optional: Add a subtle striped animation to the bar */
.strength-bar-fill {
    background-image: linear-gradient(45deg, rgba(255,255,255,.05) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.05) 50%, rgba(255,255,255,.05) 75%, transparent 75%, transparent);
    background-size: 20px 20px;
}

.city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.city-card {
    background: #111;
    border: 1px solid #333;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s;
}

.city-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.city-header {
    background: #222;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
}

.city-name {
    font-weight: bold;
    color: #fff;
}

.city-tag {
    font-size: 0.7rem;
    background: #333;
    padding: 2px 8px;
    border-radius: 4px;
    color: #aaa;
}

.city-body {
    padding: 15px;
}

.city-body p {
    font-size: 0.85rem;
    color: #ccc;
    margin: 5px 0;
}

.city-badge {
    margin-top: 10px;
    font-size: 0.75rem;
    color: var(--primary);
    background: rgba(126, 217, 87, 0.1);
    padding: 5px;
    text-align: center;
    border-radius: 4px;
    font-weight: bold;
}