/* AI Tools Frontend Styles - Premium Design 2026 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary: #64748b;
    --bg-body: #f1f5f9;
    --card-bg: #ffffff;
    --text-dark: #0f172a;
    --text-light: #475569;
    --success: #059669;
    --danger: #ef4444;
    --border: #e2e8f0;
    --radius: 12px;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --warning: #f59e0b;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-dark);
    line-height: 1.5;
}

.ai-tool-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
    box-sizing: border-box;
    background: var(--bg-body);
}



/* Reset WordPress theme styles that might interfere */
/* STRONG RESET FOR LINKS to prevent theme underlines */
.ai-tool-container a:not(.sub-btn),
.ai-tool-homepage-wrapper a:not(.sub-btn),
.ai-tool-card a,
.similar-tool-card,
.btn-main,
.dl-button,
.cat-link,
.cat-card,
.related-tool,
.breadcrumb-nav a {
    text-decoration: none !important;
    /* border-bottom: none !important; */
    /* Commented out to allow card borders */
    box-shadow: none !important;
    background-image: none !important;
    /* Some themes use background-image for underlines */
}

/* Re-apply underline only on hover where desired */
.breadcrumbs a:hover,
.tool-content a:hover {
    text-decoration: underline !important;
}

.ai-tool-container * {
    box-sizing: border-box;
}

/* Ensure no extra spacing from theme - but NOT the plugin's content-area */
.single-ai_tool .site-main,
.single-ai_tool article,
.single-ai_tool .hfeed,
.single-ai_tool .site-content,
.single-ai_tool main {
    /* padding: 0 !important; */
    /* Keep theme padding for better text spacing */
    margin: 0 !important;
    max-width: none !important;
    width: 100% !important;
}

/* Target only theme's content-area, not plugin's */
.single-ai_tool>.site-main>.content-area,
.single-ai_tool .site-content>.content-area {
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
    width: 100% !important;
}

/* Override theme container widths */
.single-ai_tool .entry-content {
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

/* Single page: same container, just remove extra theme top margin */
.single-ai_tool .ai-tool-container {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Unified grid layout for both homepage and article pages */
.ai-tool-container .main-grid {
    display: grid !important;
    grid-template-columns: 1fr 340px !important;
    gap: 30px !important;
    align-items: start !important;
    margin-top: 10px;

}

/* Protect plugin's content-area and sidebar from theme interference */
.ai-tool-container .main-grid>.content-area,
.ai-tool-container .main-grid>.sidebar-sticky {
    width: auto !important;
    max-width: none !important;
}

/* SEO-Friendly Breadcrumbs */
.breadcrumbs {
    font-size: 0.85rem;
    margin-top: 20px;
    margin-bottom: 24px;
    color: #374151;
    font-weight: 500;
}

.breadcrumbs a {
    color: #1e40af;
    text-decoration: underline !important;
    text-underline-offset: 2px;
    border-bottom: none !important;
    box-shadow: none !important;
    font-weight: 600;
}

.breadcrumbs a:hover {
    color: #1e3a8a;
    text-decoration: underline !important;
}

/* IMPROVED PREMIUM HERO SECTION (2026) - Unified Desktop & Mobile */
.ai-hero-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 28px 30px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.6);
    margin-bottom: 48px;
}

.hc-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 18px;
}

.hc-branding {
    display: flex;
    align-items: center;
    gap: 15px;
}

.hc-logo-box {
    width: 85px;
    height: 85px;
    background: #fff;
    border-radius: 18px;
    border: 1px solid #edf2f7;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hc-logo-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

.hc-logo-box i {
    font-size: 28px;
    color: var(--primary);
}

.hc-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hc-info h1 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 6px;
    margin-top: 0;
}

.hc-subtitle {
    margin: 10px 0 0;
    max-width: 62ch;
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
}

.hc-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.hc-badges .badge {
    font-size: 10.5px;
    font-weight: 700;
    padding: 4px 11px;
    border-radius: 100px;
    background: #f1f5f9;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border: 1px solid #e2e8f0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: background 0.2s;
}

/* Rating badge — amber */
.hc-badges .badge.rating {
    color: #92400e;
    background: #fef3c7;
    border-color: #fde68a;
}

.hc-badges .badge.rating i {
    color: #f59e0b;
    font-size: 10px;
}

/* Pricing badge — blue */
.hc-badges .badge.pricing {
    color: #1e40af;
    background: #eff6ff;
    border-color: #bfdbfe;
}

/* Category badge — slate */
.hc-badges .badge.category {
    color: #374151;
    background: #f9fafb;
    border-color: #d1d5db;
}

.hc-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Bell button — blue tint */
.hc-actions .btn-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1.5px solid #bfdbfe !important;
    background: #eff6ff !important;
    cursor: pointer;
    color: #2563eb !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    font-size: 15px;
    box-shadow: none !important;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    flex-shrink: 0;
}

.hc-actions .btn-icon:focus-visible {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18) !important;
    border-color: rgba(37, 99, 235, 0.65) !important;
}

.hc-btn-visit:focus-visible,
.hc-btn-cta:focus-visible,
.breadcrumbs a:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
    border-radius: 14px;
}

.hc-btn-visit:focus-visible {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.22), 0 8px 18px -10px rgba(37, 99, 235, 0.45);
}

.hc-actions .btn-icon:hover {
    background: #dbeafe !important;
    border-color: #93c5fd !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2) !important;
}

/* Heart button — red tint */
.hc-actions .btn-icon.btn-favorite {
    border-color: #fecaca !important;
    background: #fff1f2 !important;
    color: #f43f5e !important;
}

.hc-actions .btn-icon.btn-favorite:hover {
    background: #ffe4e6 !important;
    border-color: #fca5a5 !important;
    box-shadow: 0 4px 10px rgba(244, 63, 94, 0.2) !important;
}

.hc-actions .btn-icon.favorited {
    color: #ef4444 !important;
    border-color: #ef4444 !important;
    background: #fff1f2 !important;
}

.hc-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 18px 0;
}

.hc-metrics-grid {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 0;
    margin: 10px 0 18px;
    padding: 10px 0;
    border-top: 1px solid #eef2f7;
    border-bottom: 1px solid #eef2f7;
}

.hc-metric {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: transparent;
    border: 0;
    border-radius: 0;
    transition: background 0.2s ease;
    min-width: 220px;
}

.hc-metric:hover {
    background: rgba(241, 245, 249, 0.7);
}

.hc-metric:not(:last-child) {
    border-right: 1px solid #eef2f7;
}

/* Icon column */
.hc-metric .m-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 15px;
    color: #475569;
}

/* Released icon */
.hc-metric.metric-released .m-icon {
    background: #eff6ff;
    color: #2563eb;
}

/* API icon */
.hc-metric.metric-api .m-icon {
    background: #f0fdf4;
    color: #16a34a;
}

/* Developer icon */
.hc-metric.metric-developer .m-icon {
    background: #fdf4ff;
    color: #9333ea;
}

/* Trial icon */
.hc-metric.metric-trial .m-icon {
    background: #fffbeb;
    color: #d97706;
}

/* Pricing icon */
.hc-metric.metric-pricing .m-icon {
    background: #fef2f2;
    color: #dc2626;
}

