/* RESET & BASIS ---------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* USER PROFILE BLOCK ---- */
.user-profile-block {
    background: linear-gradient(135deg, var(--card) 0%, rgba(37, 99, 235, 0.08) 100%);
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.user-profile-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
    min-width: 250px;
}

.user-info h2 {
    margin: 0 0 0.25rem 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
}

.user-role {
    color: var(--accent);
    font-weight: 500;
    text-transform: capitalize;
}

/* NEW: User Panel - Compact, Top-Level */
.user-panel {
    background: linear-gradient(135deg, rgba(37,99,235,0.16), rgba(15,23,42,0.96));
    border: 1px solid rgba(37,99,235,0.35);
    border-radius: var(--radius-lg);
    padding: 1.4rem;
    margin-bottom: 1.8rem;
    box-shadow: 0 12px 32px rgba(37,99,235,0.15);
}

.user-panel-inner {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.user-left {
    flex-shrink: 0;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    border: 2px solid rgba(37,99,235,0.4);
}

.avatar-gen {
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    box-shadow: 0 8px 24px rgba(37,99,235,0.35);
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.user-right {
    flex: 1;
    min-width: 0;
}

.user-name {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    word-break: break-word;
}

.user-panel .user-role {
    margin: 0.2rem 0 0.6rem;
    font-size: 0.9rem;
    color: var(--text-soft);
    text-transform: capitalize;
}

.user-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.user-actions button,
.user-actions a {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    flex-shrink: 0;
}

.provider-panel {
    background: linear-gradient(135deg, rgba(79,70,229,0.16), rgba(15,23,42,0.96));
}

.filters-section {
    background: rgba(15,23,42,0.4);
    border-radius: var(--radius-lg);
    padding: 1.2rem;
    margin-bottom: 1.8rem;
}

.filters-section .card {
    margin-bottom: 0.8rem;
}

.filters-section .card:last-child {
    margin-bottom: 0;
}

.filter-panel {
    background: radial-gradient(circle at top left, rgba(79,70,229,0.12), rgba(15,23,42,0.96));
}

.jobs-container {
    margin-top: 0.6rem;
}

@media (max-width: 768px) {
    .user-profile-block {
        flex-direction: column;
        align-items: flex-start;
    }

    .user-panel-inner {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .user-actions {
        width: 100%;
    }

    .user-actions button,
    .user-actions a {
        flex: 1 1 48%;
    }
}


@media (max-width: 768px) {
    .user-profile-block {
        flex-direction: column;
        align-items: flex-start;
    }
    .auth-form.card {
        width: 100%;
        max-width: 100%;
        margin: 1rem 0;
    }
    .floating-label input,
    .floating-label textarea,
    .floating-label select {
        padding-top: 1.25rem;
        line-height: 1.4;
    }
}
:root {
    --bg: #030712;
    --bg-soft: #0c1324;
    --card: #0f172a;
    --accent: #2563eb;
    --accent-soft: rgba(37, 99, 235, 0.22);
    --accent-strong: #1d4ed8;
    --accent-secondary: #16a34a;
    --text: #f8fafc;
    --text-soft: #d1d8e5;
    --danger: #ef4444;
    --warning: #fbbf24;
    --focus-ring: #38bdf8;
    --radius-lg: 16px;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.6);
    --transition-fast: 0.18s ease-out;
    --transition-med: 0.25s ease-out;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
    color: var(--text);
    background: radial-gradient(circle at top, #0f172a 0, #020617 55%, #000 100%);
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;
}

body:focus-visible {
    outline: none;
}

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

.skip-link {
    position: absolute;
    left: 12px;
    top: 12px;
    padding: 0.55rem 0.9rem;
    background: var(--accent);
    color: #fff;
    z-index: 120;
    border-radius: var(--radius-sm);
    transform: translateY(-140%);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.skip-link:focus-visible {
    transform: translateY(0);
    outline: 2px solid var(--focus-ring);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

body[data-page="user"] {
    overflow: hidden;
}

body[data-page="user"] main {
    height: calc(100vh - 150px);
    overflow-y: auto;
    padding-bottom: 2rem;
}

body[data-page="cv"] main {
    min-height: calc(100vh - 150px);
}

#main-content:focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 4px;
}

/* HEADER & NAV ---------------------------------- */
.main-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 6vw;
    backdrop-filter: blur(14px);
    background: linear-gradient(to bottom, rgba(2,6,23,0.95), rgba(2,6,23,0.85), transparent);
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: radial-gradient(circle at top, var(--accent-strong), var(--accent));
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 0 30px rgba(79, 70, 229, 0.6);
}

.brand-logo span {
    text-shadow:
        0 0 12px rgba(0, 255, 208, 0.25),
        0 0 32px rgba(0, 170, 255, 0.15);
}

.brand-logo.small {
    width: 24px;
    height: 24px;
    font-size: 0.7rem;
}

.brand-text {
    font-weight: 600;
    letter-spacing: 0.03em;
}

/* TeenJobs Gradient Logo */
.teenjobs-logo {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    font-family: 'Inter', 'Poppins', 'Segoe UI', sans-serif;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1;
    margin-bottom: 1.5rem;
}

.teenjobs-logo .teen {
    font-size: clamp(2.8rem, 5vw, 4.2rem);
    background: linear-gradient(
        90deg,
        #00aaff,
        #00ffd0
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.teenjobs-logo .jobs {
    margin-top: 0.15em;
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    background: linear-gradient(
        90deg,
        #00ffd0,
        #00c8ff
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.95rem;
}

.main-nav a,
.main-nav button.nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-soft);
    text-decoration: none;
    position: relative;
    padding: 0.45rem 0.5rem;
    border-radius: 10px;
    transition: color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
    background: transparent;
    border: none;
    font: inherit;
    cursor: pointer;
}

.main-nav a::after,
.main-nav button.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.25rem;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
    border-radius: 999px;
    transition: width var(--transition-med);
}

.main-nav a:hover,
.main-nav button.nav-link:hover {
    color: var(--text);
}

.main-nav a:hover::after,
.main-nav button.nav-link:hover::after {
    width: 100%;
}

.main-nav a:hover,
.main-nav button.nav-link:hover {
    background: rgba(79, 70, 229, 0.12);
    box-shadow: 0 6px 24px rgba(79, 70, 229, 0.25);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
}

/* BUTTONS ---------------------------------- */
.btn-primary,
.btn-outline,
.btn-ghost,
.link-btn {
    border-radius: 999px;
    padding: 0.6rem 1.35rem;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition:
        background var(--transition-med),
        color var(--transition-med),
        transform 0.14s ease-out,
        box-shadow var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    color: white;
    box-shadow: 0 16px 35px rgba(79, 70, 229, 0.55);
}

.btn-primary:hover {
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 20px 45px rgba(79, 70, 229, 0.75);
}

.btn-primary:active,
.btn-outline:active,
.btn-ghost:active {
    transform: translateY(0);
}

button:disabled,
button[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(148, 163, 184, 0.6);
    color: var(--text-soft);
}

.btn-outline:hover {
    background: rgba(148, 163, 184, 0.12);
    color: var(--text);
}

.btn-ghost {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: var(--text-soft);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.9);
    border: 1px solid rgba(239, 68, 68, 0.8);
    color: white;
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 1);
    border-color: rgba(239, 68, 68, 1);
}

.btn-primary,
.btn-outline,
.btn-ghost,
.btn-danger {
    min-height: 44px;
}

.btn-ghost:hover {
    background: rgba(15, 23, 42, 1);
}

.btn-outline:focus-visible,
.btn-primary:focus-visible,
.btn-ghost:focus-visible {
    outline: 2px solid var(--accent-strong);
    outline-offset: 2px;
}

.link-btn {
    background: transparent;
    padding: 0;
    color: var(--accent-strong);
}

.link-btn:hover {
    text-decoration: underline;
}

.small {
    font-size: 0.8rem;
    padding: 0.4rem 0.9rem;
}

.full-width {
    width: 100%;
}

/* HERO ---------------------------------- */
.hero {
    min-height: calc(100vh - 70px);
    padding: 4rem 6vw 3rem;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
}

.hero-content h1 {
    font-size: clamp(2.4rem, 4vw, 3.3rem);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-content p {
    color: var(--text-soft);
    max-width: 32rem;
    margin-bottom: 1.5rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.3rem;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    font-size: 0.8rem;
    color: var(--text-soft);
}

.hero-badges span {
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.hero-visual {
    position: relative;
    min-height: 220px;
    perspective: 1000px;
}

.hero-card {
    position: absolute;
    right: 0;
    left: 10%;
    margin: auto;
    max-width: 260px;
    padding: 1rem 1.3rem;
    border-radius: var(--radius-lg);
    background: radial-gradient(circle at top left, #1f2937, var(--card));
    color: var(--text-soft);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(148, 163, 184, 0.4);
    backdrop-filter: blur(18px);
    transform-style: preserve-3d;
    animation: float 8s ease-in-out infinite;
}

.hero-card-1 {
    top: 0;
    transform: translate3d(10px, 0, 40px) rotate3d(0,1,0,6deg);
}

.hero-card-2 {
    top: 90px;
    transform: translate3d(-40px, 0, 0) rotate3d(0,1,0,-4deg);
    animation-delay: -2s;
}

.hero-card-3 {
    top: 180px;
    transform: translate3d(30px, 0, -30px) rotate3d(0,1,0,8deg);
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% { transform: translate3d(0,0,0) scale(1); }
    50% { transform: translate3d(0, -14px, 0) scale(1.01); }
}

/* AUTH SECTION ---------------------------------- */
.auth-section {
    padding: 2rem 6vw 3rem;
    background: radial-gradient(circle at top, rgba(79, 70, 229, 0.24), transparent 55%);
}

.section-switch {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin: 0.4rem 0 1rem;
}

.switch-btn {
      border-radius: var(--radius-sm);
      padding: 0.45rem 1.1rem;
      border: 1px solid rgba(148, 163, 184, 0.5);
      background: rgba(15,23,42,0.9);
      color: var(--text-soft);
      cursor: pointer;
      transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.switch-btn.active {
      background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
      color: white;
      border-color: rgba(129, 140, 248, 0.9);
}

.switch-btn:hover {
      border-color: rgba(129, 140, 248, 0.6);
      box-shadow: 0 10px 28px rgba(0,0,0,0.28);
      transform: translateY(-1px);
}

.switch-btn:focus-visible {
      outline: 2px solid var(--focus-ring);
      outline-offset: 2px;
      box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.25);
}

.auth-tabs {
    display: inline-flex;
    padding: 0.25rem;
    background: rgba(15, 23, 42, 0.9);
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    margin: 0 auto 1rem;
}

.auth-tab {
    border-radius: 999px;
    padding: 0.5rem 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-soft);
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95rem;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.auth-tab.active {
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    color: white;
}

.auth-panels {
    display: flex;
    justify-content: center;
}

.auth-panel {
    display: none;
    width: 100%;
    max-width: 420px;
    animation: panelFadeIn 0.25s ease-out forwards;
}

.auth-panel-active {
    display: block;
}

@keyframes panelFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-form.card {
    padding: 1.7rem 1.8rem;
    position: relative;
    z-index: 1;
}

/* CARDS ---------------------------------- */
.card {
      background: radial-gradient(circle at top left, rgba(79, 70, 229, 0.16), rgba(15, 23, 42, 0.96));
      border-radius: var(--radius-lg);
      border: 1px solid rgba(148, 163, 184, 0.4);
      box-shadow: var(--shadow-soft);
      padding: 1.3rem 1.4rem;
      backdrop-filter: blur(16px);
      transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.2s ease, background 0.2s ease, opacity 0.2s ease;
  }

.card:hover {
      transform: translateY(-2px);
      box-shadow: 0 18px 52px rgba(0, 0, 0, 0.55);
      border-color: rgba(148, 163, 184, 0.25);
}

.card.small {
    max-width: 400px;
    margin: 2rem auto;
}

/* FORMS ---------------------------------- */
.floating-label {
    position: relative;
    display: block;
    margin-bottom: 1.1rem;
}

.floating-label span {
    position: absolute;
    left: 0.95rem;
    top: 0.35rem; /* move label above input, not centered inside */
    transform: none;
    font-size: 0.78rem;
    color: var(--text-soft);
    pointer-events: none;
    transition: all 0.16s ease-out;
    background: radial-gradient(circle at top, rgba(15,23,42,0.95), rgba(15,23,42,0.95));
    padding: 0 0.25rem;
    border-radius: 999px;
    opacity: 0.9;
}

.floating-label input,
.floating-label textarea {
    width: 100%;
    padding: 1rem 1rem;
    padding-top: 1.15rem;
    border-radius: var(--radius);
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: radial-gradient(circle at top left, rgba(148,163,184,0.12), rgba(15,23,42,0.88));
    color: var(--text);
    outline: none;
    font-size: 1rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}

.floating-label textarea {
    resize: vertical;
    min-height: 90px;
}

.floating-label select {
    appearance: none;
    width: 100%;
    padding: 1rem 1rem;
    padding-top: 1.15rem;
    border-radius: var(--radius);
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: radial-gradient(circle at top left, rgba(148,163,184,0.12), rgba(15,23,42,0.88));
    color: var(--text);
    font-size: 1rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

select option {
    background: var(--card);
    color: var(--text);
}

.floating-label input:focus,
.floating-label textarea:focus {
    border-color: var(--accent-strong);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2), inset 0 1px 0 rgba(255,255,255,0.08);
    background: radial-gradient(circle at top left, rgba(99,102,241,0.12), rgba(15,23,42,0.95));
    transform: translateY(-1px);
}

.floating-label input:hover,
.floating-label textarea:hover {
    border-color: rgba(148, 163, 184, 0.55);
}

.floating-label input::placeholder,
.floating-label textarea::placeholder {
    color: var(--text-soft); /* show placeholder so it disappears on typing */
}

.floating-label input[type="date"] {
    min-height: 46px;
    padding-top: 1.25rem;
    color: var(--text);
    -webkit-text-fill-color: var(--text);
}

/* Hide native TT.MM.JJJJ hint until focus; reveal value or typed date on focus/valid */
input[type="date"]:not(:focus):not(:valid) {
    color: transparent;
    -webkit-text-fill-color: transparent;
}
input[type="date"]::-webkit-datetime-edit {
    color: transparent;
    transition: color 0.12s ease;
}
input[type="date"]:focus::-webkit-datetime-edit,
input[type="date"]:valid::-webkit-datetime-edit,
input[type="date"]:focus,
input[type="date"]:valid {
    color: inherit;
    -webkit-text-fill-color: inherit;
}

/* Optional class to hide date placeholder even when the field counts as valid (e.g., filters) */
.date-placeholder-hidden:not(:focus):not(.has-value) {
    color: transparent;
    -webkit-text-fill-color: transparent;
}
.date-placeholder-hidden:not(:focus):not(.has-value)::-webkit-datetime-edit {
    color: transparent;
}
.date-placeholder-hidden:focus::-webkit-datetime-edit,
.date-placeholder-hidden.has-value::-webkit-datetime-edit,
.date-placeholder-hidden:focus,
.date-placeholder-hidden.has-value {
    color: inherit;
    -webkit-text-fill-color: inherit;
}

.floating-label input[type="date"]:focus,
.floating-label input[type="date"].has-value {
    color: var(--text);
    -webkit-text-fill-color: var(--text);
}

.floating-label:focus-within span,
.floating-label.filled span {
    top: -0.45rem;
    transform: translateY(0);
    font-size: 0.7rem;
    color: var(--accent-strong);
    opacity: 0.9;
}

.floating-label input.has-value + span,
.floating-label textarea.has-value + span {
    top: -0.45rem;
    transform: translateY(0);
    font-size: 0.7rem;
    color: var(--accent-strong);
    opacity: 0.9;
}

.floating-label input:focus + span,
.floating-label textarea:focus + span {
    top: -0.45rem;
    transform: translateY(0);
    font-size: 0.7rem;
    color: var(--accent-strong);
    opacity: 0.95;
}

.floating-label select + span {
    top: 50%;
    transform: translateY(-50%);
}

.floating-label select:focus + span,
.floating-label select.has-value + span {
    top: -0.45rem;
    transform: translateY(0);
    font-size: 0.7rem;
    color: var(--accent-strong);
    opacity: 0.9;
}

/* Autofill cleanup */
input:-webkit-autofill,
textarea:-webkit-autofill {
    box-shadow: 0 0 0 1000px rgba(15,23,42,0.95) inset !important;
    -webkit-text-fill-color: var(--text) !important;
    transition: background-color 9999s ease-in-out 0s;
}

.checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.83rem;
    color: var(--text-soft);
}

.checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-strong);
}

.form-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.6rem;
}

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

