/**
 * TypingPediaWeb - Word Practice Modern Stylesheet
 * Dual Mode:
 *   1. English: Keybr.com style direct typing arena with in-text cursor, letter feedback & virtual keyboard
 *   2. Hindi (Mangal & Kruti Dev): TypingGuru Android App style Lessons List + Dedicated Practice Test Arena
 */

:root {
    --tp-wp-primary: #0284c7;
    --tp-wp-primary-hover: #0369a1;
    --tp-wp-primary-light: #e0f2fe;
    --tp-wp-accent: #f59e0b;
    --tp-wp-success: #16a34a;
    --tp-wp-danger: #dc2626;
    --tp-wp-warning: #d97706;
    
    --tp-wp-bg: #f8fafc;
    --tp-wp-card-bg: #ffffff;
    --tp-wp-border: #e2e8f0;
    --tp-wp-text: #0f172a;
    --tp-wp-text-muted: #64748b;
    
    --tp-wp-arena-bg: #ffffff;
    --tp-wp-arena-border: #cbd5e1;
    --tp-wp-active-bg: #ffe082;
    --tp-wp-active-text: #1e293b;
    --tp-wp-correct-text: #16a34a;
    --tp-wp-error-bg: #fee2e2;
    --tp-wp-error-text: #dc2626;
    
    --tp-wp-key-bg: #f1f5f9;
    --tp-wp-key-border: #cbd5e1;
    --tp-wp-key-text: #334155;
    --tp-wp-key-active-bg: #f59e0b;
    --tp-wp-key-active-text: #ffffff;
    --tp-wp-key-done-bg: #10b981;
    
    --tp-wp-font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --tp-wp-mono: 'JetBrains Mono', 'Courier Prime', monospace;
    --tp-wp-heading: 'Outfit', sans-serif;
    
    --tp-wp-radius-sm: 8px;
    --tp-wp-radius-md: 14px;
    --tp-wp-radius-lg: 20px;
    --tp-wp-shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --tp-wp-shadow-md: 0 4px 14px rgba(0,0,0,0.08);
    --tp-wp-shadow-lg: 0 12px 30px rgba(0,0,0,0.12);
}

/* ─── Dark Theme Mode ─── */
body.tp-dark-theme,
.tp-wp-page.theme-dark {
    --tp-wp-bg: #0b0f17;
    --tp-wp-card-bg: #131b28;
    --tp-wp-border: #1e293b;
    --tp-wp-text: #f1f5f9;
    --tp-wp-text-muted: #94a3b8;
    
    --tp-wp-arena-bg: #0f172a;
    --tp-wp-arena-border: #1e293b;
    --tp-wp-active-bg: #f59e0b;
    --tp-wp-active-text: #000000;
    --tp-wp-correct-text: #34d399;
    --tp-wp-error-bg: rgba(220, 38, 38, 0.25);
    --tp-wp-error-text: #f87171;
    
    --tp-wp-key-bg: #1e293b;
    --tp-wp-key-border: #334155;
    --tp-wp-key-text: #e2e8f0;
}

/* ─── Main Wrapper ─── */
.tp-wp-page {
    background: var(--tp-wp-bg);
    color: var(--tp-wp-text);
    font-family: var(--tp-wp-font);
    min-height: 100vh;
    padding-bottom: 60px;
    transition: background 0.3s ease, color 0.3s ease;
}

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

/* ─── Breadcrumbs ─── */
.tp-wp-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--tp-wp-text-muted);
    margin-bottom: 16px;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 4px;
}

.tp-wp-breadcrumbs a {
    color: var(--tp-wp-text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.tp-wp-breadcrumbs a:hover {
    color: var(--tp-wp-primary);
}

.tp-wp-breadcrumbs .sep { opacity: 0.5; }
.tp-wp-breadcrumbs .current {
    color: var(--tp-wp-primary);
    font-weight: 600;
}

/* ─── Compact Space-Saving Top Navbar ─── */
.tp-wp-compact-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--tp-wp-card-bg);
    border: 1px solid var(--tp-wp-border);
    border-radius: var(--tp-wp-radius-md);
    padding: 6px 12px;
    box-shadow: var(--tp-wp-shadow-sm);
    margin-bottom: 10px;
    gap: 12px;
    flex-wrap: wrap;
}

.tp-wp-compact-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
}
.tp-wp-compact-tabs::-webkit-scrollbar { display: none; }

.tp-wp-compact-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--tp-wp-radius-sm);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--tp-wp-text-muted);
    background: transparent;
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tp-wp-compact-tab:hover {
    color: var(--tp-wp-text);
    background: var(--tp-wp-surface-2);
}

