/*
 Theme Name:   Tayyari - MCQ Prep Platform
 Theme URI:    https://pakmcq.com.pk
 Description:  GeneratePress child theme for PakMCQ. One visual system for all four sections: design tokens with light and dark themes, section accents, mobile-first components.
 Author:       Tayyari Team
 Template:     generatepress
 Version:      1.6.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  tayyari
*/

/* ============================================
   1. FONTS (self-hosted; the Urdu face is fetched only when text uses it)
   ============================================ */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('assets/fonts/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Noto Nastaliq Urdu';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('assets/fonts/noto-nastaliq-urdu-arabic.woff2') format('woff2');
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

/* ============================================
   2. DESIGN TOKENS
   Colours, spacing, radius, shadow and type are defined once here. Light is the default; dark applies when the
   visitor chose it (data-theme="dark") or, with no choice made, when the device prefers it.
   ============================================ */
:root {
    color-scheme: light;

    /* Brand: deep green. Accent: amber (streaks, highlights). */
    --ty-primary: #0D6B3F;
    --ty-primary-hover: #094D2D;
    --ty-primary-soft: #E6F5ED;
    --ty-on-primary: #FFFFFF;
    --ty-accent: #E5960A;
    --ty-accent-soft: #FFF3D6;
    --ty-accent-text: #7A4A00;

    /* Right / wrong: always shown with a tick or cross icon as well */
    --ty-correct: #15803D;
    --ty-correct-bg: #DCFCE7;
    --ty-wrong: #B91C1C;
    --ty-wrong-bg: #FEE2E2;

    /* Surfaces and text */
    --ty-bg: #FFFFFF;
    --ty-bg-alt: #F4F8F5;
    --ty-bg-card: #FFFFFF;
    --ty-text: #14201A;
    --ty-text-secondary: #3D4D45;
    --ty-text-muted: #596861;
    --ty-border: #D8E2DC;
    --ty-overlay: rgba(10, 20, 15, .55);

    /* Section accents. Used for hero tint, nav indicator and icons, never as text colour on white. */
    --sec-prep: #0D6B3F;
    --sec-academics: #2563EB;
    --sec-careers: #D97706;
    --sec-labs: #7C3AED;
    --ty-section: var(--ty-primary);

    /* Spacing */
    --ty-gap-xs: .25rem;
    --ty-gap-sm: .5rem;
    --ty-gap-md: 1rem;
    --ty-gap-lg: 1.5rem;
    --ty-gap-xl: 2rem;
    --ty-gap-2xl: 3rem;
    --ty-gap-3xl: 4.5rem;

    /* Radius */
    --ty-radius-sm: 8px;
    --ty-radius-md: 12px;
    --ty-radius-lg: 18px;
    --ty-radius-full: 9999px;

    /* Shadows */
    --ty-shadow-sm: 0 1px 2px rgba(16, 40, 28, .06);
    --ty-shadow-md: 0 4px 14px rgba(16, 40, 28, .09);
    --ty-shadow-lg: 0 12px 32px rgba(16, 40, 28, .14);

    /* Type */
    --ty-font: 'Inter', 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', 'Urdu Typesetting', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --ty-font-urdu: 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', 'Urdu Typesetting', 'Alvi Nastaleeq', serif;
    --ty-text-sm: .875rem;
    --ty-text-base: 1rem;
    --ty-text-lg: 1.125rem;
    --ty-text-xl: 1.25rem;
    --ty-text-2xl: 1.5rem;
    --ty-text-3xl: 1.875rem;
    --ty-text-hero: clamp(1.9rem, 5.5vw, 3rem);
    --ty-q-size: 1.125rem;   /* question text: 18px on phones */
    --ty-q-line: 1.55;

    /* Layout and motion */
    --ty-header-h: 60px;
    --ty-tabbar-h: 60px;
    --ty-tap: 44px;
    --ty-ease: 170ms ease;
    --ty-focus: 0 0 0 3px var(--ty-bg), 0 0 0 5px var(--ty-primary);

    /* Reserved ad slot heights (prevent layout shift) */
    --ty-ad-leaderboard-h: 90px;
    --ty-ad-sidebar-h: 250px;
    --ty-ad-inline-h: 250px;
}
@media (min-width: 900px) { :root { --ty-q-size: 1.25rem; } }

:root[data-theme="dark"] {
    color-scheme: dark;
    --ty-primary: #3DB77A;
    --ty-primary-hover: #5FCB93;
    --ty-primary-soft: #153326;
    --ty-on-primary: #04130B;
    --ty-accent: #F5B731;
    --ty-accent-soft: #38290E;
    --ty-accent-text: #F7C66A;
    --ty-correct: #4ADE80;
    --ty-correct-bg: #12351F;
    --ty-wrong: #F87171;
    --ty-wrong-bg: #3A1818;
    --ty-bg: #0E1512;
    --ty-bg-alt: #121B17;
    --ty-bg-card: #17221D;
    --ty-text: #E8F0EB;
    --ty-text-secondary: #B8C6BE;
    --ty-text-muted: #8FA196;
    --ty-border: #2A3A33;
    --ty-overlay: rgba(0, 0, 0, .65);
    --ty-shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --ty-shadow-md: 0 4px 14px rgba(0, 0, 0, .45);
    --ty-shadow-lg: 0 12px 32px rgba(0, 0, 0, .55);
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;
        --ty-primary: #3DB77A;
        --ty-primary-hover: #5FCB93;
        --ty-primary-soft: #153326;
        --ty-on-primary: #04130B;
        --ty-accent: #F5B731;
        --ty-accent-soft: #38290E;
        --ty-accent-text: #F7C66A;
        --ty-correct: #4ADE80;
        --ty-correct-bg: #12351F;
        --ty-wrong: #F87171;
        --ty-wrong-bg: #3A1818;
        --ty-bg: #0E1512;
        --ty-bg-alt: #121B17;
        --ty-bg-card: #17221D;
        --ty-text: #E8F0EB;
        --ty-text-secondary: #B8C6BE;
        --ty-text-muted: #8FA196;
        --ty-border: #2A3A33;
        --ty-overlay: rgba(0, 0, 0, .65);
        --ty-shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
        --ty-shadow-md: 0 4px 14px rgba(0, 0, 0, .45);
        --ty-shadow-lg: 0 12px 32px rgba(0, 0, 0, .55);
    }
}

/* The section the visitor is in sets --ty-section for hero tint, nav indicator and icons. */
body.section-prep { --ty-section: var(--sec-prep); }
body.section-academics { --ty-section: var(--sec-academics); }
body.section-careers { --ty-section: var(--sec-careers); }
body.section-labs { --ty-section: var(--sec-labs); }
.ty-sec--prep { --c: var(--sec-prep); }
.ty-sec--academics { --c: var(--sec-academics); }
.ty-sec--careers { --c: var(--sec-careers); }
.ty-sec--labs { --c: var(--sec-labs); }

/* ============================================
   3. BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--ty-font);
    font-size: var(--ty-text-base);
    color: var(--ty-text);
    background: var(--ty-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    margin: 0;
}
body :where(h1, h2, h3, h4) { font-family: var(--ty-font); color: var(--ty-text); line-height: 1.25; font-weight: 700; margin: 0 0 var(--ty-gap-sm); letter-spacing: -.01em; }
body :where(p) { margin: 0 0 var(--ty-gap-md); }
a { color: var(--ty-primary); }
a:hover { color: var(--ty-primary-hover); }
img, svg { max-width: 100%; }
.ty-icon { flex-shrink: 0; vertical-align: -.2em; }
/* GeneratePress wrappers must not constrain our layouts */
.site-content, .site-main, #page { display: block; }
.site-footer, .inside-article { padding: 0; }