.auth-subtitle {
    font-size: 0.85rem;
    color: var(--text-soft);
    margin-bottom: 1rem;
}

.form-hint {
    margin-top: 0.7rem;
    color: var(--text-soft);
}

.form-message {
    margin-top: 0.6rem;
    font-size: 0.85rem;
}

.form-message.error {
    color: var(--danger);
}

.form-message.success {
    color: var(--accent-secondary);
}

/* JOBS SECTION ---------------------------------- */
.jobs-section {
    padding: 3rem 6vw 3rem;
}

.section-header {
    margin-bottom: 1.3rem;
    position: relative;
    padding-bottom: 0.4rem;
}

.section-header.small-top {
    margin-top: 2rem;
}

.section-header h2 {
    margin: 0 0 0.3rem;
}

.section-header p {
    margin: 0;
    color: var(--text-soft);
}

.section-header::after {
     content: "";
     position: absolute;
     left: 0;
     bottom: 0;
     width: 64px;
     height: 3px;
     border-radius: 999px;
     background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
     box-shadow: 0 6px 18px rgba(79,70,229,0.35);
}

.filter-bar {
    margin-bottom: 1.2rem;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}
.filter-grid .floating-label {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.filter-grid .floating-label input,
.filter-grid .floating-label select,
.filter-grid .floating-label textarea {
    min-height: 52px;
    height: 52px;
}

.feedback-card {
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: var(--radius);
    padding: 1rem;
    background: rgba(15,23,42,0.9);
    margin-bottom: 0.8rem;
}


.filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    justify-content: flex-end;
    margin-top: 0.9rem;
}

