/* ============================================
   BestFreeStream — Dark Theme
   ============================================ */

/* Fade-in animation (JS adds these classes) */
.fade-ready {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.fade-ready.fade-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* SAFETY: ensure content is ALWAYS visible on mobile even if JS fails */
@media (max-width: 991px) {
    .content-card, .post-card, .category-card, .site-card {
        opacity: 1 !important;
        transform: none !important;
    }
}

body {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
input, textarea, select { -webkit-user-select: text; user-select: text; }

:root {
    --bg-primary: #0f0f13;
    --bg-secondary: #16161d;
    --bg-card: #1a1a24;
    --bg-card-hover: #1f1f2b;
    --bg-table-row: #1e1e28;
    --bg-table-row-alt: #1a1a22;
    --bg-header: #111117;
    --bg-footer: #0c0c10;
    --text-primary: #f0f0f4;
    --text-secondary: #c0c0cc;
    --text-muted: #8888a0;
    --purple: #a855f7;
    --purple-light: #c084fc;
    --purple-dark: #7c3aed;
    --green: #22c55e;
    --green-dark: #16a34a;
    --orange: #f59e0b;
    --red: #ef4444;
    --blue: #3b82f6;
    --border-color: #2a2a35;
    --card-radius: 12px;
    --transition: 0.2s ease;
}

/* ---- Reset & Base ---- */
* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: var(--purple-light);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--purple);
}

img {
    max-width: 100%;
    height: auto;
}

::selection {
    background: var(--purple);
    color: #fff;
}

/* ---- Header / Nav ---- */
.site-header {
    background: var(--bg-header);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 0.75rem 0;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.2);
}

.navbar-nav .nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--transition);
    padding: 0.5rem 0.75rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #fff;
}

.site-logo {
    height: 32px;
    width: auto;
}

.brand-icon {
    font-size: 1.5rem;
    color: var(--purple);
}

.brand-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
}

.nav-link-custom {
    color: var(--text-secondary) !important;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--transition);
    padding: 0.25rem 0;
}

.nav-link-custom:hover,
.nav-link-custom.active {
    color: #fff !important;
}

.nav-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem;
}

.nav-links li a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--transition);
    text-decoration: none;
}

.nav-links li a:hover,
.nav-links li.nav-current a {
    color: #fff;
}

/* ---- Content Cards ---- */
.content-card {
    background: var(--bg-card);
    border-radius: var(--card-radius);
    padding: 2rem 2.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

/* ---- Page Titles ---- */
.page-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    color: #fff;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.content-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
}

.content-card h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ---- Text Utilities ---- */
.text-purple {
    color: var(--purple) !important;
}

.text-muted-custom {
    color: var(--text-secondary) !important;
}

.intro-text {
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* ---- Requirements List ---- */
.requirements-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.req-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    padding: 0.15rem 0;
}

.req-item .bi {
    font-size: 1rem;
}

/* ---- Ad Score Info ---- */
.ad-score-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ad-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.ad-badge {
    font-size: 1.25rem;
    width: 28px;
    text-align: center;
    flex-shrink: 0;
}

.rankings-table .bi-check-circle-fill,
.rankings-table .bi-x-circle,
.safety-table .bi-lock-fill,
.safety-table .bi-unlock-fill,
.safety-table .bi-check-circle-fill {
    font-size: 1.25rem;
}

.ad-good { color: var(--green); }
.ad-ok { color: var(--orange); }
.ad-bad { color: var(--red); }

.ad-tips {
    border-left: 3px solid var(--border-color);
    padding-left: 1rem;
}

.ad-tips p {
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ---- Rankings Table ---- */
.rankings-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 4px;
}

.rankings-table thead th {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.75rem 1rem;
    border: none;
}

.rankings-table tbody tr {
    background: var(--bg-table-row);
    transition: background var(--transition);
    border-radius: 8px;
}

.rankings-table tbody tr:nth-child(even) {
    background: var(--bg-table-row-alt);
}

.rankings-table tbody tr:hover {
    background: var(--bg-card-hover);
}

