/* =========================================================
   ManaTrick ResumeCraft
   Main Stylesheet
   assets/css/main.css
   ========================================================= */

/* =========================================================
   1. RESET
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    margin: 0;
    padding: 0;
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    background: #f8fafc;
    color: #111827;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin-top: 0;
}


/* =========================================================
   2. ROOT VARIABLES
   ========================================================= */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #eff6ff;

    --secondary: #7c3aed;
    --secondary-light: #f5f3ff;

    --success: #16a34a;
    --success-light: #f0fdf4;

    --warning: #d97706;
    --warning-light: #fffbeb;

    --danger: #dc2626;
    --danger-light: #fef2f2;

    --info: #0891b2;
    --info-light: #ecfeff;

    --dark: #111827;
    --dark-secondary: #1f2937;

    --text: #111827;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;

    --white: #ffffff;

    --background: #f8fafc;
    --surface: #ffffff;
    --surface-secondary: #f1f5f9;

    --border: #e5e7eb;
    --border-dark: #d1d5db;

    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --shadow-sm:
        0 1px 2px rgba(15, 23, 42, 0.05);

    --shadow:
        0 4px 12px rgba(15, 23, 42, 0.08);

    --shadow-lg:
        0 15px 35px rgba(15, 23, 42, 0.12);

    --container: 1180px;

    --transition:
        0.2s ease;
}


/* =========================================================
   3. GLOBAL UTILITIES
   ========================================================= */

