/* ROOT VARIABLER */
:root {
    --bg: #f4faff;
    --accent: #6366f1;
    --pink: #ffdaec;
    --green: #e2ffed;
    --text: #0f172a;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    --white: #ffffff;
    --dashboard-content-width: 920px;
}

/* GRUNDLÄGGANDE STILAR */
html {
    overflow-x: hidden;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

html.overlay-open,
body.overlay-open {
    overflow: hidden;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* BAKGRUNDS-BLOBS */
.blob {
    position: fixed;
    width: 800px;
    height: 800px;
    filter: blur(150px);
    z-index: -1;
    opacity: 0.25;
    border-radius: 50%;
}

.blob-1 {
    top: -300px;
    left: -200px;
    background: var(--pink);
}

.blob-2 {
    bottom: -300px;
    right: -200px;
    background: var(--green);
}

/* HERO & LOGO */
.hero {
    padding: 80px 20px 40px;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.logo-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.logo-text {
    font-size: 4.5rem;
    font-weight: 800;
    letter-spacing: -0.06em;
    margin: 0;
    color: var(--text);
    line-height: 1;
}

.brush-font {
    font-family: 'Gaegu', cursive;
    color: var(--accent);
    font-size: 3.0rem;
    margin: 0;
    white-space: nowrap;
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* HEADER & NAVIGATION */
.main-header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 25px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.nav-container.header-nav {
    gap: 15px;
}

.nav-balance {
    border: 1px solid #e2e8f0;
    background: rgba(255,255,255,0.75);
    color: var(--text);
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
    white-space: nowrap;
    margin-right: auto;
}

.nav-balance:hover {
    border-color: #cbd5e1;
    filter: brightness(0.98);
}

.nav-logo {
    text-decoration: none;
}

.logo-text-small {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--text);
}

.nav-menu {
    display: flex;
    gap: 30px;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 1rem;
    transition: 0.3s;
}

.nav-link:hover {
    color: var(--accent);
}

.notif-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-left: 8px;
    border-radius: 999px;
    background: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
    vertical-align: middle;
}

.btn-nav {
    background: var(--accent);
    color: white !important;
    padding: 10px 22px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}

/* MOBILMENY (Hamburgare) */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text);
    border-radius: 3px;
    transition: 0.4s;
}

/* Responsivitet för mobiler */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        order: 3;
    }

    .nav-balance {
        font-size: 0.85rem;
        padding: 7px 10px;
        order: 1;
    }

    .nav-menu {
        order: 2;
        position: fixed;
        right: -100%;
        left: auto;
        top: 70px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: 0.4s;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
        padding: 40px 0;
        gap: 25px;
        height: calc(100vh - 70px);
    }

    .nav-menu.active {
        right: 0;
    }

    .modal-overlay {
        padding: 12px;
    }

    .modal {
        padding: 28px 22px;
        border-radius: 28px;
        max-height: calc(100vh - 24px);
    }

    .task-details-media {
        margin: -28px -22px 18px;
        border-radius: 28px 28px 0 0;
    }

    /* Hamburgare till X-animation */
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

/* LOGIN & SIGNUP (AUTH) */
.auth-container {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    min-height: 80vh;
}

.auth-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 2px solid var(--white);
    border-radius: 40px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.06);
    width: 100%;
    max-width: 450px;
    padding: 40px;
    transition: all 0.3s ease;
}

.auth-card input {
    margin-bottom: 15px;
    display: block;
    width: 100%;
}

.password-wrap {
    position: relative;
}

.password-wrap input {
    padding-right: 52px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    cursor: pointer;
    padding: 6px;
    color: var(--text-muted);
}

.password-toggle:hover {
    color: var(--text);
}

.password-toggle svg {
    width: 20px;
    height: 20px;
    display: block;
    fill: currentColor;
}

.terms-check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 10px 0 15px 5px;
    line-height: 1.4;
    font-weight: 700;
}

.terms-check input {
    margin-top: 3px;
    width: auto;
}

.auth-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    justify-content: center;
}

.auth-tab {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-muted);
    cursor: pointer;
    border: none;
    background: none;
    padding: 5px 10px;
    transition: 0.3s;
}