.rankings-table td {
    padding: 0.85rem 1rem;
    border: none;
    vertical-align: middle;
}

.rankings-table td:first-child {
    border-radius: 8px 0 0 8px;
    text-align: center;
    font-weight: 700;
    color: var(--text-muted);
    width: 70px;
}

.rankings-table td:last-child {
    border-radius: 0 8px 8px 0;
}

.rank-cell {
    font-size: 1rem;
}

.rank-star {
    color: var(--orange);
}

/* Preview column */
.preview-cell {
    width: 100px;
    padding: 0.5rem 0.75rem;
}

.site-preview-thumb {
    width: 80px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.site-preview-placeholder {
    width: 80px;
    height: 50px;
    background: var(--bg-secondary);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.2rem;
    border: 1px solid var(--border-color);
}

.site-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--purple-light);
    font-weight: 600;
    font-size: 0.95rem;
}

.site-name:hover {
    color: var(--purple);
}

.site-favicon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    object-fit: cover;
}

/* ---- Comparison Section ---- */
.comparison-section {
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    background: var(--bg-secondary);
    padding: 2rem;
}

.vs-badge {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-muted);
}

/* ---- Post Cards ---- */
.post-card {
    background: var(--bg-card);
    border-radius: var(--card-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform var(--transition), border-color var(--transition);
    height: 100%;
}

.post-card:hover {
    transform: translateY(-3px);
    border-color: var(--purple-dark);
}

.post-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post-card-image {
    height: 180px;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-secondary);
    position: relative;
}

.post-card-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--text-muted);
}

.post-card-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--purple);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.post-card-content {
    padding: 1rem 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.post-card-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: auto;
}

/* ---- Category Tabs (Homepage Switcher) ---- */
.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: center;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.75rem;
}

.cat-tab {
    background: none;
    border: 1px solid transparent;
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: color 0.15s, background 0.15s, border-color 0.15s;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.cat-tab:hover {
    color: var(--text-primary);
    background: rgba(168,85,247,0.08);
}

.cat-tab.active {
    color: var(--purple);
    background: rgba(168,85,247,0.12);
    border-color: var(--purple);
    border-bottom-color: transparent;
}

.cat-tab .bi {
    font-size: 1rem;
}

.cat-panel {
    display: none;
}

.cat-panel.active {
    display: block;
}

/* ---- Category Cards (Sites Page) ---- */
.category-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: transform var(--transition), border-color var(--transition);
    height: 100%;
}

.category-card:hover {
    transform: translateY(-2px);
    border-color: var(--purple-dark);
    color: inherit;
}

.category-count {
    display: inline-block;
    background: var(--green);
    color: #000;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.category-icon {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.category-icon-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--purple);
    flex-shrink: 0;
}

.category-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.35rem;
}

.category-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-link {
    color: var(--green);
    font-weight: 600;
    font-size: 0.9rem;
}

/* ---- Single Post ---- */
.post-full {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.post-header {
    margin-bottom: 1.5rem;
}

.post-tag-badge {
    display: inline-block;
    background: var(--green);
    color: #000;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.post-full-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.post-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.meta-sep {
    margin: 0 0.5rem;
}

.post-feature-image {
    margin: 0 -2.5rem 2rem;
    border-radius: 8px;
    overflow: hidden;
}

.post-feature-image img {
    width: 100%;
    display: block;
}

.post-feature-image figcaption {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    padding: 0.5rem;
}

/* ---- Ghost Card Widths ---- */
.kg-width-wide {
    max-width: 1040px;
    margin-left: auto;
    margin-right: auto;
}

.kg-width-full {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.kg-width-full img {
    width: 100%;
}

/* ---- Ghost Content ---- */
.gh-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.gh-content h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    margin: 2rem 0 1rem;
}

.gh-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin: 1.75rem 0 0.75rem;
}

.gh-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin: 1.5rem 0 0.5rem;
}

.gh-content p {
    margin-bottom: 1.25rem;
}

