/* AUTH BUNDLE - Generated by build-css-bundles.js */

/* ========== auth.css ========== */
/* ============================================
   RUPIYA - ENHANCED AUTHENTICATION STYLES
   Beautiful Login and Signup page styles
   ============================================ */

/* ============================================
   AUTH PAGE LAYOUT
   ============================================ */

.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  overflow-x: hidden;
  position: relative;
}

/* Animated Background */
.auth-page::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(118, 75, 162, 0.3) 0%, transparent 50%);
  animation: backgroundPulse 15s ease-in-out infinite;
  pointer-events: none;
}

@keyframes backgroundPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Floating Shapes */
.auth-page::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
  border-radius: 50%;
  top: 10%;
  left: -100px;
  animation: float 20s infinite ease-in-out;
  pointer-events: none;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-30px) rotate(5deg);
  }
  50% {
    transform: translateY(-60px) rotate(-5deg);
  }
  75% {
    transform: translateY(-30px) rotate(3deg);
  }
}

/* ============================================
   NAVIGATION
   ============================================ */

.auth-page .landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.auth-page .landing-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.auth-page .landing-logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.auth-page .landing-logo img {
  height: 40px;
  width: auto;
  transition: transform 0.3s ease;
}

.auth-page .landing-logo img:hover {
  transform: scale(1.05);
}

.auth-page .landing-nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.auth-page .landing-nav-links a {
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 0.9375rem;
}

.auth-page .landing-nav-links a:not(.btn) {
  color: var(--primary-blue);
}

.auth-page .landing-nav-links a:not(.btn):hover {
  color: var(--primary-dark);
  background: rgba(102, 126, 234, 0.1);
}

.auth-page .landing-nav-links .btn {
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary-blue);
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.auth-page .landing-nav-links .btn:hover {
  background: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.auth-page .landing-nav-links .btn-light {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.auth-page .landing-nav-links .btn-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
}

/* ============================================
   AUTH CONTAINER
   ============================================ */

.auth-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 20px 40px;
  position: relative;
  z-index: 1;
}

/* ============================================
   AUTH CARD
   ============================================ */

.auth-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.2);
  padding: 48px 40px;
  width: 100%;
  max-width: 440px;
  animation: cardEntrance 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: auto;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-blue), #764ba2, #f093fb);
  background-size: 200% 100%;
  animation: gradientSlide 3s ease-in-out infinite;
}

@keyframes cardEntrance {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes gradientSlide {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ============================================
   AUTH LOGO
   ============================================ */

.auth-logo {
  text-align: center;
  margin-bottom: 32px;
  animation: logoEntrance 0.5s ease-out 0.2s both;
}

@keyframes logoEntrance {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.auth-logo img {
  max-width: 120px;
  height: auto;
  transition: transform 0.3s ease;
}

.auth-logo img:hover {
  transform: scale(1.05) rotate(2deg);
}

/* ============================================
   AUTH TITLE & SUBTITLE
   ============================================ */

.auth-title {
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  color: var(--text-primary);
  margin-bottom: 8px;
  animation: fadeInUp 0.5s ease-out 0.3s both;
  background: linear-gradient(135deg, var(--text-primary), #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-subtitle {
  font-size: 1rem;
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 32px;
  animation: fadeInUp 0.5s ease-out 0.4s both;
}

/* ============================================
   AUTH FORM
   ============================================ */

.auth-form {
  margin-bottom: 24px;
}

#emailStep,
#authMethodsStep {
  width: 100%;
}

.auth-form .form-group {
  margin-bottom: 20px;
  animation: fadeInUp 0.5s ease-out both;
}

.auth-form .form-group:nth-child(1) { animation-delay: 0.5s; }
.auth-form .form-group:nth-child(2) { animation-delay: 0.6s; }
.auth-form .form-group:nth-child(3) { animation-delay: 0.7s; }
.auth-form .form-group:nth-child(4) { animation-delay: 0.8s; }
.auth-form .form-group:nth-child(5) { animation-delay: 0.9s; }

.auth-form .form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

.auth-form .form-label.required::after {
  content: ' *';
  color: #f5576c;
}

.auth-form .form-control {
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  background: var(--white);
  color: var(--text-primary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
}

.auth-form .form-control:hover {
  border-color: var(--medium-gray);
}

.auth-form .form-control:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.15);
  transform: translateY(-1px);
}

.auth-form .form-control::placeholder {
  color: var(--text-secondary);
  opacity: 0.7;
}

/* Password Toggle */
.password-toggle {
  position: relative;
}

.password-toggle .form-control {
  padding-right: 48px;
}

.password-toggle-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border-radius: 8px;
}

.password-toggle-btn:hover {
  color: var(--primary-blue);
  background: rgba(74, 144, 226, 0.1);
}

/* Forgot Password */
.forgot-password {
  text-align: right;
  margin-top: 8px;
  margin-bottom: 24px;
}

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

.forgot-password a:hover {
  color: #764ba2;
  text-decoration: underline;
}

/* Form Check (Terms) */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.form-check-input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--primary-blue);
  cursor: pointer;
  flex-shrink: 0;
}