.auth-tab.active {
    color: var(--text);
    border-bottom: 3px solid var(--accent);
}

.auth-error {
    background: #fee2e2;
    color: #b91c1c;
    padding: 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    border: 1px solid #fecaca;
}

.auth-success {
    background: #dcfce7;
    color: #166534;
    padding: 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    border: 1px solid #bbf7d0;
}

.auth-title {
    margin: 0 0 10px;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text);
}

.auth-lead {
    margin: 0 0 20px;
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

.role-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.role-option {
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
    background: var(--white);
}

.role-option input { display: none; }

.role-option:has(input:checked) {
    border-color: var(--accent);
    background: rgba(99, 102, 241, 0.05);
}

.forgot-password {
    display: block;
    text-align: center;
    font-size: 0.85rem;
    color: var(--accent);
    text-decoration: none;
    margin-top: 15px;
    font-weight: 700;
}

.forgot-password-btn {
    width: 100%;
    border: none;
    background: none;
    cursor: pointer;
}

.auth-info {
    background: #f8fafc;
    color: var(--text-light);
    padding: 16px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    line-height: 1.6;
    margin-bottom: 18px;
}

.auth-link-button {
    display: inline-block;
    width: 100%;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
}

.auth-footer-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 20px;
    text-align: center;
    line-height: 1.5;
}

.hidden { display: none; }

/* BESTÄLLARFORMULÄR */
.form-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 2px solid var(--white);
    border-radius: 40px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.06);
    max-width: 600px;
    margin: 20px auto 0;
    padding: 10px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.main-input {
    border: none;
    background: transparent;
    font-size: 1.4rem;
    font-weight: 700;
    padding: 20px;
    width: 100%;
    outline: none;
    box-sizing: border-box;
}

.main-input::placeholder {
    color: #cbd5e1;
}

.expanded-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    padding: 0 20px;
}

.form-card.active {
    transform: scale(1.02);
}

.form-card.active .expanded-content {
    max-height: 1200px;
    opacity: 1;
    padding-top: 10px;
    padding-bottom: 20px;
}

/* INPUTS & KNAPPAR */
.sub-textarea {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 18px;
    font-family: inherit;
    font-size: 1rem;
    margin-bottom: 15px;
    outline: none;
    box-sizing: border-box;
    resize: none;
    background: #fcfdfe;
}

.sub-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.sub-input {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    padding: 14px;
    font-family: inherit;
    outline: none;
    box-sizing: border-box;
    background: #fcfdfe;
}

.task-image-upload {
    margin-bottom: 20px;
    text-align: left;
}

.task-image-upload__label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

.task-image-upload__input {
    width: 100%;
    border: 1px dashed #cbd5e1;
    border-radius: 18px;
    padding: 14px;
    background: #fcfdfe;
    font: inherit;
}

.task-image-upload__help {
    margin: 8px 0 0;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.task-image-upload__checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    color: var(--text-light);
    font-weight: 600;
}

.task-image-preview {
    position: relative;
    margin: 12px 0 0;
    border-radius: 24px;
    overflow: hidden;
    background: #eef2ff;
    border: 1px solid #e2e8f0;
}

.task-image-preview--modal {
    margin: 0 0 20px;
}

.task-image-preview__remove {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.78);
    color: var(--white);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    z-index: 1;
    transition: background 0.2s ease, transform 0.2s ease;
}

.task-image-preview__remove:hover,
.task-image-preview__remove:focus-visible {
    background: rgba(15, 23, 42, 0.92);
    transform: scale(1.05);
}

.task-image-preview__img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

@media (max-width: 768px) {
    .form-card.active .expanded-content {
        max-height: 1400px;
    }

    .task-image-preview__img {
        aspect-ratio: 2 / 1;
        max-height: 160px;
    }
}

.btn-pop {
    background: var(--accent);
    color: var(--white);
    border: none;
    padding: 18px 40px;
    border-radius: 25px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s;
    font-size: 1.1rem;
}

.btn-pop:hover {
    filter: brightness(1.1);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
}

