/* =============================================
   VILIXO - Global Stylesheet
   Blue + Green Gradient Modern UI
   ============================================= */

/* =============================================
   CSS Variables
   ============================================= */
:root {
  --primary-blue: #1a73e8;
  --primary-green: #0d9f6e;
  --gradient-primary: linear-gradient(135deg, #1a73e8 0%, #0d9f6e 100%);
  --gradient-hero: linear-gradient(135deg, #0a1628 0%, #0d3b66 40%, #0d9f6e 100%);
  --gradient-card: linear-gradient(135deg, #f0f9ff 0%, #f0fdf4 100%);
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-light: #9ca3af;
  --bg-primary: #f8fafc;
  --bg-white: #ffffff;
  --bg-dark: #0f172a;
  --border-color: #e5e7eb;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;
  --sidebar-width: 260px;
  --header-height: 70px;
  --transition: all 0.3s ease;
}

/* =============================================
   Reset & Base
   ============================================= */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =============================================
   Navbar
   ============================================= */
.navbar {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 700;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
}

.logo-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-logo-image {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 10px;
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-link {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-blue);
  background: rgba(26, 115, 232, 0.08);
}

.btn-nav {
  padding: 8px 20px !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
}

.btn-login {
  color: var(--primary-blue) !important;
  border: 2px solid var(--primary-blue);
}

.btn-signup {
  background: var(--gradient-primary) !important;
  color: white !important;
}

.btn-logout {
  color: var(--danger) !important;
  border: 2px solid var(--danger);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-primary);
}

/* =============================================
   Hero Section
   ============================================= */
.hero {
  background: var(--gradient-hero);
  padding: 100px 0 120px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-size: 3.2rem;
  font-weight: 800;
  color: white;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-text h1 span {
  background: linear-gradient(135deg, #60a5fa, #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 30px;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
}

.hero-image {
  flex: 1;
  text-align: center;
}

.hero-image img {
  max-width: 450px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 50px;
}

.stat-item {
  text-align: center;
}

.stat-item h3 {
  font-size: 2rem;
  font-weight: 800;
  color: white;
}

.stat-item p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

/* =============================================
   Buttons
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.98rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 15px rgba(26, 115, 232, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 115, 232, 0.4);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
}

.btn-secondary {
  background: var(--bg-white);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-success {
  background: var(--success);
  color: white;
}

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-warning {
  background: var(--warning);
  color: white;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.88rem;
  font-weight: 600;
}

.btn-lg {
  padding: 14px 36px;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

/* =============================================
   Cards
   ============================================= */
.card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.card-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

.card-body {
  padding: 32px;
  line-height: 1.6;
}

.card-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  background: #fafbfc;
}

/* Stat Cards */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.stat-card .stat-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.stat-icon.blue {
  background: rgba(26, 115, 232, 0.1);
  color: var(--primary-blue);
}

.stat-icon.green {
  background: rgba(13, 159, 110, 0.1);
  color: var(--primary-green);
}

.stat-icon.orange {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}

.stat-icon.red {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

.stat-icon.purple {
  background: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
}

.stat-icon.teal {
  background: rgba(20, 184, 166, 0.1);
  color: #14b8a6;
}

.stat-icon.cyan {
  background: rgba(6, 182, 212, 0.1);
  color: #06b6d4;
}

.stat-card .stat-info h4 {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-card .stat-info p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin: 0;
}

/* =============================================
   Product Cards
   ============================================= */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 24px;
}

.product-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.user-product-thumb {
  height: 180px;
  background: #f0f4f8;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.user-product-body {
  display: flex;
  flex-direction: column;
  min-height: 300px;
}

.user-product-category {
  font-size: 10px;
  margin-bottom: 8px;
  align-self: flex-start;
}

.user-product-title {
  min-height: 54px;
  margin: 0;
}

.user-product-desc {
  font-size: 13px;
  min-height: 58px;
  margin-top: 6px;
}

.user-product-price-row {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-top: auto;
  gap: 10px;
}

.user-product-price {
  font-size: 18px;
  color: var(--primary-color);
}

.user-product-stock {
  font-size: 12px;
  white-space: nowrap;
}

.user-product-actions {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.user-product-stock-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.user-product-buy-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.user-product-qty {
  width: 64px;
  height: 46px;
  text-align: center;
  flex: 0 0 64px;
}

.user-product-add-btn {
  flex: 1;
  height: 46px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0 14px;
}

.product-image {
  height: 220px;
  background: var(--gradient-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--primary-green);
  position: relative;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--danger);
  color: white;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.product-info {
  padding: 20px;
}

.product-category {
  font-size: 0.78rem;
  color: var(--primary-green);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.product-info h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.product-price {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.product-price .current {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-blue);
}

.product-price .mrp {
  font-size: 0.9rem;
  color: var(--text-light);
  text-decoration: line-through;
}

.product-actions {
  display: flex;
  gap: 10px;
}

/* =============================================
   Sections
   ============================================= */
.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.section-dark {
  background: var(--bg-dark);
  color: white;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 2px solid var(--border-color);
  transition: var(--transition);
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.feature-icon {
  width: 70px;
  height: 70px;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: white;
  margin: 0 auto 24px;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.05);
}

.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 14px;
  font-weight: 800;
  line-height: 1.4;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* =============================================
   Forms
   ============================================= */
.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.4;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--bg-white);
  transition: var(--transition);
  color: var(--text-primary);
  line-height: 1.5;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.form-control::placeholder {
  color: var(--text-light);
}

select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

.form-text {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: 4px;
}

.form-error {
  color: var(--danger);
  font-size: 0.82rem;
  margin-top: 4px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Auth Forms */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: var(--gradient-hero);
}

.auth-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-xl);
}

.auth-card h2 {
  font-size: 1.6rem;
  margin-bottom: 8px;
  text-align: center;
}

.auth-card .subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 30px;
}

.auth-links {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.auth-links a {
  color: var(--primary-blue);
  font-weight: 600;
}

/* =============================================
   Tables
   ============================================= */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
}

table {
  width: 100%;
  border-collapse: collapse;
}

table thead th {
  background: linear-gradient(135deg, #f8fafc 0%, #f0fdf4 100%);
  padding: 14px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  text-align: left;
  white-space: nowrap;
}

table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
}

table tbody tr:hover {
  background: rgba(26, 115, 232, 0.02);
}

table tbody tr:last-child td {
  border-bottom: none;
}

/* =============================================
   Badges
   ============================================= */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.badge-success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}

.badge-danger {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

.badge-info {
  background: rgba(59, 130, 246, 0.1);
  color: var(--info);
}

.badge-admin {
  background: var(--gradient-primary);
  color: white;
}

/* =============================================
   Dashboard Layout
   ============================================= */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-white);
  border-right: 1px solid var(--border-color);
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: var(--transition);
}

.sidebar-header {
  position: relative;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-blue);
}

.sidebar-logo i {
  color: var(--primary-green);
}

.sidebar-logo-image {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}

.sidebar-close {
  display: none;
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--text-secondary);
}

.sidebar-user {
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.user-avatar {
  width: 45px;
  height: 45px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.user-info h4 {
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.user-info .user-id {
  font-size: 0.78rem;
  color: var(--text-light);
  display: block;
}

.sidebar-nav ul {
  padding: 10px 0;
}

.nav-section {
  padding: 16px 20px 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: var(--transition);
}

.sidebar-nav a:hover {
  background: rgba(26, 115, 232, 0.05);
  color: var(--primary-blue);
}

.sidebar-nav a.active {
  background: rgba(26, 115, 232, 0.08);
  color: var(--primary-blue);
  border-left-color: var(--primary-blue);
  font-weight: 600;
}

.sidebar-nav a i {
  width: 20px;
  text-align: center;
  font-size: 0.95rem;
}

.nav-divider {
  height: 1px;
  background: var(--border-color);
  margin: 10px 20px;
}

.logout-link {
  color: var(--danger) !important;
}

/* Main Content */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
}

.page-header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  padding: 20px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.page-header h2 {
  font-size: 1.4rem;
  font-weight: 700;
}

.page-header .breadcrumb {
  font-size: 0.82rem;
  color: var(--text-light);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--text-primary);
  padding: 5px;
}

.content-area {
  padding: 30px;
}

/* =============================================
   Alerts
   ============================================= */
.alert {
  padding: 18px 24px;
  border-radius: 10px;
  margin-bottom: 28px;
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 2px solid;
  line-height: 1.5;
}

.alert>i {
  flex: 0 0 auto;
}

.alert-message {
  flex: 1;
  min-width: 0;
  line-height: 1.65;
}

.alert-message strong {
  display: inline-block;
  margin: 0 4px;
}

.alert-success {
  background: rgba(16, 185, 129, 0.08);
  color: #065f46;
  border-color: rgba(16, 185, 129, 0.4);
}

.alert-warning {
  background: rgba(245, 158, 11, 0.08);
  color: #92400e;
  border-color: rgba(245, 158, 11, 0.4);
}

.alert-danger {
  background: rgba(239, 68, 68, 0.08);
  color: #991b1b;
  border-color: rgba(239, 68, 68, 0.4);
}

.alert-info {
  background: rgba(59, 130, 246, 0.08);
  color: #1e40af;
  border-color: rgba(59, 130, 246, 0.4);
}

/* =============================================
   Genealogy Tree
   ============================================= */
.genealogy-tree {
  overflow: hidden;
  padding: 0;
  min-height: 460px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: #f8fafc;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.tree {
  width: max-content;
  min-width: 100%;
  display: flex;
  justify-content: center;
  transform-origin: 0 0;
  transition: none;
  padding: 24px 24px 24px;
}

.tree-node-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 10px;
}

