:root {
  --primary-color: #004f71; /* MoMo Blue */
  --primary-dark: #003554; /* A darker shade of MoMo Blue */
  --secondary-color: #ffcb05; /* MTN Sunshine */
  --accent-color: #ffcb05; /* MTN Sunshine */
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --error-color: #ef4444;
  --text-color: #1f2937;
  --text-dark: #111827;
  --text-light: #6b7280;
  --text-lighter: #9ca3af;
  --light-bg: #ffffff; /* White */
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --gradient-primary: linear-gradient(135deg, #004f71 0%, #ffcb05 100%);
  --gradient-secondary: linear-gradient(135deg, #ffcb05 0%, #004f71 100%);
  --gradient-hero: linear-gradient(
    135deg,
    #004f71 0%,
    #ffcb05 50%,
    #ffffff 100%
  );
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-weight: 400;
}

.landing-container {
  min-height: 100vh;
  background: var(--light-bg);
  display: flex;
  flex-direction: column;
}

/* Header Styles */
.landing-header {
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 0;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.logo-section {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.logo-section h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
}

.logo-link:hover {
  transform: translateY(-1px);
}

.logo-section h1 i {
  color: var(--primary-color);
  font-size: 1.75rem;
}

.logo-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pro-badge {
  background: var(--secondary-color);
  color: var(--primary-color);
  padding: 0.25rem 0.5rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 0.5rem;
  -webkit-text-fill-color: var(--primary-color);
}

.tagline {
  font-size: 0.75rem;
  color: var(--text-light);
  font-weight: 400;
  margin-top: 0.125rem;
}

.user-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.welcome-text {
  color: var(--text-color);
  font-weight: 500;
  font-size: 0.75rem;
}

.logout-btn {
  background: var(--gradient-primary);
  color: white;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow);
}

.logout-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Auth Buttons */
.auth-buttons {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.auth-buttons .btn {
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.auth-buttons .btn-outline {
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  background: transparent;
}

.auth-buttons .btn-outline:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-1px);
}

.auth-buttons .btn-primary {
  background: var(--gradient-primary);
  color: white;
  border: none;
  box-shadow: var(--shadow);
}

.auth-buttons .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* User Info */
.user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.profile-dropdown-container {
  position: relative;
}

.profile-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.profile-icon-btn:hover {
  background: var(--gray-100);
}

.profile-icon-btn i {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.profile-icon-btn .profile-image {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-color);
}

/* Responsive profile dropdown */
@media (max-width: 768px) {
  .profile-dropdown {
    right: -0.5rem;
    min-width: 160px;
  }

  .profile-dropdown a {
    padding: 0.625rem 0.75rem;
    font-size: 0.75rem;
  }

  .profile-icon-btn {
    padding: 0.375rem;
  }

  .profile-icon-btn i {
    font-size: 1.25rem;
  }

  .profile-icon-btn .profile-image {
    width: 25px;
    height: 25px;
  }
}

@media (max-width: 480px) {
  .profile-dropdown {
    right: -1rem;
    min-width: 140px;
  }

  .profile-dropdown a {
    padding: 0.5rem 0.625rem;
    font-size: 0.625rem;
  }

  .profile-icon-btn {
    padding: 0.25rem;
  }

  .profile-icon-btn i {
    font-size: 1rem;
  }

  .profile-icon-btn .profile-image {
    width: 20px;
    height: 20px;
  }
}

.profile-dropdown {
  display: none;
  position: absolute;
  top: 120%;
  right: 0;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 0.75rem;
  box-shadow: var(--shadow-xl);
  min-width: 180px;
  z-index: 1000;
  overflow: hidden;
}

.profile-dropdown.show {
  display: block;
  animation: slideDown 0.3s ease;
}

.profile-dropdown a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--text-color);
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 0.875rem;
}

.profile-dropdown a:hover {
  background: var(--gray-50);
  color: var(--primary-color);
}

.profile-dropdown a i {
  width: 1rem;
  text-align: center;
}

