/* ============================================================
   Skelle Client — demo checkout modal
   Used by both the marketing site and the dashboard's locked
   state. Purely presentational; the flow lives in
   assets/js/core/checkout.js
   ============================================================ */

.co-overlay{
  position:fixed; inset:0; z-index:200;
  display:flex; align-items:center; justify-content:center; padding:20px;
  background:rgba(6,9,14,0.78); backdrop-filter:blur(8px);
  opacity:0; pointer-events:none; transition:opacity .22s ease;
}
.co-overlay.open{ opacity:1; pointer-events:auto; }

.co-modal{
  width:100%; max-width:420px;
  background:var(--panel); border:1px solid var(--line); border-radius:var(--r-xl);
  box-shadow:0 40px 90px -40px rgba(0,0,0,0.95);
  transform:translateY(12px) scale(.985); transition:transform .22s ease;
  overflow:hidden;
}
.co-overlay.open .co-modal{ transform:none; }

.co-head{
  display:flex; align-items:center; gap:10px;
  padding:16px 20px; border-bottom:1px solid var(--line); background:var(--panel-2);
}
.co-head .co-title{ font-family:var(--font-display); font-weight:700; font-size:14.5px; }
.co-demo-chip{
  margin-left:auto; font-family:var(--font-mono); font-size:9.5px; letter-spacing:0.07em;
  color:var(--amber); background:var(--amber-dim); border:1px solid rgba(255,182,72,0.3);
  padding:3px 8px; border-radius:20px; text-transform:uppercase;
}
.co-body{ padding:24px 20px; }

/* --- plan summary --- */
.co-plan{
  display:flex; align-items:baseline; justify-content:space-between; gap:12px;
  padding-bottom:16px; margin-bottom:16px; border-bottom:1px solid var(--line-soft);
}
.co-plan-name{ font-family:var(--font-display); font-weight:800; font-size:20px; letter-spacing:-0.01em; }
.co-plan-price{ font-family:var(--font-display); font-weight:800; font-size:24px; letter-spacing:-0.02em; }
.co-plan-price small{ font-family:var(--font-body); font-size:12.5px; font-weight:500; color:var(--ink-dim); }
.co-list{ list-style:none; display:flex; flex-direction:column; gap:9px; margin-bottom:22px; }
.co-list li{ display:flex; gap:9px; align-items:flex-start; font-size:13.5px; color:var(--ink-mid); }
.co-list svg{ width:15px; height:15px; flex:none; margin-top:3px; color:var(--success); }

/* --- stages --- */
.co-stage{ display:none; }
.co-stage.active{ display:block; }

.co-spinner{
  width:44px; height:44px; margin:0 auto 20px;
  border:3px solid var(--line); border-top-color:var(--cyan); border-radius:50%;
  animation:co-spin .8s linear infinite;
}
@keyframes co-spin{ to{ transform:rotate(360deg); } }

.co-status{ text-align:center; }
.co-status h4{ font-family:var(--font-display); font-size:16px; font-weight:700; margin-bottom:6px; }
.co-status p{ font-size:13.5px; color:var(--ink-dim); }

.co-steps{ list-style:none; margin:22px auto 0; max-width:260px; display:flex; flex-direction:column; gap:11px; }
.co-steps li{
  display:flex; align-items:center; gap:10px;
  font-family:var(--font-mono); font-size:12px; color:#55607a; transition:color .25s;
}
.co-steps li .dot{
  width:7px; height:7px; border-radius:50%; background:#333c4d; flex:none; transition:background .25s, box-shadow .25s;
}
.co-steps li.done{ color:var(--ink-mid); }
.co-steps li.done .dot{ background:var(--success); box-shadow:0 0 8px rgba(52,211,153,.7); }
.co-steps li.active{ color:var(--cyan); }
.co-steps li.active .dot{ background:var(--cyan); box-shadow:0 0 8px rgba(51,214,255,.8); }

/* --- success --- */
.co-tick{
  width:62px; height:62px; margin:0 auto 18px; border-radius:50%;
  background:var(--success-dim); border:1.5px solid var(--success);
  display:flex; align-items:center; justify-content:center;
  animation:co-pop .32s cubic-bezier(.2,1.3,.4,1);
}
.co-tick svg{ width:28px; height:28px; color:var(--success); }
@keyframes co-pop{ from{ transform:scale(.5); opacity:0; } to{ transform:scale(1); opacity:1; } }

.co-note{
  margin-top:18px; font-family:var(--font-mono); font-size:11px; line-height:1.6;
  color:var(--ink-dim); text-align:center;
}
.co-actions{ display:flex; gap:10px; margin-top:22px; }
.co-actions .btn{ flex:1; }

.co-close{
  background:none; border:none; cursor:pointer; color:var(--ink-dim);
  padding:6px; border-radius:var(--r-sm); display:flex; transition:color .15s, background .15s;
}
.co-close:hover{ color:var(--ink); background:var(--panel); }
.co-close svg{ width:15px; height:15px; }

@media(max-width:480px){
  .co-body{ padding:20px 16px; }
  .co-actions{ flex-direction:column; }
}

/* ============================================================
   Auth modal (shares the .co-* shell above)
   ============================================================ */

.auth-blurb{
  font-size:13.5px; color:var(--ink-mid); margin-bottom:18px;
  padding-bottom:16px; border-bottom:1px solid var(--line-soft);
}
.auth-form{ display:flex; flex-direction:column; gap:14px; }
.auth-field{ display:flex; flex-direction:column; gap:6px; }
.auth-field label{
  font-family:var(--font-mono); font-size:11px; letter-spacing:0.06em;
  text-transform:uppercase; color:var(--ink-dim);
}
.auth-field input{
  background:var(--bg-soft); border:1px solid var(--line); border-radius:var(--r-sm);
  padding:11px 13px; color:var(--ink); font-size:14px; font-family:var(--font-body);
  transition:border-color .15s, background .15s;
}
.auth-field input:focus{ outline:none; border-color:var(--cyan); background:var(--panel); }
.auth-field input::placeholder{ color:#5b6577; }
.auth-field input.bad{ border-color:var(--danger); }

.auth-err{ font-size:12px; color:var(--danger); }
.auth-err-form{ margin-top:-4px; }

.auth-switch{
  margin-top:18px; text-align:center; font-size:13px; color:var(--ink-dim);
}
.auth-switch button{
  background:none; border:none; cursor:pointer; padding:0 0 0 4px;
  color:var(--cyan); font-size:13px; font-weight:600; font-family:inherit;
  text-decoration:underline; text-underline-offset:2px;
}
.auth-switch button:hover{ opacity:.8; }

/* nav account chip (marketing header) */
.nav-user{
  display:flex; align-items:center; gap:8px;
  font-size:13.5px; font-weight:600; color:var(--ink-mid);
  background:none; border:none; cursor:pointer; font-family:inherit;
  padding:6px 8px; border-radius:var(--r-sm); transition:color .15s, background .15s;
}
.nav-user:hover{ color:var(--ink); background:rgba(255,255,255,0.04); }
.nav-user .av{
  width:24px; height:24px; border-radius:7px; flex:none;
  background:linear-gradient(135deg, var(--cyan), var(--violet));
  display:flex; align-items:center; justify-content:center;
  font-family:var(--font-display); font-weight:800; font-size:10.5px; color:#031018;
}

/* checkout.css loads after index.html's inline <style>, so .nav-user would
   otherwise beat .nav-mobile-hide on equal specificity and crowd the header. */
@media(max-width:860px){
  .nav-user.nav-mobile-hide{ display:none; }
}
