/* ============================================================
   TeleMed — Global Stylesheet
   Blue Gradient Theme
   ============================================================ */

/* -----------------------------------------------------------
   CSS Custom Properties (Theme Tokens)
   ----------------------------------------------------------- */
:root {
    /* Primary blue palette */
    --primary-blue: #1a56db;
    --primary-blue-hover: #1648b8;
    --gradient-start: #0f172a;
    --gradient-end: #1e40af;
    --accent-light: #3b82f6;
    --accent-sky: #60a5fa;
    --accent-soft: rgba(59, 130, 246, 0.15);
    --accent-soft-20: rgba(59, 130, 246, 0.2);

    /* Neutrals */
    --text-dark: #0f172a;
    --text-ink: #1e293b;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-light: #e2e8f0;

    /* Gradients */
    --brand-gradient: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    --brand-gradient-soft: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
    --card-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
    --card-shadow-hover: 0 8px 40px rgba(15, 23, 42, 0.12);

    /* Sizes */
    --navbar-height: 76px;
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    --radius-full: 9999px;
}

/* -----------------------------------------------------------
   Base / Reset
   ----------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-ink);
    background-color: var(--bg-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover {
    color: var(--primary-blue-hover);
}

/* Font weight helpers */
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.fw-900 { font-weight: 900; }

/* -----------------------------------------------------------
   Navbar — Floating Glass Pill
   ----------------------------------------------------------- */
.tm-nav-inner {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

/* Perfect Center Alignment for Nav Links on Desktop */
@media (min-width: 992px) {
    .tm-nav-inner {
        position: relative;
    }
    .tm-nav-inner #navbarMain {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
}

.tm-nav-btn-cta {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
    color: #ffffff !important;
    border: none;
    box-shadow: 0 4px 14px rgba(29, 78, 216, 0.35);
    transition: all 0.25s ease;
}
.tm-nav-btn-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(29, 78, 216, 0.45);
    color: #ffffff !important;
}

.tm-product-img-file {
    max-height: 140px;
    max-width: 85%;
    object-fit: contain;
    transition: transform 0.3s ease;
}
.tm-product-card:hover .tm-product-img-file {
    transform: scale(1.08);
}

/* -----------------------------------------------------------
   Dot Pattern Overlay (for gradient sections)
   ----------------------------------------------------------- */
.tm-dot-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.12;
    background-image: radial-gradient(circle at 2px 2px, white 1.5px, transparent 0px);
    background-size: 28px 28px;
    pointer-events: none;
}

/* -----------------------------------------------------------
   Hero Section
   ----------------------------------------------------------- */
.tm-hero {
    position: relative;
    background: var(--brand-gradient);
    padding: 7.5rem 0 4rem;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.tm-hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.tm-hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
    max-width: 550px;
}

.tm-hero-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff !important;
    border: none;
    border-radius: var(--radius-full);
    padding: 1.1rem 2.75rem;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45);
    text-decoration: none;
}
.tm-hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.55);
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff !important;
}

.tm-hero-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-full);
    padding: 1.1rem 2.75rem;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}
.tm-hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    color: #ffffff !important;
}

/* Hero feature cards */
.tm-hero-feature-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all 0.3s ease;
}
.tm-hero-feature-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}
.tm-hero-feature-card h3 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.tm-hero-feature-card p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}
.tm-hero-feature-card a {
    color: var(--accent-sky);
    font-weight: 600;
    font-size: 0.9rem;
}
.tm-hero-feature-card a:hover {
    color: #fff;
}

/* -----------------------------------------------------------
   Trust Stats Row
   ----------------------------------------------------------- */
.tm-stats-row {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--card-shadow);
    padding: 2rem;
    margin-top: -3rem;
    position: relative;
    z-index: 10;
}

.tm-stat-item {
    text-align: center;
    padding: 1rem;
}
.tm-stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-blue);
    letter-spacing: -0.02em;
}
.tm-stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* -----------------------------------------------------------
   Section Headings
   ----------------------------------------------------------- */
.tm-section {
    padding: 5rem 0;
}
.tm-section-light {
    background: var(--bg-light);
}
.tm-section-white {
    background: var(--bg-white);
}

.tm-section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary-blue);
    background: var(--accent-soft);
    padding: 0.35rem 1rem;
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
}

