                        /* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Light Theme Colors */
    --primary-color: #6366f1;
    --primary-hover: #5855eb;
    --secondary-color: #f1f5f9;
    --accent-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-card: #ffffff;
    
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    
    --border-color: #e2e8f0;
    --border-hover: #cbd5e1;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-secondary: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-danger: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --bg-card: #1e293b;
    
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    
    --border-color: #334155;
    --border-hover: #475569;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.3), 0 2px 4px -2px rgb(0 0 0 / 0.3);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.3), 0 4px 6px -4px rgb(0 0 0 / 0.3);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.3), 0 8px 10px -6px rgb(0 0 0 / 0.3);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: all 0.3s ease;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.75rem;
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    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(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-danger {
    background: var(--gradient-danger);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 9999;
    transition: all 0.3s ease;
    /* Ensure header stays fixed during transitions */
    will-change: transform;
    /* Additional properties to ensure fixed positioning */
    transform: translateZ(0);
}

[data-theme="dark"] .nav {
    background: rgba(15, 23, 42, 0.95);
}

[data-theme="dark"] .message-text {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .ai-message .message-text {
    background: var(--bg-secondary);
    border: none;
}

/* Message text styling */
.message-text {
    line-height: 1.5;
    color: var(--text-primary);
}



.message-text p {
    margin: 0 0 0.5rem 0;
    font-size: 0.95rem;
    color: inherit;
}

/* AI message specific styling */
.ai-message .message-text {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
}

/* AI message bubble styling */
.ai-message {
    background: var(--bg-secondary);
    align-self: flex-start;
    border-bottom-left-radius: 0;
    color: var(--text-primary);
}

/* User message text styling */
.user-message .message-text {
    color: white;
    background: transparent;
    border: none;
}

.user-message .message-text p {
    margin: 0 0 0.5rem 0;
    font-size: 0.95rem;
    color: inherit;
}

[data-theme="dark"] .chat-messages {
    background: var(--bg-primary);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
    /* Ensure container stays fixed with nav */
    position: relative;
    z-index: 10000;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-color);
}

.nav-brand i {
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Pricing Toggle Button */
#pricing-toggle {
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 0.5rem;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#pricing-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.theme-toggle {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.theme-toggle:hover {
    background: var(--bg-tertiary);
    color: var(--primary-color);
    transform: scale(1.05);
}

/* Landing Page */
.landing-page {
    min-height: 100vh;
    /* Add padding to account for fixed header */
    padding-top: 4rem;
    /* Ensure proper positioning context */
    position: relative;
    z-index: 1;
    overflow: visible;
    height: auto;
}

/* Hero Section */
.hero {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
    overflow: hidden;
    /* Ensure hero section is positioned correctly with fixed header */
    scroll-margin-top: 4rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
}

.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    gap: 2rem;
    width: 100%;
    box-sizing: border-box;
}

/* Stats Grid */
.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 1s ease-out 0.6s both;
}

.floating-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    animation: float 6s ease-in-out infinite, shock 2s ease-in-out infinite, gradient 4s ease-in-out infinite;
    max-width: 300px;
    width: 100%;
    position: relative;
    transform-origin: center;
    background-size: 200% 200%;
    overflow: hidden;
}

.floating-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    animation: rotate 8s linear infinite;
    z-index: -1;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.card-header i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.card-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.feature-icon-small {
    width: 3rem;
    height: 3rem;
    background: var(--gradient-primary);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    color: white;
    font-size: 1.25rem;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Sections */
section {
    scroll-margin-top: 5rem; /* Account for fixed header when scrolling to sections */
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Features Section */
.features {
    padding: 6rem 0;
    background: var(--bg-primary);
}

.features .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Ensure Powerful Features are in 3x2 grid layout */
@media (min-width: 992px) {
    .features .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) and (min-width: 768px) {
    .features .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .features .features-grid {
        grid-template-columns: 1fr;
    }
}

/* Feature Cards */
.feature-card {
    background: var(--bg-card);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Animation delays removed for visibility */

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-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;
    color: white;
    font-size: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Surprising Features Section */
.surprising-features {
    padding: 6rem 0;
    background: var(--bg-primary);
}

.surprising-features .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.surprising-features .section-title {
    color: var(--text-primary);
}

.surprising-features .section-subtitle {
    color: var(--text-secondary);
}

.surprising-features .feature-card {
    background: var(--bg-card);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Ensure all four cards in Surprising Features are in one row on desktop */
@media (min-width: 1200px) {
    .surprising-features .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .surprising-features .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .surprising-features .features-grid {
        grid-template-columns: 1fr;
    }
}

/* Animation delays removed for visibility */

/* Screenshots Section */
.screenshots {
    padding: 6rem 0;
    background: var(--bg-primary);
}

.screenshot-placeholder {
    background: var(--bg-secondary);
    border: 2px dashed var(--border-color);
    border-radius: 1rem;
    padding: 4rem 2rem;
    text-align: center;
    margin-top: 2rem;
}

.placeholder-content i {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.placeholder-content p {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

/* About Section */
.about {
    padding: 6rem 0;
    background: var(--bg-secondary);
    text-align: center;
}

.about-text {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: var(--bg-primary);
}

.contact .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.contact-item {
    text-align: center;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.contact-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-item h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.contact-item p {
    color: var(--text-secondary);
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1rem;
    overflow: visible; /* Ensure content is not clipped */
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap; /* Allow content to wrap if needed */
    gap: 1rem; /* Add spacing between items */
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-color);
}

.footer-brand i {
    font-size: 1.5rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap; /* Allow buttons to wrap if needed */
    justify-content: center; /* Center buttons */
    min-width: 0; /* Allow content to shrink if needed */
}

.footer-links button {
    background: none;
    border: none;
    color: var(--text-primary); /* Changed from var(--text-secondary) to var(--text-primary) for better visibility */
    cursor: pointer;
    font-size: 0.875rem;
    transition: color 0.3s ease;
    white-space: nowrap; /* Prevent text wrapping */
    overflow: visible; /* Ensure text is not clipped */
    text-overflow: clip; /* Ensure text is not truncated */
    min-width: 0; /* Allow content to determine width */
    padding: 0.5rem 1rem; /* Add some padding for better touch targets */
    border-radius: 0.25rem; /* Slight rounding for better appearance */
    flex-shrink: 0; /* Prevent buttons from shrinking */
    font-weight: 500; /* Slightly bolder text for better readability */
}

.footer-links button:hover {
    color: var(--primary-color);
    background-color: rgba(99, 102, 241, 0.1); /* Subtle hover background */
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.875rem;
    overflow: visible; /* Ensure text is not clipped */
    text-overflow: clip; /* Ensure text is not truncated */
    white-space: normal; /* Allow text to wrap if needed */
}

/* Ensure footer links are fully visible on mobile */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .footer-links button {
        white-space: nowrap;
        overflow: visible;
        text-overflow: clip;
    }
}

/* Main App */
.main-app {
    min-height: 100vh;
    background: var(--bg-primary);
    padding-top: 3.5rem; /* Height of fixed header */
    padding-bottom: 4rem; /* Height of fixed mobile nav */
    height: 100vh;
    overflow: hidden;
}

/* Fix for fullscreen display on desktop */
@media (min-width: 769px) {
    .main-app {
        height: 100vh;
        min-height: 100vh;
        overflow: hidden;
        padding-bottom: 0;
    }
}

/* App Header */
.app-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 0.25rem 0;
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.app-header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 3.5rem;
}

.app-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.app-brand i {
    font-size: 1.25rem;
}

/* ChatGPT-like Navigation Tabs */
.app-navigation {
    display: flex;
    gap: 0.125rem;
    flex: 1;
    justify-content: center;
    max-width: 600px;
    padding: 0 0.75rem;
}

.nav-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.875rem;
    border: none;
    border-radius: 0.375rem;
    font-weight: 500;
    font-size: 0.8125rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
    background: transparent;
    color: var(--text-secondary);
    position: relative;
    height: 2.25rem;
}

.nav-tab.active {
    background: var(--bg-tertiary);
    color: var(--primary-color);
    font-weight: 600;
}

.nav-tab:hover:not(.active) {
    background: var(--bg-secondary);
}

/* Add styles for export dropdown */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  min-width: 120px;
  overflow: hidden;
  margin-top: 0.25rem;
}

.dropdown-content.show {
  display: block;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
}

.message.user-message .message-content {
  align-items: flex-end;
  background: transparent;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-size: 0.875rem;
  transition: background 0.2s ease;
}

.dropdown-item:hover {
  background: var(--bg-secondary);
}

.dropdown-item i {
  width: 1rem;
  text-align: center;
}

/* PDF export styles */
.pdf-header {
  text-align: center;
  margin-bottom: 2rem;
}

.pdf-logo {
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.pdf-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2rem;
}

.pdf-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.pdf-table th,
.pdf-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.pdf-table th {
  background: var(--bg-secondary);
  font-weight: 600;
  color: var(--text-primary);
}

.pdf-table tr:last-child td {
  border-bottom: none;
}

.pdf-footer {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.875rem;
}

.watermark {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
  opacity: 0.1;
  font-size: 4rem;
  font-weight: bold;
  color: var(--primary-color);
  pointer-events: none;
  z-index: -1;
  white-space: nowrap;
}

.nav-tab.active {
  color: var(--text-primary);
}

.nav-tab.active::after {
    content: '';
    position: absolute;
    bottom: -0.25rem;
    left: 0.5rem;
    right: 0.5rem;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
}

.nav-tab .pro-badge {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    font-size: 0.6rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 5px;
    vertical-align: top;
}

.app-header-actions {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex-shrink: 0;
}

.theme-toggle {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    padding: 0.375rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 2.25rem;
    width: 2.25rem;
}

.theme-toggle:hover {
    background: var(--bg-tertiary);
    color: var(--primary-color);
    transform: scale(1.05);
}
/* Mobile Navigation (Bottom Bar) */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 0.25rem 0; /* Reduced padding */
    display: none; /* Hidden by default on desktop */
    height: 3.5rem; /* Fixed height for proper positioning */
}

.mobile-nav-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0.5rem;
    height: 100%;
}

.mobile-nav-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.25rem; /* Reduced padding */
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 0.5rem;
    min-width: 50px; /* Reduced width */
    flex: 1;
}

.mobile-nav-tab span {
    display: none; /* Hide text labels */
}

.mobile-nav-tab.active {
    color: var(--primary-color);
    background: var(--bg-secondary);
}

.mobile-nav-tab i {
    font-size: 1.25rem;
}

.mobile-nav-tab:hover:not(.active) {
    color: var(--text-primary);
    background: var(--bg-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .app-navigation {
        justify-content: flex-start;
        padding: 0 0.5rem;
        max-width: none;
        -webkit-overflow-scrolling: touch;
        display: none !important; /* Hide top navigation on mobile */
    }
    
    /* Ensure main app takes full height on mobile */
    .main-app {
        height: 100vh;
        min-height: 100vh;
        overflow: hidden;
    }
    
    .app-navigation::-webkit-scrollbar {
        display: none;
    }
    
    .nav-text, .btn-text {
        display: none;
    }
    
    .app-navigation .nav-tab {
        padding: 0.375rem 0.75rem;
        flex-shrink: 0;
    }
    
    .app-navigation .nav-tab i {
        margin-right: 0;
    }
    
    /* Keep the MoneyWise text visible on mobile */
    .app-brand span {
        display: inline-block;
    }
    
    .app-header-content {
        padding: 0 0.5rem;
    }
    
    .app-navigation {
        gap: 0.125rem;
    }
    
    .app-header-actions {
        gap: 0.25rem;
    }
    
    .theme-toggle {
        padding: 0.3rem;
        height: 2rem;
        width: 2rem;
    }
    
    .app-header-content {
        height: 3rem;
    }
    
    /* Show mobile nav on smaller screens */
    .mobile-nav {
        display: block;
    }
    
    /* Reduce mobile nav height and adjust main content padding */
    .mobile-nav {
        padding: 0.25rem 0;
    }
    
    .main-app {
        padding-bottom: 4rem; /* Ensure proper spacing for mobile nav and input container */
    }
    
    /* Ensure savings goals page scrolls properly */
    #savings-goals-page {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        height: 100%;
        max-height: 100vh;
    }

    /* Ensure content scrolls properly between fixed header and footer */
    .dashboard,
    .chartboard-view,
    .ai-insights-view,
    .pro-features-view,
    .savings-goals-page {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        height: calc(100vh - 3.5rem - 3.5rem); /* Full height minus header and shorter footer */
    }
}

/* Ensure savings goals page scrolls properly */
#savings-goals-page {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    height: 100vh !important;
    max-height: 100vh !important;
}

/* Ensure content scrolls properly between fixed header and footer on desktop */
@media (min-width: 769px) {
    .dashboard,
    .chartboard-view,
    .ai-insights-view,
    .pro-features-view,
    .savings-goals-page {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        height: calc(100vh - 3.5rem); /* Full height minus header only on desktop */
    }
}

@media (max-width: 480px) {
    .app-navigation .nav-tab {
        padding: 0.375rem 0.625rem;
    }
    
    .app-brand {
        font-size: 1rem;
    }
    
    .app-brand i {
        font-size: 1.125rem;
    }
}

/* Feature Highlight Section */
.feature-highlight-section {
    background: var(--bg-card);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    margin-top: 2rem;
}

.feature-highlight-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.feature-highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.feature-highlight-card {
    background: var(--bg-secondary);
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.feature-highlight-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.feature-highlight-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0.75rem 0;
    color: var(--text-primary);
}

.feature-highlight-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
}

.feature-highlight-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* Dashboard */
.dashboard {
    padding: 2rem 0;
}

.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    gap: 2rem;
    width: 100%;
    box-sizing: border-box;
}

/* Financial Insights Panel */
.insights-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem 0;
}

.insight-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.insight-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.insight-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.insight-item:hover::before {
    transform: scaleX(1);
}

.insight-item:nth-child(2)::before {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.insight-item:nth-child(3)::before {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.insight-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    align-self: flex-start;
    background: rgba(99, 102, 241, 0.1);
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    min-width: 3rem;
    min-height: 3rem;
    box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.3);
    box-sizing: border-box;
}

.insight-item:nth-child(2) i {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.2);
}

.insight-item:nth-child(3) i {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
    box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.2);
}

.insight-item:hover i {
    transform: scale(1.1);
    background: rgba(99, 102, 241, 0.2);
    box-shadow: inset 0 0 0 2px rgba(99, 102, 241, 0.3), 0 4px 6px -1px rgba(99, 102, 241, 0.1);
}

.insight-item:nth-child(2):hover i {
    background: rgba(16, 185, 129, 0.2);
    box-shadow: inset 0 0 0 2px rgba(16, 185, 129, 0.3), 0 4px 6px -1px rgba(16, 185, 129, 0.1);
}

.insight-item:nth-child(3):hover i {
    background: rgba(245, 158, 11, 0.2);
    box-shadow: inset 0 0 0 2px rgba(245, 158, 11, 0.3), 0 4px 6px -1px rgba(245, 158, 11, 0.1);
}

.insight-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.insight-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Responsive adjustments for insights panel */
@media (max-width: 768px) {
    .insights-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .insight-item {
        padding: 1rem;
    }
    
    .insight-content h4 {
        font-size: 1rem;
    }
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* ChartBoard Styles */
.chart-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
}

/* Laptop: 2x2 grid layout */
@media (min-width: 1024px) {
    .chartboard-view .chart-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .chartboard-view .chart-grid .chart-card.full-width {
        grid-column: 1 / -1;
    }
}

/* Desktop: Custom layout for ChartBoard KPIs */
@media (min-width: 1024px) {
    .chartboard-view .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    
    .chartboard-view .stats-grid .stat-card:nth-child(1),
    .chartboard-view .stats-grid .stat-card:nth-child(2) {
        /* First row: Total Income YTD and Total Expenses YTD */
    }
    
    .chartboard-view .stats-grid .stat-card:nth-child(3),
    .chartboard-view .stats-grid .stat-card:nth-child(4) {
        /* Second row: Net Savings % and Financial Health Score */
    }
}