/* Main Content */
.landing-main {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

/* Hero Section */
.hero-section {
  padding: 4rem 0;
  text-align: center;
  background: var(--gradient-hero);
  margin: 0 -2rem;
  padding: 6rem 2rem;
  color: white;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 3rem;
  opacity: 0.9;
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 3rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Features Section */
.features {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: white;
  padding: 2.5rem;
  border-radius: 1rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: 1px solid var(--gray-200);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.feature-icon {
  width: 4rem;
  height: 4rem;
  background: var(--gradient-primary);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.feature-icon i {
  font-size: 1.5rem;
  color: white;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  padding: 0.5rem 0;
  color: var(--text-color);
  position: relative;
  padding-left: 1.5rem;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success-color);
  font-weight: 600;
}

/* CTA Section */
.cta-section {
  background: white;
  padding: 4rem 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
  text-align: center;
  margin: 4rem 0;
  border: 1px solid var(--gray-200);
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.cta-section h2 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 1.5rem;
}

.cta-desc {
  font-size: 1.125rem;
  color: var(--text-light);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.btn {
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--primary-color);
  color: var(--white);
  box-shadow: var(--shadow);
}

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

.btn-secondary {
  background: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--secondary-color);
}

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

.cta-note {
  font-size: 0.875rem;
  color: var(--text-lighter);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* Footer */
.landing-footer {
  background: var( --primary-color);
  color: black;
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-section p {
  color: var(--gray-300);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--gray-800);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--primary-color);
  transform: translateY(-2px);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.footer-column h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: white;
}

.footer-column a {
  display: block;
  color: var(--gray-300);
  text-decoration: none;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
  font-size: 0.875rem;
}

.footer-column a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  border-top: 1px solid var(--gray-800);
  padding-top: 2rem;
  text-align: center;
  color: var(--gray-300);
  font-size: 0.875rem;
}

.developer-credit {
  margin-top: 1rem;
}

.developer-credit a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
}

.developer-credit .heart {
  color: var(--error-color);
  animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
  0% {
    transform: scale(1);
  }
  14% {
    transform: scale(1.3);
  }
  28% {
    transform: scale(1);
  }
  42% {
    transform: scale(1.3);
  }
  70% {
    transform: scale(1);
  }
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3rem;
  }

  .hero-stats {
    gap: 2rem;
  }

  .stat-number {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: row;
    gap: 0.75rem;
    padding: 0 0.75rem;
    justify-content: space-between;
    align-items: center;
  }

  .logo-section h1 {
    font-size: 1.125rem;
    gap: 0.375rem;
  }

  .logo-section .tagline {
    display: none;
  }

  .user-section {
    gap: 0.375rem;
  }

  .welcome-text {
    font-size: 0.625rem;
  }

  .auth-buttons .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.625rem;
  }

  .hero-section {
    padding: 4rem 1rem;
    margin: 0 -1rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.125rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
  }

  .landing-main {
    padding: 0 1rem;
  }

  .features {
    padding: 4rem 0;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1rem;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .header-content {
    padding: 0 0.5rem;
    gap: 0.375rem;
  }

  .logo-section h1 {
    font-size: 1rem;
    gap: 0.25rem;
  }

  .logo-section h1 i {
    font-size: 1.25rem;
  }

  .logo-section .tagline {
    display: none;
  }

  .user-section {
    gap: 0.25rem;
  }

  .welcome-text {
    font-size: 0.5rem;
  }

  .auth-buttons .btn {
    padding: 0.125rem 0.375rem;
    font-size: 0.5rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section-header h2 {
    font-size: 1.75rem;
  }

  .feature-card {
    padding: 2rem;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }
}

/* Authentication Pages Styles */
.container {
  min-height: 100vh;
  background: var(--light-bg);
  display: flex;
  flex-direction: column;
}

.auth-section {
  background: white;
  border-radius: 1.5rem;
  margin: 2rem auto;
  box-shadow: var(--shadow-xl);
  padding: 3rem;
  width: 100%;
  max-width: 600px;
  border: 1px solid var(--gray-200);
  position: relative;
  overflow: hidden;
}

.auth-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.auth-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.auth-icon {
  width: 4rem;
  height: 4rem;
  background: var(--gradient-primary);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.auth-icon i {
  font-size: 1.5rem;
  color: white;
}

.auth-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.auth-subtitle {
  color: var(--text-light);
  font-size: 1rem;
}

.auth-form {
  margin-bottom: 2rem;
}

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

.form-group {
  margin-bottom: 1.25rem;
}

/* Special layout for register form to be more compact */
.register-section .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.register-section .form-group {
  margin-bottom: 1rem;
}

/* Make email and phone full width but side by side */
.register-section .form-group:has(input[type="email"]),
.register-section .form-group:has(input[type="tel"]) {
  grid-column: 1 / -1;
}

/* Create a special row for email and phone */
.register-section .email-phone-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

/* Username and password fields side by side */
.register-section .credentials-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  color: var(--text-color);
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.form-group label i {
  color: var(--primary-color);
  width: 1rem;
  text-align: center;
}

.form-group input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: 0.75rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
  color: var(--text-color);
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group input::placeholder {
  color: var(--text-lighter);
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--text-color);
}

.checkbox-label input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid var(--gray-300);
  border-radius: 0.25rem;
  position: relative;
  transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
}