.tp-wp-compact-tab.active {
    background: var(--tp-wp-primary);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3);
}

.tp-wp-tab-count {
    background: rgba(0, 0, 0, 0.08);
    font-size: 0.72rem;
    padding: 1px 6px;
    border-radius: 8px;
    font-weight: 700;
}
.tp-wp-compact-tab.active .tp-wp-tab-count {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.tp-wp-compact-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.tp-wp-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--tp-wp-surface-2);
    border: 1px solid var(--tp-wp-border);
    border-radius: var(--tp-wp-radius-sm);
    color: var(--tp-wp-text);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}
.tp-wp-action-btn:hover {
    background: var(--tp-wp-border);
}

.tp-wp-target-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: #ffffff;
    border: none;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25);
    transition: transform 0.15s, box-shadow 0.15s;
}
.tp-wp-target-pill:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.35);
}

/* ─── Compact Title Bar (SEO H1) ─── */
.tp-wp-title-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    padding: 0 4px;
}

.tp-wp-compact-h1 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
    line-height: 1.3;
}

.tp-wp-active-badge {
    background: #e2e8f0;
    color: #334155;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 12px;
    white-space: nowrap;
}

/* ─── SECTION A: LESSONS LIST CARDS (TypingGuru App Style) ─── */
.tp-wp-lessons-list-section {
    margin-bottom: 24px;
}

.tp-wp-list-header {
    margin-bottom: 14px;
}
.tp-wp-list-header h2 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 4px 0;
}
.tp-wp-list-header p {
    font-size: 0.88rem;
    color: #64748b;
    margin: 0;
}

.tp-wp-lessons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 12px;
}

/* Card matching item_hindi_word_practice.xml */
.tp-wp-lesson-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px 14px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tp-wp-lesson-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

.tp-wp-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tp-wp-num-badge {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25);
}

.tp-wp-card-meta {
    flex: 1;
    min-width: 0;
}

.tp-wp-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 3px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tp-wp-shift-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.tp-wp-shift-badge.no-shift {
    background: #e0f2fe;
    color: #0369a1;
}
.tp-wp-shift-badge.with-shift {
    background: #fee2e2;
    color: #b91c1c;
}

.tp-btn-practice-now {
    height: 32px;
    padding: 0 14px;
    background: linear-gradient(135deg, #059669, #047857);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.3);
    transition: transform 0.12s, box-shadow 0.12s;
    white-space: nowrap;
}
.tp-btn-practice-now:hover {
    transform: scale(1.04);
    box-shadow: 0 4px 10px rgba(5, 150, 105, 0.45);
}

.tp-wp-card-keys-row {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    padding-top: 4px;
    scrollbar-width: none;
}
.tp-wp-card-keys-row::-webkit-scrollbar { display: none; }

.tp-wp-mini-key {
    min-width: 28px;
    height: 28px;
    padding: 0 6px;
    border-radius: 5px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #334155;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    line-height: 1.2;
}

/* Language accents */
.tp-wp-page[data-lang="mangal"] {
    --tp-wp-primary: #059669;
    --tp-wp-primary-hover: #047857;
    --tp-wp-primary-light: #d1fae5;
}
.tp-wp-page[data-lang="krutidev"] {
    --tp-wp-primary: #ea580c;
    --tp-wp-primary-hover: #c2410c;
    --tp-wp-primary-light: #ffedd5;
}

/* Language accents */
.tp-wp-page[data-lang="mangal"] {
    --tp-wp-primary: #059669;
    --tp-wp-primary-hover: #047857;
    --tp-wp-primary-light: #d1fae5;
}
.tp-wp-page[data-lang="krutidev"] {
    --tp-wp-primary: #ea580c;
    --tp-wp-primary-hover: #c2410c;
    --tp-wp-primary-light: #ffedd5;
}

/* ==========================================================================
   PART 1: TYPINGGURU ENGLISH WORD PRACTICE TOOL (APP STYLE)
   ========================================================================== */
.tp-guru-wp-container {
    background: var(--tp-wp-card-bg);
    border: 1px solid var(--tp-wp-border);
    border-radius: var(--tp-wp-radius-lg);
    box-shadow: var(--tp-wp-shadow-md);
    padding: 18px 20px 24px;
    margin-bottom: 30px;
    transition: background 0.3s ease, border-color 0.3s ease;
}

/* 1. Top Toolbar (Matching #llTopToolbar: #333333, 44px) */
.tp-guru-toolbar {
    background: #333333;
    min-height: 46px;
    border-radius: 8px;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    flex-wrap: wrap;
}

.tp-guru-tool-btn {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    background: #000000;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    transition: opacity 0.15s, transform 0.1s;
    text-decoration: none;
}
.tp-guru-tool-btn:hover { opacity: 0.85; transform: scale(1.05); }
.tp-guru-tool-btn:active { transform: scale(0.95); }
.tp-guru-tool-btn img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}
.tp-guru-tool-btn.card-box {
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

/* Stats HUD: Speed | Accuracy | Time | Errors (Equal weight) */
.tp-guru-stats-group {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-around;
    height: 100%;
    margin: 0 4px;
    min-width: 260px;
}

.tp-guru-stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    line-height: 1.15;
    text-align: center;
}