.sort-control {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--text-soft);
    font-size: 0.9rem;
}

.sort-control select {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.4);
    border-radius: var(--radius-sm);
    color: var(--text);
    min-height: 44px;
    padding: 0.55rem 0.9rem;
    font-size: 0.95rem;
}

.sort-control select:focus-visible {
    outline: 2px solid var(--accent-strong);
    outline-offset: 2px;
}

.top-jobs-card {
    margin-bottom: 1rem;
    border-color: rgba(129, 140, 248, 0.5);
    background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.12), rgba(15,23,42,0.94));
}

.top-jobs-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-top: 0.6rem;
}

.quick-filter-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    padding: 0.75rem 0.95rem;
    margin: 0.8rem 0 0.4rem;
    border-radius: var(--radius);
    background: rgba(15,23,42,0.9);
    border: 1px solid rgba(148, 163, 184, 0.4);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.quick-filter-label {
    color: var(--text-soft);
    font-size: 0.9rem;
}

.quick-filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.quick-filter-btn {
    cursor: pointer;
}

.quick-filter-btn:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
}

.hit-count {
    margin-left: auto;
    padding: 0.35rem 0.7rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(17, 24, 39, 0.85);
    color: var(--text-soft);
    font-weight: 600;
}

.jobs-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.jobs-list.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 768px) {
    .jobs-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 540px) {
    .jobs-list,
    .jobs-list.compact {
        grid-template-columns: minmax(0, 1fr);
    }
}