.gh-content a {
    color: var(--purple-light);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.gh-content a:hover {
    color: var(--purple);
}

.gh-content blockquote {
    border-left: 3px solid var(--purple);
    padding: 0.5rem 1.25rem;
    margin: 1.5rem 0;
    color: var(--text-secondary);
    font-style: italic;
    background: var(--bg-secondary);
    border-radius: 0 8px 8px 0;
}

.gh-content code {
    background: var(--bg-secondary);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
    color: var(--purple-light);
}

.gh-content pre {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.25rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.gh-content pre code {
    background: none;
    padding: 0;
    color: var(--text-primary);
}

.gh-content ul,
.gh-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.gh-content li {
    margin-bottom: 0.35rem;
}

.gh-content img {
    border-radius: 8px;
    margin: 1rem 0;
}

.gh-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.gh-content table th,
.gh-content table td {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    text-align: left;
}

.gh-content table th {
    background: var(--bg-secondary);
    font-weight: 600;
    color: #fff;
}

.gh-content table td {
    background: var(--bg-table-row);
}

.gh-content hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 2rem 0;
}

/* ---- Post Footer ---- */
.post-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-link {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    transition: background var(--transition), color var(--transition);
}

.tag-link:hover {
    background: var(--purple-dark);
    color: #fff;
}

.post-share {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.share-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.share-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: background var(--transition), color var(--transition);
}

.share-btn:hover {
    background: var(--purple);
    color: #fff;
}

/* ---- Pagination ---- */
.pagination-wrap {
    margin: 2rem 0;
}

.pagination-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

.pagination-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border-color var(--transition), color var(--transition);
}

.pagination-btn:hover {
    border-color: var(--purple);
    color: var(--purple-light);
}

