@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --primary: #4f46e5;
  --primary-600: #4338ca;
  --primary-700: #3730a3;
  --accent: #06b6d4;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e6e8ee;
  --bg: #f4f6fb;
  --card: #ffffff;
  --success: #16a34a;
  --success-bg: #e7f6ec;
  --danger: #dc2626;
  --danger-bg: #fdecea;
  --warn: #b45309;
  --warn-bg: #fef3c7;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(2, 6, 23, 0.07);
  --shadow-lg: 0 20px 50px rgba(2, 6, 23, 0.14);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", "Segoe UI", Tahoma, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
}
a:hover {
  color: var(--primary-700);
}

h1,
h2,
h3 {
  line-height: 1.25;
  letter-spacing: -0.02em;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.12s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.25);
}
.btn:hover {
  background: var(--primary-600);
  transform: translateY(-1px);
  color: #fff;
}
.btn:active {
  transform: translateY(0);
}
.btn-block {
  width: 100%;
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  box-shadow: none;
}
.btn-outline:hover {
  background: rgba(79, 70, 229, 0.07);
  color: var(--primary);
}

.btn-light {
  background: #fff;
  color: var(--primary-700);
  box-shadow: var(--shadow);
}
.btn-light:hover {
  background: #f8fafc;
  color: var(--primary-700);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.24);
  color: #fff;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
  box-shadow: none;
  border-radius: 8px;
}
.btn-success {
  background: var(--success);
  box-shadow: 0 6px 16px rgba(22, 163, 74, 0.22);
}
.btn-success:hover {
  background: #15803d;
}
.btn-danger {
  background: var(--danger);
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.22);
}
.btn-danger:hover {
  background: #b91c1c;
}

/* ============ Forms ============ */
.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  margin-bottom: 7px;
  font-weight: 600;
  font-size: 13.5px;
  color: #334155;
}
input,
select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}
input:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}
input::placeholder {
  color: #94a3b8;
}

/* ============ Alerts ============ */
.alert {
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
  font-size: 14px;
  border: 1px solid transparent;
}
.alert-error {
  background: var(--danger-bg);
  color: #991b1b;
  border-color: #f6c9c4;
}
.alert-success {
  background: var(--success-bg);
  color: #166534;
  border-color: #b7e1c1;
}
.alert-info {
  background: #e8f1ff;
  color: #1e40af;
  border-color: #c7dbff;
}

/* ============ Badges ============ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
}
.badge-pending {
  background: var(--warn-bg);
  color: var(--warn);
}
.badge-completed {
  background: var(--success-bg);
  color: #166534;
}
.badge-rejected {
  background: var(--danger-bg);
  color: #991b1b;
}

/* ============ Navbar (app) ============ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.navbar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.navbar .brand .logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 18px;
}
.navbar .nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 14px;
}
.navbar .nav-right a {
  color: #475569;
  font-weight: 500;
}
.navbar .nav-right a:hover {
  color: var(--primary);
}
.balance-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, #eef2ff, #f5f3ff);
  border: 1px solid #e0e7ff;
  color: var(--primary-700);
  padding: 7px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
}

/* ============ Page layout ============ */
.page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 24px;
}
.page-narrow {
  max-width: 560px;
}
.page-head {
  margin-bottom: 24px;
}
.page-head h2 {
  font-size: 26px;
}
.page-head p {
  color: var(--muted);
  margin-top: 4px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 860px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* ============ Cards ============ */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
  margin-bottom: 24px;
}
.card h2,
.card h3 {
  margin-bottom: 6px;
}
.card .sub {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 18px;
}
.card-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 19px;
  margin-bottom: 18px;
}

#result {
  margin-top: 16px;
}

/* ============ Tables ============ */
.table {
  width: 100%;
  border-collapse: collapse;
}
.table th,
.table td {
  padding: 12px 14px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
}
.table th {
  background: #f8fafc;
  font-weight: 600;
  color: #475569;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.table tr:last-child td {
  border-bottom: none;
}
.table tbody tr:hover {
  background: #fafbff;
}
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-sm);
}