/* Mobile: Single column layout for ChartBoard KPIs and charts */
@media (max-width: 768px) {
    .chartboard-view .stats-grid {
        grid-template-columns: 1fr; /* Single column for KPI cards */
        gap: 1rem;
    }
    
    .chartboard-view .chart-grid {
        grid-template-columns: 1fr; /* Single column for charts */
        gap: 1rem;
    }
    
    .chartboard-view .chart-card.full-width {
        grid-column: 1; /* Reset full-width on mobile */
    }
}

.stat-card {
    background: var(--bg-card);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    transition: transform 0.3s ease;
}

.stat-card.income::before {
    background: var(--gradient-secondary);
}

.stat-card.expense::before {
    background: var(--gradient-danger);
}

.stat-card.balance::before {
    background: var(--gradient-primary);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    min-width: 3rem;
    min-height: 3rem;
}

.stat-icon i {
    font-size: 1.25rem;
    width: 1.25rem;
    height: 1.25rem;
}

.stat-card.income .stat-icon {
    background: var(--gradient-secondary);
}

.stat-card.expense .stat-icon {
    background: var(--gradient-danger);
}

.stat-card.balance .stat-icon {
    background: var(--gradient-primary);
}

.stat-content h3 {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.stat-content p {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Transaction Form */
.transaction-form-card {
    background: var(--bg-card);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.transaction-form-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.pro-crown {
    color: #fbbf24;
    font-size: 1.2rem;
    vertical-align: middle;
}

.pro-crown.hidden {
    display: none;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Adjust form group for category input container */
.form-group .category-input-container {
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Category Input Container */
.category-input-container {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* AI Categorize Button */
.ai-categorize-button {
    min-width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
}

.ai-categorize-button i {
    font-size: 1rem;
}

/* Chart Section */
.chart-section {
    background: var(--bg-card);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.chart-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.chart-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.chart-controls select {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.875rem;
}

.chart-container {
    position: relative;
    height: 300px;
    margin-top: 1rem;
}

/* Unified Controls Section */
.unified-controls-section {
    background: var(--bg-card);
    border-radius: 1rem;
    padding: 0.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    margin: 0.10rem 0;
}

.unified-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: space-between;
}

.unified-controls .control-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.unified-controls select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.875rem;
    min-width: 150px;
}

.unified-controls .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 0.75rem;
    min-width: 120px;
    justify-content: center;
}

.unified-controls .btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    min-width: 100px;
}

.unified-controls .dropdown {
    position: relative;
}

/* Responsive adjustments for unified controls */
@media (max-width: 768px) {
    .unified-controls {
        display: grid;
        grid-template-rows: auto auto;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 0.5rem;
        width: 100%;
    }
    
    /* First row - Share, Export, Reset buttons */
    .unified-controls > .control-group:nth-child(1) {
        grid-row: 1;
        grid-column: 1;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .unified-controls > .control-group:nth-child(2) {
        grid-row: 1;
        grid-column: 2;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .unified-controls > .control-group:nth-child(3) {
        grid-row: 1;
        grid-column: 3;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    /* Second row - Filter controls */
    .unified-controls > .control-group:nth-child(4) {
        grid-row: 2;
        grid-column: 1 / span 3;
        display: flex;
        gap: 0.5rem;
    }
    
    .unified-controls .control-group {
        margin: 0;
        width: 100%;
    }
    
    .unified-controls select {
        padding: 0.5rem;
        min-width: auto;
        font-size: 0.75rem;
        width: 100%;
    }
    
    /* Show button text on mobile */
    .unified-controls #export-btn .btn-text,
    .unified-controls #share-btn .btn-text,
    .unified-controls #reset-btn .btn-text {
        display: inline !important;
    }
    
    .unified-controls #export-btn,
    .unified-controls #share-btn,
    .unified-controls #reset-btn {
        padding: 0.5rem 1rem;
        min-width: auto;
        width: 100%;
    }
    
    /* Adjust button sizes for mobile */
    .unified-controls .btn {
        min-width: auto;
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
        width: 100%;
    }
    
    .unified-controls .btn i {
        margin-right: 0.5rem;
    }
    
    /* Adjust select widths for second row */
    .unified-controls #transaction-date-range,
    .unified-controls #filter-type {
        width: 100%;
    }
    
    /* Mobile-specific layout changes as requested */
    /* First row: Share button (full text), Export and Reset buttons (icons only) */
    .unified-controls .export-icon-only .export-text,
    .unified-controls .reset-icon-only .reset-text {
        display: none !important;
    }
    
    .unified-controls .export-icon-only,
    .unified-controls .reset-icon-only {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0.5rem !important;
        margin: 0 auto;
    }
    
    .unified-controls .export-icon-only i:first-child,
    .unified-controls .reset-icon-only i:first-child {
        margin-right: 0;
    }
    
    /* Center the export button content */
    .unified-controls .export-icon-only {
        justify-content: center;
        align-items: center;
        text-align: center;
    }
    
    /* Second row: Both filters with equal width */
    .unified-controls .filter-controls {
        display: flex;
        gap: 0.5rem;
        width: 100%;
    }
    
    .unified-controls .filter-transactions,
    .unified-controls .filter-time {
        flex: 1;
    }
    
    .unified-controls .filter-controls select {
        width: 100%;
        padding: 0.5rem 1rem;
    }
    
    /* Ensure consistent padding for all controls */
    .unified-controls .btn,
    .unified-controls select {
        padding: 0.5rem 1rem;
        box-sizing: border-box;
    }
}

/* Desktop styles - ensure consistent spacing */
@media (min-width: 769px) {
    .unified-controls {
        gap: 1rem;
    }
    
    .unified-controls .control-group {
        gap: 0.5rem;
    }
    
    .unified-controls .btn {
        padding: 0.5rem 1rem;
    }
    
    .unified-controls select {
        padding: 0.5rem 1rem;
    }
}

/* ChartBoard Controls */
.chartboard-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.chartboard-controls::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.chartboard-controls:hover::before {
    transform: scaleX(1);
}

.chartboard-controls:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.control-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.control-group:hover {
    background: var(--bg-secondary);
    transform: translateY(-1px);
}

.control-group label {
    font-weight: 500;
    color: var(--text-primary);
}

#date-range-selector,
#theme-selector {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.875rem;
}

#export-charts-btn,
#compare-charts-btn,
#bookmark-view-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    background: var(--primary-color);
    border: 1px solid var(--primary-color);
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    /* Additional UIUX styles */
    box-shadow: var(--shadow-sm);
    font-size: 0.875rem;
    text-align: center;
    justify-content: center;
}

#export-charts-btn:hover,
#compare-charts-btn:hover,
#bookmark-view-btn:hover {
    background: var(--bg-tertiary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

/* White theme hover text color */
[data-theme="light"] #export-charts-btn:hover,
[data-theme="light"] #compare-charts-btn:hover,
[data-theme="light"] #bookmark-view-btn:hover {
    color: black;
}

#export-charts-btn i,
#compare-charts-btn i,
#bookmark-view-btn i {
    transition: all 0.3s ease;
}

#export-charts-btn:hover i,
#compare-charts-btn:hover i,
#bookmark-view-btn:hover i {
    transform: scale(1.1);
}

/* Mobile styles for chartboard controls */
@media (max-width: 768px) {
    .chartboard-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .control-group {
        justify-content: space-between;
        width: 100%;
    }
    
    .control-group label {
        margin-bottom: 0;
    }
    
    #date-range-selector,
    #theme-selector {
        flex: 1;
        min-width: 0;
    }
    
    #export-charts-btn,
    #compare-charts-btn,
    #bookmark-view-btn {
        flex: 1;
        justify-content: center;
        padding: 0.75rem;
    }
}

/* History Section */
.history-section {
    background: var(--bg-card);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.history-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.history-controls select {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.875rem;
}

.history-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.transaction-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Responsive adjustments for history controls */
@media (max-width: 768px) {
    .history-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .history-controls select {
        flex: 1;
        min-width: 120px;
    }
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    animation: slideInUp 0.3s ease-out;
}

.transaction-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.transaction-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.transaction-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: white;
}

.transaction-icon.income {
    background: var(--gradient-secondary);
}

.transaction-icon.expense {
    background: var(--gradient-danger);
}

.transaction-details h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.transaction-details p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.transaction-amount {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.transaction-amount .amount {
    font-size: 1rem;
    font-weight: 600;
}

.transaction-amount .amount.income {
    color: var(--accent-color);
}

.transaction-amount .amount.expense {
    color: var(--danger-color);
}

.transaction-actions {
    display: flex;
    gap: 0.5rem;
}

.transaction-actions button {
    background: none;
    border: none;
    padding: 0.5rem;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-muted);
}

.transaction-actions button:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.transaction-actions .edit-btn:hover {
    color: var(--primary-color);
}

.transaction-actions .delete-btn:hover {
    color: var(--danger-color);
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state p {
    font-size: 1rem;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 2000;
    animation: fadeIn 0.3s ease-out;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.show {
    display: flex;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-content {
    background: var(--bg-card);
    border-radius: 1rem;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    animation: modalSlideIn 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
    position: relative;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    margin: auto;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 1rem 1rem 0 0;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(to right, var(--bg-card) 0%, var(--bg-secondary) 100%);
    border-radius: 1rem 1rem 0 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.modal-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

/* Enhanced close button for full-screen currency converter */
#currency-converter-modal .modal-close {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 0.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 100;
}

#currency-converter-modal .modal-close:hover {
    color: var(--danger-color);
    background: var(--bg-tertiary);
    transform: rotate(90deg) scale(1.1);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

/* Enhanced close button for privacy policy and terms & conditions modals */
#privacy-modal .modal-close,
#terms-modal .modal-close {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 0.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 100;
}

#privacy-modal .modal-close:hover,
#terms-modal .modal-close:hover {
    color: var(--danger-color);
    background: var(--bg-tertiary);
    transform: rotate(90deg) scale(1.1);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

/* Ensure the modal close button is always visible on top */
#currency-converter-modal .modal-header {
    position: relative;
    z-index: 10;
}

.modal-body {
    padding: 2rem;
    background: linear-gradient(to bottom, var(--bg-card) 0%, var(--bg-secondary) 100%);
    border-radius: 0 0 1rem 1rem;
    line-height: 1.6;
    word-wrap: break-word;
    hyphens: auto;
    scroll-behavior: smooth;
    max-height: 70vh;
    overflow-y: auto;
}

.modal-body h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 1.5rem 0 1rem;
    position: relative;
    padding-bottom: 0.5rem;
    line-height: 1.3;
}

.modal-body h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 3px;
}

.modal-body h3:first-child {
    margin-top: 0;
}

.modal-body h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 1rem 0 0.5rem;
}

.modal-body p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.25rem;
    font-size: 1rem;
    text-align: justify;
}

.modal-body ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem 0;
}

