/* ==========================================
   KENTIGO
   GLOBAL STYLES
========================================== */

:root {

    --primary: #2563eb;
    --primary-hover: #1d4ed8;

    --background: #f7f8fc;

    --white: #ffffff;

    --text: #1f2937;
    --text-light: #6b7280;

    --border: #e5e7eb;

    --shadow:
        0 10px 30px rgba(0,0,0,.06);

    --radius:16px;

}



*{

    margin:0;
    padding:0;

    box-sizing:border-box;

}



html{

    scroll-behavior:smooth;

}



body{

    font-family:

    Inter,

    system-ui,

    -apple-system,

    BlinkMacSystemFont,

    "Segoe UI",

    sans-serif;

    background:var(--background);

    color:var(--text);

    line-height:1.5;

}



img{

    display:block;

    max-width:100%;

}



a{

    color:inherit;

    text-decoration:none;

}



button{

    border:none;

    cursor:pointer;

    font:inherit;

}



input,
select{

    font:inherit;

}



/* ==========================================
   CONTAINER
========================================== */

.container{

    width:min(1200px,92%);

    margin:auto;

}



/* ==========================================
   HEADER
========================================== */

.header{

    background:white;

    position:sticky;

    top:0;

    z-index:100;

    border-bottom:1px solid var(--border);

}



.header-content{

    height:74px;

    display:flex;

    align-items:center;

    justify-content:space-between;

}



.logo{

    font-size:30px;

    font-weight:800;

    color:var(--primary);

    letter-spacing:-1px;

}



.header-actions{

    display:flex;

    gap:12px;

}



/* ==========================================
   BUTTONS
========================================== */

.btn{

    padding:

    12px 22px;

    border-radius:12px;

    transition:.25s;

    font-weight:600;

}



.btn-primary{

    background:var(--primary);

    color:white;

}



.btn-primary:hover{

    background:var(--primary-hover);

}



.btn-light{

    background:white;

    border:1px solid var(--border);

}



.btn-light:hover{

    background:#f3f4f6;

}



/* ==========================================
   HERO
========================================== */

.hero{

    padding:

    70px 0 40px;

}



.hero-content{

    text-align:center;

}



.hero h1{

    font-size:52px;

    font-weight:800;

    line-height:1.1;

    margin-bottom:18px;

}



.hero p{

    font-size:20px;

    color:var(--text-light);

    max-width:720px;

    margin:auto;

}
/* ==========================================
   FILTERS
========================================== */

.filters{

    margin-bottom:40px;

}

.filters-grid{

    display:grid;

    grid-template-columns:
        2fr
        1fr
        1fr;

    gap:16px;

}

.filters input,
.filters select{

    height:56px;

    background:white;

    border:1px solid var(--border);

    border-radius:14px;

    padding:0 18px;

    outline:none;

    transition:.2s;

    font-size:16px;

}

.filters input:focus,
.filters select:focus{

    border-color:var(--primary);

    box-shadow:0 0 0 4px rgba(37,99,235,.08);

}



/* ==========================================
   SECTION TITLE
========================================== */

.section-title{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:28px;

}

.section-title h2{

    font-size:30px;

    font-weight:700;

}

.section-title span{

    color:var(--text-light);

}



/* ==========================================
   PLANS GRID
========================================== */

.plans-grid{

    display:grid;

    grid-template-columns:
        repeat(auto-fill,minmax(340px,1fr));

    gap:24px;

}



/* ==========================================
   PLAN CARD
========================================== */

.plan-card{

    background:white;

    border-radius:20px;

    overflow:hidden;

    box-shadow:var(--shadow);

    transition:.25s;

    display:flex;

    flex-direction:column;

}

.plan-card:hover{

    transform:translateY(-5px);

}



.plan-image{

    height:210px;

    background:#dbeafe;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:54px;

}



.plan-content{

    padding:22px;

}



.plan-category{

    display:inline-flex;

    align-items:center;

    gap:8px;

    padding:6px 12px;

    background:#eff6ff;

    color:var(--primary);

    border-radius:999px;

    font-size:14px;

    font-weight:600;

    margin-bottom:16px;

}



.plan-title{

    font-size:24px;

    font-weight:700;

    margin-bottom:14px;

}



.plan-description{

    color:var(--text-light);

    margin-bottom:22px;

    line-height:1.6;

}



.plan-info{

    display:flex;

    flex-direction:column;

    gap:10px;

    margin-bottom:24px;

}



.plan-info div{

    display:flex;

    align-items:center;

    gap:10px;

    color:#4b5563;

    font-size:15px;

}



.plan-footer{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-top:auto;

    gap:12px;

}



.plan-members{

    font-weight:600;

    color:var(--primary);

}
/* ==========================================
   EMPTY STATE
========================================== */

