/* ============================================================================
   PAYATE — Visa Card Generator  (redesign 2026-09-28)
   A clean, self-contained stylesheet matching the other refreshed tool pages.
   The shared site header & footer are NOT styled here. Field names/ids used by
   the generator script are untouched; only the presentation changed.
   ============================================================================ */

#vcc {
  --brand: #1d64d8;
  --brand-d: #1a59c1;
  --ink: #14233c;
  --ink-2: #4a5b73;
  --muted: #7c8aa4;
  --line: #e3e9f2;
  --field-line: #d5dfec;
  --card: #fff;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--ink);
}

/* soft page backdrop so the white cards lift off the page */
body {
  background:
    radial-gradient(1100px 480px at 50% -8%, #eaf1fd 0%, rgba(234,241,253,0) 60%),
    #f4f6fb;
  color: var(--ink);
}

#vcc *, #vcc *::before, #vcc *::after { box-sizing: border-box; }

#vcc .container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ---- Intro banner (same as the other tool pages) ---- */
#vcc .tool-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  margin: 28px 0 6px;
  background: var(--card);
  border-radius: 8px;
  box-shadow: 0 .125rem .25rem rgba(0,0,0,.075);
}
#vcc .tool-banner-icon {
  width: 48px; height: 48px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #2a72e6 0%, #1a59c1 100%);
  color: #fff;
  box-shadow: 0 6px 14px -6px rgba(29,100,216,.7);
}
#vcc .tool-banner-icon svg { width: 24px; height: 24px; display: block; }
#vcc .tool-banner-text { line-height: 1; }
#vcc .tool-banner-title {
  margin: 0 0 4px;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
  color: #4d629eba;
}
#vcc .tool-banner-desc {
  margin: 0;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.35;
  color: #4d629ee6;
}

/* ---- Two-column tool layout ---- */
#vcc .row { display: flex; flex-wrap: wrap; gap: 18px; margin: 18px 0 6px; }
#vcc .col {
  flex: 1 1 0;
  min-width: 0;
  background: var(--card);
  border: 1px solid #e6ecf5;
  border-radius: 14px;
  padding: 20px 18px;
  box-shadow: 0 1px 2px rgba(15,27,45,.05), 0 18px 40px -30px rgba(15,27,45,.5);
  display: flex;
  flex-direction: column;
}

/* card section header */
#vcc .card-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #eef2f8;
}
#vcc .card-head .num {
  flex: 0 0 auto;
  width: 28px; height: 28px;
  border-radius: 8px;
  display: grid; place-items: center;
  background: var(--brand);
  color: #fff;
  font-size: 14px; font-weight: 600;
}
#vcc .card-head h2 { margin: 2px 0; font-size: 16px; font-weight: 600; color: var(--ink); }
#vcc .card-head p { margin: 0; font-size: 12.5px; line-height: 1.4; color: var(--muted); }

/* ---- Form controls ---- */
#vcc .field { margin-bottom: 14px; }
#vcc .field:last-child { margin-bottom: 0; }
#vcc label.lbl {
  display: block;
  margin-bottom: 6px;
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .01em;
}
#vcc .control {
  display: block;
  width: 100%;
  height: 38px;
  padding: 0 11px;
  border: 1px solid var(--field-line);
  border-radius: 8px;
  background: #fff;
  font-family: inherit;
  font-size: 14px;
  color: #17243a;
  transition: border-color .15s, box-shadow .15s;
}
#vcc select.control { padding-right: 28px; }
#vcc .control:focus {
  outline: 0;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(29,100,216,.15);
}
#vcc .control::placeholder { color: #9aa8bd; }

/* Include: pill checkboxes on one row */
#vcc .include-row { display: flex; flex-wrap: wrap; gap: 8px; }
#vcc .chk {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid var(--field-line);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  user-select: none;
  transition: border-color .15s, background .15s, color .15s;
}
#vcc .chk input { width: 15px; height: 15px; margin: 0; accent-color: var(--brand); cursor: pointer; }
#vcc .chk:has(input:checked) { border-color: var(--brand); background: #eef4fe; color: var(--brand-d); }

/* a two-up grid for Month / Year and CCV2 / Quantity */
#vcc .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---- Buttons ---- */
#vcc .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, box-shadow .15s, transform .15s;
}
#vcc .btn svg { height: 1em; width: auto; }
#vcc .btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #2a72e6 0%, var(--brand) 100%);
  box-shadow: 0 8px 18px -8px rgba(29,100,216,.6);
  margin-top: 4px;
}
#vcc .btn-primary:hover { background: linear-gradient(180deg, #2569db 0%, var(--brand-d) 100%); transform: translateY(-1px); }
#vcc .btn-primary:active { transform: translateY(0); }
#vcc .btn-ghost {
  background: #fff;
  color: var(--brand);
  border: 1.5px solid #cfe0fb;
}
#vcc .btn-ghost:hover { background: #f2f7ff; color: var(--brand-d); border-color: var(--brand); }

/* ---- Output ---- */
#vcc .out-toolbar { display: flex; gap: 10px; margin-top: 12px; }
#vcc .out-toolbar .btn { width: auto; flex: 1; height: 40px; font-size: 14px; }
#vcc textarea.output {
  width: 100%;
  min-height: 300px;
  flex: 1;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7f9fc;
  color: #24344c;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.75;
  resize: vertical;
}

/* result count chip */
#vcc .out-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
#vcc .out-meta .lbl { margin: 0; }
#vcc .count-chip {
  margin-left: auto;
  padding: 2px 10px;
  border-radius: 999px;
  background: #eef4fe;
  color: var(--brand-d);
  font-size: 12px;
  font-weight: 600;
}

/* ---- Feature chips under the banner ---- */
#vcc .feats {
  list-style: none;
  display: flex; flex-wrap: wrap;
  gap: 8px 18px;
  margin: 12px 2px 0;
  padding: 0;
}
#vcc .feats li {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 500; color: var(--ink-2);
}
#vcc .feats .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(29,100,216,.14); }

/* ---- Side ad rails (only on very wide screens) ---- */
.add_right, .add_left { display: none; }
@media (min-width: 1750px) {
  .add_right { display:block; position:fixed; bottom:20%; right:20px; z-index:50; overflow:hidden; }
  .add_left  { display:block; position:fixed; bottom:20%; left:20px;  z-index:50; overflow:hidden; }
}

/* iOS: 16px fields so Safari doesn't zoom on focus */
@media (pointer: coarse) {
  #vcc .control { font-size: 16px; }
}

/* ---- Mobile ---- */
@media (max-width: 767px) {
  #vcc .row { flex-direction: column; }
  #vcc .tool-banner { margin: 18px 0 4px; padding: 14px; gap: 12px; }
  #vcc .tool-banner-title { font-size: 18px; }
  #vcc .tool-banner-desc { font-size: 14.5px; }
  #vcc .control { font-size: 16px; }
}