.tp-guru-stat-val {
    font-family: var(--tp-wp-mono);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.3px;
}
.tp-guru-stat-val.val-speed { color: #FF5252; }
.tp-guru-stat-val.val-accuracy { color: #69F0AE; }
.tp-guru-stat-val.val-time { color: #FFD54F; }
.tp-guru-stat-val.val-errors { color: #FF8A65; }

.tp-guru-stat-lbl {
    font-size: 10px;
    font-weight: 700;
    color: #cccccc;
    text-transform: uppercase;
    margin-top: 1px;
}

.tp-guru-stat-divider {
    width: 1px;
    height: 20px;
    background: #555555;
}

/* Strict Mode Switch */
.tp-guru-strict-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
    margin: 0 4px;
    white-space: nowrap;
}
.tp-guru-strict-switch input { display: none; }
.tp-guru-switch-slider {
    position: relative;
    width: 32px;
    height: 18px;
    background: #666666;
    border-radius: 10px;
    transition: background 0.2s;
}
.tp-guru-switch-slider::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ffffff;
    transition: transform 0.2s;
}
.tp-guru-strict-switch input:checked + .tp-guru-switch-slider {
    background: #10b981;
}
.tp-guru-strict-switch input:checked + .tp-guru-switch-slider::before {
    transform: translateX(14px);
}

/* Round Buttons: Layout & Theme */
.tp-guru-round-btn {
    width: 30px;
    height: 30px;
    border-radius: 15px;
    background: #000000;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: transform 0.15s;
}
.tp-guru-round-btn:hover { transform: scale(1.08); }
.tp-guru-round-btn img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}
.tp-guru-round-btn.theme-btn {
    background: #E0E0E0;
}

/* Reset Car Button */
.tp-guru-car-btn {
    width: 58px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: transform 0.15s;
}
.tp-guru-car-btn:hover { transform: scale(1.06); }
.tp-guru-car-btn img {
    width: 54px;
    height: 30px;
    object-fit: contain;
}

.tp-guru-toolbar-border {
    width: 100%;
    height: 2px;
    background: #DDDDDD;
    margin-top: 6px;
    margin-bottom: 8px;
}

/* 2. Key Row Container */
.tp-guru-keyrow-container {
    position: relative;
    margin-top: 6px;
    min-height: 44px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.tp-guru-keyrow-scroll {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
    padding: 4px 2px;
}
.tp-guru-keyrow-scroll::-webkit-scrollbar { display: none; }

.tp-guru-keys-wrap {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.tp-guru-key-group {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-right: 6px;
    cursor: pointer;
}

.tp-guru-key-cap {
    width: 36px;
    height: 36px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--tp-wp-mono);
    font-size: 17px;
    font-weight: 800;
    color: #ffffff;
    user-select: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

/* Key Colors: Green=Completed, Yellow=Active, Grey=Locked */
.tp-guru-key-cap.key-green {
    background: #2E7D32;
}
.tp-guru-key-cap.key-yellow {
    background: #FB8C00;
    box-shadow: 0 2px 8px rgba(251, 140, 0, 0.45);
    transform: scale(1.05);
}
.tp-guru-key-cap.key-grey {
    background: #757575;
    opacity: 0.85;
}

/* Result Card Overlay (Slides over Key Row) */
.tp-guru-result-card {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 8px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.tp-guru-result-card.passed {
    background: #388E3C;
}
.tp-guru-result-card.failed {
    background: #C62828;
}
.tp-guru-result-text {
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    font-family: var(--tp-wp-font);
    text-align: center;
    letter-spacing: 0.2px;
}

/* 3. Word Display Box (Single-Line Horizontal Mode) */
.tp-guru-display-hsv {
    background: #ffffff;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    margin-top: 10px;
    padding: 14px 16px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.04);
}
.tp-guru-display-hsv::-webkit-scrollbar { display: none; }

.tp-guru-display-words {
    font-family: var(--tp-wp-mono);
    font-size: 22px;
    color: #000000;
    line-height: 2.0;
    padding-right: 50% !important; /* Generous trailing space so active word is always centered */
    white-space: nowrap;
}

/* 4. Word Display Box (Multi-Line Vertical Mode) */
.tp-guru-display-vertical {
    background: #ffffff;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    margin-top: 10px;
    padding: 14px 16px;
    max-height: 200px;
    min-height: 140px;
    overflow-y: auto;
    scroll-behavior: smooth;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.04);
    position: relative;
}

.tp-guru-display-box-vertical {
    font-family: var(--tp-wp-mono);
    font-size: 22px;
    color: #000000;
    line-height: 2.1;
    padding-bottom: 150px !important; /* Ensures the active word can ALWAYS scroll to the upper-third */
    position: relative;
    box-sizing: border-box;
}

.tp-guru-word {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 6px;
    margin: 3px 4px;
    transition: all 0.12s ease;
    line-height: 1.4;
}
.tp-guru-word.active {
    background: #FBBF24 !important;
    color: #000000 !important;
    font-weight: 800 !important;
    border-radius: 6px;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.4), 0 2px 6px rgba(0, 0, 0, 0.15);
    transform: scale(1.05);
    position: relative;
    z-index: 2;
}
.tp-guru-word.error {
    background: #DC2626 !important;
    color: #ffffff !important;
    border-radius: 6px;
}
.tp-guru-word.correct {
    background: transparent;
    color: #10B981;
    opacity: 0.75;
}

/* 5. Input Row */
.tp-guru-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.tp-guru-fs-timer-badge {
    background: #4CAF50;
    color: #ffffff;
    font-family: var(--tp-wp-mono);
    font-weight: 800;
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 8px;
    text-align: center;
    line-height: 1.1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 46px;
}

.tp-guru-type-input {
    flex: 1;
    height: 46px;
    background: #ffffff;
    border: 2px solid #cbd5e1;
    border-radius: 8px;
    text-align: center;
    font-family: var(--tp-wp-mono);
    font-size: 16px;
    font-weight: 700;
    color: #000000;
    padding: 0 16px;
    outline: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.tp-guru-type-input:focus {
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.18);
}
.tp-guru-type-input::placeholder {
    color: #555555;
    font-weight: 500;
}

.tp-guru-fs-btn {
    width: 44px;
    height: 46px;
    background: #009688;
    border-radius: 8px;
    border: none;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 150, 136, 0.3);
    transition: background 0.15s, transform 0.1s;
}
.tp-guru-fs-btn:hover {
    background: #00796b;
    transform: translateY(-1px);
}

