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

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-tap-highlight-color: transparent;
}

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  background-attachment: fixed;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior-y: none;
}

#loading-screen {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.2s ease;
}

.loader-box { text-align: center; animation: fadeUp 0.5s ease; }

.loader-spinner {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loader-text {
  color: white;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
  opacity: 0.95;
}

#auth-container { width: 100%; max-width: 440px; margin-top: 8vh; animation: fadeUp 0.5s ease; }
#verify-container { width: 100%; max-width: 480px; margin-top: 6vh; animation: fadeUp 0.5s ease; }

.auth-box {
  background: white; padding: 44px 40px;
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.auth-logo { font-size: 44px; margin-bottom: 12px; }

.auth-box h2 {
  font-size: 26px; font-weight: 700; color: #1a202c;
  margin-bottom: 6px; letter-spacing: -0.5px;
}

.auth-sub { font-size: 14px; color: #718096; margin-bottom: 12px; }

.auth-email {
  font-size: 15px;
  font-weight: 700;
  color: #11998e;
  background: #f5faf8;
  padding: 12px 16px;
  border-radius: 10px;
  margin: 12px 0 16px;
  word-break: break-all;
  border: 1.5px solid #d5e5df;
}

.auth-hint {
  font-size: 13px;
  color: #718096;
  line-height: 1.5;
  margin-bottom: 20px;
  text-align: center;
}

#verify-msg {
  color: #11998e;
  font-size: 13px;
  margin-top: 12px;
  text-align: center;
  font-weight: 600;
  min-height: 20px;
}

#blocked-container { width: 100%; max-width: 460px; margin-top: 8vh; animation: fadeUp 0.5s ease; }
.blocked-box { border-top: 5px solid #e53e3e; }
.blocked-box h2 { color: #e53e3e; }
.contact-box { background: #f7fafc; padding: 16px; border-radius: 12px; margin: 16px 0; }
.contact-number { font-weight: 700; color: #11998e; font-size: 16px; margin-top: 4px; }

.app-shell {
  display: flex;
  width: 100%;
  max-width: 1400px;
  min-height: calc(100vh - 40px);
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
  animation: fadeUp 0.5s ease;
  position: relative;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.mobile-topbar {
  display: none;
  background: linear-gradient(135deg, #0b3d2e, #11998e);
  padding: 14px 16px;
  align-items: center;
  gap: 12px;
  color: white;
  position: sticky;
  top: 0;
  z-index: 100;
  padding-top: calc(14px + env(safe-area-inset-top));
}

.mobile-title {
  font-size: 15px;
  font-weight: 700;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hamburger {
  background: linear-gradient(180deg, rgba(255,255,255,0.25), rgba(255,255,255,0.1));
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.15), 0 4px 8px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger:active { transform: scale(0.92) translateY(2px); box-shadow: 0 0 0 rgba(0, 0, 0, 0.15); }

.refresh-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,0.25), rgba(255,255,255,0.1));
  color: white;
  border: none;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.refresh-icon:active { transform: scale(0.92) rotate(180deg); box-shadow: 0 0 0 rgba(0, 0, 0, 0.15); }

.desktop-refresh {
  background: linear-gradient(180deg, #38ef7d, #11998e);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: 0 3px 0 #0b6b5e, 0 5px 12px rgba(17, 153, 142, 0.3);
}

.desktop-refresh:hover { transform: rotate(90deg); }
.desktop-refresh:active { transform: translateY(3px) rotate(180deg); box-shadow: 0 0 0 #0b6b5e; }

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.sidebar-overlay.active { display: block; opacity: 1; }

.sidebar {
  width: 260px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #0b3d2e 0%, #11998e 100%);
  padding: 26px 18px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.brand {
  color: white; font-size: 20px; font-weight: 700;
  letter-spacing: -0.5px; padding: 8px 12px;
}

.sidebar nav { display: flex; flex-direction: column; gap: 6px; flex: 1; overflow-y: auto; }

.sidebar .tab-btn {
  display: block; width: 100%; padding: 12px 16px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
  border: none; border-radius: 10px; font-size: 14px;
  font-weight: 500; text-align: left; cursor: pointer;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1); margin: 0;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.15);
}

.sidebar .tab-btn:hover { background: rgba(255, 255, 255, 0.12); color: white; }
.sidebar .tab-btn:active { transform: translateY(2px); box-shadow: 0 0 0 rgba(0, 0, 0, 0.15); }

.sidebar .tab-btn.active {
  background: linear-gradient(180deg, #38ef7d, #11998e);
  color: white;
  box-shadow: 0 3px 0 #0b3d2e, 0 5px 12px rgba(56, 239, 125, 0.4);
  font-weight: 600;
}

.sidebar-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 16px;
  display: flex; flex-direction: column; gap: 12px;
}

.sidebar-user { padding: 0 4px; display: flex; flex-direction: column; gap: 6px; }

.sidebar-user #user-name,
.sidebar-user #admin-email {
  color: white; font-weight: 700; font-size: 14px;
  display: block; word-break: break-word;
}

.badge {
  display: inline-block; padding: 4px 10px;
  border-radius: 20px; font-size: 11px;
  font-weight: 600; align-self: flex-start;
}

.badge-trial { background: #f6ad55; color: white; }
.badge-active { background: #38ef7d; color: #0b3d2e; }

.btn-danger {
  background: linear-gradient(180deg, #f56565, #c53030);
  color: white; border: none;
  padding: 11px 16px; border-radius: 10px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1); width: 100%; margin: 0;
  box-shadow: 0 4px 0 #742a2a, 0 6px 12px rgba(197, 48, 48, 0.35);
}

.btn-danger:active { transform: translateY(4px); box-shadow: 0 0 0 #742a2a; }

.main {
  flex: 1; display: flex; flex-direction: column;
  background: #f5faf8; overflow: hidden; min-width: 0;
}

.topbar {
  background: white; padding: 22px 36px;
  border-bottom: 1px solid #e0ede8;
  display: flex; justify-content: space-between;
  align-items: center; flex-shrink: 0;
  gap: 12px;
}

.topbar h1 {
  font-size: 22px; color: #0b3d2e;
  font-weight: 700; letter-spacing: -0.5px;
}

.topbar-actions { display: flex; gap: 8px; align-items: center; }

.icon-btn {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(180deg, #38ef7d, #11998e);
  color: white;
  border: none;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  box-shadow: 0 3px 0 #0b6b5e, 0 5px 12px rgba(17, 153, 142, 0.3);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.icon-btn:active { transform: translateY(3px); box-shadow: 0 0 0 #0b6b5e; }

.notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #e53e3e;
  color: white;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
  animation: pulse 2s infinite;
}

.content { padding: 32px 36px; overflow-y: auto; flex: 1; -webkit-overflow-scrolling: touch; }

.app-footer {
  background: white;
  border-top: 1px solid #e0ede8;
  padding: 16px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #718096;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
}

.app-footer b { color: #11998e; }

.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.35s cubic-bezier(0.4, 0, 0.2, 1); }

.warning-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border-left: 4px solid #f6ad55;
  color: #92400e;
  padding: 14px 18px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(246, 173, 85, 0.15);
  animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.warning-icon { font-size: 18px; }

.greeting-section {
  background: linear-gradient(135deg, #0b3d2e 0%, #11998e 100%);
  color: white;
  padding: 22px 24px;
  border-radius: 16px;
  margin-bottom: 22px;
  box-shadow: 0 8px 20px rgba(17, 153, 142, 0.25);
  position: relative;
  overflow: hidden;
}

.greeting-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.greeting-text { font-size: 20px; font-weight: 700; letter-spacing: -0.3px; position: relative; }
.greeting-date { font-size: 13px; opacity: 0.85; margin-top: 4px; position: relative; }

.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

.quick-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px 8px;
  background: linear-gradient(180deg, #ffffff, #e8f5f1);
  color: #0b3d2e;
  border: 1.5px solid #d5e5df;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  margin: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 1), 0 4px 0 #c9ddd6, 0 6px 12px rgba(17, 153, 142, 0.08);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.quick-btn:hover { background: linear-gradient(180deg, #ffffff, #d1ebe4); transform: translateY(-2px); }
.quick-btn:active { transform: translateY(4px) scale(0.97); box-shadow: inset 0 3px 5px rgba(17, 153, 142, 0.15), 0 0 0 #c9ddd6; }

.quick-icon {
  font-size: 20px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #38ef7d, #11998e);
  color: white;
  border-radius: 10px;
  font-weight: 700;
  box-shadow: 0 3px 8px rgba(17, 153, 142, 0.3);
}

.quick-label { font-size: 11px; text-align: center; line-height: 1.2; color: #0b3d2e; }

.charts-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.chart-card {
  background: white;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid #e8f2ee;
  box-shadow: 0 2px 10px rgba(17, 153, 142, 0.05);
}

.chart-title {
  font-size: 13px;
  font-weight: 700;
  color: #0b3d2e;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 14px;
}

.chart-wrap { position: relative; height: 220px; }

.activity-feed {
  background: white;
  border-radius: 16px;
  border: 1px solid #e8f2ee;
  box-shadow: 0 2px 10px rgba(17, 153, 142, 0.05);
  padding: 8px 0;
  overflow: hidden;
}

.empty-msg {
  padding: 24px;
  text-align: center;
  color: #718096;
  font-size: 14px;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid #f0f7f4;
  transition: background 0.15s ease;
}

.activity-item:last-child { border-bottom: none; }
.activity-item:hover { background: #f5faf8; }

.activity-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
}

.activity-body { flex: 1; min-width: 0; }

.activity-text {
  font-size: 14px;
  color: #2d3748;
  font-weight: 500;
  line-height: 1.4;
}

.activity-text b { color: #0b3d2e; font-weight: 700; }
.activity-time { font-size: 12px; color: #a0aec0; margin-top: 3px; }

h3 {
  font-size: 16px; font-weight: 700; color: #0b3d2e;
  margin: 24px 0 14px; text-transform: uppercase; letter-spacing: 0.6px;
}

h3:first-child { margin-top: 0; }
h4 { font-size: 18px; font-weight: 700; color: #0b3d2e; margin-bottom: 4px; }
.hint { font-size: 13px; color: #718096; margin-bottom: 16px; }

.form-card {
  background: white; padding: 24px; border-radius: 16px;
  border: 1px solid #e0ede8;
  box-shadow: 0 2px 8px rgba(17, 153, 142, 0.05);
  margin-bottom: 20px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

input, select {
  width: 100%; padding: 13px 16px; margin: 6px 0;
  border: 1.5px solid #d5e5df; border-radius: 11px;
  font-size: 14px; background: #f5faf8;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); outline: none; color: #2d3748;
  -webkit-appearance: none;
  appearance: none;
}

select {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23718096' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}

input:focus, select:focus {
  border-color: #11998e; background: white;
  box-shadow: 0 0 0 4px rgba(17, 153, 142, 0.12);
  transform: translateY(-1px);
}

button {
  padding: 14px 20px;
  margin: 8px 0;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  letter-spacing: 0.3px;
  background: linear-gradient(180deg, #38ef7d 0%, #11998e 100%);
  color: white;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 -2px 0 rgba(0, 0, 0, 0.15), 0 5px 0 #0b6b5e, 0 8px 16px rgba(17, 153, 142, 0.4);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
}

button::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,0.3) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

button:hover {
  background: linear-gradient(180deg, #48ff90 0%, #14b8a6 100%);
  transform: translateY(-2px);
}

button:active {
  background: linear-gradient(180deg, #11998e 0%, #0b6b5e 100%);
  box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.25), 0 1px 0 #0b6b5e, 0 2px 4px rgba(17, 153, 142, 0.3);
  transform: translateY(4px) scale(0.98);
  transition: all 0.08s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary {
  background: linear-gradient(180deg, #ffffff 0%, #e8f5f1 100%) !important;
  color: #11998e !important;
  border: 1.5px solid #11998e !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 1), 0 5px 0 #0b6b5e, 0 8px 16px rgba(17, 153, 142, 0.25) !important;
  text-shadow: none;
}

.btn-secondary:hover { background: linear-gradient(180deg, #ffffff 0%, #d1ebe4 100%) !important; }
.btn-secondary:active { background: linear-gradient(180deg, #d1ebe4 0%, #b8dfd6 100%) !important; transform: translateY(4px); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px; margin-bottom: 24px;
}

.stat-card {
  background: white; padding: 22px 24px; border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  border: 1px solid #e8f2ee;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative; overflow: hidden;
}

.stat-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; }

.stat-card.purple::before { background: linear-gradient(180deg, #11998e, #38ef7d); }
.stat-card.green::before { background: linear-gradient(180deg, #38ef7d, #11998e); }
.stat-card.red::before { background: linear-gradient(180deg, #f56565, #e53e3e); }
.stat-card.blue::before { background: linear-gradient(180deg, #4299e1, #3182ce); }
.stat-card.orange::before { background: linear-gradient(180deg, #ed8936, #dd6b20); }
.stat-card.pink::before { background: linear-gradient(180deg, #ed64a6, #d53f8c); }
.stat-card.teal::before { background: linear-gradient(180deg, #38b2ac, #319795); }
.stat-card.gray::before { background: linear-gradient(180deg, #a0aec0, #718096); }

.stat-card:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(17, 153, 142, 0.1); }

.stat-label { font-size: 11px; color: #718096; font-weight: 600; text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 8px; }
.stat-value { font-size: 26px; font-weight: 700; color: #0b3d2e; letter-spacing: -0.5px; }

ul { list-style: none; padding: 0; margin-top: 12px; }

li {
  background: white; margin: 8px 0; padding: 16px 20px;
  border-radius: 12px; border: 1px solid #e8f2ee;
  border-left: 4px solid #11998e; color: #2d3748;
  font-weight: 500; font-size: 14px;
  display: flex; justify-content: space-between;
  align-items: center; gap: 12px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); flex-wrap: wrap;
}

li:hover { box-shadow: 0 6px 18px rgba(17, 153, 142, 0.14); transform: translateX(3px); }

.btn-group { display: flex; gap: 6px; flex-wrap: wrap; }
.att-select { width: auto; padding: 8px 12px; margin: 0; font-size: 13px; border-radius: 8px; }

.del-btn, .del-fee-btn {
  width: auto; padding: 8px 14px; margin: 0;
  font-size: 12px; font-weight: 700;
  background: linear-gradient(180deg, #fc8181, #e53e3e);
  color: white; border: none; border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 3px 0 #9b2c2c, 0 5px 10px rgba(229, 62, 62, 0.3);
  transition: all 0.1s ease;
}

.del-btn:active, .del-fee-btn:active { transform: translateY(3px) scale(0.96); box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.25), 0 0 0 #9b2c2c; }

.wa-btn {
  width: auto; padding: 8px 14px; margin: 0;
  font-size: 12px; font-weight: 700;
  background: linear-gradient(180deg, #4ae07b, #25d366);
  color: white; border: none; border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 3px 0 #128c4a, 0 5px 10px rgba(37, 211, 102, 0.35);
  transition: all 0.1s ease;
}

.wa-btn:active { transform: translateY(3px) scale(0.96); box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.2), 0 0 0 #128c4a; }

.edit-btn {
  width: auto; padding: 8px 14px; margin: 0;
  font-size: 12px; font-weight: 700;
  background: linear-gradient(180deg, #63b3ed, #3182ce);
  color: white; border: none; border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 3px 0 #2c5282, 0 5px 10px rgba(49, 130, 206, 0.35);
  transition: all 0.1s ease;
}

.edit-btn:active { transform: translateY(3px) scale(0.96); box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.2), 0 0 0 #2c5282; }

.receipt-btn {
  background: linear-gradient(180deg, #b794f4, #805ad5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 3px 0 #553c9a, 0 5px 10px rgba(128, 90, 213, 0.35);
}

.receipt-btn:active { transform: translateY(3px) scale(0.96); box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.2), 0 0 0 #553c9a; }

#auth-msg, #attendance-msg, #fee-msg, #exam-msg, #voucher-msg, #timetable-msg, #pay-msg, #voucher-settings-msg, #periods-msg, #backup-msg {
  color: #11998e; font-size: 13px; margin-top: 10px;
  text-align: center; font-weight: 600;
}

.students-toolbar {
  display: grid;
  grid-template-columns: 2fr 1fr auto;
  gap: 10px;
  margin-bottom: 14px;
  align-items: center;
}

.students-toolbar input,
.students-toolbar select {
  margin: 0;
}

.students-toolbar button {
  margin: 0;
  width: auto;
  padding: 13px 20px;
  white-space: nowrap;
}

.students-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(17, 153, 142, 0.06);
  border: 1px solid #e8f2ee;
}

.students-table th, .students-table td {
  padding: 14px 16px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid #eef1f6;
  vertical-align: middle;
}

.students-table th {
  background: #f5faf8;
  color: #0b3d2e;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.6px;
}

.students-table tr:last-child td { border-bottom: none; }
.students-table tr:hover td { background: #fafeff; }

.actions-cell { display: flex; gap: 6px; flex-wrap: wrap; }

.fee-status-dot { font-size: 16px; }

.grade-cell { font-weight: 700; color: #11998e; font-size: 14px; }
.pct-cell { font-weight: 600; color: #4a5568; font-size: 13px; }

.admin-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  margin-top: 12px; background: white; border-radius: 14px;
  overflow: hidden; box-shadow: 0 2px 12px rgba(17, 153, 142, 0.06);
  border: 1px solid #e8f2ee;
}

.admin-table th, .admin-table td {
  padding: 14px 16px; text-align: left;
  font-size: 14px; border-bottom: 1px solid #e8f2ee;
}

.admin-table th {
  background: #f5faf8; color: #0b3d2e; font-weight: 700;
  text-transform: uppercase; font-size: 11px; letter-spacing: 0.6px;
}

.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: #f5faf8; }

.admin-add-btn, .admin-toggle-btn {
  width: auto; padding: 8px 14px; margin: 3px;
  font-size: 12px; font-weight: 700; border-radius: 8px;
  background: linear-gradient(180deg, #38ef7d, #11998e);
  color: white; border: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 3px 0 #0b6b5e, 0 5px 10px rgba(17, 153, 142, 0.3);
  transition: all 0.1s ease;
}

.admin-add-btn:active { transform: translateY(3px); box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.2), 0 0 0 #0b6b5e; }

.admin-toggle-btn {
  background: linear-gradient(180deg, #fc8181, #e53e3e);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 3px 0 #9b2c2c, 0 5px 10px rgba(229, 62, 62, 0.3);
}

.admin-toggle-btn:active { transform: translateY(3px); box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.2), 0 0 0 #9b2c2c; }

.report-card {
  background: white; padding: 24px; border-radius: 16px;
  margin-top: 16px; border: 1px solid #e8f2ee;
  border-left: 4px solid #11998e;
  box-shadow: 0 4px 14px rgba(17, 153, 142, 0.05);
  animation: fadeIn 0.4s ease;
}

.report-table { width: 100%; border-collapse: collapse; margin: 14px 0; background: white; border-radius: 8px; overflow: hidden; }

.report-table th, .report-table td {
  padding: 12px 16px; text-align: left;
  border-bottom: 1px solid #e8f2ee; font-size: 14px;
}

.report-table th {
  background: #f5faf8; color: #0b3d2e; font-weight: 700;
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px;
}

.report-total {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 16px; background: #f5faf8; border-radius: 10px;
  font-size: 14px; color: #2d3748; flex-wrap: wrap;
}

.report-total b { color: #11998e; }

.timetable-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  margin: 12px 0; background: white; border-radius: 12px;
  overflow: hidden; box-shadow: 0 2px 12px rgba(17, 153, 142, 0.06);
}

.timetable-table th, .timetable-table td {
  padding: 8px; text-align: left; border: 1px solid #e8f2ee;
  font-size: 12px; vertical-align: top;
}

.timetable-table th {
  background: linear-gradient(135deg, #11998e, #38ef7d);
  color: white; font-weight: 700; text-align: center;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.4px;
}

.timetable-table .day-cell { background: #f5faf8; font-size: 12px; min-width: 70px; color: #0b3d2e; }
.timetable-table input { padding: 6px 8px; margin: 2px 0; font-size: 12px; border-radius: 6px; border-width: 1px; }
.timetable-table select { padding: 6px 8px; margin: 2px 0; font-size: 12px; border-radius: 6px; border-width: 1px; }

.period-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.period-num {
  font-size: 13px;
  font-weight: 700;
  color: #0b3d2e;
  min-width: 80px;
  flex-shrink: 0;
}

.period-input { flex: 1; margin: 0; }

.export-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }

.attendance-quick-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.quick-mark-btn {
  flex: 1;
  min-width: 150px;
  padding: 12px 16px;
  font-size: 13px;
  border-radius: 12px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.1s ease;
  margin: 0;
}

.present-btn {
  background: linear-gradient(180deg, #38ef7d, #11998e);
  color: white;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 4px 0 #0b6b5e, 0 6px 12px rgba(17, 153, 142, 0.3);
}

.absent-btn {
  background: linear-gradient(180deg, #fc8181, #e53e3e);
  color: white;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 4px 0 #9b2c2c, 0 6px 12px rgba(229, 62, 62, 0.3);
}

.reset-btn {
  background: linear-gradient(180deg, #a0aec0, #718096);
  color: white;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 4px 0 #4a5568, 0 6px 12px rgba(113, 128, 150, 0.3);
}

.quick-mark-btn:active { transform: translateY(4px) scale(0.97); box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.25); }

.attendance-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.att-stat {
  background: white;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid #e8f2ee;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}

.att-stat::before {
  content: '';
  position: absolute;
  left: 0; top: 0; right: 0;
  height: 4px;
}

.att-stat.present::before { background: linear-gradient(90deg, #38ef7d, #11998e); }
.att-stat.absent::before { background: linear-gradient(90deg, #fc8181, #e53e3e); }
.att-stat.leave::before { background: linear-gradient(90deg, #f6ad55, #dd6b20); }
.att-stat.total::before { background: linear-gradient(90deg, #4299e1, #3182ce); }

.att-stat-label {
  font-size: 11px;
  color: #718096;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 6px;
}

.att-stat-value {
  font-size: 24px;
  font-weight: 700;
  color: #0b3d2e;
}

.att-stat.present .att-stat-value { color: #11998e; }
.att-stat.absent .att-stat-value { color: #e53e3e; }
.att-stat.leave .att-stat-value { color: #dd6b20; }
.att-stat.total .att-stat-value { color: #3182ce; }

.progress-wrap {
  background: white;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid #e8f2ee;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  margin-bottom: 24px;
}

.progress-bar {
  width: 100%;
  height: 12px;
  background: #e8f2ee;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #11998e, #38ef7d);
  border-radius: 20px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(17, 153, 142, 0.4);
}

.quick-filter-btns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.quick-filter-btns .quick-filter { margin: 0; padding: 10px 12px; font-size: 12px; }

.bottom-nav { display: none; }

@media (max-width: 900px) {
  body { padding: 0; background: #f5faf8; display: block; overscroll-behavior-y: contain; }

  .app-shell {
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    box-shadow: none;
    padding-bottom: calc(80px + env(safe-area-inset-bottom));
  }

  .mobile-topbar { display: flex; }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    max-width: 85vw;
    padding: 24px 18px;
    padding-top: calc(24px + env(safe-area-inset-top));
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    z-index: 999;
    transform: translateX(-100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    will-change: transform;
  }

  .sidebar.open { transform: translateX(0); box-shadow: 8px 0 40px rgba(0, 0, 0, 0.3); }
  .sidebar nav { flex-direction: column; overflow-y: auto; flex: 1; gap: 6px; -webkit-overflow-scrolling: touch; }

  .sidebar .tab-btn {
    white-space: normal;
    padding: 14px 16px;
    font-size: 15px;
    width: 100%;
    text-align: left;
    border-radius: 10px;
    min-height: 48px;
    display: flex;
    align-items: center;
  }

  .sidebar-footer { display: flex; flex-direction: column; border-top: 1px solid rgba(255, 255, 255, 0.15); padding-top: 16px; gap: 12px; }

  .brand { padding: 0; font-size: 18px; }

  .topbar { padding: 14px 18px; position: sticky; top: 0; z-index: 50; background: white; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04); }
  .topbar h1 { font-size: 18px; color: #0b3d2e; font-weight: 700; }
  .topbar-actions { gap: 6px; }

  .icon-btn, .desktop-refresh { width: 42px; height: 42px; font-size: 17px; border-radius: 11px; }

  .content { padding: 16px; padding-bottom: 20px; -webkit-overflow-scrolling: touch; }

  .form-row { grid-template-columns: 1fr; gap: 8px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }

  .stat-card { padding: 14px 16px; border-radius: 14px; }
  .stat-card:active { transform: scale(0.98); }
  .stat-value { font-size: 20px; }
  .stat-label { font-size: 10px; margin-bottom: 4px; }

  .quick-actions { gap: 8px; }
  .quick-btn { padding: 14px 6px; font-size: 10px; min-height: 90px; }
  .quick-icon { width: 36px; height: 36px; font-size: 18px; }
  .quick-label { font-size: 11px; font-weight: 600; }

  .greeting-section { padding: 18px 20px; margin-bottom: 16px; border-radius: 14px; }
  .greeting-text { font-size: 17px; }
  .greeting-date { font-size: 12px; }

  .charts-row { grid-template-columns: 1fr; gap: 12px; }
  .chart-card { padding: 16px; }
  .chart-wrap { height: 190px; }
  .chart-title { font-size: 12px; margin-bottom: 10px; }

  li { padding: 14px 16px; font-size: 13px; border-radius: 12px; min-height: 52px; }
  li:active { transform: scale(0.99); }

  h3 { font-size: 13px; margin: 18px 0 12px; letter-spacing: 0.5px; }
  h4 { font-size: 16px; }
  .hint { font-size: 12px; margin-bottom: 12px; }

  .form-card { padding: 16px; border-radius: 14px; margin-bottom: 16px; }

  input, select { padding: 14px 16px; font-size: 16px; min-height: 48px; border-radius: 10px; }

  button { padding: 15px 18px; font-size: 14px; min-height: 50px; border-radius: 12px; }

  .app-footer { padding: 14px 18px; padding-bottom: calc(14px + env(safe-area-inset-bottom)); font-size: 11px; flex-direction: column; text-align: center; gap: 4px; }

  .students-toolbar { grid-template-columns: 1fr; gap: 8px; }

  .students-table thead { display: none; }
  .students-table, .students-table tbody, .students-table tr, .students-table td { display: block; width: 100%; }

  .students-table tr {
    background: white;
    border: 1px solid #e8f2ee;
    border-left: 4px solid #11998e;
    border-radius: 12px;
    margin-bottom: 12px;
    padding: 14px 16px;
    box-shadow: 0 2px 8px rgba(17, 153, 142, 0.05);
    transition: all 0.15s ease;
  }

  .students-table tr:active { transform: scale(0.99); box-shadow: 0 4px 12px rgba(17, 153, 142, 0.12); }

  .students-table td { padding: 6px 0; border: none; font-size: 13px; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: auto; }

  .students-table td::before { content: attr(data-label); font-weight: 700; color: #718096; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; flex-shrink: 0; }

  .students-table td.actions-cell { display: flex; justify-content: flex-end; padding-top: 12px; border-top: 1px solid #f0f7f4; margin-top: 8px; gap: 8px; }

  .students-table td.actions-cell::before { display: none; }

  .del-btn, .del-fee-btn, .wa-btn, .edit-btn, .receipt-btn { padding: 9px 14px; font-size: 12px; min-height: 40px; }

  .attendance-quick-bar { gap: 6px; }
  .quick-mark-btn { min-width: 0; padding: 11px 8px; font-size: 12px; flex: 1; min-height: 48px; }
  .attendance-stats { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .att-stat { padding: 12px 14px; }
  .att-stat-value { font-size: 20px; }
  .att-stat-label { font-size: 10px; }

  .period-row { flex-direction: column; align-items: stretch; gap: 4px; }
  .period-num { min-width: auto; font-size: 12px; }

  .admin-table { font-size: 12px; }
  .admin-table th, .admin-table td { padding: 10px 8px; font-size: 12px; }

  .quick-filter-btns { grid-template-columns: repeat(2, 1fr); }

  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e0ede8;
    padding: 6px 4px;
    padding-bottom: calc(6px + env(safe-area-inset-bottom));
    z-index: 900;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    justify-content: space-around;
    align-items: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.98);
  }

  .bottom-nav-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: transparent;
    color: #718096;
    border: none;
    border-radius: 12px;
    padding: 8px 4px;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    margin: 0;
    box-shadow: none;
    text-shadow: none;
    width: auto;
    min-height: 54px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    -webkit-tap-highlight-color: transparent;
  }

  .bottom-nav-btn:active { transform: scale(0.9); }
  .bottom-nav-btn.active { color: #11998e; background: linear-gradient(180deg, #f0faf7, #d1ebe4); box-shadow: none; transform: translateY(-2px); }

  .bottom-nav-btn.active::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: linear-gradient(90deg, #38ef7d, #11998e);
    border-radius: 0 0 4px 4px;
  }

  .bottom-icon { font-size: 22px; line-height: 1; transition: transform 0.2s ease; }
  .bottom-nav-btn.active .bottom-icon { transform: scale(1.1); }
  .bottom-label { font-size: 10px; font-weight: 700; letter-spacing: 0.2px; }

  .sidebar-overlay { backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }

  .activity-item { padding: 12px 16px; }
  .activity-icon { width: 36px; height: 36px; min-width: 36px; font-size: 16px; }
  .activity-text { font-size: 13px; }
  .activity-time { font-size: 11px; }

  .report-card { padding: 18px; }
  .report-table th, .report-table td { padding: 10px 12px; font-size: 13px; }
  .report-total { padding: 14px; font-size: 13px; gap: 8px; }

  .progress-wrap { padding: 14px; margin-bottom: 18px; }
  .progress-bar { height: 10px; }

  .timetable-table { font-size: 11px; display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }
  .timetable-table thead, .timetable-table tbody { display: table; width: 100%; }
  .timetable-table th, .timetable-table td { padding: 6px 8px; font-size: 11px; }
  .timetable-table input, .timetable-table select { font-size: 11px; padding: 5px 6px; }

  .warning-banner { padding: 12px 14px; font-size: 13px; }

  .content::-webkit-scrollbar { width: 4px; }
  .content::-webkit-scrollbar-track { background: transparent; }
  .content::-webkit-scrollbar-thumb { background: rgba(17, 153, 142, 0.3); border-radius: 4px; }

  .quick-btn, .stat-card, .quick-mark-btn, .bottom-nav-btn, .hamburger, .refresh-icon, .icon-btn {
    -webkit-user-select: none;
    user-select: none;
  }
}

@media (max-width: 380px) {
  .stats-grid { grid-template-columns: 1fr; }
  .quick-actions { grid-template-columns: repeat(2, 1fr); }
  .quick-btn { min-height: 80px; }
  .attendance-stats { grid-template-columns: 1fr; }
  .greeting-text { font-size: 15px; }
  .topbar h1 { font-size: 16px; }
}

@media (max-width: 900px) and (orientation: landscape) {
  .bottom-nav { padding: 4px 4px; padding-bottom: calc(4px + env(safe-area-inset-bottom)); }
  .bottom-nav-btn { min-height: 44px; }
  .bottom-icon { font-size: 18px; }
  .bottom-label { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ==========================================
   LANDING PAGE
   ========================================== */

.landing-body { background: white; padding: 0; display: block; overscroll-behavior-y: auto; }

.land-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.land-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #e8f2ee;
}

.land-nav .land-container { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 24px; }

.land-brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; color: #0b3d2e; letter-spacing: -0.5px; }
.land-brand-icon { font-size: 26px; }

.land-nav-links { display: flex; gap: 28px; flex: 1; justify-content: center; }

.land-nav-links a { color: #4a5568; font-size: 14px; font-weight: 600; text-decoration: none; transition: color 0.2s ease; }
.land-nav-links a:hover { color: #11998e; }

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

.land-hamburger {
  display: none;
  background: transparent;
  color: #0b3d2e;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
  width: auto;
  margin: 0;
  box-shadow: none;
}

.land-mobile-menu { display: none; flex-direction: column; gap: 4px; padding: 16px 24px 24px; border-top: 1px solid #e8f2ee; }
.land-mobile-menu.open { display: flex; }

.land-mobile-menu a { color: #4a5568; font-size: 15px; font-weight: 600; text-decoration: none; padding: 12px 0; border-bottom: 1px solid #f0f7f4; }

.land-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 22px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  width: auto;
  margin: 0;
  letter-spacing: 0.2px;
  box-shadow: none;
  text-shadow: none;
}

.land-btn-primary { background: linear-gradient(180deg, #38ef7d, #11998e); color: white; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 4px 0 #0b6b5e, 0 6px 14px rgba(17, 153, 142, 0.35); }
.land-btn-primary:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 6px 0 #0b6b5e, 0 10px 22px rgba(17, 153, 142, 0.45); }
.land-btn-primary:active { transform: translateY(4px); box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.25), 0 1px 0 #0b6b5e; }

.land-btn-outline { background: white; color: #11998e; border: 1.5px solid #11998e; }
.land-btn-outline:hover { background: #11998e; color: white; transform: translateY(-2px); }

.land-btn-white { background: white; color: #11998e; }
.land-btn-white:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15); }

.land-btn-lg { padding: 14px 28px; font-size: 15px; border-radius: 12px; }
.land-btn-block { width: 100%; display: flex; }

.land-badge {
  display: inline-block;
  padding: 6px 14px;
  background: linear-gradient(135deg, #e8f5f1, #d1ebe4);
  color: #0b3d2e;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 16px;
  border: 1px solid #b8dfd6;
  letter-spacing: 0.3px;
}

.land-hero { padding: 80px 0 100px; background: linear-gradient(180deg, #f5faf8 0%, #ffffff 100%); overflow: hidden; position: relative; }

.land-hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }

.land-hero-content h1 {
  font-size: 54px;
  font-weight: 800;
  color: #0b3d2e;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 20px;
}

.land-gradient { background: linear-gradient(135deg, #11998e, #38ef7d); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.land-hero-sub { font-size: 17px; color: #4a5568; line-height: 1.6; margin-bottom: 32px; max-width: 540px; }

.land-hero-actions { display: flex; gap: 12px; margin-bottom: 48px; flex-wrap: wrap; }
.land-hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.land-hero-stats > div { display: flex; flex-direction: column; }
.land-hero-stats strong { font-size: 28px; font-weight: 800; color: #0b3d2e; letter-spacing: -0.5px; }
.land-hero-stats span { font-size: 13px; color: #718096; font-weight: 600; margin-top: 2px; }

.land-hero-visual { position: relative; display: flex; justify-content: center; align-items: center; }

.land-mockup {
  width: 100%;
  max-width: 420px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 30px 60px rgba(17, 153, 142, 0.2);
  border: 1px solid #e8f2ee;
  overflow: hidden;
  animation: fadeUp 0.8s ease;
}

.land-mockup-header { display: flex; gap: 6px; padding: 14px 18px; background: #f5faf8; border-bottom: 1px solid #e8f2ee; }
.land-dot { width: 12px; height: 12px; border-radius: 50%; }
.land-dot.red { background: #fc8181; }
.land-dot.yellow { background: #f6ad55; }
.land-dot.green { background: #48bb78; }

.land-mockup-body { padding: 24px; display: flex; flex-direction: column; gap: 16px; }

.land-mockup-stat { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; background: linear-gradient(135deg, #f5faf8, #e8f5f1); border-radius: 12px; border-left: 4px solid #11998e; }
.land-mockup-label { font-size: 12px; color: #718096; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.land-mockup-value { font-size: 20px; font-weight: 800; color: #0b3d2e; }

.land-mockup-chart { height: 120px; background: #f5faf8; border-radius: 12px; padding: 16px; display: flex; align-items: flex-end; justify-content: space-around; gap: 8px; }

.land-bar { flex: 1; background: linear-gradient(180deg, #38ef7d, #11998e); border-radius: 6px 6px 0 0; min-height: 10px; animation: growUp 1s ease; }
@keyframes growUp { from { height: 0; } }

.land-floating-card {
  position: absolute;
  background: white;
  padding: 12px 16px;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  font-size: 13px;
  font-weight: 700;
  color: #0b3d2e;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e8f2ee;
  animation: floatY 3s ease-in-out infinite;
}

.land-float-1 { top: 20px; left: -20px; }
.land-float-2 { bottom: 40px; right: -30px; animation-delay: 1.5s; }

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.land-section { padding: 90px 0; background: white; }
.land-section-alt { background: #f5faf8; }

.land-section-head { text-align: center; max-width: 640px; margin: 0 auto 60px; }

.land-section-head h2 { font-size: 40px; font-weight: 800; color: #0b3d2e; letter-spacing: -1.2px; margin-bottom: 14px; line-height: 1.15; }
.land-section-head p { font-size: 16px; color: #4a5568; line-height: 1.6; }

.land-features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }

.land-feature-card {
  background: white;
  padding: 28px 24px;
  border-radius: 18px;
  border: 1px solid #e8f2ee;
  box-shadow: 0 4px 14px rgba(17, 153, 142, 0.05);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.land-feature-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(17, 153, 142, 0.15); }

.land-feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  margin-bottom: 18px;
  box-shadow: 0 6px 16px rgba(17, 153, 142, 0.25);
}

.land-feature-card h3 { font-size: 17px; font-weight: 700; color: #0b3d2e; margin-bottom: 8px; text-transform: none; letter-spacing: -0.2px; }
.land-feature-card p { font-size: 14px; color: #718096; line-height: 1.6; }

.land-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }

.land-step { background: white; padding: 32px 26px; border-radius: 18px; text-align: center; border: 1px solid #e8f2ee; box-shadow: 0 4px 14px rgba(17, 153, 142, 0.05); }

.land-step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #38ef7d, #11998e);
  color: white;
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  box-shadow: 0 8px 20px rgba(17, 153, 142, 0.3);
}

.land-step h3 { font-size: 18px; font-weight: 700; color: #0b3d2e; margin-bottom: 8px; text-transform: none; letter-spacing: -0.2px; }
.land-step p { font-size: 14px; color: #718096; line-height: 1.6; }

.land-pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; align-items: stretch; }

.land-price-card {
  background: white;
  padding: 32px 26px;
  border-radius: 20px;
  border: 1px solid #e8f2ee;
  box-shadow: 0 4px 14px rgba(17, 153, 142, 0.06);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.land-price-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(17, 153, 142, 0.15); }

.land-price-popular { border: 2px solid #11998e; box-shadow: 0 20px 40px rgba(17, 153, 142, 0.2); transform: scale(1.03); }
.land-price-popular:hover { transform: scale(1.03) translateY(-6px); }

.land-popular-tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #38ef7d, #11998e);
  color: white;
  padding: 5px 16px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 6px 14px rgba(17, 153, 142, 0.4);
}

.land-price-header { margin-bottom: 24px; }

.land-price-header h3 { font-size: 20px; font-weight: 700; color: #0b3d2e; margin-bottom: 12px; text-transform: none; letter-spacing: -0.3px; }

.land-price { display: flex; align-items: baseline; gap: 6px; }
.land-price-num { font-size: 32px; font-weight: 800; color: #0b3d2e; letter-spacing: -1px; }
.land-price-period { font-size: 14px; color: #718096; font-weight: 600; }

.land-price-features { list-style: none; padding: 0; margin: 0 0 28px; flex: 1; }

.land-price-features li {
  background: transparent;
  padding: 8px 0;
  border: none;
  border-radius: 0;
  font-size: 14px;
  color: #4a5568;
  display: block;
  border-bottom: 1px dashed #e8f2ee;
  margin: 0;
  box-shadow: none;
  transform: none;
}

.land-price-features li:last-child { border-bottom: none; }
.land-price-features li:hover { box-shadow: none; transform: none; }

.land-pricing-note { text-align: center; margin-top: 32px; font-size: 14px; color: #718096; }
.land-pricing-note a { color: #11998e; font-weight: 700; text-decoration: none; }

.land-cta { padding: 80px 0; background: linear-gradient(135deg, #0b3d2e 0%, #11998e 100%); color: white; text-align: center; }

.land-cta h2 { font-size: 40px; font-weight: 800; letter-spacing: -1.2px; margin-bottom: 16px; line-height: 1.15; }

.land-cta p { font-size: 17px; color: rgba(255, 255, 255, 0.9); max-width: 560px; margin: 0 auto 32px; line-height: 1.6; }

.land-cta-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

.land-footer { background: #0b3d2e; color: white; padding: 60px 0 0; }
.land-footer .land-brand { color: white; margin-bottom: 12px; }

.land-footer-desc { font-size: 14px; color: rgba(255, 255, 255, 0.7); line-height: 1.6; max-width: 280px; }

.land-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }

.land-footer h4 { font-size: 14px; font-weight: 700; color: white; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.6px; }

.land-footer-grid > div > a {
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.2s ease;
}

.land-footer-grid > div > a:hover { color: #38ef7d; }

.land-footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 20px 0; font-size: 13px; color: rgba(255, 255, 255, 0.6); }
.land-footer-bottom .land-container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.land-footer-bottom b { color: #38ef7d; }

/* Powered by Logo */
.land-powered { margin-top: 20px; display: flex; flex-direction: column; gap: 8px; }

.land-powered-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.land-powered-logo {
  max-width: 180px;
  height: auto;
  background: white;
  padding: 10px 14px;
  border-radius: 10px;
  display: block;
}

/* SVG Icons in footer */
.land-icon-svg {
  width: 16px;
  height: 16px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
  flex-shrink: 0;
}

/* ==========================================
   LEGAL PAGES
   ========================================== */

.land-legal { padding: 60px 0 80px; background: white; }
.land-legal-container { max-width: 820px; }

.land-legal h1 { font-size: 40px; font-weight: 800; color: #0b3d2e; letter-spacing: -1.2px; margin-bottom: 8px; line-height: 1.15; }

.land-legal-updated { font-size: 14px; color: #718096; font-weight: 600; margin-bottom: 36px; padding-bottom: 20px; border-bottom: 2px solid #e8f2ee; }

.land-legal h2 { font-size: 22px; font-weight: 700; color: #0b3d2e; margin: 32px 0 12px; letter-spacing: -0.4px; }

.land-legal h2:first-of-type { margin-top: 0; }

.land-legal p { font-size: 15px; color: #4a5568; line-height: 1.75; margin-bottom: 12px; }

.land-legal ul { list-style: none; padding: 0; margin: 12px 0 20px; }

.land-legal ul li {
  background: transparent;
  padding: 8px 0 8px 28px;
  margin: 0;
  border: none;
  border-left: none;
  border-radius: 0;
  font-size: 15px;
  color: #4a5568;
  line-height: 1.7;
  position: relative;
  display: block;
  box-shadow: none;
  transform: none;
}

.land-legal ul li:hover { box-shadow: none; transform: none; }

.land-legal ul li::before {
  content: '▸';
  position: absolute;
  left: 8px;
  color: #11998e;
  font-weight: 700;
}

.land-legal strong { color: #0b3d2e; font-weight: 700; }

.land-legal a {
  color: #11998e;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.land-legal a:hover { border-bottom-color: #11998e; }

.land-wa-link { color: #25d366 !important; }
.land-wa-link:hover { border-bottom-color: #25d366 !important; }

.land-contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 24px 0 40px; }

.land-contact-card {
  background: white;
  padding: 28px 22px;
  border-radius: 16px;
  border: 1px solid #e8f2ee;
  box-shadow: 0 4px 14px rgba(17, 153, 142, 0.06);
  text-decoration: none;
  color: inherit;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.land-contact-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(17, 153, 142, 0.15); border-bottom-color: #e8f2ee; }

.land-contact-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  margin-bottom: 12px;
  box-shadow: 0 6px 16px rgba(17, 153, 142, 0.25);
}

.land-contact-card h3 { font-size: 17px; font-weight: 700; color: #0b3d2e; margin: 0; text-transform: none; letter-spacing: -0.2px; }
.land-contact-card p { font-size: 14px; color: #718096; margin: 0; }
.land-contact-cta { font-size: 13px; font-weight: 700; color: #11998e; margin-top: 8px; }

/* Services CTA on Contact page */
.land-services-cta {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 28px 26px;
  background: linear-gradient(135deg, #f5faf8, #e8f5f1);
  border: 1.5px solid #b8dfd6;
  border-radius: 18px;
  margin: 32px 0 40px;
  box-shadow: 0 4px 14px rgba(17, 153, 142, 0.08);
}

.land-services-cta-icon { font-size: 40px; flex-shrink: 0; line-height: 1; }

.land-services-cta-body { flex: 1; min-width: 0; }

.land-services-cta h3 {
  font-size: 18px;
  font-weight: 700;
  color: #0b3d2e;
  margin: 0 0 8px;
  text-transform: none;
  letter-spacing: -0.3px;
}

.land-services-cta p {
  font-size: 14px;
  color: #4a5568;
  line-height: 1.65;
  margin: 0 0 16px;
}

.land-services-cta .land-btn { display: inline-flex; }

@media (max-width: 900px) {
  .landing-body { padding: 0; }
  .land-nav-links, .land-nav-actions { display: none; }
  .land-hamburger { display: block; }
  .land-hero { padding: 50px 0 60px; }
  .land-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .land-hero-content h1 { font-size: 36px; letter-spacing: -1px; }
  .land-hero-sub { font-size: 15px; }
  .land-hero-actions { margin-bottom: 32px; }
  .land-hero-stats { gap: 24px; }
  .land-hero-stats strong { font-size: 22px; }
  .land-hero-stats span { font-size: 11px; }
  .land-mockup { max-width: 100%; }
  .land-float-1 { top: 10px; left: -10px; font-size: 11px; padding: 8px 12px; }
  .land-float-2 { bottom: 20px; right: -10px; font-size: 11px; padding: 8px 12px; }
  .land-section { padding: 60px 0; }
  .land-section-head { margin-bottom: 40px; }
  .land-section-head h2 { font-size: 28px; letter-spacing: -0.8px; }
  .land-section-head p { font-size: 14px; }
  .land-features-grid { grid-template-columns: 1fr; gap: 14px; }
  .land-feature-card { padding: 22px 20px; }
  .land-feature-icon { width: 44px; height: 44px; font-size: 20px; border-radius: 12px; margin-bottom: 14px; }
  .land-feature-card h3 { font-size: 16px; }
  .land-feature-card p { font-size: 13px; }
  .land-steps { grid-template-columns: 1fr; gap: 16px; }
  .land-step { padding: 24px 20px; }
  .land-step-num { width: 48px; height: 48px; font-size: 18px; margin-bottom: 14px; }
  .land-step h3 { font-size: 16px; }
  .land-step p { font-size: 13px; }
  .land-pricing-grid { grid-template-columns: 1fr; gap: 20px; }
  .land-price-popular { transform: scale(1); }
  .land-price-popular:hover { transform: translateY(-6px); }
  .land-price-card { padding: 28px 22px; }
  .land-price-num { font-size: 26px; }
  .land-cta { padding: 60px 0; }
  .land-cta h2 { font-size: 28px; letter-spacing: -0.8px; }
  .land-cta p { font-size: 15px; }
  .land-cta-actions { flex-direction: column; align-items: center; }
  .land-btn-lg { width: 100%; max-width: 320px; }
  .land-footer { padding: 40px 0 0; }
  .land-footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; padding-bottom: 28px; }
  .land-footer-desc { max-width: 100%; }
  .land-footer-bottom .land-container { flex-direction: column; text-align: center; gap: 6px; }
  .land-container { padding: 0 20px; }
  .land-legal { padding: 40px 0 60px; }
  .land-legal h1 { font-size: 28px; letter-spacing: -0.8px; }
  .land-legal h2 { font-size: 18px; margin: 24px 0 10px; }
  .land-legal p, .land-legal ul li { font-size: 14px; }
  .land-contact-grid { grid-template-columns: 1fr; }
  .land-contact-card { padding: 22px 18px; }
  .land-services-cta { flex-direction: column; padding: 22px 20px; gap: 14px; }
  .land-services-cta-icon { font-size: 34px; }
  .land-services-cta h3 { font-size: 16px; }
  .land-services-cta .land-btn { width: 100%; }
}

@media (max-width: 480px) {
  .land-hero-content h1 { font-size: 30px; }
  .land-section-head h2 { font-size: 24px; }
  .land-cta h2 { font-size: 24px; }
  .land-footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .land-hero-actions { flex-direction: column; align-items: stretch; }
  .land-hero-actions .land-btn { width: 100%; }
}

/* ==========================================
   EDU Suite Typography — Poppins Headings
   ========================================== */
h1, h2, h3, h4,
.brand,
.auth-box h2,
.mobile-title,
.land-brand-text,
.land-section-head h2,
.land-hero-content h1,
.land-cta h2,
.land-legal h1,
.land-feature-card h3,
.land-step h3,
.land-price-header h3,
.land-contact-card h3,
.land-services-cta h3 {
  font-family: 'Poppins', 'Inter', sans-serif !important;
  letter-spacing: -0.02em;
}

.stat-value,
.land-hero-stats strong,
.land-price-num,
.att-stat-value,
.land-step-num {
  font-family: 'Poppins', 'Inter', sans-serif !important;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand {
  font-weight: 700;
  letter-spacing: -0.03em;
}