.danger-zone {
    margin-top: 40px;
    padding: 24px;
    border: 1px solid rgba(239, 68, 68, 0.18);
    border-radius: 24px;
    background: linear-gradient(180deg, #fff7f7 0%, #fff1f2 100%);
}

.danger-zone-title {
    margin: 0 0 10px;
    color: #991b1b;
}

.danger-zone-text {
    margin: 0 0 18px;
    color: #7f1d1d;
    line-height: 1.6;
}

.danger-zone-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.danger-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #7f1d1d;
    font-weight: 700;
    line-height: 1.5;
}

.danger-checkbox input {
    margin-top: 4px;
    accent-color: #dc2626;
}

.btn-danger {
    width: 100%;
    background: #dc2626;
    color: var(--white);
    border: none;
    padding: 18px 40px;
    border-radius: 25px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s;
    font-size: 1.05rem;
}

.btn-danger:hover:not(:disabled) {
    filter: brightness(1.05);
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.25);
}

.btn-danger:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    box-shadow: none;
}

/* UPPDRAGSTAVLA */
.fixxer-area {
    flex-grow: 1;
    padding: 80px 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-weight: 800;
    color: var(--text);
    font-size: 2.5rem;
    letter-spacing: -0.04em;
    margin: 0;
}

.fixxer-nav-link {
    margin-top: 15px;
    font-weight: 700;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.fixxer-nav-link a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 2px solid rgba(99, 102, 241, 0.2);
    transition: 0.2s;
}

.fixxer-nav-link a:hover {
    border-bottom-color: var(--accent);
}

.grid-container {
    max-width: 1150px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
    gap: 30px;
}

/* UPPDRAGSKORT */
.card {
    background: var(--white);
    border-radius: 40px;
    padding: 0 35px 35px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(255, 255, 255, 1);
    display: flex;
    flex-direction: column;
    min-height: 380px;
    transition: all 0.4s ease;
    cursor: pointer;
}

.card-media {
    position: relative;
    margin: 0 -35px 24px;
    border-radius: 40px 40px 0 0;
    overflow: hidden;
    background: linear-gradient(135deg, #e0f2fe, #eef2ff);
}

.card-media--dashboard {
    margin: -25px -25px 18px;
    border-radius: 30px 30px 0 0;
}

.card-media__img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.task-card-overlay {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.task-card-share,
.task-card-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.14);
    backdrop-filter: blur(10px);
    border: none;
    font-family: inherit;
    cursor: pointer;
}

.task-card-share {
    background: rgba(255, 255, 255, 0.94);
    color: var(--text);
}

.task-card-share:hover {
    filter: brightness(0.98);
}

.task-card-share.is-shared {
    background: rgba(16, 185, 129, 0.92);
    color: var(--white);
}

.task-card-badge--own {
    background: rgba(15, 23, 42, 0.82);
    color: var(--white);
}

.task-card-badge--applied {
    background: rgba(16, 185, 129, 0.92);
    color: var(--white);
}

.task-state-message {
    margin: 0 0 14px;
    padding: 14px 16px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: var(--text-light);
    font-weight: 700;
    line-height: 1.6;
}

.task-state-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 10px;
    text-decoration: none;
    box-sizing: border-box;
}

.task-state-link[hidden],
.task-state-message[hidden] {
    display: none !important;
}

.card:hover {
    transform: translateY(-12px);
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.08);
}

.card-user {
    font-weight: 800;
    color: var(--accent);
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-bottom: 18px;
    letter-spacing: 0.05em;
}

.card-title {
    font-weight: 800;
    font-size: 1.7rem;
    margin-bottom: 15px;
    line-height: 1.1;
    color: var(--text);
    letter-spacing: -0.02em;
}

.card-desc {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

.card-meta {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 8px;
}

.card-desc + .card-meta {
    margin-top: 4px;
    border-top: 1px solid #f1f5f9;
    padding-top: 16px;
}

.card-footer {
    font-weight: 800;
    font-size: 1.2rem;
    margin-top: 6px;
}

.price-label {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-right: 2px;
}

.price-value {
    color: #10b981;
}

/* MODAL */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 20px;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    z-index: 100;
}

.modal-overlay.active {
    display: flex !important;
}

