/* CDAC360 shared components for the Next.js pages (generated from style.css by keeping only component
   classes – no element selectors – so it doesn't fight Tailwind). Used by the runtime's checkout, toasts and
   dialogs. Keep in sync with style.css when those components change. */
:root {
  --ink: #0b1033;
  --ink-2: #2a3160;
  --muted: #5b6385;
  --line: #e7e9f5;
  --bg: #ffffff;
  --bg-soft: #f7f8fe;
  --violet: #6a11f5;
  --indigo: #4338ca;
  --blue: #2563eb;
  --sky: #0ea5e9;
  --cyan: #12c2e9;
  --pink: #ec4899;
  --orange: #f59e0b;
  --green: #16a34a;
  --red: #e11d48;
  --green-text: #15803d; 
  --red-text: #be123c;   
  --input-border: #878ea8; 
  --focus: #6a11f5;
  --grad: linear-gradient(90deg, #6a11f5 0%, #3d5afe 52%, #12c2e9 100%);
  --grad-soft: linear-gradient(135deg, rgba(106, 17, 245, .08), rgba(18, 194, 233, .08));
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(44, 52, 140, .08);
  --shadow-lg: 0 24px 60px rgba(44, 52, 140, .14);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-logo: 'Righteous', 'Plus Jakarta Sans', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --container: 1240px;
  --container-wide: 1480px;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; cursor: pointer;
  padding: 14px 26px; border-radius: 12px; font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none !important; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px rgba(77, 52, 246, .28); }
.btn-primary:hover { box-shadow: 0 14px 30px rgba(77, 52, 246, .38); transform: translateY(-1px); }
.btn-outline { background: #fff; color: var(--indigo); border: 1.5px solid #8b6cf6; }
.btn-outline:hover { background: #f6f3ff; }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-soft { background: #f1efff; color: var(--indigo); }
.btn-soft:hover { background: #e7e2ff; }
.btn-danger { background: #fff1f3; color: var(--red-text); border: 1px solid #fecdd6; }
.btn-success { background: #16a34a; color: #fff; }
.btn-sm { padding: 8px 14px; font-size: .875rem; border-radius: 10px; }
.btn-lg { padding: 17px 34px; font-size: 1.1rem; border-radius: 14px; }
.btn-block { width: 100%; }
.btn svg { width: 20px; height: 20px; flex: none; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #eef2ff; color: var(--indigo); letter-spacing: .02em; }
.tag.free { background: #e9fbef; color: var(--green-text); }
.tag.lock { background: #fff4e5; color: #b45309; }
.tag.red { background: #fff1f3; color: var(--red-text); }
.tag.gray { background: #f1f2f7; color: var(--muted); }
.tag.green { background: #e9fbef; color: var(--green-text); }
.tag.blue { background: #e8f1ff; color: var(--blue); }
.form { display: grid; gap: 16px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--ink-2); }
.field .hint { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.input, select.input, textarea.input {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--input-border); border-radius: 12px; background: #fff; outline: none; transition: border-color .15s, box-shadow .15s;
}
.input:hover { border-color: #6b7290; }
.input:focus, .input:focus-visible { border-color: var(--focus); box-shadow: 0 0 0 3px rgba(106, 17, 245, .45); outline: none; }
textarea.input { min-height: 110px; resize: vertical; }
.input[readonly] { background: var(--bg-soft); color: var(--muted); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) {
  .row { grid-template-columns: 1fr; }
}
.checkbox { display: flex; align-items: center; gap: 8px; font-size: .92rem; cursor: pointer; }
.alert { padding: 14px 16px; border-radius: 12px; font-size: .94rem; border: 1px solid; }
.alert.error { background: #fff1f3; border-color: #fecdd6; color: #9f1239; }
.alert.success { background: #effcf3; border-color: #bbf0cd; color: #166534; }
.alert.info { background: #f2f0ff; border-color: #ddd5ff; color: #4c1d95; }
.alert.warn { background: #fffaeb; border-color: #fde68a; color: #92400e; }
.toast-stack { position: fixed; right: 20px; bottom: 20px; z-index: 1000; display: grid; gap: 10px; max-width: min(420px, calc(100vw - 40px)); }
.toast { background: var(--ink); color: #fff; padding: 14px 18px; border-radius: 12px; box-shadow: var(--shadow-lg); font-size: .94rem; animation: slideUp .25s ease; }
.toast .toast-action { color: #fff; font-weight: 700; text-decoration: underline; margin-left: 4px; }
body.has-wa .toast-stack { bottom: 92px; }
.toast.error { background: #be123c; }
.toast.success { background: #15803d; }
@keyframes slideUp { from { transform: translateY(12px); opacity: 0; } }
.modal-backdrop { position: fixed; inset: 0; background: rgba(11, 16, 51, .55); z-index: 900; display: grid; place-items: center; padding: 20px; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } }
.modal { background: #fff; border-radius: 20px; padding: 30px; max-width: 520px; width: 100%; box-shadow: var(--shadow-lg); max-height: calc(100vh - 40px); overflow: auto; }
.modal.wide { max-width: 860px; }
.modal h3 { font-size: 1.4rem; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; flex-wrap: wrap; }
.modal:focus { outline: none; }
.checkout .co-plan { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 14px; background: var(--bg-soft); border: 1px solid var(--line); }
.checkout .co-plan .cat { font-size: .75rem; font-weight: 700; color: var(--violet); text-transform: uppercase; letter-spacing: .08em; }
.checkout .co-plan b { font-size: 1.1rem; }
.co-lines { margin: 16px 0 0; display: grid; gap: 8px; }
.co-lines > div { display: flex; justify-content: space-between; gap: 12px; }
.co-lines > div[hidden] { display: none; }
.co-lines dt { color: var(--ink-2); }
.co-lines dd { margin: 0; font-weight: 600; }
.co-lines .co-discount dd { color: var(--green-text); }
.co-lines .co-total { border-top: 1px solid var(--line); padding-top: 10px; font-size: 1.1rem; }
.co-lines .co-total b { font-size: 1.35rem; }
.co-coupon { margin-top: 18px; }
.co-coupon label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--ink-2); }
.co-coupon-row { display: flex; gap: 8px; }
.co-legal { margin: 14px 0 0; line-height: 1.5; } .co-legal a { color: var(--brand, #2563eb); text-decoration: underline; }
.co-coupon-row .input { padding: 10px 13px; text-transform: uppercase; }
.co-coupon-row .input::placeholder { text-transform: none; }
.co-msg { margin-top: 6px; min-height: 1.2em; }
.co-msg.ok { color: var(--green-text); }
.co-msg.err { color: var(--red-text); }
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 700; width: 56px; height: 56px; border-radius: 50%; background: #128c7e; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(18, 140, 126, .35); text-decoration: none !important; transition: transform .15s ease, box-shadow .15s ease; }
.wa-float:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(18, 140, 126, .45); }
.wa-float svg { width: 30px; height: 30px; }
@media (max-width: 560px) {
  .wa-float { right: 14px; bottom: 14px; width: 52px; height: 52px; }
  body.has-wa .toast-stack { bottom: 80px; }
}
.empty { text-align: center; padding: 40px 20px; color: var(--muted); border: 1.5px dashed var(--line); border-radius: 16px; background: #fff; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #e4e1ff; border-top-color: var(--violet); animation: spin .8s linear infinite; margin: 40px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* skip link + announcement bar */
.skip-link { position: absolute; left: 12px; top: -100px; z-index: 2000; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip-link:focus, .skip-link:focus-visible { top: 12px; outline: 3px solid #fff; outline-offset: 0; box-shadow: 0 0 0 6px var(--focus); }
.announce-bar { background: linear-gradient(90deg, #6a11f5 0%, #4c3fe0 50%, #0e7490 100%); color: #fff; font-size: .9rem; position: relative; z-index: 51; }
.announce-inner { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 40px; padding-top: 6px; padding-bottom: 6px; }
.announce-bar p { margin: 0; text-align: center; font-weight: 500; }
.announce-bar a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.announce-close { flex: none; background: rgba(255, 255, 255, .16); border: 0; color: #fff; width: 28px; height: 28px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; line-height: 1; display: grid; place-items: center; }
.announce-close:hover { background: rgba(255, 255, 255, .28); }
