/* ===== CSS Variables ===== */
:root {
    --primary-color: #4a6fa5;
    --secondary-color: #ff6b35;
    --accent-color: #6b48ff;
    --dark-color: #1a1a2e;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --border-radius: 12px;
    --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* ===== Font Display Optimization for PageSpeed ===== */
@font-face {
    font-family: 'Font Awesome 6 Brands';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/webfonts/fa-brands-400.woff2") format("woff2"),
        url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/webfonts/fa-brands-400.ttf") format("truetype");
}

@font-face {
    font-family: 'Font Awesome 6 Free';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/webfonts/fa-regular-400.woff2") format("woff2"),
        url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/webfonts/fa-regular-400.ttf") format("truetype");
}

@font-face {
    font-family: 'Font Awesome 6 Free';
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/webfonts/fa-solid-900.woff2") format("woff2"),
        url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/webfonts/fa-solid-900.ttf") format("truetype");
}

/* ===== Dark Mode Variables ===== */
.dark-mode {
    --primary-color: #667eea;
    --secondary-color: #ff9d35;
    --accent-color: #9b51e0;
    --dark-color: #e2e8f0;
    --light-color: #1a202c;
    --gray-color: #a0aec0;
    --success-color: #48bb78;
    --warning-color: #ed8936;
    --danger-color: #f56565;
    --info-color: #4299e1;
    background-color: #0f1419;
    color: #e2e8f0;
}

/* ===== Dark Mode Font and Icon Colors ===== */
.dark-mode h1,
.dark-mode h2,
.dark-mode h3,
.dark-mode h4,
.dark-mode h5,
.dark-mode h6 {
    color: #e2e8f0;
}

.dark-mode p {
    color: #cbd5e0;
}

.dark-mode a {
    color: #90cdf4;
}

.dark-mode a:hover {
    color: #63b3ed;
}

.dark-mode i,
.dark-mode .icon {
    color: #ffffff;
}

.dark-mode .material-icons,
.dark-mode .far,
.dark-mode .fab {
    color: #ffffff;
}

.dark-mode .nav-link i,
.dark-mode .dropdown-toggle i,
.dark-mode .footer-links i {
    color: inherit;
}

/* Dark mode text color utilities */
.dark-mode .text-dark {
    color: #e2e8f0 !important;
}

.dark-mode .text-gray {
    color: #a0aec0 !important;
}

.dark-mode .text-light {
    color: #cbd5e0 !important;
}

/* Dark mode icon color utilities */
.dark-mode .icon-primary {
    color: #90cdf4 !important;
}

.dark-mode .icon-secondary {
    color: #fbb6ce !important;
}

.dark-mode .icon-accent {
    color: #b794f4 !important;
}

/* Remove confetti canvas styles */
#confetti-canvas {
    display: none !important;
}

