/* MeroKalam.com official nepali-age-calculator styles. Unauthorized copying or republication is not permitted. */
/* ── Page header ── */
        .page-header { text-align: center; margin-bottom: 2.5rem; }
        .page-header p { color: #64748b; font-size: 1rem; margin-top: .35rem; }

        /* ── Input form ── */
        .input-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.75rem; }
        .field { display: flex; flex-direction: column; gap: .4rem; }
        .field .hint { font-size: .77rem; color: #94a3b8; }

        /* ── Visibility toggles ── */
        .error-msg {
            display: none; margin-top: 1rem; padding: .9rem 1.1rem;
            background: #fef2f2; border: 1.5px solid #fecaca;
            border-radius: .75rem; color: #dc2626; font-size: .9rem;
        }
        .error-msg.show { display: block; }
        .results { display: none; margin-top: 2rem; }
        .results.show { display: block; }

        /* ── Age hero ── */
        .age-hero {
            text-align: center; padding: 2rem; margin-bottom: 1.5rem;
            background: linear-gradient(135deg, #eff6ff, #f0f9ff);
            border: 2px solid #bfdbfe; border-radius: 1.25rem;
        }
        .age-hero .big-num { font-size: 5rem; font-weight: 900; line-height: 1; }
        .age-unit { color: #64748b; font-size: 1rem; font-weight: 600; margin-top: .3rem; }
        .age-exact { color: #2563eb; font-size: 1.05rem; font-weight: 700; margin-top: .5rem; }
        .age-dob { color: #94a3b8; font-size: .85rem; margin-top: .25rem; }

        /* ── Stat / extra grids ── */
        .stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1rem; }
        .extras-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
        .extras-grid .extra-box { display: flex; align-items: center; gap: .875rem; text-align: left; }
        .e-icon { font-size: 1.5rem; flex-shrink: 0; }
        .e-val { font-size: 1rem; font-weight: 700; color: #1e293b; display: block; }
        .e-lbl { font-size: .75rem; color: #94a3b8; display: block; margin-top: .1rem; }

        /* ── Birthday bar ── */
        .birthday-bar {
            display: flex; align-items: center; gap: 1rem; margin-top: 1rem;
            background: linear-gradient(135deg, #fefce8, #fef3c7);
            border: 1.5px solid #fde68a; border-radius: 1rem; padding: 1.1rem 1.5rem;
        }
        .bb-emoji { font-size: 1.75rem; }
        .bb-main { font-weight: 700; color: #92400e; font-size: .95rem; }
        .bb-sub { color: #b45309; font-size: .8rem; margin-top: .1rem; }

        /* ── FAQ items ── */
        .faq-item {
            background: #f8fafc; border-left: 4px solid #2563eb;
            padding: .9rem 1.1rem; border-radius: 0 .5rem .5rem 0; margin-bottom: .75rem;
        }

        /* ── BS Age Section ── */
        .bs-divider {
            display: flex; align-items: center; gap: .75rem; margin: 1.5rem 0 1rem;
        }
        .bs-divider-line { flex: 1; height: 1px; background: #e2e8f0; }
        .bs-divider-label {
            font-size: .75rem; font-weight: 700; color: #64748b;
            text-transform: uppercase; letter-spacing: .07em; white-space: nowrap;
        }
        .bs-age-hero {
            text-align: center; padding: 1.5rem; margin-bottom: 1rem;
            background: linear-gradient(135deg, #fdf4ff, #f5f3ff);
            border: 2px solid #e9d5ff; border-radius: 1.25rem;
        }
        .bs-age-hero .big-num { color: #7c3aed; }
        .bs-age-hero .age-unit { color: #6d28d9; }
        .bs-age-hero .age-exact { color: #7c3aed; font-family: 'Noto Sans Devanagari', sans-serif; }
        .bs-dob-line { color: #94a3b8; font-size: .85rem; margin-top: .25rem;
            font-family: 'Noto Sans Devanagari', sans-serif; }

        /* ── Date mode tabs ── */
        .date-tabs { display: flex; gap: .5rem; margin-bottom: 1.5rem; }
        .date-tab {
            flex: 1; padding: .75rem 1rem; border: 2px solid #e2e8f0;
            border-radius: .875rem; background: #f8fafc; color: #64748b;
            font-weight: 700; font-size: .92rem; cursor: pointer;
            transition: all .18s; letter-spacing: .01em;
        }
        .date-tab:hover { border-color: #cbd5e1; background: #f1f5f9; }
        .date-tab.np-active { background: #7c3aed; border-color: #7c3aed; color: #fff; }
        .date-tab.en-active { background: #2563eb; border-color: #2563eb; color: #fff; }

        /* ── Date panels ── */
        .date-panel { display: none; }
        .date-panel.show { display: block; }

        /* ── DMY grid ── */
        .dmy-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; margin-bottom: 1.25rem; }

/* ── Mobile ── */
        @media (max-width: 600px) {
            .dmy-grid { grid-template-columns: 1fr; }
            .extras-grid { grid-template-columns: 1fr; }
            .stats-grid { gap: .5rem; }
            .age-hero .big-num { font-size: 3rem; }
            .birthday-bar { flex-direction: column; gap: .5rem; text-align: center; }
        }
        @media (max-width: 380px) {
            .stats-grid { grid-template-columns: 1fr 1fr; }
        }
        @media (max-width: 480px) {
            input, select, textarea { font-size: 16px; } /* prevent iOS zoom */
        }