/* Accessibility */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: none; box-shadow: var(--ty-focus); border-radius: var(--ty-radius-sm); }
.ty-skip { position: absolute; left: 8px; top: -60px; z-index: 1000; background: var(--ty-primary); color: var(--ty-on-primary); padding: 10px 16px; border-radius: var(--ty-radius-sm); font-weight: 600; text-decoration: none; }
.ty-skip:focus { top: 8px; }
.ty-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.ty-hidden { display: none !important; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ============================================
   4. LAYOUT AND UTILITIES
   ============================================ */
.ty-container { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.ty-container--narrow { max-width: 720px; }
.ty-page { padding-top: var(--ty-gap-lg); padding-bottom: var(--ty-gap-2xl); }
.ty-stack { display: flex; flex-direction: column; gap: var(--ty-gap-md); }
.ty-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ty-gap-sm); }
.ty-row--between { justify-content: space-between; }
.ty-row--center { justify-content: center; }
.ty-grid { display: grid; gap: var(--ty-gap-lg); }
.ty-grid--2 { grid-template-columns: repeat(2, 1fr); }
.ty-grid--3 { grid-template-columns: repeat(3, 1fr); }
.ty-grid--4 { grid-template-columns: repeat(4, 1fr); }
.ty-grid--sidebar { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
@media (max-width: 900px) { .ty-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
    .ty-grid--2, .ty-grid--3, .ty-grid--sidebar { grid-template-columns: 1fr; }
}
.ty-text-center { text-align: center; }
.ty-muted { color: var(--ty-text-muted); }
.ty-mt-sm { margin-top: var(--ty-gap-sm); } .ty-mt-md { margin-top: var(--ty-gap-md); } .ty-mt-lg { margin-top: var(--ty-gap-lg); } .ty-mt-xl { margin-top: var(--ty-gap-xl); }
.ty-mb-0 { margin-bottom: 0; } .ty-mb-md { margin-bottom: var(--ty-gap-md); } .ty-mb-lg { margin-bottom: var(--ty-gap-lg); }
.ty-page-title { font-size: var(--ty-text-2xl); font-weight: 800; margin-bottom: var(--ty-gap-xs); }
@media (min-width: 769px) { .ty-page-title { font-size: var(--ty-text-3xl); } }
.ty-lead { color: var(--ty-text-secondary); font-size: var(--ty-text-lg); margin-bottom: var(--ty-gap-lg); }
.ty-section-title { font-size: var(--ty-text-xl); font-weight: 700; margin: var(--ty-gap-xl) 0 var(--ty-gap-md); }
.ty-eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ty-text-muted); }
.ty-notice { padding: var(--ty-gap-md); border-radius: var(--ty-radius-md); background: var(--ty-primary-soft); color: var(--ty-text); border: 1px solid var(--ty-border); }
.ty-notice--warn { background: var(--ty-accent-soft); color: var(--ty-text); border-color: var(--ty-accent); }
.ty-notice--error { background: var(--ty-wrong-bg); border-color: var(--ty-wrong); }

/* ============================================
   5. FORMS AND BUTTONS
   ============================================ */
.ty-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--ty-gap-md); }
.ty-field > label, .ty-label { font-size: var(--ty-text-sm); font-weight: 600; }
.ty-input, .ty-select {
    width: 100%; min-height: var(--ty-tap); padding: 10px 14px; border: 1.5px solid var(--ty-border); border-radius: var(--ty-radius-md);
    background: var(--ty-bg); color: var(--ty-text); font: inherit; transition: border-color var(--ty-ease);
}
.ty-input:focus, .ty-select:focus { border-color: var(--ty-primary); }
.ty-check { display: inline-flex; align-items: center; gap: 10px; min-height: var(--ty-tap); font-size: var(--ty-text-sm); cursor: pointer; }
.ty-check input { width: 20px; height: 20px; accent-color: var(--ty-primary); }
.ty-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.ty-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--ty-gap-sm);
    padding: 10px 20px; min-height: var(--ty-tap); border-radius: var(--ty-radius-md); border: 2px solid transparent;
    font: inherit; font-size: var(--ty-text-sm); font-weight: 600; line-height: 1.2; cursor: pointer; text-decoration: none; white-space: nowrap;
    transition: background var(--ty-ease), border-color var(--ty-ease), color var(--ty-ease), transform var(--ty-ease);
}
.ty-btn:active { transform: translateY(1px); }
.ty-btn[disabled], .ty-btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.ty-btn--primary { background: var(--ty-primary); color: var(--ty-on-primary); }
.ty-btn--primary:hover { background: var(--ty-primary-hover); color: var(--ty-on-primary); }
.ty-btn--accent { background: var(--ty-accent); color: #1B1300; }
.ty-btn--accent:hover { filter: brightness(1.06); color: #1B1300; }
.ty-btn--outline { background: transparent; border-color: var(--ty-border); color: var(--ty-text); }
.ty-btn--outline:hover { border-color: var(--ty-primary); color: var(--ty-primary); }
.ty-btn--ghost { background: transparent; color: var(--ty-text-secondary); }
.ty-btn--ghost:hover { background: var(--ty-bg-alt); color: var(--ty-text); }
.ty-btn--sm { padding: 6px 14px; }
.ty-btn--lg { padding: 14px 28px; font-size: var(--ty-text-base); min-height: 52px; }
.ty-btn--block { width: 100%; }
.ty-btn--icon { padding: 0; width: var(--ty-tap); }
.ty-btn.is-on { color: var(--ty-accent-text); background: var(--ty-accent-soft); }

.ty-chip, .ty-badge {
    display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: var(--ty-radius-full);
    font-size: .75rem; font-weight: 600; line-height: 1.2; background: var(--ty-bg-alt); color: var(--ty-text-secondary); border: 1px solid var(--ty-border);
}
.ty-badge--exam { background: var(--ty-primary-soft); color: var(--ty-primary); border-color: transparent; }
.ty-badge--fixed { background: var(--ty-correct-bg); color: var(--ty-correct); border-color: transparent; }
.ty-badge--updateable { background: var(--ty-accent-soft); color: var(--ty-accent-text); border-color: transparent; }
.ty-badge--expired { background: var(--ty-wrong-bg); color: var(--ty-wrong); border-color: transparent; }
.ty-badge--soon { background: var(--ty-accent-soft); color: var(--ty-accent-text); border-color: transparent; text-transform: uppercase; letter-spacing: .04em; font-size: .68rem; }

.ty-card {
    background: var(--ty-bg-card); border: 1px solid var(--ty-border); border-radius: var(--ty-radius-lg);
    padding: var(--ty-gap-lg); box-shadow: var(--ty-shadow-sm);
}
.ty-card__title { font-size: var(--ty-text-lg); font-weight: 700; margin-bottom: var(--ty-gap-xs); }
.ty-card__meta { font-size: var(--ty-text-sm); color: var(--ty-text-muted); }
.ty-card--link { display: block; text-decoration: none; color: inherit; transition: box-shadow var(--ty-ease), transform var(--ty-ease), border-color var(--ty-ease); }
.ty-card--link:hover { box-shadow: var(--ty-shadow-md); transform: translateY(-2px); border-color: var(--ty-primary); color: inherit; }

/* Skeleton loaders */
.ty-skel { position: relative; overflow: hidden; background: var(--ty-bg-alt); border-radius: var(--ty-radius-sm); min-height: 1em; }
.ty-skel::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--ty-text) 8%, transparent), transparent); animation: ty-shimmer 1.4s infinite; }
@keyframes ty-shimmer { to { transform: translateX(100%); } }
.ty-skel--line { height: 14px; margin-bottom: 10px; }
.ty-skel--title { height: 22px; width: 80%; margin-bottom: 18px; }
.ty-skel--opt { height: 54px; margin-bottom: 10px; border-radius: var(--ty-radius-md); }

/* Empty states */
.ty-empty { text-align: center; padding: var(--ty-gap-2xl) var(--ty-gap-md); color: var(--ty-text-secondary); }
.ty-empty .ty-icon { color: var(--ty-text-muted); margin-bottom: var(--ty-gap-sm); }
.ty-empty__title { font-size: var(--ty-text-lg); font-weight: 700; color: var(--ty-text); margin-bottom: 4px; }

/* ============================================
   6. HEADER, SUB-NAV, TAB BAR, FOOTER
   ============================================ */
