/* ============================================================
   SABORU — Design System
   Palette: Dark Crimson + Warm Orange
   Mobile-first, semantic, fast
   ============================================================ */

/* ---- CSS Variables ---- */
:root {
    /* Brand */
    --accent: hsl(353, 71%, 44%);
    --accent-dark: hsl(353, 71%, 32%);
    --accent-light: hsl(353, 71%, 96%);
    --accent-glow: hsla(353, 71%, 44%, 0.18);
    --orange: hsl(24, 90%, 50%);
    --orange-light: hsl(24, 90%, 96%);
    --green: hsl(120, 100%, 30%);
    --green-light: hsl(122, 35%, 52%);

    /* Text */
    --text: hsl(353, 25%, 12%);
    --text-mid: hsl(353, 15%, 38%);
    --text-soft: hsl(353, 10%, 55%);
    --text-inverse: hsl(0, 0%, 100%);

    /* Surfaces */
    --bg: hsl(30, 20%, 98%);
    --bg-card: hsl(0, 0%, 100%);
    --bg-subtle: hsl(30, 15%, 95%);
    --bg-dark: hsl(353, 30%, 10%);

    /* Borders */
    --border: hsl(353, 15%, 88%);
    --border-focus: var(--accent);

    /* Status */
    --success: hsl(145, 60%, 36%);
    --success-light: hsl(145, 60%, 94%);
    --warning: hsl(38, 90%, 48%);
    --warning-light: hsl(38, 90%, 94%);
    --error: hsl(353, 71%, 44%);
    --error-light: hsl(353, 71%, 96%);
    --info: hsl(210, 70%, 45%);
    --info-light: hsl(210, 70%, 94%);

    /* Typography */
    --font-body: 'Georgia', 'Times New Roman', serif;
    --font-ui: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-mono: 'Courier New', Courier, monospace;

    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* Radius */
    --radius-sm: 4px;
    --radius: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 3px hsla(353, 30%, 10%, .08);
    --shadow: 0 4px 16px hsla(353, 30%, 10%, .10);
    --shadow-md: 0 8px 32px hsla(353, 30%, 10%, .12);
    --shadow-lg: 0 16px 48px hsla(353, 30%, 10%, .16);
    --shadow-accent: 0 4px 20px hsla(353, 71%, 44%, .25);

    /* Layout */
    --max-width: 1200px;
    --nav-height: 64px;

    /* Transitions */
    --transition: 0.2s ease;
    --transition-slow: 0.35s ease;
}

/* ---- Reset ---- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    background: var(--bg-dark);
    height: 100%;
}

body {
    font-family: var(--font-ui);
    font-size: var(--text-base);
    color: var(--text);
    /*background: var(--bg);*/
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--accent-dark);
}

button {
    cursor: pointer;
    font-family: var(--font-ui);
}

ul,
ol {
    list-style: none;
}

input,
select,
textarea {
    font-family: var(--font-ui);
    font-size: var(--text-base);
}

/* ---- Layout ---- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-4);
}

main {
    background: var(--bg);
}

@media (min-width: 640px) {
    .container {
        padding: 0 var(--space-6);
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 var(--space-8);
    }
}

.grid-2 {
    display: grid;
    gap: var(--space-6);
}

.grid-3 {
    display: grid;
    gap: var(--space-6);
}

.grid-4 {
    display: grid;
    gap: var(--space-5);
}

@media (min-width: 640px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

.icon {
    height: 100%;
    width: auto;
    min-height: 1rem;
}

/* ---- Navigation ---- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--nav-height);
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    display: flex;
}

.navbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.navbar__logo {
    font-family: var(--font-body);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.02em;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.logo {
    height: 24px;
    width: auto;
    display: inline-block;
}

.icon {
    height: 1.2rem;
    width: auto;
    display: inline-block;
}

.btn--primary .icon {
    filter: invert(100%) contrast(150%);
}

.navbar__logo span {
    color: var(--orange);
}

.navbar__nav {
    display: none;
    align-items: center;
    gap: var(--space-6);
}

@media (min-width: 768px) {
    .navbar__nav {
        display: flex;
    }
}

.navbar__nav a {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-mid);
    transition: color var(--transition);
}

.navbar__nav a:hover,
.navbar__nav a.active {
    color: var(--accent);
}

.navbar__actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.navbar__toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-2);
    background: none;
    border: none;
}

@media (min-width: 768px) {
    .navbar__toggle {
        display: none;
    }
}

.navbar__toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

/* Mobile menu */
.mobile-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: var(--space-4);
    z-index: 99;
    transform: translateY(-100%);
    opacity: 0;
    transition: var(--transition-slow);
    pointer-events: none;
}