.form-check-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  flex: 1;
}

.form-check-label a {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 500;
}

.form-check-label a:hover {
  text-decoration: underline;
}

/* Invalid Feedback */
.invalid-feedback {
  font-size: 0.8125rem;
  color: #f5576c;
  margin-top: 6px;
  display: none;
}

.form-control.is-invalid {
  border-color: #f5576c;
  animation: shake 0.4s ease-in-out;
}

.form-control.is-invalid ~ .invalid-feedback {
  display: block;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
  20%, 40%, 60%, 80% { transform: translateX(4px); }
}

/* ============================================
   SUBMIT BUTTON
   ============================================ */

.auth-form .btn-primary.btn-block {
  width: 100%;
  padding: 16px 24px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-blue), #764ba2);
  color: white;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  animation: fadeInUp 0.5s ease-out 1s both;
  position: relative;
  overflow: hidden;
}

.auth-form .btn-primary.btn-block::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 ease;
}

.auth-form .btn-primary.btn-block:hover::before {
  left: 100%;
}

.auth-form .btn-primary.btn-block:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(74, 144, 226, 0.5);
}

.auth-form .btn-primary.btn-block:active {
  transform: translateY(0);
}

.auth-form .btn-primary.btn-block:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Spinner */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ============================================
   DIVIDER
   ============================================ */

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 28px 0;
  animation: fadeIn 0.5s ease-out 1.1s both;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-color);
}

