:root {
    --tpb-primary: #6366f1;
    --tpb-primary-dark: #4f46e5;
    --tpb-primary-light: #818cf8;
    --tpb-accent: #f59e0b;
    --tpb-success: #10b981;
    --tpb-danger: #ef4444;
    --tpb-bg: #f9fafb;
    --tpb-surface: #ffffff;
    --tpb-text: #1f2937;
    --tpb-text-muted: #6b7280;
    --tpb-border: #e5e7eb;
    --tpb-dark: #0f172a;
    --tpb-radius: 14px;
    --tpb-radius-sm: 8px;
    --tpb-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 6px rgba(0,0,0,0.05);
    --tpb-shadow-lg: 0 10px 25px rgba(0,0,0,0.1), 0 20px 40px rgba(0,0,0,0.05);
    --tpb-transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px; line-height: 1.6; color: var(--tpb-text); background: var(--tpb-bg);
    min-height: 100vh; display: flex; flex-direction: column;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--tpb-primary); text-decoration: none; transition: var(--tpb-transition); }
a:hover { color: var(--tpb-primary-dark); }
h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }
.tpb-container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; width: 100%; }
.tpb-narrow { max-width: 500px; }
.tpb-main { flex: 1; }
.tpb-icon { display: inline-flex; align-items: center; justify-content: center; width: 1em; height: 1em; vertical-align: -0.125em; }
.tpb-icon svg { width: 100%; height: 100%; }
.tpb-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.625rem 1.25rem; border-radius: var(--tpb-radius-sm); font-weight: 600;
    font-size: 0.9375rem; border: 2px solid transparent; cursor: pointer;
    transition: var(--tpb-transition); text-decoration: none; white-space: nowrap;
}
.tpb-btn-primary { background: var(--tpb-primary); color: #fff; }
.tpb-btn-primary:hover { background: var(--tpb-primary-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--tpb-shadow); }
.tpb-btn-outline { background: transparent; border-color: var(--tpb-primary); color: var(--tpb-primary); }
.tpb-btn-outline:hover { background: var(--tpb-primary); color: #fff; }
.tpb-btn-ghost { background: transparent; color: inherit; }
.tpb-btn-ghost:hover { background: rgba(255,255,255,0.1); }
.tpb-btn-success { background: var(--tpb-success); color: #fff; }
.tpb-btn-large { padding: 0.875rem 1.75rem; font-size: 1rem; }
.tpb-btn-sm { padding: 0.375rem 0.75rem; font-size: 0.85rem; }
.tpb-btn-block { width: 100%; }
.tpb-header { background: var(--tpb-dark); color: #fff; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 10px rgba(0,0,0,0.2); }
.tpb-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.75rem 1.5rem; flex-wrap: wrap; }
.tpb-logo img { max-height: 40px; width: auto; }
.tpb-logo { display: inline-flex; align-items: center; gap: 0.55rem; }
.tpb-logo-mark { width: 34px; height: 34px; display: block; }
.tpb-logo-text { color: #fff; font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; }
.tpb-nav { display: flex; }
.tpb-menu { display: flex; gap: 1rem; list-style: none; padding: 0; margin: 0; }
.tpb-menu a { color: rgba(255,255,255,0.85); padding: 0.5rem; font-weight: 500; }
.tpb-menu a:hover { color: #fff; }
.tpb-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.tpb-search { display: flex; position: relative; }
.tpb-search input { padding: 0.5rem 2.5rem 0.5rem 0.75rem; border-radius: var(--tpb-radius-sm); border: none; background: rgba(255,255,255,0.1); color: #fff; width: 200px; transition: var(--tpb-transition); }
.tpb-search input::placeholder { color: rgba(255,255,255,0.6); }
.tpb-search input:focus { outline: none; background: rgba(255,255,255,0.15); width: 240px; }
.tpb-search button { position: absolute; right: 0.5rem; top: 50%; transform: translateY(-50%); background: transparent; border: none; color: rgba(255,255,255,0.7); cursor: pointer; padding: 0.25rem; }
.tpb-selectors { display: flex; gap: 0.5rem; }
.tpb-selectors select { background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.15); padding: 0.4rem 0.6rem; border-radius: var(--tpb-radius-sm); font-size: 0.85rem; cursor: pointer; }
.tpb-selectors option { color: var(--tpb-text); }
.tpb-hero {
    background: linear-gradient(135deg, var(--tpb-dark) 0%, var(--tpb-primary-dark) 100%);
    color: #fff; padding: 5rem 0 6rem; position: relative; overflow: hidden;
}
.tpb-hero::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(99,102,241,0.4) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(245,158,11,0.2) 0%, transparent 40%);
}
.tpb-hero .tpb-container { position: relative; z-index: 1; text-align: center; }
.tpb-hero h1 { color: #fff; margin-bottom: 1rem; background: linear-gradient(135deg, #fff 0%, #c7d2fe 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.tpb-hero p { font-size: 1.25rem; max-width: 600px; margin: 0 auto 2rem; opacity: 0.9; }
.tpb-hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.tpb-section { padding: 4rem 0; }
.tpb-section-title { margin-bottom: 2rem; text-align: center; }
.tpb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.tpb-card {
    background: var(--tpb-surface); border-radius: var(--tpb-radius); overflow: hidden;
    box-shadow: var(--tpb-shadow); transition: var(--tpb-transition); display: flex; flex-direction: column;
}
.tpb-card:hover { transform: translateY(-4px); box-shadow: var(--tpb-shadow-lg); }
.tpb-card-img { aspect-ratio: 16/10; background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%); display: block; overflow: hidden; }
.tpb-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.tpb-card-ph { width: 100%; height: 100%; object-fit: cover; display: block; background: transparent; }
.tpb-card:hover .tpb-card-img img { transform: scale(1.05); }
.tpb-card-body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.tpb-card-body h3 { margin-bottom: 0.5rem; font-size: 1.1rem; }
.tpb-card-body h3 a { color: var(--tpb-text); }
.tpb-card-body h3 a:hover { color: var(--tpb-primary); }
.tpb-card-excerpt { color: var(--tpb-text-muted); font-size: 0.9rem; margin: 0.5rem 0 1rem; flex: 1; }
.tpb-card-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 0.75rem; border-top: 1px solid var(--tpb-border); }
.tpb-price { font-size: 1.25rem; font-weight: 800; color: var(--tpb-primary); }
.tpb-version { font-size: 0.75rem; color: var(--tpb-text-muted); background: var(--tpb-bg); padding: 0.2rem 0.5rem; border-radius: 4px; }
.tpb-stars { display: inline-flex; gap: 2px; }
.tpb-star { color: var(--tpb-border); display: inline-flex; }
.tpb-star.filled { color: var(--tpb-accent); }
.tpb-star svg { width: 16px; height: 16px; }
.tpb-card-rating { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--tpb-text-muted); margin-bottom: 0.5rem; }
.tpb-single { display: grid; grid-template-columns: 1fr 340px; gap: 3rem; padding: 3rem 0; }
.tpb-single-header { margin-bottom: 2rem; }
.tpb-rating { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.75rem; color: var(--tpb-text-muted); }
.tpb-single-preview { border-radius: var(--tpb-radius); overflow: hidden; box-shadow: var(--tpb-shadow-lg); margin-bottom: 2rem; background: var(--tpb-surface); }
.tpb-single-preview img { width: 100%; height: auto; display: block; }
.tpb-preview-ph { width: 100%; height: auto; display: block; }
.tpb-single-content { margin-bottom: 2rem; font-size: 1.05rem; }
.tpb-single-content h2 { margin: 2rem 0 1rem; }
.tpb-single-content p { margin-bottom: 1rem; }
.tpb-features, .tpb-changelog { background: var(--tpb-surface); padding: 1.5rem; border-radius: var(--tpb-radius); margin-bottom: 2rem; box-shadow: var(--tpb-shadow); }
.tpb-features ul { list-style: none; padding: 0; display: grid; gap: 0.5rem; margin-top: 1rem; }
.tpb-features li { display: flex; align-items: center; gap: 0.5rem; }
.tpb-features li .tpb-icon { color: var(--tpb-success); }
.tpb-changelog pre { background: var(--tpb-bg); padding: 1rem; border-radius: var(--tpb-radius-sm); font-size: 0.85rem; overflow-x: auto; white-space: pre-wrap; }
.tpb-buybox {
    position: sticky; top: 100px; background: var(--tpb-surface); padding: 1.5rem;
    border-radius: var(--tpb-radius); box-shadow: var(--tpb-shadow-lg); border: 2px solid var(--tpb-border);
}
.tpb-price-large { font-size: 2.25rem; font-weight: 900; color: var(--tpb-primary); margin-bottom: 1.25rem; letter-spacing: -0.02em; }
.tpb-hint { font-size: 0.8rem; color: var(--tpb-text-muted); display: flex; gap: 0.4rem; align-items: flex-start; margin-top: 0.75rem; }
.tpb-meta-line { font-size: 0.875rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--tpb-border); }
.tpb-bugbox { background: var(--tpb-surface); padding: 1.5rem; border-radius: var(--tpb-radius); margin-top: 1.5rem; box-shadow: var(--tpb-shadow); }
.tpb-bugbox h3 { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; font-size: 1rem; }
.tpb-bug-form { display: flex; flex-direction: column; gap: 0.5rem; }
.tpb-bug-form input, .tpb-bug-form textarea {
    padding: 0.6rem 0.75rem; border: 1px solid var(--tpb-border); border-radius: var(--tpb-radius-sm);
    font-size: 0.9rem; width: 100%; background: var(--tpb-bg); font-family: inherit;
}
.tpb-bug-form input:focus, .tpb-bug-form textarea:focus { outline: none; border-color: var(--tpb-primary); background: #fff; }
.tpb-auth-box { background: var(--tpb-surface); padding: 2.5rem; border-radius: var(--tpb-radius); box-shadow: var(--tpb-shadow-lg); margin: 3rem 0; }
.tpb-auth-box h2 { margin-bottom: 1.5rem; text-align: center; }
.tpb-form { display: flex; flex-direction: column; gap: 1rem; }
.tpb-form label { display: flex; flex-direction: column; gap: 0.4rem; font-weight: 500; font-size: 0.9rem; }
.tpb-form input:not([type="checkbox"]) { padding: 0.75rem; border: 2px solid var(--tpb-border); border-radius: var(--tpb-radius-sm); font-size: 1rem; transition: var(--tpb-transition); }
.tpb-form input:focus { outline: none; border-color: var(--tpb-primary); }
.tpb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.tpb-checkbox { flex-direction: row !important; align-items: center; }
.tpb-auth-link { text-align: center; margin-top: 1.5rem; font-size: 0.9rem; color: var(--tpb-text-muted); }
.tpb-error { background: #fef2f2; color: var(--tpb-danger); padding: 0.75rem 1rem; border-radius: var(--tpb-radius-sm); margin-bottom: 1rem; border-left: 4px solid var(--tpb-danger); }
.tpb-flash { padding: 0.75rem 1rem; border-radius: var(--tpb-radius-sm); margin-bottom: 1rem; }
.tpb-flash-success { background: #d1fae5; color: #065f46; }
.tpb-flash-error { background: #fef2f2; color: var(--tpb-danger); }
.tpb-main > .tpb-flash { max-width: 1200px; margin: 1rem auto 0; }
.tpb-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; font-size: 0.85rem; color: var(--tpb-text-muted); padding: 1rem 0 0; }
.tpb-crumbs a { color: var(--tpb-text-muted); }
.tpb-crumbs a:hover { color: var(--tpb-primary); }
.tpb-crumb-sep { opacity: 0.5; }
.tpb-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.5rem; }
.tpb-fav { background: transparent; border: none; cursor: pointer; color: var(--tpb-border); padding: 0.25rem; line-height: 1; transition: var(--tpb-transition); }
.tpb-fav:hover { color: var(--tpb-primary-light); transform: scale(1.1); }
.tpb-fav.active { color: var(--tpb-danger); }
.tpb-fav svg { width: 18px; height: 18px; }
.tpb-comment-rating { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.4rem; }
.tpb-verified-note { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.75rem; font-weight: 600; color: var(--tpb-success); background: #d1fae5; padding: 0.15rem 0.5rem; border-radius: 100px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.tpb-term-desc { color: var(--tpb-text-muted); margin-top: 0.5rem; }
.tpb-dashboard { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; padding: 3rem 0; }
.tpb-dash-sidebar { background: var(--tpb-surface); border-radius: var(--tpb-radius); padding: 1.5rem; height: fit-content; box-shadow: var(--tpb-shadow); position: sticky; top: 100px; }
.tpb-dash-user { display: flex; gap: 0.75rem; align-items: center; padding-bottom: 1rem; border-bottom: 1px solid var(--tpb-border); margin-bottom: 1rem; }
.tpb-avatar {
    width: 48px; height: 48px; border-radius: 50%;
    background: linear-gradient(135deg, var(--tpb-primary), var(--tpb-primary-light));
    color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.25rem;
}
.tpb-dash-user small { color: var(--tpb-text-muted); display: block; font-size: 0.8rem; }
.tpb-dash-nav { display: flex; flex-direction: column; gap: 0.25rem; }
.tpb-dash-nav a { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem; border-radius: var(--tpb-radius-sm); color: var(--tpb-text); font-weight: 500; }
.tpb-dash-nav a:hover, .tpb-dash-nav a.active { background: var(--tpb-bg); color: var(--tpb-primary); }
.tpb-dash-content { display: flex; flex-direction: column; gap: 3rem; }
.tpb-dash-content section { scroll-margin-top: 100px; }
.tpb-dash-content h2 { margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--tpb-border); }
.tpb-table { width: 100%; border-collapse: collapse; background: var(--tpb-surface); border-radius: var(--tpb-radius); overflow: hidden; box-shadow: var(--tpb-shadow); }
.tpb-table th, .tpb-table td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid var(--tpb-border); font-size: 0.9rem; }
.tpb-table th { background: var(--tpb-bg); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--tpb-text-muted); }
.tpb-key { background: var(--tpb-bg); padding: 0.25rem 0.5rem; border-radius: 4px; font-size: 0.8rem; }
.tpb-copy { background: transparent; border: 1px solid var(--tpb-border); padding: 0.25rem; border-radius: 4px; cursor: pointer; margin-left: 0.25rem; }
.tpb-copy:hover { background: var(--tpb-bg); border-color: var(--tpb-primary); color: var(--tpb-primary); }
.tpb-badge { display: inline-block; padding: 0.2rem 0.6rem; font-size: 0.7rem; font-weight: 600; border-radius: 100px; background: var(--tpb-bg); color: var(--tpb-text-muted); text-transform: uppercase; }
.tpb-badge-success { background: #d1fae5; color: #065f46; }
.tpb-badge-danger { background: #fee2e2; color: #991b1b; }
.tpb-domains { font-size: 0.75rem; color: var(--tpb-text-muted); margin-top: 0.25rem; padding-left: 1rem; }
.tpb-downloads { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.tpb-downloads li { display: flex; justify-content: space-between; align-items: center; background: var(--tpb-surface); padding: 1rem; border-radius: var(--tpb-radius); box-shadow: var(--tpb-shadow); }
.tpb-footer { background: var(--tpb-dark); color: rgba(255,255,255,0.75); padding: 3rem 0 1.5rem; margin-top: 4rem; }
.tpb-footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.tpb-footer h4 { color: #fff; margin-bottom: 1rem; }
.tpb-footer ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.tpb-footer a { color: rgba(255,255,255,0.75); }
.tpb-footer a:hover { color: #fff; }
.tpb-copyright { text-align: center; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.85rem; }
.tpb-credit { text-align: center; margin-top: 0.5rem; font-size: 0.8rem; color: rgba(255,255,255,0.55); }
.tpb-credit a { color: rgba(255,255,255,0.75); }
.tpb-credit a:hover { color: #fff; text-decoration: underline; }
.tpb-page-header { padding: 2rem 0; }
.tpb-filters { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1rem; }
.tpb-chip { padding: 0.4rem 0.9rem; border-radius: 100px; background: var(--tpb-surface); border: 1px solid var(--tpb-border); font-size: 0.9rem; color: var(--tpb-text); }
.tpb-chip.active, .tpb-chip:hover { background: var(--tpb-primary); color: #fff; border-color: var(--tpb-primary); }
.tpb-post { margin-bottom: 2rem; padding: 1.5rem; background: var(--tpb-surface); border-radius: var(--tpb-radius); box-shadow: var(--tpb-shadow); }
@media (max-width: 900px) {
    .tpb-single { grid-template-columns: 1fr; }
    .tpb-dashboard { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .tpb-header-inner { gap: 0.5rem; }
    .tpb-search input { width: 130px; }
    .tpb-nav { display: none; }
    .tpb-hero { padding: 3rem 0 4rem; }
    .tpb-section { padding: 2.5rem 0; }
    .tpb-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
    .tpb-row { grid-template-columns: 1fr; }
}