/* Progress bar & Meta */
.tp-guru-progress-bar-wrap {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    margin-top: 14px;
    overflow: hidden;
}
.tp-guru-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0284c7, #10b981);
    border-radius: 3px;
    transition: width 0.2s ease;
}
.tp-guru-progress-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--tp-wp-text-muted);
    margin-top: 6px;
    flex-wrap: wrap;
    gap: 6px;
}

/* Dark Mode Overrides for TypingGuru Tool */
body.tp-dark-theme .tp-guru-wp-container,
.tp-wp-page.theme-dark .tp-guru-wp-container {
    background: #121212 !important;
    border-color: #262626 !important;
}
body.tp-dark-theme .tp-guru-display-hsv,
.tp-wp-page.theme-dark .tp-guru-display-hsv,
body.tp-dark-theme .tp-guru-display-vertical,
.tp-wp-page.theme-dark .tp-guru-display-vertical {
    background: #1e1e1e !important;
    border-color: #333333 !important;
}
body.tp-dark-theme .tp-guru-display-words,
.tp-wp-page.theme-dark .tp-guru-display-words,
body.tp-dark-theme .tp-guru-display-box-vertical,
.tp-wp-page.theme-dark .tp-guru-display-box-vertical {
    color: #E0E0E0 !important;
}
body.tp-dark-theme .tp-guru-type-input,
.tp-wp-page.theme-dark .tp-guru-type-input {
    background: #1e1e1e !important;
    color: #E0E0E0 !important;
    border-color: #333333 !important;
}
body.tp-dark-theme .tp-guru-type-input::placeholder,
.tp-wp-page.theme-dark .tp-guru-type-input::placeholder {
    color: #888888 !important;
}
body.tp-dark-theme .tp-guru-toolbar-border,
.tp-wp-page.theme-dark .tp-guru-toolbar-border {
    background: #333333 !important;
}
body.tp-dark-theme .tp-guru-round-btn.theme-btn,
.tp-wp-page.theme-dark .tp-guru-round-btn.theme-btn {
    background: #333333 !important;
}