/* ============ Auth pages ============ */
.auth-bg {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
  background:
    radial-gradient(
      900px 500px at 15% -10%,
      rgba(99, 102, 241, 0.18),
      transparent
    ),
    radial-gradient(
      700px 500px at 110% 20%,
      rgba(6, 182, 212, 0.16),
      transparent
    ),
    var(--bg);
}
.container {
  width: 100%;
  max-width: 440px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.header {
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  color: #fff;
  padding: 34px 28px 28px;
  text-align: center;
}
.header h1 {
  font-size: 30px;
  font-weight: 800;
}
.header p {
  margin-top: 8px;
  letter-spacing: 0.14em;
  font-size: 12px;
  opacity: 0.92;
  text-transform: uppercase;
}
.content {
  padding: 30px 28px;
}
.content .auth-foot {
  text-align: center;
  margin-top: 22px;
  font-size: 14px;
  color: var(--muted);
}

/* ============ Landing ============ */
.landing {
  color: var(--ink);
}
.landing .nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 6%;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
}
.landing .nav .brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  font-size: 22px;
  color: #fff;
}
.landing .nav .brand .logo {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: grid;
  place-items: center;
  font-size: 20px;
}
.landing .nav .links {
  display: flex;
  gap: 12px;
}

.hero {
  position: relative;
  padding: 150px 6% 110px;
  color: #fff;
  background:
    radial-gradient(
      800px 500px at 80% -10%,
      rgba(6, 182, 212, 0.35),
      transparent
    ),
    linear-gradient(135deg, #4f46e5 0%, #6d28d9 55%, #7c3aed 100%);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.08) 1px,
    transparent 1px
  );
  background-size: 26px 26px;
  opacity: 0.5;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: 760px;
}
.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 800;
}
.hero p {
  font-size: clamp(16px, 2vw, 20px);
  opacity: 0.92;
  margin-top: 18px;
  max-width: 620px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.section {
  padding: 80px 6%;
  max-width: 1140px;
  margin: 0 auto;
}
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}
.section-head h2 {
  font-size: clamp(26px, 3.5vw, 36px);
}
.section-head p {
  color: var(--muted);
  margin-top: 12px;
  font-size: 16px;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 820px) {
  .features {
    grid-template-columns: 1fr;
  }
}
.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease;
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.feature .ico {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 26px;
  background: linear-gradient(135deg, #eef2ff, #f5f3ff);
  margin-bottom: 18px;
}
.feature h3 {
  font-size: 19px;
  margin-bottom: 8px;
}
.feature p {
  color: var(--muted);
  font-size: 14.5px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}
@media (max-width: 820px) {
  .steps {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 480px) {
  .steps {
    grid-template-columns: 1fr;
  }
}
.step {
  text-align: center;
  padding: 12px;
}
.step .num {
  width: 46px;
  height: 46px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 18px;
  box-shadow: 0 8px 18px rgba(79, 70, 229, 0.3);
}
.step h4 {
  font-size: 16px;
  margin-bottom: 6px;
}
.step p {
  color: var(--muted);
  font-size: 14px;
}

.cta-band {
  margin: 40px 6% 0;
  border-radius: 24px;
  padding: 56px 40px;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  box-shadow: var(--shadow-lg);
}
.cta-band h2 {
  font-size: clamp(24px, 3vw, 34px);
}
.cta-band p {
  opacity: 0.92;
  margin-top: 12px;
}
.cta-band .hero-actions {
  justify-content: center;
}

.footer {
  text-align: center;
  padding: 48px 6%;
  color: var(--muted);
  font-size: 14px;
}

/* ============ Admin ============ */
.admin-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.tab-btn {
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #475569;
  transition: all 0.15s ease;
}
.tab-btn:hover {
  border-color: #c7d2fe;
}
.tab-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.25);
}

.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}

.request-card,
.deposit-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.request-card .info,
.deposit-card .info {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 14px;
  color: #475569;
}
.request-card .info strong,
.deposit-card .info strong {
  color: var(--ink);
}
.request-card .action,
.deposit-card .action {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.request-card .action input {
  width: auto;
  padding: 9px 12px;
}
.request-card .action button,
.deposit-card .action button {
  padding: 9px 14px;
  font-size: 13.5px;
  box-shadow: none;
}
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
}

/* utility */
.mt-0 {
  margin-top: 0;
}
.muted {
  color: var(--muted);
}