.modal {
    background: var(--white);
    padding: 45px;
    border-radius: 45px;
    width: 90%;
    max-width: 420px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.2);
}

.btn-back {
    width: 100%;
    background: none;
    border: none;
    margin-top: 15px;
    color: var(--text-muted);
    cursor: pointer;
    font-weight: 700;
}

.task-details-modal {
    max-width: 560px;
}

.task-details-media {
    margin: -45px -45px 22px;
    border-radius: 45px 45px 0 0;
    overflow: hidden;
    background: linear-gradient(135deg, #e0f2fe, #eef2ff);
}

.task-details-media__img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.task-details-desc {
    font-size: 1.02rem;
    color: var(--text-light);
    line-height: 1.7;
    margin: 0 0 18px;
}

.task-details-meta {
    border-top: 1px solid #f1f5f9;
    padding-top: 16px;
}

.task-details-price {
    font-weight: 800;
    font-size: 1.2rem;
    margin-top: 14px;
}

.task-detail-hero {
    padding-bottom: 12px;
}

.task-detail-hero__row {
    justify-content: flex-start;
}

.task-detail-hero__back {
    text-decoration: none;
    white-space: nowrap;
}

.task-detail-page {
    padding-top: 24px;
}

.task-detail-card {
    width: min(1100px, calc(100% - 40px));
    margin: 0 auto 72px;
    display: block;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 44px;
    overflow: hidden;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(14px);
}

.task-detail-card--empty {
    display: block;
    padding: 38px;
}

.task-detail-card__media {
    position: relative;
    background: linear-gradient(135deg, #e0f2fe, #eef2ff);
}

.task-detail-card__img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 8.5;
    object-fit: cover;
}

.task-detail-card__content {
    padding: 38px;
}

.task-detail-card__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.task-detail-status {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.task-detail-status--active {
    background: rgba(16, 185, 129, 0.14);
    color: #047857;
}

.task-detail-status--inactive {
    background: rgba(148, 163, 184, 0.18);
    color: #334155;
}

.task-detail-card__owner {
    margin-bottom: 0;
}

.task-detail-card__title {
    margin: 0 0 18px;
    font-size: 2.2rem;
    line-height: 1.06;
    letter-spacing: -0.04em;
}

.task-detail-card__lead {
    margin: 0 0 24px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-light);
}

.task-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 26px;
}

.task-detail-fact {
    padding: 18px;
    border-radius: 24px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.task-detail-fact strong {
    display: block;
    margin-top: 6px;
    color: var(--text);
}

.task-detail-fact__label {
    display: block;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.task-detail-actions {
    margin-top: 8px;
}

.task-detail-card__cta {
    width: 100%;
}

/* UPPDRAGSSIDANS SÖKFUNKTIONER */
.filter-section {
    max-width: 1150px;
    margin: 0 auto 30px;
    padding: 0 20px;
}

.filter-bar {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 30px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    border: 1px solid var(--white);
}

.view-toggle {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    padding: 0 4px;
    flex-wrap: wrap;
}

.view-toggle__btn {
    text-decoration: none;
    color: var(--text);
    font-weight: 800;
    padding: 11px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.view-toggle__btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.view-toggle__btn.is-active {
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 10px 24px rgba(99, 102, 241, 0.22);
    border-color: transparent;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 15px;
    border: 1px solid #e2e8f0;
    font-family: inherit;
    font-weight: 600;
    outline: none;
}

.results-count {
    max-width: 1150px;
    margin: 0 auto 15px;
    padding: 0 25px;
    font-weight: 700;
    color: var(--text-light);
}

.search-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s;
}

.search-btn:hover {
    transform: scale(1.05);
}

.map-panel {
    max-width: 1150px;
    margin: 0 auto;
}

.task-list-section {
    max-width: 1150px;
    margin: 0 auto;
}

.task-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.task-list-item {
    position: relative;
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 22px;
    align-items: center;
    padding: 18px 22px 18px 18px;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.task-list-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.1);
}

.task-list-item__media {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(135deg, #e0f2fe, #eef2ff);
    min-height: 118px;
}

.task-list-item__img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 118px;
    object-fit: cover;
}

.task-list-item__content {
    min-width: 0;
}

.task-list-item__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

.task-list-item__user {
    margin-bottom: 0;
}

.task-list-item__price {
    white-space: nowrap;
    font-weight: 800;
    font-size: 1.02rem;
}

.task-list-item__title {
    margin: 0 0 12px;
    font-size: 1.45rem;
    line-height: 1.15;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.03em;
}

.task-list-item__meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
}