.tm-section-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.tm-section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
}

/* -----------------------------------------------------------
   Why Choose Us — 3 Column Cards
   ----------------------------------------------------------- */
.tm-why-card {
    background: var(--bg-white);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
}
.tm-why-card:hover {
    border-color: var(--accent-light);
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-4px);
}
.tm-why-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--accent-soft);
    color: var(--primary-blue);
    border-radius: var(--radius-sm);
    font-weight: 800;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}
.tm-why-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}
.tm-why-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* -----------------------------------------------------------
   Product Grid
   ----------------------------------------------------------- */
.tm-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.tm-filter-tab {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-white);
    cursor: pointer;
    transition: all 0.25s ease;
    user-select: none;
}
.tm-filter-tab:hover {
    border-color: var(--accent-light);
    color: var(--primary-blue);
}
.tm-filter-tab.active {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: #fff;
}

.tm-product-card {
    background: var(--bg-white);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.tm-product-card:hover {
    border-color: var(--accent-light);
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-4px);
}

.tm-product-img {
    height: 180px;
    background: linear-gradient(135deg, #e0e7ff 0%, #dbeafe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary-blue);
    position: relative;
}
.tm-product-img .tm-product-initials {
    font-weight: 800;
    font-size: 2.5rem;
    opacity: 0.25;
    letter-spacing: -0.02em;
}
.tm-product-img .tm-product-icon {
    position: absolute;
    font-size: 2.5rem;
    opacity: 0.6;
    color: var(--accent-light);
}

.tm-product-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.tm-product-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    line-height: 1.3;
    flex-grow: 1;
}
.tm-product-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 0.75rem;
}

.tm-product-durations {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
}
.tm-duration-pill {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    background: var(--accent-soft);
    color: var(--primary-blue);
}

.tm-btn-get-started {
    display: block;
    width: 100%;
    padding: 0.65rem 1rem;
    border: 2px solid var(--primary-blue);
    border-radius: var(--radius-full);
    background: transparent;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    transition: all 0.25s ease;
    text-decoration: none;
}
.tm-btn-get-started:hover {
    background: var(--primary-blue);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 86, 219, 0.3);
}

/* -----------------------------------------------------------
   BMI Calculator Widget
   ----------------------------------------------------------- */
.tm-bmi-widget {
    background: var(--bg-white);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--card-shadow);
}

.tm-bmi-height-btn {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-full);
    background: var(--bg-white);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Product Pagination Buttons (< and >) */
.tm-page-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--border-light);
    background: var(--bg-white);
    color: var(--primary-blue);
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.tm-page-btn:hover:not(:disabled) {
    border-color: var(--primary-blue);
    background: var(--primary-blue);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(26, 86, 219, 0.3);
}
.tm-page-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    border-color: var(--border-light);
    background: var(--bg-light);
    color: var(--text-muted);
    transform: none;
    box-shadow: none;
}
.tm-bmi-height-btn:hover {
    border-color: var(--accent-light);
    color: var(--primary-blue);
}
.tm-bmi-height-btn.active {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: #fff;
}

/* Custom range slider */
.tm-range-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    background: linear-gradient(to right, var(--primary-blue), var(--accent-sky));
    border-radius: var(--radius-full);
    outline: none;
}
.tm-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: var(--primary-blue);
    border: 3px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(26, 86, 219, 0.4);
    transition: transform 0.15s ease;
}
.tm-range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}
.tm-range-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: var(--primary-blue);
    border: 3px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(26, 86, 219, 0.4);
}

.tm-bmi-result-card {
    background: var(--accent-soft);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
}
.tm-bmi-value {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-blue);
    line-height: 1;
}
.tm-bmi-category {
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-full);
    display: inline-block;
    margin-top: 0.5rem;
}
.tm-bmi-underweight { background: #dbeafe; color: #1e40af; }
.tm-bmi-normal { background: #d1fae5; color: #065f46; }
.tm-bmi-overweight { background: #fef3c7; color: #92400e; }
.tm-bmi-obese { background: #fee2e2; color: #991b1b; }

.tm-potential-loss {
    text-align: center;
}
.tm-loss-value {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-blue);
    line-height: 1;
}
.tm-loss-unit {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-blue);
}

/* -----------------------------------------------------------
   How It Works — 3 Steps
   ----------------------------------------------------------- */
.tm-step-card {
    text-align: center;
    padding: 2rem 1.5rem;
}
.tm-step-number,
.tm-step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    border-radius: 50%;
    font-weight: 800;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
}
.tm-step-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}
.tm-step-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Step connector line */
@media (min-width: 768px) {
    .tm-steps-row {
        position: relative;
    }
    .tm-steps-row::before {
        content: '';
        position: absolute;
        top: 3.75rem;
        left: 25%;
        right: 25%;
        height: 2px;
        background: linear-gradient(to right, var(--accent-soft), var(--accent-light), var(--accent-soft));
        z-index: 0;
    }
    .tm-step-card {
        position: relative;
        z-index: 1;
    }
}