.auth-divider span {
  padding: 0 16px;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============================================
   AUTH METHODS
   ============================================ */

.auth-methods-info {
  margin-bottom: 24px;
  text-align: center;
}

.auth-methods-message {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin: 0;
}

/* ============================================
   SOCIAL LOGIN
   ============================================ */

.auth-social {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
  animation: fadeInUp 0.5s ease-out 1.2s both;
}

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 14px 24px;
  background: var(--white);
  color: var(--text-primary);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-google::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(66, 133, 244, 0.05), rgba(234, 67, 53, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-google:hover::before {
  opacity: 1;
}

.btn-google:hover {
  border-color: var(--medium-gray);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.btn-google:active {
  transform: translateY(0);
}

.btn-google svg {
  flex-shrink: 0;
}

/* ============================================
   AUTH FOOTER
   ============================================ */

.auth-footer {
  text-align: center;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  animation: fadeIn 0.5s ease-out 1.3s both;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  width: 100%;
}

.auth-footer a {
  color: var(--primary-blue);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.auth-footer a:hover {
  color: #764ba2;
  text-decoration: underline;
}

/* ============================================
   FLOATING DECORATIONS
   ============================================ */

.auth-decoration {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.auth-decoration-1 {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
  border-radius: 50%;
  top: 20%;
  right: -50px;
  animation: float 15s infinite ease-in-out;
}

.auth-decoration-2 {
  width: 150px;
  height: 150px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  bottom: 20%;
  left: -30px;
  animation: float 18s infinite ease-in-out reverse;
}

/* ============================================
   MOBILE MENU TOGGLE
   ============================================ */

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark);
  padding: 8px;
  transition: all 0.3s ease;
  border-radius: 8px;
}

.mobile-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
  .auth-page .landing-nav .container {
    padding: 12px 16px;
    position: relative;
    justify-content: center;
  }
  
  .auth-page .landing-logo {
    margin: 0 auto;
  }
  
  .mobile-toggle {
    display: block;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
  }
  
  .auth-page .landing-nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(-150%);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 999;
    gap: 12px;
  }
  
  .auth-page .landing-nav-links.active {
    transform: translateY(0);
    opacity: 1;
  }
  
  .auth-page .landing-nav-links a {
    width: 100%;
    text-align: center;
    color: var(--text-primary);
  }
  
  .auth-page .landing-nav-links a:not(.btn) {
    display: block;
    color: var(--text-primary);
  }
  
  .auth-page .landing-nav-links a:not(.btn):hover {
    color: var(--primary-blue);
    background: rgba(74, 144, 226, 0.1);
  }
  
  .auth-page .landing-nav-links .btn {
    width: 100%;
    justify-content: center;
  }
  
  .auth-page .landing-logo img {
    height: 36px;
  }
  
  .auth-container {
    padding: 100px 16px 32px;
  }
  
  .auth-card {
    padding: 32px 24px;
    border-radius: 20px;
  }
  
  .auth-title {
    font-size: 1.75rem;
  }
  
  .auth-subtitle {
    font-size: 0.9375rem;
    margin-bottom: 24px;
  }
  
  .auth-form .form-control {
    padding: 12px 14px;
  }
  
  .auth-form .btn-primary.btn-block {
    padding: 14px 20px;
  }
  
  .btn-google {
    padding: 12px 20px;
  }
  
  .auth-footer {
    margin-top: 24px;
    padding-top: 20px;
  }
}

@media (max-width: 480px) {
  .auth-card {
    padding: 28px 20px;
  }
  
  .auth-logo img {
    max-width: 100px;
  }
  
  .auth-title {
    font-size: 1.5rem;
  }
}

/* ============================================
   DARK MODE SUPPORT
   ============================================ */

[data-theme="dark"] .auth-card {
  background: rgba(30, 30, 40, 0.95);
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .auth-title {
  background: linear-gradient(135deg, #fff, #a8edea);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="dark"] .auth-form .form-control {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

[data-theme="dark"] .auth-form .form-control:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.2);
}

[data-theme="dark"] .btn-google {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

[data-theme="dark"] .btn-google:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .auth-divider::before,
[data-theme="dark"] .auth-divider::after {
  border-color: rgba(255, 255, 255, 0.1);
}

/* ============================================
   REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  .auth-card,
  .auth-logo,
  .auth-title,
  .auth-subtitle,
  .auth-form .form-group,
  .auth-form .btn-primary.btn-block,
  .auth-divider,
  .auth-social,
  .auth-footer {
    animation: none;
    opacity: 1;
    transform: none;
  }
  
  .auth-page::before,
  .auth-page::after {
    animation: none;
  }
  
  .auth-card::before {
    animation: none;
  }
}

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

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


/* ============================================
   EMAIL VERIFICATION STYLES
   ============================================ */

/* Verification Message (shown after signup) */
.verification-message {
  text-align: center;
  padding: 2rem;
}

.verification-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

.verification-message h2 {
  color: var(--text-primary, #1a1a2e);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.verification-message p {
  color: var(--text-secondary, #666);
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.verification-email {
  background: var(--bg-secondary, #f5f5f5);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin: 1rem 0;
  word-break: break-all;
}

.verification-actions {
  margin-top: 2rem;
}

.verification-actions .btn {
  min-width: 200px;
}

.verification-help {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-muted, #888);
}

.verification-help a {
  color: var(--primary-color, #667eea);
  text-decoration: none;
}

.verification-help a:hover {
  text-decoration: underline;
}

/* Verification Banner (shown on login page) */
.verification-banner {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
  border: 1px solid #ffc107;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  animation: slideDown 0.3s ease-out;
}

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

.verification-banner-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.verification-banner-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.verification-banner-text {
  flex: 1;
  min-width: 200px;
}

.verification-banner-text strong {
  display: block;
  color: #856404;
  margin-bottom: 0.25rem;
}

.verification-banner-text p {
  margin: 0;
  font-size: 0.875rem;
  color: #856404;
}

.verification-banner .btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  white-space: nowrap;
}

/* Dark mode support */
[data-theme="dark"] .verification-message h2 {
  color: var(--text-primary, #fff);
}

[data-theme="dark"] .verification-email {
  background: var(--bg-secondary, #2a2a3e);
}

[data-theme="dark"] .verification-banner {
  background: linear-gradient(135deg, #3d3d00 0%, #4a4a00 100%);
  border-color: #6b6b00;
}

[data-theme="dark"] .verification-banner-text strong,
[data-theme="dark"] .verification-banner-text p {
  color: #ffc107;
}

/* Mobile responsiveness */
@media (max-width: 480px) {
  .verification-banner-content {
    flex-direction: column;
    text-align: center;
  }
  
  .verification-banner .btn-sm {
    width: 100%;
  }
}


/* ========== mobile-enhancements.css ========== */
/* ============================================
   RUPIYA - MOBILE ENHANCEMENTS
   Optimized styles for mobile devices
   ============================================ */

/* ============================================
   MOBILE-FIRST BASE IMPROVEMENTS
   ============================================ */

/* Better touch targets */
@media (max-width: 768px) {
  /* Minimum touch target size (44x44px recommended by Apple) */
  .btn,
  .nav-item,
  .form-control,
  .form-select,
  .dropdown-item,
  .transaction-item,
  .btn-icon {
    min-height: 44px;
  }
  
  /* Improved spacing for touch */
  .nav-item {
    padding: 14px 16px;
  }
  
  /* Better form inputs on mobile */
  .form-control,
  .form-select {
    font-size: 16px; /* Prevents iOS zoom on focus */
    padding: 14px 16px;
  }
  
  /* Larger checkboxes and radios */
  .form-check-input {
    width: 24px;
    height: 24px;
  }
}

/* ============================================
   IMPROVED MOBILE NAVIGATION
   ============================================ */

@media (max-width: 768px) {
  /* Sidebar improvements */
  .sidebar {
    width: 85%;
    max-width: 320px;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
  }
  
  .sidebar.open {
    animation: slideInLeft 0.3s ease-out;
  }
  
  /* Mobile header sticky */
  .mobile-header {
    position: sticky;
    top: 0;
    z-index: 10001;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
  }
  
  [data-theme="dark"] .mobile-header {
    background: rgba(30, 30, 30, 0.95);
  }
  
  /* Bottom navigation option */
  .bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  }
  
  .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 10px;
    transition: color 0.2s ease;
  }
  
  .bottom-nav-item.active {
    color: var(--primary-blue);
  }
  
  .bottom-nav-item .nav-icon {
    font-size: 20px;
  }
  
  /* Add padding to main content when bottom nav is present */
  .has-bottom-nav .main-content {
    padding-bottom: calc(70px + env(safe-area-inset-bottom));
  }
}

/* ============================================
   MOBILE CARDS & GRIDS
   ============================================ */

@media (max-width: 768px) {
  /* Full-width cards on mobile */
  .card,
  .kpi-card,
  .chart-card,
  .transactions-card {
    border-radius: 12px;
    margin-left: -4px;
    margin-right: -4px;
    width: calc(100% + 8px);
  }
  
  /* Horizontal scroll for KPI cards */
  .kpi-grid-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 4px 0;
    margin: 0 -12px;
    padding-left: 12px;
    padding-right: 12px;
  }
  
  .kpi-grid-scroll::-webkit-scrollbar {
    display: none;
  }
  
  .kpi-grid-scroll .kpi-card {
    flex: 0 0 auto;
    width: 160px;
    scroll-snap-align: start;
    margin: 0;
  }
  
  /* Compact transaction list */
  .transaction-item-compact {
    padding: 12px;
    gap: 12px;
  }
  
  .transaction-item-compact .transaction-icon {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
  
  .transaction-item-compact .transaction-title {
    font-size: 14px;
  }
  
  .transaction-item-compact .transaction-meta {
    font-size: 11px;
  }
  
  .transaction-item-compact .transaction-amount {
    font-size: 14px;
  }
}

/* ============================================
   MOBILE FORMS
   ============================================ */

@media (max-width: 768px) {
  /* Stack form grid on mobile */
  .form-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }
  
  .form-grid-2 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  /* Full-width form actions */
  .form-actions {
    flex-direction: column;
    gap: 12px;
  }
  
  .form-actions .btn {
    width: 100%;
    justify-content: center;
  }
  
  /* Floating labels for mobile */
  .form-floating {
    position: relative;
  }
  
  .form-floating .form-control {
    padding-top: 24px;
    padding-bottom: 8px;
  }
  
  .form-floating .form-label {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    transition: all 0.2s ease;
    pointer-events: none;
    color: var(--text-secondary);
    margin: 0;
  }
  
  .form-floating .form-control:focus ~ .form-label,
  .form-floating .form-control:not(:placeholder-shown) ~ .form-label {
    top: 12px;
    font-size: 11px;
    color: var(--primary-blue);
  }
}

/* ============================================
   MOBILE MODALS
   ============================================ */

@media (max-width: 768px) {
  /* Full-screen modals on mobile */
  .modal-overlay {
    padding: 0;
    align-items: flex-end;
  }
  
  .modal-container {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 20px 20px 0 0;
    margin: 0;
  }
  
  .modal-container.modal-sm {
    max-width: 100%;
  }
  
  /* Bottom sheet style modal */
  .modal-bottom-sheet .modal-container {
    animation: slideInUp 0.3s ease-out;
  }
  
  /* Modal drag handle */
  .modal-drag-handle {
    width: 40px;
    height: 4px;
    background: var(--medium-gray);
    border-radius: 2px;
    margin: 8px auto 16px;
  }
  
  /* Compact modal header */
  .modal-header {
    padding: 16px;
  }
  
  .modal-body {
    padding: 16px;
    max-height: calc(90vh - 140px);
    overflow-y: auto;
  }
  
  .modal-footer {
    padding: 16px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
  }
}

/* ============================================
   MOBILE TABLES
   ============================================ */

@media (max-width: 768px) {
  /* Responsive table wrapper */
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -12px;
    padding: 0 12px;
  }
  
  /* Card-style table rows on mobile */
  .table-cards tbody tr {
    display: block;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 12px;
    padding: 12px;
  }
  
  .table-cards tbody td {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border: none;
    border-bottom: 1px solid var(--border-color);
  }
  
  .table-cards tbody td:last-child {
    border-bottom: none;
  }
  
  .table-cards tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 12px;
  }
  
  .table-cards thead {
    display: none;
  }
}

/* ============================================
   MOBILE CHARTS
   ============================================ */

@media (max-width: 768px) {
  .chart-container {
    height: 220px;
  }
  
  /* Horizontal scroll for chart filters */
  .chart-filters {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
  }
  
  .chart-filters::-webkit-scrollbar {
    display: none;
  }
  
  .chart-filter {
    flex-shrink: 0;
    white-space: nowrap;
  }
}

/* ============================================
   MOBILE EMPTY STATES
   ============================================ */

@media (max-width: 768px) {
  .empty-state {
    padding: 32px 16px;
  }
  
  .empty-state-icon {
    font-size: 48px;
  }
  
  .empty-state-title {
    font-size: 18px;
  }
  
  .empty-state-text {
    font-size: 14px;
  }
}

/* ============================================
   MOBILE TYPOGRAPHY
   ============================================ */

@media (max-width: 768px) {
  h1 { font-size: 24px; }
  h2 { font-size: 20px; }
  h3 { font-size: 18px; }
  h4 { font-size: 16px; }
  
  .page-title {
    font-size: 22px;
  }
  
  .page-subtitle {
    font-size: 13px;
  }
  
  /* Truncate long text */
  .text-truncate-mobile {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }
}

/* ============================================
   MOBILE SPACING
   ============================================ */

@media (max-width: 768px) {
  .container {
    padding: 0 12px;
  }
  
  .main-content {
    padding: 12px;
  }
  
  /* Compact sections */
  .section-compact {
    margin-bottom: 16px;
  }
  
  /* Reduced gaps */
  .gap-mobile-sm { gap: 8px; }
  .gap-mobile-md { gap: 12px; }
  .gap-mobile-lg { gap: 16px; }
}

/* ============================================
   MOBILE SAFE AREAS (Notch support)
   ============================================ */

@supports (padding: env(safe-area-inset-top)) {
  .mobile-header {
    padding-top: env(safe-area-inset-top);
  }
  
  .sidebar {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
  }
  
  .modal-footer {
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
  }
}

/* ============================================
   MOBILE PULL TO REFRESH
   ============================================ */

.ptr-element {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

.ptr-element.visible {
  transform: translateY(0);
}

.ptr-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--light-gray);
  border-top-color: var(--primary-blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ============================================
   MOBILE SWIPE ACTIONS
   ============================================ */

.swipe-container {
  position: relative;
  overflow: hidden;
}

.swipe-content {
  transition: transform 0.3s ease;
}

.swipe-actions {
  position: absolute;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: stretch;
}

.swipe-actions-left {
  left: 0;
  transform: translateX(-100%);
}

.swipe-actions-right {
  right: 0;
  transform: translateX(100%);
}

.swipe-action {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  color: white;
  font-weight: 600;
}

.swipe-action-delete {
  background: var(--accent-red);
}

.swipe-action-edit {
  background: var(--primary-blue);
}

/* ============================================
   MOBILE DARK MODE ENHANCEMENTS
   ============================================ */

@media (max-width: 768px) {
  [data-theme="dark"] .mobile-header {
    background: rgba(30, 30, 30, 0.95);
    border-color: #333;
  }
  
  [data-theme="dark"] .bottom-nav {
    background: #1e1e1e;
    border-color: #333;
  }
  
  [data-theme="dark"] .card,
  [data-theme="dark"] .kpi-card,
  [data-theme="dark"] .transactions-card {
    background: #1e1e1e;
    border-color: #333;
  }
}

/* ============================================
   LANDSCAPE MOBILE OPTIMIZATIONS
   ============================================ */

@media (max-width: 768px) and (orientation: landscape) {
  .mobile-header {
    padding: 8px 12px;
  }
  
  .kpi-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .modal-container {
    max-height: 85vh;
  }
  
  .chart-container {
    height: 180px;
  }
}

/* ============================================
   SMALL MOBILE (< 375px)
   ============================================ */

@media (max-width: 374px) {
  .container {
    padding: 0 8px;
  }
  
  .main-content {
    padding: 8px;
  }
  
  .kpi-card {
    padding: 10px;
  }
  
  .kpi-value {
    font-size: 18px;
  }
  
  .btn {
    padding: 10px 16px;
    font-size: 13px;
  }
  
  .form-control,
  .form-select {
    padding: 12px;
  }
}


/* ============================================
   CRITICAL MOBILE FIXES - JANUARY 2026
   ============================================ */

/* ============================================
   PREVENT HORIZONTAL SCROLL
   ============================================ */

html, body {
  overflow-x: hidden;
  max-width: 100vw;
  position: relative;
}

* {
  max-width: 100%;
  box-sizing: border-box;
}

/* ============================================
   TEXT OVERFLOW HANDLING
   ============================================ */

body {
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Long URLs and emails */
a, p, span, li, td, label {
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Input fields */
input, textarea, select {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* ============================================
   MOBILE BUTTON IMPROVEMENTS
   ============================================ */

@media (max-width: 768px) {
  /* All buttons minimum 44x44px */
  .btn {
    min-width: 44px;
    min-height: 44px;
    padding: 12px 20px;
    font-size: 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
  }
  
  .btn-icon {
    min-width: 44px;
    min-height: 44px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Full-width buttons on mobile */
  .btn-block {
    width: 100%;
    display: block;
  }
  
  /* Button groups */
  .btn-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }
  
  .btn-group .btn {
    flex: 1;
    min-width: 100px;
  }
}

/* ============================================
   MOBILE LINK IMPROVEMENTS
   ============================================ */

@media (max-width: 768px) {
  a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 8px 4px;
  }
  
  /* Navigation links */
  .nav-link, .sidebar-link {
    min-height: 44px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
  }
}

/* ============================================
   MOBILE INPUT IMPROVEMENTS
   ============================================ */

@media (max-width: 768px) {
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="number"],
  input[type="date"],
  input[type="tel"],
  textarea,
  select {
    font-size: 16px; /* Prevents iOS zoom */
    padding: 14px 16px;
    min-height: 44px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    width: 100%;
  }
  
  /* Focus states */
  input:focus,
  textarea:focus,
  select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
  }
  
  /* Checkboxes and radios */
  input[type="checkbox"],
  input[type="radio"] {
    min-width: 24px;
    min-height: 24px;
    cursor: pointer;
  }
  
  /* Label touch targets */
  label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    cursor: pointer;
  }
}

/* ============================================
   MOBILE DROPDOWN IMPROVEMENTS
   ============================================ */

@media (max-width: 768px) {
  .dropdown-menu {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 60vh;
    border-radius: 20px 20px 0 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .dropdown-item {
    padding: 16px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

/* ============================================
   MOBILE PAGINATION
   ============================================ */

@media (max-width: 768px) {
  .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 20px 0;
  }
  
  .pagination-btn {
    min-width: 44px;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    background: var(--white);
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
  }
  
  .pagination-btn:hover:not(:disabled) {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
  }
  
  .pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }
}

/* ============================================
   MOBILE TABS
   ============================================ */

@media (max-width: 768px) {
  .tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -12px;
    padding: 0 12px;
  }
  
  .tab-btn {
    flex: 1;
    min-width: 80px;
    padding: 12px 16px;
    border: none;
    background: none;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-secondary);
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
  }
  
  .tab-btn.active {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
  }
}

/* ============================================
   MOBILE ACCORDION
   ============================================ */

@media (max-width: 768px) {
  .accordion-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 8px;
    overflow: hidden;
  }
  
  .accordion-header {
    padding: 16px;
    background: var(--white);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 44px;
    user-select: none;
  }
  
  .accordion-header:hover {
    background: var(--bg-hover);
  }
  
  .accordion-content {
    padding: 16px;
    border-top: 1px solid var(--border-color);
    display: none;
  }
  
  .accordion-item.open .accordion-content {
    display: block;
  }
}

/* ============================================
   MOBILE CARD IMPROVEMENTS
   ============================================ */

@media (max-width: 768px) {
  .card {
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--white);
    padding: 16px;
    margin-bottom: 12px;
  }
  
  .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    gap: 8px;
  }
  
  .card-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
  }
  
  .card-body {
    font-size: 14px;
  }
  
  .card-footer {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
  }
}

