/* --- GOOGLE FONTS (Plus Jakarta Sans, Outfit & JetBrains Mono) --- */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Outfit:wght@500;600;700;800&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&display=swap');

/* --- GLOBAL VARIABLES --- */
:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --bg-dark: #0f172a;
    --text-light: #f8fafc;
    --text-gray: #94a3b8;
    --card-bg: #1e293b;
    --border-color: #334155;
    --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-heading: 'Outfit', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

html,
body {
    margin: 0;
    font-family: var(--font-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    background-color: #f4f4f4;
    /* Light gray background provided by user */
    color: #333333;
    /* Dark text for readability */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

.tp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- BUTTONS --- */
.tp-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tp-btn-primary {
    background: var(--primary-color);
    color: #fff;
    border: none;
}

.tp-btn-primary:hover {
    background: var(--primary-hover);
}

.tp-btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid var(--border-color);
}

.tp-btn-outline:hover {
    border-color: var(--primary-color);
}

.tp-btn-large {
    padding: 14px 28px;
    font-size: 1.1rem;
}

/* --- HEADER (Refined Modern Floating Capsule Style) --- */
.dribbble-header {
    background-color: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    position: sticky;
    top: 0;
    z-index: 1000;
    font-family: 'Plus Jakarta Sans', sans-serif;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0;
}

.dh-container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Scrolled Floating Pill State */
.dribbble-header.dh-scrolled {
    background-color: transparent;
    border-bottom: 1px solid transparent;
    box-shadow: none;
    padding: 10px 16px;
    pointer-events: none;
}

.dribbble-header.dh-scrolled .dh-container {
    pointer-events: auto;
    height: 52px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 9999px;
    padding: 0 20px;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(226, 232, 240, 0.85);
    max-width: 1160px;
}

.dh-mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-right: 12px;
    color: #0f172a;
}

.dh-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.dh-logo img {
    height: 38px;
    object-fit: contain;
    transition: height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.dribbble-header.dh-scrolled .dh-logo img {
    height: 30px;
}

.dh-nav-wrapper {
    display: flex;
    align-items: center;
    flex: 1;
    margin-left: 24px;
}

.dh-search-box {
    flex: 1;
    max-width: 280px;
}

.dh-search-form {
    display: flex;
    align-items: center;
    background-color: #f1f5f9;
    border-radius: 9999px;
    padding: 3px 4px 3px 10px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.dh-search-form:focus-within {
    background-color: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.dh-search-input-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.dh-search-input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 12px;
    color: #0f172a;
    width: 100%;
    font-family: inherit;
}

.dh-search-input::placeholder {
    color: #94a3b8;
}

.dh-search-dropdown {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    margin-right: 4px;
    transition: all 0.2s;
}

.dh-search-dropdown:hover {
    border-color: #2563eb;
    color: #2563eb;
}

.dh-search-btn {
    background-color: #2563eb !important;
    border: none !important;
    width: 26px !important;
    height: 26px !important;
    min-width: 26px;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer;
    transition: background-color 0.2s;
    padding: 0 !important;
}

.dh-search-btn:hover {
    background-color: #1d4ed8 !important;
}

.dh-main-nav {
    margin-left: 20px;
}

.dh-main-nav ul {
    list-style: none;
    display: flex;
    gap: 18px;
    margin: 0;
    padding: 0;
}

.dh-main-nav a {
    color: #334155;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
    padding: 4px 0;
}

.dh-main-nav a:hover {
    color: #2563eb;
}

.dh-nav-badge {
    background: #ef4444;
    color: #ffffff;
    font-size: 9px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 4px;
    text-transform: uppercase;
}

.dh-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dh-btn-outline {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 9999px;
    padding: 6px 14px;
    text-decoration: none;
    color: #2563eb;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
}

.dh-btn-outline:hover {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

.dh-btn-app {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.dh-btn-app svg {
    fill: currentColor;
    flex-shrink: 0;
}

.dh-btn-app:hover {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    transform: translateY(-1px);
}

.dh-avatar-img {
    border-radius: 50%;
    border: 2px solid #2563eb;
    width: 32px;
    height: 32px;
    transition: transform 0.2s;
    display: block;
}

.dh-avatar-img:hover {
    transform: scale(1.08);
}

.dh-user-profile {
    display: flex;
    align-items: center;
}

/* Responsive Mobile Friendly Header */
@media (max-width: 1024px) {
    .dh-main-nav {
        display: none;
    }

    .dh-search-box {
        max-width: 240px;
    }
}

@media (max-width: 768px) {
    .dribbble-header {
        padding: 0;
    }

    .dh-container {
        padding: 0 14px;
        height: 56px;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .dribbble-header.dh-scrolled {
        padding: 6px 12px;
    }

    .dribbble-header.dh-scrolled .dh-container {
        height: 48px;
        padding: 0 14px;
    }

    .dh-mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        margin: 0;
        z-index: 10;
        color: #0f172a;
    }

    /* Centered prominent logo */
    .dh-logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 5;
        pointer-events: auto;
    }

    .dh-logo img {
        height: 36px !important;
        max-height: 36px !important;
        width: auto !important;
        object-fit: contain;
    }

    .dribbble-header.dh-scrolled .dh-logo img {
        height: 30px !important;
        max-height: 30px !important;
    }

    .dh-actions {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        position: relative !important;
        z-index: 50 !important;
        margin-left: auto !important;
        pointer-events: auto !important;
    }

    .dh-btn-outline {
        display: none !important;
    }

    .dh-btn-app {
        background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
        color: #ffffff !important;
        border: none !important;
        padding: 6px 13px !important;
        font-size: 11.5px !important;
        font-weight: 700 !important;
        border-radius: 9999px !important;
        box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35) !important;
        gap: 5px !important;
        cursor: pointer !important;
        position: relative !important;
        z-index: 55 !important;
        pointer-events: auto !important;
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: rgba(37, 99, 235, 0.3) !important;
        text-decoration: none !important;
    }

    .dh-btn-app svg {
        fill: #ffffff !important;
        width: 13px !important;
        height: 13px !important;
    }

    .dh-user-profile {
        display: none !important;
    }

    .dh-search-box {
        display: none !important;
    }

    .dh-nav-wrapper {
        display: none !important;
    }

    .dh-nav-wrapper.active .dh-main-nav {
        display: block;
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        background: #ffffff;
        padding: 16px 20px;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
        border-bottom: 1px solid #e2e8f0;
        z-index: 999;
    }

    .dh-nav-wrapper.active .dh-main-nav ul {
        flex-direction: column;
        gap: 12px;
    }
}

/* (Obsolete hero styles removed to avoid conflict with modern high-density hero) */

/* --- FEATURES SECTION --- */
.tp-features-section {
    padding: 60px 0;
}

.tp-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.tp-feature-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s;
}

.tp-feature-card:hover {
    transform: translateY(-5px);
}

.tp-feature-card h3 {
    margin-top: 0;
    color: #fff;
    font-family: var(--font-mono);
    /* Technical look for headings */
}

.tp-feature-card p {
    color: var(--text-gray);
    margin-bottom: 0;
    line-height: 1.6;
}

/* --- FOOTER (TalentFlow Style) --- */
.tf-site-footer {
    background-color: #112a32;
    color: #e0e6e8;
    padding-top: 50px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    border-top: none;
    margin-top: 0;
}

.tf-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
}