.job-card {
    border-radius: var(--radius);
    background: radial-gradient(circle at top right, rgba(34,197,94,0.13), rgba(15,23,42,0.96));
    border: 1px solid rgba(148, 163, 184, 0.4);
    padding: 1rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.25s ease-out;
    gap: 0.4rem;
    cursor: pointer;
    transition: transform 0.12s ease-out, box-shadow var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}

.job-card.job-pending {
    border-color: rgba(251, 191, 36, 0.9);
    background: radial-gradient(circle at top right, rgba(251, 191, 36, 0.15), rgba(15,23,42,0.96));
}

.job-card.job-accepted {
    border-color: rgba(34, 197, 94, 0.9);
    background: radial-gradient(circle at top right, rgba(34, 197, 94, 0.12), rgba(15,23,42,0.96));
}

.job-card.job-status-pending {
    border-color: rgba(251, 191, 36, 0.9);
    background: radial-gradient(circle at top right, rgba(251, 191, 36, 0.15), rgba(15,23,42,0.96));
}

.job-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(79, 70, 229, 0.25), transparent 60%);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.job-card:hover {
      transform: translateY(-3px);
      box-shadow: 0 18px 40px rgba(15,23,42,0.9);
      border-color: rgba(129, 140, 248, 0.8);
  }