/* ============================================
   MOBILE BADGE IMPROVEMENTS
   ============================================ */

@media (max-width: 768px) {
  .badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
  }
  
  .badge-primary {
    background: var(--primary-blue);
    color: white;
  }
  
  .badge-success {
    background: var(--accent-green);
    color: white;
  }
  
  .badge-danger {
    background: var(--accent-red);
    color: white;
  }
}

/* ============================================
   MOBILE ALERT IMPROVEMENTS
   ============================================ */

@media (max-width: 768px) {
  .alert {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 12px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
  }
  
  .alert-icon {
    flex-shrink: 0;
    font-size: 20px;
  }
  
  .alert-content {
    flex: 1;
  }
  
  .alert-close {
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    padding: 0;
    color: inherit;
  }
}

/* ============================================
   MOBILE TOOLTIP IMPROVEMENTS
   ============================================ */

@media (max-width: 768px) {
  .tooltip {
    position: fixed;
    bottom: 20px;
    left: 12px;
    right: 12px;
    padding: 12px 16px;
    background: #333;
    color: white;
    border-radius: 8px;
    font-size: 13px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
}

/* ============================================
   MOBILE LOADING STATES
   ============================================ */

@media (max-width: 768px) {
  .loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    gap: 16px;
  }
  
  .spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--light-gray);
    border-top-color: var(--primary-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
  }
  
  .spinner-lg {
    width: 48px;
    height: 48px;
    border: 4px solid var(--light-gray);
    border-top-color: var(--primary-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
  }
  
  @keyframes spin {
    to { transform: rotate(360deg); }
  }
}

