/* Utilix — Age Calculator (age-) */
:root {
    --age-accent: #ea580c;
    --age-accent-light: #ffedd5;
    --age-accent-dark: #c2410c;
    --age-accent-border: #fed7aa;
}

.age-hero { padding-bottom: 40px; }
.age-hero__grid { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: center; }
.age-hero__main { display: flex; gap: 20px; align-items: flex-start; }
.age-hero__visual { display: flex; align-items: center; justify-content: center; min-height: 200px; }
.age-hero__demo { position: relative; width: 100%; max-width: 340px; height: 220px; }
.age-hero__cal { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; justify-content: center; width: 96px; height: 96px; border-radius: 22px; background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%); color: #fff; box-shadow: 0 14px 36px rgba(234,88,12,.35); z-index: 2; }
.age-hero__cal i { width: 44px; height: 44px; }
.age-hero__float { position: absolute; display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; background: #fff; border: 1px solid var(--border); box-shadow: 0 8px 24px rgba(15,23,42,.08); color: var(--age-accent); }
.age-hero__float i { width: 24px; height: 24px; }
.age-hero__float--cake { top: 10px; right: 20px; color: #ec4899; background: #fdf2f8; border-color: #fbcfe8; }
.age-hero__float--hourglass { bottom: 20px; left: 10px; color: #f59e0b; background: #fffbeb; border-color: #fde68a; }
.age-hero__float--user { top: 30px; left: 0; color: #ea580c; background: var(--age-accent-light); border-color: var(--age-accent-border); }

.age-main { padding: 0 0 48px; }
.age-section-head { margin-bottom: 24px; }
.age-section-head h2 { margin: 0 0 8px; font-size: 1.25rem; font-weight: 800; color: var(--heading); }
.age-section-head p { margin: 0; font-size: .875rem; color: #64748b; }
.age-section-head--center { text-align: center; }
.age-section-head--center p { margin: 0 auto; max-width: 560px; }
.age-section-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.age-section-eyebrow { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; font-size: .75rem; font-weight: 700; color: var(--age-accent); background: var(--age-accent-light); border-radius: 999px; margin-bottom: 12px; }
.age-section-eyebrow i { width: 14px; height: 14px; }
.age-link { display: inline-flex; align-items: center; gap: 6px; font-size: .8125rem; font-weight: 700; color: var(--age-accent); text-decoration: none; }
.age-link i { width: 16px; height: 16px; }

.age-mode-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 32px; }
.age-mode-btn { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 8px 12px; background: #fff; border: 2px solid #e8ecf1; border-radius: 16px; cursor: pointer; text-align: center; transition: border-color .2s, box-shadow .2s, transform .15s; font-family: inherit; }
.age-mode-btn__num { position: absolute; top: 8px; left: 10px; font-size: .5625rem; font-weight: 800; color: #94a3b8; }
.age-mode-btn:hover { border-color: var(--age-accent-border); box-shadow: 0 6px 20px rgba(234,88,12,.1); transform: translateY(-2px); }
.age-mode-btn.is-active { border-color: var(--age-accent); background: linear-gradient(180deg, #fff7ed 0%, #fff 100%); box-shadow: 0 4px 20px rgba(234,88,12,.15); }
.age-mode-btn__icon { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; margin-top: 4px; }
.age-mode-btn__icon i { width: 22px; height: 22px; }
.age-mode-btn strong { font-size: .6875rem; font-weight: 700; color: var(--heading); line-height: 1.3; }
.age-mode-btn span:last-child { font-size: .5625rem; color: #94a3b8; line-height: 1.35; }
.age-mode-btn--purple .age-mode-btn__icon { background: #ede9fe; color: #7c3aed; }
.age-mode-btn--green .age-mode-btn__icon { background: #d1fae5; color: #059669; }
.age-mode-btn--orange .age-mode-btn__icon { background: #ffedd5; color: #ea580c; }
.age-mode-btn--red .age-mode-btn__icon { background: #fee2e2; color: #dc2626; }
.age-mode-btn--blue .age-mode-btn__icon { background: #dbeafe; color: #2563eb; }
.age-mode-btn--teal .age-mode-btn__icon { background: #ccfbf1; color: #0d9488; }
.age-mode-btn--yellow .age-mode-btn__icon { background: #fef9c3; color: #ca8a04; }
.age-mode-btn--pink .age-mode-btn__icon { background: #fce7f3; color: #db2777; }

.age-calculator-wrap { margin-top: 8px; }
.age-calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
.age-card { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 24px; box-shadow: 0 4px 24px rgba(15,23,42,.05); display: flex; flex-direction: column; }
.age-card__head h2 { margin: 0; font-size: 1.0625rem; font-weight: 700; color: var(--heading); }
.age-card__head p { margin: 4px 0 0; font-size: .75rem; color: #94a3b8; }
.age-mode-badge { display: inline-block; margin-top: 8px; padding: 4px 10px; font-size: .6875rem; font-weight: 700; color: var(--age-accent-dark); background: var(--age-accent-light); border: 1px solid var(--age-accent-border); border-radius: 999px; }
.age-mode-desc { margin: 12px 0 18px; padding: 12px 14px; font-size: .8125rem; color: #c2410c; background: var(--age-accent-light); border: 1px solid var(--age-accent-border); border-radius: 12px; }

.age-field { margin-bottom: 16px; }
.age-field label { display: block; margin-bottom: 4px; font-size: .8125rem; font-weight: 700; color: var(--heading); }
.age-field small { display: block; margin-bottom: 8px; font-size: .6875rem; color: #94a3b8; }
.age-field input[type="date"] { width: 100%; padding: 12px 14px; font-size: .875rem; color: var(--heading); background: #fff; border: 1px solid #cbd5e1; border-radius: 12px; font-family: inherit; box-sizing: border-box; }
.age-field input[type="date"]:focus { outline: none; border-color: var(--age-accent); box-shadow: 0 0 0 3px rgba(234,88,12,.15); }
.age-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.age-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; font-size: .8125rem; font-weight: 700; border-radius: 10px; border: none; cursor: pointer; transition: background .15s; font-family: inherit; }
.age-btn i { width: 16px; height: 16px; }
.age-btn--primary { width: 100%; margin-top: 8px; padding: 14px 20px; font-size: .9375rem; color: #fff; background: var(--age-accent); }
.age-btn--primary:hover { background: var(--age-accent-dark); }
.age-btn--outline { color: var(--age-accent); background: #fff; border: 1px solid var(--age-accent-border); }
.age-btn--outline:hover { background: var(--age-accent-light); }
.age-btn--green { color: #059669; border-color: #a7f3d0; }
.age-btn--green:hover { background: #ecfdf5; }
.age-btn--red { color: #dc2626; border-color: #fecaca; }
.age-btn--red:hover { background: #fef2f2; }

.age-example-box { margin-top: 16px; padding: 12px 14px; font-size: .75rem; line-height: 1.5; color: #2563eb; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 12px; }

.age-result-content { flex: 1; display: flex; flex-direction: column; }
.age-result-header { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.age-result-header__icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: var(--age-accent-light); color: var(--age-accent); }
.age-result-header__icon i { width: 20px; height: 20px; }
.age-result-header strong { font-size: .9375rem; color: var(--heading); }

.age-ymd-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.age-ymd-box { padding: 18px 12px; text-align: center; background: #f8fafc; border: 1px solid var(--border); border-radius: 14px; }
.age-ymd-box span { display: block; font-size: 2rem; font-weight: 800; color: var(--age-accent); line-height: 1.1; }
.age-ymd-box small { display: block; margin-top: 6px; font-size: .6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #94a3b8; }

.age-single-result { text-align: center; padding: 24px 16px; margin-bottom: 20px; }
.age-single-result span { display: block; font-size: 3rem; font-weight: 800; color: var(--age-accent); line-height: 1; }
.age-single-result small { display: block; margin-top: 8px; font-size: .8125rem; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: .05em; }

.age-zodiac-result { text-align: center; padding: 28px 16px; margin-bottom: 20px; }
.age-zodiac-result span { display: block; font-size: 2.25rem; font-weight: 800; color: var(--age-accent); }

.age-result-summary { padding: 14px; background: #f8fafc; border: 1px solid var(--border); border-radius: 12px; }
.age-result-summary span { display: block; margin-bottom: 6px; font-size: .6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #94a3b8; }
.age-result-summary p { margin: 0; font-size: .875rem; color: var(--heading); line-height: 1.5; }

.age-result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 20px; }
.age-result-actions .age-btn { flex: 1; min-width: 120px; }

.age-all-modes { padding: 48px 0; background: #fff7ed; border-top: 1px solid var(--age-accent-border); border-bottom: 1px solid var(--age-accent-border); }
.age-mode-grid--compact { margin-bottom: 0; }
.age-mode-chip { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px; background: #fff; border: 1px solid var(--border); border-radius: 14px; cursor: pointer; font-family: inherit; font-size: .625rem; font-weight: 600; color: var(--heading); transition: border-color .15s, box-shadow .15s; }
.age-mode-chip:hover { border-color: var(--age-accent-border); box-shadow: 0 4px 16px rgba(234,88,12,.08); }
.age-mode-chip__icon { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; }
.age-mode-chip__icon i { width: 16px; height: 16px; }
.age-mode-chip--orange .age-mode-chip__icon { background: #ffedd5; color: #ea580c; }
.age-mode-chip--green .age-mode-chip__icon { background: #d1fae5; color: #059669; }
.age-mode-chip--orange .age-mode-chip__icon { background: #ffedd5; color: #ea580c; }
.age-mode-chip--red .age-mode-chip__icon { background: #fee2e2; color: #dc2626; }
.age-mode-chip--blue .age-mode-chip__icon { background: #dbeafe; color: #2563eb; }
.age-mode-chip--teal .age-mode-chip__icon { background: #ccfbf1; color: #0d9488; }
.age-mode-chip--yellow .age-mode-chip__icon { background: #fef9c3; color: #ca8a04; }
.age-mode-chip--pink .age-mode-chip__icon { background: #fce7f3; color: #db2777; }

.age-info { padding: 56px 0; background: var(--bg-section); }
.age-info__grid { display: grid; grid-template-columns: 1fr 300px; gap: 32px; align-items: start; }
.age-about-content h2 { margin: 0 0 16px; font-size: 1.5rem; font-weight: 800; color: var(--heading); }
.age-about-content__lead { margin: 0 0 12px; font-size: .9375rem; line-height: 1.65; color: #475569; }
.age-about-content__text { margin: 0 0 28px; font-size: .875rem; line-height: 1.65; color: #64748b; }
.age-about-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 28px; }
.age-about-feature { display: flex; gap: 12px; padding: 14px; background: #fff; border: 1px solid var(--border); border-radius: 14px; }
.age-about-feature__icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0; }
.age-about-feature__icon i { width: 20px; height: 20px; }
.age-about-feature__icon--orange { background: #ffedd5; color: #ea580c; }
.age-about-feature__icon--blue { background: #dbeafe; color: #2563eb; }
.age-about-feature__icon--green { background: #d1fae5; color: #059669; }
.age-about-feature__icon--yellow { background: #fef9c3; color: #ca8a04; }
.age-about-feature__icon--orange { background: #ffedd5; color: #ea580c; }
.age-about-feature__icon--teal { background: #ccfbf1; color: #0d9488; }
.age-about-feature strong { display: block; font-size: .8125rem; color: var(--heading); }
.age-about-feature p { margin: 4px 0 0; font-size: .75rem; color: #94a3b8; line-height: 1.45; }

.age-side-card { padding: 22px; background: #fff; border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 4px 20px rgba(15,23,42,.04); }
.age-side-card--tips { background: linear-gradient(180deg, #fffbeb 0%, #fff 100%); border-color: #fde68a; }
.age-side-card__title { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; font-size: .9375rem; font-weight: 700; color: var(--heading); }
.age-side-card__title i { width: 18px; height: 18px; color: var(--age-accent); }
.age-tips-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.age-tips-head__icon { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; background: #fef3c7; color: #d97706; }
.age-tips-head__icon i { width: 18px; height: 18px; }
.age-tips-head h3 { margin: 0; font-size: .9375rem; font-weight: 700; }
.age-tips-list { margin: 0; padding: 0; list-style: none; }
.age-tips-list li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; font-size: .8125rem; color: #64748b; line-height: 1.5; border-bottom: 1px solid #f1f5f9; }
.age-tips-list li:last-child { border-bottom: none; }
.age-tips-list__check { display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: #d1fae5; color: #059669; flex-shrink: 0; margin-top: 2px; }
.age-tips-list__check i { width: 12px; height: 12px; }

.age-tools-list { margin: 0; padding: 0; list-style: none; }
.age-tools-link { display: flex; align-items: center; gap: 10px; padding: 10px 12px; font-size: .8125rem; font-weight: 600; color: var(--heading); text-decoration: none; border-radius: 10px; transition: background .15s; }
.age-tools-link:hover { background: #f8fafc; }
.age-tools-link.is-current { background: var(--age-accent-light); color: var(--age-accent-dark); }
.age-tools-link__icon { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; background: #f1f5f9; }
.age-tools-link__icon i { width: 16px; height: 16px; }
.age-view-all { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: .8125rem; font-weight: 700; color: var(--age-accent); text-decoration: none; }

.age-steps-section { padding: 56px 0; background: #fff7ed; }
.age-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.age-step { position: relative; padding: 20px 16px; background: #fff; border: 1px solid var(--border); border-radius: 16px; text-align: center; }
.age-step__num { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin: 0 auto 12px; font-size: .875rem; font-weight: 800; color: #fff; background: var(--age-accent); border-radius: 50%; }
.age-step strong { display: block; margin-bottom: 6px; font-size: .8125rem; color: var(--heading); }
.age-step p { margin: 0; font-size: .75rem; color: #94a3b8; line-height: 1.45; }

.age-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px); padding: 12px 20px; font-size: .8125rem; font-weight: 600; color: #fff; background: #1e293b; border-radius: 10px; opacity: 0; pointer-events: none; transition: transform .3s, opacity .3s; z-index: 9999; }
.age-toast.is-visible { transform: translateX(-50%) translateY(0); opacity: 1; }

.age-animate-in { animation: age-fade-up .5s ease both; }
.age-animate-in--delay { animation-delay: .08s; }
@keyframes age-fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1100px) {
    .age-hero__grid { grid-template-columns: 1fr; }
    .age-hero__visual { display: none; }
    .age-mode-grid, .age-mode-grid--compact { grid-template-columns: repeat(3, 1fr); }
    .age-calc-grid { grid-template-columns: 1fr; }
    .age-info__grid { grid-template-columns: 1fr; }
    .age-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .age-mode-grid, .age-mode-grid--compact { grid-template-columns: repeat(2, 1fr); }
    .age-about-features { grid-template-columns: 1fr; }
    .age-field-row { grid-template-columns: 1fr; }
    .age-steps { grid-template-columns: 1fr; }
    .age-ymd-grid { grid-template-columns: 1fr; }
}

[data-theme="dark"] .age-card,
[data-theme="dark"] .age-mode-btn,
[data-theme="dark"] .age-mode-chip,
[data-theme="dark"] .age-step,
[data-theme="dark"] .age-side-card,
[data-theme="dark"] .age-about-feature { background: var(--bg-section); border-color: var(--border); }
[data-theme="dark"] .age-mode-btn.is-active { background: linear-gradient(180deg, #431407 0%, var(--bg-section) 100%); }
[data-theme="dark"] .age-field input[type="date"] { background: #0f172a; border-color: var(--border); color: var(--text); }
[data-theme="dark"] .age-mode-desc { background: rgba(234,88,12,.15); border-color: #9a3412; color: #fdba74; }
[data-theme="dark"] .age-example-box { background: rgba(37,99,235,.12); border-color: #1e3a8a; color: #93c5fd; }
[data-theme="dark"] .age-ymd-box { background: #1a2332; }
[data-theme="dark"] .age-result-summary { background: #1a2332; }
[data-theme="dark"] .age-all-modes,
[data-theme="dark"] .age-steps-section { background: #1c1008; border-color: #78350f; }
[data-theme="dark"] .age-btn--outline { background: #1a2332; border-color: #9a3412; color: #fdba74; }
[data-theme="dark"] .age-btn--primary:hover { background: #c2410c; }
[data-theme="dark"] .age-tools-link.is-current { background: #431407; color: #fdba74; }
[data-theme="dark"] .age-hero__float { background: var(--bg-section); border-color: var(--border); }
[data-theme="dark"] .age-side-card--tips { background: linear-gradient(180deg, rgba(120,53,15,.15) 0%, var(--bg-section) 100%); border-color: #78350f; }