.mobile-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.mobile-menu a {
    display: block;
    padding: var(--space-3) 0;
    color: var(--text);
    font-size: var(--text-lg);
    border-bottom: 1px solid var(--border);
}

.mobile-menu a:last-child {
    border-bottom: none;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 0.625rem var(--space-5);
    border-radius: var(--radius);
    font-size: var(--text-sm);
    font-weight: 600;
    border: 2px solid transparent;
    transition: all var(--transition);
    white-space: nowrap;
    text-decoration: none;
    min-height: 36px;
    /*line-height: 1.4;*/
}

.btn--primary {
    background: var(--accent);
    color: var(--text-inverse);
    border-color: var(--accent);
}

.btn--primary:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: var(--text-inverse);
    box-shadow: var(--shadow-accent);
    transform: translateY(-1px);
}

.btn--outline {
    background: transparent;
    color: var(--accent);
    border-color: var(--accent);
}

.btn--outline:hover {
    background: var(--accent);
    color: var(--text-inverse);

    img {
        filter: invert(100%) contrast(150%);
    }
}

.btn--ghost {
    background: transparent;
    color: var(--text-mid);
    border-color: transparent;
}

.btn--ghost:hover {
    background: var(--bg-subtle);
    color: var(--text);
}

.btn--orange {
    background: var(--orange);
    color: white;
    border-color: var(--orange);

    img {
        filter: invert(100%) contrast(150%);
    }
}

.btn--orange:hover {
    background: hsl(24, 90%, 42%);
    color: white;
}

.btn--green {
    background: var(--green);
    color: white;
    border-color: var(--green);

    img {
        filter: invert(100%) contrast(150%);
    }
}

.btn--green:hover {
    background: var(--green-light);
    color: white;
}

.btn--danger {
    background: var(--error);
    color: white;
    border-color: var(--error);

    img {
        filter: invert(100%) contrast(150%);
    }
}

.btn--danger:hover {
    background: var(--accent-dark);
    color: white;
}

.btn--sm {
    padding: 0.4rem var(--space-3);
    font-size: var(--text-xs);
}

.btn--lg {
    padding: 0.875rem var(--space-8);
    font-size: var(--text-base);
}

.btn--xl {
    padding: 1rem var(--space-10);
    font-size: var(--text-lg);
}

.btn--full {
    width: 100%;
}

.btn:disabled,
.btn.loading {
    opacity: 0.6;
    pointer-events: none;
}

h2 {
    min-height: 2.3rem;
    line-height: 2.3rem;
}

/* ---- Cards ---- */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card--clickable {
    cursor: pointer;
}

.card--clickable:hover {
    transform: translateY(-2px);
}

.card--featured {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent), var(--shadow);
}

.card__body {
    padding: var(--space-5);
    min-height: 153px;
}