/* ============================================
   MOBILE SKELETON LOADERS
   ============================================ */

@media (max-width: 768px) {
  .skeleton {
    background: linear-gradient(
      90deg,
      var(--light-gray) 25%,
      var(--bg-hover) 50%,
      var(--light-gray) 75%
    );
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
  }
  
  @keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
  }
}

/* ============================================
   MOBILE GESTURE FEEDBACK
   ============================================ */

@media (max-width: 768px) {
  .active-state {
    background: var(--bg-hover);
    transform: scale(0.98);
  }
  
  .ripple {
    position: relative;
    overflow: hidden;
  }
  
  .ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(74, 144, 226, 0.3);
    transform: translate(-50%, -50%);
    animation: ripple-animation 0.6s ease-out;
  }
  
  @keyframes ripple-animation {
    to {
      width: 300px;
      height: 300px;
      opacity: 0;
    }
  }
}

/* ============================================
   MOBILE PRINT STYLES
   ============================================ */

@media print {
  .mobile-header,
  .sidebar,
  .bottom-nav,
  .fab-container,
  .btn-icon {
    display: none !important;
  }
  
  .main-content {
    padding: 0;
  }
}

/* ============================================
   INVESTMENTS PAGE MOBILE ENHANCEMENTS
   ============================================ */