.task-list-item .card-meta {
    margin-bottom: 0;
}

.map-card,
.map-empty-state {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(12px);
    border-radius: 40px;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.05);
}

.map-card__header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.map-card__title {
    margin: 0 0 8px;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.map-card__text,
.map-card__count,
.map-status {
    margin: 0;
    color: var(--text-light);
    font-weight: 600;
}

.map-card__count {
    background: rgba(226, 232, 240, 0.55);
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--text);
}

.task-map {
    width: 100%;
    height: 560px;
    border-radius: 28px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(226, 255, 237, 0.7), rgba(244, 250, 255, 0.95));
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.map-status {
    margin-top: 14px;
}

.map-empty-state {
    text-align: center;
}

.task-map-popup {
    min-width: 190px;
}

.task-map-popup__media {
    position: relative;
    margin: -4px -4px 10px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #e0f2fe, #eef2ff);
}

.task-map-popup__img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.task-map-popup__title {
    margin: 0 0 6px;
    font-size: 1rem;
    font-weight: 800;
    color: var(--text);
}

.task-map-popup__meta {
    margin: 0 0 12px;
    font-size: 0.92rem;
    color: var(--text-light);
}

.task-map-popup__button {
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 10px 12px;
    background: var(--accent);
    color: var(--white);
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
}

.task-map-popup__button:hover {
    filter: brightness(1.04);
}

.task-map-popup .task-card-overlay {
    top: 10px;
    right: 10px;
    gap: 6px;
}

.task-map-popup .task-card-share,
.task-map-popup .task-card-badge {
    min-height: 30px;
    padding: 6px 10px;
    font-size: 0.68rem;
}

.leaflet-popup-content-wrapper {
    border-radius: 20px;
}

.leaflet-popup-content {
    margin: 16px;
}

.leaflet-container a.leaflet-popup-close-button {
    color: var(--text-light);
    padding: 10px 12px 0 0;
}

/* ACCORDION & FAQ-STILAR */
.faq-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.accordion {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    border: 1px solid var(--white);
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.accordion-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    width: 100%;
    padding: 25px 10px;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    text-align: left;
    transition: 0.3s;
}

.accordion-header:hover {
    color: var(--accent);
}

.accordion-header .icon {
    font-size: 1.8rem;
    font-weight: 400;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
    color: var(--accent);
}

.accordion-item.active .icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease;
    text-align: left;
    padding: 0 10px;
}

.accordion-item.active .accordion-content {
    padding-bottom: 25px;
}

.accordion-content p {
    margin: 0;
    color: var(--text-light);
    line-height: 1.6;
}

/* DASHBOARD */
.dash-container {
    max-width: calc(var(--dashboard-content-width) + 30px);
    margin: 40px auto;
    padding: 0 15px;
}

.dash-tabs {
    display: flex;
    max-width: var(--dashboard-content-width);
    margin-left: auto;
    margin-right: auto;
    gap: 10px;
    margin-bottom: 30px;
    background: rgba(255,255,255,0.5);
    padding: 8px;
    border-radius: 20px;
    overflow-x: auto;
    scrollbar-width: none;
}

.dash-tab {
    flex: 1;
    text-align: center;
    padding: 12px 20px;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 800;
    color: var(--text-light);
    white-space: nowrap;
    transition: 0.3s;
}