.modal-body li {
    padding: 0.875rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.modal-body li:last-child {
    border-bottom: none;
}

.modal-body li i.fa-check {
    color: var(--accent-color);
    background: rgba(16, 185, 129, 0.1);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.modal-body li i.fa-times {
    color: var(--danger-color);
    background: rgba(239, 68, 68, 0.1);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.founder-info {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    align-items: flex-start;
    background: var(--bg-card);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.founder-info:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.founder-avatar {
    flex-shrink: 0;
    position: relative;
}

.founder-avatar::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.founder-avatar i {
    font-size: 4rem;
    color: var(--primary-color);
    position: relative;
    z-index: 1;
    background: var(--bg-card);
    border-radius: 50%;
    padding: 0.5rem;
}

/* Mobile-specific founder info improvements */
@media (max-width: 768px) {
    .founder-info {
        padding: 1.5rem;
    }
    
    .founder-avatar i {
        font-size: 3rem;
    }
    
    .founder-avatar::before {
        top: -8px;
        left: -8px;
        right: -8px;
        bottom: -8px;
    }
    
    /* Mobile-specific modal list improvements */
    .modal-body li {
        padding: 0.75rem 0;
        gap: 0.75rem;
    }
    
    .modal-body li i.fa-check,
    .modal-body li i.fa-times {
        width: 26px;
        height: 26px;
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .founder-info {
        padding: 1rem;
    }
    
    .founder-avatar i {
        font-size: 2.5rem;
    }
    
    .founder-avatar::before {
        top: -6px;
        left: -6px;
        right: -6px;
        bottom: -6px;
    }
    
    /* Very small screen modal list improvements */
    .modal-body li {
        padding: 0.625rem 0;
        gap: 0.625rem;
    }
    
    .modal-body li i.fa-check,
    .modal-body li i.fa-times {
        width: 24px;
        height: 24px;
        font-size: 0.625rem;
    }
}

.founder-details h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.ai-placeholder.locked small {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Install Popup Styles */
.install-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: installFadeIn 0.5s ease-out;
}

.install-popup-content {
    background: var(--bg-card);
    border-radius: 1.5rem;
    padding: 2.5rem;
    text-align: center;
    max-width: 90%;
    width: 400px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.install-popup-content:hover {
    transform: translateY(-5px);
}

.app-icon-container {
    width: 100px;
    height: 100px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.app-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
}

.app-name {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.install-instruction {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.install-button {
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 0.75rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.install-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.install-button:active {
    transform: translateY(-1px);
}

.ios-instruction {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-top: 1rem;
}

.ios-instruction i {
    color: var(--primary-color);
}

@keyframes installFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive styles */
@media (max-width: 768px) {
    .install-popup-content {
        padding: 2rem 1.5rem;
        width: 90%;
    }
    
    .app-icon-container {
        width: 80px;
        height: 80px;
        margin-bottom: 1.25rem;
    }
    
    .app-icon {
        width: 55px;
        height: 55px;
    }
    
    .app-name {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }
    
    .install-instruction {
        margin-bottom: 1.5rem;
    }
    
    .install-button {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .install-popup-content {
        padding: 1.5rem 1rem;
    }
    
    .app-icon-container {
        width: 70px;
        height: 70px;
        margin-bottom: 1rem;
    }
    
    .app-icon {
        width: 50px;
        height: 50px;
    }
    
    .app-name {
        font-size: 1.35rem;
    }
    
    .install-instruction {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
    }
    
    .install-button {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .ios-instruction {
        font-size: 0.8rem;
    }
}

.founder-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.25rem !important;
    font-size: 1.125rem;
    position: relative;
    display: inline-block;
}

.founder-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
}

.founder-bio {
    margin-bottom: 1.75rem;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-info .contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.contact-info .contact-item:hover {
    background: var(--bg-tertiary);
    transform: translateX(5px);
}

.contact-info .contact-item i {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin: 0;
    width: 1.5rem;
    text-align: center;
}

.contact-info .contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.contact-info .contact-item a:hover {
    text-decoration: underline;
}

.contact-info .contact-item span {
    color: var(--text-primary);
    font-weight: 500;
}

.company-mission {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.company-mission::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.company-mission:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.company-mission h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1.25rem;
    position: relative;
    display: inline-block;
}

.company-mission h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 75px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 3px;
}

.company-mission p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1.125rem;
    margin-bottom: 0;
}

/* Company Values Section */
.company-values {
    margin-bottom: 2.5rem;
}

.company-values h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.company-values h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 75px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 3px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.value-item {
    text-align: center;
    padding: 1.75rem 1.5rem;
    border-radius: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.value-item i {
    font-size: 2.25rem;
    color: var(--primary-color);
    margin-bottom: 1.25rem;
}

.value-item h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.value-item p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Team Section */
.team-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.team-section h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 75px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 3px;
}

.team-section p {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    color: var(--text-primary); /* Changed from --text-secondary to --text-primary for better visibility */
    line-height: 1.7;
    font-size: 1.125rem;
    margin-bottom: 0;
}

.company-values {
    margin-bottom: 2rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.value-item {
    text-align: center;
    padding: 1.5rem;
    border-radius: 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.value-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.value-item h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.value-item p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 0;
}

.team-section p {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    color: var(--text-primary); /* Use primary text color for better visibility in both light and dark themes */
    line-height: 1.7;
    font-size: 1.125rem;
    margin-bottom: 0;
}

/* Pricing Section - Enhanced for attractiveness and trust */
.pricing {
    padding: 4.771rem 0; /* Reduced by 10% from 5.301rem to make pricing table even shorter */
    background: linear-gradient(135deg, var(--bg-secondary) 0%, #f0f4f8 100%);
    position: relative;
    overflow: hidden;
}

.pricing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.pricing .section-title {
    margin-bottom: 1rem;
    position: relative;
    font-size: 2.75rem;
    text-align: center;
    color: var(--text-primary);
    font-weight: 800;
}

.pricing .section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 0.5rem auto;
    border-radius: 2px;
}

.pricing .section-subtitle {
    margin-bottom: 2rem;
    color: var(--text-secondary);
    font-size: 1.25rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    line-height: 1.6;
}

/* Trust Indicators for Pricing */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin: 1.988rem 0; /* Reduced by 10% from 2.209rem */
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    background: var(--bg-card);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.trust-badge:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.trust-badge i {
    color: var(--accent-color);
    font-size: 1.25rem;
}

/* Billing Toggle */
.billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    margin: 0.35rem 0; /* Moved 0.7cm upward (approximately 1.65rem) */
    padding: 1.2rem;
    background: var(--bg-card);
    border-radius: 50px;
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.billing-label {
    font-weight: 500;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.billing-label.active {
    color: var(--primary-color);
    font-weight: 600;
}

.save-badge {
    background: var(--accent-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: .4s;
    border-radius: 34px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

input:checked + .slider {
    background: var(--gradient-primary);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Enhanced Pricing Grid - Ensures all plans are in one row */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 1.59rem; /* Reduced by 10% from 1.767rem */
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

@media (max-width: 992px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 993px) and (max-width: 1200px) {
    .pricing-grid {
        max-width: 1100px;
    }
    
    .pricing-card {
        padding: 2rem 1.25rem;
        min-height: 272.187px; /* Reduced by 5cm (approx. 189px) from 461.187px */
    }
    
    .pricing-card.popular {
        min-height: 461.187px; /* Same as regular pricing cards */
    }
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

/* Enhanced Pricing Cards - More attractive and trustworthy */
.pricing-card {
    background: var(--bg-card);
    border-radius: 1rem;
    padding: 1.5rem 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: visible;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
    transform: translateY(0);
    opacity: 1;
    min-height: 208.575px; /* Reduced by 5cm (approx. 189px) from 397.575px */
    margin-top: 40px;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.pricing-card.popular {
    border: 2px solid var(--primary-color);
    z-index: 2;
    box-shadow: 0 25px 50px -12px rgba(79, 70, 229, 0.6), 0 0 0 1px rgba(99, 102, 241, 0.2), 0 0 30px rgba(99, 102, 241, 0.15);
    min-height: 397.575px; /* Same as regular pricing cards */
    margin-top: 40px;
    position: relative;
}

.pricing-card.popular::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 1.5rem;
    box-shadow: inset 0 0 25px rgba(79, 70, 229, 0.15);
    pointer-events: none;
    z-index: -1;
}

.pricing-card.popular:hover {
    transform: translateY(-15px);
    box-shadow: 0 35px 70px -15px rgba(79, 70, 229, 0.7), 0 0 0 1px rgba(99, 102, 241, 0.25), 0 0 40px rgba(99, 102, 241, 0.25);
    z-index: 3;
}

.pricing-card.popular:hover::after {
    box-shadow: inset 0 0 35px rgba(79, 70, 229, 0.2);
}

/* Additional Pricing Section Enhancements */
.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.pricing-card:hover::before {
    transform: scaleX(1);
}

.pricing-card.popular::before {
    background: var(--gradient-secondary);
}





.popular-badge {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 0.8rem 3rem;
    font-size: 1.1rem;
    font-weight: 800;
    border-radius: 50px;
    box-shadow: 0 8px 20px rgba(238, 90, 36, 0.5);
    z-index: 10;
    animation: pulseBadge 1.5s infinite;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
    overflow: hidden;
    border: 3px solid white;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
    box-sizing: border-box;
    min-width: 200px;
    text-align: center;
}
.popular-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.8s ease-in-out;
}

.popular-badge:hover::before {
    left: 100%;
}

.premium-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
    transition: left 0.8s ease-in-out;
}

.premium-badge:hover::before {
    left: 100%;
}

.popular-badge::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 15px solid #ee5a24;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.premium-badge {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #FFD700, #FF8C00);
    color: #000;
    padding: 0.8rem 3rem;
    font-size: 1.1rem;
    font-weight: 800;
    border-radius: 50px;
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.5);
    z-index: 10;
    animation: pulseBadge 1.8s infinite;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    overflow: hidden;
    border: 3px solid white;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
    box-sizing: border-box;
    min-width: 200px;
    text-align: center;
}
.premium-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.premium-badge:hover::before {
    left: 100%;
}

.premium-badge::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 15px solid #FF8C00;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

@keyframes pulseBadge {
    0% { transform: translateX(-50%) scale(1); box-shadow: 0 8px 20px rgba(238, 90, 36, 0.5); }
    50% { transform: translateX(-50%) scale(1.05); box-shadow: 0 12px 25px rgba(238, 90, 36, 0.7); }
    100% { transform: translateX(-50%) scale(1); box-shadow: 0 8px 20px rgba(238, 90, 36, 0.5); }
}

.premium-badge {
    animation: pulseBadgeGold 1.8s infinite;
}

@keyframes pulseBadgeGold {
    0% { transform: translateX(-50%) scale(1); box-shadow: 0 8px 20px rgba(255, 215, 0, 0.5); }
    50% { transform: translateX(-50%) scale(1.05); box-shadow: 0 12px 25px rgba(255, 215, 0, 0.7); }
    100% { transform: translateX(-50%) scale(1); box-shadow: 0 8px 20px rgba(255, 215, 0, 0.5); }
}

.pricing-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-top: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.pricing-header h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.price {
    margin-bottom: 1rem;
}

.price .amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.price .amount.yearly-price {
    color: var(--accent-color);
}

.price .period {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
}

.hidden {
    display: none;
}

.pricing-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
    text-align: center;
    min-height: 60px;
    font-size: 1rem;
}

.pricing-features {
    flex-grow: 1;
    margin-bottom: 2rem;
}

.pricing-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-features li {
    padding: 0.6rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.91rem;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li i.fa-check {
    color: var(--accent-color);
    background: rgba(16, 185, 129, 0.1);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.75rem;
}

.pricing-features li i.fa-times {
    color: var(--danger-color);
    background: rgba(239, 68, 68, 0.1);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.75rem;
}

.pricing-card .btn {
    width: 100%;
    justify-content: center;
    margin-bottom: 1rem;
    padding: 1.25rem;
    font-size: 1.125rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-sm);
    border: none;
    cursor: pointer;
}

.pricing-card .btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20px;
    height: 200%;
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(30deg);
    transition: all 0.8s;
}

.pricing-card .btn:hover::after {
    left: 120%;
}

.pricing-card .btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.pricing-card .btn-primary:hover {
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

.pricing-card .btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.pricing-card .btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.trial-info {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: rgba(99, 102, 241, 0.05);
    border-radius: 0.5rem;
    border: 1px dashed var(--primary-color);
}

.pricing-footer {
    text-align: center;
    margin-top: calc(2.386rem + 2cm); /* Moved 2cm downward from original position */
    color: var(--text-secondary);
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-footer p {
    margin: 0.5rem 0;
}

.pricing-footer i {
    color: var(--accent-color);
}

.pricing-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.pricing-footer a:hover {
    text-decoration: underline;
}

/* Pricing Card Animations - Fixed to ensure cards are visible by default */
.pricing-card {
    opacity: 1;
    transform: translateY(0);
    animation: none;
}

/* Keyframe animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* App Navigation */
.app-navigation {
    display: flex;
    gap: 0.5rem;
    background: var(--bg-secondary);
    padding: 0.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
}

.app-navigation .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.app-navigation .btn.active {
    background: var(--gradient-primary);
    color: white;
    border: none;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.app-navigation .btn:hover:not(.active) {
    background: var(--bg-tertiary);
    transform: translateY(-1px);
}

/* View Styles */
.chartboard-view {
    padding: 2rem 0;
    animation: fadeIn 0.5s ease-out;
}

.ai-insights-view, .api-emulator-view {
    padding: 2rem 0;
    animation: fadeIn 0.5s ease-out;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 80px); /* Adjust based on header height */
}

/* ChartBoard specific styles */
.chartboard-view .dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    gap: 2rem;
    width: 100%;
    box-sizing: border-box;
}

/* ChartBoard Controls */
.chartboard-controls {
/* Enhanced Pro Feature Card - Premium Design */
.pro-feature-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 2px solid var(--primary-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    transform: translateY(0);
    opacity: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
}

.pro-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    z-index: 1;
}

.pro-feature-card:hover::before {
    transform: scaleX(1);
}

.pro-feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(99, 102, 241, 0.25);
}

.pro-feature-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20px;
    height: 200%;
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(30deg);
    transition: all 0.8s;
    z-index: 0;
}

.pro-feature-card:hover::after {
    left: 120%;
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.75rem;
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.3);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.pro-feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 20px -5px rgba(99, 102, 241, 0.4);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.75rem;
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.3);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    /* Premium icon enhancements */
    border: 2px solid white;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2), 0 10px 15px -3px rgba(99, 102, 241, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.pro-feature-card h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.pro-feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0.75rem 0 1.5rem;
    font-size: 1.125rem;
    position: relative;
    z-index: 2;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.feature-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

/* Premium Button Styles */
.btn.btn-primary.btn-block {
    width: 100%;
    justify-content: center;
    padding: 1.25rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 0.875rem;
    background: var(--gradient-primary);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.btn.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;
    z-index: -1;
}

.btn.btn-primary.btn-block:hover::before {
    left: 100%;
}

.btn.btn-primary.btn-block:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.btn.btn-primary.btn-block i {
    margin-right: 0.75rem;
    transition: transform 0.3s ease;
}

.btn.btn-primary.btn-block:hover i {
    transform: rotate(90deg);
}

/* Premium Button Styles */
.btn.btn-primary.btn-block {
    width: 100%;
    justify-content: center;
    padding: 1.25rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 0.875rem;
    background: var(--gradient-primary);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 2;
    /* Premium button enhancements */
    border: 2px solid white;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.btn.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.3), transparent);
    transition: left 0.5s;
    z-index: -1;
    animation: shimmer 2s infinite;
}

.btn.btn-primary.btn-block:hover::before {
    left: 100%;
}

.btn.btn-primary.btn-block:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

.btn.btn-primary.btn-block i {
    margin-right: 0.75rem;
    transition: transform 0.3s ease;
}

.btn.btn-primary.btn-block:hover i {
    transform: rotate(90deg);
}

/* Premium Badge for Pro Features */
.pro-feature-card .premium-badge {
    position: absolute;
    top: 1.5rem;
    right: -30px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 0.25rem 2rem;
    font-size: 0.75rem;
    font-weight: 700;
    transform: rotate(45deg);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 3;
    animation: pulseBadge 2s infinite;
}

@keyframes pulseBadge {
    0% { transform: rotate(45deg) scale(1); }
    50% { transform: rotate(45deg) scale(1.1); }
    100% { transform: rotate(45deg) scale(1); }
}

/* Floating animation for premium cards */
@keyframes floatCard {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-5px) scale(1.01); }
    100% { transform: translateY(0) scale(1); }
}

/* Continuous shimmer effect */
@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.pro-feature-card {
    animation: floatCard 6s ease-in-out infinite;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    background-size: 2000px 100%;
    animation: shimmer 8s infinite linear, floatCard 6s ease-in-out infinite;
}

/* Enhanced shine effect for premium cards */
.pro-feature-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20px;
    height: 200%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: rotate(30deg);
    transition: all 0.8s;
    z-index: 0;
}

.pro-feature-card:hover::after {
    left: 120%;
}

/* Best Badge for Pro Features */
.pro-feature-card .best-badge {
    position: absolute;
    top: 1.5rem;
    left: -30px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 0.25rem 2rem;
    font-size: 0.75rem;
    font-weight: 700;
    transform: rotate(-45deg);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 3;
    animation: pulseBadge 1.5s infinite;
}

/* Responsive styles for premium Pro feature card */
@media (max-width: 768px) {
    .pro-feature-card {
        padding: 1.5rem;
        border-radius: 1.25rem;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        border-radius: 15px;
    }
    
    .pro-feature-card h3 {
        font-size: 1.5rem;
    }
    
    .pro-feature-card p {
        font-size: 1rem;
        margin: 0.5rem 0 1rem;
    }
    
    .btn.btn-primary.btn-block {
        padding: 1rem;
        font-size: 1rem;
    }
    
    /* Responsive adjustments for pricing badges */
    .popular-badge,
    .premium-badge {
        padding: 0.6rem 2rem;
        font-size: 0.9rem;
        min-width: 160px;
        top: -20px;
    }
    
    .popular-badge::after,
    .premium-badge::after {
        bottom: -12px;
        border-left: 12px solid transparent;
        border-right: 12px solid transparent;
        border-top: 12px solid #ee5a24;
    }
    
    .premium-badge::after {
        border-top: 12px solid #FF8C00;
    }
}

@media (max-width: 480px) {
    .pro-feature-card {
        padding: 1.25rem;
        border-radius: 1rem;
    }
    
    .feature-icon {
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
        border-radius: 12px;
    }
    
    .pro-feature-card h3 {
        font-size: 1.375rem;
    }
    
    .feature-header {
        gap: 1rem;
    }
    
    .btn.btn-primary.btn-block {
        padding: 0.875rem;
        font-size: 0.9375rem;
    }
    
    /* Further responsive adjustments for pricing badges */
    .popular-badge,
    .premium-badge {
        padding: 0.5rem 1.5rem;
        font-size: 0.8rem;
        min-width: 140px;
        top: -18px;
        letter-spacing: 1px;
    }
    
    .popular-badge::after,
    .premium-badge::after {
        bottom: -10px;
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
        border-top: 10px solid #ee5a24;
    }
    
    .premium-badge::after {
        border-top: 10px solid #FF8C00;
    }
}

    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.control-group label {
    font-weight: 500;
    color: var(--text-primary);
}

#date-range-selector,
#theme-selector {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.875rem;
}

#export-charts-btn,
#compare-charts-btn,
#bookmark-view-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Ensure ChartBoard view header maintains proper styling on desktop */
.chartboard-view .view-header {
    text-align: center;
    margin-bottom: 1rem;
}

.chartboard-view .view-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.chartboard-view .view-header p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* AI Insights specific styles */
.ai-insights-view .view-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
    margin-bottom: 1rem;
    padding: 0.25rem 0;
    margin-top: 0.1cm; /* Moved higher as requested */
    background: var(--bg-primary); /* Add background to ensure visibility */
    width: 100%;
    max-width: 1200px; /* Match container width */
}

.ai-insights-view .view-header h2 {
    font-size: 1.5rem; /* Reduced font size as requested */
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.ai-insights-view .view-header p {
    color: var(--text-secondary);
    font-size: 0.75rem; /* Reduced font size as requested */
    margin: 0;
}

.ai-insights-view .dashboard-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 3.5rem); /* Full height minus header */
    padding: 0 1rem; /* Reduced padding for better fit */
    margin-top: 0; /* Reset the negative margin */
    padding-top: 4rem; /* Reduced padding to account for smaller fixed header */
    padding-bottom: 5rem; /* Reduced padding to make it shorter */
    overflow: hidden; /* Prevent scrolling on container */
    max-width: 100%; /* Ensure it doesn't exceed screen width */
    margin: 0 auto; /* Center the container */
}

