/* Client area + login pages — new ZapoHost look (loaded after app.css; the admin area does not use this file). */
body.client, body.guest { background: #f4f8ef; --radius: 18px; --border: #e1e9d8; --bg: #f4f8ef; }
body.client .card, body.guest .card { border-radius: 20px; border-color: #e1e9d8; box-shadow: 0 8px 26px rgba(20, 50, 25, .05); }
body.client h1, body.client h2, body.guest h1 { letter-spacing: -0.02em; }
body.client .btn, body.guest .btn { border-radius: 12px; }
body.client .btn-primary, body.guest .btn-primary { background: #c5fa57; color: #07100b; box-shadow: 0 8px 20px rgba(132, 204, 22, .25); }
body.client .btn-primary:hover, body.guest .btn-primary:hover { background: #b4ef3d; }
body.client .btn-ghost { border-color: #c6d7b9; color: #10241a; background: #fff; }
body.client .btn-ghost:hover { border-color: #10241a; }
.btn-dark { background: #07100b; color: #c5fa57; }
.btn-dark:hover { background: #000; color: #c5fa57; }
.btn-ghost-dark { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .28); }
.btn-ghost-dark:hover { border-color: #fff; color: #fff; }
.btn-block { display: flex; width: 100%; justify-content: center; }
body.client .table th { color: #526050; }
body.client a { color: #3f6212; }
body.client .badge-ok { background: #dcfce7; color: #166534; }

/* header */
.c-top { background: #fff; border-bottom: 1px solid #e1e9d8; position: sticky; top: 0; z-index: 20; }
.c-top-in { max-width: 1320px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 24px; }
.c-top .logo { height: 30px; width: auto; display: block; }
.c-nav { display: flex; gap: 4px; background: #f4f8ef; border-radius: 14px; padding: 4px; }
.c-nav a { color: #33402f; text-decoration: none; padding: 9px 16px; border-radius: 10px; font-weight: 500; font-size: 15px; }
.c-nav a:hover { background: #e7eedf; text-decoration: none; }
.c-nav a.active { background: #07100b; color: #c5fa57; font-weight: 600; }
.c-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.c-icon { position: relative; width: 44px; height: 44px; border-radius: 12px; border: 1px solid #e1e9d8; display: grid; place-items: center; color: #07100b; }
.c-icon:hover { border-color: #07100b; }
.c-icon .count { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: #07100b; color: #c5fa57; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.c-login { font-weight: 600; color: #07100b !important; }
.c-user { position: relative; }
.c-user summary { list-style: none; display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; padding: 4px 6px 4px 4px; border-radius: 999px; }
.c-user summary::-webkit-details-marker { display: none; }
.c-user summary:hover { background: #f4f8ef; }
.c-avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, #c5fa57, #34d399); display: grid; place-items: center; font-weight: 800; color: #07100b; }
.c-user-menu { position: absolute; right: 0; top: 50px; background: #fff; border: 1px solid #e1e9d8; border-radius: 14px; padding: 6px; min-width: 200px; box-shadow: 0 16px 40px rgba(0, 0, 0, .12); display: grid; }
.c-user-menu a, .c-user-menu button { text-align: left; padding: 10px 12px; border-radius: 9px; color: #07100b; font-family: inherit; font-size: 15px; font-weight: 500; background: none; border: 0; cursor: pointer; text-decoration: none; }
.c-user-menu a:hover, .c-user-menu button:hover { background: #f4f8ef; }
.c-user-menu form { margin: 0; display: grid; }

/* dashboard */
.c-hero { position: relative; overflow: hidden; border-radius: 26px; padding: 36px 40px; margin-bottom: 22px; color: #fff; display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center;
  background: radial-gradient(520px 320px at 88% 10%, rgba(197, 250, 87, .35), rgba(197, 250, 87, 0) 70%), radial-gradient(500px 300px at 10% 100%, rgba(52, 211, 153, .3), rgba(52, 211, 153, 0) 70%), linear-gradient(150deg, #07100b, #10241a); }
.c-hero h1 { margin: 0; font-size: clamp(26px, 3vw, 36px); color: #fff; }
.c-hero p { margin: 10px 0 0; color: #cbdac2; font-size: 17px; }
.c-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.c-hero-art { width: 300px; max-width: 34vw; height: auto; display: block; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .4)); }
.c-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.c-stat { background: #fff; border: 1px solid #e1e9d8; border-radius: 20px; padding: 20px; display: grid; gap: 8px; color: #07100b !important; text-decoration: none !important; transition: transform .15s, box-shadow .15s; }
.c-stat:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(20, 50, 25, .08); }
.c-stat strong { font-size: 30px; letter-spacing: -0.02em; line-height: 1.1; margin-top: 6px; }
.c-stat span:last-child { color: #526050; font-size: 14px; font-weight: 600; }
.c-stat.warn { border-color: #fde68a; }
.c-stat.warn span:last-child { color: #92400e; }
.tile { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #07100b; background: linear-gradient(135deg, #c5fa57, #84cc16); }
.tile.t2 { background: linear-gradient(135deg, #34d399, #059669); color: #fff; }
.tile.t3 { background: linear-gradient(135deg, #fde047, #f59e0b); }
.tile.t4 { background: linear-gradient(135deg, #10241a, #1f3a26); color: #c5fa57; }
.c-cols { display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-start; }
.c-main { flex: 999 1 560px; min-width: 0; }
.c-side { flex: 1 1 300px; display: grid; gap: 18px; }
.c-side .card { margin: 0; }
.c-side h2 { font-size: 18px; margin: 0 0 12px; }
.c-card-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid #e7eedf; }
.c-card-head h2 { margin: 0; font-size: 19px; }
.c-card-head a { font-weight: 600; font-size: 14px; }
.svc-list { list-style: none; margin: 0; padding: 0; }
.svc-list li { display: flex; align-items: center; gap: 16px; padding: 16px 24px; border-bottom: 1px solid #eef3e8; flex-wrap: wrap; }
.svc-list li:last-child { border-bottom: 0; }
.svc-ico { width: 44px; height: 44px; border-radius: 12px; background: #ecfccb; color: #3f6212; display: grid; place-items: center; flex: none; }
.svc-name { flex: 1 1 180px; min-width: 0; display: grid; }
.svc-name span { color: #526050; font-size: 14px; }
.svc-due { color: #526050; font-size: 13px; }
.due-card { border-radius: 20px; padding: 22px; background: linear-gradient(140deg, #c5fa57, #86efac); display: grid; gap: 6px; color: #07100b; }
.due-card .label { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #1f3a26; }
.due-card strong { font-size: 34px; letter-spacing: -0.02em; }
.due-card span { color: #1f3a26; font-size: 14px; }
.due-card .btn { margin-top: 8px; justify-content: center; display: flex; }
.mini-ticket { display: grid; gap: 2px; background: #f4f8ef; border-radius: 14px; padding: 12px 14px; margin-bottom: 12px; color: #07100b !important; text-decoration: none !important; }
.mini-ticket span { color: #526050; font-size: 13px; }

/* empty states */
.empty-state { text-align: center; display: grid; justify-items: center; gap: 8px; padding: 36px 24px; }
.empty-state img { width: 180px; height: auto; }
.empty-state h3 { margin: 6px 0 0; font-size: 20px; }
.empty-state p { margin: 0 0 10px; color: #526050; max-width: 420px; }

/* footer */
.c-foot { border-top: 1px solid #e1e9d8; background: #fff; margin-top: 40px; }
.c-foot-in { max-width: 1320px; margin: 0 auto; padding: 18px 24px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: #526050; font-size: 14px; }

/* login / register */
.g-split { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.g-art { position: relative; overflow: hidden; color: #fff; padding: 40px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  background: radial-gradient(700px 480px at 85% 5%, rgba(197, 250, 87, .28), rgba(197, 250, 87, 0) 70%), radial-gradient(600px 420px at 0% 100%, rgba(52, 211, 153, .3), rgba(52, 211, 153, 0) 70%), linear-gradient(160deg, #07100b, #10241a 60%, #07100b); }
.g-logo img { height: 32px; width: auto; display: block; }
.g-ill { width: 100%; max-width: 620px; margin: 0 auto; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .45)); }
.g-quote { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; max-width: 420px; }
body.guest .auth-wrap { min-height: 100vh; }
.g-mobile-logo { display: none; }
.g-back { margin-top: 18px; color: #526050; font-size: 14px; }

@media (max-width: 980px) {
  .c-nav { display: none; }
  .c-hero { grid-template-columns: 1fr; }
  .c-hero-art { display: none; }
  .c-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-split { grid-template-columns: 1fr; }
  .g-art { display: none; }
  .g-mobile-logo { display: block; }
}
@media (max-width: 560px) {
  .c-order, .c-name { display: none; }
  .c-hero { padding: 26px; }
}
/* small-screen client nav: a scrollable pill row under the header */
@media (max-width: 980px) {
  body.client .c-top-in { flex-wrap: wrap; }
  body.client .c-nav { display: flex; order: 3; width: 100%; overflow-x: auto; }
  body.client .c-nav a { white-space: nowrap; }
}
body.client a.btn-dark, body.guest a.btn-dark { color: #c5fa57; }
body.client a.btn-ghost-dark { color: #fff; }
body.client a.btn-primary { color: #07100b; }
body.client a.btn-ghost { color: #10241a; }
.g-art { position: sticky; top: 0; height: 100vh; }
.g-ill { max-height: 58vh; width: auto; object-fit: contain; }