.node-card {
  min-width: 170px;
  max-width: 190px;
  text-align: center;
  background: #fff;
  border: 2px solid var(--border-color);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  padding: 10px 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-primary);
  text-decoration: none;
}

.node-card:hover {
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-md);
}

.node-card.highlight {
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.2);
}

.node-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e5e7eb;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.node-name {
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.2;
}

.node-id,
.node-count {
  font-size: 0.73rem;
  color: var(--text-secondary);
  line-height: 1.2;
}

.node-state {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  border-radius: 999px;
  padding: 3px 8px;
}

.status-inactive {
  border-color: #ef4444;
  background: #fff5f5;
}

.status-inactive .node-state {
  color: #b91c1c;
  background: #fee2e2;
}

.status-active-no-kyc {
  border-color: #f59e0b;
  background: #fffbeb;
}

.status-active-no-kyc .node-state {
  color: #b45309;
  background: #fef3c7;
}

.status-active-kyc {
  border-color: #16a34a;
  background: #f0fdf4;
}

.status-active-kyc .node-state {
  color: #166534;
  background: #dcfce7;
}

.node-empty {
  border-style: dashed;
  color: var(--text-light);
  background: #f8fafc;
  min-height: 90px;
  justify-content: center;
}

.tree-children {
  margin-top: 22px;
  padding-top: 20px;
  display: flex;
  justify-content: center;
  gap: 34px;
  position: relative;
}

.tree-children::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 20px;
  background: #cbd5e1;
  transform: translateX(-50%);
}

.tree-children::after {
  content: '';
  position: absolute;
  top: 20px;
  left: calc(25% + 8px);
  right: calc(25% + 8px);
  height: 2px;
  background: #cbd5e1;
}

/* Handle single left child */
.tree-children.single-left::after {
  left: 50%;
  right: auto;
  width: 0;
}

/* Handle single right child */
.tree-children.single-right::after {
  right: 50%;
  left: auto;
  width: 0;
}

.tree-children>.tree-node-wrap::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 50%;
  width: 2px;
  height: 20px;
  background: #cbd5e1;
  transform: translateX(-50%);
}

.tree-zoom {
  display: inline-flex;
  gap: 8px;
}

.tree-zoom button {
  border: 1px solid var(--border-color);
  background: #fff;
  border-radius: 8px;
  width: 34px;
  height: 34px;
  cursor: pointer;
}

.tree-zoom button:hover {
  background: #f1f5f9;
}

.tree-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 12px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot-red {
  background: #ef4444;
}

.dot-orange {
  background: #f59e0b;
}

.dot-green {
  background: #16a34a;
}

/* =============================================
   Pagination
   ============================================= */
.pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 24px;
}

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  transition: var(--transition);
}

.pagination a:hover {
  background: var(--primary-blue);
  color: white;
  border-color: var(--primary-blue);
}

.pagination .active {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
}

/* =============================================
   Tabs
   ============================================= */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 24px;
}

.tab-btn {
  padding: 12px 24px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
}

.tab-btn:hover {
  color: var(--primary-blue);
}

.tab-btn.active {
  color: var(--primary-blue);
  border-bottom-color: var(--primary-blue);
  font-weight: 600;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* =============================================
   Modal
   ============================================= */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.show {
  display: flex;
}

.modal {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 1.15rem;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--text-light);
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* =============================================
   Toast / Notifications
   ============================================= */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  background: var(--bg-white);
  box-shadow: var(--shadow-lg);
  min-width: 300px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideIn 0.3s ease;
  border-left: 4px solid var(--info);
}

.toast.success {
  border-left-color: var(--success);
}

.toast.error {
  border-left-color: var(--danger);
}

.toast.warning {
  border-left-color: var(--warning);
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* =============================================
   File Upload
   ============================================= */
.upload-area {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 30px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.upload-area:hover {
  border-color: var(--primary-blue);
  background: rgba(26, 115, 232, 0.02);
}

.upload-area i {
  font-size: 2rem;
  color: var(--text-light);
  margin-bottom: 10px;
}

.upload-area p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* =============================================
   Search
   ============================================= */
.search-box {
  position: relative;
  max-width: 400px;
}

.search-box input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  border: 1px solid var(--border-color);
  border-radius: 50px;
  font-size: 0.9rem;
  background: var(--bg-white);
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.search-box i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
}

/* =============================================
   Filters
   ============================================= */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
  border: 1px solid var(--border-color);
  background: var(--bg-white);
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-secondary);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-blue);
  color: white;
  border-color: var(--primary-blue);
}

/* =============================================
   Wallet Section
   ============================================= */
.wallet-card {
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  padding: 30px;
  color: white;
  margin-bottom: 24px;
}

.wallet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wallet-user {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.wallet-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.wallet-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wallet-avatar span {
  font-size: 1.2rem;
  font-weight: 700;
}

.wallet-user-meta h4 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.wallet-user-meta p {
  margin: 2px 0 0;
  opacity: 0.88;
  font-size: 0.83rem;
  word-break: break-word;
}

.wallet-balance-row {
  margin-top: 16px;
}

.wallet-balance-row small {
  display: block;
  opacity: 0.85;
  margin-bottom: 4px;
}

.wallet-balance-row h2 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.15;
}

.wallet-footer {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.wallet-meta-item {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  padding: 10px 12px;
}

.wallet-meta-item small {
  display: block;
  opacity: 0.82;
  font-size: 0.78rem;
  margin-bottom: 4px;
}

.wallet-meta-item strong {
  display: block;
  font-size: 0.94rem;
  line-height: 1.3;
  word-break: break-word;
}

.wallet-two-cols {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wallet-value-credit {
  color: #22c55e;
}

.wallet-value-debit {
  color: #f87171;
}

.wallet-card h3 {
  font-size: 0.9rem;
  font-weight: 400;
  opacity: 0.8;
  margin-bottom: 8px;
}

.wallet-card .balance {
  font-size: 2.5rem;
  font-weight: 800;
}

.wallet-card .balance-sub {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-top: 4px;
}

@media (max-width: 992px) {
  .wallet-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 576px) {
  .wallet-card {
    padding: 18px;
  }

  .wallet-header {
    align-items: flex-start;
  }

  .wallet-footer {
    grid-template-columns: 1fr;
  }

  .wallet-balance-row h2 {
    font-size: 1.6rem;
  }
}

/* =============================================
   Referral Copy
   ============================================= */
.referral-box {
  display: block;
  background: #f1f5f9;
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.referral-box h4 {
  margin: 0 0 8px 0;
}

.referral-box .text-muted {
  margin: 0 0 12px 0;
}

.referral-link-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.referral-box input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--border-color);
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.9rem;
  color: var(--text-primary);
  font-family: monospace;
}

.referral-link-wrapper .btn {
  flex-shrink: 0;
  white-space: nowrap;
}

.referral-box input:focus {
  outline: none;
}

@media (max-width: 768px) {
  .referral-link-wrapper {
    flex-direction: column;
    align-items: stretch;
  }

  .referral-link-wrapper .btn {
    width: 100%;
  }
}

/* =============================================
   Empty State
   ============================================= */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-state i {
  font-size: 3rem;
  color: var(--text-light);
  margin-bottom: 16px;
}

.empty-state h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

/* =============================================
   Footer
   ============================================= */
.footer {
  background: var(--bg-dark);
  padding: 60px 0 0;
  color: rgba(255, 255, 255, 0.8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer h3,
.footer h4 {
  color: white;
  margin-bottom: 16px;
}

.footer h3 i {
  color: var(--primary-green);
}

.footer p {
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer ul li {
  margin-bottom: 10px;
}

.footer ul li a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition);
}

.footer ul li a:hover {
  color: white;
}

.contact-info li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
}

.contact-info li i {
  color: var(--primary-green);
  width: 18px;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.social-links a {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--gradient-primary);
  color: white;
}

.footer-bottom {
  text-align: center;
  padding: 20px 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

/* =============================================
   Utility Classes
   ============================================= */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-success {
  color: var(--success);
}

.text-danger {
  color: var(--danger);
}

.text-warning {
  color: var(--warning);
}

.text-muted {
  color: var(--text-light);
}

.mt-1 {
  margin-top: 10px;
}

.mt-2 {
  margin-top: 20px;
}

.mt-3 {
  margin-top: 30px;
}

.mb-1 {
  margin-bottom: 10px;
}

.mb-2 {
  margin-bottom: 20px;
}

.mb-3 {
  margin-bottom: 30px;
}

.d-flex {
  display: flex;
}

.gap-1 {
  gap: 10px;
}

.gap-2 {
  gap: 20px;
}

.align-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.flex-wrap {
  flex-wrap: wrap;
}

.w-100 {
  width: 100%;
}

.hidden {
  display: none;
}

/* =============================================
   Loading Spinner
   ============================================= */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-color);
  border-top-color: var(--primary-blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 20px auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* =============================================
   ENHANCED PUBLIC PAGES
   ============================================= */

/* --- Navbar Glassmorphism & Scroll Effect --- */
.navbar {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.5);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.97);
}