/* ==========================================================================
   PART 2: TYPINGGURU HINDI WORD PRACTICE (APP-STYLE LIST VIEW & ARENA)
   ========================================================================== */

/* Hindi List View Container */
.tp-hindi-list-container {
    display: block;
}

/* Toolbar & Filters (App Screenshot Style) */
.tp-hindi-toolbar {
    background: var(--tp-wp-card-bg);
    border: 1px solid var(--tp-wp-border);
    border-radius: var(--tp-wp-radius-md);
    padding: 14px 18px;
    margin-bottom: 18px;
    box-shadow: var(--tp-wp-shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.tp-hindi-duration-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.tp-hindi-duration-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--tp-wp-text-muted);
}
.tp-hindi-duration-btn {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
    font-family: var(--tp-wp-mono);
    background: var(--tp-wp-bg);
    color: var(--tp-wp-text);
    border: 1px solid var(--tp-wp-border);
    cursor: pointer;
    transition: all 0.15s;
}
.tp-hindi-duration-btn:hover { border-color: var(--tp-wp-primary); }
.tp-hindi-duration-btn.active {
    background: var(--tp-wp-primary);
    color: #ffffff;
    border-color: var(--tp-wp-primary);
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25);
}

/* Filter Tabs (All, No Shift, With Shift) */
.tp-hindi-filters {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
}
.tp-hindi-filter-chip {
    padding: 6px 14px;
    border-radius: var(--tp-wp-radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    background: var(--tp-wp-bg);
    color: var(--tp-wp-text-muted);
    border: 1px solid var(--tp-wp-border);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
}
.tp-hindi-filter-chip:hover { color: var(--tp-wp-text); }
.tp-hindi-filter-chip.active {
    background: var(--tp-wp-primary);
    color: #ffffff;
    border-color: var(--tp-wp-primary);
}

/* Hindi Lesson Card (modeled on item_hindi_word_practice.xml) */
.tp-hindi-cards-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tp-hindi-card {
    background: var(--tp-wp-card-bg);
    border: 1px solid var(--tp-wp-border);
    border-radius: 14px;
    padding: 14px 18px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.tp-hindi-card:hover {
    border-color: var(--tp-wp-primary);
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}

.tp-hindi-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.tp-hindi-card-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Number Badge (#1, #2...) */
.tp-hindi-badge-num {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--tp-wp-primary), #047857);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--tp-wp-mono);
    font-weight: 800;
    font-size: 0.95rem;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.3);
}

.tp-hindi-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.tp-hindi-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--tp-wp-text);
}

/* Shift Badge: No Shift (green/subtle) vs With Shift (red/amber) */
.tp-hindi-shift-pill {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    width: fit-content;
}
.tp-hindi-shift-pill.no-shift {
    background: #e2e8f0;
    color: #334155;
}
body.tp-dark-theme .tp-hindi-shift-pill.no-shift,
.tp-wp-page.theme-dark .tp-hindi-shift-pill.no-shift {
    background: #1e293b;
    color: #94a3b8;
}
.tp-hindi-shift-pill.with-shift {
    background: #fee2e2;
    color: #dc2626;
}

/* Practice Now Button (btnWordPracticeNow in app) */
.tp-hindi-btn-practice {
    background: var(--tp-wp-primary);
    color: #ffffff;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);
}
.tp-hindi-btn-practice:hover {
    background: var(--tp-wp-primary-hover);
    transform: translateY(-1px);
}

/* Row 2: Keys Visual Boxes Strip */
.tp-hindi-keys-strip {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-top: 4px;
    scrollbar-width: none;
}
.tp-hindi-keys-strip::-webkit-scrollbar { display: none; }

.tp-hindi-key-pill {
    background: var(--tp-wp-key-bg);
    border: 1px solid var(--tp-wp-key-border);
    border-bottom: 2px solid var(--tp-wp-key-border);
    border-radius: 6px;
    padding: 3px 8px;
    font-family: var(--tp-wp-mono);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--tp-wp-key-text);
    white-space: nowrap;
    flex-shrink: 0;
}

/* ==========================================================================
   PART 3: HINDI TYPING TEST ARENA (OPENS ON "PRACTICE NOW")
   ========================================================================== */