@media (max-width: 768px) {
  /* KPI Cards - 3 per row like goals page */
  .portfolio-summary {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    margin-bottom: 1rem;
    padding: 12px;
  }
  
  .summary-card {
    padding: 10px 8px !important;
    flex-direction: column !important;
    text-align: center !important;
    align-items: center !important;
    gap: 4px !important;
    min-height: auto !important;
    border-radius: 10px;
    background: white;
    border: 2px solid #4A90E2;
  }
  
  .summary-icon {
    width: auto !important;
    height: auto !important;
    font-size: 24px !important;
    margin: 0 auto;
  }
  
  .summary-label {
    font-size: 9px !important;
    margin-bottom: 2px;
    text-transform: uppercase;
  }
  
  .summary-value {
    font-size: 14px !important;
    font-weight: 700;
  }
  
  .summary-change {
    font-size: 10px !important;
    margin-top: 2px;
  }
  
  /* Investment Cards - 1 per row for readability */
  .investments-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }
  
  .investment-card {
    padding: 0 !important;
    min-height: auto !important;
    display: block !important;
    border-radius: 12px;
    background: white;
    border: 2px solid #4A90E2;
    overflow: visible !important;
  }
  
  .investment-card-header {
    padding: 12px;
    margin-bottom: 0 !important;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
  }
  
  .investment-info {
    flex: 1;
    min-width: 0;
  }
  
  .investment-name {
    font-size: 16px !important;
    font-weight: 600;
    margin-bottom: 4px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    display: block !important;
    white-space: normal !important;
  }
  
  .investment-type {
    font-size: 11px !important;
    padding: 2px 8px !important;
    display: inline-block;
    background: #f0f0f0 !important;
    color: #666 !important;
    border-radius: 4px;
  }
  
  .investment-symbol {
    font-size: 11px !important;
    padding: 2px 6px !important;
    display: inline-block;
    margin-left: 6px;
    background: #e8f4fd !important;
    color: #4A90E2 !important;
    border-radius: 4px;
    font-family: monospace;
  }
  
  .investment-actions {
    display: flex !important;
    flex-direction: row !important;
    gap: 4px !important;
    flex-shrink: 0;
  }
  
  .investment-actions .btn-icon {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    font-size: 14px;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: #f5f5f5;
    border: none !important;
  }
  
  .investment-actions .btn-icon.btn-danger {
    background: #ffebee;
  }
  
  .investment-card-body {
    padding: 12px !important;
    display: block !important;
    gap: 0 !important;
    flex: none !important;
    margin-bottom: 0 !important;
  }
  
  .investment-stat {
    display: flex;
    flex-direction: column;
  }
  
  .investment-stat-label {
    font-size: 10px !important;
    color: #666;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
  }
  
  .investment-stat-value {
    font-size: 14px !important;
    font-weight: 600;
    display: block;
  }
  
  .investment-stat-inr {
    font-size: 12px;
    margin-top: 2px;
  }
  
  .investment-stats-row {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    margin-bottom: 12px;
  }
  
  .investment-stats-row:last-child {
    margin-bottom: 0;
  }
  
  .investment-stats-row:first-child {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  .investment-returns-row {
    padding-top: 12px !important;
    border-top: 1px solid #eee !important;
    margin-top: 12px !important;
    display: block !important;
  }
  
  .investment-stat-full {
    text-align: left !important;
    grid-column: 1 / -1;
  }
  
  .investment-stat-full .investment-stat-value {
    font-size: 16px !important;
    font-weight: 700;
  }
  
  .price-change {
    font-size: 12px !important;
    margin-top: 4px;
    font-weight: 600;
    display: block;
  }
  
  .investment-card-footer {
    padding: 10px 12px !important;
    border-top: 1px solid #eee;
    margin-top: 0 !important;
    display: block !important;
    background: #fafafa;
    border-radius: 0 0 10px 10px;
  }
  
  .investment-date {
    font-size: 11px !important;
    color: #888;
  }
  
  .investment-notes {
    margin-top: 0 !important;
    padding: 10px 12px !important;
    border-top: 1px solid #eee;
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    background: #f9f9f9;
  }
  
  .live-indicator {
    font-size: 9px !important;
    background: #4CAF50 !important;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    display: inline-block;
    margin-left: 4px;
  }
}

