* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #1a5c5c;
  --primary-dark: #134545;
  --secondary: #e8871e;
  --accent: #e8871e;
  --dark: #2d4a4a;
  --light: #f8f7f2;
  --gray: #6b7a7a;
  --border: #e0e4e2;
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--light);
  color: var(--dark);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navbar */
.navbar {
  background: #f8f7f2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #e0e4e2;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1a5c5c;
  text-decoration: none;
}

.logo span {
  color: #e8871e;
}

.nav-links a {
  text-decoration: none;
  color: #2d4a4a;
  margin-left: 20px;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #e8871e;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #1a5c5c 0%, #2d7a7a 100%);
  color: white;
  padding: 80px 0;
  text-align: center;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 15px;
}

.hero .highlight {
  color: #e8871e;
}

.hero .tagline {
  font-size: 1.3rem;
  opacity: 0.9;
  margin-bottom: 30px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s;
}

.btn-primary {
  background: #e8871e;
  color: white;
}

.btn-primary:hover {
  background: #d47618;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-large {
  padding: 16px 40px;
  font-size: 1.2rem;
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

/* Earning Structure */
.earning-structure {
  padding: 60px 0;
  background: white;
}

.earning-structure h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 10px;
  color: var(--dark);
}

.section-desc {
  text-align: center;
  color: var(--gray);
  margin-bottom: 40px;
  font-size: 1.1rem;
}

.levels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
  margin-bottom: 40px;
}

.level-card {
  background: var(--light);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  border: 2px solid var(--border);
  transition: transform 0.3s, box-shadow 0.3s;
}

.level-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.level-number {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 5px;
}

.level-desc {
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 10px;
}

.level-amount {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--secondary);
}

.level-info {
  font-size: 0.8rem;
  color: var(--gray);
  margin-top: 8px;
}