.forgot-password {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.forgot-password:hover {
  color: var(--primary-dark);
}

.btn-submit {
  width: 100%;
  background: var(--gradient-primary);
  color: white;
  padding: 1rem;
  border: none;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  box-shadow: var(--shadow);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

.auth-divider {
  text-align: center;
  margin: 1.5rem 0;
  position: relative;
}

.auth-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gray-200);
}

.auth-divider span {
  background: white;
  padding: 0 1rem;
  color: var(--text-lighter);
  font-size: 0.875rem;
}

.social-auth {
  margin-bottom: 1.5rem;
}

.social-btn {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: 0.75rem;
  background: white;
  color: var(--text-color);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.social-btn:hover {
  border-color: var(--primary-color);
  background: var(--gray-50);
}

.google-btn i {
  color: #ea4335;
}

.auth-footer {
  text-align: center;
}

.auth-link {
  color: var(--text-light);
  font-size: 0.875rem;
}

.auth-link a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.auth-link a:hover {
  color: var(--primary-dark);
}

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

.terms-link:hover {
  color: var(--primary-dark);
}

/* OTP Styles */
.otp-container {
  margin-bottom: 2rem;
}

.otp-inputs {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.otp-input {
  width: 3.5rem;
  height: 3.5rem;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 600;
  border: 2px solid var(--gray-200);
  border-radius: 0.75rem;
  background: white;
  color: var(--text-color);
  transition: all 0.3s ease;
}

.otp-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.otp-input.filled {
  border-color: var(--success-color);
  background: var(--success-color);
  color: white;
}

.otp-timer {
  text-align: center;
}

.timer-text {
  color: var(--text-light);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.timer-text i {
  color: var(--warning-color);
}

.resend-section {
  text-align: center;
  margin-bottom: 2rem;
}

.resend-text {
  color: var(--text-light);
  font-size: 0.875rem;
}

.resend-btn {
  background: none;
  border: none;
  color: var(--primary-color);
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s ease;
  font-size: 0.875rem;
}

.resend-btn:hover:not(:disabled) {
  color: var(--primary-dark);
}

.resend-btn:disabled {
  color: var(--text-lighter);
  cursor: not-allowed;
}

/* Responsive Design for Auth Pages */
@media (max-width: 768px) {
  .auth-section {
    padding: 2rem;
    margin: 1rem;
    max-width: 100%;
  }

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

  /* Register form responsive adjustments */
  .register-section .form-row,
  .register-section .email-phone-row,
  .register-section .credentials-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .register-section .form-group {
    margin-bottom: 0.75rem;
  }

  .otp-inputs {
    gap: 0.5rem;
  }

  .otp-input {
    width: 3rem;
    height: 3rem;
    font-size: 1rem;
  }

  .form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .auth-section {
    padding: 1.5rem;
    margin: 0.5rem;
  }

  .auth-header h2 {
    font-size: 1.5rem;
  }

  .register-section .form-group {
    margin-bottom: 0.5rem;
  }

  .otp-inputs {
    gap: 0.25rem;
  }

  .otp-input {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 0.875rem;
  }
}

/* Utility Classes */
.hidden {
  display: none !important;
}

/* Dashboard Styles */
.dashboard-container {
  min-height: 100vh;
  background: var(--light-bg);
  display: flex;
  flex-direction: column;
}

.dashboard-main {
  flex: 1;
  padding: 2rem;
}

.dashboard-content {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--gray-200);
}

.dashboard-title h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 0.25rem;
}

.dashboard-subtitle {
  color: var(--text-light);
  font-size: 0.875rem;
  font-weight: 400;
}

.dashboard-actions {
  display: flex;
  gap: 1rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.stat-card {
  background: white;
  border-radius: 0.75rem;
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.stat-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--gradient-primary);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon i {
  font-size: 1rem;
  color: white;
}

.stat-content {
  flex: 1;
}

.stat-title {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 0.25rem;
}

.stat-change {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 0.5rem;
}

.stat-change.positive {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success-color);
}

.stat-change.negative {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error-color);
}

