/* =====================================================
           PREGNANCY CALCULATOR - Standalone Tool Styles
           ===================================================== */
        :root {
            --primary: #0f4c3a;
            --primary-hover: #1a6b4a;
            --primary-light: #e9f5ee;
            --rose: #e11d48;
            --rose-light: #fff1f2;
            --rose-mid: #fb7185;
            --pink-accent: #f43f5e;
            --amber: #f59e0b;
        }

        .preg-page-wrapper {
            min-height: 100vh;
            background: #f8faf9;
            padding-bottom: 80px;
        }

        /* Breadcrumb */
        .breadcrumb {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.9rem;
            color: #64748b;
            margin-bottom: 28px;
            flex-wrap: wrap;
        }

        .breadcrumb a {
            text-decoration: none;
            color: var(--primary);
            font-weight: 500;
            transition: color 0.2s;
        }

        .breadcrumb a:hover {
            color: var(--primary-hover);
        }

        .breadcrumb .sep {
            color: #cbd5e1;
        }

        .breadcrumb .current {
            color: #475569;
            font-weight: 600;
        }

        /* Hero Header */
        .preg-hero {
            background: linear-gradient(135deg, #ffffff 0%, #fff5f7 100%);
            border-radius: 24px;
            padding: 36px 40px;
            margin-bottom: 32px;
            border: 1px solid #ffe4e6;
            box-shadow: 0 4px 20px rgba(225, 29, 72, 0.05);
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 30px;
            position: relative;
            overflow: hidden;
        }

        .preg-hero::after {
            content: '👶';
            position: absolute;
            right: 20px;
            bottom: -15px;
            font-size: 140px;
            opacity: 0.08;
            pointer-events: none;
        }

        .preg-hero-text {
            max-width: 680px;
        }

        .preg-badge {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: #fff1f2;
            color: var(--rose);
            border: 1px solid #fecdd3;
            padding: 6px 16px;
            border-radius: 999px;
            font-size: 0.85rem;
            font-weight: 700;
            margin-bottom: 14px;
        }

        .preg-hero h1 {
            font-size: 2.2rem;
            font-weight: 800;
            color: #0f172a;
            line-height: 1.25;
            margin-bottom: 10px;
        }

        .preg-hero p {
            color: #64748b;
            font-size: 1.02rem;
            line-height: 1.6;
            margin: 0;
        }

        /* Main Tool Layout (2-Column) */
        .preg-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 32px;
            align-items: start;
        }

        @media (max-width: 960px) {
            .preg-grid {
                grid-template-columns: 1fr;
            }
        }

        /* Card Container */
        .preg-card {
            background: white;
            border-radius: 24px;
            border: 1px solid #f1f5f9;
            box-shadow: 0 4px 20px rgba(15, 74, 59, 0.05);
            overflow: hidden;
        }

        .preg-card-header {
            padding: 24px 28px;
            border-bottom: 1px solid #f1f5f9;
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: #fafcfb;
        }

        .preg-card-title {
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 1.15rem;
            font-weight: 700;
            color: #0f172a;
        }

        .preg-card-title-icon {
            width: 40px;
            height: 40px;
            border-radius: 12px;
            background: #fff1f2;
            color: var(--rose);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
        }

        .preg-card-body {
            padding: 28px;
        }

        /* Form Controls */
        .calc-method-select {
            display: flex;
            background: #f1f5f9;
            padding: 4px;
            border-radius: 12px;
            margin-bottom: 24px;
            gap: 4px;
        }

        .method-btn {
            flex: 1;
            padding: 10px 14px;
            border: none;
            background: transparent;
            font-family: inherit;
            font-size: 0.9rem;
            font-weight: 600;
            color: #64748b;
            border-radius: 9px;
            cursor: pointer;
            transition: all 0.2s ease;
            text-align: center;
        }

        .method-btn.active {
            background: white;
            color: var(--rose);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
        }

        .form-group {
            margin-bottom: 22px;
        }

        .form-label {
            display: block;
            font-size: 0.9rem;
            font-weight: 700;
            color: #334155;
            margin-bottom: 8px;
        }

        .form-input-wrap {
            position: relative;
            display: flex;
            align-items: center;
        }

        .form-input {
            width: 100%;
            padding: 14px 16px;
            border: 1.5px solid #e2e8f0;
            border-radius: 12px;
            font-family: inherit;
            font-size: 0.98rem;
            color: #0f172a;
            outline: none;
            transition: all 0.2s ease;
            background: #f8fafc;
        }

        .form-input:focus {
            border-color: var(--rose);
            background: white;
            box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.12);
        }

        .cycle-length-val {
            font-weight: 800;
            color: var(--rose);
            font-size: 1rem;
            margin-left: 6px;
        }

        .range-slider {
            width: 100%;
            accent-color: var(--rose);
            cursor: pointer;
            height: 6px;
            background: #e2e8f0;
            border-radius: 3px;
        }

        /* Action Buttons */
        .preg-btn-primary {
            width: 100%;
            padding: 15px 24px;
            border: none;
            background: linear-gradient(135deg, var(--rose) 0%, #be123c 100%);
            color: white;
            font-family: inherit;
            font-size: 1rem;
            font-weight: 700;
            border-radius: 14px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            box-shadow: 0 4px 16px rgba(225, 29, 72, 0.25);
            transition: all 0.25s ease;
        }

        .preg-btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(225, 29, 72, 0.35);
        }

        /* Results Display */
        .edd-highlight-box {
            background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
            border: 1.5px solid #fecdd3;
            border-radius: 20px;
            padding: 24px;
            text-align: center;
            margin-bottom: 24px;
            position: relative;
        }

        .edd-title {
            font-size: 0.85rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            color: #be123c;
            margin-bottom: 6px;
        }

        .edd-date-main {
            font-size: 2rem;
            font-weight: 800;
            color: #9f1239;
            margin-bottom: 4px;
            line-height: 1.2;
        }

        .edd-countdown {
            font-size: 0.92rem;
            color: #475569;
            font-weight: 600;
        }

        /* Gestational Progress */
        .progress-card {
            background: #f8fafc;
            border-radius: 16px;
            padding: 20px;
            margin-bottom: 20px;
            border: 1px solid #e2e8f0;
        }

        .progress-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
        }

        .weeks-count {
            font-size: 1.25rem;
            font-weight: 800;
            color: #0f172a;
        }

        .trimester-badge {
            background: #e0f2fe;
            color: #0369a1;
            padding: 4px 12px;
            border-radius: 999px;
            font-size: 0.8rem;
            font-weight: 700;
        }

        .preg-progress-bar-wrap {
            height: 12px;
            background: #e2e8f0;
            border-radius: 6px;
            overflow: hidden;
            position: relative;
            margin-bottom: 8px;
        }

        .preg-progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #f43f5e 0%, #e11d48 100%);
            border-radius: 6px;
            transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
            width: 0%;
        }

        .progress-markers {
            display: flex;
            justify-content: space-between;
            font-size: 0.75rem;
            color: #94a3b8;
            font-weight: 600;
        }

        /* Baby Size Indicator */
        .baby-size-box {
            display: flex;
            align-items: center;
            gap: 16px;
            background: #f0fdf4;
            border: 1px solid #bbf7d0;
            border-radius: 16px;
            padding: 16px 20px;
            margin-bottom: 20px;
        }

        .baby-size-icon {
            font-size: 2.2rem;
            width: 52px;
            height: 52px;
            background: white;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
            flex-shrink: 0;
        }

        .baby-size-info h4 {
            margin: 0 0 2px 0;
            font-size: 0.95rem;
            font-weight: 700;
            color: #166534;
        }

        .baby-size-info p {
            margin: 0;
            font-size: 0.88rem;
            color: #15803d;
        }

        /* Milestone List */
        .milestones-title {
            font-size: 0.95rem;
            font-weight: 700;
            color: #334155;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .milestone-timeline {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .milestone-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 10px 14px;
            background: white;
            border-radius: 12px;
            border: 1px solid #e2e8f0;
            font-size: 0.88rem;
        }

        .milestone-item.reached {
            background: #f0fdf4;
            border-color: #cbd5e1;
        }

        .milestone-week {
            font-weight: 800;
            color: var(--primary);
            width: 70px;
            flex-shrink: 0;
        }

        .milestone-desc {
            color: #475569;
            flex: 1;
        }

        /* Advisory Box */
        .advisory-box {
            background: #f8fafc;
            border-left: 4px solid var(--primary);
            border-radius: 0 16px 16px 0;
            padding: 20px;
            margin-top: 32px;
            margin-bottom: 32px;
            border-top: 1px solid #f1f5f9;
            border-right: 1px solid #f1f5f9;
            border-bottom: 1px solid #f1f5f9;
        }

        .advisory-box h4 {
            color: var(--primary);
            font-size: 0.95rem;
            font-weight: 700;
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .advisory-box p {
            font-size: 0.88rem;
            color: #64748b;
            line-height: 1.65;
            margin: 0;
        }

        /* Lang switcher override */
        #currentLangText {
            font-weight: 600;
        }