/* Text column */
.hc-metric .m-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.hc-metric .m-label {
    font-size: 10px;
    color: #94a3b8;
    font-weight: 600;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hc-metric .m-value {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hc-metric .m-value.available {
    color: var(--success);
    display: flex;
    align-items: center;
    gap: 5px;
}

.hc-metric .api-badge {
    font-size: 11px;
    background: #dcfce7;
    color: #15803d;
    padding: 2px 8px;
    border-radius: 100px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
}

.hc-metric .api-badge::before {
    content: "";
    width: 5px;
    height: 5px;
    background: #22c55e;
    border-radius: 50%;
}

/* Hero Footer: Visit button + Social icons in one row */
.hc-interactions {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.hc-btn-visit {
    flex-shrink: 0;
    padding: 13px 32px;
    border-radius: 100px;
    text-decoration: none !important;
    background: var(--primary);
    color: #fff !important;
    font-weight: 700;
    font-size: 15px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.hc-btn-visit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px -6px var(--primary);
}

.hc-cta-list {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
    flex: 1;
}

.hc-btn-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: transparent !important;
    color: var(--text-main, #1e293b) !important;
    padding: 8px 12px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.25s ease;
    min-width: 70px;
}

.hc-btn-cta:hover {
    transform: translateY(-2px);
    background: #f1f5f9 !important;
}

.hc-btn-cta .desktop-icon {
    display: none;
}

.hc-icon-circle {
    display: flex;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    color: white;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
    margin-bottom: 6px;
}

.hc-icon-circle.bg-wa {
    background: linear-gradient(135deg, #25d366, #128c7e);
}

.hc-icon-circle.bg-tg {
    background: linear-gradient(135deg, #37aee2, #1e96c8);
}

.hc-icon-circle.bg-yt {
    background: linear-gradient(135deg, #ff4b4b, #ff0000);
}

@media (max-width: 768px) {
    .ai-hero-card {
        padding: 20px;
        border-radius: 24px;
        position: relative;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    }

    .hc-header-top {
        margin-bottom: 16px;
    }

    .hc-actions {
        position: absolute;
        top: 20px;
        right: 20px;
    }

    .hc-actions .btn-icon {
        width: 34px;
        height: 34px;
        border-radius: 10px;
        background: #f1f5f9;
        color: var(--text-muted, #64748b);
        border: none;
    }

    .hc-actions .btn-icon.favorited {
        background: #fff1f2;
        color: #e11d48;
    }

    .hc-logo-box {
        width: 120px;
        height: 120px;
        border-radius: 16px;
    }

    .hc-logo-box img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .hc-info h1 {
        font-size: 20px;
        margin-bottom: 4px;
    }

    .hc-subtitle {
        margin-top: 8px;
        font-size: 13px;
    }

    .hc-divider {
        display: none;
    }

    .hc-metrics-grid {
        flex-wrap: wrap;
        overflow: visible;
        padding: 8px 0;
        margin: 8px 0 16px;
        border-top: 1px solid #eef2f7;
        border-bottom: 1px solid #eef2f7;
    }

    .hc-metric {
        min-width: 0;
        width: 50%;
        padding: 10px 12px;
        border-right: 1px solid #eef2f7;
        background: transparent;
    }

    /* Remove divider on right edge of each row */
    .hc-metric:nth-child(2n) {
        border-right: 0;
    }

    /* Light row dividers */
    .hc-metric:nth-child(n + 3) {
        border-top: 1px solid #eef2f7;
    }

    /* If there's an odd last item, make it full width */
    .hc-metric:last-child:nth-child(odd) {
        width: 100%;
        border-right: 0;
    }

    .hc-metric .m-label {
        font-size: 10px;
        margin-bottom: 3px;
    }

    .hc-metric .m-value {
        font-size: 14px;
    }

    /* Stack interactions vertically on mobile */
    .hc-interactions {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .hc-btn-visit {
        width: 100%;
        max-width: 280px;
        font-size: 15px;
        padding: 13px 24px;
    }

    .hc-cta-list {
        justify-content: center;
        gap: 4px;
        flex: none;
        width: 100%;
    }

    .hc-btn-cta {
        flex-direction: column;
        padding: 8px 10px;
        border-radius: 14px;
        font-size: 11px;
        min-width: 72px;
    }

    .hc-btn-cta:hover {
        transform: none;
        background: #f1f5f9 !important;
    }

    .hc-icon-circle {
        width: 46px;
        height: 46px;
        border-radius: 13px;
        font-size: 19px;
        margin-bottom: 6px;
    }

    .hc-icon-circle.bg-wa {
        background: linear-gradient(135deg, #25d366, #128c7e);
    }

    .hc-icon-circle.bg-tg {
        background: linear-gradient(135deg, #37aee2, #1e96c8);
    }

    .hc-icon-circle.bg-yt {
        background: linear-gradient(135deg, #ff4b4b, #ff0000);
    }
}

@media (max-width: 480px) {
    .ai-hero-card {
        padding: 18px;
    }

    .hc-btn-visit {
        font-size: 14px;
        padding: 12px 20px;
    }

    .hc-info h1 {
        font-size: 18px;
    }
}

/* MAIN CONTENT LAYOUT */
.main-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 30px;
    align-items: start;
}

.content-area {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.content-area>*:first-child {
    margin-top: 0;
}

/* SEO: Clear H2 Structure */
.section-header {
    font-size: 1.5rem;
    margin-bottom: 20px;
    position: relative;
    padding-left: 15px;
    color: var(--text-dark);
    margin-top: 0;
}

.section-header::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    width: 4px;
    background: var(--primary);
    border-radius: 2px;
}

/* Tool Content */
.tool-content {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 40px;
    line-height: 1.8;
}

.tool-content>*:first-child {
    margin-top: 0;
}

.tool-content p {
    margin-bottom: 20px;
}

.tool-content h2,
.tool-content h3 {
    color: var(--text-dark);
    margin-top: 30px;
    margin-bottom: 15px;
}

.tool-content ul,
.tool-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.description {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

/* PROS & CONS - Color Coded & Iconic */
.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.pc-box {
    padding: 25px;
    border-radius: 16px;
    border: 1px solid var(--border);
}

.pc-box h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    margin-top: 0;
}

.pros {
    background: #f0fdf4;
    border-color: #bcf0da;
}

.pros h3 {
    color: #166534;
}

.cons {
    background: #fef2f2;
    border-color: #fecaca;
}

.cons h3 {
    color: #991b1b;
}

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

.pc-list li {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    align-items: flex-start;
    color: var(--text-light);
}

.pc-list li i {
    margin-top: 4px;
}

/* STICKY SIDEBAR */
.sidebar-sticky {
    position: sticky;
    top: 20px;
}

.detail-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 25px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 30px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

.detail-item:last-of-type {
    border-bottom: none;
}

.detail-label {
    color: var(--secondary);
    font-size: 0.9rem;
}

.detail-value {
    font-weight: 600;
    color: var(--text-dark);
    text-align: right;
}

/* DOWNLOADS SECTION */
.download-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

.dl-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: 0.2s;
}

.dl-button:hover {
    background: var(--bg-body);
    border-color: var(--primary);
}

/* EXPERT OPINION */
.expert-opinion {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 40px;
}

.expert-opinion h3 {
    color: #92400e;
    margin-top: 0;
    font-size: 1.1rem;
}

.expert-opinion p {
    color: #b45309;
    margin-bottom: 0;
    font-style: italic;
}

/* SIMILAR AI TOOLS SECTION - Professional Redesign 2026 */
.similar-tools-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.similar-tools-section .section-header {
    margin-bottom: 30px;
    font-size: 1.4rem;
    padding-left: 0;
}

.similar-tools-section .section-header::before {
    display: none;
    /* Remove side bar for cleaner look here */
}

.similar-tools-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.similar-tool-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.similar-tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.08);
    border-color: var(--primary);
}

/* Hover Accent Line */
.similar-tool-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.similar-tool-card:hover::after {
    transform: scaleX(1);
}

.similar-tool-logo {
    width: 72px;
    height: 72px;
    min-height: 72px;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    background: #f8fafc;
    border: 1px solid var(--border);
}

.similar-tool-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.similar-tool-card:hover .similar-tool-logo img {
    transform: scale(1.08);
}

.similar-tool-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.similar-tool-title {
    color: var(--text-dark);
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
    /* Force height for alignment */
}

/* Meta Data Wrapper */
.similar-tool-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
    /* Push to bottom */
    flex-wrap: wrap;
}

/* Rating Badge */
.similar-tool-rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fffbeb;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #b45309;
}

.similar-tool-rating i {
    color: #f59e0b;
    font-size: 0.8rem;
}

/* Pricing Badge */
.similar-tool-pricing {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

/* Redefined Pricing Colors for Clarity */
.pricing-free {
    color: #059669;
    background: #ecfdf5;
}

.pricing-freemium {
    color: #2563eb;
    background: #eff6ff;
}

.pricing-paid {
    color: #dc2626;
    background: #fef2f2;
}

.pricing-trial {
    color: #d97706;
    background: #fffbeb;
}

.pricing-contact {
    color: #7c3aed;
    background: #f5f3ff;
}

/* Category Tag */
.similar-tool-category {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 12px;
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 20px;
    align-self: center;
    /* Center in flex column */
}

/* RATING STARS (Legacy Support) */
.stars-input-interactive {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.stars-input-interactive input {
    display: none;
}

.stars-input-interactive label {
    font-size: 24px;
    color: #e2e8f0;
    cursor: pointer;
    transition: color 0.2s;
}

.stars-input-interactive label:hover,
.stars-input-interactive label:hover~label,
.stars-input-interactive input:checked~label {
    color: var(--warning);
}

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
    .main-grid {
        grid-template-columns: 1fr;
    }



    .hero-meta {
        justify-content: center;
    }

    .sidebar-sticky {
        position: static;
    }

    .similar-tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {

    /* Full width container on mobile */
    .single-ai_tool .ai-tool-container {
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Content area - full width with internal padding */
    .content-area {
        border-radius: 0;
        padding: 20px 16px;
        margin: 0;
    }



    /* Breadcrumbs */
    .breadcrumbs {
        padding-left: 16px;
        padding-right: 16px;
    }

    /* Responsive grids */
    .pros-cons,
    .download-grid {
        grid-template-columns: 1fr;
    }

    .similar-tools-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   MY TOOLKIT REDESIGN V2 (2026)
   ========================================= */

.toolkit-page-v2 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    font-family: 'Inter', system-ui, sans-serif;
}

/* Header */
.toolkit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.back-link-modern {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.back-link-modern:hover {
    background: var(--primary);
    color: #fff;
    transform: translateX(-3px);
    border-color: var(--primary);
}

.header-titles h1 {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0 0 5px 0;
    color: var(--text-dark);
}

.header-titles p {
    margin: 0;
    color: var(--secondary);
    font-size: 0.95rem;
}

.btn-modern-primary {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-modern-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(37, 99, 235, 0.3);
}

/* Empty State */
.toolkit-empty-state {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: 20px;
    border: 1px dashed var(--border);
}

.empty-illustration {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 20px;
}

.toolkit-empty-state h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.toolkit-empty-state p {
    color: var(--secondary);
    margin-bottom: 30px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Grid Layout */
.toolkit-grid {
    display: columns;
    column-count: 3;
    column-gap: 24px;
}

@media (max-width: 992px) {
    .toolkit-grid {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .toolkit-grid {
        column-count: 1;
    }
}

/* Category Card */
.toolkit-category-card {
    break-inside: avoid;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    margin-bottom: 24px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
}

.toolkit-category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
}

.category-card-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: #fafafa;
    border-bottom: 1px solid var(--border);
}

.category-title-section {
    display: flex;
    gap: 12px;
}

.category-icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.category-info h3 {
    margin: 0 0 4px 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
}

.tool-count-badge {
    font-size: 0.75rem;
    color: var(--secondary);
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 10px;
}

/* Actions Dropdown */
.category-actions-dropdown {
    position: relative;
}

.btn-icon-more {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.2s;
}

.btn-icon-more:hover {
    color: var(--text-dark);
    background: #f1f5f9;
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    width: 140px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
    padding: 5px;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s;
}

/* Show dropdown on hover parent or implementing click in JS later. 
   For now, simplistic hover for pure CSS version if JS interaction isn't strictly added yet,
   but JS click is better. Let's assume JS toggles a class or we use focus-within hack.
*/
.category-actions-dropdown:focus-within .dropdown-menu,
.category-actions-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu button {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: none;
    background: none;
    text-align: left;
    font-size: 0.9rem;
    color: var(--text-dark);
    cursor: pointer;
    border-radius: 4px;
}

.dropdown-menu button:hover {
    background: #f8fafc;
}

.dropdown-menu button.destructive {
    color: var(--danger);
}

.dropdown-menu button.destructive:hover {
    background: #fef2f2;
}

/* Category Items */
.category-items-container {
    padding: 5px 0;
}

.category-empty-placeholder {
    padding: 30px;
    text-align: center;
    color: #cbd5e1;
    font-size: 0.9rem;
    font-style: italic;
}

.toolkit-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    transition: background 0.2s;
    border-bottom: 1px solid #f1f5f9;
}

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

.toolkit-item-row:hover {
    background: #f8fafc;
}

.item-main-link {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-grow: 1;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none !important;
}

.item-img,
.item-img-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
}

.item-img-placeholder {
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 0.8rem;
}

.btn-remove-item {
    opacity: 0;
    background: none;
    border: none;
    color: #cbd5e1;
    cursor: pointer;
    padding: 4px;
    transition: all 0.2s;
}

.toolkit-item-row:hover .btn-remove-item {
    opacity: 1;
}

.btn-remove-item:hover {
    color: var(--danger);
}

/* Footer Add Button */
.category-card-footer {
    padding: 10px 20px 20px;
}

.btn-add-tool-clean {
    width: 100%;
    padding: 10px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    color: #64748b;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-add-tool-clean:hover {
    background: #eff6ff;
    border-color: var(--primary);
    color: var(--primary);
}

/* Modern Modals */
.ai-tools-modal-v2 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.ai-tools-modal-v2.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
}

.modal-card {
    position: relative;
    background: #fff;
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(20px);
    transition: transform 0.3s;
    overflow: hidden;
}

.ai-tools-modal-v2.active .modal-card {
    transform: translateY(0);
}

.modal-card.modal-lg {
    max-width: 650px;
}

.modal-header {
    padding: 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text-dark);
}

.modal-close-icon {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
}

.modal-close-icon:hover {
    color: var(--danger);
}

.modal-body {
    padding: 24px;
}

.modal-body.nopad {
    padding: 0;
}

/* Forms */
.form-group-v2 {
    margin-bottom: 20px;
}

.form-group-v2 label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.form-control-v2 {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-control-v2:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Color & Icon Pickers */
.color-picker-grid,
.icon-picker-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.color-picker-option input,
.icon-picker-option input {
    display: none;
}

.swatch {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: block;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.2s;
}

.color-picker-option input:checked+.swatch {
    transform: scale(1.1);
    border-color: var(--text-dark);
    box-shadow: 0 0 0 2px #fff inset;
}

.icon-box {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--secondary);
    transition: all 0.2s;
}

.icon-picker-option input:checked+.icon-box {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 30px;
}

.btn-ghost {
    background: transparent;
    border: 1px solid transparent;
    color: var(--secondary);
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
}

.btn-ghost:hover {
    background: #f1f5f9;
    color: var(--text-dark);
}

/* Modal Tabs */
.modal-tabs {
    display: flex;
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
}

.modal-tab {
    flex: 1;
    padding: 16px;
    border: none;
    background: none;
    cursor: pointer;
    font-weight: 600;
    color: #64748b;
    border-bottom: 2px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.modal-tab.active {
    color: var(--primary);
    background: #fff;
    border-bottom-color: var(--primary);
}

.modal-tab-content {
    background: #fff;
    min-height: 300px;
}

.tab-pane {
    padding: 24px;
}

/* Search UI */
.search-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.search-input-lg {
    width: 100%;
    padding: 16px 16px 16px 48px;
    font-size: 1.1rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
}

.search-input-lg:focus {
    outline: none;
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.1rem;
}

.search-empty-state {
    text-align: center;
    padding: 40px;
    color: #94a3b8;
}

.search-results-list {
    max-height: 350px;
    overflow-y: auto;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    border-bottom: 1px solid #f1f5f9;
    border-radius: 8px;
}

.search-result-item:hover {
    background: #f8fafc;
}

.result-icon img,
.result-icon i {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: var(--primary);
    font-size: 1.2rem;
}

.result-info h4 {
    margin: 0 0 4px 0;
    color: var(--text-dark);
}

.result-meta span {
    font-size: 0.8rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-select-tool {
    margin-left: auto;
    padding: 8px 16px;
    background: #eff6ff;
    color: var(--primary);
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-select-tool:hover {
    background: var(--primary);
    color: #fff;
}


.cat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.cat-icon {
    width: 80px;
    height: 80px;
    background: #eff6ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary);
    font-size: 2rem;
}

.cat-card h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 10px;
}

.cat-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
}


:root {
    --primary: #2563eb;
    --primary-light: #3b82f6;
    --primary-dark: #1d4ed8;
    --dark-slate: #1e293b;
    --soft-bg: #f8fafc;
    --card-bg: #ffffff;
    --success: #059669;
    --danger: #ef4444;
    --warning: #f59e0b;
    --border: #e2e8f0;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
}

/* Base Reset */
.ai-tool-container,
.ai-tool-container * {
    box-sizing: border-box;
}

/* Container (typography supplement - layout handled by primary rule above) */
.ai-tool-container {
    max-width: 1400px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: var(--dark-slate);
    font-size: 15px;
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
    font-size: 13px;
    margin-bottom: 24px;
    color: var(--text-muted);
    font-weight: 500;
}

.breadcrumb-nav a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-nav a:hover {
    color: var(--primary-dark);
}

.current-crumb {
    color: var(--dark-slate);
    font-weight: 600;
    cursor: default;
}

/* ===========================================
   HERO SECTION
   =========================================== */
.tool-hero-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 32px 36px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 24px;
    box-shadow: var(--shadow-md);
}

.hero-icon {
    width: 80px;
    height: 80px;
    min-width: 80px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: 700;
    overflow: hidden;
}

.hero-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    margin: 0 0 8px 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark-slate);
    line-height: 1.3;
}

.price-tag-hero {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #047857;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: 0.3px;
}

.hero-text p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.btn-hero-main {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white !important;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    text-decoration: none !important;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.btn-hero-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

/* ===========================================
   MAIN CONTENT LAYOUT
   =========================================== */
.layout-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 28px;
    align-items: start;
}

/* ===========================================
   ARTICLE CARD
   =========================================== */
.article-card {
    background: var(--card-bg);
    padding: 36px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

.article-card h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 36px 0 16px 0;
    color: var(--dark-slate);
    border-left: 4px solid var(--primary);
    padding-left: 14px;
    line-height: 1.4;
}

.article-card h2:first-of-type {
    margin-top: 0;
}

.tool-content {
    color: var(--dark-slate);
    line-height: 1.8;
    font-size: 15px;
}

.tool-content p {
    margin-bottom: 16px;
    color: #475569;
}

.tool-content img {
    width: 100%;
    border-radius: var(--radius-lg);
    margin: 24px 0;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}

.article-card ul {
    padding-left: 0;
    list-style: none;
    margin: 16px 0;
}

.article-card li {
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
    color: #475569;
}

.article-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
}

/* ===========================================
   PROS & CONS
   =========================================== */
.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 24px;
}

.pc-box {
    padding: 20px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

/* Pros box - light green background */
.pros-cons .pc-box:first-child {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

/* Cons box - light red background */
.pros-cons .pc-box:last-child {
    background: #fef2f2;
    border-color: #fecaca;
}

.pc-box h3 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pc-box div {
    font-size: 14px;
    color: #475569;
}

/* ===========================================
   EXPERT OPINION
   =========================================== */
.expert-opinion {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 24px;
    border-radius: var(--radius-lg);
    margin-top: 32px;
    border-left: 4px solid var(--warning);
    border: 1px solid var(--border);
    border-left: 4px solid var(--warning);
}

.expert-opinion h3 {
    margin: 0 0 10px 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--dark-slate);
}

.expert-opinion p {
    margin: 0;
    font-style: italic;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

/* ===========================================
   DOWNLOAD SECTION
   =========================================== */
.download-card-preserve {
    background: var(--soft-bg);
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    margin-top: 32px;
}

.download-card-preserve h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark-slate);
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.download-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.download-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    text-decoration: none !important;
    color: var(--dark-slate) !important;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.download-btn:hover {
    border-color: var(--primary);
    background: #eff6ff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.download-btn i {
    color: var(--primary);
    font-size: 16px;
}

.download-btn span i {
    margin-right: 10px;
}

/* ===========================================
   SIDEBAR
   =========================================== */
aside {
    position: sticky;
    top: 24px;
}

.sidebar-box {
    background: var(--card-bg);
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    margin-bottom: 20px;
    box-shadow: var(--shadow-md);
}

.sidebar-box h3 {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 16px 0;
    color: var(--dark-slate);
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
}

.stat-item:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.stat-item span {
    color: var(--text-secondary);
    font-weight: 500;
}

.stat-item strong {
    color: var(--dark-slate);
    font-weight: 600;
    text-align: right;
}

/* Price with currency - enhanced visibility */
.price-with-currency {
    font-size: 1.05em;
    color: var(--primary) !important;
    font-weight: 700 !important;
}

/* ===========================================
   RELATED TOOLS
   =========================================== */
.related-section {
    margin-top: 48px;
}

.related-section h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark-slate);
    border-left: 4px solid var(--primary);
    padding-left: 14px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.related-tool {
    background: var(--card-bg);
    padding: 20px 16px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    text-decoration: none !important;
    text-align: center;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-sm);
}