.tf-footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 40px;
}

.tf-footer-brand {
    flex: 0 0 350px;
}

.tf-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.tf-logo img {
    height: 50px;
    filter: brightness(0) invert(1);
    /* makes the logo white if it's black */
}

.tf-logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.tf-brand-desc {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 32px;
    color: #b0c0c6;
}

.tf-social-icons {
    display: flex;
    gap: 20px;
}

.tf-social-icons a {
    color: #ffffff;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tf-social-icons a:hover {
    color: #4cd496;
    /* Accent color */
}

.tf-footer-links {
    display: flex;
    flex: 1;
    justify-content: space-around;
    gap: 30px;
}

.tf-link-col h4 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    margin-top: 0;
    margin-bottom: 24px;
}

.tf-link-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tf-link-col ul li {
    margin-bottom: 16px;
}

.tf-link-col ul a {
    color: #b0c0c6;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s;
}

.tf-link-col ul a:hover {
    color: #ffffff;
}

.tf-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 0;
}

.tf-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tf-copyright p {
    margin: 0;
    font-size: 14px;
    color: #b0c0c6;
}

.tf-legal-links {
    display: flex;
    gap: 30px;
}

.tf-legal-links a {
    color: #b0c0c6;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.tf-legal-links a:hover {
    color: #ffffff;
}

/* Responsive Footer */
@media (max-width: 1024px) {
    .tf-footer-grid {
        flex-direction: column;
        gap: 50px;
    }

    .tf-footer-brand {
        flex: auto;
        max-width: 500px;
    }

    .tf-footer-links {
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    .tf-container {
        padding: 0 24px;
    }

    .tf-footer-links {
        flex-direction: column;
        gap: 40px;
    }

    .tf-bottom-flex {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}








/* --- TYPING SCREEN CSS --- */
.tp-typing-main {
    padding: 40px 0;
    min-height: calc(100vh - 250px);
}

.tp-typing-header {
    text-align: center;
    margin-bottom: 30px;
}

.tp-test-title {
    margin-top: 0;
    color: #fff;
}

.tp-stats-bar {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 20px;
    background: var(--card-bg);
    padding: 15px 30px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    display: inline-flex;
}

.tp-stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tp-stat-label {
    font-size: 0.9rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tp-stat-value {
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--primary-color);
}

.tp-typing-area-wrapper {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    position: relative;
    cursor: text;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.tp-text-display {
    font-family: var(--font-mono);
    /* JetBrains Mono for perfect readability */
    font-size: 1.6rem;
    line-height: 1.7;
    color: var(--text-gray);
    user-select: none;
    text-align: justify;
}

/* Hidden input styling - Ye input dikhega nahi par keyboard detect karega */
.tp-hidden-input {
    position: absolute;
    opacity: 0;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    cursor: text;
    z-index: 10;
}

.tp-typing-actions {
    text-align: center;
}

/* JavaScript in classes ko control karega */
.tp-char {
    transition: color 0.1s;
    border-radius: 3px;
}

.tp-char.correct {
    color: #fff;
}

.tp-char.incorrect {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.2);
}

.tp-char.active {
    border-left: 2px solid var(--primary-color);
    animation: blink 1s infinite;
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}






/* --- APP TO WEB DASHBOARD CSS --- */
:root {
    --app-teal: #195e72;
    --app-teal-light: #2c7a92;
    --english-border: #90caf9;
    --english-bg: #f3f8fd;
    --hindi-border: #ffcc80;
    --hindi-bg: #fffbf2;
    --streak-red: #f44336;
    --card-radius: 12px;
}

/* Removed duplicate body rule */
/* Dashboard Header overrides removed to support dribbble-header */

.tg-web-dashboard {
    padding: 40px 0;
}

.tg-centered-dashboard {
    min-height: calc(100vh - 250px);
    /* Account for header/footer */
    display: flex;
    align-items: center;
    justify-content: center;
}

.tg-centered-dashboard .tp-container {
    width: 100%;
}

.tg-top-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

/* --- HOME LAYOUT V2 --- */
.tg-home-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    align-items: start;
    padding: 10px 0;
    /* Minimized */
}

.tg-modules-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.english-box-v2 {
    background: #eef7ff;
    border: 2px solid #9dcafb;
    border-radius: 12px;
    padding: 12px;
    /* Compact padding */
}

.hindi-box-v2 {
    background: #fff6e6;
    border: 2px solid #ffd091;
    border-radius: 12px;
    padding: 12px;
    /* Compact padding */
}

.tg-module-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.hindi-header-v2 {
    gap: 15px;
}

.tg-module-title {
    margin: 0;
    font-size: 18px;
    color: #000;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 6px;
}

.star-icon {
    color: #ffca28;
    font-size: 20px;
}

.tg-font-select-v2 {
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    font-weight: bold;
    padding: 4px 20px 4px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #fff;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg width="12" height="8" viewBox="0 0 12 8" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 1L6 6L11 1" stroke="%23999" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
    background-repeat: no-repeat;
    background-position: right 8px center;
}

.tg-action-cards-v2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.tg-card-v2 {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 12px 8px 8px;
    /* Extremely compact padding */
    text-align: center;
    text-decoration: none;
    color: #000;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    font-size: 13px;
    /* Reduced font */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s, box-shadow 0.2s;
}

.tg-card-v2:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.primary-card {
    border-width: 3px;
    padding-top: 15px;
    /* Adjust for badges */
}

.english-primary {
    border-color: #00b4ff;
    box-shadow: 0 0 10px rgba(0, 180, 255, 0.2);
}

.hindi-primary {
    border-color: #ffb300;
    box-shadow: 0 0 10px rgba(255, 179, 0, 0.2);
}

.card-badges {
    position: absolute;
    top: -12px;
    left: 20px;
    display: flex;
    align-items: center;
}

.card-badges::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 5px;
    height: 2px;
    z-index: 0;
}

.english-primary .card-badges::before {
    background-color: #00b4ff;
}

.hindi-primary .card-badges::before {
    background-color: #ffb300;
}

.badge {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    color: #fff;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: -5px;
    /* overlap */
    position: relative;
    z-index: 1;
    border: 1px solid #fff;
}

.english-primary .badge {
    background-color: #00b4ff;
}

.hindi-primary .badge {
    background-color: #ffb300;
}

.icon-img-v2 {
    height: 32px;
    /* Very small for compact desktop view */
    object-fit: contain;
}

/* Quick Start Section */
.tg-quick-start-box {
    background: #ffffff;
    border: 1px solid #e0e6ed;
    border-radius: 12px;
    padding: 12px 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.qs-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 4px;
}

.qs-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #112a32;
    display: flex;
    align-items: center;
    gap: 6px;
}