.empty-state{

    background:white;

    border-radius:20px;

    padding:80px 40px;

    text-align:center;

    box-shadow:var(--shadow);

}

.empty-state h3{

    font-size:32px;

    margin-bottom:16px;

}

.empty-state p{

    max-width:500px;

    margin:0 auto 30px;

    color:var(--text-light);

    font-size:18px;

}



/* ==========================================
   MODAL
========================================== */

.modal{

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.45);

    display:none;

    justify-content:center;

    align-items:center;

    padding:20px;

    z-index:999;

}

.modal.active{

    display:flex;

}

.modal-content{

    max-width:620px;

    background:white;

    border-radius:22px;

    padding:40px;

    position:relative;

    animation:modalShow .2s ease;

}

@keyframes modalShow{

    from{

        opacity:0;

        transform:translateY(20px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

.modal-close{

    position:absolute;

    top:18px;

    right:18px;

    width:40px;

    height:40px;

    border-radius:50%;

    background:#f3f4f6;

    font-size:22px;

}

.modal-close:hover{

    background:#e5e7eb;

}

.modal h2{

    margin-bottom:18px;

    font-size:30px;

}

.modal p{

    margin-bottom:20px;

    color:var(--text-light);

}

.modal ul{

    margin-bottom:30px;

    padding-left:22px;

}

.modal li{

    margin-bottom:12px;

}

.modal-buttons{

    display:flex;

    gap:16px;

}

.modal-buttons .btn{

    flex:1;

    text-align:center;

}



/* ==========================================
   FOOTER
========================================== */

.footer{

    margin-top:80px;

    padding:30px 0;

    border-top:1px solid var(--border);

    background:white;

}

.footer p{

    text-align:center;

    color:var(--text-light);

}



/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width:900px){

    .hero h1{

        font-size:40px;

    }

    .filters-grid{

        grid-template-columns:1fr;

    }

    .plans-grid{

        grid-template-columns:1fr;

    }

}



@media (max-width:640px){

    .header-content{

        flex-direction:column;

        justify-content:center;

        gap:16px;

        height:auto;

        padding:20px 0;

    }

    .header-actions{

        width:100%;

    }

    .header-actions .btn{

        flex:1;

    }

    .hero{

        padding:50px 0 30px;

    }

    .hero h1{

        font-size:32px;

    }

    .hero p{

        font-size:17px;

    }

    .section-title{

        flex-direction:column;

        align-items:flex-start;

        gap:8px;

    }

    .modal-content{

        padding:28px;

    }

    .modal-buttons{

        flex-direction:column;

    }

}
/* ==========================================
   CREATE PLAN FORM
========================================== */

#createPlanForm{
    display:flex;
    flex-direction:column;
    gap:16px;
    margin-top:24px;
}

#createPlanForm input,
#createPlanForm select,
#createPlanForm textarea{

    width:100%;
    height:52px;

    padding:0 16px;

    border:1px solid var(--border);
    border-radius:12px;

    font-size:16px;

    background:white;

    transition:.2s;

}

#createPlanForm textarea{

    min-height:120px;

    resize:vertical;

    padding:14px 16px;

}

#createPlanForm input:focus,
#createPlanForm select:focus,
#createPlanForm textarea:focus{

    outline:none;

    border-color:var(--primary);

    box-shadow:0 0 0 4px rgba(37,99,235,.08);

}

#createPlanForm button{

    margin-top:10px;

    width:100%;

    height:56px;

    border-radius:14px;

    font-size:17px;

}
.form-row{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:16px;

}

@media (max-width:640px){

    .form-row{

        grid-template-columns:1fr;

    }

}
/* ==========================================
   AUTH MODAL
========================================== */

.auth-modal{

    max-width:460px;

}

.auth-google,
.auth-apple{

    width:100%;
    margin-bottom:14px;

}

.auth-divider{

    position:relative;

    text-align:center;

    margin:22px 0;

    color:var(--text-light);

}

.auth-divider::before{

    content:"";

    position:absolute;

    left:0;
    right:0;
    top:50%;

    border-top:1px solid var(--border);

}

.auth-divider span{

    position:relative;

    background:white;

    padding:0 14px;

}

.auth-modal input{

    width:100%;
    margin-bottom:14px;

}

.auth-register{

    margin-top:20px;
    text-align:center;

}

.auth-register a{

    color:var(--primary);
    font-weight:600;

}
/* ==========================================
   PLAN PAGE
========================================== */

.plan-page{

    padding:40px 0 80px;

}