.ai-insights-view .ai-chat-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    height: 100%; /* Full height */
    max-height: calc(100vh - 10rem); /* Limit maximum height for better fit */
    background: transparent; /* Remove background */
    border: none; /* Remove border */
    box-shadow: none; /* Remove shadow */
    border-radius: 0; /* Remove rounded corners */
    overflow: hidden; /* Prevent scrolling on container */
    width: 100%; /* Ensure full width */
    max-width: 100%; /* Prevent overflow */
    margin: 0 auto; /* Center the container */
    padding: 0; /* Remove padding */
}

.ai-insights-view .chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    background: transparent; /* Remove background */
    border: none; /* Remove border */
    padding: 0.5rem 0; /* Reduced padding for better fit */
    margin-bottom: 0; /* Remove margin as we handle spacing with container padding */
    max-height: calc(100vh - 12rem); /* Limit height for better scrolling */
}

/* ChartBoard Styles */
.chart-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
}

/* Laptop: 2x2 grid layout */
@media (min-width: 1024px) {
    .chartboard-view .chart-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .chartboard-view .chart-grid .chart-card.full-width {
        grid-column: 1 / -1;
    }
}

/* Desktop: Custom layout for ChartBoard KPIs */
@media (min-width: 1024px) {
    .chartboard-view .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    
    .chartboard-view .stats-grid .stat-card {
        /* Ensure all cards take equal width */
    }
}

/* ChartBoard lock styling */
.chart-lock-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.chart-lock-container i.fa-lock {
    font-size: 3rem;
    color: var(--text-secondary);
}

/* Ensure chart cards maintain proper styling with locks */
.chart-card {
    background: var(--bg-card);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.chart-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.chart-header {
    margin-bottom: 1rem;
}

.chart-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.chart-container-large {
    height: 300px;
    position: relative;
}

/* Mock Chart Styles */
.mock-chart {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mock-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.mock-chart-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.mock-chart-controls select {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.875rem;
}

.mock-chart-visualization {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
}

.chart-placeholder {
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: 0.75rem;
    color: var(--text-secondary);
    border: 1px dashed var(--border-color);
}

.chart-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.3;
    color: var(--primary-color);
}

.chart-placeholder p {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.chart-placeholder small {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Enhanced Chart Visualization Styles */
.mock-line-chart, .mock-pie-chart, .mock-bar-chart, .mock-area-chart {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    gap: 1rem;
}

.chart-container {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mock-chart-visualization {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px; /* Medium size */
}

.table-container {
    margin-top: 1.5rem;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.data-table th,
.data-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    font-weight: 600;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
}

.data-table tr:hover {
    background-color: var(--bg-secondary);
}

.data-table td {
    color: var(--text-secondary);
}

.chart-container {
    width: 100%;
    height: 180px; /* Medium size */
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-container-large {
    position: relative;
    height: 250px; /* Medium size */
    width: 100%;
}

.chart-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px; /* Increased from 15px */
    margin-top: 15px; /* Increased from 10px */
    padding: 0 15px; /* Increased from 10px */
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px; /* Increased from 8px */
    font-size: 1rem; /* Increased from 0.875rem */
    padding: 0.5rem 0.75rem; /* Increased padding */
    border-radius: 0.5rem;
    background: var(--bg-secondary);
    color: var(--text-primary); /* Theme-aware text color - white in dark theme, dark in light theme */
}

.legend-color {
    width: 20px; /* Increased from 16px */
    height: 20px; /* Increased from 16px */
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.mock-bar-chart {
    display: flex;
    align-items: end;
    justify-content: space-around;
    height: 80%; /* Increased from 70% */
    width: 100%;
    gap: 10px; /* Increased from 5px */
}

.bar {
    width: 30px; /* Increased from 20px */
    border-radius: 4px 4px 0 0; /* Increased border radius */
    animation: growUp 0.5s ease-out;
}

.mock-bar {
    width: 35px; /* Increased from 25px */
    border-radius: 4px 4px 0 0;
    animation: growUp 0.5s ease-out;
}

/* Mobile: Single column layout for ChartBoard KPIs and charts */
@media (max-width: 768px) {
    .chartboard-view .dashboard-container {
        max-width: 100%;
        padding: 0 1rem;
        gap: 1rem;
        width: 100%;
        box-sizing: border-box;
        justify-content: center;
        margin: 0 auto;
    }
    
    .chartboard-view .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .chartboard-view .chart-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
        margin: 1rem 0;
    }
    
    .chartboard-view .chart-card.full-width {
        grid-column: 1;
    }
    
    .chartboard-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 0.75rem;
    }
    
    .control-group {
        justify-content: space-between;
        width: 100%;
    }
    
    .chart-container-large {
        height: 250px;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    
    .chartboard-view .view-header {
        padding: 0 0.5rem;
        text-align: left;
    }
    
    .chartboard-view .view-header h2 {
        font-size: 1.25rem;
        margin-bottom: 0.25rem;
    }
    
    .chartboard-view .view-header p {
        font-size: 0.875rem;
    }
    
    /* Ensure all chart elements fit within screen width */
    .chart-card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
        border-radius: 1rem;
    }
    
    .chart-legend {
        flex-wrap: wrap;
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
        gap: 1rem;
    }
    
    .legend-item {
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
        padding: 0.5rem 0.75rem;
        border-radius: 0.5rem;
    }
    
    .insights-container {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    
    .insight-item {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
        padding: 1.5rem;
        border-radius: 0.75rem;
    }
    
    /* Ensure chart visualization elements don't overflow */
    .chart-visualization {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
        gap: 1rem;
    }
    
    .mock-chart {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    
    .mock-chart-visualization {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
        height: 200px;
    }
    
    .pie-chart-container {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
        height: 150px;
    }
    
    .pie-chart {
        width: 150px;
        height: 150px;
    }
    
    .bar-chart {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
        gap: 1rem;
    }
    
    .bar-container {
        height: 20px;
        border-radius: 10px;
    }
    
    .bar-fill {
        border-radius: 10px;
        padding-right: 0.5rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .chartboard-view .dashboard-container {
        padding: 0 0.5rem;
        gap: 0.75rem;
    }
    
    .chartboard-view .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 0.75rem;
    }
    
    .chartboard-view .chart-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 0.75rem;
        margin: 0.75rem 0;
    }
    
    .chart-container-large {
        height: 200px;
    }
    
    .chartboard-view .chart-card {
        padding: 1rem;
        border-radius: 0.75rem;
    }
    
    .chartboard-controls {
        padding: 0.5rem;
        gap: 0.75rem;
    }
    
    .mock-chart-visualization {
        height: 150px;
    }
    
    .pie-chart-container {
        height: 120px;
    }
    
    .pie-chart {
        width: 120px;
        height: 120px;
    }
    
    .bar-label {
        font-size: 0.75rem;
    }
    
    .bar-values {
        font-size: 0.625rem;
    }
}

    .insights-section {
        padding: 1.5rem;
    }
    
    .insights-section h3 {
        font-size: 1.25rem;
    }
    
    .insights-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    /* Adjustments for AI Insights header on mobile */
    .ai-insights-view .view-header h2 {
        font-size: 1.25rem; /* Even smaller on mobile */
        margin-bottom: 0.1rem;
    }
    
    .ai-insights-view .view-header p {
        font-size: 0.65rem; /* Even smaller on mobile */
    }

/* Enhanced Insights Section */
.insights-section {
    background: var(--bg-card);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    margin-top: 1rem;
}

.insights-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

/* Analytics Chart Styles */
.chart-visualization {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-label {
    font-weight: 500;
    color: var(--text-primary);
}

.legend-value {
    font-weight: 600;
    color: var(--primary-color);
}

.pie-chart-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.pie-chart {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    position: relative;
    background: var(--bg-secondary);
}

.pie-slice {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    clip-path: polygon(50% 50%, 50% 0%, 100% 0%, 100% 100%, 0% 100%, 0% 0%);
}

.bar-chart {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bar-chart-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.bar-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.bar-container {
    height: 20px;
    background: var(--bg-secondary);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.bar-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 0.5rem;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
}

.bar-fill.complete {
    background: var(--gradient-secondary);
}

.bar-fill.high {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.bar-fill.medium {
    background: linear-gradient(135deg, #6366f1 0%, #4338ca 100%);
}

.bar-fill.low {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.bar-values {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Responsive styles for charts */
@media (max-width: 768px) {
    .chart-legend {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .pie-chart-container {
        height: 150px;
    }
    
    .pie-chart {
        width: 120px;
        height: 120px;
    }
    
    .bar-fill {
        padding-right: 0.25rem;
        font-size: 0.625rem;
    }
}

@media (max-width: 480px) {
    .pie-chart-container {
        height: 120px;
    }
    
    .pie-chart {
        width: 100px;
        height: 100px;
    }
    
    .bar-label {
        font-size: 0.75rem;
    }
    
    .bar-values {
        font-size: 0.625rem;
    }
}

.insight-card {
    background: var(--bg-secondary);
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.insight-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.insight-card i {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.1);
}

.insight-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.insight-card p {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

/* AI Insights Locked Placeholders */
.pattern-value.locked,
.progress-text.locked {
    color: var(--text-muted);
    font-style: italic;
}

.pattern-value.locked::before,
.progress-text.locked::before {
    content: "🔒 ";
}

.ai-placeholder.locked {
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    border: 1px dashed var(--border-color);
}

.ai-placeholder.locked i {
    color: var(--text-muted);
    opacity: 0.3;
}

.ai-placeholder.locked p {
    color: var(--text-muted);
    font-style: italic;
}

.ai-placeholder.locked small {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Enhanced Chart Styles */
.pie-chart-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto;
}

.enhanced-bar-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.bar-label {
    font-size: 0.875rem;
    color: var(--text-primary);
    font-weight: 500;
}

.bar-track {
    height: 20px;
    background: var(--bg-secondary);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
}

.bar-target {
    height: 100%;
    background: var(--bg-tertiary);
    position: absolute;
    top: 0;
    left: 0;
}

.bar-current {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.bar-values {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.current-value {
    font-weight: 600;
    color: var(--primary-color);
}

.target-value {
    color: var(--text-muted);
}

.progress-percent {
    font-weight: 600;
}

.chart-container h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--primary-color);
    font-weight: 700;
}

.chart-placeholder {
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: 0.75rem;
    color: var(--text-secondary);
    border: 1px dashed var(--border-color);
}

.chart-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.3;
    color: var(--primary-color);
}

/* Summary Cards */
.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.summary-card {
    background: var(--bg-card);
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.summary-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.summary-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.summary-content h3 {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin: 0 0 0.25rem 0;
}

.summary-content p {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .savings-goals-header {
        padding: 1rem;
    }
    
    .savings-goals-content {
        padding: 1rem;
    }
    
    .goals-grid {
        grid-template-columns: 1fr;
    }
    
    .analytics-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .add-contribution-btn {
        bottom: 1rem;
        right: 1rem;
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .savings-goals-tabs {
        flex-wrap: wrap;
    }
    
    .summary-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .goal-actions {
        flex-direction: column;
    }
    
    .goal-actions .btn {
        width: 100%;
    }
    
    .add-goal-form {
        padding: 1.5rem;
    }
    
    .form-row {
        gap: 1rem;
    }
}

/* Responsive styles for full-screen currency converter modal */
@media (max-width: 768px) {
    #currency-converter-modal .currency-converter-modal-content {
        width: 100vw;
        height: 100vh;
        max-width: 100vw;
        max-height: 100vh;
        border-radius: 0;
        box-shadow: none;
        border: none;
        margin: 0;
        position: fixed;
        top: 0;
        left: 0;
        overflow: auto;
        padding: 0;
    }
    
    #currency-converter-modal .currency-converter-modal-content .modal-header {
        padding: 0.75rem 1rem;
        border-radius: 0;
        position: sticky;
        top: 0;
        z-index: 10;
    }
    
    #currency-converter-modal .currency-converter-modal-content .modal-header h2 {
        font-size: 1.25rem;
    }
    
    #currency-converter-modal .currency-converter-modal-content .modal-body {
        padding: 1rem;
        max-height: none;
        overflow-y: visible;
    }
    
    .currency-input-section {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .currency-select-group,
    .currency-input-group {
        min-width: 100%;
    }
    
    #advanced-swap-currencies {
        align-self: center;
        margin-bottom: 0;
    }
    
    .conversion-result-display {
        font-size: 1.25rem;
        padding: 1rem;
    }
    
    .currency-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 0.75rem;
    }
    
    .currency-flag {
        padding: 1rem;
    }
    
    .currency-flag-image {
        width: 48px;
        height: 48px;
    }
    
    .currency-flag-code {
        font-size: 0.75rem;
    }
    
    .currency-flag-name {
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    #currency-converter-modal .currency-converter-modal-content .modal-header h2 {
        font-size: 1.125rem;
    }
    
    .currency-input {
        padding: 0.5rem;
        font-size: 0.875rem;
    }
    
    .currency-select {
        padding: 0.5rem 2rem 0.5rem 0.5rem;
        font-size: 0.875rem;
    }
    
    .conversion-result-display {
        font-size: 1rem;
        padding: 0.75rem;
    }
    
    #advanced-convert-btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .currency-grid {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
        gap: 0.5rem;
    }
    
    .currency-flag {
        padding: 0.75rem;
    }
    
    .currency-flag-image {
        width: 40px;
        height: 40px;
    }
}

/* Advanced Currency Converter Modal - Full Screen */
#currency-converter-modal .currency-converter-modal-content {
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    border-radius: 0;
    box-shadow: none;
    border: none;
    margin: 0;
    position: fixed;
    top: 0;
    left: 0;
    overflow: auto;
}

#currency-converter-modal .currency-converter-modal-content .modal-header {
    padding: 1rem 1.5rem;
    border-radius: 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

#currency-converter-modal .currency-converter-modal-content .modal-body {
    padding: 1.5rem;
    max-height: none;
    overflow-y: visible;
}

/* Ensure the modal is displayed as full screen */
#currency-converter-modal.modal.show {
    display: block;
    padding: 0;
}

#currency-converter-modal {
    padding: 0;
    align-items: stretch;
    justify-content: stretch;
}

/* Advanced Currency Converter Modal */
.currency-converter-modal-content {
    max-width: 100vw;
    width: 100vw;
    height: 100vh;
    max-height: 100vh;
    background: var(--bg-card);
    border-radius: 0;
    box-shadow: none;
    border: none;
    animation: currencyModalSlideIn 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
    position: fixed;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    overflow: auto;
}

.currency-converter-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.currency-input-section {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: end;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.currency-input-group {
    flex: 1;
    min-width: 200px;
}

.currency-input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.currency-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
}

.currency-select-group {
    flex: 1;
    min-width: 200px;
}

.currency-select-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.currency-select-wrapper {
    position: relative;
}

.currency-select-wrapper::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
}

.currency-select {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
    appearance: none;
}

#advanced-swap-currencies,
#open-currency-converter,
.get-plus-btn {
    transition: all 0.3s ease;
}

#advanced-swap-currencies {
    align-self: flex-end;
    margin-bottom: 0.75rem;
}

#open-currency-converter.btn-block {
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
}

#advanced-swap-currencies:hover,
#open-currency-converter:hover,
.get-plus-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.conversion-result-section {
    text-align: center;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.conversion-result-display {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-primary);
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    background: linear-gradient(to right, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    text-align: center;
    transition: all 0.3s ease;
}

#advanced-convert-btn {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    transition: all 0.3s ease;
}

#advanced-convert-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.currency-list-section {
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.currency-list-section h3 {
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--primary-color);
}

.currency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
}