.qs-subtitle {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.qs-desc {
    color: #6b7280;
    font-size: 12px;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.qs-buttons-grid {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.qs-btn {
    flex: 1;
    min-width: 60px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 6px;
    text-align: center;
    text-decoration: none;
    color: #475569;
    font-weight: 600;
    font-size: 11px;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.qs-btn:hover {
    background: #ea4c89;
    color: #ffffff;
    border-color: #ea4c89;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(234, 76, 137, 0.2);
}

.qs-time {
    font-size: 16px;
    font-weight: 800;
    color: #1e293b;
}

.qs-btn:hover .qs-time {
    color: #ffffff;
}

/* Exam Selector Column */
.tg-exam-selector-panel {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eee;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    height: 100%;
    max-height: calc(100vh - 200px);
    /* Fit within screen height */
    display: flex;
    flex-direction: column;
}

.exam-panel-title {
    margin: 0;
    padding: 10px 15px;
    background: #112a32;
    color: #fff;
    border-radius: 12px 12px 0 0;
    font-size: 15px;
    font-family: 'Courier New', Courier, monospace;
}

.exam-scroll-list {
    overflow-y: auto;
    padding: 5px 0;
    display: flex;
    flex-direction: column;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f8fafc;
}

.exam-item {
    padding: 8px 15px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.2s, color 0.2s;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
}

.exam-item:hover {
    background: #f0f7ff;
    color: #ea4c89;
}

.exam-item:last-child {
    border-bottom: none;
}

.exam-action-bottom {
    padding: 8px 10px;
    border-top: 1px solid #f1f5f9;
    text-align: center;
    background: #fafbfc;
    border-radius: 0 0 12px 12px;
}

.show-all-exams-btn {
    display: inline-block;
    padding: 6px 16px;
    background: #fff0f5;
    color: #ea4c89;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    border-radius: 20px;
    transition: all 0.2s;
}

.show-all-exams-btn:hover {
    background: #ea4c89;
    color: #ffffff;
}

/* Responsive */
@media (max-width: 1024px) {

    /* Tablet: Keep 2 columns but gap adjustment */
    .tg-home-grid {
        gap: 15px;
        grid-template-columns: 1.8fr 1fr;
    }
}

@media (max-width: 768px) {

    /* Mobile: Collapse to 1 column for main layout */
    .tg-home-grid {
        grid-template-columns: 1fr;
    }

    /* Exactly match the Android App (TypingGuru) horizontal layout for cards */
    .english-box-v2,
    .hindi-box-v2 {
        padding: 10px;
        /* Small section padding */
        border-radius: 8px;
    }

    .tg-module-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 12px;
    }

    .tg-module-title {
        font-size: 16px;
    }

    .star-icon {
        font-size: 18px;
    }

    .tg-font-select-v2 {
        font-size: 12px;
        padding: 4px 25px 4px 8px;
        background-position: right 8px center;
        background-size: 8px;
    }

    /* The 3 Cards */
    .tg-action-cards-v2 {
        display: flex;
        flex-direction: row;
        gap: 6px;
    }

    .tg-card-v2 {
        flex: 1;
        /* Match Android layout_weight="1" */
        padding: 12px 4px 8px;
        font-size: 11px;
        /* Match Android 11sp */
        gap: 6px;
        border-radius: 6px;
    }

    .primary-card {
        padding-top: 15px;
        /* Adjust for badges */
    }

    .icon-img-v2 {
        height: 36px;
        /* Match Android 36dp */
    }

    /* Badges */
    .card-badges {
        top: -6px;
        left: 50%;
        transform: translateX(-50%);
        /* Center badges on mobile */
    }

    .badge {
        width: 16px;
        height: 16px;
        font-size: 8px;
    }

    .card-badges::before {
        top: 50%;
        left: 0;
        right: 0;
    }
}

/* ========================================================
/* ========================================================
   MODERN TYPEWIZZ-INSPIRED HOMEPAGE (TYPINGPEDIAWEB)
   Clean, Minimalist, High Contrast & Spacious Design
   ======================================================== */

.tp-tw-theme {
    background: #fafafc;
    color: #0f172a;
    font-family: 'Rubik', 'Plus Jakarta Sans', var(--font-heading), -apple-system, sans-serif;
    overflow-x: hidden;
    padding-bottom: 50px;
}

.tp-tw-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* 1. HERO SECTION (2-COLUMN: LEFT VALUE & CTAS | RIGHT INSTANT QUICK TEST) */
.tp-tw-hero {
    padding: 52px 0 44px;
    position: relative;
    background: radial-gradient(100% 70% at 50% 0%, #f3eeff 0%, #fafafc 100%);
    border-bottom: 1px solid #eef0f6;
}

.tp-tw-hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.95fr;
    gap: 36px;
    align-items: center;
}

.tp-tw-hero-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.tp-tw-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1.5px solid #e9d5ff;
    color: #6b21a8;
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(107, 33, 168, 0.06);
    margin-bottom: 16px;
}

.tp-tw-badge-desk {
    display: inline;
}

.tp-tw-badge-mob {
    display: none;
}

.tp-tw-sub-actions {
    display: flex;
    gap: 10px;
}

.tp-tw-swipe-indicator {
    display: none;
}

.tp-tw-pulse {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
    animation: tpTwPulse 2s infinite;
}

@keyframes tpTwPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
}

.tp-tw-hero-title {
    font-size: clamp(2.2rem, 4.2vw, 3.4rem);
    font-weight: 800;
    line-height: 1.14;
    letter-spacing: -0.025em;
    color: #0f172a;
    margin: 0 0 16px;
}

.tp-tw-gradient {
    background: linear-gradient(135deg, #5911f0 0%, #8b5cf6 50%, #0089ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.tp-tw-hero-sub {
    font-size: clamp(0.95rem, 1.8vw, 1.12rem);
    line-height: 1.6;
    color: #475569;
    max-width: 580px;
    margin: 0 0 24px;
}

.tp-tw-hero-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.tp-tw-btn-primary {
    background: #5911f0;
    color: #ffffff;
    padding: 13px 26px;
    font-size: 14.5px;
    font-weight: 700;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 24px -4px rgba(89, 17, 240, 0.38);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.tp-tw-btn-primary:hover {
    background: #470dc4;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -4px rgba(89, 17, 240, 0.45);
}

.tp-tw-btn-secondary {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    color: #1e293b;
    padding: 13px 20px;
    font-size: 13.5px;
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
    transition: all 0.2s ease;
}

.tp-tw-btn-secondary:hover {
    border-color: #5911f0;
    color: #5911f0;
    background: #faf5ff;
    transform: translateY(-1px);
}

.tp-tw-trust-strip {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: #ffffff;
    border: 1px solid #eef0f6;
    border-radius: 9999px;
    padding: 7px 18px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
    flex-wrap: wrap;
}

.tp-tw-trust-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.tp-tw-trust-val {
    font-size: 12.5px;
    font-weight: 800;
    color: #0f172a;
}

.tp-tw-trust-lbl {
    font-size: 11.5px;
    font-weight: 600;
    color: #64748b;
}

.tp-tw-trust-divider {
    width: 1px;
    height: 14px;
    background: #e2e8f0;
}

/* RIGHT COLUMN: INSTANT QUICK TEST CARD */
.tp-tw-hero-right {
    width: 100%;
}

.tp-tw-quick-card {
    background: #ffffff;
    border: 1.5px solid #eef0f6;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 30px -5px rgba(89, 17, 240, 0.06), 0 2px 8px -2px rgba(15, 23, 42, 0.04);
    box-sizing: border-box;
}

.tp-tw-qc-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.tp-tw-qc-icon {
    width: 40px;
    height: 40px;
    background: #f3eeff;
    color: #5911f0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.tp-tw-qc-title {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
}

.tp-tw-qc-sub {
    margin: 2px 0 0;
    font-size: 11.5px;
    color: #64748b;
}

.tp-tw-qc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.tp-tw-qc-pill {
    background: #fafafc;
    border: 1.5px solid #eef0f6;
    border-radius: 12px;
    padding: 12px 6px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.2s ease;
}

.tp-tw-qc-time {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}

.tp-tw-qc-tag {
    font-size: 10px;
    font-weight: 600;
    color: #64748b;
    margin-top: 2px;
    white-space: nowrap;
}

.tp-tw-qc-pill:hover,
.tp-tw-qc-pill.active {
    background: #5911f0;
    border-color: #5911f0;
}

.tp-tw-qc-pill:hover .tp-tw-qc-time,
.tp-tw-qc-pill.active .tp-tw-qc-time,
.tp-tw-qc-pill:hover .tp-tw-qc-tag,
.tp-tw-qc-pill.active .tp-tw-qc-tag {
    color: #ffffff;
}

.tp-tw-qc-exam {
    background: #fef2f2;
    border-color: #fecaca;
}

.tp-tw-qc-exam .tp-tw-qc-time,
.tp-tw-qc-exam .tp-tw-qc-tag {
    color: #dc2626;
}

.tp-tw-qc-exam:hover,
.tp-tw-qc-exam.active {
    background: #dc2626;
    border-color: #dc2626;
}

.tp-tw-qc-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tp-tw-btn-launch-quick {
    width: 100%;
    padding: 13px 18px;
    border-radius: 12px;
    background: linear-gradient(135deg, #5911f0 0%, #470dc4 100%);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(89, 17, 240, 0.28);
    transition: all 0.2s ease;
}

.tp-tw-btn-launch-quick:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(89, 17, 240, 0.38);
}
/* 3. TYPEWIZZ "HOW IT WORKS" 5-STEP ROADMAP */
.tp-tw-how-section {
    padding: 48px 0 32px;
}

.tp-tw-sec-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 36px;
}

.tp-tw-sec-tag {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #5911f0;
    background: #f3eeff;
    padding: 4px 12px;
    border-radius: 9999px;
    display: inline-block;
    margin-bottom: 10px;
}

.tp-tw-sec-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 10px;
    letter-spacing: -0.02em;
}

.tp-tw-sec-desc {
    font-size: 14px;
    line-height: 1.55;
    color: #64748b;
    margin: 0;
}

.tp-tw-steps-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.tp-tw-step-card {
    background: #ffffff;
    border: 1.5px solid #eef0f6;
    border-radius: 18px;
    padding: 22px 18px;
    position: relative;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.tp-tw-step-card:hover {
    transform: translateY(-3px);
    border-color: #c4b5fd;
    box-shadow: 0 12px 28px -4px rgba(89, 17, 240, 0.1);
}

.tp-tw-step-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f3eeff;
    color: #5911f0;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tp-tw-step-icon {
    font-size: 28px;
    margin-bottom: 12px;
}

.tp-tw-step-heading {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px;
}

.tp-tw-step-body {
    font-size: 12px;
    line-height: 1.5;
    color: #64748b;
    margin: 0;
}

/* 4. ARENAS SECTION */
.tp-tw-arenas-section {
    padding: 24px 0 40px;
}

.tp-tw-filter-bar {
    margin-bottom: 24px;
    display: flex;
    justify-content: flex-start;
}

.tp-tw-filter-chips {
    background: #f1f5f9;
    padding: 5px;
    border-radius: 14px;
    display: inline-flex;
    gap: 6px;
}

.tp-tw-chip {
    border: none;
    background: transparent;
    padding: 9px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tp-tw-chip:hover {
    color: #0f172a;
    background: rgba(255, 255, 255, 0.6);
}

.tp-tw-chip.active {
    background: #ffffff;
    color: #5911f0;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.tp-tw-arenas-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 20px;
    align-items: start;
}

.tp-tw-modules-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tp-tw-arena-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 20px 22px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
}

.tp-tw-card-english {
    border: 1.5px solid #e0e7ff;
    background: linear-gradient(180deg, #fbfaff 0%, #ffffff 100%);
}

.tp-tw-card-hindi {
    border: 1.5px solid #fef3c7;
    background: linear-gradient(180deg, #fffdf7 0%, #ffffff 100%);
}

.tp-tw-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}

.tp-tw-head-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tp-tw-head-icon {
    font-size: 22px;
}

.tp-tw-head-title {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
}

.tp-tw-head-sub {
    font-size: 12px;
    color: #64748b;
    display: block;
}

.tp-tw-head-badge {
    background: #f3eeff;
    color: #5911f0;
    border: 1px solid #ddd6fe;
    border-radius: 9999px;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 700;
}

.tp-tw-font-selector {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tp-tw-font-lbl {
    font-size: 12px;
    font-weight: 700;
    color: #475569;
}

.tp-tw-font-select {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 600;
    color: #0f172a;
    cursor: pointer;
}

.tp-tw-bento-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.tp-tw-bento-item {
    background: #ffffff;
    border: 1.5px solid #eef0f6;
    border-radius: 16px;
    padding: 16px 12px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    position: relative;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.02);
}

.tp-tw-bento-item:hover {
    transform: translateY(-3px);
    border-color: #5911f0;
    box-shadow: 0 10px 24px -4px rgba(89, 17, 240, 0.12);
}

.tp-tw-bento-indicator {
    position: absolute;
    top: -9px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 3px;
    background: #ffffff;
    padding: 2px 6px;
    border-radius: 12px;
    border: 1px solid #c7d2fe;
}

.tp-tw-bento-indicator span {
    background: #5911f0;
    color: #ffffff;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    font-size: 8px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hi-indic {
    border-color: #fde68a !important;
}

.hi-indic span {
    background: #d97706 !important;
}

.tp-tw-bento-iconbox {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #fafafc;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    border: 1px solid #f1f5f9;
}

.tp-tw-bento-iconbox img {
    height: 30px;
    width: 30px;
    object-fit: contain;
}

.tp-tw-bento-name {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
}

.tp-tw-name-desk {
    display: inline;
}

.tp-tw-name-mob {
    display: none;
}

.tp-tw-bento-action {
    font-size: 12px;
    font-weight: 700;
    color: #5911f0;
    margin-top: auto;
    transition: transform 0.2s;
}

.tp-tw-act-desk {
    display: inline;
}

.tp-tw-act-mob {
    display: none;
}

.tp-tw-bento-item:hover .tp-tw-bento-action {
    transform: translateX(3px);
}

.tp-tw-bento-highlight {
    background: #f8f6ff;
    border-color: #ddd6fe;
}

.tp-tw-bento-highlight-hi {
    background: #fffdf5;
    border-color: #fde68a;
}

/* Exam Panel */
.tp-tw-exam-panel {
    background: #ffffff;
    border: 1.5px solid #eef0f6;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
    overflow: hidden;
}

.tp-tw-exam-head {
    background: #0f172a;
    color: #ffffff;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tp-tw-exam-title {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: #ffffff;
}

.tp-tw-exam-sub {
    font-size: 11px;
    color: #94a3b8;
    display: block;
    margin-top: 2px;
}

.tp-tw-badge-live {
    background: #ef4444;
    color: #ffffff;
    font-size: 9px;
    font-weight: 800;
    padding: 3px 7px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.tp-tw-exam-list {
    max-height: 420px;
    overflow-y: auto;
    padding: 8px 12px;
}

.tp-tw-exam-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 10px;
    border-bottom: 1px solid #f1f5f9;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tp-tw-exam-card:hover {
    background: #f8fafc;
    transform: translateX(2px);
}

.tp-tw-exam-card:last-child {
    border-bottom: none;
}

.tp-tw-exam-logo {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 4px;
    border: 1px solid #eef0f6;
}

.tp-tw-exam-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.tp-tw-exam-meta {
    flex-grow: 1;
}

.tp-tw-exam-top {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tp-tw-exam-item-name {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
}

.tp-tw-tag {
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
}

.tp-tw-exam-crit {
    margin: 3px 0 0;
    font-size: 11px;
    color: #64748b;
}

.tp-tw-exam-btn {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #0f172a;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.tp-tw-exam-card:hover .tp-tw-exam-btn {
    background: #5911f0;
    color: #ffffff;
    border-color: #5911f0;
}

.tp-tw-exam-footer {
    padding: 10px 16px;
    background: #f8fafc;
    border-top: 1px solid #eef0f6;
    text-align: center;
    font-size: 11px;
    color: #64748b;
}

/* 5. SPEED CERTIFICATE TIERS */
.tp-tw-cert-section {
    padding: 40px 0 32px;
    background: #ffffff;
    border-top: 1px solid #eef0f6;
    border-bottom: 1px solid #eef0f6;
}

.tp-tw-cert-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.tp-tw-cert-card {
    background: #ffffff;
    border: 1.5px solid #eef0f6;
    border-radius: 20px;
    padding: 26px 20px;
    text-align: center;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
}

.tp-tw-cert-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.08);
}

.tp-tw-cert-gold {
    border-color: #fef08a;
    background: linear-gradient(180deg, #fffef0 0%, #ffffff 100%);
}

.tp-tw-cert-silver {
    border-color: #e2e8f0;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.tp-tw-cert-bronze {
    border-color: #ffedd5;
    background: linear-gradient(180deg, #fffaf5 0%, #ffffff 100%);
}

.tp-tw-cert-icon {
    font-size: 36px;
    margin-bottom: 8px;
}

.tp-tw-cert-level {
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 14px;
}

.tp-tw-cert-metrics {
    display: flex;
    justify-content: center;
    gap: 24px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #eef0f6;
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 14px;
}

.tp-tw-cert-m strong {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    display: block;
}

.tp-tw-cert-m span {
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
}

.tp-tw-cert-desc {
    font-size: 12px;
    line-height: 1.5;
    color: #64748b;
    margin: 0;
}

/* 6. BENEFITS GRID */
.tp-tw-benefits-section {
    padding: 48px 0 32px;
}

.tp-tw-benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.tp-tw-benefit-card {
    background: #ffffff;
    border: 1.5px solid #eef0f6;
    border-radius: 18px;
    padding: 22px 18px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.02);
    transition: all 0.2s ease;
}

.tp-tw-benefit-card:hover {
    transform: translateY(-2px);
    border-color: #c4b5fd;
    box-shadow: 0 8px 24px -4px rgba(89, 17, 240, 0.08);
}

.tp-tw-ben-icon {
    font-size: 28px;
    margin-bottom: 12px;
}

.tp-tw-benefit-card h3 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
}

.tp-tw-benefit-card p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #64748b;
}

