/* SnapMac - Apple Music Inspired Design */

/* Global Styles & Typography */
:root {
    --accent-primary: #F95D76;
    --accent-hover: #F73A5C;
    --accent-light: #FFF0F3;
    --accent-gradient: linear-gradient(135deg, #FF668A, #FA2A55);
    --accent-gradient-hover: linear-gradient(135deg, #FF7A96, #E8264C);
    --text-primary: #000000;
    --text-secondary: #666666;
    --text-muted: #999999;
    --bg-white: #FFFFFF;
    --bg-light-gray: #F8F8F8;
    --bg-gray-50: #f8f8f8;
    --bg-gray-100: #f3f3f3;
    --border-gray-200: #e0e0e0;
    --border-gray-300: #cccccc;
    --success-green: #10b981;
    --shadow-sm: 0 2px 6px 0 rgb(0 0 0 / 0.04);
    --shadow-md: 0 4px 12px -2px rgb(0 0 0 / 0.08);
    --shadow-lg: 0 8px 24px -4px rgb(0 0 0 / 0.12);
    --shadow-xl: 0 16px 32px -6px rgb(0 0 0 / 0.16);
}

* {
    font-family: 'DM Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
    background-color: var(--bg-white);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
}

/* Typography Scale */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

/* Override any bold text in pricing features */
.pricing-features li, .pricing-features li * {
    font-weight: normal !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif !important;
}

/* Additional override for pricing features */
.pricing-card .pricing-features li {
    font-weight: normal !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif !important;
}

/* Ensure pricing features are not bold */
ul.pricing-features li {
    font-weight: normal !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif !important;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.875rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Navigation */
.modern-nav {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-gray-200);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    color: var(--text-primary) !important;
    text-decoration: none;
}

.navbar-brand i {
    color: var(--accent-primary);
}

.navbar-nav .nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    font-size: 1rem;
    margin: 0 0.5rem;
    transition: color 0.2s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--text-primary) !important;
}

/* Hero Section */
.modern-hero {
    background: var(--bg-white);
    padding: 6rem 0 4rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.btn-cta-primary {
    background: var(--bg-white);
    color: var(--accent-primary);
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--accent-primary);
    display: inline-block;
}

.btn-cta-primary:hover {
    background: var(--accent-gradient);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: var(--bg-white);
    text-decoration: none;
    border-color: transparent;
}

.btn-cta-secondary {
    background: transparent;
    color: var(--text-primary);
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 2px solid var(--text-primary);
}

.btn-cta-secondary:hover {
    background: var(--text-primary);
    color: var(--bg-white);
    text-decoration: none;
}

.hero-note {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

/* Features Section */
.features-section {
    background: var(--bg-white);
    padding: 5rem 0;
    position: relative;
    z-index: 1;
}

.feature-card {
    background: var(--bg-white);
    border-radius: 16px;
    text-align: center;
    padding: 2rem 1rem;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05),
        0 4px 12px rgba(0, 0, 0, 0.08),
        0 2px 4px rgba(0, 0, 0, 0.04);
}

.feature-icon {
    margin-bottom: 1.5rem;
    display: block;
}

.feature-icon i {
    filter: drop-shadow(0 0 8px rgba(249, 93, 118, 0.3));
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon i {
    filter: drop-shadow(0 0 12px rgba(249, 93, 118, 0.5));
    transform: scale(1.05);
}

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

.feature-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Pricing Section */
.pricing-section {
    background: var(--bg-white);
    padding: 6rem 0;
    position: relative;
    z-index: 1;
    clear: both;
}

.pricing-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-family: 'DM Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.pricing-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    font-weight: 400;
    font-family: 'DM Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.pricing-card {
    background: var(--bg-white);
    border: 1px solid var(--border-gray-200);
    border-radius: 14px;
    padding: 2.5rem 2rem;
    position: relative;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

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

.pricing-card-featured {
    border: 2px solid var(--accent-primary);
    transform: scale(1.05);
}

.pricing-card-featured:hover {
    transform: scale(1.05) translateY(-4px);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-primary);
    color: var(--bg-white);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: 'DM Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
}

.pricing-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-family: 'DM Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0;
    font-family: 'DM Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.price span {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-secondary);
    font-family: 'DM Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2.5rem 0;
}

.pricing-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-gray-200);
    color: var(--text-secondary);
    font-size: 1rem;
    position: relative;
    padding-left: 1.5rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-weight: normal !important;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #000000;
    font-weight: 600;
    font-size: 1.2rem;
}