.currency-flag {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.25rem;
    background: var(--bg-card);
    border-radius: 1rem;
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
    text-align: center;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.currency-flag::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.currency-flag:hover {
    transform: translateY(-8px) scale(1.08);
    box-shadow: 0 20px 25px -5px rgba(99, 102, 241, 0.2), 0 8px 10px -6px rgba(99, 102, 241, 0.2);
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
}

.currency-flag:hover::before {
    opacity: 1;
}

.currency-flag span {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: all 0.3s ease;
    z-index: 2;
}

.currency-flag:hover span {
    transform: scale(1.1);
}

.currency-flag-image {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 0.75rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: all 0.3s ease;
    border-radius: 4px;
    z-index: 2;
}

.currency-flag:hover .currency-flag-image {
    transform: scale(1.1);
}

.currency-flag small {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
    z-index: 2;
    transition: all 0.3s ease;
}

.currency-flag:hover small {
    color: var(--primary-color);
    letter-spacing: 0.5px;
}

.currency-flag.selected {
    transform: translateY(-8px) scale(1.15);
    box-shadow: 0 25px 30px -10px rgba(99, 102, 241, 0.3), 0 10px 15px -5px rgba(99, 102, 241, 0.3);
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
}

.currency-flag.selected::before {
    opacity: 1;
}

.currency-flag.selected span {
    transform: scale(1.2);
}

.currency-flag.selected small {
    color: var(--primary-color);
    font-weight: 700;
}

.currency-flag-name {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
    transition: all 0.3s ease;
    z-index: 2;
}

.currency-flag:hover .currency-flag-name {
    color: var(--accent-color);
    font-weight: 600;
}

/* Responsive styles for currency converter */
@media (max-width: 768px) {
    .modal {
        padding: 0.5rem;
    }
    
    .currency-input-section {
        flex-direction: column;
        align-items: stretch;
    }
    
    #advanced-swap-currencies {
        align-self: center;
        margin-bottom: 0;
    }
    
    .currency-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .conversion-result-display {
        font-size: 1.25rem;
    }
    
    .modal-content {
        max-height: 95vh;
    }
}

@media (max-width: 480px) {
    .modal {
        padding: 0.25rem;
    }
    
    .currency-grid {
        grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
    }
    
    .currency-flag {
        padding: 1rem;
    }
    
    .currency-flag span {
        font-size: 2rem;
    }
    
    .currency-flag small {
        font-size: 0.75rem;
    }
    
    .modal-content {
        border-radius: 0.75rem;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
}



.insight-card p {
    font-size: 1.125rem;
}

.chart-container-large {
    position: relative;
    height: 280px;
    width: 100%;
}

/* Mobile styles for chart containers */
@media (max-width: 768px) {
    .chart-container-large {
        height: 300px; /* Increased height for better mobile viewing */
    }
    
    .chartboard-view .chart-container-large {
        height: 250px; /* Slightly reduced for mobile chartboard */
    }
}

@media (max-width: 480px) {
    .chart-container-large {
        height: 220px;
    }
    
    .chart-container {
        height: 140px;
    }
    
    .chart-data {
        gap: 10px;
    }
    
    .data-point {
        min-width: 60px;
        padding: 0.5rem;
    }
    
    .data-label {
        font-size: 0.625rem;
    }
    
    .data-value {
        font-size: 0.875rem;
    }
    
    .insights-section {
        padding: 1.5rem;
    }
    
    .insights-section h3 {
        font-size: 1.25rem;
    }
    
    .insights-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    /* Adjustments for AI Insights header on mobile */
    .ai-insights-view .view-header h2 {
        font-size: 1.25rem; /* Even smaller on mobile */
        margin-bottom: 0.1rem;
    }
    
    .ai-insights-view .view-header p {
        font-size: 0.65rem; /* Even smaller on mobile */
    }
    
    .chartboard-view .chart-container-large {
        height: 200px;
    }
    
    .chartboard-view .chart-card {
        padding: 1rem;
    }
    
    .chartboard-controls {
        padding: 0.5rem;
    }
}

/* AI Insights Styles */
.ai-section {
    display: grid;
    gap: 2rem;
}

/* Chatbot Styles */
.ai-chat-container {
    background: var(--bg-card);
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: calc(100vh - 200px);
    max-height: 600px;
}

.chat-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.chat-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chat-header p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.875rem;
}

.chat-messages {
    flex-grow: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    max-width: 80%;
    padding: 1rem;
    border-radius: 1rem;
    animation: fadeIn 0.3s ease-out;
}

.bot-message {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    align-self: flex-start;
    border-bottom-left-radius: 0;
}

.user-message {
    background: var(--gradient-primary);
    align-self: flex-end;
    border-bottom-right-radius: 0;
    color: white;
}

.message-content {
    margin-bottom: 0.5rem;
}

.message-time {
    font-size: 0.75rem;
    opacity: 0.7;
    text-align: right;
}

/* Typing indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    margin: 0.5rem 1rem;
    max-width: fit-content;
}

.typing-indicator .message-content {
    background: transparent;
    padding: 0;
}

.typing-bubbles {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.typing-bubble {
    width: 8px;
    height: 8px;
    background: var(--text-secondary);
    border-radius: 50%;
    display: inline-block;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-bubble:nth-child(1) {
    animation-delay: 0s;
}

.typing-bubble:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-bubble:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-5px);
    }
}

/* AI Insights specific styles */
.ai-insights-view .dashboard-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 3.5rem);
    padding: 0 1rem;
    margin-top: 0;
    padding-top: 3rem;
    padding-bottom: 5rem;
    overflow: hidden;
    position: relative;
}

.ai-insights-view .upgrade-banner-container {
    text-align: center;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Currency Converter View */
.pro-features-view {
    padding: 2rem 0;
    animation: fadeIn 0.5s ease-out;
}

.pro-features-view .upgrade-banner-container {
    text-align: center;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.ai-insights-view .upgrade-banner-container {
    text-align: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    padding: 0 1rem;
}

.ai-insights-view .view-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
    margin-bottom: 1rem;
    padding: 0.25rem 0;
    margin-top: 0.1cm;
    background: var(--bg-primary);
    width: 100%;
    max-width: 1200px;
}

/* Ensure ChartBoard view header maintains proper styling on mobile */
.chart-board-view .view-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
    margin-bottom: 1rem;
    padding: 0.25rem 0;
    margin-top: 0.1cm;
    background: var(--bg-primary);
    width: 100%;
    max-width: 1200px;
}

.ai-insights-view .view-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.ai-insights-view .view-header p {
    color: var(--text-secondary);
    font-size: 0.75rem;
    margin: 0;
}

.ai-insights-view .ai-chat-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: none;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    overflow: hidden;
}

.ai-insights-view .chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    background: transparent;
    border: none;
    padding: 1rem 0;
    margin-bottom: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* General chat input container styles */
.chat-input-container {
    display: flex;
    border-top: 1px solid var(--border-color);
    gap: 0.5rem;
    align-items: center;
    background: var(--bg-card);
    border-radius: 0;
    padding: 1rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
}

.chat-input-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.chat-input-container:hover::before {
    transform: scaleX(1);
}

.chat-input-container:hover {
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
}

.chat-input-container input {
    flex-grow: 1;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.875rem;
}

.chat-input-container input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* AI Insights specific input container */
.ai-insights-view .chat-input-container {
    flex-shrink: 0;
    border-radius: 2.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    background: var(--bg-card);
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 4rem);
    max-width: 1200px;
    z-index: 100;
    margin: 0;
    padding: 0.75rem 1rem;
    gap: 0.75rem;
    border: 1px solid var(--border-color);
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-sizing: border-box;
    height: fit-content;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
}

.ai-insights-view .chat-input-container:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
}

/* Ensure consistent button styling */
.input-action-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-secondary);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.input-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.input-action-btn:hover {
    background: var(--bg-primary);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
    border-color: var(--primary-color);
}

.input-action-btn:hover::before {
    opacity: 0.1;
}

.input-action-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.2);
}

/* Voice Call Modal Styles */
.voice-call-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: #ffffff; /* Pure white for light theme */
}

[data-theme="dark"] .voice-call-modal {
    background: var(--bg-primary); /* Dark theme uses theme variable */
}

.voice-call-modal.show {
    display: flex;
}

.voice-call-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(15px);
}

.voice-call-container {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    background: #ffffff; /* Pure white for light theme */
    border-radius: 0;
    overflow: hidden;
    z-index: 2001;
}

[data-theme="dark"] .voice-call-container {
    background: transparent; /* Dark theme uses transparent */
}

.voice-call-header {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2002;
    background: transparent;
}

[data-theme="light"] .voice-call-header {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
}

.voice-selection-container {
    position: relative;
    display: inline-block;
}

.voice-selection-toggle {
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--primary-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}

[data-theme="light"] .voice-selection-toggle {
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.2);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.15);
    color: var(--text-primary); /* Use dark color for light theme */
}

.voice-selection-toggle:hover {
    background: rgba(99, 102, 241, 0.3);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
    color: var(--primary-color);
}

.voice-selection-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    padding: 0.5rem 0.75rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 0.85rem;
    min-width: 180px;
    display: none;
    margin-top: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    z-index: 2003;
    backdrop-filter: blur(10px);
}

[data-theme="light"] .voice-selection-dropdown {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.voice-selection-dropdown.show {
    display: block;
    animation: fadeInDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.voice-selection-dropdown option {
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 0.4rem;
    border-radius: 0.4rem;
}

.voice-selection-dropdown option:hover {
    background: var(--bg-secondary);
}

.voice-call-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    position: relative;
    background: #ffffff; /* Pure white for light theme */
}

[data-theme="dark"] .voice-call-content {
    background: transparent; /* Dark theme uses transparent */
}

.voice-call-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    padding: 2rem;
    position: relative;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    background: #ffffff; /* Pure white for light theme */
}

[data-theme="dark"] .voice-call-indicator {
    background: transparent; /* Dark theme uses transparent */
}

.glowing-circle-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    background: transparent; /* Ensure transparent background */
}

.glowing-circle {
    position: relative;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, rgba(99, 102, 241, 0.1) 70%);
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(15px);
    border: 2px solid rgba(99, 102, 241, 0.4);
    box-shadow: 0 0 50px rgba(99, 102, 241, 0.4),
                inset 0 0 30px rgba(99, 102, 241, 0.3);
    animation: glow-pulse 3s infinite ease-in-out;
    margin: 0 auto;
    z-index: 2002;
}

[data-theme="light"] .glowing-circle {
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, rgba(99, 102, 241, 0.05) 70%);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(30, 41, 59, 0.3); /* Use dark color for light theme */
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.3),
                inset 0 0 20px rgba(99, 102, 241, 0.2);
}

.inner-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
    animation: inner-glow-pulse 2s infinite ease-in-out;
    z-index: 2001;
}

[data-theme="light"] .inner-glow {
    background: radial-gradient(circle, rgba(30, 41, 59, 0.15) 0%, transparent 70%); /* Use dark color for light theme */
}

.glowing-circle i {
    font-size: 3rem;
    color: var(--primary-color);
    z-index: 2003;
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.7);
    animation: float 4s infinite ease-in-out;
}

[data-theme="light"] .glowing-circle i {
    color: var(--text-primary); /* Use primary text color for light theme */
    text-shadow: 0 0 20px rgba(30, 41, 59, 0.3);
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(99, 102, 241, 0.5);
    animation: pulse-ring 3s infinite;
}

[data-theme="light"] .pulse-ring {
    border: 2px solid rgba(30, 41, 59, 0.5); /* Use dark color for light theme */
}

.pulse-ring.delay-1 {
    animation-delay: 1s;
}

.pulse-ring.delay-2 {
    animation-delay: 2s;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

@keyframes glow-pulse {
    0% {
        box-shadow: 0 0 50px rgba(99, 102, 241, 0.4),
                    inset 0 0 30px rgba(99, 102, 241, 0.3);
    }
    50% {
        box-shadow: 0 0 80px rgba(99, 102, 241, 0.6),
                    inset 0 0 40px rgba(99, 102, 241, 0.4);
    }
    100% {
        box-shadow: 0 0 50px rgba(99, 102, 241, 0.4),
                    inset 0 0 30px rgba(99, 102, 241, 0.3);
    }
}

@keyframes inner-glow-pulse {
    0% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.5;
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes shock {
    0% {
        box-shadow: var(--shadow-xl);
        transform: scale(1);
    }
    10% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7);
        transform: scale(1.02);
    }
    20% {
        box-shadow: 0 0 0 10px rgba(99, 102, 241, 0.3);
        transform: scale(0.98);
    }
    30% {
        box-shadow: 0 0 0 20px rgba(99, 102, 241, 0.1);
        transform: scale(1.01);
    }
    40% {
        box-shadow: 0 0 0 30px rgba(99, 102, 241, 0);
        transform: scale(0.99);
    }
    100% {
        box-shadow: var(--shadow-xl);
        transform: scale(1);
    }
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.voice-call-footer {
    padding: 1.5rem;
    background: transparent;
    backdrop-filter: none;
    border: none;
    display: flex;
    justify-content: center;
}

.listening-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    justify-content: center;
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border-radius: 1.5rem;
    backdrop-filter: blur(5px);
    border: 1px solid var(--border-color);
    white-space: nowrap;
    border-radius: 2rem;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.listening .status-dot {
    background-color: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.speaking .status-dot {
    background-color: #6366f1;
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.5);
}

.processing .status-dot {
    background-color: #f59e0b;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}

.voice-call-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 300px;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border-radius: 1.5rem;
    backdrop-filter: none;
    border: none;
}

.disconnect-btn-footer {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
    flex-shrink: 0;
}

.disconnect-btn-footer:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.6);
}

.disconnect-btn-footer:active {
    transform: scale(0.95);
}

@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.voice-call-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    overflow: hidden;
    background: #ffffff; /* Pure white for light theme */
}

[data-theme="dark"] .voice-call-content {
    background: transparent; /* Dark theme uses transparent */
}

.conversation-area {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    margin-bottom: 2rem;
    background: rgba(30, 41, 59, 0.5); /* Dark theme background */
    border-radius: 1rem;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .conversation-area {
    background: rgba(255, 255, 255, 0.7); /* Light theme background */
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.voice-call-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    padding: 2rem;
    background: #ffffff; /* Pure white for light theme */
}

[data-theme="dark"] .voice-call-indicator {
    background: transparent; /* Dark theme uses transparent */
}

.glowing-circle {
    position: relative;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(99, 102, 241, 0.5);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
    animation: glow-pulse 2s infinite ease-in-out;
    margin: 0 auto; /* Center the circle */
}

[data-theme="light"] .glowing-circle {
    background: rgba(99, 102, 241, 0.15);
    backdrop-filter: blur(8px);
    border: 2px solid rgba(30, 41, 59, 0.4); /* Use dark color for light theme */
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.25);
}

.glowing-circle i {
    font-size: 2.5rem;
    color: #c7d2fe;
    z-index: 2;
}

[data-theme="light"] .glowing-circle i {
    color: var(--text-primary); /* Use primary text color for light theme */
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(99, 102, 241, 0.5);
    animation: pulse-ring 2s infinite;
}

[data-theme="light"] .pulse-ring {
    border: 2px solid rgba(30, 41, 59, 0.5); /* Use dark color for light theme */
}

.pulse-ring.delay-1 {
    animation-delay: 0.5s;
}

