﻿/* ============================================================================
   PAYATE — Card Generator (apply-credit-card)  · redesign 2026-09-28
   A fresh look, distinct from the other tools: a gradient hero, floating cards.
   Self-contained; the shared site header/footer are not styled here. Generator
   field names/ids are untouched.
   ============================================================================ */

#acc {
  --brand: #1d64d8;      /* indigo accent, to set this page apart */
  --brand-2: #2a72e6;
  --brand-d: #1a59c1;
  --ink: #1b2340;
  --ink-2: #4a5270;
  --muted: #8089a6;
  --field-line: #dfe3f0;
  --card: #fff;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--ink);
}
#acc *, #acc *::before, #acc *::after { box-sizing: border-box; }

body {
  background:
    radial-gradient(900px 420px at 50% -6%, #eef4fe 0%, rgba(238,240,255,0) 60%),
    #f5f6fb;
  color: var(--ink);
}

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

/* ---- Intro banner (same white style & colours as the other tool pages) ---- */
#acc .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);
}
#acc .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);
}
#acc .tool-banner-icon svg { width: 24px; height: 24px; display: block; }
#acc .tool-banner-text { line-height: 1; }
#acc .tool-banner-title { margin: 0 0 4px; font-weight: 700; font-size: 20px; line-height: 1.2; color: #4d629eba; }
#acc .tool-banner-desc { margin: 0; font-weight: 600; font-size: 16px; line-height: 1.35; color: #4d629ee6; }

/* ---- Two-column layout ---- */
#acc .grid { display: flex; flex-wrap: wrap; gap: 18px; margin: 18px 0 6px; }
#acc .panel {
  flex: 1 1 0;
  min-width: 0;
  background: var(--card);
  border: 1px solid #e6ecf5;
  border-radius: 16px;
  padding: 22px 20px;
  box-shadow: 0 1px 2px rgba(20,25,60,.05), 0 22px 45px -32px rgba(20,25,60,.5);
  display: flex;
  flex-direction: column;
}

#acc .panel-head { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; }
#acc .panel-head .ico {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: #eef4fe;
  color: var(--brand);
}
#acc .panel-head .ico svg { width: 17px; height: 17px; }
#acc .panel-head h2 { margin: 0; font-size: 16.5px; font-weight: 600; color: var(--ink); }
#acc .panel-head p { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }

/* ---- Fields ---- */
#acc .field { margin-bottom: 14px; }
#acc label.lbl { display: block; margin-bottom: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
#acc .control {
  display: block; width: 100%; height: 40px;
  padding: 0 12px;
  border: 1px solid var(--field-line);
  border-radius: 10px;
  background: #fff;
  font-family: inherit; font-size: 14px; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
#acc select.control { padding-right: 28px; }
#acc .control:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(29,100,216,.15); }
#acc .control::placeholder { color: #a2a9c4; }

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

#acc .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

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

/* ---- Output ---- */
#acc .out-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
#acc .out-meta .lbl { margin: 0; }
#acc .count-chip {
  margin-left: auto; padding: 2px 10px; border-radius: 999px;
  background: #eef4fe; color: var(--brand-d); font-size: 12px; font-weight: 600;
}
#acc textarea.output {
  width: 100%; min-height: 320px; flex: 1;
  padding: 12px;
  border: 1px solid #e6ecf5; border-radius: 12px;
  background: #f7f9fc; color: #2a3352;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px; line-height: 1.75; resize: vertical;
}
#acc .out-toolbar { display: flex; gap: 10px; margin-top: 12px; }
#acc .out-toolbar .btn { flex: 1; height: 42px; font-size: 14px; margin-top: 0; }

/* ---- Side ad rails ---- */
.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; }
}

@media (pointer: coarse) { #acc .control { font-size: 16px; } }

/* ---- Mobile ---- */
@media (max-width: 767px) {
  #acc .grid { flex-direction: column; }
  #acc .hero { padding: 20px 18px; border-radius: 16px; gap: 14px; }
  #acc .hero-title { font-size: 20px; }
  #acc .hero-sub { font-size: 14px; }
  #acc .control { font-size: 16px; }
}

#acc .acc-crumb{font-size:12px;color:#5a6b83;margin:4px 2px 14px}
#acc .acc-crumb a{color:#1550b4;text-decoration:none}
#acc .acc-crumb a:hover{text-decoration:underline}
#acc .acc-crumb span{margin:0 4px;color:#9aa8bd}