.pricing-btn-primary {
    display: block;
    width: 100%;
    background: var(--bg-white);
    color: var(--accent-primary);
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 500;
    font-size: 1.1rem;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid var(--accent-primary);
    font-family: 'DM Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.pricing-btn-primary:hover {
    background: var(--accent-gradient);
    transform: translateY(-1px);
    color: var(--bg-white);
    text-decoration: none;
    border-color: transparent;
}

.pricing-btn-secondary {
    display: block;
    width: 100%;
    background: transparent;
    color: var(--accent-primary);
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
    border: 2px solid var(--accent-primary);
    cursor: pointer;
}

.pricing-btn-secondary:hover {
    background: var(--accent-primary);
    color: var(--bg-white);
    text-decoration: none;
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(249, 93, 118, 0.3);
}

/* Forms */
.form-control {
    background: var(--bg-white);
    border: 1px solid var(--border-gray-300);
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
    color: var(--text-primary);
}

.form-control:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgb(249 93 118 / 0.08);
    outline: none;
    transform: translateY(-1px);
}

.form-label {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.btn-primary {
    background: var(--bg-white);
    border: 2px solid var(--accent-primary);
    border-radius: 12px;
    padding: 0.875rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    color: var(--accent-primary);
}

.btn-primary:hover {
    background: var(--accent-gradient);
    transform: translateY(-1px);
    color: var(--bg-white);
    border-color: transparent;
}

.btn-outline-primary {
    border: 1px solid var(--border-gray-300);
    color: var(--text-primary);
    background: transparent;
    border-radius: 0.75rem;
    padding: 0.875rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.btn-outline-primary:hover {
    background: var(--bg-gray-50);
    border-color: var(--border-gray-300);
    color: var(--text-primary);
}

/* Cards */
.card {
    background: var(--bg-white);
    border: 1px solid var(--border-gray-200);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

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

.card-body {
    padding: 2rem;
}

.card-title {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.card-text {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

/* Footer */
.modern-footer {
    background: var(--bg-light-gray);
    border-top: 1px solid var(--border-gray-200);
    padding: 3rem 0;
    margin-top: 4rem;
}

.modern-footer p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

/* Alerts */
.alert {
    border: none;
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: rgb(16 185 129 / 0.1);
    color: #059669;
}

.alert-danger {
    background: rgb(239 68 68 / 0.1);
    color: #dc2626;
}

.alert-info {
    background: var(--accent-light);
    color: var(--accent-primary);
    border: 1px solid rgba(249, 93, 118, 0.2);
    border-radius: 12px;
}



/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem !important;
    }
    
    /* Hide hero logo on mobile */
    .hero-logo {
        display: none !important;
    }
    
    .modern-hero .hero-logo {
        display: none !important;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .pricing-title {
        font-size: 2.25rem;
    }
    
    .pricing-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-cta-primary,
    .btn-cta-secondary {
        width: 100%;
        text-align: center;
    }
    
    .pricing-card-featured {
        transform: none;
    }
    
    .pricing-card-featured:hover {
        transform: translateY(-4px);
    }
    
    .modern-hero {
        padding: 4rem 0 3rem;
    }
    
    .features-section {
        padding: 4rem 0 5rem;
    }
    
    .pricing-section {
        padding: 5rem 0 4rem;
        margin-top: 3rem;
    }
    
    /* Ensure proper spacing between feature cards */
    .feature-card {
        margin-bottom: 3rem;
    }
    
    .feature-card:last-child {
        margin-bottom: 5rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .pricing-title {
        font-size: 1.875rem;
    }
    
    .feature-card {
        padding: 1.5rem 0.5rem;
    }
    
    .pricing-card {
        padding: 2rem 1.5rem;
    }
}

/* Utility Classes */
.text-muted {
    color: var(--text-muted) !important;
}

.text-primary {
    color: var(--text-primary) !important;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

.text-accent-primary {
    background: var(--accent-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
}

.bg-light {
    background-color: var(--bg-gray-50) !important;
}

.bg-accent-primary {
    background: var(--accent-gradient) !important;
}

.bg-accent-light {
    background-color: var(--accent-light) !important;
}

.badge.bg-accent-light {
    background-color: var(--accent-light) !important;
    color: var(--accent-primary) !important;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.875rem;
}

.border-light {
    border-color: var(--border-gray-200) !important;
}

.border-accent-primary {
    border-color: var(--accent-primary) !important;
}

/* Metric Cards */
.metric-card {
    background: var(--bg-light-gray);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.metric-card .card-title {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.metric-card .card-text {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Enhanced Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    letter-spacing: -0.01em;
}

.fw-bold {
    font-weight: 700 !important;
}

/* Enhanced Button Animations */
.btn-cta-primary::before,
.pricing-btn-primary::before,
.btn-primary::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.6s;
    z-index: 1;
}

.btn-cta-primary:hover::before,
.pricing-btn-primary:hover::before,
.btn-primary:hover::before {
    left: 100%;
}

/* Gradient Icon Styling - More reliable for production */
.icon-gradient {
    color: var(--accent-primary) !important;
    background: var(--accent-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    /* Fallback for browsers that don't support background-clip */
}

/* Fallback for older browsers */
@supports not (background-clip: text) {
    .icon-gradient {
        color: var(--accent-primary) !important;
        background: none !important;
        -webkit-text-fill-color: var(--accent-primary) !important;
    }
}

/* Progress Bar Gradient Styling */
.progress-bar {
    background: var(--accent-gradient) !important;
    transition: all 0.3s ease;
}

.progress {
    border-radius: 8px;
    background-color: var(--bg-gray-100);
    height: 8px;
    overflow: hidden;
}

/* Card Header Gradient */
.card-header.bg-accent-primary {
    background: var(--accent-gradient) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Enhanced Metric Cards with Subtle Glow and Equal Heights */
.metric-card {
    background: var(--bg-white);
    border: 1px solid var(--border-gray-200);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.metric-card .card-body {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    min-height: 140px;
}

.metric-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 102, 138, 0.1);
}

/* Glossy Header Styling */
.gradient-header {
    background: var(--accent-gradient);
    color: white;
    padding: 1rem 1.25rem;
    border-radius: 12px 12px 0 0;
    position: relative;
    overflow: hidden;
}

.gradient-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

/* Container spacing */
.container {
    max-width: 1200px;
}

/* Force full width for meal recommendations on desktop */
@media (min-width: 768px) {
    .dashboard-meal-recommendations {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    
    /* Additional overrides for meal recommendations */
    .dashboard-meal-recommendations .card {
        width: 100% !important;
    }
    
    /* Force the parent row to span full width */
    .dashboard-meal-recommendations.col-12 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }
}

/* Analyze button with matching header gradient */
#analyze-btn {
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #F95D76 0%, #FA2A55 100%) !important;
    color: white !important;
}

#analyze-btn:disabled {
    background: linear-gradient(135deg, #F95D76 0%, #FA2A55 100%) !important;
    color: white !important;
    opacity: 0.7;
}

#analyze-btn:not(:disabled) {
    background: linear-gradient(135deg, #F95D76 0%, #FA2A55 100%) !important;
    color: white !important;
    opacity: 1;
}

/* Gallery button with pink outline */
label[for="meal_photo_gallery"] {
    border: 2px solid #F95D76 !important;
    color: #F95D76 !important;
    background: white !important;
}

label[for="meal_photo_gallery"]:hover {
    background: #F95D76 !important;
    color: white !important;
}

main.container {
    margin-top: 0 !important;
    padding-top: 0;
    padding-left: 0;
    padding-right: 0;
    max-width: 100%;
}

/* Remove visual layer styles */
#visual-layer,
.floating-camera,
.macro-scanner,
.camera-overlay,
.film-grain,
.section-divider {
    display: none !important;
}

/* Apple Music Inspired Enhancements */

/* Enhanced Hero Section */
.hero-title {
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-primary) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradientShift 6s ease-in-out infinite;
}

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

/* Enhanced Button Animations */
.btn-cta-primary,
.pricing-btn-primary,
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-cta-primary::before,
.pricing-btn-primary::before,
.btn-primary::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.6s;
    pointer-events: none; /* Allow clicks to pass through */
}

.btn-cta-primary:hover::before,
.pricing-btn-primary:hover::before,
.btn-primary:hover::before {
    left: 100%;
}

/* Enhanced Card Hovers */
.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-hover), var(--accent-primary));
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none; /* Allow clicks to pass through */
}

.pricing-card:hover::before {
    opacity: 1;
}

/* Enhanced Typography */
.hero-title {
    letter-spacing: -0.02em;
}

.pricing-title {
    letter-spacing: -0.01em;
}

/* Modern List Styling */
.pricing-features li {
    transition: all 0.2s ease;
}

.pricing-features li:hover {
    color: var(--text-primary);
    transform: translateX(4px);
}

/* Enhanced Navbar */
.navbar-brand {
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

/* Smooth Page Transitions */
* {
    scroll-behavior: smooth;
}

/* Enhanced Form Focus */
.form-control:focus {
    transform: translateY(-1px);
}

/* Modern Loading States */
.btn-cta-primary:active,
.pricing-btn-primary:active,
.btn-primary:active {
    transform: scale(0.98);
}

/* Enhanced Feature Cards */
.feature-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    transform: translateY(-8px);
    background: var(--bg-white);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        inset 0 -1px 0 rgba(0, 0, 0, 0.08),
        0 16px 40px rgba(0, 0, 0, 0.12),
        0 8px 20px rgba(249, 93, 118, 0.15);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Apple Music Style Gradient Accents */
.pricing-card-featured {
    background: linear-gradient(135deg, rgba(255, 102, 138, 0.02) 0%, rgba(250, 42, 85, 0.05) 100%);
    border: 1px solid rgba(255, 102, 138, 0.1);
}

/* Enhanced Text Hierarchy */
h1, h2, h3 {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Modern Link Styles */
a {
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--accent-primary) !important;
}

/* Enhanced Shadows for Depth */
.card:hover,
.pricing-card:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
}

/* Apple Music Style Badge */
.pricing-badge {
    background: var(--accent-gradient);
    box-shadow: 0 4px 12px rgba(249, 93, 118, 0.25);
}

/* Enhanced Mobile Experience */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
        margin-bottom: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .metric-card .card-title {
        font-size: 1.2rem;
    }
    
    /* Mobile Dashboard Adjustments */
    .card-body {
        text-align: center;
    }
    
    .d-flex.justify-content-between {
        flex-direction: column;
        align-items: center !important;
        text-align: center;
    }
    
    .d-flex.justify-content-between h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    /* Daily Goal Tracker Mobile */
    .card-header h3 {
        font-size: 1.1rem;
    }
    
    .card-body h5 {
        font-size: 1rem;
    }
    
    .badge.fs-6 {
        font-size: 0.75rem !important;
    }
    

    
    .btn-cta-primary,
    .btn-primary {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .badge.bg-accent-light {
        font-size: 0.8rem;
        padding: 0.4rem 0.65rem;
    }
    
    .modern-hero {
        padding: 4rem 0;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        justify-content: center;
    }
    
    .hero-cta .btn-cta-primary,
    .hero-cta .btn-cta-secondary {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
    
    .feature-card {
        text-align: center;
    }
    
    .pricing-card {
        margin-bottom: 2rem;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Enhanced Card Styling with Emboss and Drop Shadow */
.card, .recommendation-card {
    background: white !important;
    border: none !important;
    border-radius: 16px !important;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1),
        0 6px 12px rgba(0, 0, 0, 0.15),
        0 3px 6px rgba(0, 0, 0, 0.12) !important;
    transition: all 0.3s ease;
}

.card:hover, .recommendation-card:hover {
    transform: translateY(-2px);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1),
        0 8px 25px rgba(0, 0, 0, 0.15),
        0 4px 12px rgba(0, 0, 0, 0.12) !important;
}

/* Only colored icons get red/pink outer glow - black icons get no glow */
.text-primary .fas, .text-primary .far, .text-primary .fab, .text-primary .fa,
.text-accent-primary .fas, .text-accent-primary .far, .text-accent-primary .fab, .text-accent-primary .fa,
.icon-gradient.fas, .icon-gradient.far, .icon-gradient.fab, .icon-gradient.fa {
    filter: drop-shadow(0 0 3px rgba(249, 93, 118, 0.6)) !important;
}

/* Remove glow from black/default colored icons */
.fas, .far, .fab, .fa {
    filter: none !important;
}

/* SnapMac Button White Text */
.btn-snapmac {
    color: white !important;
}

/* Enhanced icon glow for gradients */
.icon-gradient {
    filter: drop-shadow(0 0 4px rgba(249, 93, 118, 0.6)) !important;
}

/* Additional fallback for feature icons to ensure they always show */
.feature-icon i {
    color: #F95D76 !important;
    display: inline-block !important;
    font-size: 3rem !important;
    text-decoration: none !important;
}

/* Override any possible font-awesome issues */
.fas, .far, .fab, .fa {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "FontAwesome" !important;
    font-weight: 900 !important;
    display: inline-block !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    line-height: 1 !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

/* Ensure all icons are visible and styled */
i.fas, i.far, i.fab, i.fa {
    color: inherit !important;
    font-size: inherit !important;
    vertical-align: baseline !important;
}