.plan-cover{

    height:340px;

    border-radius:24px;

    background:#dbeafe;

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:90px;

    margin-bottom:30px;

}
.plan-card{

    background:white;

    border-radius:24px;

    padding:40px;

    box-shadow:var(--shadow);

}
.plan-card h1{

    font-size:42px;

    margin:20px 0;

}
.plan-meta{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:16px;

    margin-bottom:40px;

}

.plan-meta div{

    padding:16px;

    border:1px solid var(--border);

    border-radius:14px;

}
.plan-section{

    margin-top:40px;

    padding-top:30px;

    border-top:1px solid var(--border);

}

.plan-section h2{

    margin-bottom:18px;

}
#joinPlanBtn{

    margin-top:20px;

}
/* ==========================================
   CHAT
========================================== */

#chatMessages {

    display: flex;
    flex-direction: column;
    gap: 12px;

    margin-bottom: 20px;

}

.chat-message {

    max-width: 75%;

    padding: 12px 16px;

    border-radius: 16px;

    background: #f3f4f6;

    border: 1px solid #e5e7eb;

}

.chat-message.mine {

    margin-left: auto;

    background: #dbeafe;

    border-color: #bfdbfe;

}

.chat-author {

    font-weight: 600;

    margin-bottom: 6px;

    color: #111827;

}

.chat-text {

    white-space: pre-wrap;
    word-break: break-word;

    color: #374151;

    line-height: 1.5;

}

.chat-time {

    margin-top: 8px;

    font-size: 12px;

    color: #9ca3af;

    text-align: right;

}

.chat-input {

    display: flex;

    gap: 12px;

    align-items: flex-end;

}

#chatMessageInput {

    flex: 1;

    min-height: 80px;

    resize: vertical;

    padding: 12px;

    border: 1px solid #d1d5db;
    border-radius: 10px;

    font: inherit;

}
/* ==========================================
   TASK MARKETPLACE — CURRENT UI
========================================== */
:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --background: #f7f8fc;
    --white: #fff;
    --text: #172033;
    --text-light: #687386;
    --border: #e5e9f0;
    --shadow: 0 10px 30px rgba(23,32,51,.07);
    --radius: 18px;
}