.related-tool:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.related-tool img {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    object-fit: cover;
    margin-bottom: 10px;
}

.related-tool h4 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--dark-slate);
    line-height: 1.4;
}

/* ===========================================
   RATING SECTION
   =========================================== */
.ai-tool-rating-section {
    background: var(--soft-bg);
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    margin-top: 32px;
}

.rating-score-large {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.stars-display-static i {
    color: var(--warning);
    font-size: 16px;
}

.rating-count-label {
    color: var(--text-muted);
    font-size: 13px;
}

.stars-input-interactive label {
    cursor: pointer;
    font-size: 24px;
    color: #e2e8f0;
    transition: color 0.15s;
}

.stars-input-interactive label:hover,
.stars-input-interactive label.active {
    color: var(--warning);
}

.rating-status-badge {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #047857;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

/* ===========================================
   SOCIAL SHARING BUTTONS
   =========================================== */
.social-share-section {
    background: var(--soft-bg);
    padding: 20px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    margin-top: 32px;
}

.social-share-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    text-decoration: none !important;
    color: var(--dark-slate) !important;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.share-btn i {
    font-size: 16px;
}

.share-facebook:hover {
    background: #1877f2;
    color: white !important;
    border-color: #1877f2;
}

.share-facebook:hover i {
    color: white;
}

.share-twitter:hover {
    background: #1da1f2;
    color: white !important;
    border-color: #1da1f2;
}

.share-twitter:hover i {
    color: white;
}

.share-linkedin:hover {
    background: #0a66c2;
    color: white !important;
    border-color: #0a66c2;
}

.share-linkedin:hover i {
    color: white;
}

.share-whatsapp:hover {
    background: #25d366;
    color: white !important;
    border-color: #25d366;
}

.share-whatsapp:hover i {
    color: white;
}

/* ===========================================
   AUTHOR BIO SECTION
   =========================================== */
.author-bio-section {
    background: var(--soft-bg);
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    margin-top: 32px;
}

.author-bio-section h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark-slate);
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.author-bio-content {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.author-avatar {
    flex-shrink: 0;
}

.author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--card-bg);
    box-shadow: var(--shadow-md);
}