@media (max-width: 480px) {
  /* Extra small mobile - keep 3 summary cards */
  .portfolio-summary {
    gap: 6px !important;
    padding: 8px;
  }
  
  .summary-card {
    padding: 8px 6px !important;
  }
  
  .summary-icon {
    font-size: 20px !important;
  }
  
  .summary-label {
    font-size: 8px !important;
  }
  
  .summary-value {
    font-size: 12px !important;
  }
  
  .summary-change {
    font-size: 9px !important;
  }
  
  /* Investment cards - still 1 per row */
  .investments-grid {
    gap: 10px !important;
  }
  
  .investment-card {
    padding: 0 !important;
  }
  
  .investment-card-header {
    padding: 10px;
  }
  
  .investment-card-body {
    padding: 10px !important;
  }
  
  .investment-name {
    font-size: 14px !important;
  }
  
  .investment-type,
  .investment-symbol {
    font-size: 10px !important;
    padding: 2px 6px !important;
  }
  
  .investment-actions .btn-icon {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
  }
  
  .investment-stat-label {
    font-size: 9px !important;
  }
  
  .investment-stat-value {
    font-size: 13px !important;
  }
  
  .investment-stat-full .investment-stat-value {
    font-size: 14px !important;
  }
  
  .price-change {
    font-size: 11px !important;
  }
}

