/* ============================================
   HAPPY FAT LOSS - MAIN STYLESHEET
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #FF671F;
    --primary-rgb: 255, 103, 31;
    /* Saffron - Energetic & Culturally Significant */
    --secondary-color: #00695C;
    --secondary-rgb: 0, 105, 92;
    /* Deep Teal - Professional & Balancing */
    --accent-color: #FFD700;
    /* Gold - Highlights */
    --dark-text: #333333;
    /* Soft Black */
    --light-text: #F5F5F5;
    --background: #FFFAF0;
    /* Floral White/Cream - Warm Base */
    --white: #FFFFFF;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --text-color: #333333;
    --bg-color: #FFFAF0;
    --card-bg: #FFFFFF;
    --border-color: #E0E0E0;
}

/* Dark Mode Colors - HIGH CONTRAST */
body.dark-mode {
    --text-color: #FFFFFF;
    /* Pure White */
    --bg-color: #121212;
    /* Deep Dark */
    --card-bg: #1E1E1E;
    /* Dark Gray */
    --border-color: #404040;
    --white: #1E1E1E;
    --background: #121212;
    --dark-text: #FFFFFF;
    /* Force White */
    --light-text: #E0E0E0;
}

/* Force Input Text Color in Dark Mode */
body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea,
body.dark-mode .price-display,
body.dark-mode .result-value,
body.dark-mode .condition-value,
body.dark-mode option {
    color: #FFFFFF !important;
    background-color: #333 !important;
    /* Ensure background contrasts with white text */
}

/* Placeholder brightness */
body.dark-mode ::placeholder {
    color: #BBBBBB;
    opacity: 1;
}

/* Password Toggle Icon */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    width: 100%;
}

.password-toggle {
    position: absolute;
    right: 15px;
    cursor: pointer;
    color: #888;
    z-index: 10;
}

body.dark-mode .password-toggle {
    color: #ddd;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    transition: var(--transition);
}

/* Currency/Price Specific Font */
.price-tag,
.current-price,
.glass-panel td,
.result-value {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /* Ensuring standard sans-serif, not a fancy decorative font */
}

/* Ensure global override if needed */
.glass-panel td:nth-child(2),
.glass-panel td:nth-child(4) {
    font-variant-numeric: tabular-nums;
    /* Better number alignment */
}

/* ============================================
   NAVIGATION BAR
   ============================================ */

.navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0.5rem 0;
    /* Reduced vertical padding */
    transition: var(--transition);
}

body.dark-mode .navbar {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
    /* Ensure it takes width but respects max-width */
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    /* Reduced side padding */
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    /* Tighter logo gap */
}

/* Logo Section Updates for Strict Alignment */
.logo-container a {
    display: flex;
    align-items: center;
    height: 100%;
    text-decoration: none;
}

.logo {
    height: 40px;
    /* Smaller logo */
    width: auto;
    cursor: pointer;
    transition: var(--transition);
    display: block;
}

/* Brand Name Alignment */
.brand-name {
    font-size: 1.3rem;
    /* Smaller brand name */
    font-weight: bold;
    color: var(--primary-color);
    transition: var(--transition);
    line-height: 1;
    display: flex;
    align-items: center;
}

body.dark-mode .brand-name {
    color: #ffffff;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.8rem;
    /* Much tighter gap */
    flex-wrap: nowrap;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
    font-size: 0.9rem;
    /* Smaller font */
}

body.dark-mode .nav-link {
    color: #e0e0e0;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1100;
    /* Ensure it is above other elements */
    padding: 5px;
    /* Increase hit area */
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--dark-text);
    transition: var(--transition);
}

body.dark-mode .hamburger span {
    background-color: var(--text-color);
}

/* Dark Mode Toggle Button */
.dark-mode-btn {
    background: none;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 1rem;
}

.dark-mode-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}