.card__footer {
    padding: var(--space-4) var(--space-5);
    border-top: 1px solid var(--border);
    background: var(--bg-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ---- Job Card ---- */
.job-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-5);
    transition: all var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.job-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.job-card--featured {
    border-left: 3px solid var(--orange);
}

.job-card__header {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
}

.job-card__logo {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    object-fit: cover;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.job-card__logo-placeholder {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    background: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--text-lg);
    color: var(--accent);
    flex-shrink: 0;
}

.job-card__title {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}

.job-card__company {
    font-size: var(--text-sm);
    color: var(--text-mid);
    margin-top: 2px;
}

.job-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    align-items: center;
    font-size: var(--text-sm);
    color: var(--text-soft);
}

.job-card__meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.job-card__salary {
    font-weight: 700;
    color: var(--success);
    font-size: var(--text-sm);
}

/* ---- Badges ---- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px var(--space-2);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.5;
}

.badge--clt {
    background: hsl(145, 60%, 90%);
    color: hsl(145, 60%, 28%);
}

.badge--freelancer {
    background: hsl(210, 70%, 90%);
    color: hsl(210, 70%, 28%);
}

.badge--diaria {
    background: hsl(38, 90%, 88%);
    color: hsl(38, 90%, 28%);
}

.badge--pj {
    background: hsl(270, 60%, 90%);
    color: hsl(270, 60%, 30%);
}

.badge--estagio {
    background: hsl(353, 60%, 90%);
    color: hsl(353, 60%, 30%);
}

.badge--featured {
    background: var(--orange);
    color: white;
}

.badge--verified {
    background: var(--success-light);
    color: var(--success);
}

.badge--new {
    background: var(--accent-light);
    color: var(--accent);
}

/* ---- Forms ---- */
.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-label {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text);
}

.form-label span {
    color: var(--accent);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.625rem var(--space-4);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: var(--text-base);
    color: var(--text);
    background: var(--bg-card);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
    border-color: var(--error);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.form-hint {
    font-size: var(--text-xs);
    color: var(--text-soft);
}

.form-error {
    font-size: var(--text-xs);
    color: var(--error);
    font-weight: 500;
}

.form-row {
    display: grid;
    gap: var(--space-4);
}

@media (min-width: 640px) {
    .form-row--2 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 768px) {
    .form-row--3 {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

/* ---- Search Bar ---- */
.search-bar {
    display: flex;
    gap: var(--space-2);
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-2);
    box-shadow: var(--shadow);
}

.search-bar input {
    flex: 1;
    border: none;
    background: none;
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-base);
    outline: none;
    color: var(--text);
}

.search-bar input::placeholder {
    color: var(--text-soft);
}

.search-bar button {
    flex-shrink: 0;
    padding: var(--space-3) var(--space-5);
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: var(--text-sm);
    transition: background var(--transition);
}

.search-bar button:hover {
    background: var(--accent-dark);
}

/* ---- Hero ---- */
.hero {
    background: var(--bg-dark);
    background-image:
        radial-gradient(ellipse at 20% 50%, hsla(353, 71%, 44%, .20) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, hsla(24, 90%, 50%, .12) 0%, transparent 50%);
    color: var(--text-inverse);
    padding: var(--space-20) 0 var(--space-16);
    position: relative;
    overflow: hidden;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: hsla(353, 71%, 44%, .20);
    border: 1px solid hsla(353, 71%, 44%, .35);
    color: #ddd;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 500;
    margin-bottom: var(--space-6);
}

.hero__title {
    font-family: var(--font-body);
    font-size: var(--text-4xl);
    line-height: 1.15;
    font-weight: 700;
    margin-bottom: var(--space-5);
}

@media (min-width: 768px) {
    .hero__title {
        font-size: var(--text-5xl);
    }
}

.hero__title em {
    color: var(--orange);
    font-style: normal;
}

.hero__sub {
    font-size: var(--text-lg);
    color: hsl(0, 0%, 78%);
    max-width: 540px;
    margin-bottom: var(--space-8);
    line-height: 1.7;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-bottom: var(--space-10);
}

.hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-8);
    margin-top: var(--space-4);
}