.container {
    width: min(100% - 40px, var(--container));
    margin-inline: auto;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.hidden {
    display: none !important;
}

.w-full {
    width: 100%;
}

.mt-0 {
    margin-top: 0;
}

.mt-1 {
    margin-top: 8px;
}

.mt-2 {
    margin-top: 16px;
}

.mt-3 {
    margin-top: 24px;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 8px;
}

.mb-2 {
    margin-bottom: 16px;
}

.mb-3 {
    margin-bottom: 24px;
}

.icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

[data-lucide] {
    width: 18px;
    height: 18px;
    stroke-width: 2;
    flex-shrink: 0;
}


/* =========================================================
   4. BUTTONS
   ========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    min-height: 44px;
    padding: 10px 18px;

    border: 1px solid transparent;
    border-radius: var(--radius);

    font-size: 0.95rem;
    font-weight: 600;

    line-height: 1;
    white-space: nowrap;

    transition:
        background var(--transition),
        border-color var(--transition),
        color var(--transition),
        transform var(--transition),
        box-shadow var(--transition);
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.2);
    outline-offset: 2px;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--white);
    border-color: var(--secondary);
}

.btn-secondary:hover {
    background: #6d28d9;
    border-color: #6d28d9;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary-light);
}

.btn-dark {
    background: var(--dark);
    color: var(--white);
    border-color: var(--dark);
}

.btn-dark:hover {
    background: #000000;
}

.btn-light {
    background: var(--white);
    color: var(--dark);
    border-color: var(--border);
}

.btn-light:hover {
    background: #f9fafb;
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
    border-color: var(--danger);
}

.btn-success {
    background: var(--success);
    color: var(--white);
    border-color: var(--success);
}

.btn-sm {
    min-height: 36px;
    padding: 8px 13px;
    font-size: 0.85rem;
}

.btn-lg {
    min-height: 50px;
    padding: 13px 24px;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}


/* =========================================================
   5. SITE HEADER
   ========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--border);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.header-inner {
    min-height: 72px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    flex-shrink: 0;
}

.brand-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-text strong {
    font-size: 1rem;
    color: var(--dark);
}

.brand-text span {
    margin-top: 3px;
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.main-nav a {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 9px 12px;

    border-radius: 8px;

    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;

    transition:
        color var(--transition),
        background var(--transition);
}

.main-nav a:hover {
    color: var(--primary);
    background: var(--primary-light);
}

.main-nav a.nav-button {
    margin-left: 4px;

    color: var(--white);
    background: var(--primary);
}

.main-nav a.nav-button:hover {
    color: var(--white);
    background: var(--primary-dark);
}

.mobile-menu-button {
    display: none;

    width: 42px;
    height: 42px;

    align-items: center;
    justify-content: center;

    border: 1px solid var(--border);
    border-radius: 8px;

    background: var(--white);
    color: var(--dark);
}


/* =========================================================
   6. HERO
   ========================================================= */

.hero {
    position: relative;
    overflow: hidden;

    padding: 100px 0 90px;

    background:
        linear-gradient(
            135deg,
            #f8fbff 0%,
            #ffffff 48%,
            #f5f3ff 100%
        );
}

.hero::before {
    content: "";

    position: absolute;
    width: 500px;
    height: 500px;

    top: -250px;
    right: -180px;

    border-radius: 50%;

    background: rgba(37, 99, 235, 0.06);

    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;

    max-width: 820px;
    margin: 0 auto;

    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 7px 12px;

    margin-bottom: 22px;

    border: 1px solid #bfdbfe;
    border-radius: 999px;

    background: #eff6ff;
    color: #1d4ed8;

    font-size: 0.82rem;
    font-weight: 700;
}

.hero h1 {
    margin-bottom: 22px;

    font-size: clamp(2.4rem, 6vw, 4.5rem);
    line-height: 1.05;
    letter-spacing: -0.045em;

    color: var(--dark);
}

.hero h1 span {
    color: var(--primary);
}

.hero-description {
    max-width: 700px;
    margin: 0 auto 30px;

    color: var(--text-secondary);

    font-size: 1.1rem;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-note {
    margin-top: 18px;

    color: var(--text-muted);
    font-size: 0.85rem;
}


/* =========================================================
   7. SECTION
   ========================================================= */

.section {
    padding: 85px 0;
}

.section-sm {
    padding: 55px 0;
}

.section-header {
    max-width: 720px;
    margin: 0 auto 48px;

    text-align: center;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    margin-bottom: 12px;

    color: var(--primary);

    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.section-header h2 {
    margin-bottom: 14px;

    color: var(--dark);

    font-size: clamp(1.9rem, 4vw, 2.8rem);
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.section-header p {
    margin-bottom: 0;

    color: var(--text-secondary);
    font-size: 1rem;
}


/* =========================================================
   8. FEATURES
   ========================================================= */

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.feature-card {
    padding: 28px;

    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-sm);

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);

    border-color: #bfdbfe;

    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 20px;

    border-radius: 12px;

    background: var(--primary-light);
    color: var(--primary);
}

.feature-card h3 {
    margin-bottom: 9px;

    font-size: 1.05rem;
}

.feature-card p {
    margin-bottom: 0;

    color: var(--text-secondary);
    font-size: 0.92rem;
}


/* =========================================================
   9. TEMPLATES
   ========================================================= */

.templates-section {
    background: #f1f5f9;
}

.templates-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.template-card {
    overflow: hidden;

    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-sm);

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.template-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.template-preview {
    position: relative;

    min-height: 280px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: #e5e7eb;
}

.template-paper {
    width: 100%;
    max-width: 180px;
    min-height: 230px;

    padding: 16px;

    background: var(--white);

    border-radius: 3px;

    box-shadow:
        0 8px 18px rgba(15, 23, 42, 0.12);
}

.template-paper-line {
    height: 6px;
    margin-bottom: 7px;

    border-radius: 2px;

    background: #d1d5db;
}

.template-paper-line.short {
    width: 55%;
}

.template-paper-line.medium {
    width: 75%;
}

.template-paper-line.dark {
    width: 45%;

    background: #6b7280;
}

.template-info {
    padding: 18px;
}

.template-info h3 {
    margin-bottom: 5px;
    font-size: 1rem;
}

.template-info p {
    margin-bottom: 14px;

    color: var(--text-muted);
    font-size: 0.83rem;
}

.template-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.template-tag {
    display: inline-flex;
    align-items: center;

    padding: 5px 8px;

    border-radius: 6px;

    background: var(--surface-secondary);
    color: var(--text-secondary);

    font-size: 0.72rem;
    font-weight: 600;
}


/* =========================================================
   10. WORKFLOW
   ========================================================= */

.workflow {
    position: relative;
}

.workflow-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.workflow-step {
    position: relative;

    padding: 28px;

    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.workflow-number {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 18px;

    border-radius: 50%;

    background: var(--primary);
    color: var(--white);

    font-size: 0.85rem;
    font-weight: 700;
}

.workflow-step h3 {
    margin-bottom: 8px;
    font-size: 1rem;
}

.workflow-step p {
    margin-bottom: 0;

    color: var(--text-secondary);
    font-size: 0.88rem;
}


/* =========================================================
   11. AUDIENCE
   ========================================================= */

.audience-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.audience-card {
    display: flex;
    align-items: center;
    gap: 13px;

    padding: 18px;

    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);

    transition:
        border-color var(--transition),
        background var(--transition);
}

.audience-card:hover {
    border-color: #bfdbfe;
    background: #f8fbff;
}

.audience-icon {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 9px;

    background: var(--primary-light);
    color: var(--primary);
}

.audience-card span {
    font-size: 0.9rem;
    font-weight: 600;
}


/* =========================================================
   12. CTA
   ========================================================= */

.cta-section {
    padding: 80px 0;
}

.cta-box {
    position: relative;
    overflow: hidden;

    padding: 60px 40px;

    border-radius: var(--radius-xl);

    background:
        linear-gradient(
            135deg,
            #111827,
            #1e3a8a
        );

    color: var(--white);

    text-align: center;
}

.cta-box::after {
    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    right: -100px;
    bottom: -160px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.06);
}

.cta-content {
    position: relative;
    z-index: 1;

    max-width: 700px;
    margin: auto;
}

.cta-box h2 {
    margin-bottom: 14px;

    font-size: clamp(1.8rem, 4vw, 2.7rem);
}

.cta-box p {
    margin-bottom: 25px;

    color: rgba(255, 255, 255, 0.78);
}

.cta-box .btn-light {
    border-color: var(--white);
}


/* =========================================================
   13. AUTH PAGES
   ========================================================= */

.auth-page {
    min-height: calc(100vh - 72px);

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 60px 20px;

    background:
        linear-gradient(
            135deg,
            #f8fafc,
            #eff6ff
        );
}

.auth-container {
    width: 100%;
    max-width: 470px;
}

.auth-card {
    padding: 36px;

    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);

    box-shadow: var(--shadow-lg);
}