body.dark-mode .dark-mode-btn {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

body.dark-mode .dark-mode-btn:hover {
    background: var(--secondary-color);
    color: var(--card-bg);
}

/* Icon visibility for dark mode toggle */
.dark-mode-btn .moon-icon {
    display: none;
}

.dark-mode-btn .sun-icon {
    display: block;
}

body.dark-mode .dark-mode-btn .sun-icon {
    display: none;
}

body.dark-mode .dark-mode-btn .moon-icon {
    display: block;
}

/* ============================================
   MAIN CONTAINER & PAGES
   ============================================ */

.main-container {
    max-width: 1200px;
    margin: 0 auto;
    /* min-height: calc(100vh - 150px); Removed to allow shrinking to content */
    min-height: auto;
    padding-bottom: 2rem;
}

.page {
    display: none;
    padding: 2rem 1rem;
    /* Reduced from 4rem 2rem */
    padding-top: 20px;
    /* Reduced to remove gap since navbar is sticky, not fixed */
    animation: fadeIn 0.5s ease-in;
}

#results-section {
    display: none;
    /* Hidden by default */
    animation: fadeIn 0.5s ease-in-out;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contact Page Specific - Center Alignment */
/* Contact Page Specific - Center Alignment */
#contact {
    /* Base styles - NO display:flex here to prevent visibility override */
    padding: 2rem 1rem;
    padding-top: 100px;
    /* Keep navbar clearance */
    text-align: center;
}

/* Only apply Flexbox Centering when ACTIVATE */
#contact.active {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: auto;
    /* Changed from 85vh */
    padding-bottom: 3rem;
}

#contact .content-section {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    /* Ensure horizontal centering */
}

/* Media Page Specific */
#media {
    padding-top: 100px;
}

.media-centered {
    text-align: center;
    min-height: auto;
    /* Changed from 50vh */
    display: flex;
    /* Kept for centering logic if needed, or can be removed if strictly flow layout is desired */
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* ============================================
   HOME PAGE / HERO
   ============================================ */

/* ============================================
   HOME PAGE / HERO
   ============================================ */

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

body.dark-mode .hero {
    background: transparent;
}

.hero-content h1 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

body.dark-mode .hero-content h1 {
    color: #ffffff;
}

.hero-content p {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

body.dark-mode .hero-content p {
    color: #b0b0b0;
}

/* Hero Image - Transparent Background */
.hero-image-container {
    position: relative;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.hero-image {
    width: 100%;
    max-width: 500px;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
    cursor: pointer;
    background: transparent;
}

.hero-image:hover {
    opacity: 0.9;
}

/* Remove any wrapper boxes */
.hero-image-container::before,
.hero-image-container::after {
    display: none;
}

/* ============================================
   CALL TO ACTION BUTTONS
   ============================================ */

.cta-button {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 107, 107, 0.3);
}

.cta-button:active {
    transform: translateY(0);
}

body.dark-mode .cta-button {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}


/* ============================================
   EXPLORE / QUICK LINKS SECTION
   ============================================ */

.explore-section {
    margin-bottom: 4rem;
    padding: 0 1rem;
}

.explore-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
    justify-items: center;
}

.explore-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    max-width: 160px;
}

.explore-item:hover {
    transform: translateY(-5px);
}

.explore-icon-container {
    background: var(--white);
    width: clamp(45px, 13vw, 85px);
    height: clamp(45px, 13vw, 85px);
    border-radius: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow);
    margin-bottom: 0.8rem;
    transition: var(--transition);
    overflow: hidden;
    padding: 15px;
}

body.dark-mode .explore-icon-container {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

.explore-item:hover .explore-icon-container {
    box-shadow: 0 8px 15px rgba(255, 103, 31, 0.2);
    border: 2px solid var(--primary-color);
}

.explore-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.explore-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-text);
    text-align: center;
    transition: var(--transition);
}

body.dark-mode .explore-label {
    color: var(--text-color);
}

.explore-item:hover .explore-label {
    color: var(--primary-color);
}

/* Response adjustment for smaller screens */
@media (max-width: 768px) {
    .explore-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
    }

    .explore-icon-container {
        /* Width & Height handled by clamp() in base style */
        padding: 8px;
        border-radius: 20px;
    }

    .explore-label {
        font-size: 0.75rem;
    }
}

/* ============================================
   CONTACT PAGE - GRID LAYOUT
   ============================================ */
.contact-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .contact-grid-layout {
        grid-template-columns: 1fr;
    }
}

.input-premium {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.8);
    font-family: 'Poppins', sans-serif;
    color: var(--dark-text);
    transition: all 0.3s ease;
}

body.dark-mode .input-premium {
    background: #333;
    color: #fff;
    border-color: #555;
}


/* ============================================
   FEATURES SECTION
   ============================================ */
.features {
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(230, 92, 27, 0.3);
    text-align: center;
    letter-spacing: 0.5px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 92, 27, 0.4);
    background: linear-gradient(135deg, #e67e22 0%, var(--primary-color) 100%);
}

.btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(230, 92, 27, 0.2);
}

/* Card Enhancements */
.feature-card {
    background: var(--white);
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    /* Softer shadow */
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    /* Bouncy effect */
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    height: 100%;
}

body.dark-mode .feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    color: #e0e0e0;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(230, 92, 27, 0.1);
}

.feature-card h3 {
    font-size: 1.3rem;
}

body.dark-mode .feature-card h3 {
    color: #ffffff;
}

body.dark-mode .feature-card p {
    color: #b0b0b0;
}

/* ============================================
   CONTENT SECTIONS
   ============================================ */

.content-section {
    background: var(--white);
    padding: 3.5rem;
    /* More breathing room */
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.03);
    /* Subtle border for definition */
}

body.dark-mode .content-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

.content-section h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

body.dark-mode .content-section h2 {
    color: #ffffff;
}

/* ============================================
   STORY PAGE
   ============================================ */

.story-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.story-image-container {
    position: relative;
}

.story-image {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    cursor: pointer;
}

.story-image:hover {
    opacity: 0.9;
}

.story-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

body.dark-mode .story-text p {
    color: #ffffff;
    /* Brighter */
}

/* ============================================
   POSSIBILITIES PAGE
   ============================================ */

.possibilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.possibilitie.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 3rem;
    /* Further increased gap */
    margin: 30px 0;
}

.possibility-card {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.05), rgba(var(--secondary-rgb), 0.05));
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

body.dark-mode .possibility-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

.possibility-card:hover {
    transform: translateY(-5px);
}

.card-image-container {
    position: relative;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Correctly identifying this rule now */
    transition: transform 0.5s ease;
    padding: 10px;
    /* Add breathing room */
}

.card-image:hover {
    opacity: 0.9;
}

.possibility-card h3 {
    color: var(--primary-color);
    padding: 1.5rem 1.5rem 0.5rem;
    font-size: 1.2rem;
}

body.dark-mode .possibility-card h3 {
    color: #ffffff;
}

.possibility-card p {
    padding: 0 1.5rem 1.5rem;
}

body.dark-mode .possibility-card p {
    color: #b0b0b0;
}

/* ============================================
   COURSE PAGE
   ============================================ */

.course-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 2rem;
}

.course-info h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

body.dark-mode .course-info h3 {
    color: #ffffff;
}

.course-features {
    list-style: none;
    margin: 2rem 0;
}

.course-features li {
    padding: 0.8rem 0;
    font-size: 1.1rem;
    color: var(--secondary-color);
    font-weight: 500;
}

body.dark-mode .course-features li {
    color: #b0b0b0;
}

.course-image-container {
    position: relative;
}

.course-image {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    cursor: pointer;
}

.course-image:hover {
    opacity: 0.9;
}

/* ============================================
   PRICING
   ============================================ */

.course-pricing,
.book-pricing {
    margin-top: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    text-align: center;
}

.price {
    display: block;
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 1rem;
    font-weight: bold;
}

body.dark-mode .price {
    color: #ffffff;
}

.course-pricing .cta-button,
.book-pricing .cta-button {
    background: var(--white);
    color: var(--primary-color);
    margin-top: 1rem;
}

body.dark-mode .course-pricing .cta-button,
body.dark-mode .book-pricing .cta-button {
    background: #ffffff;
    color: var(--primary-color);
}

/* ============================================
   BOOK PAGE
   ============================================ */

.book-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 2rem;
}

.book-cover-container {
    position: relative;
    display: flex;
    justify-content: center;
    /* centers the image inside this container */
    align-items: center;
}

.book-cover {
    width: 150%;
    /* 150% of its container width */
    max-width: 1200px;
    /* but limits to 1200px max */
    cursor: pointer;
}


.book-info h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

body.dark-mode .book-info h3 {
    color: #ffffff;
}

.book-author {
    color: var(--secondary-color);
    font-style: italic;
    margin-bottom: 1.5rem;
}

body.dark-mode .book-author {
    color: var(--secondary-color);
}

.book-details {
    background: var(--background);
    padding: 1.5rem;
    border-radius: 5px;
    margin: 1.5rem 0;
}

body.dark-mode .book-details {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid var(--border-color);
}

.book-details p {
    margin: 0.5rem 0;
}

body.dark-mode .book-details p {
    color: #b0b0b0;
}

/* ============================================
   CALCULATORS PAGE
   ============================================ */

.calculator-intro {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #666;
}