.job-card:hover::before {
      opacity: 0.7;
  }

.job-card:focus-visible {
      outline: 2px solid var(--focus-ring);
      outline-offset: 3px;
      box-shadow: 0 18px 40px rgba(15,23,42,0.9);
}

.job-card:focus-within {
      outline: 2px solid var(--accent-strong);
      outline-offset: 3px;
}

.job-header {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}

.job-title {
    font-weight: 600;
}

.job-location {
    font-size: 0.82rem;
    color: var(--text-soft);
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.3rem;
    font-size: 0.76rem;
}

.provider-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid rgba(148, 163, 184, 0.4);
}

.tag {
      padding: 0.2rem 0.5rem;
      border-radius: 999px;
      border: 1px solid rgba(148, 163, 184, 0.5);
      background: rgba(15,23,42,0.9);
}

.tag-accent {
    border-color: rgba(129, 140, 248, 0.9);
    background: rgba(30, 64, 175, 0.8);
}

.tag-status {
      font-weight: 500;
}

.tag:hover {
      border-color: rgba(148, 163, 184, 0.8);
      background: rgba(15,23,42,1);
      box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.tag:focus-visible {
      outline: 2px solid var(--focus-ring);
      outline-offset: 2px;
      box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.25);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.78rem;
    line-height: 1.2;
    background: rgba(148, 163, 184, 0.14);
    color: var(--text);
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.badge.subtle {
    color: var(--text-soft);
    background: rgba(148, 163, 184, 0.08);
    border-color: rgba(148, 163, 184, 0.22);
}

.badge.success {
    color: var(--accent-secondary);
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.55);
}

.badge.danger {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.55);
}

.badge.warning {
    color: var(--warning);
    background: rgba(251, 191, 36, 0.15);
    border-color: rgba(251, 191, 36, 0.55);
}

.job-body {
    font-size: 0.86rem;
    color: var(--text-soft);
    margin-top: 0.5rem;
}

.job-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.8rem;
}

.job-state-badge {
    margin-left: 0.5rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.78rem;
    border: 1px solid rgba(148, 163, 184, 0.6);
}

.job-state-badge.pending {
    color: var(--warning);
    border-color: rgba(251, 191, 36, 0.8);
}

.job-state-badge.accepted {
    color: var(--accent-secondary);
    border-color: rgba(34, 197, 94, 0.8);
}

/* Messages unter Job */
.job-messages {
    margin-top: 0.7rem;
    padding-top: 0.5rem;
    border-top: 1px dashed rgba(148, 163, 184, 0.4);
}

.job-messages-list {
    max-height: 80px;
    overflow-y: auto;
    margin-bottom: 0.3rem;
}