.stat-change.neutral {
  background: rgba(107, 114, 128, 0.1);
  color: var(--text-light);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
}

.dashboard-card {
  background: white;
  border-radius: 1rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  overflow: hidden;
}

.card-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-header h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-color);
}

.view-all {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.view-all:hover {
  color: var(--primary-dark);
}

.transaction-list {
  padding: 1rem;
}

.transaction-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 0.75rem;
  transition: background-color 0.3s ease;
}

.transaction-item:hover {
  background: var(--gray-50);
}

.transaction-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.transaction-icon i {
  font-size: 1rem;
}

.text-success {
  color: var(--success-color);
}

.text-danger {
  color: var(--error-color);
}

.transaction-details {
  flex: 1;
}

.transaction-details h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 0.25rem;
}

.transaction-details p {
  font-size: 0.75rem;
  color: var(--text-light);
}

.transaction-amount {
  text-align: right;
}

.amount {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 0.25rem;
}

.time {
  font-size: 0.75rem;
  color: var(--text-lighter);
}

.quick-actions {
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.action-btn {
  background: white;
  border: 2px solid var(--gray-200);
  border-radius: 0.75rem;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.action-btn:hover {
  border-color: var(--primary-color);
  background: var(--gray-50);
  transform: translateY(-2px);
}

.action-btn i {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.action-btn span {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-color);
}

/* Responsive Design for Dashboard */
@media (max-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 768px) {
  .dashboard-main {
    padding: 0.75rem;
  }

  .dashboard-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 1rem 0;
  }

  .dashboard-title h2 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
  }

  .dashboard-subtitle {
    font-size: 0.875rem;
  }

  .dashboard-actions {
    justify-content: stretch;
  }

  .dashboard-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .stat-card {
    padding: 1rem;
    flex-direction: row;
    align-items: center;
  }

  .stat-icon {
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
  }

  .stat-content {
    flex: 1;
  }

  .stat-title {
    font-size: 0.875rem;
  }

  .stat-value {
    font-size: 1.25rem;
  }

  .quick-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .dashboard-main {
    padding: 0.5rem;
  }

  .dashboard-header {
    padding: 0.75rem 0;
    gap: 0.5rem;
  }

  .dashboard-title h2 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
  }

  .dashboard-subtitle {
    font-size: 0.875rem;
  }

  .dashboard-actions .btn {
    padding: 0.75rem;
    font-size: 0.875rem;
  }

  .stats-grid {
    gap: 0.5rem;
  }

  .stat-card {
    padding: 0.75rem;
    flex-direction: row;
    align-items: center;
  }

  .stat-icon {
    width: 2rem;
    height: 2rem;
  }

  .stat-icon i {
    font-size: 0.875rem;
  }

  .stat-title {
    font-size: 0.875rem;
  }

  .stat-value {
    font-size: 1.125rem;
  }

  .transaction-item {
    flex-direction: column;
    text-align: left;
    gap: 0.5rem;
  }

  .transaction-amount {
    text-align: left;
  }
}

/* Contrast Fixes */

/* Buttons */
.btn-primary {
  background: var(--primary-color);
  color: var(--white);
  box-shadow: var(--shadow);
}

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

.btn-secondary {
  background: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--secondary-color);
}

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

/* Pro badge and logo text on yellow */
.pro-badge {
  background: var(--secondary-color);
  color: var(--primary-color);
  -webkit-text-fill-color: var(--primary-color);
}

.logo-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Feature cards with yellow backgrounds */
.feature-card.yellow {
  background: var(--secondary-color);
  color: var(--primary-color);
}

.feature-card.yellow h3,
.feature-card.yellow p,
.feature-card.yellow .feature-list li {
  color: var(--primary-color);
}

/* Alerts or badges on yellow */
.badge-yellow,
.alert-yellow {
  background: var(--secondary-color);
  color: var(--primary-color);
}

/* If you use yellow backgrounds elsewhere, ensure text is dark */
.bg-yellow,
.highlight-yellow {
  background: var(--secondary-color) !important;
  color: var(--primary-color) !important;
}

/* If you use blue backgrounds, ensure text is white */
.bg-primary,
.highlight-primary {
  background: var(--primary-color) !important;
  color: var(--white) !important;
}