.hero__stat-num {
    display: block;
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--text-inverse);
    font-family: var(--font-body);
}

.hero__stat-label {
    font-size: var(--text-sm);
    color: hsl(0, 0%, 65%);
}

/* ---- Section ---- */
.section {
    padding: var(--space-16) 0;
}

.section--sm {
    padding: var(--space-10) 0;
}

.section--alt {
    background: var(--bg-subtle);
}

.section__header {
    margin-bottom: var(--space-8);
}

.section__eyebrow {
    font-size: var(--text-sm);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: var(--space-2);
}

.section__title {
    font-family: var(--font-body);
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
    margin-bottom: var(--space-3);
}

.section__sub {
    font-size: var(--text-lg);
    color: var(--text-mid);
    max-width: 560px;
}

/* ---- Category Pills ---- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
}

@media (min-width: 480px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.category-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-4);
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text);
    font-size: var(--text-sm);
    font-weight: 600;
    text-align: center;
    transition: all var(--transition);
}

.category-pill:hover {
    border-color: var(--accent);
    background: var(--accent-light);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.category-pill__icon {
    font-size: 1.5rem;
    line-height: 1;
}

.category-pill__count {
    font-size: var(--text-xs);
    color: var(--text-soft);
    font-weight: 400;
}

/* ---- Company Card ---- */
.company-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-5);
    display: flex;
    align-items: center;
    gap: var(--space-4);
    transition: all var(--transition);
    text-decoration: none;
    color: inherit;
}

.company-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow);
    color: inherit;
}

.company-card__logo {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    object-fit: cover;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.company-card__info {
    flex: 1;
    min-width: 0;
}

.company-card__name {
    font-weight: 700;
    color: var(--text);
}

.company-card__meta {
    font-size: var(--text-sm);
    color: var(--text-soft);
    margin-top: 2px;
}

.company-card__jobs {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--accent);
    flex-shrink: 0;
}

/* ---- Toasts ---- */
.toast-container {
    position: fixed;
    bottom: var(--space-6);
    right: var(--space-6);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    pointer-events: none;
}

.toast {
    pointer-events: all;
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    font-size: var(--text-sm);
    font-weight: 500;
    max-width: 360px;
    animation: toastIn .3s ease;
    color: white;
}

.toast--success {
    background: var(--success);
}

.toast--error {
    background: var(--error);
}

.toast--info {
    background: var(--info);
}

.toast--warning {
    background: var(--warning);
    color: var(--text);
}

.toast__close {
    margin-left: auto;
    background: none;
    border: none;
    color: inherit;
    opacity: .7;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0 var(--space-1);
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes toastOut {
    to {
        opacity: 0;
        transform: translateY(16px);
    }
}

/* ---- Modal ---- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: hsla(353, 30%, 5%, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.modal {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    max-width: 480px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    transform: scale(0.95);
    transition: transform var(--transition);
}

.modal-overlay.open .modal {
    transform: scale(1);
}

.modal__title {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-3);
}

.modal__body {
    color: var(--text-mid);
    margin-bottom: var(--space-6);
    line-height: 1.7;
}

.modal__actions {
    display: flex;
    gap: var(--space-3);
    justify-content: flex-end;
}

/* ---- Alerts ---- */
.alert {
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius);
    border-left: 4px solid;
    font-size: var(--text-sm);
    margin-bottom: var(--space-4);
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
}

.alert--success {
    background: var(--success-light);
    border-color: var(--success);
    color: hsl(145, 60%, 22%);
}

.alert--error {
    background: var(--error-light);
    border-color: var(--error);
    color: hsl(353, 71%, 25%);
}

.alert--info {
    background: var(--info-light);
    border-color: var(--info);
    color: hsl(210, 70%, 25%);
}

.alert--warning {
    background: var(--warning-light);
    border-color: var(--warning);
    color: hsl(38, 70%, 25%);
}

