/* =========================
   FastPayIn Modern UI - Light Theme
   ========================= */

:root {
  --bg: #f8fafc;
  --bg2: #ffffff;
  --panel: rgba(255, 255, 255, 0.95);
  --panel2: rgba(255, 255, 255, 0.98);
  --border: rgba(59, 130, 246, 0.12);

  --text: #1e293b;
  --muted: #64748b;

  --primary: #3b82f6;
  /* vibrant blue */
  --primary2: #2563eb;
  --good: #10b981;
  --warn: #f59e0b;

  --shadow: 0 18px 45px rgba(59, 130, 246, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Helvetica Neue", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 800px at 10% 10%, rgba(147, 197, 253, 0.35), transparent 55%),
    radial-gradient(900px 700px at 90% 20%, rgba(196, 181, 253, 0.28), transparent 55%),
    radial-gradient(900px 700px at 40% 90%, rgba(167, 243, 208, 0.25), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
  overflow-x: hidden;
}

/* subtle animated grain */
body::before {
  content: "";
  position: fixed;
  inset: -40%;
  background:
    repeating-linear-gradient(135deg, rgba(59, 130, 246, 0.03) 0 1px, transparent 1px 26px);
  opacity: .12;
  filter: blur(.2px);
  animation: drift 42s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes drift {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(260px, 180px, 0);
  }
}

/* layout wrapper */
.app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

/* topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(59, 130, 246, 0.15);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.08);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.brand-badge {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  box-shadow: 0 10px 24px rgba(59, 130, 246, 0.28);
  display: grid;
  place-items: center;
  font-weight: 900;
}

.brand-title {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-title strong {
  font-size: 14px;
  letter-spacing: .4px;
}

.brand-title span {
  font-size: 12px;
  color: var(--muted);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(59, 130, 246, 0.20);
  background: rgba(255, 255, 255, 0.70);
  width: 320px;
  max-width: 52vw;
}

.search input {
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  width: 100%;
  font-size: 13px;
}

.search input::placeholder {
  color: var(--muted);
}

.search .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.9);
  box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.18);
}

.icon-btn {
  border: 1px solid rgba(59, 130, 246, 0.20);
  background: rgba(255, 255, 255, 0.70);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  transition: .18s ease;
}

.icon-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(59, 130, 246, 0.35);
}

.icon-btn:active {
  transform: translateY(0);
}

/* main layout */
.shell {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 18px;
  padding: 18px;
}

/* sidebar */
.sidebar {
  position: sticky;
  top: 74px;
  height: calc(100vh - 92px);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(59, 130, 246, 0.15);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.sidebar-inner {
  padding: 14px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.nav-title {
  font-size: 12px;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 6px 8px 10px;
}

.nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
  border: 1px solid transparent;
  transition: .18s ease;
  font-size: 14px;
}

.nav a:hover {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.15);
}

.nav a.active {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(147, 197, 253, 0.12));
  border-color: rgba(59, 130, 246, 0.40);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.18);
  color: var(--primary);
  font-weight: 600;
}

.nav .pill {
  margin-left: auto;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.10);
  border: 1px solid rgba(59, 130, 246, 0.20);
  color: var(--primary);
}

/* content */
.content {
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(59, 130, 246, 0.15);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.content-inner {
  padding: 22px;
}

.hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.hero h1 {
  margin: 0;
  font-size: 22px;
  letter-spacing: .2px;
}

.hero p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  max-width: 70ch;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

/* cards */
.card {
  grid-column: span 12;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.70);
  border: 1px solid rgba(59, 130, 246, 0.15);
  padding: 16px;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.06);
}

.card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.card-title h3 {
  margin: 0;
  font-size: 15px;
  letter-spacing: .2px;
}

.badge {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(59, 130, 246, 0.20);
  background: rgba(59, 130, 246, 0.10);
  color: var(--primary);
}

/* form */
.form-row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
  margin-top:12px;
}

.field {
  grid-column: span 12;
}

@media(min-width: 900px) {
  .field.half {
    grid-column: span 6;
  }

  .field.third {
    grid-column: span 4;
  }
}

label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(59, 130, 246, 0.20);
  background: rgba(255, 255, 255, 0.90);
  color: var(--text);
  outline: none;
  transition: .18s ease;
  font-size: 14px;
}

input::placeholder {
  color: var(--muted);
}

input:focus {
  border-color: rgba(59, 130, 246, 0.55);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.20);
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

button {
  border: 0;
  cursor: pointer;
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  box-shadow: 0 16px 34px rgba(59, 130, 246, 0.25);
  transition: .18s ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 44px rgba(59, 130, 246, 0.30);
}