/* 7. INTERACTIVE TEST LAUNCH MODAL */
.tp-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(6px);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.tp-modal-overlay.show {
    display: flex;
    opacity: 1;
}

.tp-modal-box {
    background: #ffffff;
    border-radius: 20px;
    width: 90%;
    max-width: 520px;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
    overflow: hidden;
    animation: tpModalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes tpModalIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.tp-modal-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #eef0f6;
}

.tp-modal-title {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
}

.tp-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #64748b;
    cursor: pointer;
    line-height: 1;
}

.tp-modal-close:hover {
    color: #0f172a;
}

.tp-modal-body {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tp-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tp-field-label {
    font-size: 12px;
    font-weight: 700;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tp-pill-selector {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tp-sel-pill {
    background: #fafafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
}

.tp-sel-pill:hover {
    border-color: #5911f0;
    color: #5911f0;
}

.tp-sel-pill.active {
    background: #5911f0;
    border-color: #5911f0;
    color: #ffffff;
}

.tp-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px;
    background: #fafafc;
    border-top: 1px solid #eef0f6;
}

.tp-btn-secondary {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
}

.tp-btn-launch-primary {
    background: #5911f0;
    border: none;
    border-radius: 12px;
    padding: 10px 22px;
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(89, 17, 240, 0.35);
    transition: all 0.2s;
}

.tp-btn-launch-primary:hover {
    background: #470dc4;
    transform: translateY(-1px);
}

/* RESPONSIVE TYPEWIZZ LAYOUT */
@media (max-width: 1024px) {
    .tp-tw-hero-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .tp-tw-hero-left {
        align-items: center;
        text-align: center;
    }
    .tp-tw-hero-actions {
        justify-content: center;
    }
    .tp-tw-trust-strip {
        justify-content: center;
    }
    .tp-tw-arenas-grid {
        grid-template-columns: 1fr;
    }
    .tp-tw-steps-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .tp-tw-benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .tp-tw-hero {
        padding: 24px 0 16px;
    }
    .tp-tw-hero-title {
        font-size: clamp(1.6rem, 6.8vw, 2.05rem) !important;
        line-height: 1.2 !important;
        margin-bottom: 10px !important;
    }
    .tp-tw-hero-sub {
        font-size: 13px !important;
        line-height: 1.5 !important;
        margin-bottom: 16px !important;
    }
    .tp-tw-badge-desk {
        display: none !important;
    }
    .tp-tw-badge-mob {
        display: inline !important;
    }
    .tp-tw-badge {
        font-size: 11.5px !important;
        padding: 4px 12px !important;
        margin-bottom: 12px !important;
    }
    .tp-tw-hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 8px;
        margin-bottom: 16px;
    }
    .tp-tw-btn-primary {
        width: 100% !important;
        padding: 13px 16px !important;
        font-size: 14px !important;
        border-radius: 12px !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }
    .tp-tw-sub-actions {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        width: 100% !important;
    }
    .tp-tw-btn-secondary {
        width: 100% !important;
        padding: 11px 6px !important;
        font-size: 12px !important;
        border-radius: 12px !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }
    .tp-tw-trust-strip {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
        width: 100% !important;
        border-radius: 12px !important;
        padding: 8px 10px !important;
        box-sizing: border-box !important;
        justify-content: center !important;
    }
    .tp-tw-trust-item {
        justify-content: center !important;
        gap: 4px !important;
    }
    .tp-tw-trust-val {
        font-size: 12px !important;
    }
    .tp-tw-trust-lbl {
        font-size: 10.5px !important;
    }
    .tp-tw-trust-divider {
        display: none !important;
    }
    .tp-tw-quick-card {
        padding: 16px 12px !important;
        border-radius: 16px !important;
        margin-top: 4px !important;
    }
    .tp-tw-qc-header {
        margin-bottom: 12px !important;
        padding-bottom: 10px !important;
        gap: 10px !important;
    }
    .tp-tw-qc-icon {
        width: 34px !important;
        height: 34px !important;
        font-size: 16px !important;
        border-radius: 10px !important;
    }
    .tp-tw-qc-title {
        font-size: 14.5px !important;
    }
    .tp-tw-qc-sub {
        font-size: 11px !important;
    }
    .tp-tw-qc-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px !important;
        margin-bottom: 12px !important;
    }
    .tp-tw-qc-pill {
        padding: 9px 2px !important;
        border-radius: 10px !important;
        min-height: 52px !important;
    }
    .tp-tw-qc-time {
        font-size: 13.5px !important;
    }
    .tp-tw-qc-tag {
        font-size: 9px !important;
        letter-spacing: -0.2px !important;
    }
    .tp-tw-btn-launch-quick {
        padding: 12px 14px !important;
        font-size: 13.5px !important;
        border-radius: 10px !important;
    }
    .tp-tw-how-section {
        padding: 30px 0 16px !important;
    }
    .tp-tw-sec-head {
        margin-bottom: 20px !important;
    }
    .tp-tw-sec-title {
        font-size: 1.45rem !important;
        margin-bottom: 8px !important;
    }
    .tp-tw-sec-desc {
        font-size: 12.5px !important;
    }
    .tp-tw-swipe-indicator {
        display: inline-flex !important;
        align-items: center;
        gap: 4px;
        font-size: 10.5px;
        font-weight: 700;
        color: #5911f0;
        background: #f3eeff;
        padding: 3px 10px;
        border-radius: 9999px;
        margin-top: 8px;
        border: 1px solid #ddd6fe;
    }
    .tp-tw-steps-grid {
        display: flex !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        gap: 10px !important;
        padding: 4px 14px 14px 14px !important;
        margin: 0 -14px !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
    }
    .tp-tw-steps-grid::-webkit-scrollbar {
        display: none;
    }
    .tp-tw-step-card {
        flex: 0 0 76vw !important;
        max-width: 270px !important;
        scroll-snap-align: center !important;
        padding: 16px 14px !important;
        border-radius: 16px !important;
    }
    .tp-tw-step-badge {
        top: 12px !important;
        right: 12px !important;
        width: 22px !important;
        height: 22px !important;
        font-size: 10px !important;
    }
    .tp-tw-step-icon {
        font-size: 24px !important;
        margin-bottom: 8px !important;
    }
    .tp-tw-step-heading {
        font-size: 14px !important;
        margin-bottom: 6px !important;
    }
    .tp-tw-step-body {
        font-size: 11.5px !important;
        line-height: 1.45 !important;
    }
    .tp-tw-arenas-section {
        padding: 16px 0 24px !important;
    }
    .tp-tw-filter-bar {
        margin-bottom: 14px !important;
    }
    .tp-tw-filter-chips {
        width: 100% !important;
        display: flex !important;
        justify-content: space-between !important;
        padding: 3px !important;
        border-radius: 10px !important;
    }
    .tp-tw-chip {
        flex: 1 !important;
        text-align: center !important;
        padding: 7px 4px !important;
        font-size: 11px !important;
        white-space: nowrap !important;
    }
    .tp-tw-arena-card {
        padding: 14px 12px !important;
        border-radius: 16px !important;
    }
    .tp-tw-card-head {
        margin-bottom: 12px !important;
        gap: 6px !important;
    }
    .tp-tw-head-title {
        font-size: 14.5px !important;
    }
    .tp-tw-head-sub {
        font-size: 10px !important;
    }
    .tp-tw-head-badge {
        font-size: 9.5px !important;
        padding: 2px 7px !important;
    }
    .tp-tw-font-selector {
        width: 100% !important;
        justify-content: space-between !important;
        margin-top: 4px !important;
    }
    .tp-tw-font-select {
        font-size: 11px !important;
        padding: 4px 6px !important;
    }
    .tp-tw-bento-row {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px !important;
    }
    .tp-tw-bento-item {
        padding: 10px 3px 8px 3px !important;
        border-radius: 12px !important;
        min-height: 102px !important;
        box-sizing: border-box !important;
    }
    .tp-tw-bento-indicator {
        top: -7px !important;
        padding: 1px 4px !important;
        gap: 2px !important;
    }
    .tp-tw-bento-indicator span {
        width: 12px !important;
        height: 12px !important;
        font-size: 6.5px !important;
    }
    .tp-tw-bento-iconbox {
        width: 34px !important;
        height: 34px !important;
        margin-bottom: 6px !important;
        border-radius: 8px !important;
    }
    .tp-tw-bento-iconbox img {
        width: 22px !important;
        height: 22px !important;
    }
    .tp-tw-bento-name {
        font-size: 11px !important;
        line-height: 1.2 !important;
        margin: 0 0 4px !important;
        word-break: break-word !important;
    }
    .tp-tw-name-desk {
        display: none !important;
    }
    .tp-tw-name-mob {
        display: inline !important;
    }
    .tp-tw-bento-action {
        font-size: 9.5px !important;
        padding: 2px 4px !important;
        background: #eff6ff !important;
        color: #5911f0 !important;
        border-radius: 4px !important;
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .tp-tw-act-desk {
        display: none !important;
    }
    .tp-tw-act-mob {
        display: inline !important;
    }
    .tp-tw-exam-panel {
        border-radius: 16px !important;
    }
    .tp-tw-exam-head {
        padding: 12px 14px !important;
    }
    .tp-tw-exam-title {
        font-size: 14px !important;
    }
    .tp-tw-exam-sub {
        font-size: 10px !important;
    }
    .tp-tw-exam-list {
        padding: 6px 8px !important;
        max-height: 380px !important;
    }
    .tp-tw-exam-card {
        padding: 8px 6px !important;
        gap: 8px !important;
    }
    .tp-tw-exam-logo {
        width: 32px !important;
        height: 32px !important;
        border-radius: 8px !important;
        padding: 2px !important;
    }
    .tp-tw-exam-item-name {
        font-size: 12px !important;
    }
    .tp-tw-tag {
        font-size: 9px !important;
        padding: 1px 5px !important;
    }
    .tp-tw-exam-crit {
        font-size: 10px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    .tp-tw-exam-btn {
        padding: 4px 10px !important;
        font-size: 10px !important;
        border-radius: 5px !important;
    }
    .tp-tw-cert-section {
        padding: 28px 0 20px !important;
    }
    .tp-tw-cert-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    .tp-tw-cert-card {
        padding: 16px 14px !important;
        border-radius: 16px !important;
        text-align: left !important;
        display: flex !important;
        flex-direction: column !important;
    }
    .tp-tw-cert-icon {
        font-size: 28px !important;
        margin-bottom: 4px !important;
    }
    .tp-tw-cert-level {
        font-size: 15px !important;
        margin-bottom: 8px !important;
    }
    .tp-tw-cert-metrics {
        padding: 8px 12px !important;
        margin-bottom: 8px !important;
        justify-content: space-around !important;
    }
    .tp-tw-cert-m strong {
        font-size: 14px !important;
    }
    .tp-tw-cert-desc {
        font-size: 11px !important;
    }
    .tp-tw-benefits-section {
        padding: 28px 0 24px !important;
    }
    .tp-tw-benefits-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    .tp-tw-benefit-card {
        padding: 14px 10px !important;
        border-radius: 14px !important;
        text-align: center !important;
    }
    .tp-tw-ben-icon {
        font-size: 24px !important;
        margin-bottom: 6px !important;
    }
    .tp-tw-benefit-card h3 {
        font-size: 12.5px !important;
        margin: 0 0 4px !important;
    }
    .tp-tw-benefit-card p {
        font-size: 10px !important;
        line-height: 1.35 !important;
    }
}
/* ========================================================
   OFF-CANVAS SIDEBAR DRAWER STYLES
   ======================================================== */

.tp-sidebar-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100000;
    pointer-events: none;
    visibility: hidden;
    transition: visibility 0.3s ease;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.tp-sidebar-drawer-overlay.tp-sidebar-active {
    visibility: visible;
    pointer-events: auto;
}

.tp-sidebar-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tp-sidebar-active .tp-sidebar-backdrop {
    opacity: 1;
}

body.tp-sidebar-open {
    overflow: hidden !important;
}

.tp-sidebar-content {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 295px;
    max-width: 82vw;
    background: #ffffff;
    box-shadow: 10px 0 35px rgba(0, 0, 0, 0.18);
    transform: translateX(-100%);
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    z-index: 2;
}

.tp-sidebar-active .tp-sidebar-content {
    transform: translateX(0);
}

/* Sidebar Top Bar */
.tp-sidebar-top-bar {
    padding: 16px 18px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
}

.tp-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tp-sidebar-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.tp-sidebar-brand-meta strong {
    display: block;
    font-size: 15px;
    color: #0f172a;
    font-weight: 800;
    line-height: 1.15;
}

.tp-sidebar-brand-meta span {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
}

.tp-sidebar-close-btn {
    background: #e2e8f0;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
}

.tp-sidebar-close-btn:hover {
    background: #cbd5e1;
    color: #0f172a;
}

/* Sidebar Search */
.tp-sidebar-search {
    padding: 12px 18px 8px 18px;
}

.tp-sb-search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 8px 12px;
}

.tp-sb-search-input {
    border: none;
    background: transparent;
    font-size: 13px;
    width: 100%;
    outline: none;
    color: #0f172a;
}

/* Navigation Links */
.tp-sidebar-nav {
    flex: 1;
    padding: 8px 14px;
}

.tp-sb-group-title {
    display: block;
    font-size: 10.5px;
    font-weight: 800;
    color: #94a3b8;
    letter-spacing: 0.05em;
    padding: 10px 8px 6px 8px;
}

.tp-sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tp-sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: #1e293b;
    font-size: 13.5px;
    font-weight: 600;
    transition: all 0.2s;
}