/* -----------------------------------------------------------
   Evidence / Stats Section
   ----------------------------------------------------------- */
.tm-evidence-section {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    border: 2px solid var(--border-light);
    padding: 3rem;
}

.tm-evidence-stat {
    text-align: center;
    padding: 1.5rem;
}
.tm-evidence-value {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary-blue);
    margin-bottom: 0.25rem;
}
.tm-evidence-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}
.tm-evidence-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.tm-trust-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
}
.tm-trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}
.tm-trust-badge i {
    color: var(--primary-blue);
    font-size: 1.1rem;
}

/* -----------------------------------------------------------
   FAQ Accordion
   ----------------------------------------------------------- */
.tm-faq .accordion-item {
    border: 2px solid var(--border-light);
    border-radius: var(--radius-xl) !important;
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
}
.tm-faq .accordion-item:hover {
    border-color: var(--accent-soft-20);
}

.tm-faq .accordion-button {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-dark);
    padding: 1.25rem 1.5rem;
    background: var(--bg-white);
    box-shadow: none !important;
    border-radius: var(--radius-xl) !important;
}
.tm-faq .accordion-button:not(.collapsed) {
    color: var(--primary-blue);
    background: var(--bg-white);
}
.tm-faq .accordion-button::after {
    background-image: none;
    content: '';
    width: 1.75rem;
    height: 1.75rem;
    background: var(--accent-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.tm-faq .accordion-button:not(.collapsed)::after {
    background: var(--primary-blue);
}

.tm-faq .accordion-body {
    padding: 0 1.5rem 1.25rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* -----------------------------------------------------------
   CTA Section
   ----------------------------------------------------------- */
.tm-cta-section {
    position: relative;
    background: var(--brand-gradient);
    padding: 5rem 0;
    overflow: hidden;
}

.tm-btn-white-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-white);
    color: var(--gradient-start) !important;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    padding: 0.75rem 2rem;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}
.tm-btn-white-outline:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: var(--primary-blue) !important;
}

/* -----------------------------------------------------------
   Footer
   ----------------------------------------------------------- */
.tm-footer {
    position: relative;
    background: var(--brand-gradient);
    padding: 5rem 0 0;
    overflow: hidden;
}

.tm-footer-watermark {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-weight: 800;
    line-height: 1;
    user-select: none;
    pointer-events: none;
    font-size: clamp(5rem, 22vw, 18rem);
    color: white;
    opacity: 0.08;
    mix-blend-mode: overlay;
    z-index: 1;
}

.tm-footer-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-xl);
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
}

.tm-footer-links li {
    margin-bottom: 0.4rem;
}
.tm-footer-links a {
    color: var(--text-muted);
    font-size: 0.875rem;
    transition: color 0.2s ease;
}
.tm-footer-links a:hover {
    color: var(--primary-blue);
}

.tm-link {
    color: var(--primary-blue);
    font-weight: 500;
}
.tm-link:hover {
    text-decoration: underline;
}

/* -----------------------------------------------------------
   Category / About Hero Section
   ----------------------------------------------------------- */
.tm-page-hero {
    position: relative;
    background: var(--brand-gradient);
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8.5rem 0 6rem;
    overflow: hidden;
    text-align: center;
}
.tm-page-hero h1 {
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
    line-height: 1.05;
}
.tm-page-hero p {
    font-size: clamp(1.1rem, 2.2vw, 1.35rem);
    color: rgba(255, 255, 255, 0.88);
    max-width: 720px;
    margin: 0 auto 2.25rem;
    line-height: 1.6;
}
.tm-page-hero .btn {
    border-radius: var(--radius-full);
}