.tp-hindi-arena-container {
    display: none; /* hidden until Practice Now is clicked */
}

/* Arena Top Toolbar */
.tp-hindi-arena-header {
    background: var(--tp-wp-card-bg);
    border: 1px solid var(--tp-wp-border);
    border-radius: var(--tp-wp-radius-md);
    padding: 12px 18px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.tp-hindi-btn-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 8px;
    background: var(--tp-wp-bg);
    border: 1px solid var(--tp-wp-border);
    color: var(--tp-wp-text);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
}
.tp-hindi-btn-back:hover {
    border-color: var(--tp-wp-primary);
    color: var(--tp-wp-primary);
}

/* Arena Telemetry HUD */
.tp-hindi-arena-hud {
    display: flex;
    gap: 16px;
    align-items: center;
}
.tp-hindi-hud-pill {
    background: var(--tp-wp-bg);
    border: 1px solid var(--tp-wp-border);
    border-radius: 8px;
    padding: 6px 12px;
    text-align: center;
}
.tp-hindi-hud-val {
    font-family: var(--tp-wp-mono);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--tp-wp-text);
}
.tp-hindi-hud-val.speed { color: var(--tp-wp-primary); }
.tp-hindi-hud-val.time { color: var(--tp-wp-danger); }

.tp-hindi-hud-lbl {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--tp-wp-text-muted);
}

/* Hindi Text Passage Display Card */
.tp-hindi-passage-card {
    background: var(--tp-wp-arena-bg);
    border: 2px solid var(--tp-wp-arena-border);
    border-radius: var(--tp-wp-radius-lg);
    padding: 24px 28px;
    margin-bottom: 16px;
    max-height: 200px;
    overflow-y: auto;
    line-height: 2.2;
    font-size: 24px;
    font-family: var(--tp-wp-font);
    cursor: text;
    box-shadow: var(--tp-wp-shadow-sm);
}

.tp-hi-word {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    color: var(--tp-wp-text-muted);
    transition: all 0.15s;
}

.tp-hi-word.active {
    background: var(--tp-wp-active-bg);
    color: var(--tp-wp-active-text);
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
    border: 1px solid rgba(0,0,0,0.1);
}

.tp-hi-word.correct {
    color: var(--tp-wp-correct-text);
}

.tp-hi-word.error {
    background: var(--tp-wp-error-bg);
    color: var(--tp-wp-error-text);
    text-decoration: line-through;
}

/* Hindi Input Row */
.tp-hindi-input-box {
    background: var(--tp-wp-card-bg);
    border: 2px solid var(--tp-wp-border);
    border-radius: var(--tp-wp-radius-md);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--tp-wp-shadow-sm);
}
.tp-hindi-input-box:focus-within {
    border-color: var(--tp-wp-primary);
    box-shadow: 0 0 0 3px var(--tp-wp-primary-light);
}

.tp-hindi-input {
    flex: 1;
    background: transparent;
    border: none;
    font-size: 1.3rem;
    font-family: var(--tp-wp-font);
    color: var(--tp-wp-text);
    outline: none;
}

/* ==========================================================================
   PART 4: RESULT MODAL
   ========================================================================== */
.tp-wp-modal-backdrop {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    padding: 20px;
}
.tp-wp-modal-backdrop.active { display: flex; }

