/* ==========================================================
   WEBLABSINDIA PORTAL — sign-up, dashboards, invoices
   Builds on the tokens in style.css.
   ========================================================== */
.pt { background: var(--wash); min-height: 70vh; }
.pt-h1 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 8px; letter-spacing: -0.035em; }
.pt-h1 em { font-style: normal; background: linear-gradient(90deg, #2447D6, #3D8BFF); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.pt-h2 { font-size: 20px; margin-bottom: 14px; letter-spacing: -0.02em; }
.pt-sub { color: var(--muted); margin-bottom: 22px; }
.pt-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: 0 10px 40px rgba(10,16,48,.05); }
.pt-card + .pt-card { margin-top: 20px; }
.pt-card--form { box-shadow: var(--shadow); padding: clamp(24px, 4vw, 40px); }
.pt-narrow { max-width: 620px; margin: 60px auto; padding: 0 20px; }

/* flashes, badges, hints */
.pt-flash { padding: 13px 16px; border-radius: 12px; font-size: 15px; font-weight: 600; margin-bottom: 16px; }
.pt-flash--ok { background: #E7F8EE; color: #14663A; border: 1px solid #BFE9D0; }
.pt-flash--err { background: #FDECEC; color: #9B1C1C; border: 1px solid #F5C2C2; }
.pt-flash--info { background: #EAF0FF; color: #1F3FA8; border: 1px solid #C9D8FF; }
.pt-badge { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.pt-badge--ok { background: #E7F8EE; color: #14663A; }
.pt-badge--warn { background: #FFF3D6; color: #8A5A00; }
.pt-badge--info { background: #EAF0FF; color: #1F3FA8; }
.pt-badge--done { background: #E8E3FF; color: #4A35C8; }
.pt-badge--muted { background: #ECEFF6; color: #5A647C; }
.pt-hint { display: block; color: var(--muted); font-size: 12.5px; margin-top: 6px; font-weight: 500; }
.pt-hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* forms */
.pt-form { display: grid; gap: 16px; }
.pt-form label, .pt-label { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink-soft); margin-bottom: 6px; }
.pt-form label small { font-weight: 500; color: var(--muted); }
.pt-form input:not([type=checkbox]):not([type=radio]):not([type=file]), .pt-form select, .pt-form textarea {
  width: 100%; padding: 13px 15px; border-radius: 12px; border: 1.5px solid var(--line); font: inherit; font-size: 15.5px; background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.pt-form textarea { min-height: 120px; resize: vertical; }
.pt-form input:focus, .pt-form select:focus, .pt-form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(47,91,255,.12); }
.pt-form input[type=file] { width: 100%; padding: 12px; border: 1.5px dashed #B9C4E0; border-radius: 12px; background: #F8FAFF; font: inherit; font-size: 14.5px; }
.pt-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pt-row--3 { grid-template-columns: repeat(3, 1fr); }
.pt-check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 500 !important; color: var(--ink-soft) !important; }
.pt-check input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.pt-check a, .pt-alt a, .pt-link { color: var(--brand); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.pt-alt { margin-top: 20px; text-align: center; color: var(--muted); font-size: 14.5px; }
@media (max-width: 640px) { .pt-row, .pt-row--3 { grid-template-columns: 1fr; } }

/* auth layout */
.pt-auth { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); min-height: calc(100vh - 72px); }
.pt-auth__art { position: relative; isolation: isolate; background: var(--dark-bg); display: flex; align-items: center; padding: 60px clamp(28px, 5vw, 72px); color: #fff; overflow: hidden; }
.pt-auth__art::before { content: ''; position: absolute; inset: 0; z-index: -1; background: url('/images/hero-globe-1200.webp') 68% center / cover; opacity: .75; }
.pt-auth__art::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6,11,26,.55), rgba(6,11,26,.92)); }
.pt-auth__quote { font-family: var(--f-display); font-size: clamp(26px, 3vw, 40px); line-height: 1.12; letter-spacing: -0.03em; font-weight: 700; margin-bottom: 26px; }
.pt-auth__art .wl-checks li { color: var(--dark-text); }
.pt-auth__form { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.pt-auth__form .pt-card { width: 100%; max-width: 620px; }
@media (max-width: 900px) { .pt-auth { grid-template-columns: 1fr; } .pt-auth__art { padding: 36px 24px; } .pt-auth__art .wl-checks { display: none; } .pt-auth__form { padding: 28px 16px 48px; } }

/* dashboard shell */
.pt-shell { max-width: 1320px; margin: 0 auto; padding: 32px 24px 72px; display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; }
.pt-side { position: sticky; top: 92px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px 14px; }
.pt-side__who { padding: 6px 10px 16px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.pt-side__who b { display: block; font-family: var(--f-display); font-size: 17px; line-height: 1.2; }
.pt-side__who span { font-size: 13px; color: var(--muted); word-break: break-all; }
.pt-side nav { display: grid; gap: 4px; }
.pt-side a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 14px; border-radius: 12px; font-weight: 600; font-size: 15px; color: var(--ink-soft); transition: background .2s, color .2s; }
.pt-side a:hover { background: var(--wash); color: var(--ink); }
.pt-side a.is-active { background: var(--ink); color: #fff; }
.pt-side a i { font-style: normal; font-size: 12px; font-weight: 800; background: var(--accent); color: #1b1200; padding: 2px 8px; border-radius: 999px; }
.pt-side__sep { height: 1px; background: var(--line); margin: 10px 4px; }
.pt-side .pt-out { color: #9B1C1C; }
.pt-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.pt-top p { color: var(--muted); }
@media (max-width: 960px) {
  .pt-shell { grid-template-columns: 1fr; padding: 18px 14px 56px; }
  .pt-side { position: static; padding: 12px; }
  .pt-side__who { display: none; }
  .pt-side nav { display: flex; overflow-x: auto; gap: 6px; padding-bottom: 4px; scrollbar-width: thin; }
  .pt-side a { white-space: nowrap; flex: none; }
  .pt-side__sep { display: none; }
}

/* stats */
.pt-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.pt-stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 20px 22px; }
.pt-stat span { display: block; font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: .02em; margin-bottom: 8px; }
.pt-stat b { display: block; font-family: var(--f-display); font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.pt-stat small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 6px; }
.pt-stat--hot { background: linear-gradient(160deg, #0E1731, #060B1A); border-color: rgba(255,176,32,.4); }
.pt-stat--hot span, .pt-stat--hot small { color: var(--dark-muted); } .pt-stat--hot b { color: #fff; }
@media (max-width: 1100px) { .pt-stats { grid-template-columns: repeat(2, 1fr); } }

/* tables */
.pt-tablewrap { overflow-x: auto; }
.pt-table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
.pt-table th { text-align: left; font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.pt-table td { padding: 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.pt-table tr:last-child td { border-bottom: 0; }
.pt-table td.num, .pt-table th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pt-table a.pt-link { text-decoration: none; }
.pt-table a.pt-link:hover { text-decoration: underline; }
.pt-empty { text-align: center; color: var(--muted); padding: 34px 10px; }
.pt-mono { font-family: ui-monospace, Menlo, monospace; font-size: 13.5px; }

/* plan picker on new-order */
.pt-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pt-plan { position: relative; cursor: pointer; display: block; }
.pt-plan input { position: absolute; opacity: 0; inset: 0; }
.pt-plan > span { display: block; height: 100%; border: 1.5px solid var(--line); border-radius: 18px; padding: 18px 18px 16px; background: #fff; transition: border-color .2s, box-shadow .2s, transform .2s; }
.pt-plan:hover > span { transform: translateY(-3px); box-shadow: var(--shadow); }
.pt-plan input:checked + span { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(47,91,255,.14); background: #F6F8FF; }
.pt-plan input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.pt-plan b { display: block; font-family: var(--f-display); font-size: 18px; }
.pt-plan em { display: block; font-style: normal; font-family: var(--f-display); font-weight: 800; font-size: 20px; letter-spacing: -0.03em; margin: 4px 0 6px; }
.pt-plan small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.pt-plan .pt-tag { display: inline-block; margin-top: 8px; font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #8A5A00; background: #FFF3D6; border-radius: 999px; padding: 3px 9px; }
@media (max-width: 900px) { .pt-plans { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .pt-plans { grid-template-columns: 1fr; } }
.pt-grid2 { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 22px; align-items: start; }
@media (max-width: 1080px) { .pt-grid2 { grid-template-columns: 1fr; } }
.pt-sticky { position: sticky; top: 92px; }
@media (max-width: 1080px) { .pt-sticky { position: static; } }

/* key/value lists & totals */
.pt-kv { display: grid; gap: 0; }
.pt-kv > div { display: flex; justify-content: space-between; gap: 18px; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.pt-kv > div:last-child { border-bottom: 0; }
.pt-kv dt { color: var(--muted); } .pt-kv dd { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; word-break: break-word; }
.pt-kv .tot { border-top: 2px solid var(--ink); border-bottom: 0; margin-top: 6px; padding-top: 14px; font-size: 18px; }
.pt-kv .tot dt { color: var(--ink); font-weight: 700; } .pt-kv .tot dd { font-weight: 800; font-family: var(--f-display); }

/* order timeline */
.pt-line { display: flex; gap: 0; margin: 4px 0 26px; overflow-x: auto; list-style: none; padding: 0; }
.pt-line li { flex: 1 0 110px; position: relative; text-align: center; font-size: 12.5px; font-weight: 700; color: var(--muted); padding-top: 34px; }
.pt-line li::before { content: ''; position: absolute; top: 8px; left: 50%; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: #fff; border: 2px solid #C9D2E6; z-index: 1; }
.pt-line li::after { content: ''; position: absolute; top: 16px; left: -50%; width: 100%; height: 2px; background: #C9D2E6; }
.pt-line li:first-child::after { display: none; }
.pt-line li.done { color: var(--ink); } .pt-line li.done::before { background: var(--accent); border-color: var(--accent); } .pt-line li.done::after { background: var(--accent); }
.pt-line li.now::before { box-shadow: 0 0 0 6px rgba(255,176,32,.28); }

/* files & messages */
.pt-files { display: grid; gap: 8px; margin: 14px 0 0; }
.pt-file { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.pt-file b { display: block; font-size: 14.5px; word-break: break-word; }
.pt-file small { color: var(--muted); font-size: 12.5px; }
.pt-file--deliver { background: #F4FBF7; border-color: #BFE9D0; }
.pt-thread { display: grid; gap: 12px; margin-bottom: 18px; max-height: 460px; overflow-y: auto; padding-right: 4px; }
.pt-msg { max-width: 88%; padding: 12px 15px; border-radius: 16px; background: var(--wash); font-size: 15px; white-space: pre-wrap; word-break: break-word; }
.pt-msg small { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; font-weight: 700; }
.pt-msg--me { margin-left: auto; background: #E9EFFF; }
.pt-msg--admin { background: #FFF6E0; }
.pt-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pt-actions form { margin: 0; }
.wl-btn--s2 { padding: 9px 16px; font-size: 13.5px; }
.pt-btn-line { display: inline-flex; align-items: center; justify-content: center; padding: 9px 16px; font-size: 13.5px; font-weight: 700; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); transition: all .2s; }
.pt-btn-line:hover { border-color: var(--ink); }
.pt-btn-danger { color: #9B1C1C; border-color: #F0C4C4; }
.pt-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.pt-tabs a { padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: 13.5px; border: 1.5px solid var(--line); background: #fff; color: var(--ink-soft); }
.pt-tabs a.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.pt-note { font-size: 13px; color: var(--muted); }

/* pay page */
.pt-pay { max-width: 1060px; margin: 0 auto; padding: 36px 20px 72px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 900px) { .pt-pay { grid-template-columns: 1fr; } }
.pt-qr { width: 230px; height: 230px; margin: 10px auto; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.pt-qr svg { width: 100%; height: 100%; }
.pt-copy { display: flex; gap: 10px; } .pt-copy input { flex: 1; min-width: 0; }

/* invoice document */
.pt-inv-wrap { max-width: 900px; margin: 0 auto; padding: 36px 20px 72px; }
.pt-inv { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: clamp(24px, 5vw, 56px); box-shadow: var(--shadow); }
.pt-inv header { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 34px; }
.pt-inv h1 { font-size: 32px; } .pt-inv h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 8px; font-family: var(--f-body); }
.pt-inv .pt-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 30px; font-size: 14.5px; }
.pt-inv table { width: 100%; border-collapse: collapse; margin-bottom: 18px; font-size: 14.5px; }
.pt-inv th { text-align: left; font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 10px 0; border-bottom: 2px solid var(--ink); }
.pt-inv td { padding: 12px 0; border-bottom: 1px solid var(--line); } .pt-inv .num { text-align: right; font-variant-numeric: tabular-nums; }
.pt-inv .pt-tot { margin-left: auto; width: min(340px, 100%); }
.pt-inv .pt-note { margin-top: 26px; }
@media (max-width: 640px) { .pt-inv .pt-cols { grid-template-columns: 1fr; } }
@media print {
  .wl-nav, .wl-footer, .wl-float-wa, .wl-sticky-cta, .pt-noprint, .wl-progress { display: none !important; }
  .pt { background: #fff; } .pt-inv { box-shadow: none; border: 0; padding: 0; } .pt-inv-wrap { padding: 0; }
}
.js .pt .rv { transition-duration: .7s; }