/* -----------------------------------------------------------
   About Page — Value Cards
   ----------------------------------------------------------- */
.tm-value-card {
    background: var(--bg-white);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    text-align: center;
}
.tm-value-card:hover {
    border-color: var(--accent-light);
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-4px);
}
.tm-value-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    background: var(--accent-soft);
    color: var(--primary-blue);
    border-radius: var(--radius-md);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.tm-value-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}
.tm-value-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* -----------------------------------------------------------
   About — Feature Badge
   ----------------------------------------------------------- */
.tm-feature-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: var(--accent-soft);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-blue);
}

/* -----------------------------------------------------------
   About Page — Vertical Timeline for Principles
   ----------------------------------------------------------- */
.tm-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}
.tm-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.2) 0%, rgba(37, 99, 235, 0.8) 50%, rgba(37, 99, 235, 0.2) 100%);
    transform: translateX(-50%);
}
.tm-timeline-item {
    position: relative;
    margin-bottom: 3.5rem;
    width: 50%;
}
.tm-timeline-item.left {
    left: 0;
    padding-right: 3rem;
    text-align: right;
}
.tm-timeline-item.right {
    left: 50%;
    padding-left: 3rem;
    text-align: left;
}
.tm-timeline-icon {
    position: absolute;
    top: 0;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid var(--primary-blue);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-blue);
    z-index: 2;
}
.tm-timeline-item.left .tm-timeline-icon {
    right: -1.75rem;
}
.tm-timeline-item.right .tm-timeline-icon {
    left: -1.75rem;
}

@media (max-width: 767.98px) {
    .tm-timeline::before {
        left: 2rem;
    }
    .tm-timeline-item {
        width: 100% !important;
        left: 0 !important;
        padding-left: 4.5rem !important;
        padding-right: 0 !important;
        text-align: left !important;
    }
    .tm-timeline-item .tm-timeline-icon {
        left: 0.25rem !important;
        right: auto !important;
    }
}
.tm-feature-badge i {
    font-size: 1.1rem;
}

/* -----------------------------------------------------------
   About — Stats Card
   ----------------------------------------------------------- */
.tm-about-stat {
    background: var(--brand-gradient);
    border-radius: var(--radius-xl);
    padding: 3rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.tm-about-stat-value {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

/* -----------------------------------------------------------
   About — Pillar Cards
   ----------------------------------------------------------- */
.tm-pillar-card {
    background: var(--bg-white);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
}
.tm-pillar-card:hover {
    border-color: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: var(--card-shadow);
}
.tm-pillar-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}
.tm-pillar-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* -----------------------------------------------------------
   Category — Feature Cards (6 cards section)
   ----------------------------------------------------------- */
.tm-cat-feature-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-white);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    height: 100%;
}
.tm-cat-feature-card:hover {
    border-color: var(--accent-light);
    box-shadow: var(--card-shadow);
}
.tm-cat-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    min-width: 2.75rem;
    background: var(--accent-soft);
    color: var(--primary-blue);
    border-radius: var(--radius-sm);
    font-size: 1.25rem;
}
.tm-cat-feature-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}
.tm-cat-feature-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* -----------------------------------------------------------
   Category — Cross-Links (Explore Other Treatments)
   ----------------------------------------------------------- */
.tm-explore-card {
    background: var(--bg-white);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}
.tm-explore-card:hover {
    border-color: var(--accent-light);
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-4px);
}
.tm-explore-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}
.tm-explore-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}
.tm-explore-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.9rem;
}
.tm-explore-link:hover {
    gap: 0.6rem;
}

/* -----------------------------------------------------------
   Weight Loss — Comparison Table
   ----------------------------------------------------------- */
.tm-comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 2px solid var(--border-light);
}
.tm-comparison-table thead th {
    background: var(--brand-gradient);
    color: #fff;
    padding: 1rem;
    font-weight: 700;
    font-size: 0.9rem;
    text-align: center;
}
.tm-comparison-table thead th:first-child {
    text-align: left;
}
.tm-comparison-table tbody td {
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-light);
    text-align: center;
}
.tm-comparison-table tbody td:first-child {
    text-align: left;
    font-weight: 600;
    color: var(--text-dark);
}
.tm-comparison-table tbody tr:last-child td {
    border-bottom: none;
}