.author-info h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-slate);
}

.author-info p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* ===========================================
   ARCHIVE PAGE STYLES (HYBRID LAYOUT)
   =========================================== */
.ai-tools-archive-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

/* Page Header */
.archive-header {
    text-align: center;
    margin-bottom: 50px;
}

.archive-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 12px 0;
    color: var(--dark-slate);
    letter-spacing: -1px;
}

.archive-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===========================================
   PARENT VIEW: CATEGORY GRID
   =========================================== */
.category-group-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 50px auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: var(--dark-slate);
    text-align: center;
    position: relative;
}

.category-group-title::after,
.category-group-title::before {
    content: "";
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, transparent 100%);
    border-radius: 10px;
    opacity: 0.5;
}

.category-group-title::before {
    background: linear-gradient(-90deg, var(--primary) 0%, transparent 100%);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.cat-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 24px;
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.2s ease;
    box-shadow: none;
}

.cat-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.cat-icon {
    width: 70px;
    height: 70px;
    background: rgba(37, 99, 235, 0.06);
    /* Brand tint */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 16px;
    transition: 0.2s;
    color: var(--primary);
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.cat-icon img {
    width: 65%;
    /* Larger image */
    height: 65%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.cat-card:hover .cat-icon {
    background: var(--primary);
    color: white;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.3);
    border-color: var(--primary);
}

.cat-card:hover .cat-icon img {
    transform: scale(1.1);
    filter: brightness(0) invert(1);
    /* Make icons white on hover if mostly mono, optional but nice */
}

.cat-card h2 {
    font-size: 1.45rem;
    margin: 0 0 12px 0;
    font-weight: 800;
    color: var(--dark-slate);
    letter-spacing: -0.02em;
}

.cat-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0 0 20px 0;
    line-height: 1.6;
    max-width: 90%;
    opacity: 0.8;
}

.tool-count {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    background: white;
    /* Clean look on card bg */
    padding: 6px 16px;
    border-radius: 50px;
    border: 1px solid rgba(37, 99, 235, 0.2);
    box-shadow: var(--shadow-sm);
}

.cat-card:hover .tool-count {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}



/* ===========================================
   RESPONSIVE DESIGN
   =========================================== */