.nav-link i {
  font-size: 0.78rem;
  opacity: 0.6;
}

/* --- Hero Redesign --- */
.hero {
  background: var(--gradient-hero);
  padding: 140px 0 100px;
  position: relative;
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(13, 159, 110, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: heroPulse 8s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(26, 115, 232, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  animation: heroPulse 10s ease-in-out infinite reverse;
}

@keyframes heroPulse {

  0%,
  100% {
    transform: scale(1) translate(0, 0);
  }

  50% {
    transform: scale(1.1) translate(20px, -20px);
  }
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  padding: 8px 20px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
  animation: fadeInUp 0.8s ease;
}

.hero-badge i {
  color: #34d399;
}

.hero-text h1 {
  font-size: 3.8rem;
  font-weight: 800;
  color: white;
  line-height: 1.12;
  margin-bottom: 24px;
  letter-spacing: -1px;
  animation: fadeInUp 0.8s ease 0.1s both;
}

.hero-text h1 .highlight {
  background: linear-gradient(135deg, #60a5fa, #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text>p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 36px;
  max-width: 520px;
  line-height: 1.7;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-buttons .btn-primary {
  padding: 16px 36px;
  font-size: 1.05rem;
  box-shadow: 0 8px 30px rgba(13, 159, 110, 0.35);
}

.hero-buttons .btn-outline {
  padding: 16px 36px;
  font-size: 1.05rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  color: white;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

.hero-buttons .btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.6);
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: fadeInUp 1s ease 0.4s both;
}

.hero-glass-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 40px;
  width: 100%;
  max-width: 420px;
}

.hero-glass-card .glass-stat {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-glass-card .glass-stat:last-child {
  border-bottom: none;
}

.hero-glass-card .glass-stat .gs-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.gs-icon.blue {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
}

.gs-icon.green {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.gs-icon.amber {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

.gs-icon.purple {
  background: rgba(139, 92, 246, 0.2);
  color: #a78bfa;
}

.hero-glass-card .glass-stat h4 {
  font-size: 1.4rem;
  color: white;
  font-weight: 700;
  margin-bottom: 2px;
}

.hero-glass-card .glass-stat p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 48px;
  animation: fadeInUp 0.8s ease 0.5s both;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.88rem;
}

.trust-item i {
  color: #34d399;
  font-size: 1rem;
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Section Layouts --- */
.pub-section {
  padding: 100px 0;
  position: relative;
}

.pub-section.bg-light {
  background: #f8fafc;
}

.pub-section.bg-gradient {
  background: var(--gradient-hero);
  color: white;
}

.pub-section.bg-pattern {
  background: #f8fafc;
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%231a73e8' fill-opacity='0.03'%3E%3Ccircle cx='3' cy='3' r='1.5'/%3E%3C/g%3E%3C/svg%3E");
}

.section-head {
  text-align: center;
  margin-bottom: 60px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.section-head .section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(26, 115, 232, 0.1), rgba(13, 159, 110, 0.1));
  color: var(--primary-blue);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 6px 16px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 16px;
}

.section-head h2 {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.pub-section.bg-gradient .section-head h2 {
  color: white;
}

.section-head p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.pub-section.bg-gradient .section-head p {
  color: rgba(255, 255, 255, 0.7);
}

/* --- Feature Cards Enhanced --- */
.feature-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-white);
  border-radius: 20px;
  padding: 40px 32px;
  border: 2px solid var(--border-color);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.4s ease;
  transform-origin: left;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(26, 115, 232, 0.12);
  border-color: transparent;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(26, 115, 232, 0.1), rgba(13, 159, 110, 0.1));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary-blue);
  margin-bottom: 20px;
  transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
  background: var(--gradient-primary);
  color: white;
  transform: scale(1.05);
}

.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 14px;
  font-weight: 800;
  line-height: 1.4;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* --- Product Cards Enhanced --- */
.pub-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 20px;
}

.pub-product-card {
  background: var(--bg-white);
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid var(--border-color);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pub-product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  border-color: transparent;
}

.pub-product-card .product-thumb {
  height: 240px;
  background: linear-gradient(135deg, #f0f9ff 0%, #f0fdf4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.pub-product-card .product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.pub-product-card:hover .product-thumb img {
  transform: scale(1.08);
}

.pub-product-card .product-thumb .no-img {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--primary-green);
}

.pub-product-card .product-thumb .no-img i {
  font-size: 3rem;
  opacity: 0.4;
}

.pub-product-card .product-thumb .bv-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(16, 185, 129, 0.9);
  color: white;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.pub-product-card .product-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.pub-product-card .product-category {
  font-size: 0.75rem;
  color: var(--primary-green);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
  line-height: 1.4;
}

.pub-product-card .product-body h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text-primary);
  line-height: 1.45;
}

.pub-product-card .product-body .desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.pub-product-card .product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  margin-top: auto;
  gap: 12px;
}

.pub-product-card .product-footer .price {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary-blue);
  letter-spacing: -0.5px;
}

.pub-product-card .product-footer .btn {
  border-radius: 12px;
}

/* --- How It Works Steps --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  padding: 0 20px;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 50px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-blue), var(--primary-green));
  z-index: 0;
  opacity: 0.2;
}

.step-card {
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 28px 20px;
}

.step-number {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--bg-white);
  border: 3px solid transparent;
  background-clip: padding-box;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 auto 20px;
  position: relative;
  color: var(--primary-blue);
  box-shadow: 0 8px 30px rgba(26, 115, 232, 0.15);
  transition: all 0.4s ease;
}

.step-number::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--gradient-primary);
  z-index: -1;
}

.step-number::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: white;
  z-index: -1;
}

.step-card:hover .step-number {
  transform: scale(1.1);
  box-shadow: 0 12px 40px rgba(26, 115, 232, 0.25);
}

.step-card:hover .step-number::after {
  background: var(--gradient-primary);
}

.step-card:hover .step-number {
  color: white;
}

.step-card h4 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text-primary);
  line-height: 1.4;
}

.step-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin: 0;
}

/* --- Stats Counter --- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
  padding: 60px 0;
}

.stats-bar .stat-item h3 {
  font-size: 2.8rem;
  font-weight: 800;
  color: white;
  line-height: 1;
  margin-bottom: 8px;
}

.stats-bar .stat-item h3 span {
  background: linear-gradient(135deg, #60a5fa, #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stats-bar .stat-item p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

/* --- Page Banner (for sub pages) --- */
.page-banner {
  background: var(--gradient-hero);
  padding: 130px 0 70px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.page-banner::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(13, 159, 110, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.page-banner .container {
  position: relative;
  z-index: 2;
}

.page-banner h1 {
  font-size: 3rem;
  font-weight: 800;
  color: white;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.page-banner p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 550px;
  margin: 0 auto;
}

.page-banner .breadcrumbs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
}

.page-banner .breadcrumbs a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s;
}

.page-banner .breadcrumbs a:hover {
  color: white;
}

.page-banner .breadcrumbs .sep {
  opacity: 0.4;
}

.page-banner .breadcrumbs .current {
  color: #34d399;
}

/* --- About: Values Grid --- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.value-card {
  background: var(--bg-white);
  border-radius: 20px;
  padding: 44px 36px;
  text-align: center;
  border: 2px solid var(--border-color);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  border-color: transparent;
}

.value-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  transition: transform 0.4s ease;
}

.value-icon i {
  color: white;
  font-size: 1.8rem;
}

.value-card:hover .value-icon {
  transform: scale(1.1) rotate(5deg);
}

.value-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.4;
}

.value-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* --- About: Mission Section --- */
.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.mission-text h2 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.mission-text p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 16px;
}

.mission-text .highlight-box {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, rgba(26, 115, 232, 0.06), rgba(13, 159, 110, 0.06));
  padding: 16px 20px;
  border-radius: 14px;
  border-left: 4px solid var(--primary-green);
  margin-top: 24px;
}

.mission-text .highlight-box i {
  font-size: 1.5rem;
  color: var(--primary-green);
  flex-shrink: 0;
}

.mission-text .highlight-box p {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0;
}

.mission-visual {
  position: relative;
}

.mission-visual .mv-card {
  background: var(--bg-white);
  border: 2px solid var(--border-color);
  border-radius: 24px;
  padding: 44px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
}