.ty-header { background: var(--ty-bg-card); border-bottom: 1px solid var(--ty-border); position: sticky; top: 0; z-index: 100; }
.ty-header__inner { display: flex; align-items: center; gap: var(--ty-gap-md); min-height: var(--ty-header-h); }
.ty-logo { display: inline-flex; align-items: center; gap: 8px; font-size: var(--ty-text-xl); font-weight: 800; color: var(--ty-primary); text-decoration: none; letter-spacing: -.02em; min-height: var(--ty-tap); }
.ty-logo:hover { color: var(--ty-primary); }
.ty-logo__mark { color: var(--ty-primary); }
.ty-sections { display: flex; align-items: center; gap: 2px; margin-left: var(--ty-gap-sm); }
.ty-sections a {
    position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; min-height: var(--ty-tap);
    color: var(--ty-text-secondary); text-decoration: none; font-size: var(--ty-text-sm); font-weight: 600; border-radius: var(--ty-radius-sm);
}
.ty-sections a:hover { background: var(--ty-bg-alt); color: var(--ty-text); }
.ty-sections a::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 3px; border-radius: 3px; background: var(--c); transform: scaleX(0); transition: transform var(--ty-ease); }
.ty-sections a.is-active { color: var(--ty-text); }
.ty-sections a.is-active::after { transform: scaleX(1); }
.ty-sections .ty-icon { color: var(--c); }
.ty-sections .ty-badge--soon { padding: 2px 6px; }
.ty-header__spacer { flex: 1; }
.ty-hsearch { position: relative; flex: 0 1 280px; }
.ty-hsearch .ty-input { padding-left: 40px; min-height: 40px; border-radius: var(--ty-radius-full); background: var(--ty-bg-alt); }
.ty-hsearch .ty-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ty-text-muted); pointer-events: none; }
.ty-hsearch__toggle { display: none; }
.ty-sections--solo { --c: var(--ty-primary); }
/* Below 1000px the search box collapses to its icon so the menu keeps its room. */
@media (max-width: 1000px) {
    .ty-hsearch { display: none; position: absolute; left: 0; right: 0; top: 100%; flex: none; padding: 8px 16px; background: var(--ty-bg-card); border-bottom: 1px solid var(--ty-border); }
    .ty-hsearch.is-open { display: block; }
    .ty-hsearch .ty-icon { left: 30px; }
    .ty-hsearch__toggle { display: inline-flex; }
}
.ty-theme-toggle .ty-icon--sun { display: none; }
:root[data-theme="dark"] .ty-theme-toggle .ty-icon--sun { display: inline-block; }
:root[data-theme="dark"] .ty-theme-toggle .ty-icon--moon { display: none; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .ty-theme-toggle .ty-icon--sun { display: inline-block; }
    :root:not([data-theme="light"]) .ty-theme-toggle .ty-icon--moon { display: none; }
}
.ty-account { position: relative; }
.ty-account__btn { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--ty-border); background: var(--ty-primary-soft); color: var(--ty-primary); font: inherit; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.ty-account__btn:hover { border-color: var(--ty-primary); }
.ty-account__menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; background: var(--ty-bg-card); border: 1px solid var(--ty-border); border-radius: var(--ty-radius-md); box-shadow: var(--ty-shadow-lg); padding: 6px; z-index: 120; }
.ty-account__menu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; min-height: var(--ty-tap); border-radius: var(--ty-radius-sm); color: var(--ty-text); text-decoration: none; font-size: var(--ty-text-sm); font-weight: 500; }
.ty-account__menu a:hover { background: var(--ty-bg-alt); }
.ty-account__who { padding: 8px 12px; font-size: .8rem; color: var(--ty-text-muted); border-bottom: 1px solid var(--ty-border); margin-bottom: 4px; }
.ty-streak { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; background: var(--ty-accent-soft); color: var(--ty-accent-text); border-radius: var(--ty-radius-full); font-weight: 700; font-size: var(--ty-text-sm); }

.ty-subnav { background: var(--ty-bg-alt); border-bottom: 1px solid var(--ty-border); }
.ty-subnav .ty-container { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.ty-subnav a { display: inline-flex; align-items: center; min-height: 42px; padding: 0 14px; font-size: var(--ty-text-sm); font-weight: 600; color: var(--ty-text-secondary); text-decoration: none; white-space: nowrap; border-bottom: 3px solid transparent; }
.ty-subnav a:hover { color: var(--ty-text); }
.ty-subnav a.is-active { color: var(--ty-primary); border-bottom-color: var(--ty-section); }

.ty-tabbar { display: none; }

@media (max-width: 768px) {
    .ty-header__inner { gap: 6px; }
    .ty-sections { order: 5; flex-basis: 100%; margin: 0 -16px; padding: 0 12px 6px; overflow-x: auto; scrollbar-width: none; }
    .ty-header__inner { flex-wrap: wrap; padding-top: 4px; }
    .ty-sections { justify-content: space-between; }
    .ty-sections a { padding: 6px 8px; min-height: 40px; white-space: nowrap; font-size: .8125rem; gap: 4px; }
    .ty-sections a::after { left: 8px; right: 8px; }
    .ty-sections .ty-badge--soon { display: none; }
    .ty-sections--solo { display: none; }
    .ty-streak { display: none; }
    .ty-subnav { display: none; }
    body.has-tabbar:not(.ty-focus-mode) { padding-bottom: calc(var(--ty-tabbar-h) + env(safe-area-inset-bottom)); }
    .ty-tabbar {
        display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
        background: var(--ty-bg-card); border-top: 1px solid var(--ty-border); padding-bottom: env(safe-area-inset-bottom);
        box-shadow: 0 -2px 10px rgba(16, 40, 28, .06);
    }
    .ty-tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: var(--ty-tabbar-h); font-size: .7rem; font-weight: 600; color: var(--ty-text-muted); text-decoration: none; }
    .ty-tabbar a.is-active { color: var(--ty-primary); }
    .ty-tabbar a.is-active .ty-icon { stroke-width: 2.6; }
}

.ty-footer { background: var(--ty-bg-alt); border-top: 1px solid var(--ty-border); padding: var(--ty-gap-2xl) 0 var(--ty-gap-lg); margin-top: var(--ty-gap-2xl); }
.ty-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--ty-gap-xl); }
@media (max-width: 768px) { .ty-footer__grid { grid-template-columns: 1fr 1fr; } .ty-footer__about { grid-column: 1 / -1; } }
.ty-footer__grid--wide { grid-template-columns: 2fr repeat(4, 1fr); }
@media (max-width: 768px) { .ty-footer__grid--wide { grid-template-columns: 1fr 1fr; } }
.ty-footer__title { font-weight: 700; margin-bottom: var(--ty-gap-sm); }
.ty-footer__about p { font-size: var(--ty-text-sm); color: var(--ty-text-secondary); max-width: 320px; }
.ty-footer a { display: block; padding: 6px 0; color: var(--ty-text-secondary); text-decoration: none; font-size: var(--ty-text-sm); }
.ty-footer a:hover { color: var(--ty-primary); }
@media (max-width: 768px) { .ty-footer a { display: flex; align-items: center; min-height: var(--ty-tap); padding: 0; } }
.ty-footer__bottom { margin-top: var(--ty-gap-xl); padding-top: var(--ty-gap-md); border-top: 1px solid var(--ty-border); text-align: center; font-size: var(--ty-text-sm); color: var(--ty-text-muted); }

/* ============================================
   7. AD SLOTS (space reserved, never in focus mode)
   ============================================ */
.ty-ad-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ty-bg-alt);
    border: 1px dashed var(--ty-border);
    border-radius: var(--ty-radius-sm);
    overflow: hidden;
    margin: var(--ty-gap-lg) 0;
    position: relative;
    max-width: 100%;
    box-sizing: border-box;
}
.ty-ad-slot::before {
    content: 'Advertisement';
    position: absolute;
    top: 4px;
    left: 8px;
    font-size: 10px;
    color: var(--ty-text-muted);
    text-transform: uppercase;
    letter-spacing: .5px;
    opacity: .7;
    pointer-events: none;
}
.ty-ad-slot ins,
.ty-ad-slot iframe {
    max-width: 100% !important;
    margin: 0 auto !important;
    display: block !important;
}
.ty-ad-slot--leaderboard { min-height: var(--ty-ad-leaderboard-h); max-width: 728px; margin-left: auto; margin-right: auto; }
.ty-ad-slot--sidebar { min-height: var(--ty-ad-sidebar-h); width: 100%; }
.ty-ad-slot--inline { min-height: var(--ty-ad-inline-h); width: 100%; }
.ty-ad-slot--sticky { position: sticky; top: 80px; }
.ty-focus-mode .ty-ad-slot { display: none !important; }
.ty-session .ty-ad-slot { display: none !important; }