.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, white, #ffcd057c, white); 
  z-index: 1;
}

.hero-image-bg .hero-content {
  position: relative;
  z-index: 2;
}

.hero-image-bg .hero-title,
.hero-image-bg .hero-subtitle,
.hero-image-bg .stat-number,
.hero-image-bg .stat-label {
  color: black;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.hero-image-bg .hero-title {
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

@media (max-width: 768px) {
  .hero-image-bg {
    background-position: 60% center;
  }
}

/* Profile & Settings Pages */
.profile-section, .settings-section {
  background: white;
  border-radius: 1.5rem;
  margin: 2rem auto;
  box-shadow: var(--shadow-xl);
  padding: 3rem;
  width: 100%;
  max-width: 600px;
  border: 1px solid var(--gray-200);
  position: relative;
  overflow: hidden;
}

.profile-section .auth-header, .settings-section .auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.profile-section .auth-icon, .settings-section .auth-icon {
  background: var(--gradient-primary);
  color: white;
  border-radius: 50%;
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem auto;
  font-size: 2rem;
  box-shadow: var(--shadow-lg);
}

.danger-zone {
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: var(--danger-bg, #fff6f6);
  border: 1px solid var(--danger-border, #ffbdbd);
  border-radius: 1rem;
  text-align: center;
}

.danger-zone h3 {
  color: var(--danger-color, #e11d48);
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.btn-danger {
  background: var(--danger-color, #e11d48);
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow);
}

.btn-danger:hover {
  background: #be123c;
}

@media (min-width: 1200px) {
  .profile-section, .settings-section {
    max-width: 800px;
    padding: 4rem;
  }
}

@media (max-width: 768px) {
  .profile-section, .settings-section {
    padding: 2rem 1rem;
    margin: 1rem auto;
  }
}

.settings-group {
  margin-bottom: 2.5rem;
  padding: 2rem 2rem 2rem 2rem;
  border-bottom: 1px solid var(--gray-100, #f3f4f6);
  background: var(--gray-50, #fcfcfc);
  border-radius: 1.25rem;
  box-shadow: 0 2px 8px 0 rgba(34, 34, 34, 0.04);
  transition: box-shadow 0.2s;
}
.settings-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.settings-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 0.5rem;
  background: none;
  border-radius: 0;
}
.form-switch {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.form-switch input[type="checkbox"] {
  width: 1.5rem;
  height: 1.5rem;
  accent-color: var(--primary-color);
}
.recent-logins {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0 0;
}
.recent-logins li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}
.login-time {
  margin-left: auto;
  color: var(--text-light);
  font-size: 0.85em;
}
@media (max-width: 600px) {
  .settings-title {
    font-size: 1rem;
  }
  .settings-group {
    padding-bottom: 1rem;
    margin-bottom: 1.25rem;
  }
}

.profile-pic-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 1rem auto;
}
.profile-pic {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-color);
  background: var(--gray-100);
}
.change-pic-btn {
  position: absolute;
  bottom: 0.2rem;
  right: 0.2rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  font-size: 1rem;
  transition: background 0.2s;
}
.change-pic-btn:hover {
  background: var(--secondary-color);
}
.verification-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  margin-top: 0.5rem;
}
.verified {
  color: #22c55e;
  font-weight: 600;
  background: #e7fbe9;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  display: inline-block;
}

.form-row {
  display: flex;
  gap: 2.5rem;
  margin-bottom: 1.5rem;
}
.form-row .form-group {
  flex: 1 1 0;
  min-width: 0;
}
.form-group input,
.form-group select {
  border: 1.5px solid var(--gray-200);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  background: var(--gray-50, #fcfcfc);
  transition: border 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 2px 0 rgba(34, 34, 34, 0.03);
}
.form-group input:focus,
.form-group select:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 2px var(--primary-color), 0 1px 2px 0 rgba(34,34,34,0.03);
}
.form-group label {
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}
@media (min-width: 1200px) {
  .settings-section {
    max-width: 800px;
    padding: 4rem;
  }
  .settings-group {
    padding: 2.5rem 3rem 2.5rem 3rem;
  }
}
@media (max-width: 900px) {
  .form-row {
    flex-direction: column;
    gap: 0;
    margin-bottom: 0.5rem;
  }
  .settings-group {
    padding: 1.25rem 0.5rem;
  }
}

.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(34, 34, 34, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}
.modal-content {
  background: #fff;
  border-radius: 1.25rem;
  box-shadow: 0 8px 32px 0 rgba(0,0,0,0.18);
  padding: 2.5rem 2rem 2rem 2rem;
  max-width: 420px;
  width: 100%;
  position: relative;
  animation: modalIn 0.25s cubic-bezier(.4,2,.6,1) both;
}
.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-light);
  cursor: pointer;
  transition: color 0.2s;
}
.modal-close:hover {
  color: var(--primary-color);
}
.modal-form .form-group {
  margin-bottom: 1.25rem;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(40px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
@media (max-width: 600px) {
  .modal-content {
    padding: 1.25rem 0.5rem 1rem 0.5rem;
    max-width: 98vw;
  }
}

.transaction-item.discrepancy {
  border-left: 5px solid #e11d48;
  background: #fff6f6;
}
.discrepancy-flag {
  color: #e11d48;
  font-weight: 600;
  margin-top: 0.5rem;
  display: inline-block;
}
.discrepancy-flag.ok {
  color: #22c55e;
}
.transaction-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.edit-btn, .delete-btn {
  background: none;
  border: none;
  color: var(--primary-color);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 0.5rem;
  transition: background 0.2s;
}
.edit-btn:hover {
  background: #e0f2fe;
}
.delete-btn {
  color: #e11d48;
}
.delete-btn:hover {
  background: #fee2e2;
}
.empty {
  color: var(--text-light);
  text-align: center;
  padding: 2rem 0;
}
.error {
  color: #e11d48;
  text-align: center;
  padding: 1rem 0;
}

.logs-insights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1rem;
  background: var(--gray-50);
  border-radius: 0.75rem;
}
.insight-card {
  background: white;
  padding: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.insight-card h4 {
  margin: 0 0 0.75rem 0;
  color: var(--primary-color);
  font-size: 0.9rem;
  font-weight: 600;
}
.insight-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.insight-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}
.insight-label {
  color: var(--text-light);
}
.insight-value {
  font-weight: 600;
  color: var(--text-color);
}
.insight-value.success {
  color: #22c55e;
}
.insight-value.error {
  color: #e11d48;
}
.insight-empty {
  color: var(--text-light);
  font-style: italic;
  text-align: center;
  padding: 0.5rem 0;
}
.card-actions {
  display: flex;
  gap: 0.5rem;
}
.btn-secondary {
  background: var(--gray-100);
  color: var(--text-color);
  border: 1px solid var(--gray-200);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-secondary:hover {
  background: var(--gray-200);
  border-color: var(--gray-300);
}
.log-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0.5rem 0;
}
.metric {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8rem;
  color: var(--text-light);
  background: var(--gray-50);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
}
.metric.success {
  color: #22c55e;
  background: #f0fdf4;
}
.metric.warning {
  color: #f59e0b;
  background: #fffbeb;
}
.metric.error {
  color: #e11d48;
  background: #fef2f2;
}
.log-balance {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0.5rem 0;
}
.balance-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8rem;
  color: var(--text-light);
  background: var(--gray-50);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
}
.discrepancy-alert {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #e11d48;
  font-size: 0.8rem;
  font-weight: 500;
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: #fef2f2;
  border-radius: 0.25rem;
  border-left: 3px solid #e11d48;
}
.transaction-actions {
  display: flex;
  gap: 0.5rem;
}
.action-btn {
  background: none;
  border: none;
  padding: 0.5rem;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-light);
}
.action-btn:hover {
  background: var(--gray-100);
}
.edit-btn:hover {
  color: var(--primary-color);
}
.delete-btn:hover {
  color: #e11d48;
}
.empty-state {
  text-align: center;
  padding: 2rem;
  color: var(--text-light);
  font-style: italic;
}

.search-filter-container {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.search-input {
  padding: 0.5rem;
  border: 1px solid var(--gray-200);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  min-width: 200px;
}
.date-input {
  padding: 0.5rem;
  border: 1px solid var(--gray-200);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  min-width: 140px;
}
.sort-select {
  padding: 0.5rem;
  border: 1px solid var(--gray-200);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  background: white;
  min-width: 150px;
}
.pagination-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding: 1rem;
  background: var(--gray-50);
  border-radius: 0.75rem;
}
.pagination-info {
  font-size: 0.875rem;
  color: var(--text-light);
}
.pagination-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.page-numbers {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}
.page-btn {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--gray-200);
  background: white;
  border-radius: 0.25rem;
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 0.2s;
  min-width: 40px;
}
.page-btn:hover {
  background: var(--gray-100);
  border-color: var(--gray-300);
}
.page-btn.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}
.page-ellipsis {
  padding: 0.5rem;
  color: var(--text-light);
  font-size: 0.875rem;
}
@media (max-width: 768px) {
  .search-filter-container {
    flex-direction: column;
    align-items: stretch;
  }
  .search-input,
  .date-input,
  .sort-select {
    min-width: auto;
  }
  .pagination-container {
    flex-direction: column;
    gap: 1rem;
  }
  .pagination-controls {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 1024px) {
  .logs-insights {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0.5rem;
  }
  .insight-card {
    padding: 0.75rem;
  }
}

@media (max-width: 768px) {
  .dashboard-card {
    padding: 1rem;
  }
  .logs-insights {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 0.25rem;
  }
  .insight-card {
    padding: 0.5rem;
    font-size: 0.95rem;
  }
  .search-filter-container {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    margin-bottom: 1rem;
  }
  .search-input,
  .date-input,
  .sort-select {
    min-width: 100%;
    font-size: 1rem;
    padding: 0.75rem;
  }
  .transaction-list {
    padding: 0.25rem 0;
  }
  .transaction-item {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 0.5rem;
    font-size: 1rem;
  }
  .transaction-details h4 {
    font-size: 1.05rem;
  }
  .log-metrics, .log-balance {
    flex-direction: column;
    gap: 0.25rem;
    margin: 0.25rem 0;
  }
  .metric, .balance-item {
    font-size: 0.95rem;
    padding: 0.25rem 0.5rem;
  }
  .pagination-container {
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.5rem;
  }
  .pagination-controls {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }
  .page-btn {
    min-width: 32px;
    font-size: 1rem;
    padding: 0.5rem 0.5rem;
  }
}

@media (max-width: 480px) {
  .dashboard-card {
    padding: 0.5rem;
  }
  .insight-card {
    padding: 0.25rem;
    font-size: 0.9rem;
  }
  .transaction-item {
    padding: 0.5rem 0.25rem;
    font-size: 0.95rem;
  }
  .transaction-details h4 {
    font-size: 1rem;
  }
  .metric, .balance-item {
    font-size: 0.9rem;
    padding: 0.15rem 0.25rem;
  }
  .pagination-container {
    padding: 0.25rem;
  }
  .page-btn {
    min-width: 28px;
    font-size: 0.95rem;
    padding: 0.4rem 0.4rem;
  }
}

@media (min-width: 1200px) {
  .dashboard-card {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding: 3.5rem 4rem 3rem 4rem;
    font-size: 1.15rem;
  }
  .card-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-100);
  }
  .logs-insights {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    padding: 2.5rem 2rem 2rem 2rem;
    margin-bottom: 2.5rem;
  }
  .insight-card {
    padding: 2rem 1.5rem;
    font-size: 1.15rem;
  }
  .transaction-list {
    padding: 2.5rem 1rem 2.5rem 1rem;
    font-size: 1.15rem;
    gap: 2rem;
  }
  .transaction-item {
    padding: 2rem 1.5rem;
    font-size: 1.15rem;
    margin-bottom: 2rem;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  }
  .transaction-details h4 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
  }
  .log-metrics, .log-balance {
    gap: 1rem;
    margin: 1rem 0;
  }
  .metric, .balance-item {
    font-size: 1.15rem;
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
  }
  .pagination-container {
    padding: 2rem 1.5rem;
    font-size: 1.15rem;
    margin-top: 2.5rem;
    gap: 2rem;
  }
  .page-btn {
    min-width: 56px;
    font-size: 1.15rem;
    padding: 1rem 1.25rem;
  }
}

.dashboard-card.full-width {
  width: 100%;
  position: relative;
  max-width: none;
  border-radius: 0;
  padding-left: 0;
  padding-right: 0;
  background-color:yellow;
  position: static;
  left: unset;
  right: unset;
  transform: none;
}

.dashboard-card.full-width > .dashboard-card-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3.5rem 2rem 3rem 2rem;
}

@media (max-width: 1200px) {
  .dashboard-card.full-width > .dashboard-card-content {
    padding: 2rem 0.5rem;
  }
}