body.dark-mode .calculator-intro {
    color: #b0b0b0;
}

.calculator-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.input-section {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.05), rgba(var(--secondary-rgb), 0.05));
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

body.dark-mode .input-section {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(78, 205, 196, 0.1));
    border-left-color: var(--secondary-color);
}

.input-section h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

body.dark-mode .input-section h3 {
    color: #ffffff;
}

.input-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
    margin-bottom: 1.5rem;
}

/* Ensure single column on mobile */
@media (max-width: 600px) {
    .input-grid {
        grid-template-columns: 1fr;
    }
}

.input-group {
    position: relative;
    /* For absolute positioning of toggle */
    display: flex;
    flex-direction: column;
}

.label-with-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    /* Gap for the container */
    height: 1.2rem;
    position: relative;
    /* Context for toggle if needed, though toggle is abs to input-group */
}

.label-with-toggle label {
    margin-bottom: 0 !important;
    /* Remove double margin for nested label */
    padding: 0;
}

/* Make toggle float right without taking layout space */
.unit-toggle {
    display: flex;
    background: #e0e0e0;
    border-radius: 20px;
    padding: 2px;
    position: absolute;
    top: 0;
    right: 0;
}

.unit-toggle input[type="radio"] {
    display: none;
}

.unit-toggle label {
    padding: 1px 8px;
    /* Smaller padding */
    cursor: pointer;
    border-radius: 20px;
    transition: var(--transition);
    font-size: 0.85rem;
    font-weight: bold;
    color: #888;
}

/* Specific overwrite for HRT toggle to be inline */
.hrt-toggle {
    position: relative !important;
    /* Changed from static to relative for better control */
    top: auto !important;
    right: auto !important;
    background: transparent !important;
    margin-top: 5px;
    display: inline-flex;
}

.hrt-toggle label {
    background: #e0e0e0;
    /* Give buttons background since container is transparent */
}

.hrt-toggle input:checked+label {
    background-color: var(--primary-color) !important;
}

.unit-toggle input[type="radio"]:checked+label {
    background: var(--primary-color);
    color: white !important;
}

.ft-in-group {
    display: flex;
    gap: 0.5rem;
}

.input-section {
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9));
    background-size: cover;
    background-position: center;
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow);
}

body.dark-mode .input-section {
    background: linear-gradient(rgba(45, 45, 45, 0.95), rgba(45, 45, 45, 0.95));
    background-size: cover;
    border-left-color: var(--secondary-color);
}

.input-group label {
    font-weight: bold;
    color: var(--dark-text);
    margin-bottom: 0.8rem;
    /* Increased gap between title and box */
}

body.dark-mode .input-group label {
    color: var(--text-color);
}

.input-group input,
.input-group select {
    padding: 0.8rem;
    border: 2px solid var(--secondary-color);
    border-radius: 5px;
    font-size: 1rem;
    transition: var(--transition);
    width: 100%;
}

body.dark-mode .input-group input,
body.dark-mode .input-group select {
    background: var(--card-bg);
    color: var(--text-color);
    border-color: var(--border-color);
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(255, 107, 107, 0.2);
}

.calc-button {
    background: var(--secondary-color);
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.calc-button:hover {
    background: #45b5ad;
    transform: translateY(-2px);
}

body.dark-mode .calc-button {
    color: #ffffff;
}

.results-section {
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.05), rgba(255, 107, 107, 0.05));
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid var(--secondary-color);
}

body.dark-mode .results-section {
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.1), rgba(255, 107, 107, 0.1));
}

.results-section h3 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

body.dark-mode .results-section h3 {
    color: #ffffff;
}

.result-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.result-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--primary-color);
}

body.dark-mode .result-card {
    background: var(--card-bg);
    border-top-color: var(--secondary-color);
    border: 1px solid var(--border-color);
}

.result-card h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

body.dark-mode .result-card h4 {
    color: #ffffff;
}

.result-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin: 0.5rem 0;
}

.result-unit {
    color: #999;
    font-size: 0.9rem;
}

body.dark-mode .result-unit {
    color: #AAA;
}

.result-category {
    font-size: 1rem;
    font-weight: bold;
    margin-top: 0.5rem;
}