/* -----------------------------------------------------------
   Legal Pages
   ----------------------------------------------------------- */
.tm-legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 0 5rem;
}
.tm-legal-content h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}
.tm-legal-content .tm-legal-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}
.tm-legal-content h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-soft);
}
.tm-legal-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}
.tm-legal-content p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1rem;
}
.tm-legal-content ul {
    color: var(--text-muted);
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}
.tm-legal-content ul li {
    margin-bottom: 0.4rem;
    line-height: 1.7;
}

/* -----------------------------------------------------------
   Intake Forms
   ----------------------------------------------------------- */
.tm-intake-hero {
    position: relative;
    background: var(--brand-gradient);
    padding: 7.5rem 0 6rem;
    text-align: center;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Intake Photo Mosaic Grid Background */
.tm-mosaic-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 12px;
    opacity: 0.28;
    filter: blur(3px);
    transform: scale(1.05);
    z-index: 0;
    pointer-events: none;
}
.tm-mosaic-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.tm-form-container {
    max-width: 680px;
    margin: -4rem auto 4rem;
    background: var(--bg-white);
    border-radius: 1.5rem;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
    padding: 2.5rem 3rem;
    position: relative;
    z-index: 10;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.tm-form-group {
    margin-bottom: 1.5rem;
}
.tm-form-label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 0.4rem;
}
.tm-form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
    background: var(--bg-white);
    color: var(--text-dark);
}
.tm-form-control:focus {
    outline: none;
    border-color: var(--accent-light);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.tm-form-control.is-invalid {
    border-color: #ef4444;
}

.tm-radio-group {
    display: flex;
    gap: 1rem;
    margin-top: 0.25rem;
}
.tm-radio-option {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
}
.tm-radio-option input[type="radio"] {
    accent-color: var(--primary-blue);
    width: 18px;
    height: 18px;
}

.tm-conditional-field {
    display: none;
    margin-top: 0.75rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    animation: fadeSlideDown 0.3s ease;
}
.tm-conditional-field.show {
    display: block;
}

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

.tm-section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary-blue);
    background: #e0edff;
    padding: 0.4rem 1.1rem;
    border-radius: var(--radius-full);
}

.tm-user-info-card {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #bfdbfe;
    border-radius: 1.25rem;
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.75rem;
}

.tm-user-avatar {
    width: 3.25rem;
    height: 3.25rem;
    min-width: 3.25rem;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.tm-user-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.2rem;
}

.tm-user-address {
    color: #475569;
    font-size: 0.95rem;
    font-weight: 500;
}

.tm-user-meta {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
}

.tm-btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    color: #ffffff !important;
    border: none;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(29, 78, 216, 0.35);
}
.tm-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(29, 78, 216, 0.45);
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.tm-modal .modal-content {
    border-radius: var(--radius-xl);
    border: none;
    box-shadow: 0 16px 64px rgba(0, 0, 0, 0.2);
}
.tm-modal .modal-header {
    background: var(--brand-gradient);
    color: #fff;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: 1.5rem 2rem;
}
.tm-modal .modal-header .modal-title {
    font-weight: 700;
}
.tm-modal .modal-header .btn-close {
    filter: brightness(0) invert(1);
}
.tm-modal .modal-body {
    padding: 2rem;
}
.tm-modal .modal-footer {
    padding: 1rem 2rem 1.5rem;
    border: none;
}

.tm-checkbox-group {
    margin-bottom: 0.75rem;
}
.tm-checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-dark);
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: background 0.2s ease;
}
.tm-checkbox-group label:hover {
    background: var(--bg-light);
}
.tm-checkbox-group input[type="checkbox"] {
    accent-color: var(--primary-blue);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.tm-checkbox-detail {
    display: none;
    margin-top: 0.5rem;
    margin-left: 1.75rem;
    animation: fadeSlideDown 0.3s ease;
}
.tm-checkbox-detail.show {
    display: block;
}
.tm-checkbox-detail input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s ease;
}
.tm-checkbox-detail input:focus {
    outline: none;
    border-color: var(--accent-light);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.tm-none-above {
    border-top: 1px solid var(--border-light);
    padding-top: 0.75rem;
    margin-top: 0.75rem;
}

/* -----------------------------------------------------------
   Confirmation Page
   ----------------------------------------------------------- */
.tm-confirmation {
    text-align: center;
    padding: 4rem 0;
    max-width: 600px;
    margin: 0 auto;
}
.tm-confirmation-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 5rem;
    background: var(--accent-soft);
    color: var(--primary-blue);
    border-radius: 50%;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    animation: scaleIn 0.5s ease;
}
@keyframes scaleIn {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* -----------------------------------------------------------
   General Buttons
   ----------------------------------------------------------- */
.tm-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--brand-gradient);
    color: #fff;
    border: none;
    border-radius: var(--radius-full);
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-decoration: none;
}
.tm-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(26, 86, 219, 0.3);
    color: #fff;
}