button:active {
  transform: translateY(0);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.70);
  border: 1px solid rgba(59, 130, 246, 0.25);
  box-shadow: none;
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(59, 130, 246, 0.40);
  box-shadow: none;
}

.result {
  margin-top: 14px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(59, 130, 246, 0.20);
  background: rgba(59, 130, 246, 0.08);
  color: var(--text);
  line-height: 1.45;
}

.result strong {
  color: var(--primary);
  font-weight: 700;
}

.result.good {
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.12);
}

.result.warn {
  border-color: rgba(245, 158, 11, 0.30);
  background: rgba(245, 158, 11, 0.08);
}

/* lists */
ul.tools {
  margin: 0;
  padding-left: 18px;
  color: var(--text);
}

ul.tools li {
  margin: 8px 0;
}

/* ========================= 
   RESPONSIVE DESIGN
   ========================= */

/* Tablet and below */
@media(max-width: 920px) {
  .shell {
    grid-template-columns: 1fr;
    padding: 12px;
    gap: 12px;
  }

  .sidebar {
    position: relative;
    top: 0;
    height: auto;
    max-height: 400px;
    overflow-y: auto;
  }

  .search {
    display: none;
  }

  .content-inner {
    padding: 18px;
  }

  .hero h1 {
    font-size: 20px;
  }

  .hero p {
    font-size: 13px;
  }
}

/* Mobile devices */
@media(max-width: 640px) {

  /* Topbar adjustments */
  .topbar-inner {
    padding: 12px;
  }

  .brand-badge {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .brand-title strong {
    font-size: 13px;
  }

  .brand-title span {
    font-size: 11px;
  }

  /* Shell and layout */
  .shell {
    padding: 10px;
    gap: 10px;
  }

  /* Sidebar mobile optimization */
  .sidebar {
    max-height: 350px;
  }

  .sidebar-inner {
    padding: 12px;
  }

  .nav a {
    padding: 10px;
    font-size: 13px;
  }

  .nav .pill {
    font-size: 11px;
    padding: 3px 8px;
  }

  /* Content area */
  .content-inner {
    padding: 14px;
  }

  .hero {
    flex-direction: column;
    margin-bottom: 12px;
  }

  .hero h1 {
    font-size: 18px;
  }

  .hero p {
    font-size: 13px;
    margin-top: 4px;
  }

  /* Cards */
  .card {
    padding: 14px;
    border-radius: 14px;
  }

  .card-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .card-title h3 {
    font-size: 14px;
  }

  .badge {
    font-size: 11px;
    padding: 3px 8px;
  }

  /* Form elements - stack on mobile */
  .form-row {
    gap: 10px;
  }

  .field.half,
  .field.third {
    grid-column: span 12 !important;
  }

  label {
    font-size: 11px;
    margin-bottom: 6px;
  }

  input {
    padding: 11px 12px;
    font-size: 13px;
  }

  /* Buttons - make touch-friendly */
  button {
    padding: 11px 16px;
    font-size: 13px;
    width: 100%;
  }

  .actions {
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
  }

  .icon-btn {
    padding: 9px 12px;
    font-size: 13px;
  }

  /* Results */
  .result {
    padding: 12px;
    font-size: 13px;
    margin-top: 12px;
  }

  /* Lists */
  ul.tools {
    padding-left: 16px;
    font-size: 13px;
  }

  ul.tools li {
    margin: 6px 0;
  }
}

/* Small mobile devices */
@media(max-width: 380px) {
  .topbar-inner {
    padding: 10px;
    gap: 8px;
  }

  .brand-badge {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }

  .brand-title strong {
    font-size: 12px;
  }

  .brand-title span {
    display: none;
    /* Hide subtitle on very small screens */
  }

  .shell {
    padding: 8px;
  }

  .content-inner {
    padding: 12px;
  }

  .hero h1 {
    font-size: 16px;
  }

  .hero p {
    font-size: 12px;
  }

  .card {
    padding: 12px;
  }

  /* FAQ */
.faq {
  margin-top: 12px;
}

.faq-item {
  border-bottom: 1px solid #e5e7eb;
}

.faq-question {
  width: 100%;
  background: #3b82f6;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 14px 18px;
  margin: 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.faq-question:hover {
  background: #2563eb;
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.3s ease;
  color: #475569;
  font-size: 14px;
  line-height: 1.6;
  padding: 0 18px;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 12px 18px 18px;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}


  input {
    padding: 10px;
    font-size: 12px;
  }

  button {
    padding: 10px 14px;
    font-size: 12px;
  }
}