.tdee-conditions {
    margin-top: 2.5rem;
    padding: 1.5rem;
    background: rgba(255, 107, 107, 0.05);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

body.dark-mode .tdee-conditions {
    background: rgba(255, 107, 107, 0.1);
}

.tdee-conditions:last-of-type {
    background: rgba(78, 205, 196, 0.05);
    border-left-color: var(--secondary-color);
}

body.dark-mode .tdee-conditions:last-of-type {
    background: rgba(78, 205, 196, 0.1);
}

.tdee-conditions h4 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

body.dark-mode .tdee-conditions h4 {
    color: #ffffff;
}

.tdee-conditions:last-of-type h4 {
    color: var(--secondary-color);
}

body.dark-mode .tdee-conditions:last-of-type h4 {
    color: #ffffff;
}

.conditions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.condition-box {
    background: var(--white);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow);
}

body.dark-mode .condition-box {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

.condition-box h5 {
    color: var(--dark-text);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

body.dark-mode .condition-box h5 {
    color: var(--text-color);
}

.condition-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* ============================================
   EQUATION NOTE STYLING
   ============================================ */

.equation-note {
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.1), rgba(255, 230, 109, 0.1));
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
    margin: 2rem 0;
}

body.dark-mode .equation-note {
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.15), rgba(255, 230, 109, 0.15));
}

.equation-note strong {
    color: var(--primary-color);
}

body.dark-mode .equation-note strong {
    color: #ffffff;
}

.equation-note p {
    margin: 0.8rem 0;
    line-height: 1.6;
    color: var(--dark-text);
}

body.dark-mode .equation-note p {
    color: #b0b0b0;
}

.equation-note .recommendation {
    background: rgba(255, 107, 107, 0.1);
    padding: 1rem;
    border-radius: 5px;
    border-left: 3px solid var(--primary-color);
    font-size: 1.05rem;
    margin-top: 1rem;
}

body.dark-mode .equation-note .recommendation {
    background: rgba(255, 107, 107, 0.15);
}

/* ============================================
   END OF FILE
   ============================================ */

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.video-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

body.dark-mode .video-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.video-card iframe {
    display: block;
    width: 100%;
}

.video-card h3 {
    color: var(--primary-color);
    padding: 1rem 1.5rem 0.5rem;
}

body.dark-mode .video-card h3 {
    color: #ffffff;
}

.video-card p {
    padding: 0 1.5rem 1.5rem;
    color: #666;
}

body.dark-mode .video-card p {
    color: #b0b0b0;
}

.add-video {
    background: var(--accent-color);
    padding: 1.5rem;
    border-radius: 5px;
    margin-top: 2rem;
    text-align: center;
}

/* ============================================
   BLOGS PAGE
   ============================================ */

.blogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.blog-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

body.dark-mode .blog-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 1.5rem;
}

.blog-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

body.dark-mode .blog-card h3 {
    color: #ffffff;
}

.blog-card p {
    color: #666;
    margin-bottom: 1rem;
}

body.dark-mode .blog-card p {
    color: #b0b0b0;
}

.read-more {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--primary-color);
}

/* ============================================
   CONTACT PAGE
   ============================================ */

.contact-intro {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #666;
}

body.dark-mode .contact-intro {
    color: #b0b0b0;
}

.contact-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--dark-text);
}

body.dark-mode .form-group label {
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.8rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

body.dark-mode .form-group input,
body.dark-mode .form-group select,
body.dark-mode .form-group textarea {
    background: var(--card-bg);
    color: var(--text-color);
    border-color: var(--border-color);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(255, 107, 107, 0.2);
}

.contact-container {
    display: flex;
    justify-content: center;
    align-items: center;
    /* Vertical alignment if needed */
    width: 100%;
    margin-top: 2rem;
}

.contact-info {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(78, 205, 196, 0.1));
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    /* Explicitly center text */
    box-shadow: var(--shadow);
    max-width: 500px;
    /* Constrain width to make it a nice card */
    margin: 2rem auto;
    /* Center the card horizontally */
}

body.dark-mode .contact-info {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.15), rgba(78, 205, 196, 0.15));
    border: 1px solid var(--border-color);
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

body.dark-mode .contact-info h3 {
    color: #ffffff;
}

.contact-info p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

body.dark-mode .contact-info p {
    color: #b0b0b0;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icon {
    display: inline-block;
    padding: 0.8rem;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    transition: var(--transition);
    text-align: center;
}

.social-icon:hover {
    background: var(--secondary-color);
    transform: translateX(5px);
}

body.dark-mode .social-icon {
    color: #ffffff;
}

/* ============================================
   FOOTER - FIXED AND INTEGRATED
   ============================================ */