@media (max-width: 768px) {
    :root {
        --ty-ad-leaderboard-h: 60px;
    }
    .ty-ad-slot--sticky {
        position: static !important;
        top: auto !important;
    }
    .ty-ad-slot {
        margin: var(--ty-gap-md) 0;
    }
}

/* ============================================
   8. QUESTION CARD (one style everywhere)
   Option states: default, selected, correct, wrong, marked.
   ============================================ */
.ty-question { background: var(--ty-bg-card); border: 1px solid var(--ty-border); border-radius: var(--ty-radius-lg); padding: var(--ty-gap-lg); margin-bottom: var(--ty-gap-lg); box-shadow: var(--ty-shadow-sm); }
@media (min-width: 769px) { .ty-question { padding: var(--ty-gap-xl); } }
.ty-question__top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: var(--ty-gap-md); }
.ty-question__number { font-size: var(--ty-text-sm); color: var(--ty-text-muted); font-weight: 600; margin-right: auto; }
.ty-question__text { font-size: var(--ty-q-size); font-weight: 600; line-height: var(--ty-q-line); margin: 0 0 var(--ty-gap-lg); color: var(--ty-text); letter-spacing: 0; }
.ty-question__badges { display: flex; flex-wrap: wrap; gap: 6px; }
.ty-question.is-marked { border-color: var(--ty-accent); box-shadow: inset 4px 0 0 var(--ty-accent), var(--ty-shadow-sm); }
.ty-question--urdu .ty-question__text, .ty-question--urdu .ty-option__text { font-family: var(--ty-font-urdu); direction: rtl; text-align: right; font-size: 1.375rem; line-height: 2.1; font-weight: 500; }
.ty-question--urdu .ty-option { flex-direction: row-reverse; text-align: right; }
[lang="ur"][dir="rtl"] { font-family: var(--ty-font-urdu); line-height: 2.1; }

.ty-options { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; border: 0; }
.ty-option {
    display: flex; align-items: center; gap: var(--ty-gap-md); width: 100%; text-align: left; min-height: 56px; padding: 12px 16px;
    border: 2px solid var(--ty-border); border-radius: var(--ty-radius-md); background: var(--ty-bg); color: var(--ty-text);
    font: inherit; cursor: pointer; transition: border-color var(--ty-ease), background var(--ty-ease);
}
.ty-option:hover { border-color: var(--ty-primary); background: var(--ty-primary-soft); }
.ty-option__letter { width: 34px; height: 34px; border-radius: 50%; background: var(--ty-bg-alt); border: 1px solid var(--ty-border); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: var(--ty-text-sm); flex-shrink: 0; transition: background var(--ty-ease), color var(--ty-ease); }
.ty-option__text { flex: 1; font-size: var(--ty-text-base); line-height: 1.5; }
.ty-option .ty-option__icon { display: none; }
.ty-option--selected { border-color: var(--ty-primary); background: var(--ty-primary-soft); }
.ty-option--selected .ty-option__letter { background: var(--ty-primary); color: var(--ty-on-primary); border-color: var(--ty-primary); }
.ty-option--correct { border-color: var(--ty-correct); background: var(--ty-correct-bg); }
.ty-option--correct .ty-option__letter { display: none; }
.ty-option--correct .ty-option__icon { display: inline-flex; color: var(--ty-correct); }
.ty-option--wrong { border-color: var(--ty-wrong); background: var(--ty-wrong-bg); }
.ty-option--wrong .ty-option__letter { display: none; }
.ty-option--wrong .ty-option__icon { display: inline-flex; color: var(--ty-wrong); }
.ty-option--marked { border-color: var(--ty-accent); background: var(--ty-accent-soft); }
.ty-option--marked .ty-option__letter { background: var(--ty-accent); color: #1B1300; border-color: var(--ty-accent); }
.ty-option--disabled { pointer-events: none; }
.ty-option--disabled:not(.ty-option--correct):not(.ty-option--wrong) { opacity: .6; }
.ty-option__icon { width: 34px; height: 34px; align-items: center; justify-content: center; flex-shrink: 0; }

.ty-explanation { background: var(--ty-bg-alt); border-left: 4px solid var(--ty-primary); border-radius: 0 var(--ty-radius-md) var(--ty-radius-md) 0; padding: var(--ty-gap-md) var(--ty-gap-lg); margin-top: var(--ty-gap-lg); animation: ty-slide-open 220ms ease both; }
@keyframes ty-slide-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.ty-explanation__title { font-weight: 700; font-size: .75rem; color: var(--ty-primary); margin-bottom: var(--ty-gap-xs); text-transform: uppercase; letter-spacing: .08em; }
.ty-question__actions { display: flex; flex-wrap: wrap; gap: var(--ty-gap-sm); margin-top: var(--ty-gap-lg); }
.ty-saved { display: inline-flex; align-items: center; gap: 4px; font-size: .8rem; font-weight: 600; color: var(--ty-correct); opacity: 0; transition: opacity var(--ty-ease); }
.ty-saved.is-shown { opacity: 1; }

/* ============================================
   9. PRACTICE
   ============================================ */
.ty-filters { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--ty-gap-md); margin-bottom: var(--ty-gap-md); }
@media (max-width: 560px) { .ty-filters { grid-template-columns: 1fr; } }
.ty-progress { width: 100%; height: 8px; background: var(--ty-bg-alt); border: 1px solid var(--ty-border); border-radius: 4px; overflow: hidden; }
.ty-progress__fill { height: 100%; width: 0; background: var(--ty-primary); border-radius: 4px; transition: width 300ms ease; }
.ty-progress__meta { display: flex; justify-content: space-between; font-size: var(--ty-text-sm); color: var(--ty-text-muted); margin-bottom: 6px; }
.ty-practice-nav { display: flex; justify-content: space-between; align-items: center; gap: var(--ty-gap-sm); margin-top: var(--ty-gap-md); }
.ty-kbd-hint { font-size: .75rem; color: var(--ty-text-muted); text-align: center; margin-top: var(--ty-gap-sm); }
.ty-kbd-hint kbd { border: 1px solid var(--ty-border); border-bottom-width: 2px; border-radius: 4px; padding: 0 5px; font: inherit; font-size: .72rem; background: var(--ty-bg-alt); }
@media (hover: none) { .ty-kbd-hint { display: none; } }
.ty-prompt { display: flex; align-items: center; gap: var(--ty-gap-md); padding: var(--ty-gap-md); border-radius: var(--ty-radius-md); background: var(--ty-primary-soft); border: 1px solid var(--ty-border); margin-top: var(--ty-gap-md); }
.ty-prompt__body { flex: 1; font-size: var(--ty-text-sm); }
.ty-prompt .ty-icon { color: var(--ty-accent); }
/* Practice set-up: subject quick-picks, segmented question count */
.ty-qchips { display: flex; flex-wrap: wrap; gap: var(--ty-gap-sm); margin-bottom: var(--ty-gap-xs); }
.ty-qchip { min-height: var(--ty-tap); padding: 0 16px; border-radius: var(--ty-radius-full); border: 1px solid var(--ty-border); background: var(--ty-bg-alt); color: var(--ty-text-secondary); font: inherit; font-size: var(--ty-text-sm); font-weight: 600; cursor: pointer; transition: background var(--ty-ease), border-color var(--ty-ease), color var(--ty-ease); }
.ty-qchip:hover { border-color: var(--ty-primary); color: var(--ty-primary); }
.ty-qchip[aria-pressed="true"] { background: var(--ty-primary); border-color: var(--ty-primary); color: var(--ty-on-primary); }
.ty-qchip[aria-pressed="true"]::before { content: "\2713"; margin-right: 6px; }
.ty-fieldset { border: 0; padding: 0; margin-inline: 0; min-width: 0; }
.ty-fieldset > legend { padding: 0; margin-bottom: 6px; font-size: var(--ty-text-sm); font-weight: 600; }
.ty-seg { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--ty-border); border-radius: var(--ty-radius-md); overflow: hidden; background: var(--ty-bg-alt); }
.ty-seg__opt { position: relative; display: flex; }
.ty-seg__opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.ty-seg__opt span { flex: 1; display: flex; align-items: center; justify-content: center; min-height: var(--ty-tap); border-left: 1px solid var(--ty-border); font-size: var(--ty-text-sm); font-weight: 600; color: var(--ty-text-secondary); transition: background var(--ty-ease), color var(--ty-ease); }
.ty-seg__opt:first-child span { border-left: 0; }
.ty-seg__opt:hover span { color: var(--ty-primary); }
.ty-seg__opt input:checked + span { background: var(--ty-primary); color: var(--ty-on-primary); }
.ty-seg__opt input:focus-visible { box-shadow: none; }
.ty-seg__opt input:focus-visible + span { box-shadow: inset 0 0 0 3px var(--ty-bg), inset 0 0 0 5px var(--ty-primary); }
/* Quiet lines after an answer: suggest an explanation, answer checked date */
.ty-after { margin-top: var(--ty-gap-md); }
.ty-quiet { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; font-size: var(--ty-text-sm); color: var(--ty-text-muted); }
.ty-linkbtn { min-height: var(--ty-tap); padding: 0 4px; background: none; border: 0; font: inherit; color: var(--ty-primary); text-decoration: underline; cursor: pointer; }
.ty-linkbtn:hover { color: var(--ty-primary-hover); }