.pulse-ring.delay-2 {
    animation-delay: 1s;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes glow-pulse {
    0% {
        box-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
    }
    50% {
        box-shadow: 0 0 60px rgba(99, 102, 241, 0.6);
    }
    100% {
        box-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
    }
}

.voice-call-footer {
    padding: 1rem 2rem;
    background: transparent;
    backdrop-filter: none;
    border: none;
}

[data-theme="light"] .voice-call-footer {
    background: rgba(255, 255, 255, 0.8);
}

.listening-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    color: #94a3b8;
    justify-content: center;
    background: rgba(30, 41, 59, 0.5);
    padding: 0.5rem 1rem;
    border-radius: 1.5rem;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .listening-indicator {
    background: rgba(255, 255, 255, 0.7);
    color: var(--text-secondary);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.green-dot {
    width: 12px;
    height: 12px;
    background-color: #10b981;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.voice-call-controls {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
    background: transparent;
}

[data-theme="light"] .voice-call-controls {
    background: rgba(255, 255, 255, 0.5);
}

.mic-toggle-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #3b82f6;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

.mic-toggle-btn:hover {
    background: #2563eb;
    transform: scale(1.1);
}

.mic-toggle-btn.muted {
    background: #ef4444;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
}

.disconnect-btn-bottom {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #ef4444;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
}

.disconnect-btn-bottom:hover {
    background: #dc2626;
    transform: scale(1.1);
}

/* Message bubbles */
.message-bubble {
    max-width: 80%;
    padding: 1rem 1.5rem;
    border-radius: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    animation: fadeIn 0.3s ease-out;
    word-wrap: break-word;
}

.user-message-bubble {
    align-self: flex-end;
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    color: white;
    border-bottom-right-radius: 0.5rem;
}

.ai-message-bubble {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
    border-bottom-left-radius: 0.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.voice-call-bottom-controls {
    display: flex;
    justify-content: center;
    padding: 2rem;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.disconnect-btn-bottom {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #ef4444;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
}

.disconnect-btn-bottom:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.voice-call-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.conversation-area {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: transparent; /* Default transparent background */
}

[data-theme="light"] .conversation-area {
    background: rgba(255, 255, 255, 0.7); /* Light theme background */
}

.message-bubble {
    max-width: 80%;
    padding: 1rem;
    border-radius: 1rem;
    position: relative;
    animation: fadeIn 0.3s ease-out;
}

.user-message-bubble {
    align-self: flex-end;
    background: #3b82f6;
    color: white;
    border-bottom-right-radius: 0;
}

.ai-message-bubble {
    align-self: flex-start;
    background: #e5e7eb;
    color: #1f2937;
    border-bottom-left-radius: 0;
}

.voice-call-footer {
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
}

[data-theme="light"] .voice-call-footer {
    background: rgba(255, 255, 255, 0.8);
}

.listening-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border-radius: 1.5rem;
    backdrop-filter: blur(5px);
    border: 1px solid var(--border-color);
}

[data-theme="light"] .listening-indicator {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.green-dot {
    width: 10px;
    height: 10px;
    background-color: #10b981;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.4;
    }
    100% {
        opacity: 1;
    }
}

/* Responsive styles for voice call modal */
@media (max-width: 768px) {
    .voice-call-modal-content {
        width: 95%;
        height: 80%;
    }
    
    .message-bubble {
        max-width: 90%;
    }
    
    .voice-call-header {
        padding: 0.75rem 1rem;
    }
    
    .voice-call-header h2 {
        font-size: 1.25rem;
    }
    
    .disconnect-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.875rem;
    }
}


/* Specific styling for upload button */
#upload-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#upload-btn:hover {
    color: var(--primary-color);
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    transform: translateY(-3px) rotate(15deg);
    box-shadow: 0 6px 15px rgba(99, 102, 241, 0.3);
}

/* Specific styling for send button */
#send-message-btn {
    background: var(--gradient-primary);
    border: none;
    color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
}

#send-message-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
    color: white;
}

#send-message-btn:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}



/* Desktop adjustments */
@media (min-width: 769px) {
    .ai-insights-view .chat-input-container {
        width: calc(100% - 4rem);
        max-width: 1200px;
        bottom: 1.5rem;
        padding: 0.75rem 1.25rem;
        gap: 0.75rem;
        border-radius: 2.5rem;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
        background: var(--bg-card);
        border: 1px solid var(--border-color);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
    
    .input-action-btn {
        border-radius: 1rem;
        width: 40px;
        height: 40px;
        padding: 0.75rem;
    }
    
    .input-wrapper {
        flex: 1;
        min-width: 0;
    }
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .ai-insights-view .chat-input-container {
        width: calc(100% - 2rem);
        left: 1rem;
        right: 1rem;
        transform: none;
        bottom: 2.5rem;
        padding: 0.5rem;
        gap: 0.5rem;
        border-radius: 2.5rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        display: flex;
        align-items: center;
        box-sizing: border-box;
    }
    
    .input-action-btn {
        padding: 0.625rem;
        width: 36px;
        height: 36px;
        border-radius: 1rem;
    }
    
    .input-wrapper {
        min-width: 0;
        flex: 1;
    }
    
    textarea#chat-input {
        width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    .chat-input-container {
        padding: 0.75rem;
        gap: 0.5rem;
    }
    
    .input-wrapper {
        min-width: 0;
        flex: 1;
    }
    
    textarea#chat-input {
        padding: 0.75rem 1rem;
        font-size: 0.8125rem;
    }
    
    .input-action-btn {
        width: 32px;
        height: 32px;
        padding: 0.5rem;
    }
}
/* Subscription Prompt Modal */
.pricing-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.pricing-option {
    background: var(--bg-secondary);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
}

.pricing-option:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.pricing-option h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.pricing-option p {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.pricing-option ul {
    text-align: left;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
}

.pricing-option li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.pricing-option li::before {
    content: "✓";
    color: var(--accent-color);
    font-weight: bold;
    margin-right: 0.5rem;
}

.pricing-option .btn {
    width: 100%;
    justify-content: center;
}

.demo-access {
    margin-top: 2rem;
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.demo-access p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.demo-access-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.demo-access-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}


.message-content {
    margin-bottom: 0.5rem;
}

.message-time {
    font-size: 0.75rem;
    opacity: 0.7;
    text-align: right;
}

.chat-input-container {
    display: flex;
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    gap: 0.75rem;
    background: var(--bg-card);
    border-radius: 0;
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
    flex-wrap: nowrap;
}

.chat-input-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.chat-input-container:hover::before {
    transform: scaleX(1);
}

.chat-input-container:hover {
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.12);
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
}

/* Input actions container */
.input-actions-left {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* Input wrapper for textarea */
.input-wrapper {
    flex-grow: 1;
    display: flex;
    align-items: center;
    border-radius: 1.75rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 0;
    flex-shrink: 1;
}

.input-wrapper:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1);
}

.input-wrapper:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* Chat input textarea styling */
textarea#chat-input {
    flex-grow: 1;
    padding: 0.875rem 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: 1.75rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    resize: none;
    min-height: 40px;
    max-height: 120px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

/* Enhanced hover state */
textarea#chat-input:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

/* Enhanced focus state */
textarea#chat-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2), 0 4px 12px rgba(99, 102, 241, 0.15);
    transform: translateY(-1px);
    background: var(--bg-card);
}

/* Placeholder styling */
textarea#chat-input::placeholder {
    color: var(--text-muted);
    transition: color 0.3s ease;
}

textarea#chat-input:focus::placeholder {
    color: var(--text-secondary);
}

/* Remove conflicting button styles */
/* These styles are now handled by the more specific .input-action-btn styles above */

.ai-card {
    background: var(--bg-card);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.ai-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.ai-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ai-content {
    color: var(--text-secondary);
    line-height: 1.6;
}

.ai-placeholder {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

.ai-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.ai-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.pattern-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.pattern-item:last-child {
    border-bottom: none;
}

.pattern-label {
    color: var(--text-secondary);
}

.pattern-value {
    font-weight: 600;
    color: var(--text-primary);
}

.goal-item {
    margin-bottom: 1.5rem;
}

.goal-item:last-child {
    margin-bottom: 0;
}

.form-group:last-child {
    margin-bottom: 0;
}


.goal-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.goal-info p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

.goal-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.75rem;
}

.progress-bar {
    flex-grow: 1;
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    transition: width 1s ease;
}

.progress-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    min-width: 40px;
    text-align: right;
}

.result {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
    text-align: center;
    font-weight: 600;
}

/* API Emulator Styles */
.api-section {
    display: grid;
    gap: 2rem;
}

.api-card {
    background: var(--bg-card);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.api-header {
    margin-bottom: 1.5rem;
}

.api-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.api-header p {
    color: var(--text-secondary);
    margin: 0;
}

.endpoint-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.endpoint-selector label {
    font-weight: 500;
    color: var(--text-secondary);
}

.endpoint-selector select {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.875rem;
}

.api-request, .api-response {
    margin-bottom: 1.5rem;
}

.api-request h4, .api-response h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.code-block {
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    padding: 1rem;
    border: 1px solid var(--border-color);
    overflow-x: auto;
}

.code-block pre {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.api-info {
    background: var(--bg-card);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.api-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.doc-item {
    margin-bottom: 1.5rem;
}

.doc-item:last-child {
    margin-bottom: 0;
}

.chat-messages {
    flex-grow: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    max-width: 80%;
    padding: 1rem;
    border-radius: 1rem;
    animation: fadeIn 0.3s ease-out;
}

.bot-message {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    align-self: flex-start;
    border-bottom-left-radius: 0;
}

.user-message {
    background: var(--gradient-primary);
    align-self: flex-end;
    border-bottom-right-radius: 0;
    color: white;
}

.message-content {
    margin-bottom: 0.5rem;
}

.message-time {
    font-size: 0.75rem;
    opacity: 0.7;
    text-align: right;
}

.chat-input-container {
    display: flex;
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    gap: 0.75rem; /* Increased gap for better spacing */
    background: var(--bg-card);
    align-items: center;
    border-radius: 0 0 1rem 1rem; /* Rounded bottom corners */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); /* Subtle shadow */
}

.input-actions {
    display: flex;
    gap: 0.5rem;
}

.input-action-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem; /* More rounded buttons */
    padding: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-secondary);
    width: 40px; /* Fixed width */
    height: 40px; /* Fixed height */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0; /* Prevent shrinking */
}

.input-action-btn:hover {
    background: var(--bg-primary);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add shadow on hover */
}

.chat-input-container input {
    flex-grow: 1;
    padding: 0.875rem 1.25rem; /* Increased padding for comfort */
    border: 1px solid var(--border-color);
    border-radius: 1.5rem; /* More rounded input like ChatGPT */
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.875rem;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05); /* Inner shadow */
}

.chat-input-container input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1), inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.chat-input-container button {
    padding: 0.875rem 1.25rem; /* Increased padding */
    border-radius: 1.5rem; /* More rounded like ChatGPT */
    background: var(--gradient-primary);
    border: none;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0; /* Prevent shrinking */
    width: 40px; /* Fixed width */
    height: 40px; /* Fixed height */
}

.chat-input-container button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25); /* Enhanced shadow on hover */
    background: linear-gradient(135deg, #5855eb 0%, #7c5cef 100%);
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .ai-insights-view .dashboard-container {
        padding: 0 0.25rem; /* Even less padding on mobile */
        padding-bottom: 4rem; /* Reduced bottom padding for better fit */
    }
    
    .ai-insights-view .ai-chat-container {
        max-height: calc(100vh - 6rem); /* Adjust for mobile screen sizes */
        margin: 0; /* Remove margins on mobile */
        background: transparent; /* Remove background to prevent hiding chart */
        height: calc(100vh - 12rem); /* Better height calculation */
    }
    
    .ai-insights-view .chat-input-container {
        padding: 0.5rem; /* Reduce padding on mobile */
        gap: 0.5rem; /* Reduce gap on mobile */
        position: fixed; /* Fixed position on mobile */
        bottom: 2.5rem; /* Position even closer to mobile nav bar */
        left: 0.75rem;
        right: 0.75rem;
        margin: 0; /* Remove margin */
        z-index: 100; /* Ensure it's above other elements */
        border-radius: 1.5rem; /* Match rounded corners */
        width: calc(100% - 1.5rem); /* Full width with margins */
        background: var(--bg-card); /* Only input container has background */
        border: 1px solid var(--border-color);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
        backdrop-filter: none; /* Ensure no backdrop filter interferes */
        -webkit-backdrop-filter: none; /* Ensure no backdrop filter interferes */
        box-sizing: border-box; /* Ensure proper box sizing */
        /* Ensure proper fitting with rounded corners */
        overflow: hidden;
        height: fit-content; /* Ensure proper height */
    }
}