.pagination-info {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ---- Forms (Public) ---- */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label-custom {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.form-label-custom .required {
    color: var(--red);
}

.form-input {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.65rem 1rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.checkbox-label input[type="checkbox"] {
    accent-color: var(--purple);
    width: 16px;
    height: 16px;
}

/* ---- Alert Boxes ---- */
.alert-box {
    padding: 0.85rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: var(--green);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--red);
}

/* ---- Contact Type Tabs ---- */
.contact-type-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.contact-tab {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
}

.contact-tab:hover {
    border-color: var(--purple);
    color: var(--text-color);
}

.contact-tab.active {
    background: rgba(168, 85, 247, 0.15);
    border-color: var(--purple);
    color: var(--purple);
    font-weight: 600;
}

/* ---- Upload Area (Public) ---- */
.upload-area {
    position: relative;
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color var(--transition);
    overflow: hidden;
}

.upload-area:hover {
    border-color: var(--purple);
}

.upload-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.upload-placeholder {
    text-align: center;
    color: var(--text-muted);
    padding: 1rem;
}

.upload-placeholder .bi {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.upload-placeholder p {
    margin: 0;
    font-size: 0.9rem;
}

.upload-placeholder small {
    font-size: 0.75rem;
}

.upload-preview {
    position: relative;
    width: 100%;
    padding: 0.5rem;
}

.upload-preview img {
    width: 100%;
    max-height: 200px;
    object-fit: contain;
    border-radius: 6px;
}

.upload-remove {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 28px;
    height: 28px;
    background: var(--red);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

/* ---- Footer ---- */
.site-footer {
    background: var(--bg-footer);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
    overflow-x: hidden;
}

.footer-disclaimer {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
}

.footer-legal {
    margin-top: 0.75rem;
}

.footer-legal a {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.footer-legal a:hover {
    color: var(--purple-light);
}

.footer-heading {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.4rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--purple-light);
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin: 0;
}

/* ---- Buttons ---- */
.btn-purple {
    background: var(--purple);
    color: #fff;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: background var(--transition);
}

.btn-purple:hover {
    background: var(--purple-dark);
    color: #fff;
}

.btn-outline-purple {
    border: 1px solid var(--purple);
    color: var(--purple-light);
    background: transparent;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-weight: 500;
    transition: background var(--transition), color var(--transition);
}

.btn-outline-purple:hover {
    background: var(--purple);
    color: #fff;
}

.btn-outline-secondary {
    border: 1px solid var(--border-color) !important;
    color: var(--text-secondary) !important;
    background: transparent;
}

.btn-outline-secondary:hover {
    border-color: var(--text-muted) !important;
    color: var(--text-primary) !important;
    background: var(--bg-secondary) !important;
}

/* ---- Free Promise ---- */
.free-promise {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(168, 85, 247, 0.1));
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: var(--card-radius);
    padding: 1.5rem 2rem;
}

.promise-badge {
    display: inline-block;
    background: var(--green);
    color: #000;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    margin-bottom: 0.75rem;
}

.promise-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ---- Favorite Row ---- */
.favorite-row {
    background: rgba(168, 85, 247, 0.08) !important;
    border-left: 3px solid var(--purple);
}

.rank-star {
    color: var(--orange);
    font-size: 0.75rem;
}

.site-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0.25rem 0 0;
    line-height: 1.4;
}

/* ---- Site Cards (Directory) ---- */
.site-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    overflow: hidden;
    transition: transform var(--transition), border-color var(--transition);
    height: 100%;
}

.site-card:hover {
    transform: translateY(-3px);
    border-color: var(--purple-dark);
}

.site-card-preview {
    height: 120px;
    overflow: hidden;
    position: relative;
    background: var(--bg-secondary);
    display: block;
}

.site-card-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.site-card-rank {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.site-card-name-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 1rem 0.6rem 0.35rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-bar {
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.search-input {
    padding-left: 2.5rem !important;
}

.search-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
    pointer-events: none;
}

.site-card-fav {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    color: var(--orange);
    font-size: 1.2rem;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
}

.site-card-body {
    padding: 1rem 1.25rem;
}

.site-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.site-card-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0.5rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.site-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.site-tag {
    background: var(--bg-secondary);
    color: var(--text-muted);
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
}

/* ---- CAPTCHA ---- */
.captcha-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
}

.captcha-image {
    text-align: center;
}

.captcha-image svg {
    max-width: 200px;
    height: auto;
    border-radius: 6px;
}

/* ---- Safety Page ---- */
.safety-stat-card {
    background: var(--bg-card);
    border-radius: var(--card-radius);
    padding: 1.25rem;
    text-align: center;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.safety-stat-card i {
    font-size: 1.5rem;
}

.safety-stat-card.safe i { color: var(--green); }
.safety-stat-card.caution i { color: var(--orange); }
.safety-stat-card.danger i { color: var(--red); }

.safety-stat-num {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.safety-stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.safety-category-section {
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 1rem 1.25rem;
    background: var(--bg-card);
}

.safety-category-toggle {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
}

.safety-category-toggle::-webkit-details-marker {
    display: none;
}

.safety-category-toggle::before {
    content: '\F282';
    font-family: 'bootstrap-icons';
    font-size: 0.85rem;
    transition: transform var(--transition);
    color: var(--text-muted);
}

details[open] > .safety-category-toggle::before {
    transform: rotate(90deg);
}

.safety-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 3px;
}

.safety-table thead th {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.6rem 0.75rem;
    border: none;
}

.safety-table tbody tr {
    background: var(--bg-table-row);
}

.safety-table tbody tr:nth-child(even) {
    background: var(--bg-table-row-alt);
}

.safety-table td {
    padding: 0.65rem 0.75rem;
    border: none;
    vertical-align: middle;
}

.safety-method {
    text-align: center;
    padding: 1rem;
}

.safety-method i {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.safety-method h5 {
    color: #fff;
    font-size: 1rem;
}

.safety-method p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

/* ---- Table of Contents ---- */
.post-toc {
    margin-bottom: 2rem;
}

.toc-inner {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
}

.toc-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.toc-inner ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-inner li {
    margin-bottom: 0.3rem;
}

.toc-inner li a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color var(--transition);
}

.toc-inner li a:hover {
    color: var(--purple-light);
}

.toc-inner li.toc-sub {
    padding-left: 1.25rem;
}

.toc-inner li.toc-sub a {
    font-size: 0.85rem;
}

/* ---- Dropdown overrides ---- */
.dropdown-menu-dark {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

.dropdown-menu-dark .dropdown-item {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.dropdown-menu-dark .dropdown-item:hover {
    background: var(--bg-card-hover);
    color: #fff;
}

.dropdown-menu-dark .dropdown-divider {
    border-color: var(--border-color);
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ============================================
   Responsive
   ============================================ */

/* ---- Tablet (max-width: 992px) ---- */
@media (max-width: 992px) {
    .comparison-section .row > div {
        padding: 1rem 0;
    }

    .free-promise {
        padding: 1.25rem 1.5rem;
    }

    .site-card-preview {
        height: 110px;
    }

    .site-card-preview-placeholder {
        height: 110px;
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* ---- Mobile (max-width: 768px) ---- */
@media (max-width: 768px) {
    .content-card {
        padding: 1.25rem;
    }

    .page-title {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .post-full-title {
        font-size: 1.5rem;
    }

    .post-feature-image {
        margin: 0 -1.25rem 1.5rem;
    }

    .rankings-table td,
    .rankings-table th {
        padding: 0.6rem 0.5rem;
        font-size: 0.85rem;
    }

    .preview-cell,
    .col-preview {
        display: none;
    }

    .rankings-table thead th:nth-child(2) {
        display: none;
    }

    .col-movies,
    .col-tv {
        display: none;
    }

    .col-status {
        display: none;
    }

    .rankings-table td:first-child {
        width: 45px;
    }

    .post-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .comparison-section {
        padding: 1.25rem;
    }

    .vs-badge {
        font-size: 1.25rem;
    }

    .free-promise {
        padding: 1rem;
    }

    .promise-text {
        font-size: 0.85rem;
    }

    .site-card-preview {
        height: 100px;
    }

    .site-card-preview-placeholder {
        height: 100px;
        font-size: 1.5rem;
    }

    .site-card-body {
        padding: 0.85rem 1rem;
    }

    .site-card-title {
        font-size: 1rem;
    }

    .category-card {
        padding: 1rem;
    }

    .category-icon-placeholder {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }

    .safety-stat-card {
        padding: 1rem;
    }

    .safety-stat-num {
        font-size: 1.25rem;
    }

    .safety-table td,
    .safety-table th {
        padding: 0.5rem;
        font-size: 0.8rem;
    }

    .safety-table .col-analysis,
    .safety-table .col-checked {
        display: none;
    }

    .safety-check-item {
        padding: 0.6rem 0.75rem;
    }

    .faq-item {
        padding: 1rem 0;
    }

    .toc-inner {
        padding: 1rem;
    }

    .footer-heading {
        margin-top: 1.5rem;
    }

    .site-footer {
        padding: 2rem 0 1.5rem;
    }

    .top-rank td {
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
        font-size: 0.9rem;
    }

    .top-rank .site-name {
        font-size: 0.95rem;
    }

    .rank-gold {
        font-size: 1.2em;
    }

    .gh-content {
        font-size: 0.95rem;
    }

    .gh-content h2 {
        font-size: 1.35rem;
    }

    .gh-content h3 {
        font-size: 1.15rem;
    }

    .gh-content pre {
        max-width: 100%;
        overflow-x: auto;
    }

    .gh-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .post-share {
        flex-wrap: wrap;
    }

    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* ---- Small Mobile (max-width: 576px) ---- */
@media (max-width: 576px) {
    .brand-text {
        font-size: 1.05rem;
    }

    .content-card {
        padding: 0.85rem;
        border-radius: 8px;
    }

    .page-title {
        font-size: 1.2rem;
        word-wrap: break-word;
    }

    .section-title {
        font-size: 1.05rem;
    }

    .intro-text {
        font-size: 0.85rem;
    }

    .post-full-title {
        font-size: 1.2rem;
    }

    .post-feature-image {
        margin: 0 -0.85rem 1.25rem;
    }

    .post-card-image {
        height: 140px;
    }

    .post-card-content {
        padding: 0.85rem 1rem;
    }

    .post-card-title {
        font-size: 0.9rem;
    }

    .rankings-table td,
    .rankings-table th {
        padding: 0.45rem 0.3rem;
        font-size: 0.78rem;
    }

    .rankings-table td:first-child {
        width: 32px;
        padding-left: 0.2rem;
        padding-right: 0.2rem;
    }

    .site-name {
        font-size: 0.82rem;
        gap: 0.3rem;
        word-break: break-word;
    }

    .site-favicon {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }

    .site-desc {
        display: none;
    }

    .alt-links {
        display: none;
    }

    .ad-badge {
        font-size: 1rem;
        width: 22px;
    }

    /* Horizontal card layout on mobile */
    .site-card {
        display: flex;
        flex-direction: row;
    }

    .site-card-preview {
        width: 120px;
        min-width: 120px;
        height: auto;
        min-height: 100%;
        border-radius: var(--card-radius) 0 0 var(--card-radius);
    }

    .site-card-preview img {
        height: 100%;
        border-radius: var(--card-radius) 0 0 var(--card-radius);
    }

    .site-card-preview-placeholder {
        width: 120px;
        min-width: 120px;
        height: auto;
        min-height: 120px;
        font-size: 1.25rem;
        border-radius: var(--card-radius) 0 0 var(--card-radius);
    }

    .site-card-rank {
        font-size: 0.65rem;
        padding: 0.15rem 0.4rem;
    }

    .site-card-name-overlay {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }

    .site-card-body {
        padding: 0.75rem;
        flex: 1;
        min-width: 0;
    }

    .site-card-title {
        font-size: 0.95rem;
    }

    .site-card-desc {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
        margin: 0.25rem 0;
    }

    .site-card-tags {
        gap: 0.25rem;
    }

    .site-card-tags .site-tag {
        font-size: 0.7rem;
        padding: 0.15rem 0.4rem;
    }

    .site-card .btn-purple {
        padding: 0.35rem 0.75rem;
        font-size: 0.8rem;
        margin-top: 0.5rem !important;
    }

    .btn-purple, .btn-outline-purple {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .req-item {
        font-size: 0.85rem;
    }

    .ad-item {
        font-size: 0.85rem;
    }

    .ad-tips p {
        font-size: 0.8rem;
    }

    .safety-stat-card {
        padding: 0.75rem;
    }

    .safety-stat-num {
        font-size: 1.1rem;
    }

    .safety-stat-label {
        font-size: 0.75rem;
    }

    .safety-table td,
    .safety-table th {
        padding: 0.4rem 0.3rem;
        font-size: 0.75rem;
    }

    .clone-warning .d-flex {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .free-promise {
        padding: 0.85rem;
        text-align: center;
    }

    .promise-badge {
        font-size: 0.8rem;
    }

    .promise-text {
        font-size: 0.8rem;
    }

    .category-card {
        padding: 0.85rem;
    }

    .category-name {
        font-size: 1rem;
    }

    .category-desc {
        font-size: 0.78rem;
    }

    .comparison-section {
        padding: 1rem;
    }

    .comparison-section h4 {
        font-size: 1rem;
    }

    .comparison-section p {
        font-size: 0.8rem;
    }

    .site-select-preview {
        flex-wrap: wrap;
    }

    .site-preview-url {
        margin-left: 0;
        width: 100%;
    }

    .report-site-card {
        padding: 0.5rem 0.75rem;
    }

    .content-card h3 {
        font-size: 1.05rem;
    }

    .site-footer .row > div {
        margin-bottom: 0.5rem;
    }

    .top-rank td {
        padding-top: 0.6rem;
        padding-bottom: 0.6rem;
        font-size: 0.85rem;
    }

    .top-rank .site-name {
        font-size: 0.88rem;
    }

    .top-rank .site-preview-thumb {
        width: 80px;
        height: 50px;
    }

    .top-rank .site-preview-placeholder {
        width: 80px;
        height: 50px;
    }

    .rank-gold {
        font-size: 1.15em;
    }

    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .safety-method {
        padding: 0.75rem 0.5rem;
    }

    .safety-method p {
        font-size: 0.8rem;
    }

    .safety-check-item {
        padding: 0.5rem 0.6rem;
        gap: 0.5rem;
    }

    .safety-check-item p {
        font-size: 0.82rem;
    }

    .faq-item h3 {
        font-size: 0.95rem;
    }

    .faq-item p {
        font-size: 0.85rem;
    }

    .post-share {
        gap: 0.35rem;
    }

    .share-btn {
        width: 32px;
        height: 32px;
    }

    .gh-content h2 {
        font-size: 1.2rem;
    }

    .gh-content h3 {
        font-size: 1.05rem;
    }

    .gh-content {
        font-size: 0.9rem;
    }

    .toc-inner li a {
        font-size: 0.82rem;
    }

    .toc-inner li.toc-sub a {
        font-size: 0.78rem;
    }

    .captcha-box {
        padding: 0.75rem;
    }

    .footer-disclaimer {
        font-size: 0.78rem;
    }
}

/* ---- Extra Small Mobile (max-width: 400px) ---- */
@media (max-width: 400px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .content-card {
        padding: 0.75rem;
    }

    .page-title {
        font-size: 1.1rem;
    }

    .brand-text {
        font-size: 0.95rem;
    }

    .rankings-table td,
    .rankings-table th {
        padding: 0.4rem 0.2rem;
        font-size: 0.75rem;
    }

    .site-name {
        font-size: 0.78rem;
    }

    .site-favicon {
        width: 16px;
        height: 16px;
    }

    .rankings-table td:first-child {
        width: 28px;
    }

    .top-rank .site-name {
        font-size: 0.82rem;
    }

    .category-card .col-md-6 {
        padding: 0.5rem;
    }

    .post-full-title {
        font-size: 1.05rem;
    }
}

/* ---- Top 3 Ranked Rows ---- */
.top-rank td {
    padding-top: 1rem;
    padding-bottom: 1rem;
    font-size: 1.05rem;
}

.top-rank .site-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fbbf24 !important;
}

.top-rank .site-preview-thumb {
    width: 110px;
    height: 65px;
}

.top-rank .site-preview-placeholder {
    width: 110px;
    height: 65px;
    font-size: 1.5rem;
}

.top-rank .site-favicon {
    width: 22px;
    height: 22px;
}

.top-rank .ad-badge {
    font-size: 1.3rem;
}

.rank-gold {
    color: #fbbf24;
    font-weight: 800;
    text-shadow: 0 0 8px rgba(251, 191, 36, 0.3);
    font-size: 1.4em;
}

/* ---- Alt Links ---- */
.alt-links {
    display: block;
    margin-top: 2px;
    font-size: 0.78rem;
}

.alt-link {
    color: var(--purple-light);
    text-decoration: none;
    transition: color var(--transition);
}

.alt-link:hover {
    color: var(--purple);
    text-decoration: underline;
}

.alt-sep {
    color: var(--text-muted);
    margin: 0 4px;
}

/* ---- Clone Warning ---- */
.clone-warning {
    border-left: 4px solid var(--red);
}

/* ---- Footer Legal ---- */
.footer-legal {
    font-size: 0.85rem;
}

.footer-legal a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition);
}

.footer-legal a:hover {
    color: var(--purple-light);
}

/* ---- Legal Pages ---- */
.legal-content {
    max-width: 800px;
    line-height: 1.8;
}

.legal-content h2 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--border-color);
}

.legal-content h3 {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.legal-content p {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.legal-content ul, .legal-content ol {
    color: var(--text-secondary);
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-content li {
    margin-bottom: 0.4rem;
}

.legal-content a {
    color: var(--purple-light);
}

/* ---- Site Select Preview (Report Ads) ---- */
.site-select-preview {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.6rem 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.site-preview-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.site-preview-url {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-left: auto;
}

.site-preview-url:hover {
    color: var(--purple-light);
}

/* ---- Searchable Select ---- */
.searchable-select {
    position: relative;
}
.searchable-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 250px;
    overflow-y: auto;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 8px 8px;
    z-index: 50;
}
.searchable-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-primary);
}
.searchable-option:hover {
    background: var(--purple);
    color: #fff;
}
.site-favicon-sm {
    width: 16px;
    height: 16px;
    border-radius: 2px;
    flex-shrink: 0;
}

/* ---- Report Site Cards ---- */
.report-site-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: border-color var(--transition);
}

.report-site-card:hover {
    border-color: var(--purple);
}

/* ---- Safety Checklist ---- */
.safety-checklist {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.safety-check-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    border-left: 3px solid var(--green);
}

.safety-check-item i {
    font-size: 1.25rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.safety-check-item strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

/* ---- Safety Tip Cards ---- */
.safety-tip-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
}

.safety-tip-card h5 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.safety-tip-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

/* ---- FAQ Items ---- */
.faq-item {
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.faq-item h3 {
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.faq-item p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ---- Preview Expand Overlay ---- */
.preview-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.preview-overlay.active {
    display: flex;
}

.preview-expanded {
    position: relative;
    width: 900px;
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
}

.preview-expanded img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 85vh;
    object-fit: contain;
}

.preview-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    font-size: 1.75rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background var(--transition);
    z-index: 1;
}

.preview-close:hover {
    background: rgba(168, 85, 247, 0.8);
}

.site-preview-thumb {
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
}

.site-preview-thumb:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
}

/* ---- Site Card Preview Placeholder ---- */
.site-card-preview-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    background: var(--bg-secondary);
    color: var(--text-muted);
    font-size: 2rem;
    gap: 0.5rem;
}

.site-card-preview-placeholder span {
    font-size: 0.9rem;
}

.site-card-url {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0.15rem 0 0.35rem;
}

.site-card-url .bi {
    font-size: 0.7rem;
    margin-right: 2px;
}

/* ---- Boost Feature ---- */
.boost-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.boost-info-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 1.5rem;
    text-align: center;
}

.boost-info-card i {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.75rem;
}

.boost-info-card h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.boost-info-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.boost-price-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(168,85,247,0.15), rgba(124,58,237,0.1));
    border: 1px solid var(--purple);
    border-radius: var(--card-radius);
}

.price-tag {
    background: var(--purple);
    color: #fff;
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    font-size: 1.5rem;
    font-weight: 700;
}

.price-desc {
    color: var(--text-secondary);
    font-size: 1rem;
}

.boost-summary {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem 1.25rem;
}

.boost-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.boost-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--purple);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.boost-step h5 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
}