.dash-tab.active {
    background: var(--white);
    color: var(--accent);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.dash-card {
    background: var(--white);
    border-radius: 30px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid rgba(255,255,255,1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.dash-panel {
    max-width: var(--dashboard-content-width);
    margin-left: auto;
    margin-right: auto;
}

.dash-hero {
    max-width: var(--dashboard-content-width);
    margin: 0 auto 28px;
    padding: 28px 30px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(255, 255, 255, 0.92));
    border: 1px solid rgba(99, 102, 241, 0.12);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.04);
}

.dash-hero-title {
    margin: 0;
    font-size: 1.9rem;
    letter-spacing: -0.03em;
}

.dash-hero-text {
    margin: 10px 0 0;
    color: var(--text-light);
    line-height: 1.7;
    max-width: 60ch;
}

.dash-status {
    max-width: var(--dashboard-content-width);
    margin: 0 auto 26px;
    background: var(--white);
    padding: 20px 22px;
    border-radius: 22px;
    border-left: 5px solid var(--accent);
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.dash-empty {
    text-align: center;
    padding: 56px 24px;
}

.dash-empty p {
    margin: 0 0 18px;
    color: var(--text-light);
}

.dash-task-header,
.dash-row-between {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 14px;
}

.dash-task-title {
    margin: 0 0 6px;
}

.dash-meta {
    margin: 0;
    color: var(--text-light);
    font-size: 0.92rem;
    line-height: 1.6;
}

.dash-meta + .dash-meta {
    margin-top: 4px;
}

.dash-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.dash-link-danger {
    color: #ef4444;
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: 700;
}

.dash-section-divider {
    margin-top: 24px;
    border-top: 1px solid #f1f5f9;
    padding-top: 20px;
}

.dash-section-heading {
    margin: 0 0 15px;
    color: var(--text-light);
}

.dash-note {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
}

.dash-profile-card {
    background: linear-gradient(135deg, var(--accent), #7c3aed);
    color: white;
    border: none;
}

.dash-profile-card .dash-meta,
.dash-profile-card p,
.dash-profile-card h3,
.dash-profile-card h4 {
    color: inherit;
}

.dash-comment-list {
    background: rgba(255,255,255,0.12);
    padding: 16px;
    border-radius: 18px;
}

.dash-comment-list h4 {
    margin: 0 0 10px;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.dash-comment-item {
    font-size: 0.9rem;
    margin: 0;
    padding: 9px 0;
    border-bottom: 1px solid rgba(255,255,255,0.14);
    font-style: italic;
}

.dash-comment-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.dash-application-card .badge {
    margin-bottom: 12px;
}

.dash-inline-separator {
    color: var(--text-muted);
}

.dash-inline-quote {
    margin: 0 0 15px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text);
}

.dash-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.dash-settings-title {
    margin: 0 0 24px;
}

.dash-form-group {
    margin-bottom: 20px;
}

.dash-form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

.dash-password-panel {
    background: #f8fafc;
    padding: 25px;
    border-radius: 20px;
    margin: 30px 0;
    border: 1px solid #e2e8f0;
}

.dash-password-panel h4 {
    margin-top: 0;
}

.dash-password-panel p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.dash-modal-field {
    margin-bottom: 15px;
}

.dash-modal-help {
    margin: 8px 0 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.dash-card-settings {
    width: 100%;
}

.applicant-box {
    background: var(--bg);
    border-radius: 20px;
    padding: 20px;
    margin-top: 15px;
    border: 1px solid #e2e8f0;
}

.stars { color: #f59e0b; font-size: 1.2rem; }

.fixer-name-btn {
    border: none;
    background: none;
    padding: 0;
    margin: 0;
    font: inherit;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text);
    cursor: pointer;
    text-align: left;
}

.fixer-name-btn:hover {
    color: var(--accent);
}

.badge {
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
}
.badge-pending { background: #fef3c7; color: #92400e; }
.badge-assigned { background: #dcfce7; color: #166534; }
.badge-declined { background: #fee2e2; color: #991b1b; }

.dash-expiry {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-top: 6px;
    font-weight: 700;
}

.dash-expiry-expired {
    color: #b45309;
}

@media (max-width: 600px) {
    html, body { overflow-x: hidden; }

    .dash-container {
        margin: 20px auto;
        padding: 0 10px;
    }

    .dash-tabs {
        display: flex;
        max-width: none;
        gap: 6px;
        padding: 6px;
    }
    .dash-tab { padding: 10px 12px; font-size: 0.9rem; }
    .dash-card { padding: 18px; border-radius: 24px; }
    .dash-panel { max-width: none; }

    .contact-row { flex-direction: column; }
    .btn-small { width: 100%; text-align: center; }
    .dash-hero {
        padding: 22px 20px;
        margin-bottom: 20px;
    }
    .dash-task-header,
    .dash-row-between,
    .dash-footer-row {
        flex-direction: column;
        align-items: stretch;
    }
    .dash-actions {
        justify-content: stretch;
    }
}

/* FOOTER */
footer {
    padding: 0;
    margin-top: auto;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.04);
}

.footer-content {
    width: min(960px, calc(100% - 40px));
    margin: 0 auto;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.45;
    padding: 22px 24px;
}

.footer-copy {
    margin: 0;
}

.footer-contact {
    margin: 6px 0 0;
    font-weight: 400;
}

.footer-contact a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
    transition: 0.2s;
}

.footer-contact a:hover {
    text-decoration: underline;
    filter: brightness(0.8);
}

.footer-legal {
    margin: 8px 0 0;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}

.footer-legal a {
    color: inherit;
    text-decoration: none;
}

.footer-legal a:hover {
    color: var(--text);
    text-decoration: underline;
}

.footer-legal span {
    margin: 0 8px;
    opacity: 0.7;
}

.footer-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 14px;
    padding: 11px 18px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--white);
    text-decoration: none;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(99, 102, 241, 0.18);
    transition: 0.2s ease;
}

.footer-social:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.cookie-banner {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 1200;
    display: flex;
    justify-content: center;
}

.cookie-banner__content {
    width: min(760px, 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.92);
    color: var(--white);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.28);
    backdrop-filter: blur(18px);
}

.cookie-banner__text {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.cookie-banner__text a {
    color: #bfdbfe;
    font-weight: 700;
}

.cookie-banner__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-banner__btn {
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: transparent;
    color: var(--white);
    border-radius: 999px;
    padding: 10px 16px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s ease;
}

.cookie-banner__btn:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.35);
}

.cookie-banner__btn--primary {
    background: var(--white);
    color: var(--text);
    border-color: var(--white);
}

@media (max-width: 768px) {
    .cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }

    footer {
        padding: 0;
    }

    .footer-content {
        width: min(960px, calc(100% - 24px));
        padding: 18px 16px 22px;
    }

    .cookie-banner__content {
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
    }

    .cookie-banner__actions {
        width: 100%;
    }

    .cookie-banner__btn {
        flex: 1 1 0;
        text-align: center;
    }

    .view-toggle {
        gap: 10px;
    }

    .view-toggle__btn {
        width: 100%;
        text-align: center;
    }

    .map-card,
    .map-empty-state {
        padding: 22px;
        border-radius: 28px;
    }

    .task-list-item {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px;
        border-radius: 26px;
    }

    .task-list-item__media {
        min-height: 170px;
    }

    .task-list-item__img {
        min-height: 170px;
    }

    .task-list-item__header {
        flex-direction: column;
        gap: 8px;
    }

    .task-list-item__price {
        white-space: normal;
    }

    .map-card__title {
        font-size: 1.6rem;
    }

    .task-map {
        height: 420px;
        border-radius: 22px;
    }

    .task-detail-hero__row {
        flex-direction: row;
    }

    .task-detail-card {
        width: min(100%, calc(100% - 24px));
        border-radius: 30px;
    }

    .task-detail-card--empty {
        padding: 24px;
    }

    .task-detail-card__img {
        aspect-ratio: 16 / 10;
    }

    .task-detail-card__content {
        padding: 24px;
    }

    .task-detail-grid {
        grid-template-columns: 1fr;
    }
}

.legal-page {
    width: min(860px, calc(100% - 32px));
    margin: 0 auto 72px;
}

.legal-page__intro {
    margin: 12px 0 0;
    color: var(--text-light);
}

.legal-card {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 26px;
    padding: 28px;
    margin-top: 18px;
    box-shadow: 0 16px 35px rgba(148, 163, 184, 0.12);
}

.legal-card h3 {
    margin-top: 0;
    margin-bottom: 12px;
}

.legal-card p {
    margin: 0 0 12px;
    line-height: 1.7;
    color: var(--text-light);
}

.legal-card p:last-child {
    margin-bottom: 0;
}