.tp-sidebar-menu li a:hover,
.tp-sidebar-menu li a:active {
    background: #eff6ff;
    color: #2563eb;
}

.tp-sb-icon {
    font-size: 16px;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

.tp-sb-title {
    flex: 1;
}

.tp-sb-badge {
    font-size: 10px;
    font-weight: 700;
    color: #ffffff;
    background: #2563eb;
    padding: 2px 7px;
    border-radius: 9999px;
}

/* Sidebar App Card */
.tp-sidebar-app-card {
    background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 12px;
    margin: 16px 4px 8px 4px;
}

.tp-sb-app-head {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
}

.tp-sb-app-icon {
    font-size: 16px;
    background: #2563eb;
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tp-sb-app-head strong {
    display: block;
    font-size: 12.5px;
    color: #0f172a;
    line-height: 1.2;
}

.tp-sb-app-head p {
    font-size: 11px;
    color: #64748b;
    margin: 2px 0 0 0;
    line-height: 1.3;
}

.tp-sb-app-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff !important;
    font-size: 11.5px;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

.tp-sb-app-link svg {
    fill: #ffffff;
}

/* Sidebar Bottom Footer */
.tp-sidebar-bottom {
    padding: 14px 18px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.tp-sb-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tp-sb-avatar-img {
    border-radius: 50%;
    border: 2px solid #2563eb;
    width: 36px;
    height: 36px;
}

.tp-sb-user-meta {
    flex: 1;
}

.tp-sb-username {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.tp-sb-logout-link {
    font-size: 11px;
    color: #ef4444;
    text-decoration: none;
    font-weight: 600;
}

.tp-sb-quick-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px 14px;
    background: #0f172a;
    color: #ffffff !important;
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
}


/* ========================================================
   MOBILE APP PROMPT BOTTOM SHEET (Reddit/LinkedIn Style)
   ======================================================== */

.tp-mob-prompt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    font-family: 'Plus Jakarta Sans', sans-serif;
    pointer-events: none;
}

.tp-mob-prompt-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: auto;
    transition: opacity 0.3s ease;
}

.tp-mob-prompt-sheet {
    position: relative;
    background: #ffffff;
    border-radius: 24px 24px 0 0;
    padding: 12px 20px 24px 20px;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.25);
    pointer-events: auto;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
    border-top: 1px solid rgba(226, 232, 240, 0.9);
}