.mission-visual .mv-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.mission-visual .mv-card i {
  font-size: 4rem;
  color: var(--primary-green);
  margin-bottom: 20px;
  display: block;
}

.mission-visual .mv-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.mission-visual .mv-card p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* --- About: Numbers Grid --- */
.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.number-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 36px 20px;
  text-align: center;
  transition: all 0.4s ease;
}

.number-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
}

.number-card .num {
  font-size: 2.8rem;
  font-weight: 800;
  color: white;
  line-height: 1;
  margin-bottom: 8px;
}

.number-card .num span {
  color: #34d399;
}

.number-card p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

/* --- Contact Cards --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 32px;
  align-items: stretch;
}

.contact-form-card {
  background: var(--bg-white);
  border-radius: 24px;
  padding: 48px;
  border: 2px solid var(--border-color);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
  height: 100%;
}

.contact-form-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.contact-form-card .subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 28px;
}

.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-info-card {
  background: var(--bg-white);
  border-radius: 20px;
  padding: 36px;
  border: 2px solid var(--border-color);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
  transition: all 0.4s ease;
}

.contact-info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
}

.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 14px 0;
}

.contact-info-item:not(:last-child) {
  border-bottom: 1px solid var(--border-color);
}

.contact-info-item .ci-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.ci-icon.blue {
  background: rgba(26, 115, 232, 0.1);
  color: var(--primary-blue);
}

.ci-icon.green {
  background: rgba(13, 159, 110, 0.1);
  color: var(--primary-green);
}

.ci-icon.orange {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}

.ci-icon.purple {
  background: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
}

.contact-info-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.contact-info-item p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

.hours-card {
  background: var(--gradient-primary);
  color: white;
  border: none;
}

.hours-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hours-card .hours-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.92rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.hours-card .hours-row:last-child {
  border-bottom: none;
}

.hours-card .hours-row .day {
  opacity: 0.8;
}

.hours-card .hours-row .time {
  font-weight: 600;
}

/* --- CTA Section --- */
.cta-section {
  background: var(--gradient-hero);
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 1000px;
  background: radial-gradient(circle, rgba(13, 159, 110, 0.1) 0%, transparent 60%);
  border-radius: 50%;
}

.cta-section .container {
  position: relative;
  z-index: 2;
}

.cta-section h2 {
  font-size: 2.6rem;
  font-weight: 800;
  color: white;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.cta-section p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 500px;
  margin: 0 auto 32px;
}

.cta-section .btn {
  padding: 16px 40px;
  font-size: 1.05rem;
  background: white;
  color: var(--primary-blue);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.cta-section .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* --- Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: white;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(26, 115, 232, 0.4);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(30px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(26, 115, 232, 0.4);
}

/* --- Footer Enhanced --- */
.footer {
  background: var(--bg-dark);
  position: relative;
  padding: 0;
  color: rgba(255, 255, 255, 0.8);
}

.footer-wave {
  color: var(--bg-dark);
  line-height: 0;
  margin-top: -1px;
}

.footer-wave svg {
  width: 100%;
  height: 60px;
}

.footer .container {
  padding-top: 50px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 16px;
}

.footer-brand .footer-logo .logo-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
}

.footer h4 {
  color: white;
  margin-bottom: 20px;
  font-size: 1rem;
  font-weight: 700;
  position: relative;
  padding-bottom: 12px;
}

.footer h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.footer ul li {
  margin-bottom: 12px;
}

.footer ul li a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
}

.footer ul li a i {
  font-size: 0.65rem;
  opacity: 0;
  transform: translateX(-5px);
  transition: all 0.3s;
  color: var(--primary-green);
}

.footer ul li a:hover {
  color: white;
  transform: translateX(4px);
}

.footer ul li a:hover i {
  opacity: 1;
  transform: translateX(0);
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.social-links a {
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.4s ease;
}

.social-links a:hover {
  background: var(--gradient-primary);
  border-color: transparent;
  color: white;
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding: 24px 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.35);
}

/* --- Products Page Filter Bar --- */
.filter-card {
  background: var(--bg-white);
  border-radius: 20px;
  padding: 24px 28px;
  border: 1px solid var(--border-color);
  margin-bottom: 36px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.filter-card form {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
}

.filter-card .form-group {
  flex: 1;
  min-width: 200px;
  margin: 0;
}

.filter-card .form-group label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  font-weight: 700;
  margin-bottom: 6px;
}

.filter-card .btn-group {
  display: flex;
  gap: 10px;
}

/* --- Auth Container (login/signup) --- */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: var(--gradient-hero);
  position: relative;
}