.job-message-item {
    font-size: 0.77rem;
    padding: 0.2rem 0.35rem;
    border-radius: 6px;
    background: rgba(15,23,42,0.9);
    margin-bottom: 0.2rem;
}

.job-message-meta {
    font-size: 0.7rem;
    color: var(--text-soft);
}

.job-message-input {
    display: flex;
    gap: 0.4rem;
    margin-top: 0.3rem;
}

.job-message-input input {
    flex: 1;
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
}

/* HOW SECTION / STEPS ---------------------------------- */
.how-section {
    padding: 3rem 6vw 3.5rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.step-card {
    position: relative;
    overflow: hidden;
}

.step-card .step-number {
    position: absolute;
    top: 0.8rem;
    right: 1rem;
    font-size: 3rem;
    font-weight: 700;
    color: rgba(55, 65, 81, 0.6);
    pointer-events: none;
}

.step-card h3 {
    margin-bottom: 0.4rem;
}

/* DASHBOARD / PROVIDER / ADMIN ---------------------------------- */
.dashboard-main {
    flex: 1;
    padding: 2rem 6vw 3rem;
}

.dashboard-section {
    margin-bottom: 2rem;
}

.dashboard-form .form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.info-banner {
    padding: 0.85rem 1rem;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(234,179,8,0.18), rgba(15,23,42,0.95));
    border: 1px solid rgba(234, 179, 8, 0.7);
    color: #facc15;
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
}

.info-banner.approved {
    background: linear-gradient(135deg, rgba(34,197,94,0.18), rgba(15,23,42,0.95));
    border-color: rgba(34,197,94,0.7);
    color: #4ade80;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}



/* FOOTER ---------------------------------- */
.main-footer {
    padding: 1rem 6vw;
    border-top: 1px solid rgba(15,23,42,0.9);
    background: rgba(2,6,23,0.96);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-soft);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.footer-links a {
      color: var(--text-soft);
    text-decoration: none;
      font-size: 0.8rem;
      transition: color var(--transition-fast), border-color var(--transition-fast);
}

.footer-links a:hover {
      color: var(--text);
      border-bottom: 1px solid rgba(148, 163, 184, 0.6);
}

.footer-left,
.footer-right {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

/* UTILITIES ---------------------------------- */
.hidden {
    display: none !important;
}

.view-hidden {
    display: none !important;
}

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

.cv-pill {
    display: inline-flex;
    gap: 0.4rem;
    align-items: center;
    padding: 0.35rem 0.75rem;
    background: rgba(34,197,94,0.12);
    color: var(--text);
    border: 1px solid rgba(34,197,94,0.4);
    border-radius: 999px;
    font-weight: 600;
}

.empty-message {
    font-size: 0.85rem;
    color: var(--text-soft);
    margin-top: 0.8rem;
}

.empty-message.small {
    font-size: 0.78rem;
}

.small-top {
    margin-top: 1.2rem;
}

/* Toasts */
#toast-container {
    position: fixed;
    top: 16px;
    right: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 4000;
    pointer-events: none;
}
.toast {
    min-width: 220px;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(17, 24, 39, 0.95);
    color: #fff;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: auto;
    font-size: 14px;
}
.toast.visible {
    opacity: 1;
    transform: translateY(0);
}
.toast.success { background: rgba(34, 197, 94, 0.95); }
.toast.error { background: rgba(239, 68, 68, 0.95); }
.toast.info { background: rgba(59, 130, 246, 0.95); }

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 80;
    padding: 1rem;
    transition: opacity 0.2s ease;
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    position: relative;
    width: min(700px, 95vw);
    max-height: 90vh;
    overflow-y: auto;
    background: rgba(15,23,42,0.96);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: var(--shadow-soft);
    padding: 1.4rem 1.6rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s ease, background 0.2s ease, opacity 0.2s ease;
    transform: translateY(12px);
    opacity: 0;
}

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

.modal.modal-open .modal-content {
    transform: translateY(0);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    border: none;
    background: rgba(15,23,42,0.8);
    color: var(--text);
    font-size: 1.4rem;
    cursor: pointer;
    width: 34px;
    height: 34px;
    border-radius: 50%;
}

.modal-close:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
}

.modal-meta {
    margin: 0.5rem 0 0.8rem;
}

.modal-section {
    margin-top: 0.8rem;
}

.modal-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.6rem;
}

.status-pill {
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.85rem;
    border: 1px solid rgba(148, 163, 184, 0.5);
    color: var(--text-soft);
}

.status-pending {
    color: var(--warning);
    border-color: rgba(251, 191, 36, 0.8);
}

.status-accepted {
    color: var(--accent-secondary);
    border-color: rgba(34, 197, 94, 0.8);
}

/* CHATS ---------------------------------- */
.chat-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.chat-card {
    border-radius: var(--radius);
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: radial-gradient(circle at top right, rgba(79,70,229,0.12), rgba(15,23,42,0.95));
    padding: 0.9rem 1rem;
}