body.tp-prompt-open {
    overflow: hidden !important;
}

body.tp-prompt-open .tp-mob-prompt-backdrop {
    opacity: 1;
}

body.tp-prompt-open .tp-mob-prompt-sheet {
    transform: translateY(0);
}

.tp-prompt-closing .tp-mob-prompt-backdrop {
    opacity: 0 !important;
}

.tp-prompt-closing .tp-mob-prompt-sheet {
    transform: translateY(100%) !important;
}

.tp-mob-prompt-handle {
    width: 42px;
    height: 4px;
    background: #cbd5e1;
    border-radius: 9999px;
    margin: 0 auto 14px auto;
}

.tp-mob-prompt-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: #f1f5f9;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
    transition: background 0.2s;
}

.tp-mob-prompt-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.tp-mob-prompt-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.tp-mob-prompt-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
    flex-shrink: 0;
    overflow: hidden;
    padding: 6px;
}

.tp-mob-prompt-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tp-mob-prompt-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 4px 0;
    letter-spacing: -0.02em;
}

.tp-mob-prompt-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tp-mob-tag {
    font-size: 11px;
    font-weight: 700;
    color: #2563eb;
    background: #eff6ff;
    padding: 2px 8px;
    border-radius: 6px;
}

.tp-mob-prompt-desc {
    font-size: 0.88rem;
    line-height: 1.45;
    color: #475569;
    margin: 0 0 18px 0;
}