.auth-header {
    margin-bottom: 28px;
    text-align: center;
}

.auth-header h1 {
    margin-bottom: 8px;

    font-size: 1.8rem;
    line-height: 1.2;
}

.auth-header p {
    margin-bottom: 0;

    color: var(--text-muted);
    font-size: 0.9rem;
}

.auth-logo {
    width: 58px;
    height: 58px;

    margin: 0 auto 18px;

    object-fit: contain;
}

.auth-footer {
    margin-top: 22px;

    text-align: center;

    color: var(--text-muted);
    font-size: 0.85rem;
}

.auth-footer a {
    color: var(--primary);
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}


/* =========================================================
   14. FORMS
   ========================================================= */

.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;

    margin-bottom: 7px;

    color: var(--dark);

    font-size: 0.87rem;
    font-weight: 600;
}

.form-label span {
    color: var(--danger);
}

.form-control {
    width: 100%;

    min-height: 46px;

    padding: 10px 13px;

    border: 1px solid var(--border-dark);
    border-radius: var(--radius);

    background: var(--white);
    color: var(--dark);

    outline: none;

    transition:
        border-color var(--transition),
        box-shadow var(--transition);
}

.form-control:hover {
    border-color: #9ca3af;
}

.form-control:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.12);
}

.form-control::placeholder {
    color: #9ca3af;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

select.form-control {
    cursor: pointer;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.form-help {
    margin-top: 6px;

    color: var(--text-muted);
    font-size: 0.78rem;
}

.form-error {
    margin-top: 6px;

    color: var(--danger);
    font-size: 0.78rem;
}

.password-field {
    position: relative;
}

.password-field .form-control {
    padding-right: 46px;
}

.password-toggle {
    position: absolute;

    top: 50%;
    right: 10px;

    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    transform: translateY(-50%);

    border: 0;
    border-radius: 6px;

    background: transparent;
    color: var(--text-muted);
}

.password-toggle:hover {
    background: var(--surface-secondary);
    color: var(--dark);
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    margin-bottom: 18px;
}

.form-options a {
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 600;
}

.form-options a:hover {
    text-decoration: underline;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 9px;

    font-size: 0.82rem;
    color: var(--text-secondary);
}

.checkbox-group input {
    width: 17px;
    height: 17px;

    margin-top: 2px;

    accent-color: var(--primary);
}

.checkbox-group a {
    color: var(--primary);
    font-weight: 600;
}


/* =========================================================
   15. PASSWORD STRENGTH
   ========================================================= */

.password-strength {
    margin-top: 8px;
}

.password-strength-bar {
    width: 100%;
    height: 5px;

    overflow: hidden;

    border-radius: 999px;

    background: #e5e7eb;
}

.password-strength-fill {
    width: 0;
    height: 100%;

    border-radius: inherit;

    transition:
        width 0.25s ease,
        background 0.25s ease;
}

.password-strength-text {
    margin-top: 5px;

    font-size: 0.75rem;
    color: var(--text-muted);
}


/* =========================================================
   16. ALERTS
   ========================================================= */

.alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    margin-bottom: 20px;

    padding: 12px 14px;

    border: 1px solid transparent;
    border-radius: var(--radius);

    font-size: 0.85rem;
}

.alert > [data-lucide] {
    margin-top: 2px;
}

.alert-success {
    background: var(--success-light);
    border-color: #bbf7d0;
    color: #166534;
}

.alert-danger {
    background: var(--danger-light);
    border-color: #fecaca;
    color: #991b1b;
}

.alert-warning {
    background: var(--warning-light);
    border-color: #fde68a;
    color: #92400e;
}

.alert-info {
    background: var(--info-light);
    border-color: #a5f3fc;
    color: #155e75;
}


/* =========================================================
   17. DASHBOARD / APP LAYOUT
   ========================================================= */

.app-page {
    min-height: calc(100vh - 72px);
    background: #f8fafc;
}

.dashboard-header {
    padding: 35px 0 25px;
}

.dashboard-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.dashboard-header h1 {
    margin-bottom: 5px;

    font-size: 1.8rem;
}

.dashboard-header p {
    margin-bottom: 0;

    color: var(--text-muted);
    font-size: 0.9rem;
}

.dashboard-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.stat-card {
    padding: 20px;

    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-sm);
}