.footer {
    background: var(--dark-text);
    color: var(--light-text);
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

body.dark-mode .footer {
    background: var(--card-bg);
    color: #e0e0e0;
    border-top: 1px solid var(--border-color);
}

.footer-content p {
    margin: 0.5rem 0;
}

body.dark-mode .footer-content p {
    color: #b0b0b0;
}

.footer a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

.footer a:hover {
    color: var(--primary-color);
}

/* ============================================
   MODAL
   ============================================ */

.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: var(--white);
    margin: 10% auto;
    padding: 2rem;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: 10px;
}

body.dark-mode .modal-content {
    background-color: var(--card-bg);
    border-color: var(--border-color);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: var(--primary-color);
}

.modal-content h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

body.dark-mode .modal-content h2 {
    color: #ffffff;
}

.modal-content input[type="file"] {
    display: block;
    margin: 1rem 0;
    padding: 0.8rem;
    border: 2px solid var(--secondary-color);
    border-radius: 5px;
}

body.dark-mode .modal-content input[type="file"] {
    background: var(--card-bg);
    color: var(--text-color);
    border-color: var(--border-color);
}

.modal-content button {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
}

.modal-content button:hover {
    background: #FF5252;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .nav-menu {
        display: flex;
        /* Always flex layout, just hidden */
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        padding: 1rem 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        text-align: center;
        gap: 1.5rem;
        z-index: 1000;

        /* Hiding mechanism */
        visibility: hidden;
        opacity: 0;
        transform: translateY(-20px);

        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
        pointer-events: none;
    }

    .nav-menu.active {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    body.dark-mode .nav-menu {
        background-color: var(--card-bg);
        border-bottom: 1px solid var(--border-color);
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 2rem 1rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-image-container {
        order: -1;
    }

    .story-content {
        grid-template-columns: 1fr;
    }

    .story-image-container {
        order: -1;
    }

    .course-container,
    .book-container {
        grid-template-columns: 1fr;
    }

    .course-image-container {
        order: -1;
    }

    .book-cover-container {
        order: -1;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    #contact.active,
    .media-centered {
        justify-content: flex-start;
        min-height: auto;
        padding-top: 2rem;
        /* Add a bit of top padding if needed usually handled by .page */
    }

    .content-section {
        padding: 1.5rem;
    }

    .content-section h2 {
        font-size: 1.8rem;
    }

    .hamburger {
        display: flex;
    }



    .page {
        padding: 2rem 1rem;
    }

    .result-cards {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }

    .result-card {
        padding: 1rem;
    }

    .result-value {
        font-size: 1.5rem;
    }

    .conditions-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 0.8rem;
    }

    .equation-note {
        padding: 1rem;
        margin: 1.5rem 0;
    }

    .equation-note p {
        font-size: 0.9rem;
        margin: 0.6rem 0;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
    }

    .logo-section {
        gap: 0.5rem;
    }

    .logo {
        height: 40px;
    }

    .brand-name {
        font-size: 1.2rem;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .features,
    .possibilities-grid,
    .videos-grid,
    .blogs-grid {
        grid-template-columns: 1fr;
    }

    .calculators-container {
        grid-template-columns: 1fr;
    }

    .content-section {
        padding: 1rem;
    }

    .content-section h2 {
        font-size: 1.5rem;
    }

    .cta-button {
        padding: 0.8rem 2rem;
    }
}

/* ============================================
   DARK MODE MEDIA QUERY SUPPORT
   ============================================ */



/* ============================================
   PRINT STYLES
   ============================================ */

@media print {

    .navbar,
    .footer,
    .dark-mode-btn,
    .hamburger {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .page {
        display: block !important;
    }
}

/* ============================================
   PREMIUM COURSE CARD STYLES
   ============================================ */

.course-premium-card {
    display: flex;
    flex-direction: row;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
    transition: transform 0.3s ease;
}

.course-premium-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.course-premium-image {
    flex: 1;
    min-height: 400px;
    position: relative;
    overflow: hidden;
}

.course-premium-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Ensure full image is visible */
    transition: transform 0.5s ease;
    padding: 10px;
    /* Add some internal spacing */
}

.course-premium-card:hover .course-premium-image img {
    transform: scale(1.05);
}

.course-premium-content {
    flex: 1.2;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.badge-container {
    margin-bottom: 1rem;
}

.badge {
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(255, 107, 107, 0.3);
}

.course-premium-content h3 {
    font-size: 2rem;
    color: var(--dark-text);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.course-premium-content .course-description {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.premium-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
    color: #444;
}

.check-icon {
    background: #e8f5e9;
    color: #27ae60;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
    flex-shrink: 0;
}

.pricing-area {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #eee;
}

.price-tag {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 1.5rem;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 1.2rem;
}

.current-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark-text);
}

.discount-pill {
    background: #e3f2fd;
    color: #1976d2;
    padding: 0.2rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.premium-btn {
    width: 100%;
    padding: 1.2rem;
    font-size: 1.1rem;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    border: none;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.premium-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5);
}

.guarantee-text {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #888;
}

/* Dark Mode Support */
body.dark-mode .course-premium-card {
    background: var(--card-bg);
}

body.dark-mode .course-premium-content h3 {
    color: #fff;
}

body.dark-mode .course-premium-content .course-description {
    color: #b0b0b0;
}

body.dark-mode .feature-item {
    color: #ddd;
}

body.dark-mode .check-icon {
    background: rgba(39, 174, 96, 0.2);
}

body.dark-mode .pricing-area {
    background: rgba(255, 255, 255, 0.05);
    border-color: #444;
}

body.dark-mode .current-price {
    color: #fff;
}

body.dark-mode .discount-pill {
    background: rgba(25, 118, 210, 0.2);
    color: #64b5f6;
}

/* Responsive */
@media (max-width: 900px) {
    .course-premium-card {
        flex-direction: column;
    }

    .course-premium-image {
        min-height: 250px;
    }

    .course-premium-content {
        padding: 2rem 1.5rem;
    }

    .premium-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}


/* ============================================
   COFFEE / SUPPORT SECTION
   ============================================ */

/* Coffee Section Global Styles */
.coffee-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
}

.coffee-btn {
    background: #FFF;
    border: 2px solid #795548;
    color: #5D4037;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 90px;
    flex: 1 1 auto;
    /* Allow buttons to grow/shrink nicely */
}

.coffee-btn:hover {
    background: #6D4C41;
    color: #FFF;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(93, 64, 55, 0.2);
}

.coffee-btn:active {
    transform: translateY(0);
}

body.dark-mode .coffee-grid .coffee-btn {
    background: #3E2723;
    color: #D7CCC8;
    border-color: #A1887F;
}

body.dark-mode .coffee-grid .coffee-btn:hover {
    background: #D7CCC8;
    color: #3E2723;
}

/* ============================================
   NAVBAR ICON BUTTONS
   ============================================ */
.nav-icon-btn {
    background: none;
    border: 2px solid var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 1rem;
    padding: 0;
    overflow: hidden;
}

.nav-icon-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-icon-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.5);
}