/* ============================================
   FOOTER MOBILE ENHANCEMENTS
   ============================================ */

@media (max-width: 768px) {
  .landing-footer {
    padding: 3rem 1rem 1.5rem;
    margin-top: 2rem;
  }

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

  .footer-section h4 {
    font-size: 1rem;
    padding-bottom: 0.5rem;
  }

  .footer-section ul {
    gap: 0.5rem;
  }

  .footer-section a {
    font-size: 0.875rem;
    padding: 0.375rem 0;
  }

  .footer-bottom {
    gap: 0.75rem;
    padding-top: 1.5rem;
  }

  .footer-copyright {
    font-size: 0.8rem;
  }

  .footer-disclaimer {
    font-size: 0.75rem;
  }

  .footer-social {
    gap: 0.75rem;
  }

  .footer-social a {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .landing-footer {
    padding: 2rem 0.75rem 1rem;
    margin-top: 1.5rem;
  }

  .footer-content {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  .footer-section h4 {
    font-size: 0.9rem;
    padding-bottom: 0.375rem;
    margin-bottom: 0.25rem;
  }

  .footer-section h4::before {
    width: 3px;
    height: 16px;
  }

  .footer-section ul {
    gap: 0.375rem;
  }

  .footer-section li {
    margin: 0;
  }

  .footer-section a {
    font-size: 0.8rem;
    padding: 0.25rem 0;
  }

  .footer-section a::before {
    display: none;
  }

  .footer-bottom {
    gap: 0.5rem;
    padding-top: 1rem;
  }

  .footer-copyright {
    font-size: 0.75rem;
    line-height: 1.4;
  }

  .footer-disclaimer {
    font-size: 0.7rem;
    line-height: 1.3;
  }

  .footer-social {
    gap: 0.5rem;
  }

  .footer-social a {
    width: 36px;
    height: 36px;
    font-size: 1rem;
    border-width: 1px;
  }
}