.chat-card-header {
    display: flex;
    justify-content: space-between;
    gap: 0.6rem;
    align-items: flex-start;
}

.chat-sub {
    font-size: 0.85rem;
    color: var(--text-soft);
}

.chat-status {
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.8rem;
    border: 1px solid rgba(148, 163, 184, 0.5);
}

.chat-status-pending {
    color: var(--warning);
    border-color: rgba(251, 191, 36, 0.6);
}

.chat-status-accepted {
    color: var(--accent-secondary);
    border-color: rgba(34, 197, 94, 0.6);
}

.chat-status-rejected {
    color: var(--danger);
    border-color: rgba(239, 68, 68, 0.6);
}

.chat-body {
    margin-top: 0.6rem;
}

.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.chat-message {
    border-radius: var(--radius-sm);
    padding: 0.45rem 0.6rem;
    background: rgba(15,23,42,0.9);
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.chat-message.from-user {
    border-color: rgba(79, 70, 229, 0.5);
}

.chat-message.from-provider {
    border-color: rgba(34, 197, 94, 0.5);
}

.chat-message.from-system {
    border-style: dashed;
    opacity: 0.85;
}

.chat-meta {
    font-size: 0.75rem;
    color: var(--text-soft);
    margin-bottom: 0.2rem;
}

.chat-send {
    display: flex;
    gap: 0.45rem;
    margin-top: 0.6rem;
}

.chat-send input {
    flex: 1;
    padding: 0.45rem 0.65rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: rgba(15,23,42,0.92);
    color: var(--text);
}

.chat-actions {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 0.4rem;
}

/* MOTION & SMOOTHNESS ---------------------- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes popIn {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

.modal .modal-content {
    animation: popIn 0.2s ease-out;
}

.top-job-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    text-align: left;
    gap: 0.8rem;
    background: rgba(17, 24, 39, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: var(--radius);
    padding: 0.75rem 0.9rem;
    color: var(--text);
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.top-job-item:hover {
    transform: translateY(-1px);
    border-color: rgba(148, 163, 184, 0.35);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.top-job-item:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 3px;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.25);
}

.favorite-flag {
    font-weight: 700;
    color: var(--text-soft);
    transition: transform var(--transition-fast), color var(--transition-fast);
}

.favorite-flag.active {
    color: var(--accent-secondary);
    transform: scale(1.08);
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.dash-card {
    padding: 1rem;
    border-radius: var(--radius);
    border: 1px solid rgba(148,163,184,0.35);
    background: rgba(15,23,42,0.9);
    box-shadow: var(--shadow-soft);
}

.dash-card h3 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
}

.dash-card p {
    margin: 0;
    color: var(--text-soft);
}

/* Admin list adjustments: reuse existing card styles and layout utilities */
.admin-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0.9rem;
}

.admin-item .card-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.card-meta {
    text-align: right;
    min-width: 110px;
}

.card-actions button {
    min-height: 36px;
}

.bar-list .bar-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}

.bar {
    flex: 1;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
}

.plain-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plain-list li {
    margin-bottom: 0.35rem;
}

.feedback-center {
    text-align: center;
}

.feedback-center .form-row {
    justify-content: center;
    text-align: center;
}

.feedback-center small {
    display: block;
    width: 100%;
}

.feedback-center input[name="contact"],
.feedback-center input[name="rating"],
.feedback-center select,
.feedback-center textarea {
    text-align: center;
    text-align-last: center;
}

.feedback-center input[name="contact"]::placeholder {
    text-align: center;
}

.lang-select {
    background: rgba(15,23,42,0.8);
    color: var(--text);
    border: 1px solid rgba(148, 163, 184, 0.5);
    border-radius: var(--radius-sm);
    padding: 0.35rem 0.6rem;
    min-height: 40px;
}

/* SMOOTHER SCROLLBARS ---------------------- */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(17, 24, 39, 0.6);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent), var(--accent-secondary));
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--accent-strong), var(--accent-secondary));
}