body.dark-mode .nav-icon-btn {
    border-color: var(--secondary-color);
}

/* Specific adjustment for the dark mode toggle to inherit shared styles if needed, 
   but it has its own class. We added nav-icon-btn to it in HTML, so we just handle conflicts here. */
.dark-mode-btn.nav-icon-btn {
    color: var(--primary-color);
    display: flex;
}

body.dark-mode .dark-mode-btn.nav-icon-btn {
    color: var(--secondary-color);
}

/* ============================================
   THANK YOU PAGE
   ============================================ */

.thank-you-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 2rem;
    text-align: center;
}

.thank-you-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 100%;
    animation: slideUp 0.6s ease-out;
}

body.dark-mode .thank-you-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-icon-wrapper {
    width: 80px;
    height: 80px;
    background: #e8f5e9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.3s backwards;
}

body.dark-mode .success-icon-wrapper {
    background: rgba(39, 174, 96, 0.2);
}

.success-icon {
    font-size: 40px;
    color: #27ae60;
}

@keyframes popIn {
    from {
        transform: scale(0);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.thank-you-card h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

body.dark-mode .thank-you-card h1 {
    color: #ffffff;
}

.thank-you-card p {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    line-height: 1.6;
}

body.dark-mode .thank-you-card p {
    color: #b0b0b0;
}

.order-details {
    background: var(--background);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    text-align: left;
}

body.dark-mode .order-details {
    background: rgba(255, 255, 255, 0.05);
}

.order-details h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--dark-text);
}