.ty-stat { text-align: center; padding: var(--ty-gap-md); }
.ty-stat__value { font-size: var(--ty-text-3xl); font-weight: 800; color: var(--ty-primary); font-variant-numeric: tabular-nums; line-height: 1.1; }
.ty-stat__value--correct { color: var(--ty-correct); }
.ty-stat__value--wrong { color: var(--ty-wrong); }
.ty-stat__label { font-size: var(--ty-text-sm); color: var(--ty-text-muted); margin-top: var(--ty-gap-xs); }
.ty-sidebar { display: flex; flex-direction: column; gap: var(--ty-gap-lg); }
.ty-sidebar__section { background: var(--ty-bg-card); border: 1px solid var(--ty-border); border-radius: var(--ty-radius-lg); padding: var(--ty-gap-lg); }
.ty-sidebar__title { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ty-text-muted); margin-bottom: var(--ty-gap-md); }
.ty-linklist { display: flex; flex-direction: column; gap: 8px; }
.ty-kv { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--ty-border); }
.ty-kv:last-child { border-bottom: 0; }

/* ============================================
   10. SCORE RING, SUBJECT BARS, RESULTS
   ============================================ */
.ty-ring { position: relative; width: 168px; height: 168px; margin: 0 auto; }
.ty-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ty-ring__track { stroke: var(--ty-bg-alt); }
.ty-ring__value { stroke: var(--ty-primary); stroke-linecap: round; stroke-dasharray: 440; stroke-dashoffset: 440; }
.ty-ring.is-animated .ty-ring__value { transition: stroke-dashoffset 1s cubic-bezier(.2, .8, .2, 1); }
.ty-ring__label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ty-ring__percent { font-size: var(--ty-text-3xl); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.ty-ring__caption { font-size: var(--ty-text-sm); color: var(--ty-text-muted); }
.ty-results-hero { display: grid; gap: var(--ty-gap-lg); align-items: center; text-align: center; }
@media (min-width: 769px) { .ty-results-hero { grid-template-columns: 200px 1fr; text-align: left; } }
.ty-statrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: var(--ty-gap-sm); }
.ty-bars { display: flex; flex-direction: column; gap: 14px; }
.ty-bar__head { display: flex; justify-content: space-between; font-size: var(--ty-text-sm); margin-bottom: 4px; }
.ty-bar__track { height: 10px; border-radius: 5px; background: var(--ty-bg-alt); border: 1px solid var(--ty-border); overflow: hidden; }
.ty-bar__fill { height: 100%; width: 0; border-radius: 5px; background: var(--ty-primary); transition: width 700ms ease; }
.ty-bar__fill--low { background: var(--ty-wrong); }
.ty-bar__fill--mid { background: var(--ty-accent); }
.ty-review-item { margin-bottom: var(--ty-gap-lg); }

/* Leaderboard */
.ty-leaderboard__row { display: flex; align-items: center; gap: var(--ty-gap-md); padding: 12px var(--ty-gap-xs); border-bottom: 1px solid var(--ty-border); }
.ty-leaderboard__rank { width: 44px; text-align: center; font-weight: 800; color: var(--ty-text-muted); }
.ty-leaderboard__rank--gold { color: #A67C00; }
.ty-leaderboard__rank--silver { color: #6B7280; }
.ty-leaderboard__rank--bronze { color: #9A5B22; }
:root[data-theme="dark"] .ty-leaderboard__rank--gold { color: #F5C542; }
:root[data-theme="dark"] .ty-leaderboard__rank--silver { color: #CBD5E1; }
:root[data-theme="dark"] .ty-leaderboard__rank--bronze { color: #E0A070; }
.ty-leaderboard__name { flex: 1; font-weight: 600; }
.ty-leaderboard__score { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ty-primary); }

/* ============================================
   11. TEST RUNNER (full screen, calm: no header, no ads)
   ============================================ */
body.ty-runner { background: var(--ty-bg-alt); min-height: 100vh; }
.ty-runner__bar { position: sticky; top: 0; z-index: 60; background: var(--ty-bg-card); border-bottom: 1px solid var(--ty-border); }
.ty-runner__bar .ty-container { display: flex; align-items: center; gap: var(--ty-gap-sm); min-height: 56px; }
.ty-runner__title { flex: 1; min-width: 0; font-size: var(--ty-text-sm); font-weight: 700; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ty-runner__time { font-variant-numeric: tabular-nums; font-weight: 700; font-size: var(--ty-text-base); display: inline-flex; align-items: center; gap: 6px; min-width: 76px; justify-content: flex-end; }
.ty-runner__time.is-warning { color: var(--ty-accent-text); }
.ty-runner__time.is-danger { color: var(--ty-wrong); }
.ty-timerbar { height: 4px; background: var(--ty-border); }
.ty-timerbar__fill { height: 100%; width: 100%; background: var(--ty-primary); transition: width 1s linear; }
.ty-timerbar__fill.is-warning { background: var(--ty-accent); }
.ty-timerbar__fill.is-danger { background: var(--ty-wrong); }
.ty-runner__cutoff { margin: 0 0 var(--ty-gap-lg); padding: 10px 14px; border-radius: 8px; border: 1px solid currentColor; font-size: .9rem; font-weight: 600; }
.ty-runner__main { max-width: 760px; margin: 0 auto; padding: var(--ty-gap-lg) 16px calc(96px + env(safe-area-inset-bottom)); }
.ty-runner__foot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--ty-bg-card); border-top: 1px solid var(--ty-border); padding-bottom: env(safe-area-inset-bottom); }
.ty-runner__foot .ty-container { display: flex; align-items: center; justify-content: space-between; gap: var(--ty-gap-sm); min-height: 68px; max-width: 760px; }
.ty-drawer { position: fixed; inset: 0; z-index: 150; }
.ty-drawer__scrim { position: absolute; inset: 0; background: var(--ty-overlay); }
.ty-drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(360px, 92vw); background: var(--ty-bg-card); box-shadow: var(--ty-shadow-lg); padding: var(--ty-gap-lg) var(--ty-gap-md); overflow-y: auto; animation: ty-drawer-in 200ms ease both; }
@keyframes ty-drawer-in { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.ty-palette { display: grid; grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); gap: 8px; }
.ty-palette__item { height: 48px; display: flex; align-items: center; justify-content: center; border-radius: var(--ty-radius-sm); border: 2px solid var(--ty-border); font: inherit; font-size: var(--ty-text-sm); font-weight: 600; cursor: pointer; background: var(--ty-bg); color: var(--ty-text); }
.ty-palette__item--answered { background: var(--ty-primary-soft); border-color: var(--ty-primary); color: var(--ty-primary); }
.ty-palette__item--marked { background: var(--ty-accent-soft); border-color: var(--ty-accent); color: var(--ty-accent-text); }
.ty-palette__item--current { background: var(--ty-primary); border-color: var(--ty-primary); color: var(--ty-on-primary); }
.ty-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: var(--ty-gap-md); font-size: .8rem; color: var(--ty-text-secondary); }
.ty-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-right: 4px; border: 1px solid var(--ty-border); }
.ty-legend .is-ans { background: var(--ty-primary-soft); border-color: var(--ty-primary); }
.ty-legend .is-mark { background: var(--ty-accent-soft); border-color: var(--ty-accent); }
.ty-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 16px; background: var(--ty-overlay); }
.ty-modal__box { width: 100%; max-width: 420px; background: var(--ty-bg-card); border-radius: var(--ty-radius-lg); padding: var(--ty-gap-xl); box-shadow: var(--ty-shadow-lg); text-align: center; }
.ty-modal__counts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: var(--ty-gap-md) 0 var(--ty-gap-lg); }
.ty-modal__counts b { display: block; font-size: var(--ty-text-2xl); font-variant-numeric: tabular-nums; }
.ty-modal__counts span { font-size: .8rem; color: var(--ty-text-muted); }
.ty-modal__actions { display: flex; gap: var(--ty-gap-sm); }
.ty-modal__actions .ty-btn { flex: 1; }