/* ===== Dark Mode Specific Adjustments ===== */
.dark-mode .glass-header {
    background: rgba(26, 32, 44, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-mode .logo-tag {
    color: #a0aec0;
}

.dark-mode .nav-link {
    color: #cbd5e0;
}

.dark-mode .nav-link:hover {
    color: #fff;
    background: rgba(102, 126, 234, 0.2);
}

.dark-mode .dropdown-toggle {
    color: #cbd5e0;
}

.dark-mode .dropdown-toggle:hover {
    color: #fff;
    background: rgba(102, 126, 234, 0.2);
}

.dark-mode .dropdown-menu {
    background: rgba(26, 32, 44, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-mode .dropdown-item {
    color: #cbd5e0;
}

.dark-mode .dropdown-item:hover {
    background: rgba(102, 126, 234, 0.2);
    color: #fff;
}

.dark-mode footer {
    background: linear-gradient(135deg, #0f1419 0%, #1a202c 100%);
}

.dark-mode .footer-links a {
    color: #a0aec0;
}

.dark-mode .footer-links a:hover {
    color: #667eea;
}

.dark-mode .social-links a:hover {
    background: var(--secondary-color);
}

.dark-mode .time-indicator {
    background: rgba(26, 32, 44, 0.9);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Additional dark mode adjustments for components */
.dark-mode .card,
.dark-mode .modal-content,
.dark-mode .glass-effect {
    background: rgba(26, 32, 44, 0.9);
    color: #e2e8f0;
}

.dark-mode .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.dark-mode .btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.dark-mode .btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.dark-mode .btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Table adjustments for dark mode */
.dark-mode table {
    color: #e2e8f0;
}

.dark-mode thead {
    background-color: rgba(66, 153, 225, 0.1);
}

.dark-mode tbody tr {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.dark-mode tbody tr:hover {
    background-color: rgba(66, 153, 225, 0.05);
}

/* Form elements in dark mode */
.dark-mode input,
.dark-mode textarea,
.dark-mode select {
    background-color: #2d3748;
    color: #e2e8f0;
    border-color: #4a5568;
}

.dark-mode input:focus,
.dark-mode textarea:focus,
.dark-mode select:focus {
    border-color: var(--primary-color);
    background-color: #2d3748;
    color: #e2e8f0;
}

.dark-mode input::placeholder,
.dark-mode textarea::placeholder {
    color: #a0aec0;
}

/* Alert and notification adjustments */
.dark-mode .alert {
    background-color: rgba(45, 55, 72, 0.9);
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .toast {
    background: #2d3748;
    color: #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', Open Sans, sans-serif;
    line-height: 1.2;
    color: #333;
    background-color: #f5f7fa;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', Open Sans, sans-serif;
    font-weight: 600;
    line-height: 1.3;
    /*margin-bottom: 1rem;*/
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Loading Screen ===== */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--light-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Enhanced Header Styles */
.glass-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.dark-mode .glass-header {
    background: rgba(26, 32, 44, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-header nav.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Logo Styles */
.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    gap: 12px;
    transition: transform 0.3s ease;
}

.logo a:hover {
    transform: translateY(-2px);
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-tag {
    font-size: 0.9rem;
    color: #718096;
    font-weight: 500;
}

.dark-mode .logo-tag {
    color: #a0aec0;
}

/* Nav Right Area */
.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

/* Navigation Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.nav-link:hover::before {
    width: 100%;
}

.nav-link:hover {
    color: #2d3748;
    background: rgba(102, 126, 234, 0.1);
}

.dark-mode .nav-link {
    color: #cbd5e0;
}

.dark-mode .nav-link:hover {
    color: #fff;
    background: rgba(102, 126, 234, 0.2);
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 1rem;
    background: none;
    border: none;
    color: var(--dark-color);
    font-weight: 500;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: inherit;
}

.dropdown-toggle:hover {
    color: #2d3748;
    background: rgba(102, 126, 234, 0.1);
}

.dark-mode .dropdown-toggle {
    color: #cbd5e0;
}

.dark-mode .dropdown-toggle:hover {
    color: #fff;
    background: rgba(102, 126, 234, 0.2);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
    min-width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.dark-mode .dropdown-menu {
    background: rgba(26, 32, 44, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: #4a5568;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.dark-mode .dropdown-item {
    color: #cbd5e0;
}

.dark-mode .dropdown-item:hover {
    background: rgba(102, 126, 234, 0.2);
    color: #fff;
}

.dropdown-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.3), transparent);
    margin: 0.5rem 0;
}

/* Theme Toggle */
.theme-toggle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    position: relative;
    z-index: 10;
}

.theme-toggle:hover {
    transform: rotate(30deg) scale(1.1);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.next-step {
    margin-top: 28px;
    padding-top: 12px;
    text-align: center;
    font-size: 1.3rem;
    color: #555;
}

.next-step a {
    color: var(--accent-color);
    font-weight: 600;
}

.next-step a:hover {
    text-decoration: underline;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.mobile-menu-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .glass-header nav.container {
        padding: 1rem;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        flex-direction: column;
        background: white;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 70px);
        padding: 2rem;
        transition: right 0.3s ease;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .dark-mode .nav-links {
        background: rgba(26, 32, 44, 0.95);
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: transparent;
        padding-left: 1rem;
        margin-top: 0.5rem;
    }

    .dark-mode .dropdown-menu {
        background: transparent;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .header-actions {
        display: flex !important;
        flex-direction: row !important;
        gap: 12px !important;
        align-items: center !important;
    }

    .theme-toggle,
    .mobile-menu-btn {
        width: 36px;
        height: 36px;
        min-width: 36px;
        font-size: 0.85rem;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    .nav-link,
    .dropdown-toggle {
        width: 100%;
        justify-content: flex-start;
    }

    .logo-name {
        font-size: 1.1rem;
    }

    .logo-tag {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .glass-header nav.container {
        padding: 0.75rem 1rem;
    }

    .logo-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .logo-name {
        font-size: 1rem;
    }
}

/* Header End */

/* Footer Styles */
footer {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    color: white;
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.dark-mode footer {
    background: linear-gradient(135deg, #0f1419 0%, #1a202c 100%);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section h4 {
    color: #cbd5e0;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: #667eea;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* Focus styles for accessibility */
.nav-link:focus,
.dropdown-toggle:focus,
.theme-toggle:focus,
.mobile-menu-btn:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Footer End */

/* ===== Back to Top Button ===== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

/* ===== Toast Notifications ===== */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    position: relative;
    bottom: auto;
    right: auto;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
    pointer-events: auto;
    max-width: 350px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.success {
    border-left: 4px solid var(--success-color);
}

/* ===== Amazon Disclosure Sticker ===== */
.amazon-disclosure-sticker {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #232f3e;
    color: white;
    padding: 12px;
    border-radius: 8px;
    font-size: 11px;
    max-width: 280px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 9998;
    animation: slideUp 0.5s ease;
    display: none;
}

.amazon-disclosure-sticker .close-btn {
    position: absolute;
    top: 5px;
    right: 8px;
    background: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    border: none;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Stars Animation 
.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s infinite;
}

/* @keyframes twinkle {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }
} */




/* Time Indicator */
.time-indicator {
    position: fixed !important;
    top: 90px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1001;
    /* Higher than header (1000) */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
    animation: slideInRight 0.8s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.time-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.time-indicator.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    pointer-events: none;
}

/* Mobile adjustments for time indicator */
@media (max-width: 768px) {
    .time-indicator {
        top: 80px;
        right: 15px;
        padding: 8px 15px;
        font-size: 0.9rem;
        backdrop-filter: blur(8px);
    }

    .time-icon {
        width: 32px;
        height: 32px;
    }
}

/* ===== Responsive Design ===== */
/* Consolidated header styles moved earlier or handled via .nav-right / .header-actions */

.social-links {
    justify-content: center;
}


@media (max-width: 480px) {
    .logo-text {
        font-size: 1.1rem;
    }
}

/* Contextual Tips & Product Recommendations */
.contextual-content {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #3498db;
}

.contextual-tips {
    margin-bottom: 25px;
}

.contextual-tips h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2c3e50;
    margin-bottom: 15px;
}

.tip-icon {
    font-size: 24px;
}

.tips-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tip-item {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tip-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.tip-title-icon {
    font-size: 20px;
}

.tip-content {
    /*color: #666;*/
    line-height: 1.6;
}

.product-recommendations {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #e0e0e0;
}

.product-recommendations h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2c3e50;
    margin-bottom: 20px;
}

.recommendation-badge {
    background: #3498db;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.product-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.product-icon {
    font-size: 24px;
}

.product-header h5 {
    flex: 1;
    margin: 0;
    color: #2c3e50;
}

.product-category {
    background: #ecf0f1;
    color: #7f8c8d;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.product-body p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.product-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.product-price {
    font-weight: bold;
    /*color: #2c3e50;*/
}

.product-commission {
    background: #2ecc71;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.product-footer {
    display: flex;
    gap: 10px;
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-outline {
    background: transparent;
    border: 1px solid #3498db;
    color: #3498db;
}

.btn-outline:hover {
    background: #3498db;
    color: white;
}

/* Product Links in Text */
.product-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px dotted #3498db;
    transition: all 0.3s ease;
}

.product-link:hover {
    color: #2980b9;
    border-bottom: 1px solid #2980b9;
}

/* Quick View Modal */
.quickview-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 20px;
}

.product-quickview {
    background: white;
    border-radius: 10px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.quickview-header {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
    border-radius: 10px 10px 0 0;
}

.quickview-icon {
    font-size: 24px;
    margin-right: 10px;
}

.quickview-header h4 {
    flex: 1;
    margin: 0;
    color: #2c3e50;
}

.quickview-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #95a5a6;
    line-height: 1;
}

.quickview-close:hover {
    color: #e74c3c;
}

.quickview-body {
    padding: 20px;
}

.quickview-body p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.quickview-details {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.detail-label {
    color: #7f8c8d;
}

.detail-value {
    color: #2c3e50;
    font-weight: 600;
}

.commission-highlight {
    color: #2ecc71;
}

.quickview-footer {
    display: flex;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid #eee;
    background: #f8f9fa;
    border-radius: 0 0 10px 10px;
}

/* Calculator Tip */
.calculator-tip,
.dashboard-tip {
    margin-top: 20px;
    padding: 15px;
    background: #fff8e1;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
}

.calculator-tip p,
.dashboard-tip p {
    margin: 0;
    color: #5d4037;
}

/* Home Tips */
.home-tips {
    margin-top: 40px;
    padding: 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
}

.home-tips h4 {
    color: white;
}

.home-tips p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    line-height: 1.6;
}

.home-tips .product-link {
    color: #ffeb3b;
    border-bottom-color: #ffeb3b;
}

.home-tips .product-link:hover {
    color: #fff;
    border-bottom-color: #fff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .contextual-content {
        margin: 20px 0;
        padding: 15px;
    }

    .quickview-modal {
        padding: 10px;
    }

    .product-quickview {
        max-height: 95vh;
    }
}

/* Animation for contextual content */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contextual-content {
    animation: slideInUp 0.5s ease;
}

/* Result animation */
.result-box {
    margin-top: 20px;
    padding: 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f0f7ff, #ffffff);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    animation: fadeSlideIn 0.4s ease-out;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.next-step {
    margin-top: 12px;
    font-size: 0.95rem;
    color: #555;
}

.next-step a {
    color: #0066cc;
    font-weight: 500;
}

.next-step a:hover {
    text-decoration: underline;
}


button:active {
    transform: scale(0.98);
}

button:focus-visible {
    outline: 3px solid rgba(0, 102, 204, 0.4);
    outline-offset: 2px;
}

.intro-text {
    font-size: 1.05rem;
    /*color: #444;*/
    margin-bottom: 20px;
}