@media (max-width: 1024px) {
    .related-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .ai-tools-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .tool-hero-card {
        flex-direction: column;
        text-align: center;
        padding: 28px 24px;
        gap: 20px;
    }

    .hero-icon {
        width: 72px;
        height: 72px;
        min-width: 72px;
    }

    /* Fixed selector bug: .hero-text -> .hero-info */
    .hero-info h1 {
        font-size: 1.7rem;
        line-height: 1.3;
    }

    .layout-grid {
        grid-template-columns: 1fr;
    }

    aside {
        position: static;
    }

    .pros-cons {
        grid-template-columns: 1fr;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .download-links {
        grid-template-columns: 1fr;
    }

    .social-share-buttons {
        grid-template-columns: repeat(2, 1fr);
    }

    .author-bio-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    /* Archive Page Responsive */
    .archive-title {
        font-size: 2rem;
    }

    .ai-tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .filter-categories {
        gap: 8px;
    }

    .category-filter {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {

    /* Container adjustments for tablets */
    .ai-tool-container {
        padding: 20px 16px 40px !important;
        width: 100% !important;
        left: auto !important;
        right: auto !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Override any fixed grid layouts with !important to ensure functionality */
    .ai-tool-container .main-grid,
    .main-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        display: flex !important;
        flex-direction: column;
    }

    /* Hero card mobile optimization */
    .hero-card {
        padding: 24px 20px;
        gap: 20px;
    }

    .tool-hero-card {
        padding: 24px 20px;
    }

    .hero-info h1 {
        font-size: 1.5rem;
    }

    /* Article card mobile */
    .article-card {
        padding: 28px 20px;
    }

    .article-card h2 {
        font-size: 1.15rem;
    }

    /* Sidebar mobile */
    .sidebar-sticky {
        position: static !important;
        width: 100% !important;
        margin-top: 0 !important;
    }

    .sidebar-box,
    .detail-card {
        padding: 24px;
        width: 100% !important;
    }

    /* Similar Tools - 2 columns on tablet and mobile */
    .similar-tools-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .similar-tool-card {
        padding: 16px 12px;
        min-height: auto;
    }

    .similar-tool-logo {
        width: 60px;
        height: 60px;
        min-height: 60px;
        margin-bottom: 10px;
    }

    /* Related grid - 2 columns */
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .related-tool {
        padding: 18px 14px;
    }

    /* Archive Page Tablet */
    .ai-tools-archive-container {
        padding: 30px 20px 60px;
    }

    .archive-title {
        font-size: 2rem;
    }

    .ai-tools-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px;
    }

    /* Category grid - 2 columns */
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 600px) {

    /* Container mobile */
    .ai-tool-container {
        padding: 16px 12px 32px !important;
        width: 100% !important;
        margin: 0 !important;
        left: auto !important;
        right: auto !important;
    }

    /* Force Vertical Stacking */
    .ai-tool-container .main-grid {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        margin-top: 10px;

    }

    .content-area {
        width: 100% !important;
        padding: 20px !important;
    }

    .hero-card {
        padding: 24px 20px;
        gap: 20px;
        text-align: center;
        text-align: center;
    }

    /* Target the logo specifically within hero card */
    .hero-card .tool-logo {
        width: 150px;
        height: 150px;
        font-size: 2rem;
        border-radius: 16px;
    }

    .tool-hero-card {
        padding: 20px 16px;
    }

    /* Fixed selector: .hero-info */
    .hero-info h1 {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }

    .hero-meta {
        justify-content: center;
        gap: 12px;
    }

    .meta-pill {
        font-size: 0.8rem;
    }

    .hero-icon {
        width: 64px;
        height: 64px;
        min-width: 64px;
    }

    /* Article card mobile */
    .article-card {
        padding: 20px 16px;
    }

    .article-card h2 {
        font-size: 1.1rem;
        padding-left: 10px;
        border-left-width: 3px;
    }

    /* Sidebar mobile */
    .sidebar-box,
    .detail-card {
        padding: 18px;
        width: 100% !important;
    }

    /* Similar Tools - 2 Columns mobile so they appear smaller/compact */
    .similar-tools-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .similar-tool-card {
        padding: 12px 8px;
    }

    .similar-tool-logo {
        width: 48px;
        height: 48px;
        min-height: 48px;
    }

    .similar-tool-title {
        font-size: 0.85rem;
        line-height: 1.3;
        margin-bottom: 6px;
    }

    .similar-tool-rating {
        font-size: 0.75rem;
    }

    /* Related grid - 1 column on small mobile */
    .related-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .related-tool {
        padding: 16px 12px;
    }

    /* Button full width */
    .btn-hero-main,
    .hero-card .btn-main {
        padding: 14px 20px;
        font-size: 14px;
        width: 100%;
        justify-content: center;
        margin-top: 5px;
    }

    /* Archive Page Mobile */
    .ai-tools-archive-container {
        padding: 20px 12px 50px;
    }

    .archive-title {
        font-size: 1.75rem;
    }

    .archive-description {
        font-size: 1rem;
    }

    /* Tools grid - 2 columns for better mobile density */
    .ai-tools-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }

    .ai-tool-card {
        padding: 16px;
        gap: 10px;
    }

    .tool-card {
        padding: 16px;
        gap: 10px;
    }

    .card-header {
        gap: 10px;
    }

    .tool-icon {
        width: 48px;
        height: 48px;
        min-width: 48px;
        border-radius: 10px;
    }

    .tool-meta h3 {
        font-size: 0.95rem;
        line-height: 1.3;
    }

    .tool-desc {
        font-size: 0.8rem;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        /* Allow one more line if space permits */
        height: auto;
        min-height: 2.4em;
    }

    /* Category grid - 2 columns */
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .cat-card {
        padding: 16px 12px;
        border-radius: 14px;
    }

    .cat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        margin-bottom: 12px;
    }

    .cat-card h2 {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .cat-card p {
        font-size: 0.8rem;
        line-height: 1.4;
        margin-bottom: 12px;
    }

    .tool-count {
        font-size: 0.7rem;
        padding: 4px 10px;
    }

    /* Filter categories mobile */
    .filter-categories {
        flex-direction: column;
        align-items: stretch;
    }

    .category-filter {
        justify-content: center;
        text-align: center;
    }

    /* Download links - 1 column */
    .download-links {
        grid-template-columns: 1fr;
    }

    /* Social share - 2 columns */
    .social-share-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .share-btn {
        padding: 10px 12px;
        font-size: 12px;
    }
}

/* Social Media Box */
.social-media-box {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.1);
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.social-media-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-hover) 50%, var(--primary) 100%);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.social-media-box h3 {
    margin-top: 0;
    margin-bottom: 24px;
    font-size: 1.3rem;
    text-align: center;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.social-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 1.4rem;
    color: white !important;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.social-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-icon:hover::after {
    opacity: 1;
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.social-icon.facebook {
    background: #1877F2;
}

.social-icon.twitter {
    background: #000000;
}

.social-icon.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

/* Solid Instagram brand color for better clarity */
.social-icon.linkedin {
    background: #0077b5;
}

.social-icon.youtube {
    background: #FF0000;
}

.social-icon.tiktok {
    background: #000000;
}

.social-icon.telegram {
    background: #26A5E4;
}

.social-icon.whatsapp {
    background: #25D366;
}

.social-icon.snapchat {
    background: #FFFC00;
    color: #000000 !important;
}

/* Black icon on yellow bg */
.social-icon.pinterest {
    background: #BD081C;
}

.social-icon.threads {
    background: #000000;
}

.social-icon.discord {
    background: #5865F2;
}

.social-icon.reddit {
    background: #FF4500;
}

/* ===========================================
   SIDEBAR MOST VISITED WIDGET
   =========================================== */
.most-visited-widget {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 30px;
}

.most-visited-widget .widget-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.most-visited-widget .widget-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-slate);
}

.most-visited-widget .widget-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.widget-item {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
    padding: 6px;
    border-radius: 12px;
}

.widget-item:hover {
    transform: translateX(4px);
    background: var(--soft-bg);
}

.widget-rank {
    width: 24px;
    height: 24px;
    background: var(--soft-bg);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.widget-item:nth-child(1) .widget-rank {
    background: #FEF3C7;
    color: #D97706;
    border-color: #FCD34D;
}

.widget-item:nth-child(2) .widget-rank {
    background: #F3F4F6;
    color: #4B5563;
    border-color: #E5E7EB;
}

.widget-item:nth-child(3) .widget-rank {
    background: #FFF7ED;
    color: #C2410C;
    border-color: #FED7AA;
}

.widget-item-image {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: white;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.widget-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.widget-icon-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: var(--primary);
    font-size: 1.2rem;
}

.widget-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.widget-item-info h5 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-slate);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.views-count {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.views-count i {
    font-size: 11px;
}

/* Mobile Adjustments for Sidebar Widget */
@media (max-width: 768px) {
    .sidebar-widget {
        width: 100%;
    }
}

/* ============================================
   USER SYSTEM STYLES
   ============================================ */

/* Hero Actions Container */
.hero-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

/* Favorite Button */
.btn-favorite {
    background: white;
    color: var(--text-dark);
    padding: 14px 24px;
    border-radius: 10px;
    border: 2px solid var(--border);
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-favorite i {
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-favorite:hover {
    border-color: var(--danger);
    color: var(--danger);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}

.btn-favorite.favorited {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border-color: var(--danger);
    color: var(--danger);
}

.btn-favorite.favorited i {
    color: var(--danger);
    animation: heartBeat 0.3s ease;
}

.btn-favorite.loading {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

@keyframes heartBeat {

    0%,
    100% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.3);
    }

    50% {
        transform: scale(1.1);
    }
}

/* Notification Toast */
.ai-tools-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 4px solid var(--primary);
}

.ai-tools-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.ai-tools-notification.success {
    border-left-color: var(--success);
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
}

.ai-tools-notification.error {
    border-left-color: var(--danger);
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
}

.ai-tools-notification::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 1.2rem;
}

.ai-tools-notification.success::before {
    content: '\f058';
    color: var(--success);
}

.ai-tools-notification.error::before {
    content: '\f06a';
    color: var(--danger);
}

/* Mobile Responsive for Hero Actions */
@media (max-width: 768px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn-main,
    .hero-actions .btn-favorite {
        width: 100%;
        justify-content: center;
    }

    .ai-tools-notification {
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: calc(100% - 20px);
    }
}

@media (max-width: 600px) {
    .btn-favorite .fav-text {
        display: none;
    }

    .btn-favorite {
        padding: 14px 20px;
    }

    .btn-favorite i {
        margin: 0;
    }
}

/* ============================================
   AUTHENTICATION PAGES STYLES
   ============================================ */

.ai-tools-auth-container {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

.ai-tools-auth-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveBackground 20s linear infinite;
}

@keyframes moveBackground {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

.auth-wrapper {
    position: relative;
    z-index: 1;
    max-width: 480px;
    width: 100%;
}

.auth-card {
    background: white;
    border-radius: 24px;
    padding: 48px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

/* Auth Header */
.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo {
    width: 90px;
    height: 90px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
}

.auth-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 20px;
    padding: 10px;
}

.auth-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 8px 0;
}

.auth-subtitle {
    font-size: 1rem;
    color: var(--text-light);
    margin: 0;
}

/* Auth Messages */
.auth-error,
.auth-success {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    font-weight: 500;
}

.auth-error {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    color: #991b1b;
    border: 1px solid #fecaca;
}

.auth-error i {
    font-size: 1.2rem;
}

.auth-success {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    color: #166534;
    border: 1px solid #bbf7d0;
}

.auth-success i {
    font-size: 1.2rem;
}

