/* ── Ny Sitter Public SPA ── */
:root {
  --ns-teal:    #0db4b4;
  --ns-teal-d:  #0a8f8f;
  --ns-blue:    #6ec6f0;
  --ns-blue-l:  #d0edfb;
  --ns-yellow:  #f9e04b;
  --ns-yellow-d:#e0c200;
  --ns-white:   #ffffff;
  --ns-bg:      #f0fbff;
  --ns-text:    #1a3a4a;
  --ns-muted:   #6b8fa0;
  --ns-card:    #ffffff;
  --ns-radius:  16px;
  --ns-shadow:  0 4px 20px rgba(13,180,180,.12);
}

#ns-root { font-family: 'Nunito', sans-serif; color: var(--ns-text); background: var(--ns-bg); min-height: 100vh; width: 100%; overflow-x: hidden; }

/* Nav */
.ns-nav { background: var(--ns-teal); padding: 0 24px; display: flex; align-items: center; gap: 0; width: 100%; box-sizing: border-box; min-height: 52px; }
.ns-nav-logo { font-family: 'Pacifico', cursive; font-size: 22px; color: #fff; padding: 14px 0; flex-shrink: 0; margin-right: 20px; letter-spacing: -0.5px; }
.ns-nav button { background: none; border: none; color: rgba(255,255,255,.8); font-family: 'Nunito', sans-serif; font-size: 14px; font-weight: 700; padding: 14px 14px 11px; cursor: pointer; border-bottom: 3px solid transparent; transition: all .2s; white-space: nowrap; flex-shrink: 0; }
.ns-nav button:hover, .ns-nav button.active { color: var(--ns-yellow); border-bottom-color: var(--ns-yellow); }

/* Pages */
.ns-page { padding: 0; width: 100%; min-height: calc(100vh - 50px); background: var(--ns-bg); }
.ns-content { padding: 0; max-width: 100%; margin: 0; width: 100%; box-sizing: border-box; background: var(--ns-bg); }

/* Hero */
.ns-hero { background: linear-gradient(160deg, var(--ns-teal) 0%, #0891b2 40%, var(--ns-blue) 100%); border-radius: 0; padding: 56px 28px 60px; text-align: center; color: #fff; margin-bottom: 0; width: 100%; }
.ns-hero h1 { font-family: 'Pacifico', cursive; font-size: 38px; margin: 0 0 10px; text-shadow: 0 2px 8px rgba(0,0,0,.15); }
.ns-hero p { font-size: 17px; opacity: .92; margin: 0 0 24px; font-weight: 600; letter-spacing: .2px; }
.ns-hero-cta { background: var(--ns-yellow); color: var(--ns-text); font-weight: 800; font-size: 17px; padding: 15px 38px; border: none; border-radius: 50px; cursor: pointer; transition: transform .15s, box-shadow .15s; box-shadow: 0 4px 16px rgba(0,0,0,.2); }
.ns-hero-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.2); }

/* Cards */
.ns-card { background: var(--ns-card); border-radius: var(--ns-radius); box-shadow: var(--ns-shadow); padding: 24px; margin-bottom: 20px; }
.ns-card h2 { font-size: 20px; font-weight: 800; margin: 0 0 16px; color: var(--ns-teal); }
.ns-card h3 { font-size: 16px; font-weight: 700; margin: 0 0 8px; }

/* Credentials */
.ns-creds { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.ns-cred-item { background: linear-gradient(135deg, var(--ns-blue-l), var(--ns-white)); border: 2px solid var(--ns-blue); border-radius: 12px; padding: 16px; text-align: center; }
.ns-cred-emoji { font-size: 28px; margin-bottom: 8px; }
.ns-cred-title { font-weight: 800; font-size: 14px; color: var(--ns-text); }
.ns-cred-issuer { font-size: 12px; color: var(--ns-muted); margin-top: 4px; }

/* Services */
.ns-services { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.ns-service { background: var(--ns-white); border: 2px solid var(--ns-blue-l); border-radius: 12px; padding: 18px 14px; text-align: center; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.ns-service:hover, .ns-service.selected { border-color: var(--ns-teal); box-shadow: 0 0 0 3px rgba(13,180,180,.15); }
.ns-service-emoji { font-size: 30px; margin-bottom: 8px; }
.ns-service-name { font-weight: 800; font-size: 14px; }
.ns-service-price { font-size: 13px; color: var(--ns-teal); font-weight: 700; margin-top: 4px; }

/* Car goal */
.ns-goal { background: linear-gradient(135deg, #fff9cc, #fffde8); border: 2px solid var(--ns-yellow); border-radius: var(--ns-radius); padding: 22px; }
.ns-goal h3 { font-size: 18px; font-weight: 800; margin: 0 0 12px; }
.ns-goal-bar-bg { background: #f0e8a0; border-radius: 50px; height: 22px; overflow: hidden; }
.ns-goal-bar { background: linear-gradient(90deg, var(--ns-yellow), var(--ns-teal)); height: 100%; border-radius: 50px; transition: width 1s ease; display: flex; align-items: center; justify-content: flex-end; padding-right: 8px; }
.ns-goal-bar span { font-size: 11px; font-weight: 800; color: var(--ns-text); }
.ns-goal-nums { display: flex; justify-content: space-between; margin-top: 8px; font-size: 14px; font-weight: 700; }
.ns-goal-caption { font-size: 13px; color: var(--ns-muted); margin-top: 6px; text-align: center; }

/* Forms */
.ns-form-row { margin-bottom: 16px; }
.ns-form-row label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; color: var(--ns-text); }
.ns-form-row input, .ns-form-row select, .ns-form-row textarea {
  width: 100%; padding: 11px 14px; border: 2px solid #d0e8f0; border-radius: 10px; font-family: 'Nunito', sans-serif; font-size: 15px; box-sizing: border-box; transition: border-color .2s; color: var(--ns-text); background: #fff;
}
.ns-form-row input:focus, .ns-form-row select:focus, .ns-form-row textarea:focus { outline: none; border-color: var(--ns-teal); }
.ns-form-row textarea { min-height: 90px; resize: vertical; }

.ns-check-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; cursor: pointer; }
.ns-check-row input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--ns-teal); }
.ns-check-row span { font-weight: 700; font-size: 14px; }
.ns-check-row small { color: var(--ns-muted); font-size: 12px; margin-left: auto; font-weight: 600; }

/* Buttons */
.ns-btn { display: inline-block; padding: 13px 28px; border-radius: 50px; font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 15px; border: none; cursor: pointer; transition: all .2s; }
.ns-btn-primary { background: var(--ns-teal); color: #fff; }
.ns-btn-primary:hover { background: var(--ns-teal-d); transform: translateY(-1px); }
.ns-btn-yellow { background: var(--ns-yellow); color: var(--ns-text); }
.ns-btn-yellow:hover { background: var(--ns-yellow-d); }
.ns-btn-outline { background: transparent; border: 2px solid var(--ns-teal); color: var(--ns-teal); }
.ns-btn-outline:hover { background: var(--ns-teal); color: #fff; }
.ns-btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }
.ns-btn-sm { padding: 8px 16px; font-size: 13px; }

/* Steps */
.ns-steps { display: flex; gap: 4px; margin-bottom: 24px; }
.ns-step { flex: 1; padding: 10px 4px; text-align: center; border-radius: 8px; font-size: 12px; font-weight: 700; background: #e8f4f8; color: var(--ns-muted); transition: all .2s; }
.ns-step.active { background: var(--ns-teal); color: #fff; }
.ns-step.done { background: var(--ns-yellow); color: var(--ns-text); }

/* Summary table */
.ns-summary-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #e8f4f8; font-size: 15px; }
.ns-summary-row:last-child { border-bottom: none; font-weight: 800; font-size: 16px; color: var(--ns-teal); }

/* Payment methods */
.ns-pay-methods { display: flex; flex-wrap: wrap; gap: 10px; }
.ns-pay-btn { display: flex; align-items: center; gap: 8px; padding: 12px 18px; border: 2px solid #d0e8f0; border-radius: 12px; background: #fff; cursor: pointer; font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 14px; transition: all .2s; }
.ns-pay-btn:hover, .ns-pay-btn.selected { border-color: var(--ns-teal); background: var(--ns-blue-l); }
.ns-pay-btn-icon { font-size: 22px; }

/* Messages */
.ns-msg-list { display: flex; flex-direction: column; gap: 10px; max-height: 380px; overflow-y: auto; margin-bottom: 16px; padding: 4px; }
.ns-msg { max-width: 80%; padding: 12px 16px; border-radius: 16px; font-size: 14px; line-height: 1.5; }
.ns-msg-in  { background: var(--ns-blue-l); border-radius: 4px 16px 16px 16px; align-self: flex-start; }
.ns-msg-out { background: var(--ns-teal); color: #fff; border-radius: 16px 4px 16px 16px; align-self: flex-end; }
.ns-msg-time { font-size: 11px; color: var(--ns-muted); margin-top: 4px; }
.ns-msg-out .ns-msg-time { color: rgba(255,255,255,.7); }

/* Booking status badge */
.ns-badge { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 800; }
.ns-badge-pending   { background: #fff3cc; color: #b08000; }
.ns-badge-confirmed { background: #ccf0e8; color: #007a50; }
.ns-badge-active    { background: #cce8ff; color: #004fa0; }
.ns-badge-completed { background: #e0ffe0; color: #006600; }
.ns-badge-cancelled { background: #ffe0e0; color: #a00000; }

/* Info boxes */
.ns-info-box { background: var(--ns-blue-l); border-left: 4px solid var(--ns-teal); border-radius: 0 10px 10px 0; padding: 14px 16px; font-size: 14px; margin-bottom: 16px; }
.ns-success { background: #e0ffe0; border-left-color: #00a050; }
.ns-error   { background: #ffe8e8; border-left-color: #d00000; color: #800000; }

/* Responsive */
@media (max-width: 600px) {
  .ns-page { padding: 16px 12px; }
  .ns-hero { padding: 28px 16px; }
  .ns-hero h1 { font-size: 24px; }
  .ns-creds, .ns-services { grid-template-columns: 1fr 1fr; }
  .ns-steps .ns-step { font-size: 10px; padding: 8px 2px; }
}

/* Donate */
.ns-donate-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.ns-donate-method { background: linear-gradient(135deg, var(--ns-blue-l), #fff); border: 2px solid var(--ns-blue); border-radius: 14px; padding: 20px 16px; text-align: center; }
.ns-donate-icon { font-size: 32px; margin-bottom: 8px; }
.ns-donate-label { font-weight: 900; font-size: 16px; color: var(--ns-text); }
.ns-donate-handle { font-weight: 800; font-size: 14px; color: var(--ns-teal); margin: 4px 0 10px; }
.ns-donate-inst { font-size: 13px; color: var(--ns-muted); line-height: 1.5; }
.ns-donate-inst strong { color: var(--ns-text); }

/* Supplies */
.ns-supply-list { display: flex; flex-direction: column; gap: 0; }
.ns-supply-item { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid #e8f4f8; gap: 12px; }
.ns-supply-item:last-child { border-bottom: none; }
.ns-supply-info { flex: 1; }
.ns-supply-name { font-weight: 700; font-size: 14px; color: var(--ns-text); }
.ns-supply-note { font-size: 12px; color: var(--ns-muted); margin-top: 2px; }
.ns-supply-link { display: inline-block; padding: 7px 14px; background: var(--ns-yellow); color: var(--ns-text); font-weight: 800; font-size: 12px; border-radius: 20px; text-decoration: none; white-space: nowrap; transition: background .15s; flex-shrink: 0; }
.ns-supply-link:hover { background: var(--ns-yellow-d); }

/* Portal */
.ns-portal-booking-row{display:flex;justify-content:space-between;align-items:center;padding:11px 0;border-bottom:1px solid #e8f4f8;gap:12px}
.ns-portal-booking-row:last-child{border-bottom:none}

/* Reviews */
.ns-reviews-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:14px}
.ns-review-card{background:linear-gradient(135deg,var(--ns-blue-l),#fff);border:2px solid var(--ns-blue);border-radius:12px;padding:16px}
.ns-review-stars{font-size:18px;margin-bottom:6px}
.ns-review-headline{font-weight:800;font-size:14px;margin-bottom:6px}
.ns-review-body{font-size:13px;color:var(--ns-muted);line-height:1.6;margin-bottom:8px}
.ns-review-author{font-size:12px;color:var(--ns-teal);font-weight:700}
.ns-star{cursor:pointer;transition:opacity .1s;user-select:none}

/* ── Loading skeleton shimmer ──────────────────────────────────────────────── */
.ns-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.6) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: ns-shimmer 1.4s ease-in-out infinite;
}
@keyframes ns-shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

/* ── Tablet responsive (601px – 900px) ───────────────────────────────────── */
@media (min-width: 601px) and (max-width: 900px) {
  .ns-hero { padding: 40px 24px 32px; }
  .ns-nav { padding: 0 16px; }
  .ns-card { padding: 20px; }
  .ns-steps { gap: 6px; }
  .ns-form-row { grid-template-columns: 1fr 1fr; }
}

/* ── Large screen (901px+) ──────────────────────────────────────────────── */
@media (min-width: 901px) {
  #ns-root { width: 100%; }
  .ns-hero { padding: 48px 32px 40px; }
  .ns-card { padding: 24px; }
}

/* ── Hero flush ──────────────────────────────────────────────────────────── */
.ns-content > .ns-card:first-child,
.ns-content > div:first-child:not(.ns-hero) {
  margin-top: 24px;
}
.ns-hero + .ns-card,
.ns-hero ~ * { }
/* Ensure first content after hero has top margin */
.ns-page-home-content { margin-top: 24px; }

/* ── Content inner padding ───────────────────────────────────────────────── */
.ns-inner { max-width: 1100px; margin: 0 auto; padding: 28px 24px; }
.ns-hero .ns-inner { padding: 0; max-width: 700px; }