.tp-wp-modal-box {
    background: var(--tp-wp-card-bg);
    border: 1px solid var(--tp-wp-border);
    border-radius: var(--tp-wp-radius-lg);
    box-shadow: var(--tp-wp-shadow-lg);
    max-width: 480px;
    width: 100%;
    padding: 32px 28px;
    text-align: center;
    animation: tpWpPopIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes tpWpPopIn {
    0% { transform: scale(0.9) translateY(20px); opacity: 0; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

.tp-wp-modal-badge {
    width: 68px;
    height: 68px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
}
.tp-wp-modal-badge.success { background: #dcfce7; color: #16a34a; }
.tp-wp-modal-badge.failure { background: #fee2e2; color: #dc2626; }

.tp-wp-modal-title {
    font-family: var(--tp-wp-heading);
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--tp-wp-text);
    margin: 0 0 8px;
}
.tp-wp-modal-subtitle {
    font-size: 0.92rem;
    color: var(--tp-wp-text-muted);
    margin: 0 0 24px;
}

.tp-wp-modal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    background: var(--tp-wp-bg);
    border-radius: var(--tp-wp-radius-md);
    padding: 16px;
    margin-bottom: 24px;
}
.tp-wp-modal-stat-val {
    font-family: var(--tp-wp-mono);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--tp-wp-text);
}
.tp-wp-modal-stat-lbl {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--tp-wp-text-muted);
    text-transform: uppercase;
    margin-top: 4px;
}

.tp-wp-modal-actions {
    display: flex;
    gap: 12px;
}
.tp-wp-modal-btn {
    flex: 1;
    padding: 12px 18px;
    border-radius: var(--tp-wp-radius-md);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}
.tp-wp-modal-btn.primary {
    background: var(--tp-wp-primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}
.tp-wp-modal-btn.primary:hover {
    background: var(--tp-wp-primary-hover);
    transform: translateY(-1px);
}
.tp-wp-modal-btn.secondary {
    background: var(--tp-wp-border);
    color: var(--tp-wp-text);
}

/* Educational SEO Content Section */
.tp-wp-content-section {
    background: var(--tp-wp-card-bg);
    border: 1px solid var(--tp-wp-border);
    border-radius: var(--tp-wp-radius-lg);
    padding: 32px;
    margin-top: 40px;
    box-shadow: var(--tp-wp-shadow-sm);
}

.tp-wp-content-section h2 {
    font-family: var(--tp-wp-heading);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--tp-wp-text);
    margin: 24px 0 12px;
}
.tp-wp-content-section h2:first-child { margin-top: 0; }

.tp-wp-content-section p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--tp-wp-text-muted);
    margin-bottom: 16px;
}

.tp-wp-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.tp-wp-info-card {
    background: var(--tp-wp-bg);
    border: 1px solid var(--tp-wp-border);
    border-radius: var(--tp-wp-radius-md);
    padding: 20px;
}

.tp-wp-info-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--tp-wp-text);
}

.tp-wp-info-card p {
    font-size: 0.88rem;
    margin: 0;
    color: var(--tp-wp-text-muted);
}

/* ─── Mobile Responsiveness ─── */
@media (max-width: 768px) {
    .tp-wp-container { padding: 10px 12px; }
    .tp-wp-header { padding: 16px; }
    .tp-wp-title-box h1 { font-size: 1.25rem; }
    .tp-keybr-stream { font-size: 22px; }
    .tp-keybr-arena { padding: 24px 16px; }
    .tp-keybr-keyboard-wrap { display: none; } /* hide virtual keyboard on small touchscreens */
    .tp-hindi-card { padding: 12px; }
    .tp-hindi-title { font-size: 0.95rem; }
    .tp-hindi-badge-num { width: 32px; height: 32px; font-size: 0.82rem; }
    .tp-hindi-btn-practice { padding: 7px 12px; font-size: 0.8rem; }
    .tp-hindi-passage-card { font-size: 20px; padding: 18px; }
}

/* ==========================================================================
   Hindi Typography: Crisp, Clean Devanagari Rendering
   ========================================================================== */
.tp-wp-page[data-lang="mangal"] .tp-guru-display-words,
.tp-wp-page[data-lang="mangal"] .tp-guru-display-box-vertical,
.tp-wp-page[data-lang="mangal"] .tp-guru-word,
.tp-wp-page[data-lang="mangal"] .tp-guru-type-input,
.tp-wp-page[data-lang="mangal"] .tp-guru-key-cap,
.tp-wp-page[data-lang="mangal"] .tp-wp-mini-key,
.tp-wp-page[data-lang="mangal"] .tp-wp-card-title,
.tp-wp-page[data-lang="krutidev"] .tp-guru-display-words,
.tp-wp-page[data-lang="krutidev"] .tp-guru-display-box-vertical,
.tp-wp-page[data-lang="krutidev"] .tp-guru-word,
.tp-wp-page[data-lang="krutidev"] .tp-guru-type-input,
.tp-wp-page[data-lang="krutidev"] .tp-guru-key-cap,
.tp-wp-page[data-lang="krutidev"] .tp-wp-mini-key,
.tp-wp-page[data-lang="krutidev"] .tp-wp-card-title {
    font-family: 'Noto Sans Devanagari', 'Segoe UI', -apple-system, BlinkMacSystemFont, Arial, sans-serif !important;
    letter-spacing: 0.5px;
}

/* Target Controls & Settings Button */
.tp-guru-target-ctrl {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.tp-btn-target-settings {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #1e293b;
    color: #f1f5f9;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    padding: 5px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.tp-btn-target-settings:hover {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
    transform: translateY(-1px);
}

.tp-wp-target-badge-pill {
    display: inline-flex;
    align-items: center;
    background: #0d9488;
    color: #ffffff;
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 700;
}

/* ─── Landscape Rotate Overlay for Mobile ─── */
.tp-rotate-landscape-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    background: rgba(15, 23, 42, 0.94);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: tpFadeInOverlay 0.25s ease-out;
}

