/* JUKTO — mobile-first styles */
:root {
  --navy: #14213d; --navy-2: #1f2f57; --accent: #fca311; --accent-d: #e08e00; --teal: #2ec4b6; --teal-d: #1fa597;
  --bg: #f5f7fb; --card: #fff; --text: #1b2333; --muted: #667085; --line: #e4e7ee;
  --green: #12b76a; --red: #e5484d; --amber: #f59e0b; --blue: #3b82f6; --purple: #7c5cff;
  --r: 14px; --shadow: 0 1px 2px rgba(16,24,40,.05), 0 4px 16px rgba(16,24,40,.06);
  --font: 'Hind Siliguri', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
.lang-en { --font: 'Inter', 'Hind Siliguri', system-ui, -apple-system, 'Segoe UI', sans-serif; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; font-size: 16px; }
a { color: var(--teal-d); text-decoration: none; } a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; color: var(--navy); }
h1 { font-size: 1.75rem; } h2 { font-size: 1.25rem; } h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
code { background: #eef1f6; padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.section { padding: 32px 16px; }
.section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.center { text-align: center; } .right { margin-left: auto; text-align: right; }
.muted { color: var(--muted); } .small { font-size: .875rem; } .pre { white-space: pre-line; }
.inline { display: inline; } .clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.wrap-any { word-break: break-all; max-width: 380px; }

/* header */
.topbar { background: var(--accent); color: var(--navy); text-align: center; padding: 6px 12px; font-weight: 600; font-size: .9rem; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-row { display: flex; align-items: center; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--navy); font-size: 1.15rem; text-decoration: none !important; }
.logo-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--navy); color: var(--accent); display: grid; place-items: center; font-weight: 700; }
.tag { background: var(--accent); color: var(--navy); font-size: .7rem; padding: 2px 8px; border-radius: 99px; }
.nav-toggle { margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 10px; font-size: 1.3rem; padding: 4px 12px; cursor: pointer; }
.main-nav { display: none; width: 100%; flex-direction: column; gap: 4px; padding-bottom: 12px; }
.main-nav.open { display: flex; }
.main-nav > a { color: var(--text); padding: 8px 4px; font-weight: 500; }
.nav-right { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lang { font-weight: 600; padding: 6px 10px; border: 1px solid var(--line); border-radius: 99px; color: var(--navy); }
.icon-link { position: relative; font-size: 1.15rem; text-decoration: none !important; padding: 4px; }
.dot { position: absolute; top: -4px; right: -8px; background: var(--red); color: #fff; font-size: .65rem; border-radius: 99px; padding: 0 5px; line-height: 16px; }
@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .main-nav { display: flex; flex-direction: row; width: auto; flex: 1; align-items: center; padding: 0; gap: 18px; }
  .nav-right { margin-left: auto; }
}

/* buttons & forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--navy); color: #fff; border: 1px solid var(--navy); padding: 10px 18px; border-radius: 10px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none !important; line-height: 1.2; }
.btn:hover { background: var(--navy-2); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--navy); } .btn-accent:hover { background: var(--accent-d); }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); } .btn-ghost:hover { background: #f0f2f7; }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); } .btn-outline:hover { background: rgba(255,255,255,.1); }
.btn-danger-ghost { background: #fff; color: var(--red); border-color: #f3c5c6; } .btn-danger-ghost:hover { background: #fff1f1; }
.btn-sm { padding: 6px 12px; font-size: .875rem; border-radius: 8px; } .btn-lg { padding: 14px 24px; font-size: 1.05rem; } .btn-block { width: 100%; margin-top: 8px; }
.btn-row { display: flex; gap: 8px; align-items: center; } .btn-row.wrap { flex-wrap: wrap; }
.field { display: block; margin-bottom: 14px; } .label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--navy); }
input, select, textarea { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid #d0d5dd; border-radius: 10px; background: #fff; color: var(--text); }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(46,196,182,.35); border-color: var(--teal); }
input[type=checkbox], input[type=radio] { width: auto; }
.hint { color: var(--muted); font-size: .825rem; display: block; margin-top: 4px; }
.check { display: flex; gap: 8px; align-items: center; margin: 8px 0 14px; font-size: .95rem; }
.checks { display: flex; flex-wrap: wrap; gap: 4px 16px; } .checks .check { margin: 4px 0; }
.row2, .row3 { display: grid; gap: 0 16px; }
@media (min-width: 640px) { .row2 { grid-template-columns: 1fr 1fr; } .row3 { grid-template-columns: 1fr 1fr 1fr; } }
.action-form { display: flex; gap: 6px; flex-wrap: wrap; } .action-form input { width: auto; min-width: 180px; }
form.inline input, form.inline select { width: auto; display: inline-block; padding: 6px 10px; }

/* cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow); }
.card.empty { text-align: center; color: var(--muted); padding: 40px 20px; }
.card.highlight { border: 2px solid var(--accent); }
.flash { padding: 12px 16px; border-radius: 10px; margin: 16px 0; font-weight: 500; }
.flash-success { background: #e7f8ef; color: #0b6b3f; border: 1px solid #b7ebcd; } .flash-error { background: #fdecec; color: #a12a2e; border: 1px solid #f5c2c3; } .flash-info { background: #eaf3ff; color: #1d4f91; border: 1px solid #c6dcfb; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.badge-green { background: #e7f8ef; color: #0b6b3f; } .badge-amber { background: #fff4e0; color: #8a5300; } .badge-blue { background: #e8f0ff; color: #1d4f91; } .badge-purple { background: #f0ecff; color: #4b33b5; } .badge-red { background: #fdecec; color: #a12a2e; } .badge-gray { background: #eef0f4; color: #4a5468; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; } .chip { background: #eef1f6; color: var(--navy); font-size: .75rem; padding: 2px 10px; border-radius: 99px; }
.stars { color: #f5a524; letter-spacing: 1px; white-space: nowrap; } .stars .off { color: #d7dbe3; }
.verified { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--teal); color: #fff; font-size: .65rem; margin-left: 6px; vertical-align: middle; }
.price { font-weight: 700; color: var(--navy); white-space: nowrap; }
.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: #e8ecf3; }
.avatar.lg { width: 56px; height: 56px; } .avatar.xl { width: 96px; height: 96px; font-size: 2rem; }
.avatar-fallback { display: inline-grid; place-items: center; background: linear-gradient(135deg, var(--teal), var(--navy)); color: #fff; font-weight: 700; }

/* hero */
.hero { background: radial-gradient(1200px 400px at 80% -10%, rgba(46,196,182,.35), transparent), linear-gradient(135deg, var(--navy), #22335f); color: #fff; padding: 48px 0 56px; }
.hero h1 { color: #fff; font-size: 2rem; } .hero .lead { color: #d5dcea; font-size: 1.1rem; }
.eyebrow { display: inline-block; background: rgba(252,163,17,.18); color: var(--accent); padding: 4px 12px; border-radius: 99px; font-size: .85rem; font-weight: 600; margin-bottom: 14px; }
.hero-grid { display: grid; gap: 32px; align-items: center; }
.search-box { display: grid; gap: 8px; background: #fff; padding: 8px; border-radius: 14px; margin: 20px 0; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.search-box input, .search-box select { border: 0; } .hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-art { position: relative; min-height: 260px; display: none; }
.float-card { position: absolute; background: #fff; color: var(--text); border-radius: 14px; padding: 14px 16px; box-shadow: 0 12px 40px rgba(0,0,0,.25); display: flex; gap: 12px; align-items: center; }
.float-card small { display: block; color: var(--muted); } .float-card.fc1 { top: 10px; left: 10%; } .float-card.fc2 { top: 120px; right: 0; flex-direction: column; align-items: flex-start; } .float-card.fc3 { bottom: 0; left: 0; flex-direction: column; align-items: flex-start; color: #f5a524; }
@media (min-width: 900px) { .hero { padding: 72px 0 80px; } .hero h1 { font-size: 2.6rem; } .hero-grid { grid-template-columns: 1.3fr 1fr; } .hero-art { display: block; } .search-box { grid-template-columns: 2fr 1fr 1fr auto; } }

.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.cat-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .cat-grid { grid-template-columns: repeat(6, 1fr); } }
.cat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px 14px; display: flex; flex-direction: column; gap: 6px; color: var(--text); transition: .15s; text-decoration: none !important; }
.cat-card:hover { border-color: var(--teal); transform: translateY(-2px); box-shadow: var(--shadow); } .cat-icon { font-size: 1.8rem; }
.card-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .card-grid { grid-template-columns: repeat(2, 1fr); } } @media (min-width: 1100px) { .card-grid { grid-template-columns: repeat(3, 1fr); } .section > .card-grid, .container.section > .card-grid { grid-template-columns: repeat(4, 1fr); } }
.creator-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; gap: 10px; color: var(--text); text-decoration: none !important; transition: .15s; }
.creator-card:hover { border-color: var(--teal); box-shadow: var(--shadow); transform: translateY(-2px); }
.cc-top { display: flex; gap: 12px; align-items: center; } .cc-name { font-weight: 700; color: var(--navy); } .cc-headline { color: var(--muted); font-size: .9rem; margin: 0; min-height: 2.6em; }
.cc-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; }
.how-grid { display: grid; gap: 24px; margin-top: 24px; } @media (min-width: 800px) { .how-grid { grid-template-columns: 1fr 1fr; } }
.how-col { background: var(--bg); border-radius: var(--r); padding: 24px; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; } .steps li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; gap: 0 12px; margin-bottom: 16px; }
.steps li::before { content: counter(s); grid-row: span 2; width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: var(--accent); display: grid; place-items: center; font-weight: 700; }
.steps li span { color: var(--muted); font-size: .95rem; }
.trust { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; text-align: center; } @media (min-width: 800px) { .trust { grid-template-columns: repeat(4, 1fr); } }
.trust-item { background: #fff; border-radius: var(--r); padding: 20px; border: 1px solid var(--line); } .trust-item b { display: block; font-size: 1.8rem; color: var(--navy); } .trust-item span { color: var(--muted); }
.cta-band { background: linear-gradient(135deg, var(--teal), var(--teal-d)); color: #fff; border-radius: 20px; padding: 32px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.cta-band h2 { color: #fff; } .cta-band p { margin: 0; }

/* browse & profile */
.page-title { font-size: 1.5rem; }
.browse-grid { display: grid; gap: 20px; } @media (min-width: 900px) { .browse-grid { grid-template-columns: 280px 1fr; align-items: start; } .filters { position: sticky; top: 84px; } }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; } .filter-row input, .filter-row select { width: auto; flex: 1 1 160px; }
.list { display: flex; flex-direction: column; } .list-item { display: flex; gap: 16px; align-items: center; color: var(--text); text-decoration: none !important; flex-wrap: wrap; }
.list-item .right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; } a.list-item:hover { border-color: var(--teal); }
.pager { display: flex; gap: 8px; justify-content: center; margin: 16px 0; }
.profile-head { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; } .ph-main { flex: 1; min-width: 240px; } .ph-main h1 { margin-bottom: 4px; }
.ph-stats { display: flex; gap: 20px; } .ph-stats div { text-align: center; } .ph-stats b { display: block; font-size: 1.3rem; color: var(--navy); } .ph-stats small { color: var(--muted); }
.meta-row { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: .9rem; margin: 6px 0 10px; }
.profile-grid { display: grid; gap: 20px; } @media (min-width: 960px) { .profile-grid { grid-template-columns: 1.6fr 1fr; align-items: start; } }
.social-links { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.portfolio-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; } @media (min-width: 700px) { .portfolio-grid { grid-template-columns: repeat(3, 1fr); } }
.pf-item { display: flex; flex-direction: column; gap: 6px; color: var(--text); font-size: .85rem; } .pf-item img { aspect-ratio: 1; object-fit: cover; border-radius: 10px; width: 100%; }
.pf-link { aspect-ratio: 1; display: grid; place-items: center; background: #eef1f6; border-radius: 10px; font-size: 2rem; }
.review { border-top: 1px solid var(--line); padding: 12px 0; } .review-head { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.service-head { display: flex; justify-content: space-between; gap: 12px; } .deliv p { margin: 4px 0 8px; }
details summary { cursor: pointer; color: var(--teal-d); font-weight: 600; margin: 6px 0; }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0 0 12px; } .dl dt { color: var(--muted); } .dl dd { margin: 0; font-weight: 500; }

/* auth */
.auth form { margin-top: 24px; } .role-pick { display: grid; gap: 10px; margin-bottom: 16px; } @media (min-width: 600px) { .role-pick { grid-template-columns: 1fr 1fr; } }
.role-card { display: flex; gap: 10px; border: 2px solid var(--line); border-radius: 12px; padding: 14px; cursor: pointer; } .role-card:has(input:checked) { border-color: var(--teal); background: #effbfa; }
.role-card small { display: block; color: var(--muted); }

/* dashboard */
.dash { padding-top: 24px; padding-bottom: 40px; } .dash-grid { display: grid; gap: 20px; } @media (min-width: 900px) { .dash-grid { grid-template-columns: 220px 1fr; align-items: start; } }
.side-nav { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; } .side-nav a { white-space: nowrap; padding: 8px 14px; border-radius: 10px; color: var(--text); background: #fff; border: 1px solid var(--line); text-decoration: none !important; }
.side-nav a.active { background: var(--navy); color: #fff; border-color: var(--navy); }
@media (min-width: 900px) { .side-nav { flex-direction: column; position: sticky; top: 84px; } .side-nav a { background: transparent; border-color: transparent; } }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 16px; } @media (min-width: 900px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat { margin: 0; } .stat small { color: var(--muted); display: block; } .stat b { font-size: 1.4rem; color: var(--navy); }
.todo { padding-left: 18px; margin: 0; } .todo li { margin: 6px 0; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; } .table th { text-align: left; color: var(--muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .02em; }
.table th, .table td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; } .table.card { padding: 8px 12px; display: block; overflow-x: auto; }
.table tbody tr:last-child td { border-bottom: 0; }
.tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 16px; padding-bottom: 4px; } .tabs a { white-space: nowrap; padding: 6px 14px; border-radius: 99px; background: #fff; border: 1px solid var(--line); color: var(--text); font-size: .875rem; text-decoration: none !important; }
.tabs a.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.avatar-row { display: flex; gap: 16px; align-items: center; } .avatar-row .field { flex: 1; }
.app-row { border-top: 1px solid var(--line); padding: 14px 0; } .app-who { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.app-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.timeline { list-style: none; padding: 0; margin: 0 0 16px; border-left: 2px solid var(--line); } .timeline li { padding: 4px 0 14px 16px; position: relative; }
.timeline li::before { content: ''; position: absolute; left: -7px; top: 10px; width: 12px; height: 12px; border-radius: 50%; background: var(--teal); }
.timeline p { margin: 4px 0; }
.notif { list-style: none; margin: 0; padding: 0; } .notif li { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; } .notif li.unread { font-weight: 600; }
.rating-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; margin-bottom: 10px; } .rating-input input { display: none; }
.rating-input label { font-size: 2rem; color: #d7dbe3; cursor: pointer; } .rating-input input:checked ~ label, .rating-input label:hover, .rating-input label:hover ~ label { color: #f5a524; }
.pay-rec { padding: 6px 0; border-bottom: 1px solid var(--line); }
.overdue { color: var(--red); font-weight: 600; }

/* admin */
.is-admin { background: #f1f3f8; }
.admin-wrap { display: grid; gap: 0; } @media (min-width: 960px) { .admin-wrap { grid-template-columns: 230px 1fr; min-height: calc(100vh - 65px); } }
.admin-nav { background: var(--navy); padding: 12px; display: flex; gap: 4px; overflow-x: auto; } .admin-nav a { color: #cfd6e6; padding: 9px 12px; border-radius: 8px; white-space: nowrap; display: flex; justify-content: space-between; gap: 8px; text-decoration: none !important; }
.admin-nav a.active, .admin-nav a:hover { background: rgba(255,255,255,.1); color: #fff; } .admin-nav .count { background: var(--accent); color: var(--navy); border-radius: 99px; font-size: .72rem; padding: 0 7px; font-weight: 700; }
@media (min-width: 960px) { .admin-nav { flex-direction: column; } }
.admin-main { padding: 24px 16px; min-width: 0; } @media (min-width: 960px) { .admin-main { padding: 28px 32px; } }
.grid2 { display: grid; gap: 16px; } @media (min-width: 1100px) { .grid2 { grid-template-columns: repeat(3, 1fr); } }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 180px; overflow-x: auto; } .bar { flex: 1 0 22px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.bar span { width: 100%; background: var(--teal); border-radius: 4px 4px 0 0; min-height: 2px; } .bar small { font-size: .65rem; color: var(--muted); }

/* footer */
.site-footer { background: var(--navy); color: #cfd6e6; padding: 40px 0 20px; margin-top: 40px; } .site-footer .logo { color: #fff; } .site-footer h4 { color: #fff; margin: 0 0 10px; }
.site-footer a { display: block; color: #cfd6e6; padding: 3px 0; } .site-footer .muted { color: #9aa6bf; }
.footer-grid { display: grid; gap: 24px; } @media (min-width: 800px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.copyright { border-top: 1px solid rgba(255,255,255,.1); margin-top: 24px; padding-top: 16px; font-size: .85rem; }

.mode-chip { font-size: .75rem; font-weight: 600; background: #effbfa; color: var(--teal-d); border: 1px solid #bfeee9; padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
.mode-switch { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; min-width: 200px; }
@media (max-width: 899px) { .mode-switch { flex-direction: row; align-items: center; min-width: auto; flex-shrink: 0; } }