.tm-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    border-radius: var(--radius-full);
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-decoration: none;
}
.tm-btn-outline:hover {
    background: var(--primary-blue);
    color: #fff;
    transform: translateY(-1px);
}

/* -----------------------------------------------------------
   Form Error Messages
   ----------------------------------------------------------- */
.tm-alert-error {
    background: #fef2f2;
    border: 2px solid #fecaca;
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    color: #991b1b;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}
.tm-alert-error ul {
    margin: 0.5rem 0 0;
    padding-left: 1.25rem;
}

/* -----------------------------------------------------------
   Responsive Adjustments
   ----------------------------------------------------------- */
@media (max-width: 991.98px) {
    /* Mobile Navbar Pill Shape & Dropdown Fix */
    .tm-nav-inner {
        border-radius: 24px !important;
        padding: 0.75rem 1.25rem !important;
    }
    .tm-nav-inner .navbar-collapse {
        margin-top: 0.75rem;
        padding-top: 0.75rem;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
    }
    .tm-nav-inner .navbar-nav {
        text-align: center;
        gap: 0.5rem !important;
    }
    .tm-nav-inner .dropdown-menu {
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
        box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
        background: #ffffff !important;
        text-align: center;
    }

    .tm-hero {
        padding: 4rem 0 3rem;
        min-height: auto;
    }
    .tm-section {
        padding: 3.5rem 0;
    }
    .tm-stats-row {
        margin-top: -2rem;
    }
    .tm-form-container {
        margin: -1.5rem 1rem 2rem;
        padding: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .tm-hero-title {
        font-size: 2.25rem;
    }
    .tm-stats-row {
        margin-top: -1.5rem;
    }
    .tm-stat-item {
        padding: 0.5rem;
    }
    .tm-stat-value {
        font-size: 1.25rem;
    }
    .tm-bmi-widget {
        padding: 1.5rem;
    }
    .tm-evidence-section {
        padding: 1.5rem;
    }
    .tm-footer-card {
        padding: 1.5rem;
    }
    .tm-modal .modal-body {
        padding: 1.25rem;
    }
    .tm-trust-badges {
        gap: 1rem;
    }
}

@media (max-width: 575.98px) {
    .tm-filter-tabs {
        justify-content: center;
    }
    .tm-filter-tab {
        font-size: 0.8rem;
        padding: 0.4rem 0.9rem;
    }
}

/* -----------------------------------------------------------
   Animations & Transitions
   ----------------------------------------------------------- */
.tm-fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.tm-fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll indicator */
.tm-scroll-indicator {
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

/* -----------------------------------------------------------
   Split-View Glassmorphism Modal & Form Controls
   ----------------------------------------------------------- */
.tm-glass-modal .modal-content {
    background: rgba(15, 23, 42, 0.88) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 28px !important;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.6) !important;
    color: #ffffff !important;
}

.tm-glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
}

.tm-glass-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 50px !important;
    color: #ffffff !important;
    padding: 0.75rem 1.25rem !important;
    font-size: 0.95rem !important;
    transition: all 0.25s ease !important;
}
.tm-glass-input::placeholder {
    color: rgba(255, 255, 255, 0.45) !important;
}
.tm-glass-input:focus {
    outline: none !important;
    background: rgba(255, 255, 255, 0.14) !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.3) !important;
    color: #ffffff !important;
}

.tm-glass-select {
    width: 100%;
    background: rgba(15, 23, 42, 0.9) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 50px !important;
    color: #ffffff !important;
    padding: 0.75rem 1.25rem !important;
    font-size: 0.95rem !important;
    transition: all 0.25s ease !important;
}
.tm-glass-select:focus {
    outline: none !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.3) !important;
}