.stat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 14px;
}

.stat-icon {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: var(--primary-light);
    color: var(--primary);
}

.stat-value {
    margin-bottom: 2px;

    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1.2;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.82rem;
}


/* =========================================================
   18. CONTENT CARDS
   ========================================================= */

.card {
    background: var(--white);

    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-sm);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    padding: 20px;

    border-bottom: 1px solid var(--border);
}

.card-header h2,
.card-header h3 {
    margin: 0;

    font-size: 1rem;
}

.card-body {
    padding: 20px;
}

.card-footer {
    padding: 16px 20px;

    border-top: 1px solid var(--border);
}


/* =========================================================
   19. RESUME LIST
   ========================================================= */

.resume-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.resume-card {
    overflow: hidden;

    background: var(--white);

    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-sm);

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.resume-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.resume-thumbnail {
    min-height: 220px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 25px;

    background: #f1f5f9;
}

.resume-paper {
    width: 160px;
    min-height: 205px;

    padding: 15px;

    background: var(--white);

    box-shadow:
        0 7px 18px rgba(15, 23, 42, 0.12);
}

.resume-card-content {
    padding: 18px;
}

.resume-card-title {
    margin-bottom: 5px;

    font-size: 1rem;
    font-weight: 700;
}

.resume-card-date {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.resume-card-actions {
    display: flex;
    gap: 8px;

    margin-top: 15px;
}


/* =========================================================
   20. EMPTY STATE
   ========================================================= */

.empty-state {
    padding: 60px 25px;

    text-align: center;

    background: var(--white);

    border: 1px dashed var(--border-dark);
    border-radius: var(--radius-lg);
}

.empty-state-icon {
    width: 55px;
    height: 55px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 18px;

    border-radius: 14px;

    background: var(--primary-light);
    color: var(--primary);
}

.empty-state h3 {
    margin-bottom: 7px;
}

.empty-state p {
    max-width: 450px;
    margin: 0 auto 20px;

    color: var(--text-muted);
    font-size: 0.9rem;
}


/* =========================================================
   21. BUILDER
   ========================================================= */

.builder-page {
    min-height: 100vh;
    background: #eef2f7;
}

.builder-layout {
    display: grid;
    grid-template-columns: 390px 1fr;

    min-height: calc(100vh - 72px);
}

.builder-sidebar {
    overflow-y: auto;

    padding: 24px;

    background: var(--white);

    border-right: 1px solid var(--border);
}

.builder-preview-area {
    overflow: auto;

    padding: 35px;

    background: #e5e7eb;
}

.builder-section {
    margin-bottom: 22px;

    background: var(--white);

    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.builder-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 16px 18px;

    border-bottom: 1px solid var(--border);
}

.builder-section-header h3 {
    margin: 0;

    font-size: 0.95rem;
}

.builder-section-body {
    padding: 18px;
}

.builder-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}