/* ---- Pagination ---- */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-8) 0;
}

.pagination__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    font-size: var(--text-sm);
    font-weight: 600;
    text-decoration: none;
    color: var(--text-mid);
    border: 1.5px solid var(--border);
    transition: all var(--transition);
}

.pagination__item:hover,
.pagination__item.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.pagination__item.disabled {
    opacity: .4;
    pointer-events: none;
}

/* ---- Tabs ---- */
.tabs {
    border-bottom: 2px solid var(--border);
    display: flex;
    gap: 0;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
    display: none;
}

.tab-item {
    padding: var(--space-3) var(--space-5);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-soft);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
}

.tab-item:hover {
    color: var(--text);
}

.tab-item.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* ---- Dashboard Layout ---- */
.dashboard {
    min-height: calc(100vh - var(--nav-height));
    display: grid;
}

@media (min-width: 1024px) {
    .dashboard {
        grid-template-columns: 240px 1fr;
    }
}

.sidebar {
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    padding: var(--space-6) 0;
    display: none;
}

@media (min-width: 1024px) {
    .sidebar {
        display: block;
    }
}

.sidebar__nav {
    display: flex;
    flex-direction: column;
}

.sidebar__item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-mid);
    text-decoration: none;
    transition: all var(--transition);
    border-left: 3px solid transparent;
}

.sidebar__item:hover {
    background: var(--bg-subtle);
    color: var(--text);
}

.sidebar__item.active {
    background: var(--accent-light);
    color: var(--accent);
    border-left-color: var(--accent);
}

.sidebar__divider {
    height: 1px;
    background: var(--border);
    margin: var(--space-3) var(--space-6);
}

.sidebar__label {
    padding: var(--space-3) var(--space-6) var(--space-1);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-soft);
}

.dashboard__main {
    padding: var(--space-8);
    overflow: auto;
}

@media (max-width: 1023px) {
    .dashboard__main {
        padding: var(--space-4);
    }
}

/* ---- Stats Card ---- */
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-5);
}

.stat-card__label {
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-soft);
    margin-bottom: var(--space-2);
}

.stat-card__num {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--text);
    font-family: var(--font-body);
}

.stat-card__sub {
    font-size: var(--text-xs);
    color: var(--text-soft);
    margin-top: var(--space-1);
}

.stat-card__trend {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: var(--text-xs);
    font-weight: 600;
    margin-top: var(--space-2);
}

.stat-card__trend--up {
    color: var(--success);
}

.stat-card__trend--down {
    color: var(--error);
}

/* ---- Progress Bar ---- */
.progress {
    height: 8px;
    background: var(--bg-subtle);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin: var(--space-2) 0;
}

.progress__bar {
    height: 100%;
    border-radius: var(--radius-full);
    background: var(--accent);
    transition: width .5s ease;
}

.progress__bar--orange {
    background: var(--orange);
}

.progress__bar--green {
    background: var(--success);
}

/* ---- Avatar ---- */
.avatar {
    border-radius: var(--radius-full);
    object-fit: cover;
    box-shadow: 0 0 0 1px #fff, 0 0 0 3px var(--border);
    flex-shrink: 0;
}

.avatar--sm {
    width: 32px;
    height: 32px;
}

.avatar--md {
    width: 48px;
    height: 48px;
}

.avatar--lg {
    width: 64px;
    height: 64px;
}

.avatar--xl {
    width: 96px;
    height: 96px;
}

.avatar--2xl {
    width: 128px;
    height: 128px;
}

.avatar-placeholder {
    border-radius: var(--radius-full);
    background: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--accent);
    flex-shrink: 0;
}

/* ---- Tags / Skills ---- */
.tag {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: 4px var(--space-3);
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--text-mid);
    transition: all var(--transition);
}

.tag--active,
.tag:hover {
    background: var(--accent-light);
    border-color: var(--accent);
    color: var(--accent);
}

