:root {
  /* Colors - Based on Hamar Pahichan branding */
  --primary: #f02a00; /* Bright orange-red from buttons */
  --primary-dark: #d42500;
  --bg-light: #fdfdfd;
  --bg-header: #fffbeb; /* Light yellow tint from header background */
  --text-main: #1a2b4b; /* Deep blue for text */
  --text-muted: #6b7280;
  --border-color: #e5e7eb;
  --input-bg: #ffffff;
  
  /* Icon Background Colors */
  --icon-red: #ffe4e4;
  --icon-blue: #e0e7ff;
  --icon-pink: #fce7f3;
  --icon-green: #f0fdf4;
  --icon-teal: #e0f2f1;
  --icon-sky: #e0f2fe;

  /* Spacing & Borders */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.07);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: #f3f4f6;
  color: var(--text-main);
  line-height: 1.5;
  display: flex;
  justify-content: center;
  min-height: 100vh;
}

/* Mobile Container Simulation */
.app-container {
  width: 100%;
  max-width: 430px; /* iPhone 14 Pro Max width approx */
  background: var(--bg-light);
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 40px rgba(0,0,0,0.1);
}

/* Header & Branding */
.header-hero {
  background-color: var(--bg-header);
  background-image: radial-gradient(circle at 2px 2px, rgba(0,0,0,0.02) 1px, transparent 0);
  background-size: 20px 20px;
  padding: 40px 24px 80px 24px;
  position: relative;
  overflow: hidden;
}

.header-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--bg-light);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  transform: scaleX(1.5);
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.gov-logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: white;
  padding: 2px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.gov-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.user-profile-mini {
  margin-left: auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid white;
  box-shadow: var(--shadow);
}

.user-profile-mini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Content Sections */
.content {
  padding: 0 20px 100px 20px;
  flex: 1;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  margin: 24px 0 16px 0;
  color: var(--text-main);
}

/* Auth Pages Specifics */
.auth-form {
  margin-top: -40px;
  position: relative;
  z-index: 10;
  padding: 0 4px;
}

.auth-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 32px;
}

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

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  font-size: 15px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 16px;
  color: #9ca3af;
}

.form-input {
  width: 100%;
  padding: 14px 16px 14px 48px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 16px;
  transition: border-color 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
}

.captcha-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.captcha-box {
  background: #f9fafb;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 4px;
  border: 1px solid var(--border-color);
  user-select: none;
}

.captcha-input {
  flex: 1;
  padding: 14px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 16px;
}

.captcha-refresh {
  border: none;
  cursor: pointer;
  background: none;
}

.forgot-link {
  font-weight: 400;
  color: #1a2b4b;
}

.checkbox-input {
  accent-color: var(--primary);
  width: 18px;
  height: 18px;
}

.auth-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  font-size: 14px;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  width: 100%;
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 16px;
  border-radius: var(--radius-md);
  font-size: 18px;
  font-weight: 600;
  margin-top: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: background 0.2s;
  text-decoration: none;
}

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

.auth-footer {
  text-align: center;
  margin-top: 40px;
  font-size: 15px;
}

.link-highlight {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

/* Grid Menu (Dashboard) */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: var(--text-main);
}

.icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  transition: transform 0.2s;
}

.menu-item:hover .icon-circle {
  transform: translateY(-2px);
}

.icon-circle.red { background: var(--icon-red); color: #ef4444; }
.icon-circle.blue { background: var(--icon-blue); color: #3b82f6; }
.icon-circle.pink { background: var(--icon-pink); color: #ec4899; }
.icon-circle.green { background: var(--icon-green); color: #10b981; }
.icon-circle.teal { background: var(--icon-teal); color: #14b8a6; }
.icon-circle.sky { background: var(--icon-sky); color: #0ea5e9; }

.menu-label {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
}

/* Scheme Cards */
.scheme-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.scheme-card {
  display: flex;
  align-items: center;
  padding: 16px;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: transform 0.1s;
}

.scheme-card:active {
  transform: scale(0.98);
}

.scheme-icon-box {
  width: 50px;
  height: 50px;
  margin-right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scheme-content {
  flex: 1;
}

.scheme-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--text-main);
  margin-bottom: 2px;
}

.arrow-circle {
  width: 32px;
  height: 32px;
  background: #f3f4f6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
}

/* Bottom Navigation */
.bottom-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: white;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding-bottom: env(safe-area-inset-bottom);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #6b7280;
  font-size: 11px;
  font-weight: 500;
  gap: 4px;
}

.nav-item.active {
  color: var(--primary);
}

.nav-item svg {
  width: 24px;
  height: 24px;
}

/* Utilities */
.placeholder-image {
  background: #e5e7eb;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-avatar {
  background: #cbd5e1;
  width: 100%;
  height: 100%;
}