.level-card.level-1 { border-color: #10b981; }
.level-card.level-2 { border-color: #3b82f6; }
.level-card.level-3 { border-color: #8b5cf6; }
.level-card.level-4 { border-color: #f59e0b; }
.level-card.level-5 { border-color: #ef4444; }

/* Earning Example */
.earning-example {
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  border-radius: 12px;
  padding: 30px;
  margin-top: 30px;
}

.earning-example h3 {
  margin-bottom: 15px;
  color: var(--primary);
}

.example-box p {
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 1rem;
}

.example-box p:last-child {
  border-bottom: none;
  color: var(--primary);
  font-weight: 600;
}

/* How It Works */
.how-it-works {
  padding: 60px 0;
  background: var(--light);
}

.how-it-works h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.step {
  text-align: center;
  padding: 30px;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.step-number {
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 15px;
}

.step h3 {
  margin-bottom: 10px;
}

.step p {
  color: var(--gray);
}

/* Auth Pages */
.auth-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 70px);
  padding: 40px 20px;
}

.auth-card {
  background: white;
  border-radius: 16px;
  padding: 40px;
  width: 100%;
  max-width: 450px;
  box-shadow: var(--shadow-lg);
}

.auth-card h2 {
  text-align: center;
  margin-bottom: 8px;
  font-size: 1.8rem;
}

.auth-subtitle {
  text-align: center;
  color: var(--gray);
  margin-bottom: 25px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: var(--dark);
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
}

.auth-footer {
  text-align: center;
  margin-top: 20px;
  color: var(--gray);
}

.auth-footer a {
  color: var(--primary);
  font-weight: 600;
}

/* Alert */
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-weight: 500;
}

.alert-error {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

/* Payment Card */
.payment-card {
  text-align: center;
}

.payment-desc {
  color: var(--gray);
  margin-bottom: 25px;
}

.fee-display {
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  color: white;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 25px;
}

.fee-label {
  font-size: 1rem;
  opacity: 0.9;
}

.fee-amount {
  font-size: 3rem;
  font-weight: 800;
  display: block;
}

.payment-note {
  margin-top: 15px;
  font-size: 0.85rem;
  color: var(--gray);
}

/* Dashboard */
.dashboard-container {
  padding: 30px 0;
}

.welcome-bar {
  margin-bottom: 30px;
}

.welcome-bar h1 {
  font-size: 1.8rem;
}

.member-since {
  color: var(--gray);
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: white;
  border-radius: 12px;
  padding: 25px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: var(--shadow);
}

.stat-icon {
  font-size: 2.5rem;
}

.stat-label {
  color: var(--gray);
  font-size: 0.9rem;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--dark);
}

.stat-card.wallet .stat-value { color: var(--secondary); }
.stat-card.earnings .stat-value { color: var(--primary); }

/* Referral Section */
.referral-section {
  background: white;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: var(--shadow);
}

.referral-section h2 {
  margin-bottom: 15px;
}

.referral-box {
  background: var(--light);
  border-radius: 8px;
  padding: 20px;
}

.referral-code {
  font-size: 1.1rem;
  margin-bottom: 15px;
}

.referral-link-box {
  display: flex;
  gap: 10px;
}

.referral-link-box input {
  flex: 1;
  padding: 12px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  background: white;
}

.referral-note {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--gray);
}

/* Earning Structure Dashboard */
.earning-structure-dashboard {
  background: white;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: var(--shadow);
}

.earning-structure-dashboard h2 {
  margin-bottom: 15px;
}

.levels-table table {
  width: 100%;
  border-collapse: collapse;
}

.levels-table th,
.levels-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.levels-table th {
  background: var(--light);
  font-weight: 600;
  color: var(--dark);
}

.levels-table tfoot td {
  font-weight: 700;
  background: var(--light);
}

.level-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: white;
}

.level-badge.level-1 { background: #10b981; }
.level-badge.level-2 { background: #3b82f6; }
.level-badge.level-3 { background: #8b5cf6; }
.level-badge.level-4 { background: #f59e0b; }
.level-badge.level-5 { background: #ef4444; }
.level-badge.level-6 { background: #6366f1; }
.level-badge.level-7 { background: #ec4899; }
.level-badge.level-8 { background: #14b8a6; }
.level-badge.level-9 { background: #f97316; }
.level-badge.level-10 { background: #64748b; }

/* Referrals List */
.referrals-list {
  background: white;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: var(--shadow);
}

.referrals-list h2 {
  margin-bottom: 15px;
}

.referral-cards {
  display: grid;
  gap: 10px;
}

.referral-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: var(--light);
  border-radius: 8px;
}

.ref-avatar {
  width: 45px;
  height: 45px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
}

.ref-info {
  flex: 1;
}

.ref-name {
  font-weight: 600;
}

.ref-date {
  font-size: 0.85rem;
  color: var(--gray);
}

.ref-earning {
  font-weight: 700;
  color: var(--secondary);
  font-size: 1.1rem;
}

/* Transactions */
.transactions-section {
  background: white;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: var(--shadow);
}

.transactions-section h2 {
  margin-bottom: 15px;
}

.transaction-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid var(--border);
}

.transaction-item:last-child {
  border-bottom: none;
}

.tx-desc {
  font-weight: 500;
}

.tx-date {
  font-size: 0.85rem;
  color: var(--gray);
}

.tx-amount {
  font-weight: 700;
  font-size: 1.1rem;
}

.transaction-item.credit .tx-amount {
  color: var(--secondary);
}

.transaction-item.debit .tx-amount {
  color: #dc2626;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 30px;
  color: var(--gray);
}

/* Footer */
.footer {
  background: #1a5c5c;
  color: #e0e4e2;
  padding: 20px 0;
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .hero .tagline { font-size: 1rem; }
  .levels-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: 1fr; }
  .referral-link-box { flex-direction: column; }
  .levels-table { overflow-x: auto; }
}


/* Social Login */
.social-divider {
  text-align: center;
  margin: 20px 0;
  position: relative;
}

.social-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
}

.social-divider span {
  background: white;
  padding: 0 15px;
  position: relative;
  color: var(--gray);
  font-size: 0.85rem;
  font-weight: 500;
}

.social-login {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s;
  border: 2px solid var(--border);
}

.btn-google {
  background: white;
  color: #333;
}

.btn-google:hover {
  background: #f8f9fa;
  border-color: #4285F4;
  box-shadow: 0 2px 8px rgba(66, 133, 244, 0.2);
}

.btn-facebook {
  background: #1877F2;
  color: white;
  border-color: #1877F2;
}

.btn-facebook:hover {
  background: #166fe5;
  box-shadow: 0 2px 8px rgba(24, 119, 242, 0.3);
}

.btn-social svg {
  flex-shrink: 0;
}


/* Benefits Page */
.benefits-header {
  text-align: center;
  margin-bottom: 40px;
}

.benefits-header h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.benefit-card {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  border-top: 3px solid var(--primary);
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.benefit-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.benefit-card h3 {
  margin-bottom: 8px;
  color: var(--dark);
}

.benefit-card p {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Earning Calculator */
.earning-calculator {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: var(--shadow);
  margin-bottom: 40px;
}

.earning-calculator h2 {
  margin-bottom: 20px;
  text-align: center;
}

.calc-table {
  overflow-x: auto;
}

.calc-table table {
  width: 100%;
  border-collapse: collapse;
}

.calc-table th,
.calc-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.calc-table th {
  background: var(--primary);
  color: white;
  font-weight: 600;
}

.calc-table tbody tr:hover {
  background: #f0f9ff;
}

.earning-green {
  color: #10b981;
  font-weight: 700;
}

.earning-total {
  color: var(--primary);
  font-size: 1.3rem;
}

.calc-table tfoot td {
  background: #f0f9ff;
  border-top: 2px solid var(--primary);
}

.calc-note {
  text-align: center;
  margin-top: 15px;
  font-size: 0.85rem;
  color: var(--gray);
  font-style: italic;
}

/* Why Join */
.why-join {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: var(--shadow);
  margin-bottom: 40px;
}

.why-join h2 {
  margin-bottom: 20px;
  text-align: center;
}

.reasons-list {
  display: grid;
  gap: 15px;
}

.reason-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 15px;
  background: var(--light);
  border-radius: 8px;
}

.reason-number {
  width: 35px;
  height: 35px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.reason-item strong {
  display: block;
  margin-bottom: 4px;
}

.reason-item p {
  color: var(--gray);
  font-size: 0.9rem;
  margin: 0;
}

/* CTA Section */
.cta-section {
  text-align: center;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  border-radius: 12px;
  padding: 40px;
  margin-bottom: 30px;
}

.cta-section h2 {
  color: white;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.cta-section .btn {
  background: white;
  color: var(--primary);
}

.cta-section .btn:hover {
  background: #f0f0f0;
}


/* Shop Page */
.coming-soon-banner {
  text-align: center;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: white;
  border-radius: 16px;
  padding: 50px 30px;
  margin-bottom: 40px;
}

.coming-soon-icon {
  font-size: 4rem;
  margin-bottom: 15px;
}

.coming-soon-banner h1 {
  font-size: 2.2rem;
  margin-bottom: 15px;
}

.coming-soon-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 15px;
  backdrop-filter: blur(5px);
}

.coming-soon-desc {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* Cashback Section */
.cashback-section {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: var(--shadow);
  margin-bottom: 40px;
}

.cashback-section h2 {
  text-align: center;
  margin-bottom: 25px;
  color: var(--dark);
}

.cashback-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.cashback-card {
  text-align: center;
  padding: 25px;
  background: var(--light);
  border-radius: 10px;
  border: 1px solid var(--border);
}

.cashback-icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.cashback-card h3 {
  margin-bottom: 8px;
}

.cashback-card p {
  color: var(--gray);
  font-size: 0.9rem;
}

/* Shopkeeper Section */
.shopkeeper-section {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: var(--shadow);
  margin-bottom: 40px;
}

.shopkeeper-section h2 {
  text-align: center;
  margin-bottom: 10px;
}

.shop-desc {
  text-align: center;
  color: var(--gray);
  margin-bottom: 25px;
  font-size: 1rem;
}

.shop-register-form {
  max-width: 550px;
  margin: 0 auto;
  background: var(--light);
  border-radius: 12px;
  padding: 30px;
}

.shop-register-form h3 {
  text-align: center;
  margin-bottom: 20px;
  color: var(--primary);
}


/* OTP Section */
.otp-section {
  text-align: center;
}

.otp-icon {
  font-size: 3rem;
  margin-bottom: 10px;
}

.otp-desc {
  color: var(--gray);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.otp-input {
  text-align: center;
  font-size: 1.5rem !important;
  letter-spacing: 8px;
  font-weight: 700;
}

.btn-link {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
  text-decoration: underline;
}

.btn-link:hover {
  color: var(--primary-dark);
}

/* Forgot Password Link */
.forgot-link {
  color: var(--primary);
  font-size: 0.85rem;
  text-decoration: none;
  font-weight: 500;
}

.forgot-link:hover {
  text-decoration: underline;
}

/* Alert Success (if not already defined) */
.alert-success {
  background: #d1fae5;
  color: #059669;
  border: 1px solid #a7f3d0;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-weight: 500;
}


/* Top Bar - Email Info */
.top-bar {
  background: #1a5c5c;
  color: #e0e4e2;
  padding: 8px 0;
  font-size: 0.8rem;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-bar a {
  color: #e8871e;
  text-decoration: none;
  font-weight: 500;
}

.top-bar a:hover {
  color: white;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .top-bar-content {
    flex-direction: column;
    text-align: center;
    gap: 4px;
  }
}


/* Notifications */
.notification-list {
  display: grid;
  gap: 12px;
}

.notification-item {
  background: white;
  border-radius: 10px;
  padding: 18px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
  border-left: 3px solid #e5e7eb;
}

.notification-item.unread {
  border-left-color: #2563eb;
  background: #eff6ff;
}

.notif-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.notif-new {
  background: #dc2626;
  color: white;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 700;
}

.notif-message {
  color: #374151;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 8px;
}

.notif-date {
  font-size: 0.8rem;
  color: #9ca3af;
}

.notif-badge {
  background: #dc2626;
  color: white;
  padding: 1px 6px;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 700;
  margin-left: 3px;
}


/* ============ MOBILE RESPONSIVE ============ */

/* Mobile Navigation */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 5px;
  color: #1a5c5c;
}

@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: #f8f7f2;
    flex-direction: column;
    padding: 15px 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 999;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    margin-left: 0;
    padding: 10px 0;
    border-bottom: 1px solid #e0e4e2;
  }

  .navbar .container {
    position: relative;
  }

  /* Top bar mobile */
  .top-bar-content {
    font-size: 0.7rem;
  }

  /* Hero */
  .hero { padding: 50px 0; }
  .hero h1 { font-size: 1.8rem; }
  .hero .tagline { font-size: 1rem; }

  /* Levels grid */
  .levels-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  /* Stats */
  .stats-grid { grid-template-columns: 1fr; }

  /* Steps */
  .steps { grid-template-columns: 1fr; }

  /* Benefits */
  .benefits-grid { grid-template-columns: 1fr; }

  /* Auth card */
  .auth-container { padding: 20px 15px; min-height: auto; }
  .auth-card { padding: 25px 20px; margin: 0 0 15px 0; max-width: 100%; }
  .auth-extra-info { display: none !important; }

  /* Dashboard */
  .dashboard-container { padding: 15px 0; }
  .welcome-bar h1 { font-size: 1.4rem; }

  /* Tables */
  .levels-table, .table-responsive { overflow-x: auto; }
  .levels-table table, .admin-table { font-size: 0.8rem; min-width: 600px; }

  /* Referral link */
  .referral-link-box { flex-direction: column; }

  /* Referral cards */
  .referral-card { flex-wrap: wrap; }

  /* Transaction items */
  .transaction-item { flex-direction: column; align-items: flex-start; gap: 8px; }

  /* Payment card */
  .payment-header { flex-direction: column; gap: 10px; }
  .payment-actions { flex-direction: column; }
  .action-note { width: 100%; }

  /* Form group side by side */
  div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Earning example */
  .earning-example { padding: 15px; }
  .example-box p { font-size: 0.85rem; }

  /* Cashback */
  .cashback-grid { grid-template-columns: 1fr; }

  /* Shop register form */
  .shop-register-form { padding: 20px 15px; }

  /* Stat card */
  .stat-card { padding: 18px; }
  .stat-value { font-size: 1.4rem; }

  /* Guest features */
  .guest-features { grid-template-columns: 1fr; }

  /* Filter tabs */
  .filter-tabs { gap: 5px; }
  .filter-tab { padding: 6px 12px; font-size: 0.8rem; }

  /* CTA */
  .btn-large { padding: 14px 30px; font-size: 1rem; }

  /* Coming soon */
  .coming-soon-banner { padding: 30px 15px; }
  .coming-soon-banner h1 { font-size: 1.6rem; }

  /* Earning calculator */
  .calc-table table { min-width: 500px; }

  /* Ticket card */
  .ticket-card-header { flex-direction: column; gap: 8px; }
  .ticket-card-footer { flex-direction: column; gap: 8px; align-items: flex-start; }
}

@media (max-width: 480px) {
  .container { padding: 0 12px; }
  .hero h1 { font-size: 1.5rem; }
  .levels-grid { grid-template-columns: 1fr; }
  .level-amount { font-size: 1.4rem; }
  .logo { font-size: 1.2rem; }
  .fee-amount { font-size: 2.2rem; }
  .stat-card { flex-direction: column; text-align: center; }
  .referral-section, .transactions-section, .earning-structure-dashboard, .referrals-list {
    padding: 15px;
  }
  .job-card { padding: 15px; }
  .job-salary { margin-top: 8px; }
  .salary-badge { font-size: 0.75rem; }
  .chat-messages { min-height: 250px; padding: 12px; }
  .chat-msg { max-width: 90%; }
}


/* Dashboard Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.page-link {
  padding: 6px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  text-decoration: none;
  color: #374151;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.page-link:hover {
  background: #eff6ff;
  border-color: #2563eb;
  color: #2563eb;
}

.page-link.active {
  background: #2563eb;
  color: white;
  border-color: #2563eb;
}


/* Shop Browse Section */
.shopkeeper-browse {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: var(--shadow);
  margin-bottom: 30px;
}

.shopkeeper-browse h2 {
  margin-bottom: 15px;
}

.shop-filter-form {
  margin-bottom: 15px;
}

.shop-filter-row {
  display: flex;
  gap: 10px;
}

.shop-filter-row input {
  flex: 1;
  padding: 10px 14px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.95rem;
}

.shop-filter-row input:focus {
  outline: none;
  border-color: #2563eb;
}

/* Shops Grid - 4 columns */
.shops-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-top: 20px;
}

.shop-card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 18px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.shop-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.shop-card-avatar {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.3rem;
  margin: 0 auto 10px;
}

.shop-card h3 {
  font-size: 0.95rem;
  margin-bottom: 5px;
  color: #1f2937;
}

.shop-owner-name {
  font-size: 0.8rem;
  color: #6b7280;
  margin-bottom: 4px;
}

.shop-location {
  font-size: 0.8rem;
  color: #2563eb;
  margin-bottom: 6px;
}

.shop-type-badge {
  display: inline-block;
  background: #eff6ff;
  color: #2563eb;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.shop-address {
  font-size: 0.75rem;
  color: #9ca3af;
  line-height: 1.3;
}

@media (max-width: 900px) {
  .shops-grid { grid-template-columns: repeat(2, 1fr); }
  .shop-filter-row { flex-direction: column; }
}

@media (max-width: 480px) {
  .shops-grid { grid-template-columns: 1fr; }
}


/* Shop filter selects */
.shop-filter-row select {
  flex: 1;
  padding: 10px 14px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.95rem;
  background: white;
}

.shop-filter-row select:focus {
  outline: none;
  border-color: #2563eb;
}