.tag--remove {
    cursor: pointer;
}

.tag__x {
    font-size: 1rem;
    line-height: 1;
    opacity: .6;
}

.tag__x:hover {
    opacity: 1;
}

/* ---- Table ---- */
.table-wrap {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm);
}

.table th {
    text-align: left;
    padding: var(--space-3) var(--space-4);
    background: var(--bg-subtle);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-soft);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.table td {
    padding: var(--space-4);
    border-bottom: 1px solid var(--border);
    color: var(--text);
    vertical-align: middle;
}

.table tr:last-child td {
    border-bottom: none;
}

.table tr:hover td {
    background: var(--bg-subtle);
}

/* ---- Empty State ---- */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-16) var(--space-8);
    text-align: center;
}

.empty-state__icon {
    font-size: 3rem;
    margin-bottom: var(--space-4);
    opacity: .5;
}

.empty-state__title {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--text);
    margin-bottom: var(--space-2);
}

.empty-state__text {
    color: var(--text-soft);
    font-size: var(--text-sm);
    max-width: 320px;
}

/* ---- Loading Spinner ---- */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2.5px solid hsla(353, 71%, 44%, .25);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

.spinner--sm {
    width: 14px;
    height: 14px;
}

.spinner--lg {
    width: 36px;
    height: 36px;
}

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