/* =========================================================
   22. RESUME PREVIEW
   ========================================================= */

.resume-preview {
    width: min(100%, 794px);

    min-height: 1123px;

    margin: 0 auto;

    padding: 55px;

    background: var(--white);

    box-shadow:
        0 10px 35px rgba(15, 23, 42, 0.15);
}

.resume-preview-header {
    margin-bottom: 28px;
}

.resume-preview-name {
    margin-bottom: 4px;

    font-size: 2rem;
    line-height: 1.15;
}

.resume-preview-role {
    color: var(--primary);
    font-weight: 600;
}

.resume-preview-contact {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;

    margin-top: 10px;

    color: var(--text-secondary);
    font-size: 0.8rem;
}

.resume-preview-section {
    margin-top: 24px;
}

.resume-preview-section h2 {
    padding-bottom: 6px;

    margin-bottom: 12px;

    border-bottom: 1px solid var(--border);

    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.resume-preview-section p {
    color: #374151;
    font-size: 0.82rem;
}

.resume-item {
    margin-bottom: 16px;
}

.resume-item:last-child {
    margin-bottom: 0;
}

.resume-item-header {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.resume-item-title {
    font-weight: 700;
}

.resume-item-meta {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.resume-item ul {
    margin-top: 7px;
    padding-left: 18px;

    list-style: disc;
}

.resume-item li {
    margin-bottom: 4px;

    color: #374151;
    font-size: 0.8rem;
}


/* =========================================================
   23. TAGS / SKILLS
   ========================================================= */

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;

    padding: 6px 9px;

    border-radius: 6px;

    background: #eff6ff;
    color: #1d4ed8;

    font-size: 0.76rem;
    font-weight: 600;
}

.tag-remove {
    display: flex;

    border: 0;
    padding: 0;

    background: transparent;
    color: inherit;
}


/* =========================================================
   24. TABLES
   ========================================================= */

.table-wrapper {
    width: 100%;
    overflow-x: auto;

    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.table {
    width: 100%;

    border-collapse: collapse;

    background: var(--white);

    font-size: 0.85rem;
}

.table th,
.table td {
    padding: 13px 15px;

    border-bottom: 1px solid var(--border);

    text-align: left;
    vertical-align: middle;
}

.table th {
    background: #f8fafc;

    color: var(--dark);

    font-size: 0.78rem;
    font-weight: 700;
}

.table tr:last-child td {
    border-bottom: 0;
}

.table tbody tr:hover {
    background: #fafafa;
}


/* =========================================================
   25. BADGES
   ========================================================= */

.badge {
    display: inline-flex;
    align-items: center;

    padding: 5px 9px;

    border-radius: 999px;

    font-size: 0.72rem;
    font-weight: 700;
}

.badge-success {
    background: var(--success-light);
    color: #166534;
}

.badge-danger {
    background: var(--danger-light);
    color: #991b1b;
}

.badge-warning {
    background: var(--warning-light);
    color: #92400e;
}

.badge-info {
    background: var(--info-light);
    color: #155e75;
}

.badge-neutral {
    background: #f3f4f6;
    color: #4b5563;
}


/* =========================================================
   26. PRICING
   ========================================================= */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.pricing-card {
    position: relative;

    padding: 28px;

    background: var(--white);

    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-sm);
}

.pricing-card.featured {
    border: 2px solid var(--primary);

    box-shadow: var(--shadow-lg);
}

.pricing-popular {
    position: absolute;

    top: -12px;
    left: 50%;

    transform: translateX(-50%);

    padding: 5px 11px;

    border-radius: 999px;

    background: var(--primary);
    color: var(--white);

    font-size: 0.7rem;
    font-weight: 700;

    white-space: nowrap;
}

.pricing-name {
    margin-bottom: 8px;

    font-size: 1rem;
    font-weight: 700;
}

.pricing-price {
    margin-bottom: 3px;

    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
}

.pricing-price small {
    color: var(--text-muted);

    font-size: 0.75rem;
    font-weight: 500;
}

.pricing-description {
    min-height: 45px;

    margin-bottom: 20px;

    color: var(--text-muted);
    font-size: 0.8rem;
}

.pricing-features {
    margin-bottom: 25px;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 8px;

    margin-bottom: 10px;

    color: var(--text-secondary);

    font-size: 0.82rem;
}

.pricing-features li [data-lucide] {
    margin-top: 2px;

    color: var(--success);
}


/* =========================================================
   27. ATS CHECKER
   ========================================================= */

.ats-score {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 150px;
    height: 150px;

    margin: 20px auto;

    border: 10px solid #dbeafe;
    border-radius: 50%;

    color: var(--primary);

    font-size: 2rem;
    font-weight: 800;
}

.ats-score-label {
    text-align: center;

    color: var(--text-muted);
    font-size: 0.85rem;
}

.check-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.check-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    padding: 12px;

    border-radius: var(--radius);

    background: #f8fafc;
}

.check-item.success [data-lucide] {
    color: var(--success);
}

.check-item.warning [data-lucide] {
    color: var(--warning);
}

.check-item.danger [data-lucide] {
    color: var(--danger);
}

.check-item-content strong {
    display: block;
    margin-bottom: 2px;

    font-size: 0.85rem;
}

.check-item-content span {
    color: var(--text-muted);
    font-size: 0.78rem;
}


/* =========================================================
   28. JD MATCHER
   ========================================================= */

.match-score {
    text-align: center;
}

.match-score-value {
    margin-bottom: 5px;

    color: var(--primary);

    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.match-score-label {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.progress {
    width: 100%;
    height: 8px;

    overflow: hidden;

    border-radius: 999px;

    background: #e5e7eb;
}

.progress-bar {
    height: 100%;

    border-radius: inherit;

    background: var(--primary);

    transition: width 0.3s ease;
}


/* =========================================================
   29. PAGINATION
   ========================================================= */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    margin-top: 25px;
}

.pagination a,
.pagination span {
    min-width: 36px;
    height: 36px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 10px;

    border: 1px solid var(--border);
    border-radius: 7px;

    background: var(--white);

    color: var(--text-secondary);

    font-size: 0.82rem;
}

.pagination a:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.pagination .active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}


/* =========================================================
   30. SITE FOOTER
   ========================================================= */

.site-footer {
    margin-top: 0;

    padding: 60px 0 0;

    background: #111827;
    color: #d1d5db;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 45px;

    padding-bottom: 45px;
}

.footer-brand {
    max-width: 330px;
}

.footer-logo {
    display: inline-block;

    margin-bottom: 18px;
}

.footer-logo img {
    width: 180px;
    max-height: 55px;

    object-fit: contain;
    object-position: left center;
}

.footer-brand p {
    margin-bottom: 20px;

    color: #9ca3af;

    font-size: 0.86rem;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-links a {
    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;

    color: #d1d5db;

    transition:
        background var(--transition),
        color var(--transition),
        border-color var(--transition),
        transform var(--transition);
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.08);

    color: var(--white);

    border-color: rgba(255, 255, 255, 0.25);

    transform: translateY(-2px);
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.footer-column h3 {
    margin-bottom: 7px;

    color: var(--white);

    font-size: 0.9rem;
}

.footer-column a {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    width: fit-content;

    color: #9ca3af;

    font-size: 0.82rem;

    transition:
        color var(--transition);
}

.footer-column a:hover {
    color: var(--white);
}

.footer-column a [data-lucide] {
    width: 15px;
    height: 15px;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 24px 0;

    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-copyright p {
    margin: 0;

    color: #9ca3af;

    font-size: 0.78rem;
}

.footer-powered {
    display: flex;
    align-items: center;
    gap: 6px;

    font-size: 0.78rem;
}

.footer-powered span {
    color: #6b7280;
}

.powered-by-manatrick {
    color: var(--white);

    font-weight: 700;

    transition: opacity var(--transition);
}

.powered-by-manatrick:hover {
    opacity: 0.75;
}


/* =========================================================
   31. MOBILE NAV
   ========================================================= */

@media (max-width: 900px) {

    .mobile-menu-button {
        display: flex;
    }

    .main-nav {
        position: absolute;

        top: 72px;
        left: 0;
        right: 0;

        display: none;
        flex-direction: column;
        align-items: stretch;

        padding: 12px 20px 20px;

        background: var(--white);

        border-bottom: 1px solid var(--border);

        box-shadow: var(--shadow);

        max-height: calc(100vh - 72px);
        overflow-y: auto;
    }

    .main-nav.active {
        display: flex;
    }

    .main-nav a {
        width: 100%;

        padding: 12px;

        border-radius: 8px;
    }

    .main-nav a.nav-button {
        margin-left: 0;

        justify-content: center;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .templates-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .workflow-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .audience-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .resume-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .builder-layout {
        grid-template-columns: 330px 1fr;
    }

    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
        max-width: 500px;
    }
}


/* =========================================================
   32. TABLET
   ========================================================= */

@media (max-width: 700px) {

    .container {
        width: min(100% - 30px, var(--container));
    }

    .hero {
        padding: 75px 0 65px;
    }

    .section {
        padding: 65px 0;
    }

    .hero-description {
        font-size: 1rem;
    }

    .features-grid,
    .templates-grid,
    .workflow-grid,
    .audience-grid,
    .pricing-grid,
    .dashboard-grid,
    .resume-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .dashboard-header-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-actions {
        width: 100%;
    }

    .dashboard-actions .btn {
        flex: 1;
    }

    .resume-preview {
        padding: 35px;
    }

    .builder-layout {
        display: block;
    }

    .builder-sidebar {
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .builder-preview-area {
        padding: 20px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .cta-box {
        padding: 45px 25px;
    }
}


/* =========================================================
   33. MOBILE
   ========================================================= */

@media (max-width: 480px) {

    html {
        font-size: 15px;
    }

    .container {
        width: min(100% - 24px, var(--container));
    }

    .header-inner {
        min-height: 64px;
    }

    .brand-logo {
        width: 38px;
        height: 38px;
    }

    .brand-text strong {
        font-size: 0.92rem;
    }

    .brand-text span {
        font-size: 0.67rem;
    }

    .main-nav {
        top: 64px;
        max-height: calc(100vh - 64px);
    }

    .hero {
        padding: 60px 0 55px;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .section {
        padding: 55px 0;
    }

    .section-header {
        margin-bottom: 32px;
    }

    .feature-card,
    .workflow-step,
    .pricing-card {
        padding: 22px;
    }

    .template-preview {
        min-height: 240px;
    }

    .auth-page {
        padding: 35px 14px;
    }

    .auth-card {
        padding: 25px 20px;
        border-radius: var(--radius-lg);
    }

    .auth-header h1 {
        font-size: 1.55rem;
    }

    .form-options {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-actions {
        flex-direction: column;
    }

    .dashboard-actions .btn {
        width: 100%;
    }

    .resume-preview {
        padding: 25px;
    }

    .resume-preview-name {
        font-size: 1.55rem;
    }

    .resume-item-header {
        flex-direction: column;
        gap: 3px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-bottom {
        flex-direction: column;

        justify-content: center;

        text-align: center;
    }

    .social-links {
        flex-wrap: wrap;
    }
}


/* =========================================================
   34. LOADING
   ========================================================= */

.loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;
}

.spinner {
    width: 18px;
    height: 18px;

    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: currentColor;

    border-radius: 50%;

    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/* =========================================================
   35. MODAL
   ========================================================= */

.modal-overlay {
    position: fixed;

    inset: 0;

    z-index: 2000;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(15, 23, 42, 0.65);
}

.modal-overlay.active {
    display: flex;
}

.modal {
    width: min(100%, 600px);
    max-height: calc(100vh - 40px);

    overflow-y: auto;

    background: var(--white);

    border-radius: var(--radius-lg);

    box-shadow: 0 25px 70px rgba(15, 23, 42, 0.25);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 20px;

    border-bottom: 1px solid var(--border);
}

.modal-header h2 {
    margin: 0;

    font-size: 1.1rem;
}

.modal-close {
    width: 35px;
    height: 35px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 7px;

    background: transparent;
    color: var(--text-muted);
}

.modal-close:hover {
    background: var(--surface-secondary);
    color: var(--dark);
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;

    padding: 16px 20px;

    border-top: 1px solid var(--border);
}


/* =========================================================
   36. DROPDOWN
   ========================================================= */

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;

    top: calc(100% + 8px);
    right: 0;

    min-width: 190px;

    padding: 7px;

    display: none;

    background: var(--white);

    border: 1px solid var(--border);
    border-radius: var(--radius);

    box-shadow: var(--shadow-lg);

    z-index: 500;
}

.dropdown.active .dropdown-menu {
    display: block;
}

.dropdown-menu a,
.dropdown-menu button {
    width: 100%;

    display: flex;
    align-items: center;
    gap: 9px;

    padding: 9px 10px;

    border: 0;
    border-radius: 7px;

    background: transparent;

    color: var(--text-secondary);

    font-size: 0.83rem;

    text-align: left;
}

.dropdown-menu a:hover,
.dropdown-menu button:hover {
    background: var(--surface-secondary);
    color: var(--dark);
}


/* =========================================================
   37. SEARCH
   ========================================================= */

.search-box {
    position: relative;
}

.search-box [data-lucide] {
    position: absolute;

    top: 50%;
    left: 13px;

    transform: translateY(-50%);

    color: var(--text-muted);
}

.search-box .form-control {
    padding-left: 40px;
}


/* =========================================================
   38. FILE UPLOAD
   ========================================================= */

.file-upload {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 140px;

    padding: 20px;

    border: 2px dashed var(--border-dark);
    border-radius: var(--radius-lg);

    background: #fafafa;

    text-align: center;

    transition:
        border-color var(--transition),
        background var(--transition);
}

.file-upload:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.file-upload input[type="file"] {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    opacity: 0;

    cursor: pointer;
}

.file-upload-content {
    pointer-events: none;
}

.file-upload-icon {
    width: 40px;
    height: 40px;

    margin: 0 auto 10px;

    color: var(--primary);
}

.file-upload strong {
    display: block;

    margin-bottom: 3px;

    font-size: 0.88rem;
}

.file-upload span {
    color: var(--text-muted);
    font-size: 0.76rem;
}


/* =========================================================
   39. ACCESSIBILITY
   ========================================================= */

:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.25);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* =========================================================
   40. PRINT
   ========================================================= */

@media print {

    body {
        background: var(--white);
    }

    .site-header,
    .site-footer,
    .builder-sidebar,
    .no-print {
        display: none !important;
    }

    .builder-preview-area {
        padding: 0;
        background: var(--white);
    }

    .resume-preview {
        width: 100%;
        min-height: auto;

        padding: 0;

        box-shadow: none;
    }
}