/* ============================================
   12. TOASTS, OFFLINE BANNER, DIALOGS
   ============================================ */
.ty-toasts { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 400; display: flex; flex-direction: column; gap: 8px; width: min(92vw, 380px); pointer-events: none; }
body.has-tabbar .ty-toasts { bottom: calc(var(--ty-tabbar-h) + 16px + env(safe-area-inset-bottom)); }
@media (min-width: 769px) { body.has-tabbar .ty-toasts { bottom: 24px; } }
.ty-toast { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--ty-radius-md); background: var(--ty-text); color: var(--ty-bg); font-size: var(--ty-text-sm); font-weight: 500; box-shadow: var(--ty-shadow-lg); pointer-events: auto; animation: ty-toast-in 200ms ease both; }
.ty-toast--error { background: var(--ty-wrong); color: #fff; }
.ty-toast.is-leaving { opacity: 0; transform: translateY(8px); transition: opacity 200ms, transform 200ms; }
@keyframes ty-toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.ty-offline { position: fixed; left: 0; right: 0; top: 0; z-index: 500; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; background: var(--ty-accent); color: #1B1300; font-size: var(--ty-text-sm); font-weight: 600; text-align: center; }
.ty-dialog { border: 0; border-radius: var(--ty-radius-lg); padding: var(--ty-gap-xl); width: min(92vw, 440px); background: var(--ty-bg-card); color: var(--ty-text); box-shadow: var(--ty-shadow-lg); }
.ty-dialog::backdrop { background: var(--ty-overlay); }

/* ============================================
   13. PORTAL HOME, SECTION HEROES, UNDER CONSTRUCTION
   ============================================ */
.ty-hero { padding: var(--ty-gap-2xl) 0 var(--ty-gap-xl); text-align: center; background: linear-gradient(180deg, var(--ty-primary-soft), var(--ty-bg) 85%); }
.ty-hero h1 { font-size: var(--ty-text-hero); font-weight: 800; letter-spacing: -.03em; margin-bottom: var(--ty-gap-sm); }
.ty-hero__sub { color: var(--ty-text-secondary); font-size: var(--ty-text-lg); max-width: 560px; margin: 0 auto var(--ty-gap-lg); }
.ty-bigsearch { position: relative; max-width: 620px; margin: 0 auto; display: flex; gap: 8px; }
.ty-bigsearch .ty-icon { position: absolute; left: 16px; top: 27px; transform: translateY(-50%); color: var(--ty-text-muted); pointer-events: none; }
.ty-bigsearch .ty-input { flex: 1 1 0; min-width: 0; padding-left: 46px; min-height: 54px; border-radius: var(--ty-radius-full); font-size: var(--ty-text-base); box-shadow: var(--ty-shadow-sm); }
.ty-bigsearch .ty-btn { border-radius: var(--ty-radius-full); min-height: 54px; padding: 0 26px; }
@media (max-width: 480px) { .ty-bigsearch .ty-btn { padding: 0 16px; } }
.ty-secgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--ty-gap-md); }
@media (max-width: 900px) { .ty-secgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .ty-secgrid { grid-template-columns: 1fr; } }
.ty-seccard { position: relative; display: flex; flex-direction: column; gap: 6px; padding: var(--ty-gap-lg); background: var(--ty-bg-card); border: 1px solid var(--ty-border); border-top: 4px solid var(--c); border-radius: var(--ty-radius-lg); text-decoration: none; color: var(--ty-text); box-shadow: var(--ty-shadow-sm); transition: transform var(--ty-ease), box-shadow var(--ty-ease); }
.ty-seccard:hover { transform: translateY(-3px); box-shadow: var(--ty-shadow-md); color: var(--ty-text); }
.ty-seccard__icon { width: 44px; height: 44px; border-radius: var(--ty-radius-md); display: inline-flex; align-items: center; justify-content: center; color: var(--c); background: color-mix(in srgb, var(--c) 14%, var(--ty-bg-card)); margin-bottom: 6px; }
.ty-seccard h2 { font-size: var(--ty-text-lg); margin: 0; }
.ty-seccard p { font-size: var(--ty-text-sm); color: var(--ty-text-secondary); margin: 0; flex: 1; }
.ty-seccard__go { display: inline-flex; align-items: center; gap: 4px; font-size: var(--ty-text-sm); font-weight: 700; margin-top: 8px; color: var(--ty-text); }
.ty-seccard .ty-badge--soon { position: absolute; top: 14px; right: 14px; }
.ty-widgets { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--ty-gap-md); }
@media (max-width: 768px) { .ty-widgets { grid-template-columns: 1fr; } }
.ty-widget { display: flex; gap: var(--ty-gap-md); align-items: center; }
.ty-widget__icon { width: 52px; height: 52px; flex-shrink: 0; border-radius: var(--ty-radius-md); background: var(--ty-accent-soft); color: var(--ty-accent-text); display: inline-flex; align-items: center; justify-content: center; }
.ty-widget__body { flex: 1; min-width: 0; }
.ty-countdown { font-variant-numeric: tabular-nums; font-weight: 800; font-size: var(--ty-text-xl); }

.ty-sechero { padding: var(--ty-gap-2xl) 0; text-align: center; background: linear-gradient(180deg, color-mix(in srgb, var(--c, var(--ty-section)) 13%, var(--ty-bg)), var(--ty-bg)); }
.ty-uc { max-width: 560px; margin: 0 auto; }
.ty-uc__icon { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto var(--ty-gap-md); display: flex; align-items: center; justify-content: center; color: var(--c); background: color-mix(in srgb, var(--c) 16%, var(--ty-bg-card)); }
.ty-uc h1 { font-size: var(--ty-text-3xl); font-weight: 800; }
.ty-uc__form { display: flex; gap: 8px; margin: var(--ty-gap-lg) 0 var(--ty-gap-xs); }
.ty-uc__form .ty-input { flex: 1; min-width: 0; }
@media (max-width: 480px) { .ty-uc__form { flex-direction: column; } }
.ty-uc__links { margin-top: var(--ty-gap-lg); display: flex; justify-content: center; flex-wrap: wrap; gap: var(--ty-gap-sm); }

.ty-404 { text-align: center; padding: var(--ty-gap-3xl) 0; }
.ty-404__code { font-size: 5rem; font-weight: 800; color: var(--ty-primary); line-height: 1; letter-spacing: -.04em; }

.ty-breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: var(--ty-text-sm); color: var(--ty-text-muted); padding: var(--ty-gap-md) 0; }
.ty-breadcrumbs a { color: var(--ty-text-secondary); text-decoration: none; }
.ty-breadcrumbs a:hover { color: var(--ty-primary); text-decoration: underline; }
.ty-breadcrumbs__sep { opacity: .5; }

.ty-exam-track { display: flex; align-items: center; gap: var(--ty-gap-md); padding: var(--ty-gap-md); border: 1px solid var(--ty-border); border-radius: var(--ty-radius-md); background: var(--ty-bg-card); text-decoration: none; color: var(--ty-text); transition: border-color var(--ty-ease), box-shadow var(--ty-ease); }
.ty-exam-track:hover { border-color: var(--ty-primary); box-shadow: var(--ty-shadow-md); color: var(--ty-text); }
.ty-exam-track__icon { width: 48px; height: 48px; border-radius: var(--ty-radius-sm); background: var(--ty-primary-soft); display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--ty-primary); flex-shrink: 0; }
.ty-exam-track__info { flex: 1; min-width: 0; }
.ty-exam-track__name { font-weight: 700; }
.ty-exam-track__count { font-size: var(--ty-text-sm); color: var(--ty-text-muted); }
.ty-related { margin-top: var(--ty-gap-xl); }
.ty-related a { display: block; padding: 12px 0; border-bottom: 1px solid var(--ty-border); color: var(--ty-text); text-decoration: none; }
.ty-related a:hover { color: var(--ty-primary); }
.ty-prose h2 { margin-top: var(--ty-gap-xl); }
.ty-prose { max-width: 720px; }