.loading-overlay {
    position: fixed;
    inset: 0;
    background: hsla(30, 20%, 98%, .8);
    backdrop-filter: blur(2px);
    z-index: 8888;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---- Footer ---- */
.footer {
    background: var(--bg-dark);
    color: hsl(0, 0%, 70%);
    padding: var(--space-16) 0 var(--space-8);
}

.footer__grid {
    display: grid;
    gap: var(--space-10);
    margin-bottom: var(--space-12);
}

@media (min-width: 640px) {
    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer__grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

.footer__brand {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.footer__logo {
    font-family: var(--font-body);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: white;
}

.footer__logo span {
    color: var(--orange);
}

.footer__tagline {
    font-size: var(--text-sm);
    line-height: 1.7;
    max-width: 280px;
}

.footer__col h4 {
    font-size: var(--text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: white;
    margin-bottom: var(--space-4);
}

.footer__col ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.footer__col a {
    font-size: var(--text-sm);
    color: hsl(0, 0%, 65%);
    transition: color var(--transition);
}

.footer__col a:hover {
    color: var(--orange);
}

.footer__bottom {
    border-top: 1px solid hsla(0, 0%, 100%, .08);
    padding-top: var(--space-6);
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    align-items: center;
    justify-content: space-between;
    font-size: var(--text-xs);
}

/* ---- Utility ---- */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-accent {
    color: var(--accent);
}

.text-orange {
    color: var(--orange);
}

.text-soft {
    color: var(--text-soft);
}

.text-mid {
    color: var(--text-mid);
}

.text-success {
    color: var(--success);
}

.text-sm {
    font-size: var(--text-sm);
}

.text-xs {
    font-size: var(--text-xs);
}

.text-bold {
    font-weight: 700;
}

.mt-auto {
    margin-top: auto;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-2 {
    gap: var(--space-2);
}

.gap-3 {
    gap: var(--space-3);
}

.gap-4 {
    gap: var(--space-4);
}

.gap-6 {
    gap: var(--space-6);
}

.flex-wrap {
    flex-wrap: wrap;
}

.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ---- Admin Specific ---- */
.admin-header {
    background: var(--bg-dark);
    color: white;
    padding: var(--space-4) var(--space-6);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
}

.admin-header__title {
    font-size: var(--text-lg);
    font-weight: 700;
    color: white;
}

.admin-sidebar {
    background: hsl(353, 30%, 8%);
    min-height: 100vh;
    padding: var(--space-6) 0;
}

.admin-sidebar__item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-5);
    color: hsl(0, 0%, 65%);
    font-size: var(--text-sm);
    text-decoration: none;
    transition: all var(--transition);
    border-left: 3px solid transparent;
}

.admin-sidebar__item:hover {
    background: hsla(353, 71%, 44%, .1);
    color: white;
}

.admin-sidebar__item.active {
    background: hsla(353, 71%, 44%, .15);
    color: hsl(353, 80%, 75%);
    border-left-color: var(--accent);
}

/* ---- Chart (pure CSS bars) ---- */
.chart-bar-wrap {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.chart-bar-row {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.chart-bar-label {
    width: 120px;
    font-size: var(--text-xs);
    color: var(--text-mid);
    text-align: right;
    flex-shrink: 0;
}

.chart-bar-track {
    flex: 1;
    height: 10px;
    background: var(--bg-subtle);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.chart-bar-fill {
    height: 100%;
    border-radius: var(--radius-full);
    background: var(--accent);
    transition: width .6s cubic-bezier(.4, 0, .2, 1);
}

.chart-bar-fill--orange {
    background: var(--orange);
}

.chart-bar-val {
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--text);
    width: 40px;
}

/* ---- Notifications dot ---- */
.notif-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    border: 2px solid var(--bg-card);
}

/* ---- Completion ring ---- */
.completion-ring {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.completion-ring svg {
    transform: rotate(-90deg);
}

.completion-ring__text {
    position: absolute;
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--text);
}

/* ---- CTA Banner ---- */
.cta-banner {
    background: var(--bg-dark);
    background-image: linear-gradient(135deg, hsl(353, 71%, 20%) 0%, hsl(353, 30%, 10%) 100%);
    color: white;
    border-radius: var(--radius-xl);
    padding: var(--space-12) var(--space-8);
    text-align: center;
}

.cta-banner h2 {
    font-family: var(--font-body);
    font-size: var(--text-3xl);
    margin-bottom: var(--space-4);
}

.cta-banner p {
    color: hsl(0, 0%, 72%);
    font-size: var(--text-lg);
    margin-bottom: var(--space-8);
}

.cta-banner .btn--primary {
    background: white;
    color: var(--accent);
    border-color: white;
}

.cta-banner .btn--primary:hover {
    background: var(--bg-subtle);
}

.cta-banner .btn--outline {
    border-color: hsla(0, 0%, 100%, .4);
    color: white;
}

.cta-banner .btn--outline:hover {
    background: hsla(0, 0%, 100%, .1);
    border-color: white;
}

/* ---- "Como funciona" steps ---- */
.steps {
    display: grid;
    gap: var(--space-8);
}

@media (min-width: 768px) {
    .steps {
        grid-template-columns: repeat(3, 1fr);
    }
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-4);
}

.step__num {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: var(--accent);
    color: white;
    font-size: var(--text-2xl);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step__title {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--text);
}

.step__desc {
    font-size: var(--text-sm);
    color: var(--text-mid);
    line-height: 1.7;
}

/* ---- Application status colors ---- */
.status--pendente {
    color: var(--warning);
    background: var(--warning-light);
}

.status--visualizado {
    color: var(--info);
    background: var(--info-light);
}

.status--entrevista {
    color: var(--orange);
    background: var(--orange-light);
}

.status--contratado {
    color: var(--success);
    background: var(--success-light);
}

.status--rejeitado {
    color: var(--text-soft);
    background: var(--bg-subtle);
}

.status-badge {
    padding: 3px var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: capitalize;
}

/* ---- Responsive utilities ---- */
@media (max-width: 767px) {
    .hide-mobile {
        display: none !important;
    }
}

@media (min-width: 768px) {
    .hide-desktop {
        display: none !important;
    }
}

/* ---- Animations ---- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-12px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.animate-fade {
    animation: fadeIn .35s ease both;
}

.animate-slide {
    animation: slideIn .35s ease both;
}