body.dark-mode .order-details h3 {
    color: var(--text-color);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.detail-label {
    color: #666;
}

body.dark-mode .detail-label {
    color: #aaa;
}

.detail-value {
    font-weight: bold;
    color: var(--dark-text);
}

body.dark-mode .detail-value {
    color: #fff;
}

.thank-you-image-container {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.thank-you-art {
    width: 100%;
    max-width: 120px;
    height: auto;
    border-radius: 10px;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.1));
    animation: popIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.thank-you-card {
    padding: 2.5rem;
    overflow: hidden;
}

/* Mobile Responsiveness */
/* Mobile Responsiveness for Cart - FORCE OVERRIDE */
@media (max-width: 1024px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .glass-panel {
        padding: 10px;
        width: 100%;
        overflow-x: hidden;
    }

    /* Force Table to Block Layout */
    table.data-table,
    .data-table thead,
    .data-table tbody,
    .data-table th,
    .data-table td,
    .data-table tr {
        display: block !important;
        width: 100% !important;
    }

    /* Hide Header Row */
    .data-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    /* Card Style for Rows */
    .data-table tr {
        border: 1px solid #e0e0e0;
        margin-bottom: 15px;
        border-radius: 12px;
        padding: 15px;
        background: var(--white);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        display: flex !important;
        flex-direction: column;
        align-items: stretch;
    }

    /* Cell Styling */
    .data-table td {
        border: none;
        border-bottom: 1px solid #f0f0f0;
        position: relative;
        padding: 10px 0 !important;
        text-align: right;
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        min-height: 40px;
    }

    .data-table td:last-child {
        border-bottom: none;
        justify-content: center;
        padding-top: 15px !important;
    }

    /* Labels via data-attribute */
    .data-table td:before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--secondary-color);
        text-align: left;
        font-size: 0.9rem;
    }

    /* Product Name/Image Section (First Cell) */
    .data-table td:first-child {
        flex-direction: row;
        /* Keep image and text side-by-side or col depending on pref, row is better for space */
        justify-content: flex-start;
        align-items: center;
        gap: 15px;
        background: #fdfdfd;
        margin: -15px -15px 10px -15px;
        /* Bleed to edges */
        padding: 15px !important;
        border-bottom: 1px solid #eee;
        border-radius: 12px 12px 0 0;
    }

    .data-table td:first-child:before {
        display: none;
        /* Hide label for the main product header */
    }

    .data-table img {
        width: 60px !important;
        height: 60px !important;
        border-radius: 8px;
    }

    .data-table td:first-child span {
        font-weight: bold;
        font-size: 1rem;
        text-align: left;
    }

    /* Quantity Controls */
    .data-table td .btn-qty {
        width: 35px !important;
        height: 35px !important;
    }
}

/* Laptop/Desktop Specific Adjustments for Cart */
@media (min-width: 1025px) {
    .container {
        max-width: 1200px;
        margin: 0 auto;
        padding-left: 2rem;
        padding-right: 2rem;
        width: 100%;
    }

    .glass-panel {
        width: 100% !important;
        max-width: 100% !important;
        margin: 2rem auto !important;
        /* Center and add vertical space */
        padding: 40px;
        display: block !important;
    }

    .glass-panel .data-table {
        width: 100%;
        margin: 0;
    }

    /* Center the title */
    .container>h2 {
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .data-table {
        width: 100%;
        border-collapse: separate;
        border-spacing: 0;
        table-layout: auto;
    }

    .data-table th {
        padding: 20px;
        background: #f8f9fa;
        color: #555;
        text-transform: uppercase;
        font-size: 0.85rem;
        font-weight: 700;
        letter-spacing: 0.5px;
        border-bottom: 2px solid #eee;
    }

    .data-table td {
        padding: 25px 20px;
        vertical-align: middle;
        background: #fff;
        border-bottom: 1px solid #f0f0f0;
    }

    /* Column Sizing */
    .data-table th:first-child,
    .data-table td:first-child {
        text-align: left;
        width: 45%;
    }

    /* Align specific columns */
    .data-table th:nth-child(2),
    .data-table td:nth-child(2) {
        text-align: center;
        width: 15%;
    }

    /* Price */
    .data-table th:nth-child(3),
    .data-table td:nth-child(3) {
        text-align: center;
        width: 20%;
    }

    /* Qty */
    .data-table th:nth-child(4),
    .data-table td:nth-child(4) {
        text-align: center;
        width: 15%;
    }

    /* Total */
    .data-table th:nth-child(5),
    .data-table td:nth-child(5) {
        text-align: center;
        width: 5%;
    }

    /* Action */
}