@media print {
    .ty-header, .ty-subnav, .ty-tabbar, .ty-footer, .ty-ad-slot, .ty-sidebar, .ty-toasts, .ty-offline { display: none !important; }
    .ty-question { break-inside: avoid; box-shadow: none; }
}

.ty-hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--ty-gap-sm); margin-bottom: var(--ty-gap-lg); }
@media (max-width: 480px) { .ty-hero__actions .ty-btn { flex: 1 1 100%; } }
.ty-home { display: flex; flex-direction: column; gap: var(--ty-gap-xl); }
.ty-home .ty-section-title, .ty-prephome .ty-section-title { margin: 0 0 var(--ty-gap-md); }
.ty-home__narrow { width: 100%; max-width: 760px; margin: 0 auto; }
.ty-home__cta { display: flex; justify-content: center; margin-top: var(--ty-gap-md); }
.ty-more { display: inline-flex; align-items: center; gap: 4px; min-height: var(--ty-tap); margin-top: var(--ty-gap-xs); font-weight: 600; text-decoration: none; }
.ty-soon__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--ty-gap-sm); }
@media (max-width: 768px) { .ty-soon__list { grid-template-columns: 1fr; } }
.ty-soon__item { display: flex; align-items: center; gap: var(--ty-gap-sm); min-height: var(--ty-tap); padding: var(--ty-gap-sm) var(--ty-gap-md); background: var(--ty-bg-card); border: 1px solid var(--ty-border); border-radius: var(--ty-radius-md); color: var(--ty-text); text-decoration: none; }
.ty-soon__item:hover { border-color: var(--ty-primary); color: var(--ty-text); }
.ty-soon__icon { width: 40px; height: 40px; flex-shrink: 0; border-radius: var(--ty-radius-sm); display: inline-flex; align-items: center; justify-content: center; color: var(--c); background: color-mix(in srgb, var(--c) 14%, var(--ty-bg-card)); }
.ty-soon__body { flex: 1; min-width: 0; font-size: var(--ty-text-sm); color: var(--ty-text-secondary); }
.ty-soon__body strong { display: block; color: var(--ty-text); }
.ty-soon__go { flex-shrink: 0; font-size: var(--ty-text-sm); font-weight: 700; }
.ty-prephome { display: flex; flex-direction: column; gap: var(--ty-gap-xl); }
.ty-prephome__head .ty-page-title { margin-bottom: var(--ty-gap-sm); }
.ty-prephome__head p { margin: 0; color: var(--ty-text-secondary); }
.ty-prephome__stats { display: block; color: inherit; text-decoration: none; }
a.ty-prephome__stats:hover { border-color: var(--ty-primary); color: inherit; }
.ty-action { display: flex; flex-direction: column; gap: var(--ty-gap-xs); }
.ty-action__icon { color: var(--ty-primary); }
.ty-action .ty-card__meta { flex: 1; margin: 0 0 var(--ty-gap-sm); }
.ty-grid--actions { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .ty-grid--actions { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ty-grid--actions { grid-template-columns: 1fr; } }
.ty-action--main { background: var(--ty-accent-soft); border-color: var(--ty-accent); color: var(--ty-accent-text); }
.ty-action--main .ty-card__title, .ty-action--main .ty-action__icon, .ty-action--main .ty-card__meta { color: var(--ty-accent-text); }
/* Blocks printed by shortcodes inside page content sit apart from each other. */
.entry-content > .ty-card + *, .entry-content > * + .ty-card { margin-top: var(--ty-gap-lg); }

/* ============================================
   14. SMALL ADDITIONS
   ============================================ */
.ty-mt-0 { margin-top: 0; }
.ty-form-narrow { max-width: 520px; }
a.ty-kv { color: inherit; text-decoration: none; }
a.ty-kv:hover { color: var(--ty-primary); }
.ty-session .ty-ad-slot { display: none !important; }     /* no ads during a practice session */
.ty-runner .ty-toasts { bottom: calc(84px + env(safe-area-inset-bottom)); }
.ty-runner .ty-offline { top: 0; }
.ty-runner .ty-btn--ghost.is-on { color: var(--ty-accent-text); background: var(--ty-accent-soft); }
.ty-statrow .ty-stat { padding: var(--ty-gap-sm) 2px; }
.ty-statrow .ty-stat__value { font-size: var(--ty-text-2xl); }
@media (max-width: 480px) { .ty-statrow { grid-template-columns: repeat(3, 1fr); } }

/* GeneratePress styles button:hover and button:focus with its own colours; keep ours. */
.ty-btn--outline:hover, .ty-btn--outline:focus, .ty-btn--outline:active { background: transparent; color: var(--ty-text); border-color: var(--ty-primary); }
.ty-btn--ghost:focus, .ty-btn--ghost:active { background: transparent; color: var(--ty-text-secondary); }
.ty-btn--ghost:hover { background: var(--ty-bg-alt); color: var(--ty-text); }
.ty-btn--primary:focus, .ty-btn--primary:active { background: var(--ty-primary); color: var(--ty-on-primary); }
.ty-btn--primary:hover { background: var(--ty-primary-hover); color: var(--ty-on-primary); }
.ty-btn--accent:focus, .ty-btn--accent:active { background: var(--ty-accent); color: #1B1300; }
.ty-btn.is-on:focus { background: var(--ty-accent-soft); color: var(--ty-accent-text); }
.ty-option:focus, .ty-option:active { color: var(--ty-text); }
.ty-option--selected:focus { background: var(--ty-primary-soft); }
.ty-account__btn:focus { background: var(--ty-primary-soft); color: var(--ty-primary); }
input[type="search"].ty-input:focus, .ty-input:focus, .ty-select:focus { background: var(--ty-bg); color: var(--ty-text); }

/* Question rows: one bordered list on subject, exam and search pages */
.ty-qlist { background: var(--ty-bg-card); border: 1px solid var(--ty-border); border-radius: var(--ty-radius-lg); overflow: hidden; }
.ty-qrow { display: block; min-height: var(--ty-tap); padding: 14px var(--ty-gap-lg); color: var(--ty-text); text-decoration: none; transition: background 0.15s ease; }
.ty-qrow + .ty-qrow { border-top: 1px solid var(--ty-border); }
.ty-qrow:hover { background: var(--ty-bg-alt); }
.ty-qrow__link { display: block; color: var(--ty-text); text-decoration: none; }
.ty-qrow__link:hover .ty-qrow__q { color: var(--ty-primary); }
.ty-qrow__q { display: block; font-weight: 600; overflow-wrap: anywhere; line-height: 1.45; }
.ty-qrow__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 8px; font-size: var(--ty-text-sm); }
.ty-qrow__reveal-btn {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: var(--ty-radius-pill, 9999px);
    background: var(--ty-bg-alt, #f3f4f6);
    border: 1px solid var(--ty-border, #e5e7eb);
    color: var(--ty-primary, #0D6B3F);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--ty-font);
    line-height: 1.4;
    user-select: none;
}
.ty-qrow__reveal-btn:hover {
    background: var(--ty-primary-soft, #E6F5ED);
    border-color: var(--ty-primary, #0D6B3F);
}
.ty-qrow__reveal-answer { display: none; }
.ty-qrow__reveal-btn.is-revealed {
    background: var(--ty-primary-soft, #E6F5ED);
    border-color: rgba(13, 107, 63, 0.4);
    color: var(--ty-primary, #0D6B3F);
}
.ty-qrow__reveal-btn.is-revealed .ty-qrow__reveal-prompt { display: none; }
.ty-qrow__reveal-btn.is-revealed .ty-qrow__reveal-answer { display: inline; }
.ty-qrow__extra { color: var(--ty-text-muted); font-size: var(--ty-text-sm); }

/* Urdu Nastaleeq typography */
.ty-qrow--urdu .ty-qrow__q,
.ty-question--urdu .ty-question__text,
.ty-question--urdu .ty-option__text,
[lang="ur"],
[dir="rtl"].ty-qrow__q,
[dir="rtl"].ty-qrow__reveal-answer {
    font-family: var(--ty-font-urdu) !important;
    line-height: 2.3 !important;
}
.ty-qrow--urdu .ty-qrow__q {
    font-size: 1.25rem !important;
    text-align: right !important;
    direction: rtl !important;
}
.ty-qrow--urdu .ty-qrow__meta {
    direction: rtl;
    justify-content: flex-start;
}
.ty-qrow--urdu .ty-qrow__reveal-answer {
    font-family: var(--ty-font-urdu) !important;
    direction: rtl;
}

/* Browse: subject groups and card tiles */
.ty-group + .ty-group { margin-top: var(--ty-gap-xl); }
.ty-group__title { display: flex; align-items: center; gap: var(--ty-gap-sm); margin: 0 0 var(--ty-gap-md); font-size: var(--ty-text-lg); font-weight: 700; }
.ty-group__title .ty-icon { color: var(--ty-primary); flex-shrink: 0; }
.ty-exam-track__icon--text { font-size: .85rem; letter-spacing: .02em; }
.ty-exam-track__icon--text.is-long { font-size: .68rem; letter-spacing: 0; }
@media (max-width: 480px) {
    .ty-grid:has(> .ty-exam-track) { gap: var(--ty-gap-sm); }
    .ty-exam-track { min-height: 56px; padding: 8px var(--ty-gap-md); gap: var(--ty-gap-md); }
    .ty-exam-track__icon { width: 38px; height: 38px; }
    .ty-exam-track__icon .ty-icon { width: 20px; height: 20px; }
    .ty-exam-track__name { font-size: var(--ty-text-sm); line-height: 1.25; }
    .ty-exam-track__count { font-size: .75rem; }
}

/* Search: subject filter beside the box */
.ty-bigsearch { flex-wrap: wrap; }
.ty-bigsearch__subject { flex: 0 1 190px; width: auto; min-height: 54px; border-radius: var(--ty-radius-full); padding-left: 18px; }
@media (max-width: 560px) {
    .ty-bigsearch .ty-input { flex-basis: 100%; }
    .ty-bigsearch__subject { flex: 1 1 0; min-width: 0; }
}

/* Mock tests: best score, and the builder as its own tinted card */
.ty-card__best { margin: 0 0 var(--ty-gap-md); font-size: var(--ty-text-sm); color: var(--ty-text-secondary); }
.ty-card__best strong { color: var(--ty-primary); }
.ty-card--build { max-width: 560px; background: var(--ty-primary-soft); border-color: var(--ty-primary); }

/* ─── Share popover, install button, stale-answer note (1.6.0) ─── */
.ty-sharepop { position: absolute; z-index: 300; display: flex; flex-direction: column; min-width: 180px; padding: 6px; background: var(--ty-bg-card); border: 1px solid var(--ty-border); border-radius: var(--ty-radius-md); box-shadow: var(--ty-shadow-lg); animation: ty-toast-in 150ms ease both; }
.ty-sharepop__item { display: flex; align-items: center; gap: 10px; min-height: var(--ty-tap); padding: 0 14px; border: 0; border-radius: var(--ty-radius-sm); background: none; color: var(--ty-text); font: inherit; font-size: var(--ty-text-sm); font-weight: 500; text-align: left; text-decoration: none; cursor: pointer; }
.ty-sharepop__item:hover, .ty-sharepop__item:focus-visible { background: var(--ty-primary-soft); color: var(--ty-text); }
.ty-sharepop__item:focus-visible { outline: 2px solid var(--ty-primary); outline-offset: -2px; }
.ty-install { display: block; margin: var(--ty-gap-sm) auto 0; }
.ty-quiet--warn { color: var(--ty-accent-text); font-weight: 500; }

/* Practice negative marking and keyboard bar enhancements */
.ty-options-group { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ty-gap-md, 16px); }
.ty-check--negative { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: var(--ty-radius-pill, 9999px); background: var(--ty-bg-alt); border: 1px solid var(--ty-border); transition: all 0.2s ease; cursor: pointer; }
.ty-check--negative:hover { border-color: var(--ty-primary); }
.ty-check--negative:has(input:checked) { background: var(--ty-primary-soft); border-color: var(--ty-primary); color: var(--ty-primary); }
kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; font-family: inherit; font-size: 0.75rem; font-weight: 700; color: var(--ty-text); background: var(--ty-bg); border: 1px solid var(--ty-border); border-bottom-width: 2px; border-radius: 4px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); margin: 0 2px; vertical-align: middle; }
.ty-kbd-bar { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: var(--ty-gap-md); padding: 10px 18px; background: var(--ty-bg-alt); border: 1px dashed var(--ty-border); border-radius: var(--ty-radius-pill, 9999px); font-size: 0.8125rem; color: var(--ty-text-muted); }
.ty-kbd-bar__tag { font-weight: 700; color: var(--ty-primary); }
.ty-kbd-bar__sep { color: var(--ty-border); }
@media (max-width: 640px) { .ty-kbd-bar { display: none !important; } }
.ty-btn--accent { background: var(--ty-accent, #E5960A) !important; color: #fff !important; border: none !important; }
.ty-btn--accent:hover { background: #C98207 !important; color: #fff !important; }

/* WhatsApp Community and Viral Sharing */
.ty-btn--whatsapp {
    background-color: #25D366 !important;
    color: #ffffff !important;
    border: none !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    transition: background-color 0.2s ease, transform 0.15s ease !important;
}
.ty-btn--whatsapp:hover {
    background-color: #1EBE5D !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}
.ty-btn--header-wa { display: none !important; }
.ty-whatsapp-box {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.08) 0%, rgba(13, 107, 63, 0.06) 100%) !important;
    border: 1px solid rgba(37, 211, 102, 0.3) !important;
    border-radius: var(--ty-radius-lg) !important;
}
.ty-whatsapp-box__badge {
    display: inline-block;
    padding: 2px 8px;
    background: #25D366;
    color: #ffffff;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: var(--ty-radius-pill, 9999px);
    letter-spacing: 0.04em;
}

/* ─── PWA Smart Floating Banner & iOS Instructions Modal ─── */
.ty-pwa-banner {
    position: fixed;
    bottom: 20px;
    left: 16px;
    right: 16px;
    max-width: 440px;
    margin: 0 auto;
    z-index: 250;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--ty-bg-card, #ffffff);
    border: 1px solid var(--ty-border, #e2e8f0);
    border-radius: var(--ty-radius-lg, 16px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    transition: transform 0.25s ease, opacity 0.25s ease;
}
body.has-tabbar .ty-pwa-banner {
    bottom: calc(var(--ty-tabbar-h, 60px) + 12px + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 641px) {
    .ty-pwa-banner {
        left: auto;
        right: 24px;
        bottom: 24px;
        margin: 0;
    }
}
.ty-pwa-banner__icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}
.ty-pwa-banner__info {
    flex: 1;
    min-width: 0;
}
.ty-pwa-banner__title {
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--ty-text);
}
.ty-pwa-banner__desc {
    font-size: 0.8125rem;
    color: var(--ty-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ty-pwa-banner__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.ty-pwa-banner__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: var(--ty-bg-alt, #f1f5f9);
    color: var(--ty-text-muted);
    font-size: 1.15rem;
    cursor: pointer;
    line-height: 1;
    transition: background-color 0.15s ease;
}
.ty-pwa-banner__close:hover {
    background: var(--ty-border);
    color: var(--ty-text);
}

/* iOS PWA Instructions Modal */
.ty-pwa-ios-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}
@media (min-width: 641px) {
    .ty-pwa-ios-modal {
        align-items: center;
    }
}
.ty-pwa-ios-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
}
.ty-pwa-ios-modal__card {
    position: relative;
    width: 100%;
    max-width: 380px;
    background: var(--ty-bg-card, #ffffff);
    border: 1px solid var(--ty-border);
    border-radius: var(--ty-radius-lg, 20px);
    padding: 22px 20px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.25);
    z-index: 1;
    animation: ty-toast-in 200ms ease both;
}
.ty-pwa-ios-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: var(--ty-bg-alt);
    color: var(--ty-text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    line-height: 1;
}
.ty-pwa-ios-modal__header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}
.ty-pwa-ios-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.ty-pwa-ios-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--ty-text);
}
.ty-pwa-ios-step__num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--ty-primary, #0D6B3F);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
}