body { background: var(--background); color: var(--text); }
.container { width: min(1180px, 92%); }
.site-header { background: rgba(255,255,255,.96); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; backdrop-filter: blur(10px); }
.site-header .header-content { min-height: 72px; display:flex; align-items:center; justify-content:space-between; gap:24px; }
.main-nav { display:flex; gap:24px; margin-left:auto; }
.main-nav a { color: var(--text-light); font-weight:600; }
.main-nav a:hover, .main-nav a.active { color:var(--primary); }
.header-actions { display:flex; align-items:center; gap:8px; }
.logo { font-size:28px; font-weight:900; color:var(--primary); letter-spacing:-1.5px; }
.btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px; padding:10px 18px; border-radius:12px; font-weight:700; }
.btn-small { min-height:38px; padding:8px 14px; font-size:14px; }
.btn-large { min-height:52px; padding:14px 24px; font-size:16px; }
.btn-light { background:#fff; border:1px solid var(--border); color:var(--text); }
.page-main { padding-top:42px; padding-bottom:70px; }
.hero-home { padding:86px 0 76px; }
.hero-content { max-width:820px; margin:auto; text-align:center; }
.eyebrow { display:inline-block; color:var(--primary); text-transform:uppercase; letter-spacing:.08em; font-size:12px; font-weight:800; margin-bottom:12px; }
.hero h1 { font-size:clamp(40px, 6vw, 68px); letter-spacing:-2.5px; margin-bottom:20px; }
.hero p { max-width:680px; font-size:19px; color:var(--text-light); }
.hero-actions { display:flex; justify-content:center; gap:12px; margin-top:30px; }
.home-section { padding:70px 0; }
.home-section-muted { background:#eef3fb; }
.steps-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.step-card { background:#fff; border:1px solid var(--border); border-radius:18px; padding:28px; box-shadow:var(--shadow); }
.step-card span { display:grid; place-items:center; width:36px; height:36px; border-radius:50%; background:#eaf1ff; color:var(--primary); font-weight:800; margin-bottom:20px; }
.step-card h3 { margin-bottom:8px; }
.step-card p, .split-cta p { color:var(--text-light); }
.split-cta { display:flex; align-items:center; justify-content:space-between; gap:30px; }
.split-cta h2 { max-width:650px; margin-bottom:10px; }
.section-title h2 { font-size:34px; letter-spacing:-1px; }
.page-heading { display:flex; justify-content:space-between; align-items:end; gap:24px; margin-bottom:28px; }
.page-heading h1 { font-size:42px; letter-spacing:-1.5px; margin-bottom:8px; }
.page-heading p { color:var(--text-light); }
.filters-card { background:#fff; border:1px solid var(--border); border-radius:18px; padding:18px; box-shadow:var(--shadow); }
.filters-grid { display:grid; grid-template-columns:2fr 1fr 1fr; gap:12px; }
.filters-grid input, .filters-grid select { width:100%; height:48px; border:1px solid var(--border); border-radius:12px; padding:0 14px; background:#fff; outline:none; }
.filters-grid input:focus, .filters-grid select:focus { border-color:var(--primary); box-shadow:0 0 0 3px rgba(37,99,235,.08); }
.results-bar { display:flex; justify-content:space-between; align-items:center; margin:22px 0 14px; color:var(--text-light); }
.tasks-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.task-card { background:#fff; border:1px solid var(--border); border-radius:18px; padding:22px; box-shadow:var(--shadow); display:flex; flex-direction:column; min-height:290px; }
.task-card:hover { transform:translateY(-2px); transition:.18s; }
.task-card-top, .task-card-footer, .offer-card-header, .price-row, .order-topbar, .order-header { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.category-pill { display:inline-flex; width:max-content; align-items:center; background:#edf4ff; color:var(--primary); border-radius:999px; padding:6px 10px; font-size:13px; font-weight:700; }
.task-price, .offer-price { white-space:nowrap; font-size:18px; }
.task-card h2 { font-size:21px; line-height:1.25; margin:18px 0 9px; }
.task-excerpt { color:var(--text-light); min-height:48px; }
.task-meta { display:flex; flex-direction:column; gap:7px; color:#596579; font-size:14px; margin:18px 0; }
.task-card-footer { margin-top:auto; padding-top:14px; border-top:1px solid var(--border); }
.customer-mini { color:var(--text-light); font-size:14px; }
.loading-state, .notice-box { background:#fff; border:1px solid var(--border); border-radius:16px; padding:20px; color:var(--text-light); }
.error-state { color:#b42318; }
.content-card { max-width:850px; margin:40px auto 70px; background:#fff; border:1px solid var(--border); border-radius:20px; padding:34px; box-shadow:var(--shadow); }
.back-link { color:var(--primary); font-weight:700; }
.content-card h1 { margin:14px 0 18px; font-size:38px; letter-spacing:-1px; }
.content-card h2 { margin:22px 0 12px; }
.content-card hr, .order-section { border:0; border-top:1px solid var(--border); margin:28px 0; padding-top:28px; }
.content-card p { margin:9px 0; }
.offer-card { border:1px solid var(--border); border-radius:16px; padding:18px; margin-top:12px; }
.offer-card h3 { margin:0 0 4px; }
.offer-price { color:var(--primary); }
.muted { color:var(--text-light); }
.order-topbar { margin-bottom:30px; }
.order-id { color:var(--text-light); font-size:13px; }
.order-header { align-items:flex-start; }
.order-header h1 { margin-top:4px; }
.status-badge { display:inline-flex; padding:8px 12px; border-radius:999px; background:#eef2f7; font-size:14px; font-weight:800; white-space:nowrap; }
.status-paid { background:#eaf8ef; color:#137333; }
.status-in_progress { background:#edf4ff; color:#1d4ed8; }
.status-pending_confirmation { background:#fff5e5; color:#a15c00; }
.status-completed { background:#eaf8ef; color:#137333; }
.order-section-title { display:flex; align-items:center; justify-content:space-between; gap:15px; }
.order-description { color:#4d596b; white-space:pre-wrap; }
.order-meta { display:flex; flex-wrap:wrap; gap:14px; color:#596579; margin-top:18px; }
.people-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.person-card { display:flex; flex-direction:column; gap:5px; padding:18px; border:1px solid var(--border); border-radius:14px; }
.person-role { color:var(--text-light); font-size:13px; }
.payment-section { background:#fbfcff; border-radius:16px; padding:24px; border-top:0; }
.price-row { padding:7px 0; }
.price-row strong { font-size:22px; }
.order-action-box { margin-top:20px; padding-top:18px; border-top:1px dashed var(--border); }
.order-action-box p { color:#596579; }
.action-message { color:#b42318 !important; font-size:14px; }
.success-text { color:#137333 !important; font-weight:700; }
.next-step { background:#f7f9fc; border-radius:14px; padding:15px 18px; }
.next-step p { margin:0; color:#4d596b; }
.footer { margin-top:0; }

/* =========================
   ORDER REVIEWS
   ========================= */

.review-card {
    margin-top: 14px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
}

.review-target {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 700;
}

.review-label {
    margin-bottom: 8px;
    color: var(--text-light);
    font-size: 14px;
}

.review-stars {
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 4px 0 10px;
}

.review-star {
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #f5b400;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.12s ease;
}

.review-star:hover {
    transform: scale(1.1);
}

.review-comment-input {
    display: block;
    width: 100%;
    min-height: 68px;
    box-sizing: border-box;
    margin: 0 0 10px;
    padding: 9px 11px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    color: var(--text);
    font: inherit;
    font-size: 14px;
    line-height: 1.4;
    resize: vertical;
}

.review-comment-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.review-stars-display {
    margin: 5px 0 8px;
    color: #f5b400;
    font-size: 22px;
    letter-spacing: 1px;
}

.review-comment {
    margin: 0;
    color: var(--text);
    white-space: pre-wrap;
    line-height: 1.45;
}

@media (max-width:900px) {
    .main-nav { display:none; }
    .tasks-grid { grid-template-columns:repeat(2,1fr); }
    .filters-grid { grid-template-columns:1fr 1fr; }
    .filters-grid input:first-child { grid-column:1 / -1; }
    .steps-grid { grid-template-columns:1fr; }
}
@media (max-width:640px) {
    .site-header .header-content { min-height:62px; }
    .header-actions .btn { padding:8px 11px; font-size:13px; }
    .header-actions [data-user-name] { display:none; }
    .hero-home { padding:55px 0 45px; }
    .hero h1 { letter-spacing:-1.5px; }
    .hero-actions, .split-cta, .page-heading, .order-header { flex-direction:column; align-items:stretch; }
    .hero-actions .btn { width:100%; }
    .filters-grid, .tasks-grid, .people-grid { grid-template-columns:1fr; }
    .filters-grid input:first-child { grid-column:auto; }
    .page-heading h1 { font-size:34px; }
    .content-card { padding:22px; margin-top:22px; }
    .content-card h1 { font-size:30px; }
    .order-header .status-badge { width:max-content; }
}
[hidden] {
    display: none !important;
}
html.auth-loading [data-auth],
html.auth-loading [data-role-required] {
    display: none !important;
}

/* =========================================================
   TASK PAGE
   ========================================================= */

.task-page {
    padding: 56px 0 80px;
}

.task-loading {
    max-width: 1100px;
    margin: 0 auto;
}

.task-loading-card {
    padding: 40px;
    text-align: center;
    background: #fff;
    border: 1px solid #e2e7f0;
    border-radius: 20px;
    color: #64748b;
}


/* HERO */

.task-hero {
    max-width: 1100px;
    margin: 0 auto 32px;
}

.task-category {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    margin-bottom: 16px;
    background: #eef4ff;
    color: #2563eb;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
}

.task-hero h1 {
    margin: 0 0 28px;
    max-width: 850px;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.08;
    letter-spacing: -1.5px;
}


/* META */

.task-meta {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.task-meta-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 76px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #e2e7f0;
    border-radius: 14px;
}

.task-meta-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background: #f1f5ff;
    border-radius: 10px;
    font-size: 19px;
}

.task-meta-label {
    display: block;
    margin-bottom: 3px;
    color: #718096;
    font-size: 12px;
}

.task-meta-item strong {
    font-size: 15px;
}

.task-meta-budget {
    border-color: #c8d8ff;
    background: #f8faff;
}


/* LAYOUT */

.task-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.task-main-column {
    min-width: 0;
}


/* CARDS */

.task-card {
    margin-bottom: 24px;
    padding: 32px;
    background: #fff;
    border: 1px solid #e2e7f0;
    border-radius: 20px;
}

.task-card-header {
    margin-bottom: 24px;
}

.task-card-header .eyebrow {
    display: block;
    margin-bottom: 7px;
}

.task-card-header h2 {
    margin: 0;
    font-size: 25px;
    letter-spacing: -0.5px;
}

.task-card-header p {
    margin: 10px 0 0;
    color: #718096;
    line-height: 1.6;
}


/* DESCRIPTION */

.task-description {
    color: #27364d;
    font-size: 16px;
    line-height: 1.75;
    white-space: pre-wrap;
}

.task-address {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #e8ecf2;
}

.task-address-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    background: #f1f5ff;
    border-radius: 10px;
}

.task-address span {
    display: block;
    margin-bottom: 3px;
    color: #718096;
    font-size: 13px;
}

.task-address strong {
    font-size: 15px;
}


/* CUSTOMER */

.customer-profile {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 26px;
}

.customer-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    background: #eef4ff;
    border-radius: 50%;
    font-size: 24px;
}

.customer-info strong {
    display: block;
    font-size: 17px;
}

.customer-city {
    display: block;
    margin-top: 4px;
    color: #718096;
    font-size: 14px;
}

/* =========================================
   CUSTOMER DASHBOARD — TASK GROUPS
   ========================================= */

.customer-task-group + .customer-task-group {
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

.customer-task-group-header {
    margin-bottom: 16px;
}

.customer-task-group-header h3 {
    margin: 0 0 4px;
    font-size: 18px;
}

.customer-task-group-header span {
    color: var(--text-light, #667085);
    font-size: 14px;
}

.customer-task-group-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* ACTION AREA */

#taskActions {
    margin-top: 20px;
}

#taskActions > p {
    margin: 0;
    color: #64748b;
    line-height: 1.6;
}

#taskActions a {
    color: #2563eb;
    font-weight: 600;
}


/* OFFER SENT */

.offer-sent-card {
    padding: 20px;
    background: #f5f9ff;
    border: 1px solid #c9dcff;
    border-radius: 14px;
}

.offer-sent-card h3 {
    margin: 0 0 14px;
    color: #2563eb;
    font-size: 18px;
}

.offer-sent-card p {
    margin: 8px 0;
    color: #53657d;
}

.offer-sent-card strong {
    color: #172033;
}


/* OFFER FORM */

.offer-form-card {
    border-color: #c9dcff;
    background: #fbfdff;
}

.offer-form-intro {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
}

.offer-form-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    background: #eef4ff;
    border-radius: 13px;
    font-size: 23px;
}

.offer-form-intro h2 {
    margin: 3px 0 7px;
    font-size: 24px;
}

.offer-form-intro p {
    margin: 0;
    color: #718096;
    line-height: 1.6;
}

.form-field {
    margin-bottom: 20px;
}

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

.form-field input,
.form-field textarea {
    width: 100%;
    box-sizing: border-box;
}

.offer-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}

.form-message {
    margin: 16px 0 0;
    color: #2563eb;
}


/* =========================================
   TASK OFFERS — COMPACT PROVIDER PROFILE
   ========================================= */

.offer-card {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #ffffff;
}


.offer-profile-header {
    display: flex;
    align-items: center;
    gap: 12px;
}


.offer-profile-avatar {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    border-radius: 50%;

    background: #eef4ff;
    color: var(--primary);

    font-size: 17px;
    font-weight: 700;
}


.offer-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.offer-profile-main {
    min-width: 0;
}


.offer-profile-main h3 {
    margin: 0 0 3px;

    font-size: 17px;
    line-height: 1.2;
}


.offer-profile-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap: 7px;

    color: var(--text-light, #667085);

    font-size: 13px;
}


.offer-profile-rating-line {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}


.offer-profile-rating {
    color: #344054;
    font-weight: 600;
}


.offer-profile-reviews {
    color: var(--text-light, #667085);
}


/* =========================================
   LANGUAGES / SKILLS
   ========================================= */

.offer-profile-block {
    margin-top: 14px;
}


.offer-profile-label {
    margin-bottom: 6px;

    color: var(--text-light, #667085);

    font-size: 11px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.03em;
}


.offer-profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}


.offer-profile-tag {
    display: inline-flex;
    align-items: center;

    padding: 6px 9px;

    border-radius: 8px;

    background: #f2f4f7;

    color: #344054;

    font-size: 12px;
    line-height: 1.2;
}


.offer-profile-tag small {
    margin-left: 3px;

    color: #667085;
    font-size: 11px;
}


.offer-profile-skill {
    background: #eef4ff;
    color: #2864e8;
    font-weight: 600;
}


/* =========================================
   BIO — COMPACT
   ========================================= */

.offer-profile-bio {
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;

    margin-top: 12px;
    padding-top: 10px;

    border-top: 1px solid var(--border);

    box-sizing: border-box;
}

.offer-profile-bio .offer-profile-label {
    display: block;

    margin: 0 0 4px;
    padding: 0;

    height: auto;
    min-height: 0;

    color: var(--text-light, #667085);

    font-size: 11px;
    line-height: 1.2;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.offer-profile-bio p {
    display: block;

    margin: 0;
    padding: 0;

    height: auto;
    min-height: 0;

    color: #344054;

    font-size: 14px;
    line-height: 1.4;

    white-space: pre-wrap;
    overflow: hidden;
}


/* =========================================
   PRICE / STATUS
   ========================================= */

.offer-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-top: 14px;
    padding-top: 13px;

    border-top: 1px solid var(--border);
}


.offer-price {
    color: var(--text);

    font-size: 21px;
    font-weight: 700;
}


.offer-status {
    color: var(--text-light, #667085);

    font-size: 12px;
}


/* =========================================
   MESSAGE
   ========================================= */

.offer-message {
    margin-top: 13px;
    padding: 11px 12px;

    border-radius: 9px;

    background: #f5f7fa;
}


.offer-message p {
    margin: 0;

    color: #344054;

    font-size: 13px;
    line-height: 1.45;

    white-space: pre-wrap;
}


/* =========================================
   ACTION
   ========================================= */

.offer-card-action {
    margin-top: 14px;
}


.offer-card-action .btn {
    width: 100%;
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 700px) {

    .offer-card {
        padding: 14px;
    }

    .offer-profile-avatar {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .offer-profile-main h3 {
        font-size: 16px;
    }

    .offer-card-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .offer-price {
        font-size: 20px;
    }
}


/* SIDEBAR */

.task-sidebar-card {
    position: sticky;
    top: 24px;
    padding: 26px;
    background: #fff;
    border: 1px solid #e2e7f0;
    border-radius: 20px;
}

.task-sidebar-card h3 {
    margin: 5px 0 22px;
    font-size: 21px;
}

.task-sidebar-step {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-top: 1px solid #edf0f4;
}

.task-sidebar-step > span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    background: #eef4ff;
    color: #2563eb;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
}

.task-sidebar-step p {
    margin: 3px 0 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}


/* ERROR */

.task-error {
    max-width: 650px;
    margin: 80px auto;
}

.task-error-card {
    padding: 40px;
    text-align: center;
    background: #fff;
    border: 1px solid #e2e7f0;
    border-radius: 20px;
}

.task-error-card h2 {
    margin-top: 0;
}

.task-error-card p {
    margin-bottom: 24px;
    color: #718096;
}


/* BACK */

.task-back {
    max-width: 1100px;
    margin: 30px auto 0;
}

.task-back a {
    color: #475569;
    text-decoration: none;
}

.task-back a:hover {
    color: #2563eb;
}


/* MOBILE */

@media (max-width: 800px) {

    .task-page {
        padding: 32px 0 60px;
    }

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

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

    .task-sidebar {
        display: none;
    }

    .task-card {
        padding: 22px;
        border-radius: 16px;
    }

    .task-hero h1 {
        font-size: 34px;
    }
}


@media (max-width: 520px) {

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

    .task-meta-item {
        min-height: 64px;
    }

    .task-card {
        padding: 18px;
    }

    .offer-form-actions {
        flex-direction: column;
    }

    .offer-form-actions .btn {
        width: 100%;
    }
}

/* ========================================
   CUSTOMER DASHBOARD — ORDER CARDS
   ======================================== */

.order-dashboard-card {
    padding: 22px 24px;
    margin-top: 18px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.order-dashboard-card:first-child {
    margin-top: 0;
}

.order-dashboard-card h3 {
    margin: 0 0 14px;
    font-size: 20px;
    line-height: 1.3;
}

.order-dashboard-card p {
    margin: 8px 0;
    color: var(--text);
}

.order-dashboard-card p strong {
    font-weight: 800;
}

.order-dashboard-card a.btn {
    margin-top: 14px;
}

.order-dashboard-card:hover {
    border-color: #cfd8e6;
    transform: translateY(-1px);
    transition: .18s ease;
}


/* MOBILE */

@media (max-width: 700px) {

    .order-dashboard-card {
        padding: 18px;
    }

    .order-dashboard-card h3 {
        font-size: 18px;
    }

}

/* ========================================
   PROVIDER DASHBOARD — OFFER CARDS
   ======================================== */

.provider-offer-card,
.provider-order-card {
    padding: 22px 24px;
    margin-top: 18px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.provider-offer-card:first-child,
.provider-order-card:first-child {
    margin-top: 0;
}

.provider-offer-card h3,
.provider-order-card h3 {
    margin: 0 0 14px;
    font-size: 20px;
    line-height: 1.3;
}

.provider-offer-card p,
.provider-order-card p {
    margin: 8px 0;
    color: var(--text);
}

.provider-offer-card p strong,
.provider-order-card p strong {
    font-weight: 800;
}

.provider-offer-card a.btn,
.provider-order-card a.btn {
    margin-top: 14px;
}

.provider-offer-card:hover,
.provider-order-card:hover {
    border-color: #cfd8e6;
    transform: translateY(-1px);
    transition: .18s ease;
}


/* MOBILE */

@media (max-width: 700px) {

    .provider-offer-card,
    .provider-order-card {
        padding: 18px;
    }

    .provider-offer-card h3,
    .provider-order-card h3 {
        font-size: 18px;
    }

}

.status-awaiting_payment {
    background: #fff5e5;
    color: #a15c00;
}

/* =========================================================
   OFFER PAGE
   ========================================================= */

.offer-page-header {
    margin-bottom: 10px;
}

.offer-page-header h1 {
    margin: 6px 0 0;
}

.offer-profile {
    display: flex;
    align-items: center;
    gap: 18px;
}

.offer-avatar {
    width: 76px;
    height: 76px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 50%;
    background: #eef4ff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.offer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.offer-avatar-placeholder {
    font-size: 32px;
}

.offer-profile-info h2 {
    margin: 0 0 5px;
    font-size: 22px;
}

.offer-profile-info p {
    margin: 4px 0;
    color: var(--text-light);
}

.offer-bio {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.offer-bio p {
    margin-top: 10px;
    color: #4d596b;
    line-height: 1.7;
    white-space: pre-wrap;
}

.offer-price-large {
    margin: 8px 0 22px;
    color: var(--primary);
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -1px;
}

.offer-message-box {
    margin-top: 18px;
    padding: 18px;
    background: #f7f9fc;
    border-radius: 14px;
}

.offer-message-box p {
    margin-top: 9px;
    color: #4d596b;
    line-height: 1.65;
    white-space: pre-wrap;
}

.offer-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    color: var(--text-light);
    font-size: 14px;
}

.status-pending {
    background: #fff5e5;
    color: #a15c00;
}

.status-rejected {
    background: #fef0f0;
    color: #b42318;
}

.status-withdrawn {
    background: #f2f4f7;
    color: #667085;
}

.offer-task-title {
    margin: 0 0 10px;
    font-size: 20px;
}

.offer-accept-box {
    margin-top: 30px;
    padding: 24px;
    background: #f8faff;
    border: 1px solid #c8d8ff;
    border-radius: 16px;
}

.offer-accept-box h2 {
    margin: 0 0 10px;
    font-size: 21px;
}

.offer-accept-box p {
    margin: 0 0 18px;
}

.offer-accept-box .btn {
    width: 100%;
}


/* MOBILE */

@media (max-width: 640px) {

    .offer-profile {
        align-items: flex-start;
        gap: 14px;
    }

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

    .offer-avatar-placeholder {
        font-size: 27px;
    }

    .offer-profile-info h2 {
        font-size: 19px;
    }

    .offer-price-large {
        font-size: 32px;
    }

    .offer-status-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .offer-accept-box {
        padding: 20px;
    }

}

/* Компактные категории услуг на главной */

.service-categories {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-top: 24px;
}

.service-category {
    min-height: 100px;
    padding: 18px 14px;
    background: #fff;
    border: 1px solid #e1e6ef;
    border-radius: 16px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;

    box-sizing: border-box;
}

.service-category span {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #eef4ff;
    border-radius: 50%;

    font-size: 18px;
    margin-bottom: 10px;
}

.service-category h3 {
    margin: 0;
    font-size: 16px;
    line-height: 1.2;
}


/* Планшет */

@media (max-width: 900px) {

    .service-categories {
        grid-template-columns: repeat(3, 1fr);
    }

}


/* Телефон */

@media (max-width: 600px) {

    .service-categories {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        margin-top: 18px;
    }

    .service-category {
        min-height: 72px;
        padding: 10px 12px;
        border-radius: 12px;

        flex-direction: row;
        align-items: center;
        gap: 9px;
    }

    .service-category span {
        width: 30px;
        height: 30px;

        flex-shrink: 0;

        font-size: 16px;
        margin-bottom: 0;
    }

    .service-category h3 {
        font-size: 14px;
    }

}
/* =========================================
   COMPACT TASK LIST
========================================= */

.task-list-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    padding: 18px 22px;

    background: #ffffff;
    border: 1px solid #dfe5ef;
    border-radius: 14px;

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        border-color 0.15s ease;
}

.task-list-card:hover {
    transform: translateY(-1px);
    border-color: #cbd7eb;
    box-shadow: 0 8px 24px rgba(20, 40, 80, 0.06);
}

.task-list-main {
    min-width: 0;
    flex: 1;
}

.task-list-category {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    margin-bottom: 7px;

    color: #58708f;
    font-size: 13px;
    font-weight: 600;
}

.task-list-category-icon {
    font-size: 15px;
}

.task-list-title {
    margin: 0 0 9px;

    font-size: 18px;
    line-height: 1.25;
}

.task-list-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.task-list-meta {
    color: #637795;
    font-size: 14px;
}

.task-list-side {
    display: flex;
    align-items: center;
    gap: 18px;

    flex-shrink: 0;
}

.task-list-budget {
    font-size: 20px;
    font-weight: 700;
    color: #2463e8;
    white-space: nowrap;
}


/* MOBILE */

@media (max-width: 640px) {

    .task-list-card {
        padding: 15px 16px;
        gap: 12px;
    }

    .task-list-title {
        font-size: 16px;
    }

    .task-list-meta-row {
        gap: 7px;
        flex-direction: column;
    }

    .task-list-meta {
        font-size: 13px;
    }

    .task-list-side {
        flex-direction: column;
        align-items: flex-end;
        gap: 8px;
    }

    .task-list-budget {
        font-size: 17px;
    }

    .task-list-side .btn {
        white-space: nowrap;
    }
}