/* -----------------------------------------------------------
   RICH ANIMATIONS ENGINE (Scroll Reveals, Hover, Floating)
   ----------------------------------------------------------- */

/* 1. SCROLL REVEAL ANIMATIONS */
.tm-fade-up {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.tm-fade-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.tm-fade-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.tm-scale-up {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Revealed Class */
.tm-fade-up.visible,
.tm-fade-left.visible,
.tm-fade-right.visible,
.tm-scale-up.visible {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* 2. CARD HOVER & IMAGE ZOOM ANIMATIONS */
.tm-product-card {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease !important;
}
.tm-product-card:hover {
    transform: translateY(-8px) scale(1.015) !important;
    box-shadow: 0 20px 45px rgba(37, 99, 235, 0.18) !important;
    border-color: rgba(37, 99, 235, 0.4) !important;
}
.tm-product-card .tm-product-img {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.tm-product-card:hover .tm-product-img {
    transform: scale(1.08) rotate(1deg) !important;
}

/* 3. STEP CARDS & BADGE ANIMATIONS */
.tm-step-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease !important;
}
.tm-step-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 16px 36px rgba(37, 99, 235, 0.14) !important;
    border-color: var(--primary-blue) !important;
}
.tm-step-badge {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease !important;
}
.tm-step-card:hover .tm-step-badge {
    transform: scale(1.15) rotate(6deg) !important;
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.6) !important;
}

/* 4. BUTTON GLOW & SHIMMER EFFECTS */
.tm-hero-btn-primary {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}
.tm-hero-btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-25deg);
    transition: left 0.75s ease;
}
.tm-hero-btn-primary:hover::after {
    left: 150%;
}
.tm-hero-btn-primary:hover {
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.45) !important;
}

/* 5. FLOATING & AMBIENT ANIMATIONS */
.tm-float {
    animation: tmFloat 4.5s ease-in-out infinite;
}
@keyframes tmFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.tm-pulse-glow {
    animation: tmPulseGlow 3.5s infinite alternate;
}
@keyframes tmPulseGlow {
    0% { opacity: 0.5; filter: blur(35px); }
    100% { opacity: 0.95; filter: blur(50px); }
}

/* -----------------------------------------------------------
   Mobile Responsiveness Overhauls (< 768px & < 576px)
   ----------------------------------------------------------- */
@media (max-width: 767.98px) {
    /* Prevent iOS auto-zoom on input focus */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    select,
    textarea,
    .tm-glass-input,
    .tm-glass-select {
        font-size: 16px !important;
        min-height: 44px;
    }

    /* Container Spacing */
    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    /* Floating Pill Navbar on mobile */
    .tm-pill-nav {
        margin-top: 0 !important;
    }

    /* Mobile Hero Buttons Equal Size */
    .tm-hero-btn-container {
        width: 100% !important;
        max-width: 340px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    .tm-hero-btn-container .tm-hero-btn-primary,
    .tm-hero-btn-container .tm-hero-btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        padding: 0.9rem 1.5rem !important;
        font-size: 1rem !important;
    }

    /* Product Cards Grid on Mobile */
    .tm-product-card {
        margin-bottom: 0.75rem;
    }
    .tm-product-body {
        padding: 0.85rem !important;
    }
    .tm-product-name {
        font-size: 0.9rem !important;
    }
    .tm-product-price {
        font-size: 1.1rem !important;
    }

    /* BMI Reference Table on Mobile */
    #bmiReferenceTable {
        font-size: 0.72rem !important;
    }
    #bmiReferenceTable th,
    #bmiReferenceTable td {
        padding: 0.35rem 0.25rem !important;
        white-space: nowrap;
    }

    /* Intake Containers Edge Padding */
    .tm-intake-hero {
        padding-top: 6rem !important;
        padding-bottom: 2rem !important;
    }
}

@media (max-width: 575.98px) {
    /* Displays & Headlines */
    .display-3, .display-4, .display-5 {
        font-size: 1.75rem !important;
    }
    .display-6 {
        font-size: 1.4rem !important;
    }

    /* Form Fields Grid on Narrow Mobile */
    .btn-group .btn {
        padding: 0.6rem 0.5rem !important;
        font-size: 0.85rem !important;
    }
    .form-check-label {
        font-size: 0.85rem !important;
    }
}