.tp-rotate-landscape-box {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 28px 24px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.6);
}

.tp-rotate-phone-anim {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 2.4rem;
    margin-bottom: 16px;
}

.tp-rotate-arrow {
    animation: tpRotatePhoneAnim 2s infinite ease-in-out;
    display: inline-block;
}

@keyframes tpRotatePhoneAnim {
    0% { transform: rotate(0deg); }
    50% { transform: rotate(90deg); }
    100% { transform: rotate(0deg); }
}

.tp-rotate-landscape-box h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #f8fafc;
}

.tp-rotate-landscape-box p {
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.5;
    margin: 0 0 20px 0;
}

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

.tp-btn-rotate-fs {
    background: linear-gradient(135deg, #0d9488, #0f766e);
    color: #ffffff;
    border: none;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.35);
    transition: transform 0.15s, box-shadow 0.15s;
}

.tp-btn-rotate-fs:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 16px rgba(13, 148, 136, 0.5);
}

.tp-btn-rotate-dismiss {
    background: transparent;
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 9px 16px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.tp-btn-rotate-dismiss:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

/* ─── Mobile Responsiveness for Word Practice ─── */
@media (max-width: 768px) {
    .tp-guru-toolbar {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;
        gap: 6px 4px;
        padding: 6px 8px;
    }
    .tp-guru-tool-btn {
        width: 30px;
        height: 30px;
    }
    .tp-guru-tool-btn img {
        width: 14px;
        height: 14px;
    }
    .tp-guru-stats-group {
        order: 10;
        width: 100%;
        min-width: 100%;
        margin: 4px 0 0 0;
        padding: 6px 8px;
        background: rgba(0, 0, 0, 0.4);
        border-radius: 6px;
        display: flex;
        justify-content: space-around;
    }
    .tp-guru-stat-box {
        min-width: unset;
        flex: 1;
    }
    .tp-guru-stat-val {
        font-size: 13px;
    }
    .tp-guru-stat-lbl {
        font-size: 9px;
    }
    .tp-guru-strict-switch {
        font-size: 11px;
        gap: 4px;
        margin-left: auto;
    }
    .tp-guru-round-btn,
    .tp-guru-car-btn {
        width: 30px;
        height: 30px;
    }
    .tp-guru-round-btn img,
    .tp-guru-car-btn img {
        width: 16px;
        height: 16px;
    }
    .tp-guru-display-hsv {
        min-height: 85px;
        padding: 14px 10px;
    }
    .tp-guru-type-input {
        font-size: 17px;
        height: 46px;
    }
    .tp-guru-progress-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* ─── SEO Content, Tables & FAQ Accordion Styles ─── */
.tp-lead-text {
    font-size: 1.05rem;
    line-height: 1.65;
    color: #334155;
    margin-bottom: 20px;
}

.tp-wp-table-responsive {
    width: 100%;
    overflow-x: auto;
    margin: 20px 0 28px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.tp-wp-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
    text-align: left;
    background: #ffffff;
}

.tp-wp-data-table th {
    background: #f8fafc;
    color: #0f172a;
    font-weight: 700;
    padding: 12px 16px;
    border-bottom: 2px solid #cbd5e1;
    white-space: nowrap;
}

.tp-wp-data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    line-height: 1.5;
}

.tp-wp-data-table tr:nth-child(even) td {
    background: #f8fafc;
}

.tp-wp-data-table tr:hover td {
    background: #f1f5f9;
}

.tp-wp-data-table code {
    background: #e2e8f0;
    color: #0f172a;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--tp-wp-mono);
}

.tp-wp-faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.tp-wp-faq-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 18px;
    transition: all 0.2s ease;
}

.tp-wp-faq-item[open] {
    border-color: #0284c7;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.08);
}

.tp-wp-faq-item summary {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    cursor: pointer;
    user-select: none;
    outline: none;
    list-style: none;
    position: relative;
    padding-right: 24px;
}
.tp-wp-faq-item summary::-webkit-details-marker { display: none; }
.tp-wp-faq-item summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
    font-weight: 400;
    color: #0284c7;
    transition: transform 0.2s;
}
.tp-wp-faq-item[open] summary::after {
    content: '−';
}

.tp-wp-faq-item p {
    margin: 10px 0 0 0;
    font-size: 0.92rem;
    line-height: 1.6;
    color: #475569;
}