/* RESPONSIVE ---------------------------------- */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: minmax(0, 1fr);
        padding-top: 3rem;
    }
    .hero-visual {
        order: -1;
        min-height: 170px;
    }
    .jobs-list,
    .jobs-list.compact,
    .steps-grid,
    .admin-grid,
    .filter-grid,
    .dashboard-form .form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .main-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
        padding: 0.65rem 5vw;
    }
    .main-nav {
        flex-wrap: wrap;
        gap: 0.6rem;
        font-size: 0.9rem;
        width: 100%;
    }
    .main-nav a,
    .lang-select {
        flex: 1 1 45%;
        text-align: center;
    }
    .hero {
        padding: 2.5rem 5vw 2.5rem;
    }
    .auth-section,
    .jobs-section,
    .how-section,
    .dashboard-main,
    .main-footer {
        padding-inline: 5vw;
    }
    .jobs-list,
    .jobs-list.compact,
    .steps-grid,
    .admin-grid,
    .filter-grid,
    .dashboard-form .form-grid,
    .dashboard-cards {
        grid-template-columns: minmax(0, 1fr);
    }
    .main-footer {
        flex-direction: column;
        gap: 0.4rem;
        align-items: flex-start;
    }
    .card,
    .dash-card {
        padding: 1rem 1.1rem;
    }
    .chat-card,
    .job-card {
        padding: 0.9rem 1rem;
    }
    .section-switch {
        gap: 0.4rem;
    }
    .filter-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .hero-visual {
        display: none;
    }
    .hero {
        grid-template-columns: minmax(0, 1fr);
        min-height: auto;
        padding: 2rem 5vw;
    }
    .section-header h2 {
        font-size: 1.35rem;
    }
    .section-header p {
        font-size: 0.95rem;
    }
    .job-card,
    .chat-card,
    .card {
        padding: 0.9rem 1rem;
    }
    .filter-grid .floating-label {
        margin-bottom: 0.4rem;
    }
    .top-jobs-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }
}

/* MODAL STYLES ---------------------------------- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 8px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: #000;
}

.form-footer {
    margin-top: 1.5rem;
    text-align: center;
}

.link-btn {
    background: none;
    border: none;
    color: #0066cc;
    cursor: pointer;
    padding: 0.5rem;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.link-btn:hover {
    color: #0052a3;
    text-decoration: underline;
}

.link-btn.small {
    font-size: 0.8rem;
    padding: 0.25rem;
}

/* MULTI-STEP REGISTRATION STYLES ---------------------------------- */
.registration-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    gap: 1rem;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

.progress-circle {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: #e0e0e0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 2px solid #e0e0e0;
}

.progress-step.active .progress-circle {
    background-color: #0066cc;
    color: white;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.progress-step.completed .progress-circle {
    background-color: #28a745;
    color: white;
    border-color: #28a745;
}

.progress-label {
    font-size: 0.75rem;
    margin-top: 0.5rem;
    color: #666;
    text-align: center;
}

.progress-step.active .progress-label {
    color: #0066cc;
    font-weight: bold;
}

.progress-line {
    flex: 0.5;
    height: 2px;
    background-color: #e0e0e0;
    margin: 0 0.5rem;
    transition: background-color 0.3s ease;
}

.progress-step:last-child ~ .progress-line {
    display: none;
}

.progress-line.completed {
    background-color: #28a745;
}

.registration-step {
    display: none;
}

.registration-step.active {
    display: block;
    animation: slideIn 0.3s ease-in-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.registration-step h3 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    color: #333;
}

.registration-step .password-hint {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background-color: #f5f5f5;
    border-left: 3px solid #0066cc;
    border-radius: 4px;
}

/* ROLE SELECTION CARDS */
.role-selection {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.role-option {
    flex: 1;
    cursor: pointer;
}

.role-option input[type="radio"] {
    display: none;
}

.role-card {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: white;
}

.role-option input[type="radio"]:checked + .role-card {
    border-color: #0066cc;
    background-color: rgba(0, 102, 204, 0.05);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.role-option:hover .role-card {
    border-color: #0066cc;
}

.role-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.role-title {
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 1rem;
}

.role-description {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

/* STEP NAVIGATION */
.step-navigation {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.step-navigation .btn-outline,
.step-navigation .btn-primary {
    flex: 1;
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }

    .modal-close {
        top: 0.5rem;
        right: 0.5rem;
        font-size: 1.5rem;
    }

    .registration-progress {
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }

    .progress-circle {
        width: 2rem;
        height: 2rem;
        font-size: 0.8rem;
    }

    .progress-label {
        font-size: 0.65rem;
        margin-top: 0.25rem;
    }

    .progress-line {
        margin: 0 0.25rem;
    }

    .role-selection {
        flex-direction: column;
    }

    .role-card {
        padding: 1rem;
    }

    .role-icon {
        font-size: 2rem;
    }

    .role-title {
        font-size: 0.95rem;
    }

    .role-description {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }

    .modal-close {
        top: 0.5rem;
        right: 0.5rem;
        font-size: 1.5rem;
    }
    
    .filter-actions {
        width: 100%;
    }
    .filter-buttons {
        width: 100%;
    }
    .filter-buttons .btn-primary,
    .filter-buttons .btn-ghost {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .main-nav a,
    .lang-select {
        flex: 1 1 100%;
    }
    .btn-primary,
    .btn-outline,
    .btn-ghost {
        width: 100%;
    }
    .switch-btn {
        width: 100%;
        justify-content: center;
    }
    .filter-buttons {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 0.4rem;
    }
    
    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }

    .modal-close {
        top: 0.5rem;
        right: 0.5rem;
        font-size: 1.5rem;
    }
}