/* Auth Form */
.auth-form {
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-group label i {
    color: var(--primary);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.form-control::placeholder {
    color: #94a3b8;
}

.form-hint {
    display: block;
    margin-top: 6px;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Password Wrapper */
.password-wrapper {
    position: relative;
}

.password-wrapper .form-control {
    padding-right: 48px;
}

.toggle-password,
.toggle-password-confirm {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 8px;
    transition: color 0.3s ease;
}

.toggle-password:hover,
.toggle-password-confirm:hover {
    color: var(--primary);
}

/* Password Strength */
.password-strength {
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.password-strength.weak .strength-bar {
    background: #ef4444;
}

.password-strength.fair .strength-bar {
    background: #f59e0b;
}

.password-strength.good .strength-bar {
    background: #3b82f6;
}

.password-strength.strong .strength-bar {
    background: #10b981;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-dark);
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
}

.checkbox-label a {
    color: var(--primary);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.forgot-link {
    font-size: 0.9rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.forgot-link:hover {
    text-decoration: underline;
}

/* Auth Button */
.btn-auth {
    width: 100%;
    padding: 16px 24px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Auth Divider */
.auth-divider {
    position: relative;
    text-align: center;
    margin: 32px 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border);
}

.auth-divider span {
    position: relative;
    background: white;
    padding: 0 16px;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Auth Footer */
.auth-footer {
    text-align: center;
}

.auth-footer p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.95rem;
}

.auth-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-link:hover {
    text-decoration: underline;
}

/* Decoration Circles */
.auth-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    right: -150px;
    animation: float 6s ease-in-out infinite;
}

.circle-2 {
    width: 200px;
    height: 200px;
    bottom: -100px;
    left: -100px;
    animation: float 8s ease-in-out infinite reverse;
}

.circle-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    left: -75px;
    animation: float 7s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .ai-tools-auth-container {
        padding: 20px 16px;
    }

    .auth-card {
        padding: 32px 24px;
        border-radius: 20px;
    }

    .auth-title {
        font-size: 1.75rem;
    }

    .auth-logo {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-auth {
        padding: 14px 20px;
    }
}

/* ============================================
   DASHBOARD & FAVORITES PAGES STYLES
   ============================================ */

/* Dashboard Container */
.ai-tools-dashboard-container,
.ai-tools-favorites-container {
    min-height: 100vh;
    background: var(--bg-body);
    padding: 40px 20px;
}

.dashboard-wrapper,
.favorites-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

/* Dashboard Header */
.dashboard-header {
    background: white;
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.user-welcome {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-info h1 {
    font-size: 1.75rem;
    margin: 0 0 4px 0;
    color: var(--text-dark);
}

.user-email {
    color: var(--text-light);
    margin: 0;
    font-size: 0.95rem;
}

.btn-logout {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: white;
    border: 2px solid var(--border);
    border-radius: 10px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    border-color: var(--danger);
    color: var(--danger);
    transform: translateY(-2px);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stat-icon.favorites {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.stat-icon.ratings {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.stat-icon.comments {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.stat-icon.member {
    background: linear-gradient(135deg, #10b981, #059669);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 4px;
}

/* Section Title */
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 24px 0;
}

.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.view-all-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.3s ease;
}

.view-all-link:hover {
    gap: 10px;
}

/* Quick Actions */
.quick-actions {
    margin-bottom: 40px;
}

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

.action-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.action-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
}

.action-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    flex-shrink: 0;
}

.action-content h3 {
    font-size: 1.1rem;
    margin: 0 0 4px 0;
    color: var(--text-dark);
}

.action-content p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

.action-card>i {
    margin-left: auto;
    color: var(--text-light);
    transition: transform 0.3s ease;
}

.action-card:hover>i {
    transform: translateX(4px);
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.tool-card-mini {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.tool-card-mini:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
}

.tool-logo-mini {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-body);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-logo-mini img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tool-logo-mini.placeholder {
    font-size: 1.5rem;
    color: var(--text-light);
}

.tool-info-mini h3 {
    font-size: 1rem;
    margin: 0 0 6px 0;
    color: var(--text-dark);
}

.tool-meta-mini {
    display: flex;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.rating-mini {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #f59e0b;
}

/* Page Header (Favorites) */
.page-header {
    background: white;
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: var(--shadow);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 16px;
    transition: gap 0.3s ease;
}

.back-link:hover {
    gap: 12px;
}

.page-title {
    font-size: 2rem;
    margin: 0 0 8px 0;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-subtitle {
    color: var(--text-light);
    margin: 0;
    font-size: 1rem;
}

/* Empty State */
.empty-state {
    background: white;
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: var(--shadow);
}

.empty-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--danger);
}

.empty-state h2 {
    font-size: 1.75rem;
    margin: 0 0 12px 0;
    color: var(--text-dark);
}

.empty-state p {
    color: var(--text-light);
    margin: 0 0 24px 0;
    font-size: 1.1rem;
}

/* Favorites Grid */
.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.favorite-card {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.favorite-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
}

.card-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.favorite-card .tool-logo {
    width: 200px;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-body);
    display: flex;
    align-items: center;
    justify-content: center;
}

.favorite-card .tool-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tool-logo.placeholder {
    font-size: 2rem;
    color: var(--text-light);
}

.btn-remove-favorite {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 2px solid var(--border);
    background: white;
    color: var(--danger);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.btn-remove-favorite:hover {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
    transform: scale(1.1);
}

.card-body {
    padding: 20px;
}

.tool-title {
    font-size: 1.25rem;
    margin: 0 0 12px 0;
}

.tool-title a {
    color: var(--text-dark);
    text-decoration: none;
}

.tool-title a:hover {
    color: var(--primary);
}

.tool-excerpt {
    color: var(--text-light);
    margin: 0 0 16px 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.tool-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.meta-item i {
    color: var(--primary);
}

.meta-item.rating {
    color: #f59e0b;
}

.meta-item.rating i {
    color: #f59e0b;
}

.card-footer {
    padding: 16px 20px;
    background: var(--bg-body);
    display: flex;
    gap: 12px;
}

.btn-view,
.btn-visit {
    flex: 1;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-view {
    background: var(--primary);
    color: white;
}

.btn-view:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-visit {
    background: white;
    color: var(--text-dark);
    border: 2px solid var(--border);
}

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

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

    .ai-tools-dashboard-container,
    .ai-tools-favorites-container {
        padding: 20px 16px;
    }

    .dashboard-header {
        padding: 24px;
    }

    .user-welcome {
        flex-direction: column;
        text-align: center;
    }

    .user-info h1 {
        font-size: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .actions-grid {
        grid-template-columns: 1fr;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    .favorites-grid {
        grid-template-columns: 1fr;
    }

    .page-header {
        padding: 24px;
    }

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

    .empty-state {
        padding: 40px 24px;
    }
}

/* -------------------------------------------------------------------------
   REVIEWS & RATINGS SYSTEM (2026 UPDATE - Premium Refinement)
   ------------------------------------------------------------------------- */
.ai-tool-rating-section {
    margin-top: 50px;
    background: #ffffff;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.05);
    /* Softer, deeper shadow */
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.rating-overview-container {
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border);
}

.rating-overview {
    display: flex;
    align-items: center;
    gap: 24px;
}

.rating-score-large {
    font-size: 4.5rem;
    /* Larger, bolder score */
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1;
    letter-spacing: -2px;
}

.rating-meta-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stars-display-static {
    font-size: 1.5rem;
    /* Larger stars */
    color: #fbbf24;
    display: flex;
    gap: 4px;
}

.rating-count-label {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Review Form Style - Cleaner & Integrated */
.review-form-container {
    background: transparent;
    padding: 0;
    border: none;
    margin-bottom: 40px;
}

.review-form-container h4 {
    margin-top: 0;
    margin-bottom: 24px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.review-form-container textarea {
    width: 100%;
    border: 2px solid #f1f5f9;
    background: #f8fafc;
    border-radius: 16px;
    padding: 18px;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    transition: all 0.2s ease;
    min-height: 140px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.review-form-container textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
    /* Glow effect */
}

.review-form-container textarea::placeholder {
    color: #94a3b8;
}

/* Interactive Stars - More Engaging */
.stars-input-interactive {
    display: inline-flex;
    flex-direction: row;
    gap: 12px;
    /* Spaced out stars */
    background: #f8fafc;
    padding: 12px 20px;
    border-radius: 50px;
    border: 1px solid #f1f5f9;
}

.stars-input-interactive i {
    font-size: 1.8rem;
    color: #cbd5e1;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.2s;
}

.stars-input-interactive i:hover {
    transform: scale(1.25);
}

.stars-input-interactive i.active {
    color: #fbbf24;
    filter: drop-shadow(0 2px 4px rgba(251, 191, 36, 0.3));
    /* Glow for active stars */
}

/* Custom File Input Styling */
input[type="file"] {
    font-size: 0.95rem;
    color: var(--text-light);
    background: #f8fafc;
    padding: 12px;
    border-radius: 12px;
    border: 2px dashed #e2e8f0;
    width: 100%;
    cursor: pointer;
    transition: all 0.2s;
    height: auto;
}

input[type="file"]:hover {
    border-color: var(--primary);
    background: #eff6ff;
}

input[type="file"]::file-selector-button {
    margin-right: 15px;
    border: none;
    background: var(--primary);
    padding: 10px 20px;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    transition: background .2s ease-in-out, transform 0.2s;
    font-weight: 600;
    font-size: 0.9rem;
}

input[type="file"]::file-selector-button:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

/* Submit Button Refinement */
.review-form-container button[type="submit"] {
    width: auto;
    min-width: 220px;
    padding: 14px 32px;
    font-size: 1.05rem;
    border-radius: 50px;
    /* Pill shape */
    background: linear-gradient(135deg, var(--primary), #4f46e5);
    /* Gradient */
    box-shadow: 0 8px 20px -4px rgba(37, 99, 235, 0.4);
    margin-top: 15px;
    border: none;
    color: white;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.25s ease;
}

.review-form-container button[type="submit"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px -4px rgba(37, 99, 235, 0.5);
    background: linear-gradient(135deg, #3b82f6, #6366f1);
}

/* Status Messages */
.rating-message {
    padding: 15px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    display: none;
    margin-top: 15px;
}

.rating-message.success {
    background-color: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.rating-message.error {
    background-color: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.rating-status-badge {
    background-color: #f0fdf4;
    color: #15803d;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #bbf7d0;
}

/* Reviews List Refinement */
.reviews-list {
    margin-top: 50px;
}

.review-item {
    padding: 30px 0;
    border-bottom: 1px solid #f1f5f9;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    gap: 16px;
}

.review-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.review-author {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-dark);
}

.review-stars {
    font-size: 0.9rem;
    color: #fbbf24;
    margin-top: 2px;
}

.review-date {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-left: auto;
    /* Push date to right */
}

.review-content {
    color: #4b5563;
    line-height: 1.7;
    font-size: 1.05rem;
    margin-left: 72px;
    /* Align with text start */
    background: #f9fafb;
    padding: 20px;
    border-radius: 0 20px 20px 20px;
    /* Chat bubble style */
}

.review-image {
    margin-left: 72px;
    margin-top: 20px;
}

.review-image img {
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    max-height: 220px;
    width: auto;
    cursor: zoom-in;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.review-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .rating-overview-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .rating-score-large {
        font-size: 3.5rem;
    }

    .review-header {
        align-items: flex-start;
    }

    .review-date {
        position: relative;
        margin-left: 0;
        display: block;
        margin-top: 5px;
    }

    .review-content,
    .review-image {
        margin-left: 0;
        border-radius: 16px;
    }
}

/* Header User Button */
.ai-tools-header-account {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.guest-actions {
    display: flex;
    gap: 10px;
}

.ai-tools-header-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

/* Login Button - Outline */
.ai-tools-header-btn.login-btn {
    background: transparent;
    color: var(--text-dark);
    border: 1px solid var(--border);
}

.ai-tools-header-btn.login-btn:hover {
    background: #f8fafc;
    border-color: var(--primary);
    color: var(--primary);
}

/* Register Button - Primary */
.ai-tools-header-btn.register-btn {
    background: var(--primary);
    color: white;
    border: 1px solid var(--primary);
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.ai-tools-header-btn.register-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.3);
}

/* Dashboard Button */
.ai-tools-header-btn.dashboard-btn {
    background: #eff6ff;
    color: var(--primary);
    border: 1px solid rgba(37, 99, 235, 0.1);
    padding: 6px 16px 6px 10px;
    /* Adjust for avatar */
}

.ai-tools-header-btn.dashboard-btn:hover {
    background: #dbeafe;
    border-color: rgba(37, 99, 235, 0.2);
}

.user-avatar-small img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    vertical-align: middle;
}

@media (max-width: 600px) {
    .ai-tools-header-account {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }

    .guest-actions {
        width: 100%;
    }

    .ai-tools-header-btn {
        flex: 1;
        justify-content: center;
    }
}

.logged-in-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.ai-tools-header-btn.logout-btn {
    background: transparent;
    color: var(--secondary);
    border: 1px solid var(--border);
    padding: 8px 12px;
}

.ai-tools-header-btn.logout-btn:hover {
    background: #fef2f2;
    border-color: var(--danger);
    color: var(--danger);
}

/* ==========================================================================
   My Toolkit Styles
   ========================================================================== */

/* Page Header & Actions */
.toolkit-page .title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.toolkit-page #btn-create-category {
    padding: 10px 20px;
    font-size: 0.95rem;
}

/* Toolkit Categories List */
.toolkit-categories-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.toolkit-category {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

/* Category Header */
.category-header {
    padding: 20px 25px;
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
    border-left: 6px solid transparent;
    /* Colored border via inline style */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.category-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.category-name {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
}

.tool-count {
    font-size: 0.85rem;
    color: var(--text-light);
    background: white;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid var(--border);
    margin-left: 10px;
}

.category-actions {
    display: flex;
    gap: 10px;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.toolkit-category:hover .category-actions {
    opacity: 1;
}

.btn-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    background: white;
    border-radius: 8px;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-icon:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-delete-category:hover {
    background: var(--danger);
    border-color: var(--danger);
}

/* Category Body & Grid */
.category-body {
    padding: 25px;
}

.category-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

/* Toolkit Item */
.toolkit-item {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 15px;
    position: relative;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.toolkit-item:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.item-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    width: 100%;
}

.item-logo {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 10px;
    background: #f1f5f9;
}

.item-logo.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    font-size: 1.5rem;
}

.item-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-remove-item {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    border: 1px solid var(--border);
    color: var(--danger);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toolkit-item:hover .btn-remove-item {
    opacity: 1;
    transform: scale(1);
}

.btn-remove-item:hover {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
}

/* Add Tool Button */
.btn-add-tool {
    background: #f8fafc;
    border: 2px dashed var(--border);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 130px;
    cursor: pointer;
    color: var(--secondary);
    transition: all 0.2s;
}

.btn-add-tool:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #eff6ff;
}

.add-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 16px;
    border: 1px solid var(--border);
    margin-top: 20px;
}

.empty-icon {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 20px;
}

.empty-state h2 {
    color: var(--text-dark);
    margin-bottom: 10px;
}

.empty-state p {
    color: var(--secondary);
    margin-bottom: 25px;
}

/* MODALS */
.ai-tools-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    backdrop-filter: blur(4px);
}

.ai-tools-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 500px;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(20px);
    transition: transform 0.3s;
    max-height: 90vh;
    overflow-y: auto;
}

.ai-tools-modal.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text-dark);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--secondary);
    cursor: pointer;
    transition: color 0.2s;
    padding: 0;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-dark);
}

.modal-body {
    padding: 25px;
}

/* Form Styles inside Modal */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Color Options */
.color-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.color-option {
    cursor: pointer;
}

.color-option input {
    display: none;
}

.color-swatch {
    display: block;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.2s;
}

.color-option input:checked+.color-swatch {
    transform: scale(1.1);
    border-color: white;
    box-shadow: 0 0 0 2px var(--text-dark);
}

/* Icon Options */
.icon-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    background: #f8fafc;
    padding: 10px;
    border-radius: 8px;
}

.icon-option {
    cursor: pointer;
}

.icon-option input {
    display: none;
}

.icon-preview {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--secondary);
    transition: all 0.2s;
    background: white;
    border: 1px solid var(--border);
}

.icon-option input:checked+.icon-preview {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Modal Search */
.search-box {
    position: relative;
    margin-bottom: 20px;
}

.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary);
    pointer-events: none;
}

.search-box input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
}

.tool-search-results {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px;
    background: #f8fafc;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 8px;
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.search-result-item:hover {
    border-color: var(--primary);
}

.result-icon img,
.result-icon i {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: var(--secondary);
    font-size: 1.2rem;
}

.result-info {
    flex-grow: 1;
}

.result-info h4 {
    margin: 0 0 4px 0;
    font-size: 0.95rem;
}

.result-meta span {
    font-size: 0.8rem;
    color: var(--text-light);
}

.btn-select-tool {
    padding: 6px 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.2s;
}

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

.btn-select-tool:disabled {
    opacity: 0.7;
    cursor: wait;
}

.loading,
.search-placeholder {
    padding: 20px;
    text-align: center;
    color: var(--secondary);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 25px;
}

.btn-secondary {
    background: white;
    border: 1px solid var(--border);
    color: var(--text-dark);
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
}

.btn-secondary:hover {
    background: #f8fafc;
}

/* Responsive */
@media (max-width: 640px) {
    .category-tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .category-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* =========================================
   SUBSCRIPTION SECTION (Moved from Homepage)
   ========================================= */
.ai-tools-subscription-section {
    padding: 0 0 40px;
    margin-top: 0;
    margin-bottom: 30px;
    position: relative;
    z-index: 20;
    max-width: 100%;
}

.subscription-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.sub-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 28px;
    border-radius: 100px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.1) !important;
    color: white !important;
    min-width: 180px;
    justify-content: center;
    border-bottom: none !important;
    background-color: #333;
    /* Fallback */
}

.sub-btn i {
    font-size: 1.4rem;
    color: white !important;
}

.sub-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.2) !important;
    filter: brightness(1.05);
}

.sub-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%) !important;
}

.sub-telegram {
    background: linear-gradient(135deg, #26A5E4 0%, #0088cc 100%) !important;
}

.sub-youtube {
    background: linear-gradient(135deg, #FF0000 0%, #cc0000 100%) !important;
}

@media (max-width: 768px) {
    .ai-tools-subscription-section {
        margin-top: 0;
        padding-bottom: 30px;
    }

    .subscription-container {
        gap: 10px;
    }

    .sub-btn {
        width: auto;
        min-width: 120px;
        flex: 1 1 auto;
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}

/* SOCIAL SHARE BUTTONS - Premium 2026 */
.share-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    /* Slightly rounded square for modern look */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white !important;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    /* Soft shadow */
    text-decoration: none !important;
}

.share-btn i {
    color: white !important;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.share-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.share-btn:hover::before {
    opacity: 1;
}

.share-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    /* Elevated shadow */
    color: white !important;
}

.share-btn:hover i {
    transform: scale(1.1);
}

.share-btn.facebook {
    background: #1877F2;
}

.share-btn.twitter {
    background: #000000;
}

.share-btn.linkedin {
    background: #0A66C2;
}

.share-buttons .share-btn.whatsapp {
    background-color: #25D366 !important;
    background-image: linear-gradient(135deg, #25D366 0%, #128C7E 100%) !important;
}

.share-buttons .share-btn.telegram {
    background-color: #26A5E4 !important;
    background-image: linear-gradient(135deg, #26A5E4 0%, #0088cc 100%) !important;
}

.share-btn.copy-link {
    background: #64748b;
    border: none;
    cursor: pointer;
}

.share-btn.copy-link:hover {
    background: #475569;
}

/* =========================================
   REDIRECT TIMER MODAL - PREMIUM 2026 DESIGN
   ========================================= */

.redirect-timer-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Redirect Timer Modal V6 - Professional Card */
.redirect-timer-modal-v6 {
    background: #ffffff;
    border-radius: 20px;
    padding: 28px 28px 0;
    max-width: 460px;
    width: 94%;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.05);
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
    overflow: hidden;
    animation: v6Slide 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes v6Slide {
    from {
        opacity: 0;
        transform: translateY(-16px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Left Column — Ring Timer */
.v6-left {
    flex-shrink: 0;
    padding-bottom: 28px;
}

.v6-ring {
    position: relative;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.v6-ring svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.v6-ring .bg {
    fill: none;
    stroke: #f1f5f9;
    stroke-width: 4;
}

.v6-ring .fg {
    fill: none;
    stroke: #2563eb;
    stroke-width: 4;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s linear;
}

.v6-count {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
}

/* Right Column — Content */
.v6-right {
    flex: 1;
    min-width: 0;
    padding-top: 4px;
    padding-bottom: 28px;
}

.v6-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0 0 4px;
}

.v6-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 16px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.v6-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

.v6-btn {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    opacity: 0;
    transform: translateY(6px);
}

.v6-btn.active {
    opacity: 1;
    transform: translateY(0);
}

.v6-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.v6-fallback-link {
    font-size: 0.78rem;
    color: #64748b;
    text-decoration: none;
    border-bottom: 1px dashed #cbd5e1;
    transition: color 0.2s;
    white-space: nowrap;
}

.v6-fallback-link:hover {
    color: #2563eb;
}

/* Close Button */
.v6-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: none;
    border: none;
    color: #cbd5e1;
    font-size: 1rem;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.v6-close:hover {
    color: #ef4444;
}

/* Progress Bar — bottom accent line */
.v6-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #f1f5f9;
}

.v6-progress-fill {
    height: 100%;
    width: 0;
    background: #2563eb;
    border-radius: 0 2px 2px 0;
    transition: width 1s linear;
}

/* Mobile */
@media (max-width: 480px) {
    .redirect-timer-modal-v6 {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 24px 24px 0;
        gap: 12px;
    }

    .v6-title {
        white-space: normal;
    }

    .v6-actions {
        align-items: center;
        width: 100%;
    }

    .v6-btn {
        width: 100%;
        justify-content: center;
    }
}




/* Social Icons Styling */
.social-widget-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: var(--dark-slate);
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.social-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: var(--text-secondary);
    border-radius: 50%;
    font-size: 16px;
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.social-icon:hover {
    transform: translateY(-2px);
    color: white !important;
}

/* Social Brands Colors */
.social-icon.facebook:hover {
    background: #1877f2;
}

.social-icon.twitter:hover {
    background: #1da1f2;
}

.social-icon.instagram:hover {
    background: #e1306c;
}

.social-icon.linkedin:hover {
    background: #0a66c2;
}

.social-icon.youtube:hover {
    background: #ff0000;
}

.social-icon.tiktok:hover {
    background: #000000;
}

.social-icon.telegram:hover {
    background: #0088cc;
}

.social-icon.whatsapp:hover {
    background: #25d366;
}

.social-icon.snapchat:hover {
    background: #fffc00;
    color: #000 !important;
}

.social-icon.pinterest:hover {
    background: #bd081c;
}

.social-icon.threads:hover {
    background: #000000;
}

.social-icon.discord:hover {
    background: #5865f2;
}

.social-icon.reddit:hover {
    background: #ff4500;
}

/* Sidebar widget item title (replaces h5 for heading-order accessibility) */
.widget-item-title {
    margin: 0 0 2px 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
}

/* =========================================
   REVIEWS & RATINGS SECTION - ENHANCED 2026 UX
   ========================================= */

.ai-tool-rating-section {
    margin-top: 40px;
    font-family: inherit;
}

.ai-tool-rating-section .section-h {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ai-tool-rating-section .section-h::before {
    content: '\f005';
    /* FontAwesome Star */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 1.1rem;
    color: #f59e0b;
}

/* Main card wrapping everything */
.rating-card-premium {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

/* ---- Overview row ---- */
.rating-overview-container {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 24px;
    background: #f8fafc;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #f1f5f9;
}

.rating-overview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 0 0 160px;
    border-right: 1px solid #e2e8f0;
    padding-right: 24px;
}

.rating-score-large {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1;
    letter-spacing: -1px;
}

.rating-meta-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.stars-display-static {
    display: flex;
    gap: 4px;
    background: #fff;
    padding: 6px 10px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.stars-display-static i {
    font-size: 1rem;
    color: #e2e8f0;
}

.stars-display-static i.filled {
    color: #f59e0b;
}

.rating-count-label {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

.rating-status-badge {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.1);
}

/* ---- Divider ---- */
.rating-divider {
    border: none;
    border-top: 1px dashed #e2e8f0;
    margin: 32px 0;
}

/* ---- Review Form ---- */
.review-form-container {
    background: #ffffff;
    border-radius: 16px;
    padding: 0;
}

.review-form-container h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.review-form-container h4::before {
    content: '\f304';
    /* Pen icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary);
    font-size: 1rem;
    background: #eff6ff;
    padding: 8px;
    border-radius: 10px;
}

.review-form-container .form-group {
    margin-bottom: 20px;
}

.review-form-container label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
}

.review-form-container input[type="text"],
.review-form-container input[type="email"],
.review-form-container textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 0.95rem;
    font-family: inherit;
    color: #1e293b;
    background: #f8fafc;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.review-form-container input[type="text"]:focus,
.review-form-container input[type="email"]:focus,
.review-form-container textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.review-form-container textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.review-form-container .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.review-form-container small {
    display: block;
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 6px;
}

.review-form-container input[type="file"] {
    display: block;
    margin-top: 8px;
    font-size: 0.9rem;
    color: #475569;
    background: #f8fafc;
    padding: 10px;
    border-radius: 8px;
    border: 1px dashed #cbd5e1;
    width: 100%;
    cursor: pointer;
}

/* Submit button */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    font-family: inherit;
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.rating-message {
    margin-top: 14px;
    font-size: 0.95rem;
    font-weight: 500;
}

/* ---- Interactive Star Picker ---- */
.stars-input-interactive {
    display: inline-flex;
    gap: 8px;
    background: #f8fafc;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.stars-input-interactive i {
    font-size: 1.8rem;
    color: #cbd5e1;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.stars-input-interactive i:hover,
.stars-input-interactive i.active {
    color: #f59e0b;
    transform: scale(1.2) rotate(5deg);
}

/* ---- Reviews List ---- */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.review-item:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transform: translateY(-2px);
    border-color: #cbd5e1;
}

.review-item--pending {
    background: #fafaf9;
    border-style: dashed;
    opacity: 0.8;
}

.review-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.review-avatar {
    width: 48px !important;
    height: 48px !important;
    border-radius: 12px !important;
    flex-shrink: 0;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.review-author-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.review-author {
    font-weight: 700;
    font-size: 1.05rem;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.review-pending-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.review-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-stars {
    display: inline-flex;
    gap: 2px;
    background: #fff;
    padding: 4px 8px;
    border-radius: 8px;
    border: 1px solid #f1f5f9;
}

.review-stars i {
    font-size: 0.8rem;
    color: #e2e8f0;
}

.review-stars i.fa-solid {
    color: #f59e0b;
}

.review-date {
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 500;
}

.review-content {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.7;
    background: #f8fafc;
    padding: 16px 20px;
    border-radius: 12px;
    border-left: 4px solid #e2e8f0;
}

.review-content p:last-child {
    margin-bottom: 0;
}

.review-image {
    margin-top: 16px;
}

.review-image img {
    max-height: 200px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

.review-image img:hover {
    transform: scale(1.02);
}

.no-reviews {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
    font-size: 1rem;
    background: #f8fafc;
    border-radius: 16px;
    border: 1px dashed #cbd5e1;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .rating-card-premium {
        padding: 24px 20px;
    }

    .rating-overview-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }

    .rating-overview {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        padding-right: 0;
        padding-bottom: 20px;
        flex: auto;
        width: 100%;
    }

    .rating-status-badge {
        align-self: center;
    }

    .review-form-container .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 480px) {
    .rating-card-premium {
        padding: 20px 16px;
        border-radius: 16px;
    }

    .rating-score-large {
        font-size: 3rem;
    }

    .review-item {
        padding: 20px 16px;
    }
}


/* Inline Download Timer */
.dl-button.is-timer-active {
    pointer-events: none;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
    padding: 8px 12px !important;
    min-height: 54px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02) !important;
}

.inline-timer-container {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.inline-timer-visual {
    position: relative;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.inline-timer-visual svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.inline-timer-visual .bg {
    fill: none;
    stroke: #f1f5f9;
    stroke-width: 3;
}

.inline-timer-visual .fg {
    fill: none;
    stroke: #2563eb;
    stroke-width: 3;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s linear;
}

.inline-count {
    font-size: 0.85rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.inline-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    flex-grow: 1;
    text-align: left;
}

.inline-back-btn {
    background: #f1f5f9;
    border: none;
    color: #64748b;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    padding: 0;
    line-height: 1;
}

.inline-back-btn:hover {
    background: #fee2e2;
    color: #ef4444;
}

/* Complete State */
.dl-button.is-timer-complete {
    background: #10b981 !important;
    color: white !important;
    border-color: #059669 !important;
}