/* =====================================================
   AI CAREER SITE - MAIN STYLESHEET
   ===================================================== */

:root {
    --purple: #7C3AED;
    --purple-dark: #5B21B6;
    --pink: #EC4899;
    --blue: #3B82F6;
    --cyan: #06B6D4;
    --orange: #F97316;
    --green: #10B981;
    --yellow: #FBBF24;

    --grad-primary: linear-gradient(135deg, #7C3AED 0%, #EC4899 100%);
    --grad-blue: linear-gradient(135deg, #3B82F6 0%, #06B6D4 100%);
    --grad-hero: linear-gradient(135deg, #4F0FBF 0%, #7C3AED 35%, #EC4899 100%);
    --grad-warm: linear-gradient(135deg, #F97316 0%, #EC4899 100%);

    --dark: #111827;
    --gray-700: #374151;
    --gray-500: #6B7280;
    --gray-200: #E5E7EB;
    --gray-100: #F3F4F6;
    --white: #FFFFFF;

    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 10px 30px rgba(76, 29, 149, 0.12);
    --shadow-lg: 0 20px 50px rgba(76, 29, 149, 0.18);
}

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

body {
    font-family: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--dark);
    background: #FAFAFC;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------------- BUTTONS ---------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
    background: var(--grad-primary);
    color: #fff;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.35);
}
.btn-primary:hover { box-shadow: 0 12px 32px rgba(124, 58, 237, 0.45); }
.btn-outline {
    background: transparent;
    border: 2px solid var(--purple);
    color: var(--purple);
}
.btn-outline:hover { background: var(--purple); color: #fff; }
.btn-white {
    background: #fff;
    color: var(--purple-dark);
}
.btn-block { width: 100%; }
.btn-sm { padding: 8px 18px; font-size: 13px; }

/* ---------------- NAVBAR ---------------- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-200);
}
.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    max-width: 1180px;
    margin: 0 auto;
}
.logo {
    font-size: 22px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}
.logo span { background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo i { color: var(--pink); }
.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}
.nav-links a {
    font-weight: 500;
    color: var(--gray-700);
    transition: color .2s;
}
.nav-links a:hover { color: var(--purple); }
.nav-actions { display: flex; align-items: center; gap: 14px; }

.lang-switch {
    display: flex;
    background: var(--gray-100);
    border-radius: 50px;
    padding: 4px;
    gap: 2px;
}
.lang-switch a {
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    color: var(--gray-500);
}
.lang-switch a.active { background: var(--grad-primary); color: #fff; }

.mobile-toggle { display: none; font-size: 24px; background: none; border: none; cursor: pointer; color: var(--purple); }

@media (max-width: 900px) {
    .nav-links { position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; padding: 20px 24px; gap: 16px; display: none; box-shadow: var(--shadow); }
    .nav-links.open { display: flex; }
    .mobile-toggle { display: block; }
    .nav-actions .btn-outline { display: none; }
}

/* ---------------- HERO ---------------- */
.hero {
    background: var(--grad-hero);
    color: #fff;
    padding: 90px 24px 120px;
    position: relative;
    overflow: hidden;
}
.hero::before, .hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: .35;
}
.hero::before { width: 400px; height: 400px; background: var(--orange); top: -150px; right: -100px; }
.hero::after { width: 350px; height: 350px; background: var(--cyan); bottom: -150px; left: -100px; }
.hero-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 2;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}
.hero h1 { font-size: 46px; margin-bottom: 18px; }
.hero p { font-size: 18px; opacity: .92; margin-bottom: 32px; max-width: 520px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 32px; margin-top: 40px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-size: 26px; }
.hero-stats div span { font-size: 13px; opacity: .8; }

.hero-visual {
    position: relative;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 24px;
    padding: 28px;
    backdrop-filter: blur(10px);
}
.hero-visual .chat-bubble {
    background: #fff;
    color: var(--dark);
    border-radius: 14px;
    padding: 14px 18px;
    margin-bottom: 12px;
    font-size: 14px;
    box-shadow: var(--shadow);
}
.hero-visual .chat-bubble.ai { background: var(--grad-primary); color: #fff; margin-left: 30px; }
.hero-visual .mini-tag { display: inline-block; background: var(--grad-warm); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 50px; margin-bottom: 10px; }

@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero h1 { font-size: 32px; }
}

/* ---------------- SECTIONS ---------------- */
.section { padding: 90px 0; }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-tag {
    display: inline-block;
    background: linear-gradient(135deg, #EDE9FE, #FCE7F3);
    color: var(--purple-dark);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: .5px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 16px;
}
.section-header h2 { font-size: 34px; margin-bottom: 14px; }
.section-header p { color: var(--gray-500); font-size: 16px; }

/* ---------------- FEATURE CARDS ---------------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.feature-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 32px 26px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    transition: transform .25s, box-shadow .25s;
    position: relative;
    overflow: hidden;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.feature-card .star-badge {
    position: absolute; top: 18px; right: 18px;
    color: var(--yellow); font-size: 13px; font-weight: 700;
}
.feature-icon {
    width: 56px; height: 56px;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: #fff;
    margin-bottom: 18px;
}
.icon-purple { background: var(--grad-primary); }
.icon-blue { background: var(--grad-blue); }
.icon-warm { background: var(--grad-warm); }
.icon-green { background: linear-gradient(135deg, #10B981, #06B6D4); }
.feature-card h3 { font-size: 19px; margin-bottom: 10px; }
.feature-card p { color: var(--gray-500); font-size: 14.5px; }

@media (max-width: 900px) { .features-grid { grid-template-columns: 1fr; } }
@media (min-width: 901px) and (max-width: 1100px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------------- PRICING ---------------- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    max-width: 780px;
    margin: 0 auto;
}
.pricing-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 40px 32px;
    border: 2px solid var(--gray-200);
    text-align: center;
    position: relative;
}
.pricing-card.featured {
    border: 2px solid var(--purple);
    box-shadow: var(--shadow-lg);
    transform: scale(1.03);
}
.pricing-card .badge-pop {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: var(--grad-warm); color: #fff; font-size: 12px; font-weight: 700;
    padding: 6px 18px; border-radius: 50px;
}
.pricing-card h3 { font-size: 22px; margin-bottom: 6px; }
.pricing-card .price { font-size: 42px; font-weight: 800; margin: 18px 0 6px; }
.pricing-card .price span { font-size: 15px; font-weight: 500; color: var(--gray-500); }
.pricing-card ul { text-align: left; margin: 24px 0; }
.pricing-card ul li { padding: 8px 0; font-size: 14.5px; display: flex; gap: 10px; align-items: flex-start; }
.pricing-card ul li i { color: var(--green); margin-top: 3px; }
@media (max-width: 700px) { .pricing-grid { grid-template-columns: 1fr; } .pricing-card.featured { transform: none; } }

/* ---------------- HOW IT WORKS ---------------- */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step-card { text-align: center; padding: 20px; }
.step-num {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--grad-primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; margin: 0 auto 16px; font-size: 18px;
}
.step-card h4 { font-size: 16px; margin-bottom: 8px; }
.step-card p { font-size: 13.5px; color: var(--gray-500); }
@media (max-width: 900px) { .steps-grid { grid-template-columns: 1fr 1fr; } }

/* ---------------- CTA BAND ---------------- */
.cta-band {
    background: var(--grad-primary);
    border-radius: 28px;
    padding: 60px 40px;
    text-align: center;
    color: #fff;
    max-width: 1080px;
    margin: 0 auto;
}
.cta-band h2 { font-size: 30px; margin-bottom: 12px; }
.cta-band p { opacity: .9; margin-bottom: 28px; }

/* ---------------- FOOTER ---------------- */
footer {
    background: var(--dark);
    color: #D1D5DB;
    padding: 60px 0 24px;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; margin-bottom: 40px; }
.footer-grid h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid ul li a { color: #9CA3AF; font-size: 14px; }
.footer-grid ul li a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #374151; padding-top: 24px; text-align: center; font-size: 13px; color: #9CA3AF; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------------- AUTH PAGES ---------------- */
.auth-wrap {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--grad-hero);
    padding: 40px 20px;
}
.auth-card {
    background: #fff;
    border-radius: 24px;
    padding: 44px 40px;
    max-width: 440px;
    width: 100%;
    box-shadow: var(--shadow-lg);
}
.auth-card h2 { font-size: 26px; margin-bottom: 6px; }
.auth-card > p { color: var(--gray-500); margin-bottom: 28px; font-size: 14.5px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.form-control {
    width: 100%; padding: 13px 16px;
    border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm);
    font-size: 14.5px; font-family: inherit;
    transition: border-color .2s;
}
.form-control:focus { outline: none; border-color: var(--purple); }
textarea.form-control { resize: vertical; min-height: 100px; }
.auth-foot { text-align: center; margin-top: 22px; font-size: 14px; color: var(--gray-500); }
.auth-foot a { color: var(--purple); font-weight: 600; }

.alert { padding: 13px 18px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 18px; }
.alert-error { background: #FEE2E2; color: #B91C1C; }
.alert-success { background: #D1FAE5; color: #065F46; }
.alert-info { background: #DBEAFE; color: #1E40AF; }

/* ---------------- DASHBOARD ---------------- */
.dash-shell { display: flex; min-height: 100vh; background: #F5F5FA; }
.dash-sidebar {
    width: 260px; background: var(--dark); color: #E5E7EB;
    padding: 24px 18px; flex-shrink: 0;
}
.dash-sidebar .logo { color: #fff; margin-bottom: 30px; padding: 0 8px; }
.dash-nav a {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px; border-radius: 10px; margin-bottom: 4px;
    font-size: 14px; color: #9CA3AF; font-weight: 500;
}
.dash-nav a i { width: 18px; text-align: center; }
.dash-nav a:hover, .dash-nav a.active { background: rgba(124,58,237,0.25); color: #fff; }
.dash-nav .lock-icon { margin-left: auto; font-size: 11px; color: var(--yellow); }
.dash-main { flex: 1; padding: 32px 40px; }
.dash-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; flex-wrap: wrap; gap: 14px; }
.user-chip { display: flex; align-items: center; gap: 10px; }
.avatar-circle {
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--grad-primary); color: #fff;
    display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px;
}
.plan-pill { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 50px; text-transform: uppercase; }
.plan-pill.free { background: var(--gray-200); color: var(--gray-700); }
.plan-pill.paid { background: var(--grad-warm); color: #fff; }

.dash-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.dash-card {
    background: #fff; border-radius: var(--radius); padding: 26px;
    box-shadow: var(--shadow); position: relative; border: 1px solid var(--gray-200);
    transition: transform .2s;
}
.dash-card:hover { transform: translateY(-4px); }
.dash-card.locked { opacity: .75; }
.dash-card .lock-overlay {
    position: absolute; top: 16px; right: 16px; background: var(--gray-100);
    width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: var(--gray-500); font-size: 13px;
}
.dash-card h3 { font-size: 17px; margin: 14px 0 8px; }
.dash-card p { font-size: 13.5px; color: var(--gray-500); margin-bottom: 18px; min-height: 40px; }

@media (max-width: 1000px) { .dash-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) {
    .dash-shell { flex-direction: column; }
    .dash-sidebar { width: 100%; display: flex; flex-wrap: wrap; gap: 6px; }
    .dash-nav { display: flex; flex-wrap: wrap; gap: 6px; }
    .dash-main { padding: 24px 18px; }
    .dash-grid { grid-template-columns: 1fr; }
}

/* ---------------- TOOL PAGES (career finder, interview coach, etc.) ---------------- */
.tool-header { margin-bottom: 26px; }
.tool-header h1 { font-size: 24px; margin-bottom: 6px; }
.tool-header p { color: var(--gray-500); font-size: 14.5px; }
.tool-panel { background: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); border: 1px solid var(--gray-200); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

.result-box {
    background: linear-gradient(135deg, #F5F3FF, #FDF2F8);
    border: 1px solid #E9D5FF; border-radius: var(--radius);
    padding: 26px; margin-top: 20px;
}
.result-box h4 { color: var(--purple-dark); margin-bottom: 10px; font-size: 15px; }
.badge-score {
    display: inline-flex; align-items: center; justify-content: center;
    width: 90px; height: 90px; border-radius: 50%;
    background: var(--grad-primary); color: #fff; font-size: 26px; font-weight: 800;
    margin: 0 auto 14px;
}
.score-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 16px; }
.score-item { background: #fff; border-radius: 12px; padding: 14px; text-align: center; }
.score-item strong { display: block; font-size: 20px; color: var(--purple-dark); }
.score-item span { font-size: 12px; color: var(--gray-500); }

.chat-box { border: 1px solid var(--gray-200); border-radius: var(--radius); height: 460px; display: flex; flex-direction: column; }
.chat-messages { flex: 1; overflow-y: auto; padding: 20px; }
.chat-msg { max-width: 78%; padding: 12px 16px; border-radius: 14px; margin-bottom: 12px; font-size: 14px; }
.chat-msg.user { background: var(--grad-primary); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.chat-msg.ai { background: var(--gray-100); color: var(--dark); border-bottom-left-radius: 4px; }
.chat-input-row { display: flex; gap: 10px; padding: 16px; border-top: 1px solid var(--gray-200); }
.chat-input-row input { flex: 1; }

.upgrade-lock {
    text-align: center; padding: 70px 30px; background: #fff;
    border-radius: var(--radius); box-shadow: var(--shadow);
}
.upgrade-lock i { font-size: 46px; color: var(--yellow); margin-bottom: 18px; }
.upgrade-lock h2 { margin-bottom: 10px; }
.upgrade-lock p { color: var(--gray-500); max-width: 420px; margin: 0 auto 26px; }

/* ---------------- ADMIN PANEL ---------------- */
.admin-shell { display: flex; min-height: 100vh; background: #F5F5FA; }
.admin-sidebar { width: 240px; background: #1E1B2E; color: #C4B5FD; padding: 22px 16px; }
.admin-sidebar .logo { color: #fff; margin-bottom: 26px; padding: 0 6px; }
.admin-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 10px; margin-bottom: 4px; font-size: 14px; color: #C4B5FD; }
.admin-nav a:hover, .admin-nav a.active { background: rgba(124,58,237,0.35); color: #fff; }
.admin-main { flex: 1; padding: 30px 36px; }
.admin-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 30px; }
.admin-stat { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.admin-stat strong { font-size: 26px; display: block; }
.admin-stat span { font-size: 13px; color: var(--gray-500); }
.admin-table { width: 100%; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 14px 18px; text-align: left; font-size: 13.5px; border-bottom: 1px solid var(--gray-200); }
.admin-table th { background: var(--gray-100); font-weight: 700; text-transform: uppercase; font-size: 11px; letter-spacing: .5px; color: var(--gray-500); }
.badge-status { padding: 3px 10px; border-radius: 50px; font-size: 11px; font-weight: 700; }
.badge-active { background: #D1FAE5; color: #065F46; }
.badge-suspended { background: #FEE2E2; color: #B91C1C; }
.badge-free { background: var(--gray-200); color: var(--gray-700); }
.badge-paid { background: #FEF3C7; color: #92400E; }
@media (max-width: 1000px) { .admin-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) { .admin-shell { flex-direction: column; } .admin-sidebar { width: 100%; } .admin-main { padding: 20px; } }

.settings-section { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); margin-bottom: 24px; }
.settings-section h3 { margin-bottom: 18px; font-size: 16px; display: flex; align-items: center; gap: 10px; }