.tp-mob-prompt-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tp-mob-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff !important;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 13px 20px;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
}

.tp-mob-btn-primary svg {
    fill: #ffffff;
}

.tp-mob-btn-primary:active {
    transform: scale(0.98);
}

.tp-mob-btn-secondary {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 11px 18px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.tp-mob-btn-secondary:hover {
    background: #f1f5f9;
    color: #0f172a;
}

/* ========================================================
   LIVE TYPING TEST ARENA & HUD
   ======================================================== */

.tp-typing-test-page {
    background: #f1f5f9;
    min-height: calc(100vh - 160px);
    padding: 30px 0 60px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.tp-test-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 20px;
}

.tp-back-link {
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 8px;
    transition: color 0.2s;
}

.tp-back-link:hover {
    color: #2563eb;
}

.tp-active-test-title {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
}

.tp-test-meta-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tp-meta-pill {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 700;
    color: #475569;
}

/* Live HUD */
.tp-live-hud {
    display: flex;
    gap: 12px;
}

.tp-hud-box {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    padding: 10px 18px;
    min-width: 90px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.tp-hud-lbl {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 2px;
}

.tp-hud-val {
    font-family: var(--font-mono);
    font-size: 24px;
    font-weight: 800;
    line-height: 1.1;
    display: block;
}

.tp-hud-time .tp-hud-val {
    color: #2563eb;
}

.tp-hud-wpm .tp-hud-val {
    color: #059669;
}

.tp-hud-acc .tp-hud-val {
    color: #d97706;
}

.tp-hud-err .tp-hud-val {
    color: #dc2626;
}

/* Test Paper Card */
.tp-test-paper-card {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #cbd5e1;
    padding: 36px 40px;
    position: relative;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
    cursor: text;
    margin-bottom: 24px;
    min-height: 240px;
}

.tp-watermark-exam {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-10deg);
    font-size: 70px;
    font-weight: 900;
    color: rgba(15, 23, 42, 0.03);
    user-select: none;
    pointer-events: none;
    letter-spacing: 4px;
    white-space: nowrap;
}

.tp-test-paper-card .tp-text-display {
    font-family: var(--font-mono);
    font-size: 1.55rem;
    line-height: 1.8;
    color: #64748b;
    max-height: 240px;
    overflow-y: hidden;
    user-select: none;
}

.tp-test-paper-card .tp-char.correct {
    color: #0f172a;
    background: #e2fbe8;
}

.tp-test-paper-card .tp-char.incorrect {
    color: #ffffff;
    background: #ef4444;
}

.tp-test-paper-card .tp-char.active {
    border-left: 3px solid #2563eb;
    background: rgba(37, 99, 235, 0.12);
}

.tp-test-controls-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.tp-test-tip {
    font-size: 13px;
    color: #64748b;
    margin-left: auto;
}

/* ========================================================
   MODERN COMPACT FOOTER (TYPINGPEDIAWEB)
   ======================================================== */

.tp-site-footer {
    background-color: #0f172a;
    color: #94a3b8;
    position: relative;
    font-family: 'Plus Jakarta Sans', sans-serif;
    padding-top: 0;
}

.tp-footer-top-accent {
    height: 2px;
    background: linear-gradient(90deg, #2563eb 0%, #7c3aed 50%, #06b6d4 100%);
    width: 100%;
}

.tp-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 28px;
    padding: 36px 0 24px;
}

.tp-footer-logo img {
    height: 32px;
    object-fit: contain;
}

.tp-footer-bio {
    font-size: 12px;
    line-height: 1.55;
    color: #94a3b8;
    margin: 10px 0 14px;
    max-width: 320px;
}

.tp-footer-socials {
    display: flex;
    gap: 8px;
}

.tp-social-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: #1e293b;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 1px solid #334155;
    transition: all 0.2s ease;
}