.auth-container::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(13, 159, 110, 0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.auth-form {
  background: var(--bg-white);
  border-radius: 24px;
  padding: 44px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 2;
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-header h2 {
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 8px;
}

/* =============================================
   ULTRA ANIMATIONS & EFFECTS ENGINE
   ============================================= */

/* --- Scroll Progress Bar --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--gradient-primary);
  z-index: 9999;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px rgba(26, 115, 232, 0.5), 0 0 20px rgba(13, 159, 110, 0.3);
}

/* --- Cursor Glow Follower --- */
.cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26, 115, 232, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
}

/* --- Animated Gradient Text --- */
.gradient-text-animate {
  background: linear-gradient(270deg, #60a5fa, #34d399, #a78bfa, #fbbf24, #60a5fa);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textGradientShift 6s ease infinite;
}

@keyframes textGradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* --- Floating Particles (CSS) --- */
.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat linear infinite;
}

.particle.dot {
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
}

.particle.ring {
  width: 12px;
  height: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
}

.particle.star {
  width: 3px;
  height: 3px;
  background: rgba(52, 211, 153, 0.5);
  box-shadow: 0 0 6px rgba(52, 211, 153, 0.3);
}

@keyframes particleFloat {
  0% {
    opacity: 0;
    transform: translateY(100vh) rotate(0deg);
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateY(-10vh) rotate(720deg);
  }
}

/* --- Floating Geometric Shapes --- */
.floating-shapes {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.floating-shape {
  position: absolute;
  opacity: 0.06;
}

.floating-shape.circle {
  border-radius: 50%;
  border: 2px solid white;
}

.floating-shape.square {
  border: 2px solid white;
  border-radius: 4px;
  transform: rotate(45deg);
}

.floating-shape.triangle {
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-bottom: 26px solid rgba(255, 255, 255, 0.1);
}

.floating-shape.cross::before,
.floating-shape.cross::after {
  content: '';
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
}

.floating-shape.cross::before {
  width: 20px;
  height: 3px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.floating-shape.cross::after {
  width: 3px;
  height: 20px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.fs-1 {
  width: 40px;
  height: 40px;
  top: 15%;
  left: 5%;
  animation: floatShape1 18s ease-in-out infinite;
}

.fs-2 {
  width: 25px;
  height: 25px;
  top: 30%;
  right: 8%;
  animation: floatShape2 22s ease-in-out infinite;
}

.fs-3 {
  width: 50px;
  height: 50px;
  bottom: 20%;
  left: 12%;
  animation: floatShape3 20s ease-in-out infinite;
}

.fs-4 {
  width: 30px;
  height: 30px;
  top: 60%;
  right: 15%;
  animation: floatShape1 25s ease-in-out infinite reverse;
}

.fs-5 {
  width: 18px;
  height: 18px;
  top: 10%;
  right: 30%;
  animation: floatShape2 15s ease-in-out infinite;
}

.fs-6 {
  width: 35px;
  height: 35px;
  bottom: 30%;
  right: 5%;
  animation: floatShape3 28s ease-in-out infinite reverse;
}

@keyframes floatShape1 {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  25% {
    transform: translate(30px, -40px) rotate(90deg);
  }

  50% {
    transform: translate(-20px, -80px) rotate(180deg);
  }

  75% {
    transform: translate(40px, -40px) rotate(270deg);
  }
}

@keyframes floatShape2 {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  33% {
    transform: translate(-40px, 30px) rotate(120deg);
  }

  66% {
    transform: translate(30px, -50px) rotate(240deg);
  }
}

@keyframes floatShape3 {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }

  50% {
    transform: translate(50px, -60px) rotate(180deg) scale(1.2);
  }
}

/* --- Shimmer Sweep Effect (on hover) --- */
.shimmer-hover {
  position: relative;
  overflow: hidden;
}

.shimmer-hover::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transform: skewX(-20deg);
  transition: none;
  opacity: 0;
}

.shimmer-hover:hover::after {
  animation: shimmerSweep 0.8s ease forwards;
}

@keyframes shimmerSweep {
  0% {
    left: -60%;
    opacity: 1;
  }

  100% {
    left: 120%;
    opacity: 0;
  }
}

/* --- Glowing Pulse Button --- */
.btn-glow {
  position: relative;
  z-index: 1;
  animation: btnGlow 3s ease-in-out infinite;
}

@keyframes btnGlow {

  0%,
  100% {
    box-shadow: 0 4px 15px rgba(26, 115, 232, 0.3), 0 0 0 0 rgba(13, 159, 110, 0);
  }

  50% {
    box-shadow: 0 4px 25px rgba(26, 115, 232, 0.5), 0 0 40px rgba(13, 159, 110, 0.15);
  }
}

.btn-glow::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: var(--gradient-primary);
  border-radius: 50px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s;
  filter: blur(8px);
}

.btn-glow:hover::before {
  opacity: 1;
}

/* --- Morphing Blob Backgrounds --- */
.morph-blob {
  position: absolute;
  border-radius: 40% 60% 50% 50% / 50% 40% 60% 50%;
  animation: morphBlob 12s ease-in-out infinite;
  filter: blur(60px);
  opacity: 0.08;
  z-index: 0;
}

@keyframes morphBlob {

  0%,
  100% {
    border-radius: 40% 60% 50% 50% / 50% 40% 60% 50%;
    transform: rotate(0deg) scale(1);
  }

  25% {
    border-radius: 60% 40% 45% 55% / 40% 60% 50% 50%;
    transform: rotate(90deg) scale(1.05);
  }

  50% {
    border-radius: 50% 50% 60% 40% / 55% 45% 50% 50%;
    transform: rotate(180deg) scale(1.1);
  }

  75% {
    border-radius: 45% 55% 40% 60% / 60% 50% 40% 50%;
    transform: rotate(270deg) scale(1.05);
  }
}

.blob-1 {
  width: 500px;
  height: 500px;
  background: linear-gradient(135deg, #1a73e8, #0d9f6e);
  top: -15%;
  right: -10%;
}

.blob-2 {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, #0d9f6e, #8b5cf6);
  bottom: -10%;
  left: -8%;
  animation-delay: -6s;
}

/* --- Staggered Animation Delays --- */
.stagger-1 {
  transition-delay: 0.05s !important;
}

.stagger-2 {
  transition-delay: 0.1s !important;
}

.stagger-3 {
  transition-delay: 0.15s !important;
}

.stagger-4 {
  transition-delay: 0.2s !important;
}

.stagger-5 {
  transition-delay: 0.25s !important;
}

.stagger-6 {
  transition-delay: 0.3s !important;
}

.stagger-7 {
  transition-delay: 0.35s !important;
}

.stagger-8 {
  transition-delay: 0.4s !important;
}

/* --- 3D Card Tilt on Hover --- */
.tilt-card {
  perspective: 1000px;
  transform-style: preserve-3d;
}

.tilt-card-inner {
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  transform-style: preserve-3d;
}

.tilt-card:hover .tilt-card-inner {
  transform: rotateX(2deg) rotateY(-2deg) scale(1.02);
}

/* --- Card Spotlight/Glow Effect --- */
.card-spotlight {
  position: relative;
  overflow: hidden;
}

.card-spotlight::before {
  content: '';
  position: absolute;
  top: var(--mouse-y, 50%);
  left: var(--mouse-x, 50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(26, 115, 232, 0.06) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.card-spotlight:hover::before {
  opacity: 1;
}

/* --- Animated Section Dividers --- */
.section-divider {
  position: relative;
  height: 100px;
  overflow: hidden;
}

.section-divider svg {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100%;
}

/* --- Ripple Click Effect --- */
.ripple-btn {
  position: relative;
  overflow: hidden;
}

.ripple-btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  animation: rippleEffect 0.6s ease-out;
  pointer-events: none;
}

@keyframes rippleEffect {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* --- Counter Number Animation --- */
.counter-num {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

/* --- Neon Glow Text --- */
.neon-glow {
  text-shadow: 0 0 10px rgba(52, 211, 153, 0.5), 0 0 20px rgba(52, 211, 153, 0.3), 0 0 40px rgba(52, 211, 153, 0.15);
}

/* --- Enhanced Hero Animations --- */
.hero-title-word {
  display: inline-block;
  animation: fadeInUp 0.8s ease both;
}

.hero-typing-cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  background: #34d399;
  margin-left: 4px;
  animation: blinkCursor 1s step-end infinite;
  vertical-align: text-bottom;
}

@keyframes blinkCursor {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* --- Bouncing Arrow --- */
.bounce-arrow {
  animation: bounceDown 2s ease-in-out infinite;
}

@keyframes bounceDown {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(10px);
  }

  60% {
    transform: translateY(5px);
  }
}

/* --- Magnetic Button Hover --- */
.magnetic-btn {
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

/* --- Gradient Border Animation --- */
.gradient-border {
  position: relative;
  background: var(--bg-white);
  z-index: 1;
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(270deg, #1a73e8, #0d9f6e, #8b5cf6, #1a73e8);
  background-size: 400% 400%;
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  animation: gradientBorderSpin 4s ease infinite;
  transition: opacity 0.3s;
}

.gradient-border:hover::before {
  opacity: 1;
}

@keyframes gradientBorderSpin {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* --- Parallax Floating Elements --- */
.parallax-layer {
  transition: transform 0.15s ease-out;
  will-change: transform;
}

/* --- Enhanced Feature Cards (3D + Glow) --- */
.feature-card {
  overflow: hidden;
}

.feature-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0;
  background: linear-gradient(to top, rgba(26, 115, 232, 0.03), transparent);
  transition: height 0.5s ease;
}

.feature-card:hover::after {
  height: 100%;
}

/* --- Enhanced Product Cards (Shine + Float) --- */
.pub-product-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transform: skewX(-20deg);
  z-index: 2;
  opacity: 0;
  pointer-events: none;
}

.pub-product-card:hover::before {
  animation: shimmerSweep 0.8s ease forwards;
}

/* --- Enhanced Value Cards (Orbit Effect) --- */
.value-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(26, 115, 232, 0.03) 50%, transparent 60%);
  opacity: 0;
  transition: opacity 0.5s;
  border-radius: 20px;
}

.value-card:hover::after {
  opacity: 1;
}

/* --- Enhanced Number Cards (Scale + Glow) --- */
.number-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.number-card:hover::before {
  opacity: 1;
}

/* --- Enhanced Step Cards (Line Glow) --- */
.step-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top center, rgba(26, 115, 232, 0.04) 0%, transparent 70%);
  border-radius: 16px;
  opacity: 0;
  transition: opacity 0.4s;
}

.step-card:hover::after {
  opacity: 1;
}

/* --- Animated Gradient Background for Hero --- */
.hero {
  background-size: 300% 300%;
  animation: heroGradientShift 15s ease infinite;
}

@keyframes heroGradientShift {
  0% {
    background-position: 0% 50%;
  }

  25% {
    background-position: 50% 0%;
  }

  50% {
    background-position: 100% 50%;
  }

  75% {
    background-position: 50% 100%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* --- CTA Section Enhanced --- */
.cta-section {
  background-size: 300% 300%;
  animation: heroGradientShift 12s ease infinite;
}

.cta-section .btn {
  animation: btnGlow 3s ease-in-out infinite;
}

/* --- Page Banner Enhanced --- */
.page-banner {
  background-size: 300% 300%;
  animation: heroGradientShift 15s ease infinite;
}

.page-banner h1 {
  animation: fadeInUp 0.6s ease both;
}

.page-banner p {
  animation: fadeInUp 0.6s ease 0.1s both;
}

.page-banner .breadcrumbs {
  animation: fadeInUp 0.6s ease 0.2s both;
}

/* --- Enhanced Glass Card Hover --- */
.hero-glass-card {
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  animation: floatGlass 6s ease-in-out infinite;
}

@keyframes floatGlass {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.hero-glass-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
}

.glass-stat {
  transition: all 0.3s ease;
}

.glass-stat:hover {
  transform: translateX(6px);
}

.glass-stat:hover .gs-icon {
  transform: scale(1.1) rotate(5deg);
  transition: all 0.3s ease;
}

/* --- Enhanced Hero Badge --- */
.hero-badge {
  position: relative;
  overflow: hidden;
}

.hero-badge::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: skewX(-20deg);
  animation: shimmerSweep 4s ease infinite;
}

/* --- Enhanced Section Labels --- */
.section-label {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.section-label i {
  transition: transform 0.3s;
}

.animate-on-scroll.visible .section-label i {
  animation: iconBounce 0.6s ease 0.3s both;
}

@keyframes iconBounce {
  0% {
    transform: scale(0);
  }

  60% {
    transform: scale(1.3);
  }

  100% {
    transform: scale(1);
  }
}

/* --- Enhanced Highlight Box --- */
.highlight-box {
  transition: all 0.3s ease;
}

.highlight-box:hover {
  transform: translateX(6px);
  border-left-width: 6px;
  box-shadow: 0 8px 30px rgba(13, 159, 110, 0.1);
}

/* --- Enhanced Mission Visual Card --- */
.mv-card {
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.mv-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.1);
}

.mv-card:hover i {
  transform: scale(1.15) rotate(10deg);
  transition: all 0.4s ease;
}

/* --- Enhanced Contact Form Card --- */
.contact-form-card {
  transition: all 0.4s ease;
}

.contact-form-card:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.contact-form-card .form-control {
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.contact-form-card .form-control:focus {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(26, 115, 232, 0.12);
}

/* --- Contact Info Items Enhanced --- */
.ci-items {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ci-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.ci-item:last-child {
  border-bottom: none;
}

.ci-item:hover {
  transform: translateX(6px);
}

.ci-item .ci-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(26, 115, 232, 0.1), rgba(13, 159, 110, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--primary-blue);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.ci-item:hover .ci-icon {
  background: var(--gradient-primary);
  color: white;
  transform: scale(1.1) rotate(5deg);
}

.ci-item strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.ci-item p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* --- Hours Card Enhanced --- */
.hours-card {
  background: var(--gradient-primary);
  border-radius: 20px;
  padding: 32px;
  color: white;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

/* Ranks Progress Grid */
.ranks-progress-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.rank-progress-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 12px;
  transition: all 0.3s ease;
}
.rank-progress-card.rank-achieved {
  border-color: #0d9f6e;
  background: rgba(13,159,110,0.05);
}
.rank-progress-card.rank-current {
  border-color: #1a73e8;
  box-shadow: 0 0 0 2px rgba(26,115,232,0.15);
}
.rank-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.rank-progress-body .progress-item {
  margin-bottom: 6px;
}
.rank-progress-body .progress-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3px;
}
.progress-bar-track {
  height: 6px;
  background: var(--border-color);
  border-radius: 3px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: #1a73e8;
  border-radius: 3px;
  transition: width 0.5s ease;
}
.progress-bar-fill.complete {
  background: #0d9f6e;
}
.badge-secondary {
  background: #6b7280;
  color: #fff;
}
.rank-progress-card { height: 100%; }

.hours-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hours-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(26, 115, 232, 0.3);
}

.hours-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.hours-card h3 i {
  margin-right: 8px;
}

/* --- Contact Info Card Enhanced --- */
.contact-info-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.contact-info-card h3 i {
  color: var(--primary-blue);
  margin-right: 8px;
}

/* --- Enhanced animate-on-scroll with variety --- */
.animate-on-scroll.slide-left {
  opacity: 0;
  transform: translateX(-40px);
}

.animate-on-scroll.slide-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.animate-on-scroll.slide-right {
  opacity: 0;
  transform: translateX(40px);
}

.animate-on-scroll.slide-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.animate-on-scroll.scale-up {
  opacity: 0;
  transform: scale(0.8);
}

.animate-on-scroll.scale-up.visible {
  opacity: 1;
  transform: scale(1);
}

.animate-on-scroll.rotate-in {
  opacity: 0;
  transform: rotate(-5deg) translateY(30px);
}

.animate-on-scroll.rotate-in.visible {
  opacity: 1;
  transform: rotate(0) translateY(0);
}

/* --- Enhanced Back-to-Top (Gradient Spin) --- */
.back-to-top::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(270deg, #1a73e8, #0d9f6e, #8b5cf6, #1a73e8);
  background-size: 400% 400%;
  border-radius: 50%;
  z-index: -1;
  animation: gradientBorderSpin 3s ease infinite;
}

.back-to-top:hover {
  animation: spin 0.5s ease;
}

/* --- Enhanced Social Links (Pop) --- */
.social-links a {
  position: relative;
  overflow: hidden;
}

.social-links a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  transform: translateY(100%);
  transition: transform 0.3s ease;
  border-radius: inherit;
}

.social-links a:hover::before {
  transform: translateY(0);
}

.social-links a i {
  position: relative;
  z-index: 1;
}

/* --- Product Card Floating Badge --- */
.bv-badge {
  animation: floatBadge 3s ease-in-out infinite;
}

@keyframes floatBadge {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

/* --- Enhanced Filter Card --- */
.filter-card {
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.filter-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.4s ease;
  transform-origin: left;
}

.filter-card:hover::before {
  transform: scaleX(1);
}

.filter-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

/* --- Loading Dots (for counters) --- */
@keyframes dotPulse {

  0%,
  80%,
  100% {
    opacity: 0;
    transform: scale(0.3);
  }

  40% {
    opacity: 1;
    transform: scale(1);
  }
}

/* --- Text Reveal Animation --- */
.text-reveal {
  overflow: hidden;
  display: inline-block;
}

.text-reveal span {
  display: inline-block;
  animation: textReveal 0.8s cubic-bezier(0.77, 0, 0.175, 1) both;
}

@keyframes textReveal {
  from {
    transform: translateY(100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* --- Enhanced Footer Animated Underlines --- */
.footer h4::after {
  transition: width 0.4s ease;
}

.footer-col:hover h4::after {
  width: 60px;
}

/* --- Section Pattern Animated --- */
.pub-section.bg-pattern {
  position: relative;
}

.pub-section.bg-pattern::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(26, 115, 232, 0.04) 0%, transparent 70%);
  border-radius: 50%;
  animation: heroPulse 10s ease-in-out infinite;
}

.pub-section.bg-pattern::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(13, 159, 110, 0.04) 0%, transparent 70%);
  border-radius: 50%;
  animation: heroPulse 12s ease-in-out infinite reverse;
}

/* --- Enhanced Mission Text Section Label --- */
.mission-text .section-label {
  display: inline-flex;
  margin-bottom: 20px;
}

/* =============================================
   Responsive Design
   ============================================= */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .feature-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid::before {
    display: none;
  }

  .numbers-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mission-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    display: none;
  }

  .hero-text h1 {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  :root {
    --sidebar-width: 260px;
  }

  /* Mobile Navbar */
  .navbar {
    position: relative;
  }

  .nav-container {
    height: 60px;
  }

  .nav-logo-image {
    width: 40px;
    height: 40px;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    transition: background 0.2s;
  }

  .nav-toggle:hover,
  .nav-toggle.active {
    background: rgba(26, 115, 232, 0.08);
  }

  .nav-toggle.active i {
    color: var(--primary-blue);
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 12px 16px;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    z-index: 999;
    animation: slideDown 0.3s ease;
  }

  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .nav-menu.show {
    display: flex;
  }

  .nav-menu .nav-link {
    padding: 12px 16px;
    font-size: 0.95rem;
    border-radius: 8px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .nav-menu .nav-link i {
    width: 20px;
    text-align: center;
    font-size: 0.9rem;
  }

  .nav-menu .btn-nav {
    text-align: center;
    justify-content: center;
    margin-top: 4px;
  }

  .nav-menu li {
    width: 100%;
  }

  /* Mobile Sidebar */
  .sidebar {
    transform: translateX(-100%);
    z-index: 1100;
    box-shadow: none;
  }

  .sidebar.show {
    transform: translateX(0);
    box-shadow: 4px 0 20px rgba(0,0,0,0.15);
  }

  /* Sidebar overlay backdrop */
  .sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1050;
  }

  .sidebar-overlay.show {
    display: block;
  }

  .sidebar-close {
    display: block;
  }

  .hamburger {
    display: block;
  }

  .main-content {
    margin-left: 0;
    width: 100%;
  }

  /* Hero */
  .hero {
    padding: 120px 0 80px;
    min-height: auto;
  }

  .hero-text h1 {
    font-size: 2.4rem;
  }

  .hero-text>p {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn-primary,
  .hero-buttons .btn-outline {
    width: 100%;
    justify-content: center;
  }

  .hero-trust {
    flex-direction: column;
    gap: 12px;
  }

  /* Page Banner */
  .page-banner {
    padding: 110px 0 50px;
  }

  .page-banner h1 {
    font-size: 2.2rem;
  }

  /* Sections */
  .pub-section {
    padding: 100px 0;
  }

  .section-head h2 {
    font-size: 2rem;
  }

  .feature-cards {
    grid-template-columns: 1fr;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr 1fr;
  }

  .numbers-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stats-bar {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  /* General */
  .form-row {
    grid-template-columns: 1fr;
  }

  .stat-cards {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .content-area {
    padding: 20px;
  }

  .page-header {
    padding: 16px 20px;
  }

  .auth-form {
    padding: 28px;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 1.9rem;
  }

  .section-head h2 {
    font-size: 1.6rem;
  }

  .page-banner h1 {
    font-size: 1.8rem;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .numbers-grid {
    grid-template-columns: 1fr;
  }

  .stats-bar {
    grid-template-columns: 1fr;
  }

  .pub-product-grid {
    grid-template-columns: 1fr;
  }
}

/* =============================================
   Mobile Responsive Utility Grids & Fixes
   ============================================= */

/* -- Prevent horizontal scroll globally (clip allows child overflow-x:auto to still work) -- */
html,
body {
  overflow-x: clip;
  max-width: 100vw;
}

/* -- Responsive grid classes -- */
.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.grid-3col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

.grid-2fr1fr {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

.grid-cards-280 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 20px;
}

.grid-cards-260 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: 20px;
}

.grid-cards-200 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

/* -- Page header overflow fix -- */
.page-header {
  flex-wrap: wrap;
  gap: 12px;
}

.page-header>div {
  min-width: 0;
}

/* -- Table responsive -- */
.table-wrapper {
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  display: block;
}

.table-wrapper table {
  min-width: 600px;
}

table {
  min-width: 600px;
  width: 100%;
}

/* -- Cards -- */
.card {
  overflow: hidden;
}

.grid-2col .card,
.grid-3col .card,
.grid-2fr1fr .card {
  overflow: hidden !important;
  min-width: 0;
}

@media (max-width: 768px) {

  /* Utility grids collapse to single column */
  .grid-2col,
  .grid-3col,
  .grid-2fr1fr {
    grid-template-columns: 1fr;
  }

  .grid-cards-280,
  .grid-cards-260 {
    grid-template-columns: 1fr;
  }

  .grid-cards-200 {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  /* Page header stacks vertically on mobile */
  .page-header {
    flex-direction: column;
    align-items: flex-start !important;
  }

  .page-header>div:last-child {
    width: 100%;
  }

  .page-header .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  /* Stats grid fix */
  .stat-cards {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  /* Feature cards */
  .feature-cards {
    grid-template-columns: 1fr;
  }

  /* Content area padding */
  .content-area {
    padding: 16px;
  }

  /* Form controls */
  .form-grid {
    grid-template-columns: 1fr !important;
  }

  /* Hero stats */
  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }

  /* Product grid on landing */
  .pub-product-grid {
    grid-template-columns: 1fr;
  }

  /* Ensure images don't overflow */
  img {
    max-width: 100%;
    height: auto;
  }

  /* Fix buttons in headers wrapping */
  .page-header>div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  /* Alert text wrapping */
  .alert {
    flex-wrap: wrap;
    word-break: break-word;
  }

  /* Footer */
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  /* Card header on mobile */
  .card-header {
    padding: 14px 16px;
    flex-direction: column;
    align-items: flex-start;
  }

  .card-header>div,
  .card-header>form {
    width: 100%;
  }

  .card-header select.form-control {
    width: 100% !important;
  }

  /* Card body on mobile */
  .card-body {
    padding: 16px;
  }

  /* Fix fund cards grid */
  .fund-cards {
    grid-template-columns: 1fr;
  }

  /* Landing page card padding reductions */
  .feature-card {
    padding: 28px 20px;
  }

  .value-card {
    padding: 28px 20px;
  }

  .step-card {
    padding: 20px 12px;
  }

  .contact-form-card {
    padding: 24px;
  }

  .contact-info-card {
    padding: 24px;
  }

  /* Stats bar mobile */
  .stats-bar {
    padding: 32px 0;
    gap: 16px;
  }

  .stats-bar .stat-item h3 {
    font-size: 2rem;
  }

  /* Number cards mobile */
  .number-card {
    padding: 24px 16px;
  }

  .number-card .num {
    font-size: 2rem;
  }

  /* Public section padding */
  .pub-section {
    padding: 60px 0;
  }

  /* CTA section */
  .cta-section {
    padding: 60px 0;
  }

  .cta-section h2 {
    font-size: 1.6rem;
  }

  /* Auth forms mobile */
  .auth-form {
    padding: 20px;
  }

  /* Pub product card */
  .pub-product-card .product-body {
    padding: 16px;
  }

  /* =============================================
     COMPREHENSIVE MOBILE FIXES
     ============================================= */

  /* Dashboard layout takes full width */
  .dashboard-layout {
    width: 100%;
    overflow-x: clip;
  }

  /* Tables: ensure horizontal scroll */
  .table-wrapper {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    margin: 0;
    padding: 0;
  }

  .card .table-wrapper {
    margin: 0;
    padding: 0;
  }

  table {
    min-width: 600px;
  }

  /* Form controls: touch-friendly */
  .form-control,
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="number"],
  input[type="tel"],
  input[type="search"],
  select,
  textarea {
    font-size: 16px !important;
    min-height: 44px;
    padding: 10px 12px;
  }

  /* Buttons: touch-friendly */
  .btn {
    min-height: 40px;
    padding: 8px 16px;
    font-size: 0.9rem;
  }

  .btn-sm {
    min-height: 34px;
    padding: 5px 12px;
    font-size: 0.82rem;
  }

  /* Wallet card responsive */
  .wallet-card {
    padding: 16px;
  }

  .wallet-header {
    flex-direction: column;
    gap: 12px;
  }

  .wallet-footer {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  /* Stat cards: 2 columns on mobile */
  .stat-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .stat-card {
    padding: 14px;
  }

  .stat-card h4 {
    font-size: 1.1rem;
  }

  /* Card overflow fix */
  .card {
    overflow: hidden !important;
    margin-bottom: 16px;
  }

  .card .card-body {
    overflow: visible !important;
  }

  .card .table-wrapper {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    display: block;
    width: 100%;
  }

  .card .table-wrapper table {
    min-width: 500px !important;
  }

  /* Pagination mobile */
  .pagination {
    flex-wrap: wrap;
    gap: 4px;
  }

  .pagination a {
    padding: 6px 10px;
    font-size: 0.85rem;
  }

  /* Badge sizing */
  .badge {
    font-size: 0.75rem;
    padding: 3px 8px;
  }

  /* Modal mobile */
  .modal-content {
    margin: 10px;
    max-height: 90vh;
    overflow-y: auto;
  }

  /* Filter bars */
  .filter-bar {
    flex-wrap: wrap;
    gap: 6px;
  }

  /* Form groups */
  .form-group {
    margin-bottom: 14px;
  }

  /* Inline forms stack on mobile */
  form[style*="display:inline"] {
    display: block !important;
    margin-bottom: 6px;
  }

  /* Action buttons in tables */
  td .btn-sm {
    margin: 2px 0;
    display: inline-block;
  }

  /* Fix pre/code blocks */
  pre, code {
    overflow-x: auto;
    word-break: break-all;
    word-wrap: break-word;
  }

  /* Fix long text/URLs */
  .text-muted, span, p {
    word-break: break-word;
    overflow-wrap: break-word;
  }
}

@media (max-width: 480px) {
  .grid-cards-200 {
    grid-template-columns: 1fr;
  }

  .stat-cards {
    grid-template-columns: 1fr;
  }

  .content-area {
    padding: 12px;
  }

  .page-header {
    padding: 12px 16px;
  }

  .card-body {
    padding: 16px;
  }

  table {
    font-size: 0.82rem;
  }

  table thead th,
  table tbody td {
    padding: 10px 8px;
  }

  /* Extra small: stat cards single column */
  .stat-cards {
    grid-template-columns: 1fr;
  }

  /* Wallet footer single column */
  .wallet-footer {
    grid-template-columns: 1fr;
  }

  /* Impersonate bar wraps */
  .impersonate-bar-inner {
    flex-direction: column;
    gap: 6px;
    padding: 8px 12px;
    font-size: 0.8rem;
  }

  .impersonate-back-btn {
    width: 100%;
    justify-content: center;
    margin-left: 0;
  }

  /* Extra small screen landing fixes */
  .feature-card {
    padding: 20px 16px;
  }

  .value-card {
    padding: 20px 16px;
  }

  .contact-form-card {
    padding: 16px;
  }

  .contact-info-card {
    padding: 16px;
  }

  .stats-bar .stat-item h3 {
    font-size: 1.6rem;
  }

  .number-card .num {
    font-size: 1.6rem;
  }

  .pub-section {
    padding: 40px 0;
  }

  .cta-section {
    padding: 40px 0;
  }

  .cta-section h2 {
    font-size: 1.3rem;
  }

  .auth-form {
    padding: 16px;
  }

  /* Ensure all text wraps properly */
  * {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
}

/* =============================================
  Admin Impersonation Bar
  ============================================= */

/* =============================================
  Password Toggle Eye Button
  ============================================= */
.password-field {
  position: relative;
  display: flex;
  align-items: center;
}

.password-field .form-control {
  padding-right: 44px;
  width: 100%;
}

.password-toggle {
  position: absolute;
  right: 1px;
  top: 1px;
  bottom: 1px;
  width: 42px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  font-size: 1rem;
  padding: 0;
  border-radius: 0 8px 8px 0;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.password-toggle:hover {
  color: var(--primary-blue);
  background: rgba(26, 115, 232, 0.06);
}

.password-toggle:focus {
  outline: 2px solid var(--primary-blue);
  outline-offset: -2px;
}

.password-field .form-control:focus ~ .password-toggle {
  border-left: 2px solid var(--primary-blue);
}
.impersonate-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: #fff;
  box-shadow: 0 2px 12px rgba(220, 38, 38, 0.4);
}

.impersonate-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  flex-wrap: wrap;
}

.impersonate-bar-inner i.fa-shield-alt {
  font-size: 1.1rem;
}

.impersonate-bar-inner strong {
  font-weight: 700;
  text-decoration: underline;
}

.impersonate-back-btn {
  background: #fff;
  color: #dc2626;
  border: none;
  padding: 6px 16px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  margin-left: 8px;
}

.impersonate-back-btn:hover {
  background: #fef2f2;
  transform: scale(1.05);
}

/* Push entire page down when impersonate bar is showing */
body:has(.impersonate-bar) .dashboard-layout {
  padding-top: 44px;
}

body:has(.impersonate-bar) .sidebar {
  top: 44px;
  height: calc(100vh - 44px);
}

body.impersonating .dashboard-layout {
  padding-top: 44px;
}

body.impersonating .sidebar {
  top: 44px;
  height: calc(100vh - 44px);
}

/* Mobile: ensure page header & hamburger are below the red bar */
@media (max-width: 768px) {
  body.impersonating .dashboard-layout {
    padding-top: 48px;
  }

  body.impersonating .sidebar {
    top: 48px;
    height: calc(100vh - 48px);
  }

  body.impersonating .page-header {
    margin-top: 4px;
  }

  body.impersonating .hamburger {
    z-index: 9998;
  }
}

@media (max-width: 480px) {
  body.impersonating .dashboard-layout {
    padding-top: 84px;
  }

  body.impersonating .sidebar {
    top: 84px;
    height: calc(100vh - 84px);
  }
}

/* =============================================
  COMPREHENSIVE UI FIXES (User + Admin)
  ============================================= */

/* -- Tabs: horizontal scroll on mobile for income.php etc -- */
.tabs {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
  scrollbar-width: thin;
}

.tabs::-webkit-scrollbar {
  height: 4px;
}

.tabs::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

.tab-btn {
  flex-shrink: 0;
}

/* -- Sidebar: ensure logout is always visible (scrollable nav) -- */
.sidebar-nav {
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  flex: 1 1 0% !important;
  min-height: 0 !important;
}

.sidebar-nav ul {
  padding-bottom: 20px;
}

/* -- Deposit page: cards fully visible on mobile -- */
@media (max-width: 768px) {
  .card-body {
    overflow: visible !important;
  }

  .card .table-wrapper {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    display: block;
    width: 100%;
  }

  .card .table-wrapper table {
    min-width: 500px !important;
  }

  /* Fix deposit page inline-styled containers */
  .card-body [style*="background:linear-gradient"],
  .card-body [style*="background:#f7fafc"],
  .card-body [style*="background:#f0f4f8"],
  .card-body [style*="background:#f0fdf4"],
  .card-body [style*="background:#fef3c7"] {
    padding: 12px;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  /* Fix deposit QR image */
  .card-body img[style*="max-inline-size"],
  .card-body img[style*="max-width"] {
    max-width: 180px;
    display: block;
    margin: 0 auto;
  }
}

/* -- Profile page: responsive layout on mobile -- */
@media (max-width: 768px) {
  /* Profile summary card */
  .profile-summary-card {
    flex-direction: column !important;
    gap: 16px !important;
    padding: 16px !important;
  }

  .profile-summary-card > div[style*="text-align:end"],
  .profile-summary-card > div[style*="text-align: end"] {
    text-align: left !important;
  }

  /* Profile form grid */
  .card-body .grid-2col {
    grid-template-columns: 1fr;
  }
}

/* -- Cart page: responsive layout on mobile -- */
@media (max-width: 768px) {
  /* Cart item rows: stack vertically */
  .card-body > div[style*="display:flex"][style*="gap:16px"] {
    flex-wrap: wrap;
    gap: 10px !important;
  }

  .card-body > div[style*="display:flex"][style*="gap:16px"] > div[style*="width:80px"] {
    width: 60px !important;
    height: 60px !important;
  }

  .card-body > div[style*="display:flex"][style*="gap:16px"] > form[style*="display:flex"] {
    width: 100%;
    justify-content: space-between;
  }

  .card-body > div[style*="display:flex"][style*="gap:16px"] > form .form-control[style*="width:60px"] {
    width: 50px !important;
  }

  /* Order summary sticky: remove sticky on mobile */
  .grid-2fr1fr > div > .card[style*="position:sticky"] {
    position: static !important;
  }

  /* Cart item price row */
  .card-body > div[style*="display:flex"][style*="gap:16px"] > strong {
    min-width: auto;
  }
}

/* -- Dashboard: tables with horizontal scroll on mobile -- */
@media (max-width: 768px) {
  .grid-2col .card .card-body {
    padding: 0 !important;
  }

  .grid-2col .card {
    overflow: hidden !important;
    min-width: 0;
  }

  .grid-2col .table-wrapper {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    display: block;
    width: 100%;
  }

  .grid-2col table {
    min-width: 500px !important;
  }
}

/* -- Genealogy: zoom buttons visible on mobile -- */
.tree-zoom {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.tree-zoom button {
  min-width: 36px;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-blue);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: var(--transition);
}

.tree-zoom button:hover {
  opacity: 0.85;
}

@media (max-width: 768px) {
  .tree-zoom button {
    min-width: 32px;
    min-height: 32px;
    font-size: 0.8rem;
  }
}

/* -- Admin: tables always have horizontal scroll -- */
.admin-table-wrapper,
.admin .table-wrapper,
.card .table-wrapper {
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  display: block;
  width: 100%;
}

/* Admin tables: minimum width for scroll */
@media (max-width: 1200px) {
  .card .table-wrapper table {
    min-width: 800px;
  }
}

@media (max-width: 768px) {
  .card .table-wrapper table {
    min-width: 600px;
  }
}

/* -- Admin: specific wide tables need more min-width -- */
@media (min-width: 769px) {
  .card .table-wrapper table[style*="min-width"] {
    min-width: attr(style min-width);
  }
}

/* -- Admin pages: general mobile fixes -- */
@media (max-width: 768px) {
  /* Admin filter bars */
  .filter-bar,
  .card-header[style*="display:flex"] {
    flex-wrap: wrap;
    gap: 8px;
  }

  /* Admin card headers with buttons */
  .card-header {
    flex-wrap: wrap;
    gap: 8px;
  }

  .card-header .btn-sm {
    margin-top: 4px;
  }

  /* Admin stat cards */
  .stat-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  /* Admin forms: inline forms stack */
  form[style*="display:inline"] {
    display: block !important;
    margin-bottom: 6px;
  }

  /* Admin action columns in tables */
  td .btn-sm {
    margin: 2px 0;
    display: inline-block;
    font-size: 0.78rem;
    padding: 4px 8px;
  }

  /* Admin page header */
  .page-header .breadcrumb {
    display: none;
  }

  .page-header .d-flex {
    flex-wrap: wrap;
    gap: 6px;
  }
}

@media (max-width: 480px) {
  .stat-cards {
    grid-template-columns: 1fr;
  }

  .tab-btn {
    padding: 8px 14px;
    font-size: 0.82rem;
  }
}

/* -- Content area: ensure proper spacing below header -- */
@media (max-width: 768px) {
  .content-area {
    padding: 12px;
    min-height: calc(100vh - 80px);
  }

  /* Wallet card: ensure footer items wrap */
  .wallet-footer {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  /* Referral box */
  .referral-link-wrapper {
    flex-direction: column;
    gap: 8px;
  }

  .referral-link-wrapper .btn {
    width: 100%;
  }
}

/* -- Ensure all images inside cards are responsive -- */
.card img {
  max-width: 100%;
  height: auto;
}

/* -- Fix inline-styled flex containers on mobile -- */
@media (max-width: 768px) {
  [style*="display:flex"][style*="gap:20px"][style*="align-items:center"][style*="flex-wrap:wrap"] {
    gap: 12px !important;
  }

  [style*="display:flex"][style*="justify-content:space-between"] {
    flex-wrap: wrap;
    gap: 4px;
  }
}

/* =============================================
   Deposit Page Styles
   ============================================= */
.deposit-payment-info {
  text-align: center;
  overflow: visible;
}

.deposit-upi-box {
  background: linear-gradient(135deg, #1a73e8, #0d9f6e);
  color: white;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  word-break: break-word;
  overflow-wrap: break-word;
}

.deposit-qr-box {
  margin-bottom: 20px;
}

.deposit-qr-label {
  font-weight: 600;
  margin-bottom: 8px;
  color: #4a5568;
}

.deposit-qr-img {
  max-width: 220px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 8px;
  background: #fff;
  display: block;
  margin: 0 auto;
}

.deposit-bank-box {
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  padding: 15px;
  border-radius: 10px;
  text-align: start;
  margin-bottom: 20px;
  overflow: visible;
}

.deposit-bank-table {
  width: 100%;
  font-size: 13px;
  border-collapse: collapse;
  min-width: unset;
}

.deposit-bank-table td {
  word-break: break-word;
  overflow-wrap: break-word;
}

.deposit-instructions-box {
  background: #f0f4f8;
  padding: 15px;
  border-radius: 8px;
  text-align: start;
}

@media (max-width: 768px) {
  .deposit-upi-box {
    padding: 14px;
  }

  .deposit-qr-img {
    max-width: 180px;
  }

  .deposit-bank-box {
    padding: 12px;
  }

  .deposit-bank-table td {
    font-size: 12px;
    padding: 4px 0;
  }

  .deposit-instructions-box {
    padding: 12px;
  }

  .deposit-instructions-box ol {
    padding-left: 18px;
    line-height: 1.7;
  }
}