/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.logo img {
  height: 80px;
  width: auto;
  max-width: 320px;
  object-fit: contain;
}

.nav { display: flex; align-items: center; gap: 28px; }

.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav a:hover, .nav a.active { color: var(--purple); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.menu-toggle, .notif-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--purple);
  color: var(--white);
  border-color: var(--purple);
}

.btn-primary:hover { background: var(--purple-dark); border-color: var(--purple-dark); }

.btn-outline {
  background: transparent;
  color: var(--purple);
  border-color: var(--purple);
}

.btn-outline:hover { background: var(--lavender); }

.btn-ghost {
  background: var(--white);
  color: var(--text-muted);
  border-color: var(--border);
}

.btn-ghost:hover { border-color: var(--purple); color: var(--purple); }

.btn-sm { padding: 8px 20px; font-size: 0.85rem; }

.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-green { background: var(--green-bg); color: var(--green); }
.badge-orange { background: var(--orange-bg); color: var(--orange); }
.badge-purple { background: var(--lavender); color: var(--purple); }

/* Cards */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 12px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.service-card:hover {
  border-color: var(--purple);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.service-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.service-card .icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.service-card span {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.3;
}

/* Forms */
.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text);
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(98, 70, 234, 0.15);
}

.biller-picker { position: relative; }

.biller-picker-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 50;
  max-height: 280px;
  overflow-y: auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.biller-picker-item {
  display: block;
  width: 100%;
  padding: 10px 16px;
  border: none;
  background: none;
  text-align: left;
  font-family: var(--font);
  color: var(--text);
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1.35;
}

.biller-picker-item:hover,
.biller-picker-item.active {
  background: var(--lavender);
  color: var(--purple);
}

.biller-picker-empty {
  padding: 12px 16px;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.form-error {
  color: #ef4444;
  font-size: 0.8rem;
  margin-top: 4px;
}

.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  margin-bottom: 16px;
}

.alert-error { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.alert-success { background: var(--green-bg); color: #15803d; border: 1px solid #bbf7d0; }
.alert-info { background: var(--lavender); color: var(--purple); border: 1px solid var(--lavender-dark); }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  top: var(--header-h);
  background: var(--white);
  z-index: 99;
  padding: 24px;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  padding: 14px 16px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  color: var(--text);
}

.mobile-nav a:hover { background: var(--lavender); color: var(--purple); }

@media (max-width: 900px) {
  .nav, .header-actions .btn { display: none; }
  .menu-toggle, .notif-btn { display: flex; }
  .header-inner { justify-content: center; position: relative; }
  .menu-toggle { position: absolute; left: 0; }
  .notif-btn { position: absolute; right: 0; }
  .logo { margin: 0 auto; }
  .logo img { height: 64px; max-width: 240px; }
}

@media (min-width: 901px) {
  .mobile-nav { display: none !important; }
}

.recharge-plan-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.recharge-plan-tab {
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-family: var(--font);
  cursor: pointer;
}

.recharge-plan-tab.active {
  background: var(--lavender);
  border-color: var(--purple);
  color: var(--purple);
  font-weight: 600;
}

.recharge-plan-list {
  display: grid;
  gap: 10px;
  max-height: 420px;
  overflow-y: auto;
}

.recharge-plan-card {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  width: 100%;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  padding: 12px;
  cursor: pointer;
  font-family: var(--font);
  color: var(--text);
}

.recharge-plan-card:hover,
.recharge-plan-card.active {
  border-color: var(--purple);
  background: var(--lavender);
}

.recharge-plan-amount {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--purple);
}

.recharge-plan-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.recharge-plan-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.recharge-plan-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