.boost-step p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.92rem;
}

.faq-list details {
    border-bottom: 1px solid var(--border-color);
}

.faq-list details:last-child {
    border-bottom: none;
}

.faq-list summary {
    padding: 1rem 0;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-list summary::after {
    content: '\F282';
    font-family: 'bootstrap-icons';
    transition: transform var(--transition);
}

.faq-list details[open] summary::after {
    transform: rotate(180deg);
}

.faq-list details p {
    padding: 0 0 1rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

.boost-banner {
    background: linear-gradient(135deg, rgba(168,85,247,0.12), rgba(124,58,237,0.08));
    border: 1px solid rgba(168,85,247,0.3);
    border-radius: var(--card-radius);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.boost-banner i {
    font-size: 1.5rem;
    color: var(--purple);
}

.boost-banner p {
    margin: 0;
    flex: 1;
    min-width: 200px;
}

.boost-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--purple);
    color: #fff;
    padding: 0.55rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.boost-btn:hover {
    background: var(--purple-dark);
    color: #fff;
}

.boost-btn i {
    font-size: 1rem;
    color: #fff !important;
}

.boost-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: var(--purple);
    color: #fff;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    vertical-align: middle;
}

@media (max-width: 576px) {
    .boost-info-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
    .boost-info-card {
        padding: 1rem;
    }
    .boost-info-card i {
        font-size: 1.5rem;
    }
    .boost-price-badge {
        flex-direction: column;
        text-align: center;
    }
}