.tp-social-btn:hover {
    transform: translateY(-2px);
    color: #ffffff;
}

.tp-soc-tg:hover {
    background: #0088cc;
    border-color: #0088cc;
}

.tp-soc-yt:hover {
    background: #ff0000;
    border-color: #ff0000;
}

.tp-soc-x:hover {
    background: #000000;
    border-color: #ffffff;
}

.tp-soc-ig:hover {
    background: #e1306c;
    border-color: #e1306c;
}

.tp-footer-heading {
    margin: 0 0 12px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #f8fafc;
}

.tp-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tp-footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.2s ease;
    display: inline-block;
}

.tp-footer-links a:hover {
    color: #38bdf8;
    transform: translateX(2px);
}

.tp-footer-bottom {
    border-top: 1px solid #1e293b;
    padding: 14px 0 18px;
}

.tp-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.tp-copyright-text {
    margin: 0;
    font-size: 11px;
    color: #64748b;
}

.tp-copyright-text strong {
    color: #cbd5e1;
}

.tp-footer-badges {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tp-status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 9999px;
    padding: 3px 10px;
    font-size: 10px;
    font-weight: 700;
    color: #cbd5e1;
}

.tp-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
}

.tp-back-to-top {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 6px;
    color: #cbd5e1;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.tp-back-to-top:hover {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

/* Responsive Footer */
@media (max-width: 1024px) {
    .tp-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .tp-site-footer {
        padding-bottom: 16px !important;
    }

    .tp-footer-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px 14px !important;
        padding: 24px 0 16px !important;
    }

    .tp-footer-brand-col {
        grid-column: 1 / -1 !important;
        margin-bottom: 2px !important;
    }

    .tp-footer-logo img {
        height: 30px !important;
    }

    .tp-footer-bio {
        max-width: 100% !important;
        font-size: 11.5px !important;
        line-height: 1.5 !important;
        margin: 6px 0 10px !important;
        color: #94a3b8 !important;
    }

    .tp-footer-socials {
        gap: 8px !important;
    }

    .tp-social-btn {
        width: 32px !important;
        height: 32px !important;
    }

    .tp-footer-heading {
        margin: 0 0 8px !important;
        font-size: 11px !important;
        font-weight: 800 !important;
        letter-spacing: 0.5px !important;
        color: #f1f5f9 !important;
    }

    .tp-footer-links {
        display: flex !important;
        flex-direction: column !important;
        gap: 6px !important;
    }

    .tp-footer-links a {
        font-size: 11px !important;
        line-height: 1.35 !important;
        color: #94a3b8 !important;
        display: block !important;
    }

    .tp-footer-links a:hover {
        color: #38bdf8 !important;
    }

    .tp-footer-col:last-child {
        grid-column: 1 / -1 !important;
        margin-top: 4px !important;
        padding-top: 12px !important;
        border-top: 1px dashed rgba(255, 255, 255, 0.08) !important;
    }

    .tp-footer-col:last-child .tp-footer-links {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px 14px !important;
    }

    .tp-footer-bottom {
        padding: 12px 0 14px !important;
        margin-top: 8px !important;
    }

    .tp-bottom-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 8px !important;
    }

    .tp-copyright-text {
        font-size: 10.5px !important;
        text-align: center !important;
        line-height: 1.4 !important;
    }

    .tp-footer-badges {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important;
    }
}