.chartboard-view .view-header p {
        color: var(--text-secondary);
        font-size: 0.875rem;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .input-action-btn {
        padding: 0.625rem;
        width: 36px;
        height: 36px;
    }
    
    .chat-input-container input {
        padding: 0.75rem 1rem;
    }
    
    .chat-input-container button {
        padding: 0.75rem 1rem;
        width: 36px;
        height: 36px;
    }

.ai-card {
    background: var(--bg-card);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.chat-input-container button:active {
    transform: translateY(0);
}

/* Subscription Prompt Modal */
.pricing-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.pricing-option {
    background: var(--bg-secondary);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
}

.pricing-option:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.pricing-option h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.pricing-option p {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.pricing-option ul {
    text-align: left;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
}

.pricing-option li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.pricing-option li::before {
    content: "✓";
    color: var(--accent-color);
    font-weight: bold;
    margin-right: 0.5rem;
}

.pricing-option .btn {
    width: 100%;
    justify-content: center;
}

.demo-access {
    margin-top: 2rem;
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.demo-access p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.demo-access-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.demo-access-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}


.message-content {
    margin-bottom: 0.5rem;
}

.message-time {
    font-size: 0.75rem;
    opacity: 0.7;
    text-align: right;
}

.chat-input-container {
    display: flex;
    border-top: 1px solid var(--border-color);
    gap: 0.5rem;
    align-items: center;
    background: var(--bg-card);
    border-radius: 0; /* Default rounded corners */
}

.chat-input-container input {
    flex-grow: 1;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem; /* Consistent input rounding */
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.875rem;
}

.chat-input-container input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.chat-input-container button {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem; /* Consistent button rounding */
}

.ai-card {
    background: var(--bg-card);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.ai-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.ai-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ai-content {
    color: var(--text-secondary);
    line-height: 1.6;
}

.ai-placeholder {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

.ai-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.ai-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.pattern-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.pattern-item:last-child {
    border-bottom: none;
}

.pattern-label {
    color: var(--text-secondary);
}

.pattern-value {
    font-weight: 600;
    color: var(--text-primary);
}

.goal-item {
    margin-bottom: 1.5rem;
}

.goal-item:last-child {
    margin-bottom: 0;
}

.goal-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.goal-info p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

.goal-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.75rem;
}

.progress-bar {
    flex-grow: 1;
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    transition: width 1s ease;
}

.progress-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    min-width: 40px;
    text-align: right;
}

.result {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
    text-align: center;
    font-weight: 600;
}

/* API Emulator Styles */
.api-section {
    display: grid;
    gap: 2rem;
}

.api-card {
    background: var(--bg-card);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.api-header {
    margin-bottom: 1.5rem;
}

.api-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.api-header p {
    color: var(--text-secondary);
    margin: 0;
}

.endpoint-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.endpoint-selector label {
    font-weight: 500;
    color: var(--text-secondary);
}

.endpoint-selector select {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.875rem;
}

.api-request, .api-response {
    margin-bottom: 1.5rem;
}

.api-request h4, .api-response h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.code-block {
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    padding: 1rem;
    border: 1px solid var(--border-color);
    overflow-x: auto;
}

.code-block pre {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.api-info {
    background: var(--bg-card);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.api-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.doc-item {
    margin-bottom: 1.5rem;
}

.doc-item:last-child {
    margin-bottom: 0;
}

.doc-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.doc-item p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* Review Section Enhancements */
.reviews {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.reviews .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.review-card {
    background: var(--bg-card);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.review-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.review-card:hover::before {
    transform: scaleX(1);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.review-info h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.review-info p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
}

.review-rating {
    color: var(--warning-color);
    margin: 0.5rem 0;
    font-size: 0.875rem;
}

.review-rating i {
    margin-right: 0.25rem;
}

.review-content {
    color: var(--text-secondary);
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 1rem;
    position: relative;
}

.review-content::before {
    content: '"';
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.2;
    position: absolute;
    top: -1rem;
    left: -1rem;
    font-family: Georgia, serif;
}

.review-date {
    text-align: right;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Trust Building Section */
.trust-section {
    padding: 4rem 0;
    background: linear-gradient(to bottom, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.trust-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.trust-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.trust-stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 2rem 0;
    padding: 1rem;
}

.trust-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--bg-card);
    border-radius: 1rem;
    padding: 1.5rem 1rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    min-width: 180px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: trustStatEntrance 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
    width: calc(50% - 1rem);
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .trust-stat {
        width: calc(50% - 1rem);
        min-width: 140px;
    }
}

@media (max-width: 480px) {
    .trust-stat {
        width: 100%;
        min-width: auto;
    }
}

.trust-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: white;
    font-size: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.trust-stat:hover .trust-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-md);
}

.trust-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.trust-stat:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.trust-stat:hover::before {
    transform: scaleX(1);
}

.trust-stat .number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.trust-stat .number::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 3px;
}

.trust-stat .label {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
    margin-top: 0.5rem;
}

/* Compact trust stats for one row display */
.trust-stats.compact {
    gap: 1rem;
    margin: 1rem 0;
    padding: 0.5rem;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
}

.trust-stat.small {
    min-width: 120px;
    padding: 1rem 0.5rem;
    width: auto;
    flex: 1;
    flex-shrink: 1;
}

.trust-stat.small .trust-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.trust-stat.small .number {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.trust-stat.small .number::after {
    width: 30px;
    height: 2px;
    bottom: -3px;
}

.trust-stat.small .label {
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

@media (max-width: 768px) {
    .trust-stats.compact {
        flex-wrap: wrap;
    }
    
    .trust-stat.small {
        min-width: 100px;
        padding: 0.75rem 0.25rem;
        flex: 1 1 calc(50% - 1rem);
    }
    
    .trust-stat.small .number {
        font-size: 1.3rem;
    }
    
    .trust-stat.small .label {
        font-size: 0.7rem;
    }
}

/* Ensure 4 cards in one row on desktop */
@media (min-width: 769px) {
    .trust-stats.compact {
        flex-wrap: nowrap;
        gap: 1.5rem;
    }
    
    .trust-stat.small {
        flex: 1 1 auto;
        min-width: 140px;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .trust-stats.compact {
        flex-wrap: wrap;
    }
    
    .trust-stat.small {
        width: calc(50% - 0.5rem);
        min-width: auto;
    }
}

.logo-img {
  height: 30px;   /* adjust size to fit your navbar */
  margin-right: 8px;
  vertical-align: middle;
}

/* AI Insights Locked Placeholders */
.pattern-value.locked,
.progress-text.locked {
    color: var(--text-muted);
    font-style: italic;
}

.pattern-value.locked::before,
.progress-text.locked::before {
    content: "🔒 ";
}

.ai-placeholder.locked {
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    border: 1px dashed var(--border-color);
}

.ai-placeholder.locked i {
    color: var(--text-muted);
    opacity: 0.3;
}

.ai-placeholder.locked p {
    color: var(--text-muted);
    font-style: italic;
}

.ai-placeholder.locked small {
    color: var(--text-secondary);
    font-size: 0.875rem;
}#ai-content {
    transition: all 0.3s ease;
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    background: var(--gradient-primary);
    color: white;
}

.cta-section {
    padding: 6rem 0;
    background: var(--gradient-primary);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHBhdHRlcm5UcmFuc2Zvcm09InJvdGF0ZSg0NSkiPjxjaXJjbGUgY3g9IjMwIiBjeT0iMzAiIHI9IjAuNSIgZmlsbD0id2hpdGUiIGZpbGwtb3BhY2l0eT0iMC4xIi8+PC9wYXR0ZXJuPjwvZGVmcz48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSJ1cmwoI3BhdHRlcm4pIi8+PC9zdmc+') fixed;
    opacity: 0.2;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cta-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cta-buttons .btn-primary {
    background: white;
    color: var(--primary-color);
}

.cta-buttons .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.cta-buttons .btn-secondary {
    background: rgba(255,255,255,0.15);
    color: white;
    backdrop-filter: blur(10px);
}

.cta-buttons .btn-secondary:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-3px);
}

.cta-guarantee {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    opacity: 0.8;
}

.cta-guarantee i {
    font-size: 1rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Chart Loading Animations */
@keyframes chartLoad {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.chart-card {
    animation: chartLoad 0.5s ease-out;
}

/* Staggered animation delays for chart cards */
.chart-grid > :nth-child(1) { animation-delay: 0.1s; }
.chart-grid > :nth-child(2) { animation-delay: 0.2s; }
.chart-grid > :nth-child(3) { animation-delay: 0.3s; }
.chart-grid > :nth-child(4) { animation-delay: 0.4s; }
.chart-grid > :nth-child(5) { animation-delay: 0.5s; }
.chart-grid > :nth-child(6) { animation-delay: 0.6s; }
.chart-grid > :nth-child(7) { animation-delay: 0.7s; }

/* Savings Goals Page */
.savings-goals-page {
    padding: 2rem 0;
    animation: fadeIn 0.5s ease-out;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    height: auto;
    max-height: none;
    box-sizing: border-box;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Ensure savings goals page scrolls properly */
#savings-goals-page {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    height: 100vh !important;
    max-height: 100vh !important;
}

.savings-goals-page .view-header {
    text-align: center;
    margin-bottom: 2rem;
}

.savings-goals-page .view-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.savings-goals-page .view-header p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Savings Goals Tabs */
.savings-goals-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    width: 100%;
    box-sizing: border-box;
}

.savings-goals-tab {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.savings-goals-tab:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.savings-goals-tab.active {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

/* Savings Goals Sections */
.savings-goals-section {
    display: none;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    max-height: none;
    padding-right: 0;
    margin-right: 0;
}

.savings-goals-section.active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

.section-header {
    margin-bottom: 1.5rem;
}

.section-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-secondary);
    margin: 0;
}

/* Forms */
.add-goal-form,
.add-contribution-form {
    background: var(--bg-card);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.add-goal-form h4,
.add-contribution-form h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.goal-calculation {
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    padding: 1rem;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

/* Category Chart Styles */
.category-chart-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    background: var(--bg-secondary);
    overflow: hidden;
}

.chart-segment {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    clip-path: polygon(50% 50%, 50% 0%, 100% 0%, 100% 100%, 0% 100%, 0% 0%, 50% 0%);
    transform: rotate(var(--start));
}

.segment-fill {
    width: 100%;
    height: 100%;
    background: var(--color);
    transform: rotate(var(--angle));
    transform-origin: center;
}

.segment-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.segment-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.segment-label {
    font-size: 0.875rem;
    color: var(--text-primary);
}

.segment-value {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-left: auto;
}

.chart-legend {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

.legend-label {
    font-size: 0.875rem;
    color: var(--text-primary);
    flex: 1;
}

.legend-value {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Progress Chart Styles */
.progress-chart-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.progress-bar-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    box-sizing: border-box;
}

.progress-bar-label {
    font-size: 0.875rem;
    color: var(--text-primary);
    min-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.progress-bar-track {
    flex: 1;
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-bar-value {
    font-size: 0.875rem;
    color: var(--text-secondary);
    min-width: 50px;
    text-align: right;
}

/* Goals List */
.goals-list,
.contributions-list {
    margin-bottom: 2rem;
}

.goals-list h4,
.contributions-list h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.goals-container,
.contributions-container {
    display: grid;
    gap: 1.5rem;
    min-height: 200px;
    width: 100%;
}

/* Savings Goal Card */
.savings-goal-card {
    background: var(--bg-card);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.savings-goal-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.goal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Mobile: Stacked layout for ChartBoard KPIs */
@media (max-width: 768px) {
    .chartboard-view .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .chartboard-view .stats-grid .stat-card {
        flex-direction: row;
        align-items: center;
        padding: 1rem;
    }
    
    .chartboard-view .stats-grid .stat-icon {
        width: 2.5rem;
        height: 2.5rem;
        min-width: 2.5rem;
        min-height: 2.5rem;
    }
    
    .chartboard-view .stats-grid .stat-content {
        flex: 1;
        margin-left: 1rem;
    }
    
    .chartboard-view .stats-grid .stat-content h3 {
        font-size: 0.875rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-bottom: 0.125rem;
    }
    
    .chartboard-view .stats-grid .stat-content p {
        font-size: 1.25rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin: 0;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .chartboard-view .stats-grid .stat-card {
        padding: 0.75rem;
    }
    
    .chartboard-view .stats-grid .stat-icon {
        width: 2rem;
        height: 2rem;
        min-width: 2rem;
        min-height: 2rem;
    }
    
    .chartboard-view .stats-grid .stat-content h3 {
        font-size: 0.75rem;
    }
    
    .chartboard-view .stats-grid .stat-content p {
        font-size: 1.125rem;
    }
}

.goal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.goal-category {
    background: var(--bg-secondary);
    border-radius: 1rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.goal-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.goal-amount .text-muted {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.goal-progress-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.progress-bar {
    flex-grow: 1;
    height: 10px;
    background: var(--bg-secondary);
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 5px;
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    min-width: 80px;
    text-align: right;
}

.goal-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.priority-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 0.25rem;
}

.priority-indicator.priority-high {
    background: var(--danger-color);
}

.priority-indicator.priority-medium {
    background: var(--warning-color);
}

.priority-indicator.priority-low {
    background: var(--accent-color);
}

.goal-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.goal-actions .btn {
    padding: 0.5rem;
    min-width: 40px;
    justify-content: center;
}

.goal-actions .btn-icon i {
    margin-right: 0;
}

/* Contributions */
.contribution-goal-section {
    background: var(--bg-card);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.contribution-goal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.contribution-goal-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.contribution-goal-header p {
    color: var(--text-secondary);
    margin: 0;
}

.contribution-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contribution-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    width: 100%;
    box-sizing: border-box;
}

.contribution-amount {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.contribution-date {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.contribution-actions {
    display: flex;
    gap: 0.5rem;
}

.contribution-actions .btn {
    padding: 0.5rem;
    min-width: 36px;
    justify-content: center;
}

/* Analytics */
.analytics-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.analytics-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

.chart-card {
    background: var(--bg-card);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.chart-header {
    margin-bottom: 1rem;
}

.chart-header h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.chart-container {
    height: 300px;
    min-height: 250px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.mock-chart {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.empty-state p {
    margin: 0;
    font-size: 1rem;
}

@keyframes trustStatEntrance {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes currencyModalSlideIn {
    from {
        opacity: 0;
        transform: translateY(100px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Fallback to ensure elements are visible if JavaScript fails */
.no-js .feature-card,
.no-js .review-card,
.no-js .trust-stat,
.feature-card,
.review-card,
.trust-stat {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Ensure trust stats are always visible */
.trust-stat {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-links {
        gap: 0.5rem;
    }
    
    .nav-links a {
        display: none;
    }
    
    #pricing-toggle {
        display: flex;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    
    .chart-controls {
        width: 100%;
        justify-content: flex-start;
    }
    
    .founder-info {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .app-header-content {
        padding: 0 1rem;
    }
    
    .dashboard-container {
        padding: 0 1rem;
    }
    
    .transaction-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .transaction-amount {
        align-self: flex-end;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.popular {
        transform: scale(1);
    }
    
    .pricing-card.popular:hover {
        transform: scale(1) translateY(-10px);
    }
    
    .billing-toggle {
        max-width: 100%;
    }
    
    .app-navigation {
        flex-wrap: wrap;
    }
    
    .app-navigation .btn {
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }
    
    .chart-grid, .ai-grid {
        grid-template-columns: 1fr;
    }
    
    .ai-chat-container {
        height: 400px;
    }
    
    .trust-stats {
        gap: 1rem;
        padding: 0.5rem;
    }
    
    .trust-stat {
        min-width: 140px;
        padding: 1.25rem 0.75rem;
    }
    
    .trust-stat .number {
        font-size: 2rem;
    }
    
    .trust-stat .label {
        font-size: 1rem;
    }
    
    .trust-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    .pricing-options {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Mobile-specific styles for upgrade banners */
    .upgrade-banner {
        padding: 1rem;
        margin-bottom: 1rem;
        border-radius: 0.75rem;
    }
    
    .banner-content {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .banner-content i {
        font-size: 1.5rem;
    }
    
    .banner-text h3 {
        font-size: 1.25rem;
    }
    
    .banner-text p {
        font-size: 0.875rem;
    }
    
    #upgrade-now-btn, #ai-upgrade-now-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
        border-radius: 0.375rem;
    }
    
    /* Mobile-specific styles for AI content */
    .ai-section {
        gap: 1rem;
    }
    
    .ai-card {
        padding: 1rem;
    }
    
    .ai-header h3 {
        font-size: 1.125rem;
    }
    
    /* Mobile-specific styles for Pro features */
    .pro-features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .pro-feature-card {
        padding: 1rem;
    }
    
    /* Mobile-specific styles for Savings Goals */
    .savings-goals-page {
        padding: 1rem 0;
    }
    
    .savings-goals-page .view-header h2 {
        font-size: 1.5rem;
    }
    
    .savings-goals-page .view-header p {
        font-size: 0.875rem;
    }
    
    .savings-goals-tabs {
        flex-wrap: wrap;
        gap: 0.25rem;
        padding-bottom: 0.5rem;
    }
    
    .savings-goals-tab {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
        flex: 1;
        min-width: auto;
        justify-content: center;
    }
    
    .add-goal-form,
    .add-contribution-form {
        padding: 1rem;
    }
    
    .form-row {
        gap: 1rem;
    }
    
    .goal-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .goal-amount {
        font-size: 1.25rem;
    }
    
    .goal-meta {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .goal-actions {
        justify-content: stretch;
    }
    
    .goal-actions .btn {
        flex: 1;
        min-width: auto;
    }
    
    .analytics-summary {
        grid-template-columns: 1fr;
    }
    
    .analytics-charts {
        grid-template-columns: 1fr;
    }
    
    .chart-container {
        height: 250px;
    }
    
    .contribution-goal-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .contribution-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .contribution-actions {
        align-self: flex-end;
    }
    
    /* Mobile-specific modal improvements */
    .modal-content {
        width: 95%;
        max-height: 90vh;
        margin: 1rem auto;
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .modal-body h3 {
        font-size: 1.25rem;
        margin-top: 1.5rem;
    }
    
    .modal-body p,
    .modal-body li {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .founder-info {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .founder-avatar {
        margin: 0 auto;
    }
    
    .founder-details h3 {
        font-size: 1.25rem;
    }
    
    .founder-title {
        font-size: 1rem;
    }
    
    .founder-bio {
        font-size: 0.95rem;
    }
    
    .contact-info {
        align-items: center;
    }
    
    .contact-info .contact-item {
        padding: 0.5rem;
        gap: 0.5rem;
    }
    
    .company-mission {
        padding: 1.5rem;
    }
    
    .company-mission h3 {
        font-size: 1.25rem;
    }
    
    .company-mission p {
        font-size: 0.95rem;
    }
    
    .company-values h3 {
        font-size: 1.25rem;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .value-item {
        padding: 1rem;
    }
    
    .value-item h4 {
        font-size: 1.125rem;
    }
    
    .value-item p {
        font-size: 0.95rem;
    }
    
    .team-section h3 {
        font-size: 1.25rem;
    }
    
    .team-section p {
        padding: 1rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .modal-content {
        margin: 0.5rem;
        max-height: calc(100vh - 1rem);
        width: calc(100% - 1rem);
    }
    
    .modal-header,
    .modal-body {
        padding: 0.75rem;
    }
    
    .modal-header h2 {
        font-size: 1.25rem;
    }
    
    .modal-body h3 {
        font-size: 1.125rem;
        margin-top: 1rem;
    }
    
    .modal-body h4 {
        font-size: 1rem;
        margin: 0.75rem 0 0.5rem;
    }
    
    .modal-body p,
    .modal-body li {
        font-size: 0.875rem;
        line-height: 1.4;
    }
    
    .pricing-card {
        padding: 1.5rem;
    }
    
    .price .amount {
        font-size: 2rem;
    }
    
    .endpoint-selector {
        flex-direction: column;
        align-items: stretch;
    }
    
    .endpoint-selector select {
        width: 100%;
    }
    
    .ai-chat-container {
        height: 350px;
    }
    
    .chat-input-container {
        padding: 0.75rem;
    }
    
    .chat-input-container input {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
    
    /* Extra small screen styles for Savings Goals */
    .savings-goals-page .view-header h2 {
        font-size: 1.25rem;
    }
    
    .savings-goals-page .view-header p {
        font-size: 0.75rem;
    }
    
    .savings-goals-tab {
        padding: 0.5rem;
        font-size: 0.75rem;
    }
    
    .add-goal-form,
    .add-contribution-form {
        padding: 0.75rem;
    }
    
    .form-group label {
        font-size: 0.75rem;
    }
    
    .form-group input,
    .form-group select {
        padding: 0.5rem;
        font-size: 0.75rem;
    }
    
    .goal-title {
        font-size: 1rem;
    }
    
    .goal-amount {
        font-size: 1rem;
    }
    
    .progress-bar-label {
        font-size: 0.75rem;
        min-width: 80px;
    }
    
    .progress-bar-value {
        font-size: 0.75rem;
        min-width: 40px;
    }
    
    .chart-container {
        height: 200px;
    }
    
    .contribution-amount {
        font-size: 1rem;
    }
    
    .contribution-date {
        font-size: 0.75rem;
    }
    
    .cta-title {
        font-size: 1.75rem;
    }
    
    .cta-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Additional mobile styles for smaller screens */
    .upgrade-banner {
        padding: 0.75rem;
    }
    
    .banner-content i {
        font-size: 1.25rem;
    }
    
    .banner-text h3 {
        font-size: 1.125rem;
    }
    
    .banner-text p {
        font-size: 0.75rem;
    }
    
    #upgrade-now-btn, #ai-upgrade-now-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
    
    /* Mobile-specific modal improvements */
    .founder-info {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1rem;
    }
    
    .founder-avatar {
        margin: 0 auto;
    }
    
    .founder-details h3 {
        font-size: 1.125rem;
    }
    
    .founder-title {
        font-size: 0.875rem;
    }
    
    .founder-bio {
        font-size: 0.875rem;
    }
    
    .contact-info {
        align-items: center;
    }
    
    .contact-info .contact-item {
        padding: 0.5rem;
        gap: 0.5rem;
    }
    
    .contact-info .contact-item i {
        font-size: 1rem;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .value-item {
        padding: 1rem;
    }
    
    .value-item h4 {
        font-size: 1rem;
    }
    
    .value-item p {
        font-size: 0.875rem;
    }
    
    .team-section p {
        padding: 1rem;
        font-size: 0.875rem;
    }
    
    .company-mission {
        padding: 1rem;
    }
    
    .company-mission h3 {
        font-size: 1.125rem;
    }
    
    .company-mission p {
        font-size: 0.875rem;
    }
    
    .company-values h3 {
        font-size: 1.125rem;
    }
    
    /* Ensure modals scroll properly on small screens */
    .modal-body {
        max-height: 70vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Modal close button adjustments for small screens */
    .modal-close {
        width: 36px;
        height: 36px;
        padding: 0.25rem;
        font-size: 1.25rem;
    }
}

@media (min-width: 769px) {
    #pricing-toggle {
        display: none;
    }
}

/* Extra small devices (phones, under 360px) */
@media (max-width: 359px) {
    .modal-content {
        margin: 0.25rem;
        max-height: calc(100vh - 0.5rem);
        width: calc(100% - 0.5rem);
    }
    
    .modal-header,
    .modal-body {
        padding: 0.5rem;
    }
    
    .modal-header h2 {
        font-size: 1.125rem;
    }
    
    .modal-body h3 {
        font-size: 1rem;
        margin-top: 0.75rem;
    }
    
    .modal-body h4 {
        font-size: 0.875rem;
        margin: 0.5rem 0 0.25rem;
    }
    
    .modal-body p,
    .modal-body li {
        font-size: 0.8125rem;
        line-height: 1.3;
    }
    
    .founder-info {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .founder-details h3 {
        font-size: 1rem;
    }
    
    .founder-title {
        font-size: 0.75rem;
    }
    
    .founder-bio {
        font-size: 0.75rem;
    }
    
    .contact-info .contact-item {
        padding: 0.25rem;
        gap: 0.25rem;
    }
    
    .contact-info .contact-item i {
        font-size: 0.75rem;
    }
    
    .contact-info .contact-item a,
    .contact-info .contact-item span {
        font-size: 0.75rem;
    }
    
    .value-item {
        padding: 0.75rem;
    }
    
    .value-item h4 {
        font-size: 0.875rem;
    }
    
    .value-item p {
        font-size: 0.75rem;
    }
    
    .team-section p {
        padding: 0.75rem;
        font-size: 0.75rem;
    }
    
    .company-mission {
        padding: 0.75rem;
    }
    
    .company-mission h3 {
        font-size: 1rem;
    }
    
    .company-mission p {
        font-size: 0.75rem;
    }
    
    .company-values h3 {
        font-size: 1rem;
    }
    
    /* Ensure proper scrolling on very small screens */
    .modal-body {
        max-height: 65vh;
    }
    
    /* Modal close button adjustments for very small screens */
    .modal-close {
        width: 32px;
        height: 32px;
        padding: 0.125rem;
        font-size: 1.125rem;
    }
}

/* Currency Converter View */
.pro-features-view {
    padding: 2rem 0;
    animation: fadeIn 0.5s ease-out;
}

/* Ensure ChartBoard view header maintains proper styling on mobile */
.chartboard-view .view-header {
    text-align: center;
    margin-bottom: 2rem;
}

.chartboard-view .view-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.pro-features-view .view-header {
    text-align: center;
    margin-bottom: 2rem;
}

.pro-features-view .view-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.pro-features-view .view-header p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.pro-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Enhanced Pro Feature Card - Premium Design */
.pro-feature-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 2px solid var(--primary-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    transform: translateY(0);
    opacity: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
    /* Premium glow effect */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    /* Subtle inner shadow for depth */
    box-shadow: inset 0 0 20px rgba(99, 102, 241, 0.1), 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.pro-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    z-index: 1;
}

.pro-feature-card:hover::before {
    transform: scaleX(1);
}

.pro-feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(99, 102, 241, 0.25);
}

.pro-feature-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20px;
    height: 200%;
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(30deg);
    transition: all 0.8s;
    z-index: 0;
}

.pro-feature-card:hover::after {
    left: 120%;
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.75rem;
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.3);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.pro-feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 20px -5px rgba(99, 102, 241, 0.4);
}

.pro-feature-card h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.pro-feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0.75rem 0 1.5rem;
    font-size: 1.125rem;
    position: relative;
    z-index: 2;
}

.feature-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.toggle-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.currency-select {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.875rem;
    min-width: 100px;
}



.currency-converter {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
}

.currency-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.currency-input {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.875rem;
    min-width: 80px;
}

#swap-currencies {
    padding: 0.5rem;
}

.conversion-result {
    text-align: center;
    font-weight: 600;
    color: var(--primary-color);
    padding: 0.5rem;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
}

/* Premium Button Styles */
.btn.btn-primary.btn-block {
    width: 100%;
    justify-content: center;
    padding: 1.25rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 0.875rem;
    background: var(--gradient-primary);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.btn.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;
    z-index: -1;
}

.btn.btn-primary.btn-block:hover::before {
    left: 100%;
}

.btn.btn-primary.btn-block:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.btn.btn-primary.btn-block i {
    margin-right: 0.75rem;
    transition: transform 0.3s ease;
}

.btn.btn-primary.btn-block:hover i {
    transform: rotate(90deg);
}

/* Upgrade Banner */
.upgrade-banner {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    /* Thunder effect */
    animation: thunder 3s infinite;
}

/* Thunder effect keyframes */
@keyframes thunder {
    0% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7),
                    0 0 0 0 rgba(139, 92, 246, 0.5);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(99, 102, 241, 0),
                    0 0 0 20px rgba(139, 92, 246, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0),
                    0 0 0 0 rgba(139, 92, 246, 0);
    }
}

.upgrade-banner::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;
}

.upgrade-banner:hover::before {
    left: 100%;
}

.upgrade-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.15) 50%, 
        rgba(255,255,255,0) 100%);
    animation: shimmer 4s infinite linear;
    pointer-events: none;
}

.upgrade-banner:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

@keyframes shine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
        transform: scale(1.01);
    }
    100% {
        box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
        transform: scale(1);
    }
}

.upgrade-banner.hidden {
    display: none;
}

.banner-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.banner-content i {
    font-size: 2rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.banner-text h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.banner-text p {
    margin: 0;
    opacity: 0.95;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

#upgrade-now-btn,
#ai-upgrade-now-btn,
#chartboard-upgrade-now-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.75rem;
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background: white;
    color: #6366f1;
    box-shadow: var(--shadow-md);
    /* Enhanced button effect */
    animation: buttonPulse 2s infinite;
}

/* Button pulse effect */
@keyframes buttonPulse {
    0% {
        box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    }
    50% {
        box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
    }
    100% {
        box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    }
}

#upgrade-now-btn::before,
#ai-upgrade-now-btn::before,
#chartboard-upgrade-now-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;
}

#upgrade-now-btn:hover::before,
#ai-upgrade-now-btn:hover::before,
#chartboard-upgrade-now-btn:hover::before {
    left: 100%;
}

#upgrade-now-btn:hover,
#ai-upgrade-now-btn:hover,
#chartboard-upgrade-now-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    /* Enhanced hover effect */
    animation: none;
}

/* Scroll animation for landing page features */
.feature-card,
.review-card,
.trust-stat {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.feature-card.visible,
.review-card.visible,
.trust-stat.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Ensure landing page cards are always visible */
#landing-page .feature-card,
#landing-page .review-card,
#landing-page .trust-stat {
    opacity: 1 !important;
    transform: translateY(0) !important;
    animation: fadeInUp 0.6s ease-out;
}

/* Add staggered animations for feature cards */
#landing-page .features .feature-card:nth-child(1) { animation-delay: 0.1s; }
#landing-page .features .feature-card:nth-child(2) { animation-delay: 0.2s; }
#landing-page .features .feature-card:nth-child(3) { animation-delay: 0.3s; }
#landing-page .features .feature-card:nth-child(4) { animation-delay: 0.4s; }
#landing-page .features .feature-card:nth-child(5) { animation-delay: 0.5s; }
#landing-page .features .feature-card:nth-child(6) { animation-delay: 0.6s; }
#landing-page .features .feature-card:nth-child(7) { animation-delay: 0.7s; }
#landing-page .features .feature-card:nth-child(8) { animation-delay: 0.8s; }

#landing-page .surprising-features .feature-card:nth-child(1) { animation-delay: 0.1s; }
#landing-page .surprising-features .feature-card:nth-child(2) { animation-delay: 0.2s; }
#landing-page .surprising-features .feature-card:nth-child(3) { animation-delay: 0.3s; }
#landing-page .surprising-features .feature-card:nth-child(4) { animation-delay: 0.4s; }

#landing-page .reviews .review-card:nth-child(1) { animation-delay: 0.1s; }
#landing-page .reviews .review-card:nth-child(2) { animation-delay: 0.2s; }
#landing-page .reviews .review-card:nth-child(3) { animation-delay: 0.3s; }

#landing-page .trust-section .trust-stat:nth-child(1) { animation-delay: 0.1s; }
#landing-page .trust-section .trust-stat:nth-child(2) { animation-delay: 0.2s; }
#landing-page .trust-section .trust-stat:nth-child(3) { animation-delay: 0.3s; }
#landing-page .trust-section .trust-stat:nth-child(4) { animation-delay: 0.4s; }

/* Staggered delays for feature cards in different sections */
.features .feature-card:nth-child(1) { transition-delay: 0.1s; }
.features .feature-card:nth-child(2) { transition-delay: 0.2s; }
.features .feature-card:nth-child(3) { transition-delay: 0.3s; }
.features .feature-card:nth-child(4) { transition-delay: 0.4s; }
.features .feature-card:nth-child(5) { transition-delay: 0.5s; }
.features .feature-card:nth-child(6) { transition-delay: 0.6s; }
.features .feature-card:nth-child(7) { transition-delay: 0.7s; }
.features .feature-card:nth-child(8) { transition-delay: 0.8s; }

.surprising-features .feature-card:nth-child(1) { transition-delay: 0.1s; }
.surprising-features .feature-card:nth-child(2) { transition-delay: 0.2s; }
.surprising-features .feature-card:nth-child(3) { transition-delay: 0.3s; }
.surprising-features .feature-card:nth-child(4) { transition-delay: 0.4s; }

.reviews .review-card:nth-child(1) { transition-delay: 0.1s; }
.reviews .review-card:nth-child(2) { transition-delay: 0.2s; }
.reviews .review-card:nth-child(3) { transition-delay: 0.3s; }

.trust-section .trust-stat:nth-child(1) { transition-delay: 0.1s; }
.trust-section .trust-stat:nth-child(2) { transition-delay: 0.2s; }
.trust-section .trust-stat:nth-child(3) { transition-delay: 0.3s; }
.trust-section .trust-stat:nth-child(4) { transition-delay: 0.4s; }

/* Animation delays for trust stats */
.trust-stat:nth-child(1) { animation-delay: 0.1s; }
.trust-stat:nth-child(2) { animation-delay: 0.2s; }
.trust-stat:nth-child(3) { animation-delay: 0.3s; }
.trust-stat:nth-child(4) { animation-delay: 0.4s; }

/* SaaS Features Section */
.saas-features-section {
    background: var(--bg-card);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    margin-top: 2rem;
}

.saas-features-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.saas-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.saas-feature-card {
    background: var(--bg-secondary);
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.saas-feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.feature-controls {
.unified-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: space-between;
}

.toggle-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.currency-select {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.875rem;
}



.logo-img {
  height: 30px;   /* adjust size to fit your navbar */
  margin-right: 8px;
  vertical-align: middle;
}

/* AI Insights Locked Placeholders */
.pattern-value.locked,
.progress-text.locked {
    color: var(--text-muted);
    font-style: italic;
}

.pattern-value.locked::before,
.progress-text.locked::before {
    content: "🔒 ";
}

.ai-placeholder.locked {
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    border: 1px dashed var(--border-color);
}

.ai-placeholder.locked i {
    color: var(--text-muted);
    opacity: 0.3;
}

.ai-placeholder.locked p {
    color: var(--text-muted);
    font-style: italic;
}

.ai-placeholder.locked small {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.ai-placeholder.locked h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.ai-placeholder.locked p {
    color: var(--text-muted);
    font-style: italic;
}

.ai-placeholder.locked small {
    color: var(--text-secondary);
    font-size: 0.875rem;
}
}

.pattern-value.locked,
.progress-text.locked {
    color: var(--text-muted);
    font-style: italic;
}

/* AI Insights Locked Placeholders */
.pattern-value.locked,
.progress-text.locked {
    color: var(--text-muted);
    font-style: italic;
}

.pattern-value.locked::before,
.progress-text.locked::before {
    content: "🔒 ";
}

.ai-placeholder.locked {
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    border: 1px dashed var(--border-color);
}

.ai-placeholder.locked i {
    color: var(--text-muted);
    opacity: 0.3;
}

.ai-placeholder.locked p {
    color: var(--text-muted);
    font-style: italic;
}

.ai-placeholder.locked small {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.ai-placeholder.locked h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.ai-placeholder.locked p {
    color: var(--text-muted);
    font-style: italic;
}

.ai-placeholder.locked small {
    color: var(--text-secondary);
    font-size: 0.875rem;
}
