* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #ffffff;
    background-image: radial-gradient(ellipse at top center, rgba(255, 0, 0, 0.045), transparent 65%);
    
    color: #111111;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: #ffffff;
    border-bottom: 1px solid #eeeeee;
}
.navbar img {
    height: 30px;
    width: auto;
}

.container {
    max-width: 820px;
    margin: 0 auto;
    padding: 25px 16px;
    width: 100%;
    flex: 1 0 auto;
}

.hero {
    text-align: center;
    margin-bottom: 25px;
}

/* 🎯 DESKTOP / TABLET MENU */
.hero-nav {
    display: inline-flex;
    background: #f1f3f4;
    padding: 4px;
    border-radius: 30px;
    margin-bottom: 20px;
    gap: 3px;
    max-width: 100%;
}
.hero-nav a {
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #5f6368;
    white-space: nowrap;
    transition: all 0.2s ease;
}
.hero-nav a.active {
    background: #ffffff;
    color: #FF0000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.hero h1 {
    font-size: 28px;
    font-weight: 800;
    color: #111111;
    margin: 0 0 8px 0;
    line-height: 1.25;
}
.hero .subtitle {
    font-size: 14px;
    color: #666666;
    margin: 0 0 20px 0;
    line-height: 1.4;
}

/* 🔍 SEARCH BOX */
.search-box {
    background: #ffffff;
    padding: 5px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    border: 1px solid #eaeaea;
    display: flex;
    max-width: 600px;
    margin: 0 auto 15px auto;
}
.search-box input {
    flex: 1;
    border: none;
    padding: 13px 16px;
    font-size: 16px;
    outline: none;
    border-radius: 8px;
    background: transparent;
    min-width: 0;
}
.search-box button {
    background: #FF0000;
    color: #ffffff;
    border: none;
    min-width: 135px;
    height: 46px;
    padding: 0 20px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
}
.search-box button:hover {
    background: #e60000;
}

/* ✨ DESKTOP FEATURES */
.hero-features {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 15px;
}
.feature-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #555555;
    white-space: nowrap;
}
.feature-item svg {
    color: #FF0000;
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

/* 📊 RESULT SECTION */
.result-section {
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 16px;
    padding: 22px;
    margin: 25px 0;
    box-shadow: 0 8px 25px rgba(0,0,0,0.04);
    text-align: left;
}

.channel-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 18px;
}
.channel-header img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid #eaeaea;
    object-fit: cover;
    flex-shrink: 0;
}
.channel-titles h2 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 800;
    color: #111111;
}
.channel-titles p {
    margin: 0;
    font-size: 11px;
    font-weight: 600;
    color: #666666;
    background: #f5f5f5;
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-block;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 18px;
}
.stat-item {
    background: #fafafa;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #eaeaea;
}
.stat-label {
    display: block;
    font-size: 10px;
    color: #777777;
    margin-bottom: 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.stat-value {
    display: block;
    font-size: 16px;
    font-weight: 800;
    color: #111111;
}

.revenue-box {
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 18px;
}
.revenue-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.revenue-label {
    font-size: 14px;
    font-weight: 700;
    color: #111111;
}
.toggle-group {
    background: #f1f3f4;
    padding: 2px;
    border-radius: 8px;
    display: flex;
    gap: 2px;
}
.toggle-btn {
    border: none;
    background: transparent;
    padding: 5px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    color: #666666;
}
.toggle-btn.active {
    background: #ffffff;
    color: #FF0000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}
.earning-amount {
    font-size: 32px;
    color: #FF0000;
    margin: 6px 0 2px 0;
    font-weight: 900;
}
.earning-sub {
    color: #777777;
    font-size: 12px;
    margin: 0 0 15px 0;
}
.revenue-box hr {
    border: 0;
    border-top: 1px dashed #e0e0e0;
    margin: 15px 0;
}
.revenue-breakdown-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 14px;
    text-align: center;
}
.stat-box {
    background: #fafafa;
    padding: 10px 6px;
    border-radius: 8px;
    border: 1px solid #eaeaea;
    display: flex;
    flex-direction: column;
    font-size: 11px;
    font-weight: 600;
    color: #777777;
}
.stat-box span:last-child {
    font-size: 14px;
    font-weight: 800;
    color: #111111;
    margin-top: 3px;
}

/* 🎯 AFFILIATE SECTION */
.affiliate-section {
    margin-top: 40px;
    text-align: center;
}
.affiliate-section h3 {
    margin-bottom: 20px;
    font-size: 17px;
    font-weight: 800;
    color: #111111;
}
.cards-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
}
.affiliate-card {
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 20px 14px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
.affiliate-card img {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    margin-bottom: 10px;
}
.affiliate-card h4 {
    margin: 0 0 6px 0;
    font-size: 15px;
    font-weight: 800;
    color: #111111;
}
.affiliate-card p {
    font-size: 12px;
    color: #666666;
    margin: 0 0 16px 0;
    line-height: 1.45;
}
.affiliate-card a {
    display: block;
    width: 100%;
    background: #111111;
    color: #ffffff;
    text-decoration: none;
    padding: 10px 0;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

/* 🎨 HOW TO USE (4:4 SQUARE ILLUSTRATIONS) */
.how-to-section {
    margin: 45px 0 25px 0;
    padding-top: 35px;
    border-top: 1px dashed #e2e8f0;
    text-align: center;
}
.how-to-section h3 {
    font-size: 18px;
    font-weight: 800;
    color: #111111;
    margin: 0 0 6px 0;
}
.how-to-section p.sub {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 24px 0;
}
.how-to-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
}
.how-to-card {
    background: #ffffff;
    border: 1px solid #eef0f3;
    border-radius: 16px;
    padding: 20px 16px;
    text-align: center;
    box-shadow: 0 4px 15px -2px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.how-to-card svg {
    aspect-ratio: 1 / 1;
    width: 100%;
    max-width: 140px;
    height: auto;
    margin-bottom: 14px;
    display: block;
}
.how-to-card h4 {
    margin: 0 0 6px 0;
    font-size: 15px;
    font-weight: 800;
    color: #111111;
}
.how-to-card p {
    margin: 0;
    font-size: 12px;
    color: #64748b;
    line-height: 1.45;
}

/* 🎯🎯🎯 ULTRA MOBILE & CHROME RESPONSIVE (1 LINE MENU & 1 LINE FEATURES) 🎯🎯🎯 */
@media (max-width: 768px) {
    .container { padding: 16px 12px !important; }
    .navbar { padding: 10px 14px !important; }
    .navbar img { height: 26px !important; }

    /* 🚀 1. BALANCED 1-LINE MENU (NO UGLY GAPS, NO SCROLL) */
    .hero-nav {
        display: inline-flex !important;
        width: auto !important;
        max-width: 100% !important;
        justify-content: center !important;
        align-items: center !important;
        background: #f1f3f4 !important;
        padding: 3px 5px !important;
        border-radius: 30px !important;
        margin: 0 auto 16px auto !important;
        gap: 3px !important;
        overflow: hidden !important;
    }
    .hero-nav a {
        flex: 0 0 auto !important; /* Natural width - No ugly stretched space! */
        padding: 5px 8px !important; /* Equal breathing room for all */
        font-size: 11px !important;
        font-weight: 600 !important;
        text-align: center !important;
        white-space: nowrap !important;
        border-radius: 20px !important;
        letter-spacing: -0.2px !important;
    }
    .hero-nav a.active {
        background: #ffffff !important;
        color: #FF0000 !important;
        box-shadow: 0 2px 4px rgba(0,0,0,0.08) !important;
    }

    .hero h1 { font-size: 20px !important; margin-bottom: 6px !important; }
    .hero .subtitle { font-size: 12px !important; margin-bottom: 16px !important; }

    /* Search Box Stacked */
    .search-box {
        flex-direction: column !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        gap: 8px !important;
    }
    .search-box input {
        background: #ffffff !important;
        border: 1px solid #ddd !important;
        border-radius: 10px !important;
        padding: 13px !important;
        font-size: 16px !important;
        width: 100% !important;
    }
    .search-box button {
        width: 100% !important;
        min-width: 0 !important;
        padding: 13px !important;
        font-size: 15px !important;
        border-radius: 10px !important;
    }

    /* 🚀 2. FEATURES: EXACT 1 LINE - NO WRAPPING */
    .hero-features {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important; /* FORCES 1 SINGLE ROW */
        justify-content: center !important;
        align-items: center !important;
        gap: 6px !important;
        width: 100% !important;
        margin-top: 12px !important;
        overflow: hidden !important;
    }
    .feature-item {
        font-size: 9.5px !important; /* Fits all 3 in 1 line cleanly */
        gap: 3px !important;
        white-space: nowrap !important;
        display: inline-flex !important;
        align-items: center !important;
    }
    .feature-item svg {
        width: 12px !important;
        height: 12px !important;
        flex-shrink: 0 !important;
    }

    /* Results */
    .result-section { padding: 16px 14px !important; margin: 20px 0 !important; }
    .stats-grid { grid-template-columns: 1fr 1fr !important; gap: 8px !important; }
    .stat-item { padding: 10px !important; }
    .stat-value { font-size: 15px !important; }
    .earning-amount { font-size: 28px !important; }
    .revenue-breakdown-stats { grid-template-columns: repeat(3, 1fr) !important; gap: 6px !important; }

    /* Affiliate Cards in 1 Row */
    .cards-container {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px !important;
    }
    .affiliate-card {
        padding: 10px 4px !important;
        border-radius: 10px !important;
    }
    .affiliate-card img { width: 30px !important; height: 30px !important; margin-bottom: 4px !important; }
    .affiliate-card h4 { font-size: 10.5px !important; margin-bottom: 2px !important; }
    .affiliate-card p { display: none !important; }
    .affiliate-card a { padding: 6px 0 !important; font-size: 10px !important; border-radius: 6px !important; }

    /* How to Use on Mobile */
    .how-to-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    .how-to-card {
        padding: 14px !important;
    }
    .how-to-card svg {
        max-width: 100px !important;
    }
}

/* Center-aligned error boxes */
#error-message, #mp3-error, #mp4-error, #seo-error {
    text-align: center !important;
}

.loading { margin: 25px 0; color: #666666; font-weight: 600; text-align: center; }
.spinner { width: 32px; height: 32px; border: 3px solid #f3f3f3; border-top: 3px solid #FF0000; border-radius: 50%; margin: 0 auto 10px auto; animation: spin 0.8s linear infinite; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }


/* 📖 SEO ARTICLE & DATA TABLE STYLING */
.seo-article {
    margin: 45px 0 20px 0;
    padding-top: 35px;
    border-top: 1px dashed #e2e8f0;
    text-align: left;
}
.seo-article h2 {
    font-size: 21px;
    font-weight: 800;
    color: #111111;
    margin: 30px 0 12px 0;
    line-height: 1.35;
}
.seo-article h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin: 22px 0 10px 0;
}
.seo-article p {
    font-size: 14px;
    color: #475569;
    line-height: 1.7;
    margin: 0 0 16px 0;
}
.seo-article ul {
    margin: 0 0 18px 0;
    padding-left: 20px;
}
.seo-article li {
    font-size: 14px;
    color: #475569;
    line-height: 1.65;
    margin-bottom: 8px;
}

/* 📊 COMPARISON TABLE */
.table-wrapper {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.seo-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    background: #ffffff;
    min-width: 480px;
}
.seo-table th {
    background: #f8fafc;
    color: #0f172a;
    font-weight: 700;
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
}
.seo-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
}
.seo-table tr:last-child td {
    border-bottom: none;
}
.highlight-rpm {
    font-weight: 700;
    color: #FF0000;
}

/* ❓ FAQ ACCORDION */
.faq-accordion {
    margin-top: 25px;
}
.faq-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}
.faq-item[open] {
    border-color: #ffd2d2;
}
.faq-item summary {
    padding: 16px 18px;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-item summary::-webkit-details-marker {
    display: none;
}
.faq-item summary::after {
    content: '+';
    font-size: 18px;
    font-weight: 700;
    color: #FF0000;
}
.faq-item[open] summary::after {
    content: '−';
}
.faq-item p {
    padding: 0 18px 16px 18px;
    margin: 0;
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.6;
}

/* MOBILE RESPONSIVE FIX - FINAL OVERRIDES */
@media (max-width: 768px) {

    /* Navigation: links clip na hon */
    .hero-nav {
        overflow-x: auto !important;
        overflow-y: hidden !important;
        max-width: 100% !important;
        scrollbar-width: none !important;
        -webkit-overflow-scrolling: touch;
    }

    .hero-nav::-webkit-scrollbar {
        display: none;
    }

    /* Feature row: horizontal scroll instead of clipping */
    .hero-features {
        overflow-x: auto !important;
        overflow-y: hidden !important;
        justify-content: flex-start !important;
        scrollbar-width: none !important;
    }

    .hero-features::-webkit-scrollbar {
        display: none;
    }

    .feature-item {
        flex-shrink: 0 !important;
        font-size: 11px !important;
    }

    /* Cards: mobile par 3 ke bajaye 2 columns */
    .cards-container {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    /* Prevent elements from expanding beyond screen */
    .container,
    .result-section,
    .search-box,
    .stats-grid,
    .cards-container {
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    /* Images responsive */
    img {
        max-width: 100%;
    }

    /* Prevent long text from breaking layout */
    h1, h2, h3, p {
        overflow-wrap: anywhere;
    }

    /* Search input safety */
    .search-box input {
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }
}

/* EXTRA SMALL DEVICES */
@media (max-width: 360px) {
    .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .cards-container {
        gap: 7px !important;
    }

    .hero h1 {
        font-size: 19px !important;
    }
}

/* SEO TABLE MOBILE READABILITY FIX */
@media (max-width: 768px) {

    .table-wrapper {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: thin !important;
        box-sizing: border-box !important;
    }

    .seo-table {
        width: 100% !important;
        min-width: 600px !important;
        table-layout: auto !important;
        border-collapse: collapse !important;
    }

    .seo-table th,
    .seo-table td {
        min-width: 110px !important;
        padding: 12px 10px !important;
        white-space: normal !important;
        overflow-wrap: break-word !important;
        word-break: normal !important;
        vertical-align: middle !important;
        font-size: 13px !important;
        line-height: 1.5 !important;
    }

    .seo-table th {
        font-size: 13px !important;
        font-weight: 700 !important;
    }

    body {
        overflow-x: hidden !important;
    }
}

/* SEO TABLE - FIT MOBILE SCREEN */
@media (max-width: 768px) {
    .table-wrapper {
        overflow-x: hidden !important;
        width: 100% !important;
    }

    .seo-table {
        width: 100% !important;
        min-width: 0 !important;
        table-layout: fixed !important;
    }

    .seo-table th,
    .seo-table td {
        min-width: 0 !important;
        padding: 6px 3px !important;
        font-size: 10px !important;
        line-height: 1.3 !important;
        overflow-wrap: anywhere !important;
        word-break: break-word !important;
    }
}

/* MOBILE UI POLISH */
@media (max-width: 768px) {

    /* Page spacing */
    .container {
        padding: 14px 12px !important;
    }

    /* Navigation */
    .hero-nav {
        gap: 4px !important;
        padding: 5px !important;
        border-radius: 14px !important;
    }

    .hero-nav a {
        padding: 8px 10px !important;
        font-size: 11px !important;
    }

    /* Main heading */
    .hero h1 {
        font-size: 22px !important;
        line-height: 1.3 !important;
        margin-bottom: 8px !important;
    }

    .hero p {
        font-size: 12px !important;
        line-height: 1.6 !important;
    }

    /* Search section */
    .search-box {
        gap: 10px !important;
        margin-top: 16px !important;
    }

    .search-box input {
        min-height: 52px !important;
        border-radius: 12px !important;
        padding: 12px !important;
    }

    .search-box button {
        min-height: 48px !important;
        border-radius: 12px !important;
        font-weight: 700 !important;
    }

    /* Feature labels */
    .hero-features {
        margin-top: 12px !important;
        gap: 10px !important;
    }

    .feature-item {
        font-size: 10.5px !important;
    }

    /* Recommended tools section */
    .cards-container {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
        align-items: stretch !important;
    }

    .affiliate-card {
        min-width: 0 !important;
        padding: 14px 10px !important;
        border-radius: 14px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }

    .affiliate-card img {
        width: 36px !important;
        height: 36px !important;
        object-fit: contain !important;
        margin-bottom: 8px !important;
    }

    .affiliate-card h3 {
        font-size: 12px !important;
        line-height: 1.4 !important;
        text-align: center !important;
        margin: 5px 0 !important;
    }

    .affiliate-card a {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        padding: 9px 5px !important;
        border-radius: 8px !important;
        font-size: 11px !important;
        box-sizing: border-box !important;
    }

    /* Center the last card when there are 3 tools */
    .affiliate-card:last-child:nth-child(odd) {
        grid-column: 1 / -1 !important;
        width: calc(50% - 6px) !important;
        justify-self: center !important;
    }
}

/* Small phones */
@media (max-width: 360px) {
    .hero h1 {
        font-size: 20px !important;
    }

    .affiliate-card {
        padding: 11px 7px !important;
    }

    .cards-container {
        gap: 8px !important;
    }
}

/* Center the feature labels */
@media (max-width: 768px) {
    .hero-features {
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        gap: 8px !important;
        overflow: visible !important;
    }

    .feature-item {
        text-align: center !important;
        flex-shrink: 1 !important;
        font-size: 10px !important;
    }
}

/* SEO Article Illustration */
.article-illustration {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    border-radius: 14px;
    margin: 20px 0 24px;
}

@media (max-width: 768px) {
    .article-illustration {
        border-radius: 10px;
        margin: 14px 0 18px;
    }
}

/* =========================================
   PREMIUM RESULT UI ENHANCEMENT
   YTEarningCheck - Frontend only
========================================= */

.result-section,
.transcript-box {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 24px;
    margin: 24px 0;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.055);
    text-align: left;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.result-section h3,
.transcript-box h3 {
    color: #111827;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 18px;
}

/* Earnings stats */
.stat-item {
    border: 1px solid #e5e7eb;
    background: #f8fafc;
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-label {
    color: #64748b;
}

.stat-value {
    color: #111827;
    overflow-wrap: anywhere;
}

/* Thumbnail preview */
#thumb-result {
    overflow: hidden;
}

#thumb-preview {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto 18px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    background: #f8fafc;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}

/* Transcript readability */
.transcript-text {
    width: 100%;
    min-height: 220px;
    box-sizing: border-box;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f8fafc;
    color: #1f2937;
    font-size: 14px;
    line-height: 1.8;
    resize: vertical;
}

/* Copy button */
.copy-btn {
    margin-top: 14px;
    border-radius: 10px;
    padding: 12px 20px;
    font-weight: 700;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

/* SEO output spacing */
#seo-result-content {
    display: block;
    width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
    line-height: 1.7;
}

#seo-result-content h3,
#seo-result-content h4 {
    color: #111827;
    margin: 18px 0 10px;
    line-height: 1.5;
}

#seo-result-content > *:first-child {
    margin-top: 0;
}

/* Media tool result containers - visual styling only */
#mp3-result-content,
#mp4-result-content {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: anywhere;
}

/* Consistent result button shape */
.result-section button,
.result-section a,
.transcript-box button {
    border-radius: 10px;
}

/* Mobile result UI */
@media (max-width: 600px) {
    .result-section,
    .transcript-box {
        padding: 16px 14px;
        margin: 18px 0;
        border-radius: 14px;
    }

    .result-section h3,
    .transcript-box h3 {
        font-size: 16px;
        margin-bottom: 14px;
    }

    .transcript-text {
        min-height: 190px;
        padding: 12px;
        font-size: 13px;
        line-height: 1.7;
    }

    #thumb-preview {
        border-radius: 10px;
    }
}


/* SEO RESULTS - PREMIUM LAYOUT */
.seo-title-card {
    padding: 18px;
    margin-bottom: 16px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow-wrap: anywhere;
}
.seo-label {
    margin: 0 0 8px;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
}
.seo-video-title {
    margin: 0;
    color: #111827;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.65;
}
.seo-tags-stat {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    margin-bottom: 22px;
    background: #fff5f5;
    border: 1px solid #ffdede;
    border-radius: 14px;
}
.seo-tags-stat strong {
    color: #e00000;
    font-size: 30px;
    line-height: 1;
}
.seo-tags-stat span {
    color: #374151;
    font-size: 14px;
    font-weight: 700;
}
.seo-tags-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.seo-tags-header h4 {
    margin: 0;
    color: #111827;
    font-size: 16px;
    font-weight: 800;
}
.seo-copy-btn {
    padding: 10px 15px;
    background: #ff0000;
    color: #ffffff;
    border: none;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}
.seo-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: flex-start;
}
.seo-tag-chip {
    display: inline-block;
    max-width: 100%;
    padding: 8px 13px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 30px;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    overflow-wrap: anywhere;
    box-sizing: border-box;
}
.seo-empty-message {
    color: #64748b;
    font-size: 14px;
    margin: 4px 0;
}
@media (max-width: 600px) {
    .seo-title-card { padding: 14px; }
    .seo-video-title { font-size: 15px; }
    .seo-tags-stat { padding: 15px; }
    .seo-tags-stat strong { font-size: 26px; }
    .seo-tags-header { align-items: center; }
    .seo-copy-btn { padding: 9px 12px; font-size: 12px; }
    .seo-tag-chip { font-size: 12px; padding: 7px 11px; }
}

/* SEO RESULTS - PREMIUM LAYOUT */
.seo-title-card {
    padding: 18px;
    margin-bottom: 16px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow-wrap: anywhere;
}
.seo-label {
    margin: 0 0 8px;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
}
.seo-video-title {
    margin: 0;
    color: #111827;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.65;
}
.seo-tags-stat {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    margin-bottom: 22px;
    background: #fff5f5;
    border: 1px solid #ffdede;
    border-radius: 14px;
}
.seo-tags-stat strong {
    color: #e00000;
    font-size: 30px;
    line-height: 1;
}
.seo-tags-stat span {
    color: #374151;
    font-size: 14px;
    font-weight: 700;
}
.seo-tags-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.seo-tags-header h4 {
    margin: 0;
    color: #111827;
    font-size: 16px;
    font-weight: 800;
}
.seo-copy-btn {
    padding: 10px 15px;
    background: #ff0000;
    color: #ffffff;
    border: none;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}
.seo-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: flex-start;
}
.seo-tag-chip {
    display: inline-block;
    max-width: 100%;
    padding: 8px 13px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 30px;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    overflow-wrap: anywhere;
    box-sizing: border-box;
}
.seo-empty-message {
    color: #64748b;
    font-size: 14px;
    margin: 4px 0;
}
@media (max-width: 600px) {
    .seo-title-card { padding: 14px; }
    .seo-video-title { font-size: 15px; }
    .seo-tags-stat { padding: 15px; }
    .seo-tags-stat strong { font-size: 26px; }
    .seo-tags-header { align-items: center; }
    .seo-copy-btn { padding: 9px 12px; font-size: 12px; }
    .seo-tag-chip { font-size: 12px; padding: 7px 11px; }
}

/* PREMIUM THUMBNAIL RESULT */
.thumbnail-result-card {
    text-align: left !important;
    padding: 22px !important;
}

.thumbnail-result-header {
    margin-bottom: 20px;
}

.thumbnail-result-header h3 {
    margin: 0 0 6px !important;
    color: #111827;
    font-size: 20px;
    font-weight: 800;
}

.thumbnail-result-header p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

.thumbnail-preview-frame {
    padding: 10px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    margin-bottom: 20px;
    overflow: hidden;
}

.thumbnail-preview-frame img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 10px;
}

.thumbnail-download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    box-sizing: border-box;
    background: #ff0000;
    color: #ffffff !important;
    border-radius: 12px;
    padding: 14px 20px;
    text-decoration: none !important;
    font-size: 15px;
    font-weight: 800;
    transition: background 0.2s ease, transform 0.2s ease;
}

.thumbnail-download-btn:hover {
    background: #d90000;
    transform: translateY(-1px);
}

@media (max-width: 480px) {
    .thumbnail-result-card {
        padding: 16px !important;
    }

    .thumbnail-result-header h3 {
        font-size: 18px;
    }

    .thumbnail-preview-frame {
        padding: 6px;
        border-radius: 12px;
    }
}

/* PREMIUM THUMBNAIL RESULT */
.thumbnail-result-card {
    text-align: left !important;
    padding: 22px !important;
}
.thumbnail-result-header {
    margin-bottom: 20px;
}
.thumbnail-result-header h3 {
    margin: 0 0 6px !important;
    color: #111827;
    font-size: 20px;
    font-weight: 800;
}
.thumbnail-result-header p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}
.thumbnail-preview-frame {
    padding: 10px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    margin-bottom: 20px;
    overflow: hidden;
}
.thumbnail-preview-frame img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 10px;
}
.thumbnail-download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    box-sizing: border-box;
    background: #ff0000;
    color: #ffffff !important;
    border-radius: 12px;
    padding: 14px 20px;
    text-decoration: none !important;
    font-size: 15px;
    font-weight: 800;
    transition: background 0.2s ease, transform 0.2s ease;
}
.thumbnail-download-btn:hover {
    background: #d90000;
    transform: translateY(-1px);
}
@media (max-width: 480px) {
    .thumbnail-result-card {
        padding: 16px !important;
    }
    .thumbnail-result-header h3 {
        font-size: 18px;
    }
    .thumbnail-preview-frame {
        padding: 6px;
        border-radius: 12px;
    }
}

/* ===== FINAL RESPONSIVE LAYOUT FIX ===== */

/* Flexible page width */
.container {
    width: 100%;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* Prevent content from expanding beyond its parent */
.container > *,
.result-section,
.transcript-box,
.affiliate-card,
.how-to-card {
    min-width: 0;
    max-width: 100%;
}

img, video, iframe {
    max-width: 100%;
}

/* Tablet and smaller laptop */
@media (max-width: 900px) {
    .container {
        max-width: 100%;
        padding-left: 18px;
        padding-right: 18px;
    }

    .cards-container,
    .how-to-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .affiliate-card,
    .how-to-card {
        height: auto;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .container {
        padding: 16px 12px;
    }

    .hero {
        margin-bottom: 20px;
    }

    .hero h1 {
        font-size: clamp(20px, 6vw, 25px);
        line-height: 1.3;
        overflow-wrap: anywhere;
    }

    .hero .subtitle {
        font-size: 13px;
    }

    .search-box {
        width: 100%;
        max-width: 100%;
    }

    .search-box input {
        min-width: 0;
        width: 100%;
    }

    .cards-container,
    .how-to-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .affiliate-card {
        padding: 14px 10px;
    }

    .how-to-card {
        padding: 14px 10px;
    }

    .result-section,
    .transcript-box {
        width: 100%;
        max-width: 100%;
    }

    .seo-tags-list {
        gap: 7px;
    }

    .seo-tag-chip {
        max-width: 100%;
        overflow-wrap: anywhere;
    }
}

/* Very small phones */
@media (max-width: 360px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .cards-container,
    .how-to-grid {
        gap: 8px;
    }

    .affiliate-card,
    .how-to-card {
        padding: 12px 8px;
    }

    .search-box button {
        min-width: 0;
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* Larger desktop screens */
@media (min-width: 1200px) {
    .container {
        max-width: 1050px;
    }
}

/* ===== END RESPONSIVE FIX ===== */


/* Compact mobile navigation */
@media (max-width: 600px) {
    .hero-nav a {
        padding: 5px 6px !important;
        font-size: 10px !important;
        letter-spacing: -0.3px !important;
    }
    .hero-nav {
        gap: 2px !important;
        padding: 3px !important;
    }
}

/* Mobile navigation slightly larger */
@media (max-width: 600px) {
    .hero-nav a {
        padding: 5px 7px !important;
        font-size: 11px !important;
        letter-spacing: -0.2px !important;
    }
}

@media (max-width: 600px) {
    .hero-nav a {
        padding: 5px 8px !important;
        font-size: 12px !important;
        letter-spacing: 0 !important;
    }
}

@media (max-width: 600px) {
    .hero-nav a {
        font-size: 11.5px !important;
    }
}

/* Mobile navigation slightly larger */
@media (max-width: 600px) {
    .hero-nav a {
        padding: 5px 7px !important;
        font-size: 11px !important;
        letter-spacing: -0.2px !important;
    }
}

/* ===== AFFILIATE CARDS - PREMIUM REDESIGN ===== */
.cards-container {
    gap: 16px !important;
    align-items: stretch !important;
}

.affiliate-card {
    position: relative !important;
    overflow: hidden !important;
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%) !important;
    border: 1px solid #e8e8e8 !important;
    border-radius: 16px !important;
    padding: 20px 15px !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.045) !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.affiliate-card img {
    width: 48px !important;
    height: 48px !important;
    object-fit: contain !important;
    padding: 5px !important;
    background: #f7f7f7 !important;
    border: 1px solid #eeeeee !important;
    border-radius: 13px !important;
    margin: 0 0 4px !important;
}

.affiliate-card h4,
.affiliate-card h3 {
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
    color: #171717 !important;
    margin: 0 !important;
}

.affiliate-card p {
    font-size: 12px !important;
    line-height: 1.55 !important;
    color: #737373 !important;
    margin: 0 0 8px !important;
}

.affiliate-card a {
    margin-top: auto !important;
    background: #171717 !important;
    color: #ffffff !important;
    border: 1px solid #171717 !important;
    border-radius: 9px !important;
    padding: 10px 8px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    transition: background 0.2s ease !important;
}

/* Tablet */
@media (min-width: 601px) and (max-width: 900px) {
    .cards-container {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .affiliate-card:last-child:nth-child(odd) {
        grid-column: 1 / -1 !important;
        width: 50% !important;
        justify-self: center !important;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .cards-container {
        gap: 11px !important;
    }

    .affiliate-card {
        padding: 15px 11px !important;
        border-radius: 14px !important;
        gap: 7px !important;
    }

    .affiliate-card img {
        width: 40px !important;
        height: 40px !important;
    }

    .affiliate-card h4,
    .affiliate-card h3 {
        font-size: 13px !important;
    }

    .affiliate-card p {
        font-size: 11px !important;
        line-height: 1.45 !important;
    }

    .affiliate-card a {
        font-size: 11px !important;
        padding: 9px 6px !important;
    }
}
/* ===== END AFFILIATE REDESIGN ===== */




/* ===== FINAL HOW-TO CSS ILLUSTRATIONS ===== */

.how-to-section {
    margin: 35px 0 25px !important;
    padding-top: 25px !important;
    border-top: 1px solid #e9edf2 !important;
}

.how-to-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    width: 100% !important;
}

.how-to-card,
.how-to-card:nth-child(even) {
    display: grid !important;
    grid-template-columns: 116px minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    align-items: center !important;
    column-gap: 18px !important;
    row-gap: 5px !important;
    text-align: left !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 138px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 15px 18px !important;
    background: #fff !important;
    border: 1px solid #e8edf3 !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 16px rgba(15,23,42,.045) !important;
    overflow: hidden !important;
}

.how-to-illustration {
    position: relative !important;
    grid-column: 1 !important;
    grid-row: 1 / 3 !important;
    width: 116px !important;
    height: 116px !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #f4f7fb !important;
}

.how-to-card:nth-child(even) {
    grid-template-columns: minmax(0, 1fr) 116px !important;
}

.how-to-card:nth-child(even) .how-to-illustration {
    grid-column: 2 !important;
}

.how-to-card:nth-child(even) h4,
.how-to-card:nth-child(even) p {
    grid-column: 1 !important;
}

.how-to-card h4 {
    grid-row: 1 !important;
    align-self: end !important;
    margin: 0 !important;
    color: #171b22 !important;
    font-size: 15px !important;
    line-height: 1.4 !important;
    font-weight: 800 !important;
}

.how-to-card p {
    grid-row: 2 !important;
    align-self: start !important;
    margin: 0 !important;
    color: #667085 !important;
    font-size: 12px !important;
    line-height: 1.55 !important;
}

/* 1 — Copy link / phone */

.ill-copy {
    background: linear-gradient(145deg, #f0f5ff, #e5edff) !important;
}

.ill-phone {
    position: relative;
    width: 58px;
    height: 94px;
    padding: 6px;
    border-radius: 12px;
    background: #202b3c;
    box-shadow: 0 8px 18px rgba(31,45,65,.18);
    transform: rotate(-5deg);
}

.ill-screen {
    width: 100%;
    height: 100%;
    padding: 8px 5px;
    border-radius: 8px;
    background: #fff;
}

.ill-video {
    position: relative;
    height: 39px;
    border-radius: 5px;
    overflow: hidden;
    background: linear-gradient(145deg, #ffb49b, #f15a55);
}

.ill-video:before {
    content: "";
    position: absolute;
    width: 35px;
    height: 25px;
    left: 4px;
    bottom: 0;
    background: #8e4549;
    clip-path: polygon(50% 0,100% 100%,0 100%);
}

.ill-play {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 9px solid white;
}

.ill-line {
    height: 4px;
    margin-top: 7px;
    border-radius: 4px;
    background: #d8e0eb;
}

.ill-line.short {
    width: 65%;
    margin-top: 5px;
    background: #e9eef5;
}

.ill-link-bubble {
    position: absolute;
    right: 6px;
    bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: #fff;
    color: #3975e8;
    font-size: 18px;
    font-weight: 800;
    box-shadow: 0 5px 14px rgba(40,90,180,.16);
}

/* 2 — HD preview */

.ill-preview {
    background: linear-gradient(145deg, #f0f9f6, #dff4eb) !important;
}

.ill-image-frame {
    position: relative;
    width: 82px;
    height: 66px;
    overflow: hidden;
    border-radius: 10px;
    background: linear-gradient(180deg, #9bd7f5 0%, #d5f0ff 62%, #f5e6c7 100%);
    box-shadow: 0 8px 18px rgba(48,115,95,.12);
}

.ill-sun {
    position: absolute;
    width: 17px;
    height: 17px;
    top: 11px;
    right: 13px;
    border-radius: 50%;
    background: #fff4bf;
    box-shadow: 0 0 13px rgba(255,239,177,.5);
}

.ill-mountain {
    position: absolute;
    bottom: 10px;
    width: 0;
    height: 0;
    border-left: 45px solid transparent;
    border-right: 45px solid transparent;
}

.ill-mountain.one {
    left: -7px;
    border-bottom: 47px solid #4d9c89;
}

.ill-mountain.two {
    right: -16px;
    border-bottom: 36px solid #79b8a2;
}

.ill-image-bottom {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 15px;
    background: linear-gradient(90deg,#6cb99b,#b5dfba);
}

.ill-hd-badge {
    position: absolute;
    bottom: 10px;
    left: 9px;
    padding: 4px 7px;
    border-radius: 6px;
    background: #fff;
    color: #15856a;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .5px;
    box-shadow: 0 3px 9px rgba(0,0,0,.08);
}

.ill-spark {
    position: absolute;
    top: 10px;
    left: 10px;
    color: #43a68b;
    font-size: 15px;
}

/* 3 — Save image */

.ill-save {
    background: linear-gradient(145deg, #fff4eb, #ffe8d6) !important;
}

.ill-save-window {
    width: 79px;
    padding: 7px;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 7px 17px rgba(120,75,40,.12);
    transform: rotate(4deg);
}

.ill-save-picture {
    position: relative;
    height: 44px;
    overflow: hidden;
    border-radius: 5px;
    background: linear-gradient(180deg,#b6e5f9,#e3f4ff 60%,#e4d4b7);
}

.ill-save-picture .ill-sun {
    width: 12px;
    height: 12px;
    top: 7px;
    right: 9px;
}

.ill-save-picture .ill-mountain {
    bottom: 4px;
    border-left-width: 29px;
    border-right-width: 29px;
}

.ill-save-picture .ill-mountain.one {
    left: -4px;
    border-bottom: 26px solid #6a9d88;
}

.ill-save-picture .ill-mountain.two {
    right: -12px;
    border-bottom: 20px solid #9cc6a5;
}

.ill-save-line {
    width: 90%;
    height: 4px;
    margin-top: 6px;
    border-radius: 5px;
    background: #dce5ed;
}

.ill-save-line.tiny {
    width: 58%;
    margin-top: 4px;
    background: #edf1f5;
}

.ill-download-circle {
    position: absolute;
    right: 7px;
    bottom: 10px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 5px 12px rgba(170,90,35,.13);
}

.ill-download-arrow {
    position: absolute;
    top: 8px;
    left: 50%;
    width: 9px;
    height: 12px;
    transform: translateX(-50%);
    border-left: 3px solid #ef7740;
    border-bottom: 3px solid #ef7740;
    border-right: 3px solid #ef7740;
    border-radius: 0 0 3px 3px;
}

.ill-download-arrow:before {
    content: "";
    position: absolute;
    left: -5px;
    bottom: -1px;
    width: 9px;
    height: 9px;
    transform: rotate(-45deg);
    border-left: 3px solid #ef7740;
    border-bottom: 3px solid #ef7740;
}

/* Responsive */

@media (max-width: 600px) {
    .how-to-section {
        margin-top: 28px !important;
        padding-top: 22px !important;
    }

    .how-to-grid {
        gap: 11px !important;
    }

    .how-to-card,
    .how-to-card:nth-child(even) {
        grid-template-columns: 82px minmax(0, 1fr) !important;
        min-height: 104px !important;
        column-gap: 11px !important;
        row-gap: 4px !important;
        padding: 10px !important;
        border-radius: 13px !important;
    }

    .how-to-card:nth-child(even) {
        grid-template-columns: minmax(0, 1fr) 82px !important;
    }

    .how-to-illustration {
        width: 82px !important;
        height: 82px !important;
        border-radius: 11px !important;
    }

    .how-to-card h4 {
        font-size: 12.5px !important;
        line-height: 1.4 !important;
    }

    .how-to-card p {
        font-size: 11px !important;
        line-height: 1.45 !important;
    }
}

/* ===== END FINAL HOW-TO CSS ILLUSTRATIONS ===== */


/* ===== TRANSCRIPT HOW-TO ILLUSTRATIONS ===== */
.transcript-howto .how-to-illustration {
    position: relative;
    width: 116px;
    height: 116px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.transcript-howto .ill-copy,
.transcript-howto .ill-preview,
.transcript-howto .ill-save {
    background: #fff0f0;
    border-radius: 22px;
}

/* 1. Video link illustration */
.transcript-howto .ill-link-card {
    width: 88px;
    height: 70px;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 13px;
    position: relative;
    box-shadow: 0 6px 16px rgba(15,23,42,.06);
    display: flex;
    align-items: center;
    padding: 12px;
    gap: 9px;
}

.transcript-howto .ill-play {
    width: 30px;
    height: 30px;
    background: #ffeded;
    color: #e11d48;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.transcript-howto .ill-link-lines {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.transcript-howto .ill-link-lines i {
    height: 5px;
    border-radius: 5px;
    background: #cbd5e1;
}

.transcript-howto .ill-link-lines i:first-child {
    width: 90%;
    background: #f87171;
}

.transcript-howto .ill-link-lines i:last-child {
    width: 65%;
}

.transcript-howto .ill-link-chip {
    position: absolute;
    bottom: -13px;
    left: 12px;
    background: #fff;
    border: 1px solid #fecaca;
    border-radius: 20px;
    padding: 4px 7px;
    font-size: 7px;
    color: #dc2626;
    white-space: nowrap;
}

/* 2. Transcript extraction illustration */
.transcript-howto .ill-transcript-sheet {
    position: relative;
    width: 66px;
    height: 83px;
    border-radius: 11px;
    background: #fff;
    border: 2px solid #e2e8f0;
    padding: 13px 9px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 7px 18px rgba(15,23,42,.06);
}

.transcript-howto .ill-sheet-title {
    font-size: 7px;
    font-weight: 800;
    color: #ef4444;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.transcript-howto .ill-transcript-sheet i {
    display: block;
    height: 4px;
    width: 100%;
    background: #cbd5e1;
    border-radius: 5px;
}

.transcript-howto .ill-transcript-sheet i:nth-of-type(2) {
    width: 82%;
}

.transcript-howto .ill-transcript-sheet i:nth-of-type(4) {
    width: 68%;
}

.transcript-howto .ill-transcript-sheet i:nth-of-type(5) {
    width: 88%;
}

.transcript-howto .ill-text-highlight {
    position: absolute;
    width: 35px;
    height: 10px;
    background: #fee2e2;
    border-radius: 3px;
    bottom: 15px;
    left: 9px;
}

/* 3. Copy transcript illustration */
.transcript-howto .ill-copy-sheet {
    width: 67px;
    height: 82px;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 11px;
    position: relative;
    padding: 15px 9px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    box-shadow: 0 7px 18px rgba(15,23,42,.06);
}

.transcript-howto .ill-copy-sheet i {
    height: 4px;
    width: 100%;
    border-radius: 5px;
    background: #cbd5e1;
}

.transcript-howto .ill-copy-sheet i:nth-child(2) {
    width: 80%;
}

.transcript-howto .ill-copy-sheet i:nth-child(4) {
    width: 65%;
}

.transcript-howto .ill-copy-symbol {
    position: absolute;
    right: -15px;
    bottom: -12px;
    width: 32px;
    height: 32px;
    background: #dc2626;
    border: 3px solid #fff;
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    box-shadow: 0 4px 10px rgba(220,38,38,.2);
}
/* ===== END TRANSCRIPT HOW-TO ILLUSTRATIONS ===== */


/* ===== SEO HOW-TO ILLUSTRATIONS ===== */
.seo-howto .seo-illustration {
    width: 116px;
    height: 116px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 22px;
    background: #fff0f0;
}

/* 1. Video link */
.seo-howto .seo-link-window {
    position: relative;
    width: 88px;
    height: 65px;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 13px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px;
    box-shadow: 0 6px 16px rgba(15,23,42,.06);
}

.seo-howto .seo-play {
    width: 28px;
    height: 28px;
    background: #fee2e2;
    color: #dc2626;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    font-size: 11px;
}

.seo-howto .seo-link-lines {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.seo-howto .seo-link-lines i {
    height: 5px;
    background: #cbd5e1;
    border-radius: 5px;
}

.seo-howto .seo-link-lines i:first-child {
    width: 90%;
    background: #f87171;
}

.seo-howto .seo-link-lines i:last-child {
    width: 65%;
}

.seo-howto .seo-url {
    position: absolute;
    bottom: -12px;
    left: 10px;
    background: #fff;
    border: 1px solid #fecaca;
    color: #dc2626;
    font-size: 7px;
    padding: 4px 7px;
    border-radius: 20px;
}

/* 2. Metadata scanning */
.seo-howto .seo-scan-card {
    width: 72px;
    height: 82px;
    position: relative;
    border-radius: 12px;
    background: #fff;
    border: 2px solid #e2e8f0;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    overflow: hidden;
    box-shadow: 0 7px 18px rgba(15,23,42,.06);
}

.seo-howto .seo-scan-title {
    color: #dc2626;
    font-size: 7px;
    font-weight: 800;
    letter-spacing: .8px;
}

.seo-howto .seo-scan-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.seo-howto .seo-scan-row i {
    height: 5px;
    width: 38px;
    border-radius: 5px;
    background: #cbd5e1;
}

.seo-howto .seo-scan-row b {
    font-size: 10px;
    color: #ef4444;
}

.seo-howto .seo-scan-glow {
    position: absolute;
    height: 2px;
    left: 0;
    right: 0;
    top: 48px;
    background: #f87171;
    box-shadow: 0 0 8px #f87171;
    opacity: .7;
}

/* 3. SEO tag cloud */
.seo-howto .seo-tag-cloud {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.seo-howto .seo-tag-cloud span {
    position: absolute;
    background: #fff;
    border: 1px solid #fecaca;
    color: #dc2626;
    border-radius: 10px;
    padding: 7px 9px;
    font-size: 8px;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(15,23,42,.05);
}

.seo-howto .seo-tag-cloud span:nth-child(1) {
    top: 19px;
    left: 13px;
    transform: rotate(-8deg);
}

.seo-howto .seo-tag-cloud span:nth-child(2) {
    top: 20px;
    right: 8px;
    transform: rotate(7deg);
}

.seo-howto .seo-tag-cloud span:nth-child(3) {
    bottom: 19px;
    left: 12px;
    transform: rotate(6deg);
}

.seo-howto .seo-tag-cloud span:nth-child(4) {
    bottom: 18px;
    right: 10px;
    transform: rotate(-7deg);
}

.seo-howto .seo-tag-cloud span.seo-tag-main {
    background: #dc2626;
    color: #fff;
    border-color: #dc2626;
    z-index: 2;
    font-size: 10px;
    padding: 9px 12px;
}
/* ===== END SEO HOW-TO ILLUSTRATIONS ===== */


/* ===== YTEARNINGCHECK NEW HOW-TO DESIGN ===== */
.yc-howto{margin:38px 0 28px;padding:26px 0 0;border-top:1px solid #e8edf3;font-family:inherit}
.yc-howto-head{text-align:center;margin:0 0 22px}
.yc-howto-head h3{font-size:20px;line-height:1.35;font-weight:800;color:#172033;margin:0 0 7px}
.yc-howto-head p{font-size:13px;line-height:1.6;color:#667085;margin:0}
.yc-howto-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.yc-howto-card{min-width:0;background:#fff;border:1px solid #e7edf4;border-radius:15px;padding:20px 16px 18px;text-align:center;box-shadow:0 4px 14px rgba(20,40,70,.035)}
.yc-howto-icon{width:64px;height:64px;margin:0 auto 13px;display:flex;align-items:center;justify-content:center}
.yc-howto-icon svg{display:block;width:64px;height:64px}
.yc-howto-card h4{font-size:15px;line-height:1.4;font-weight:750;color:#182230;margin:0 0 7px}
.yc-howto-card p{font-size:13px;line-height:1.55;color:#64748b;margin:0}
@media(max-width:700px){
 .yc-howto{margin:28px 0 22px;padding-top:22px}
 .yc-howto-head{margin-bottom:16px}
 .yc-howto-head h3{font-size:19px}
 .yc-howto-grid{grid-template-columns:1fr;gap:11px}
 .yc-howto-card{display:grid;grid-template-columns:58px minmax(0,1fr);grid-template-rows:auto auto;column-gap:13px;row-gap:3px;align-items:center;padding:13px;text-align:left;border-radius:13px}
 .yc-howto-icon{grid-column:1;grid-row:1/3;width:58px;height:58px;margin:0}
 .yc-howto-icon svg{width:58px;height:58px}
 .yc-howto-card h4{grid-column:2;grid-row:1;font-size:14px;margin:0;align-self:end}
 .yc-howto-card p{grid-column:2;grid-row:2;font-size:12px;line-height:1.5;align-self:start}
}
@media(max-width:360px){
 .yc-howto-card{padding:11px;column-gap:10px}
 .yc-howto-icon,.yc-howto-icon svg{width:52px;height:52px}
 .yc-howto-card h4{font-size:13.5px}
 .yc-howto-card p{font-size:11.5px}
}
/* ===== END YTEARNINGCHECK NEW HOW-TO DESIGN ===== */



/* ===== YTEarningCheck Premium Footer ===== */
.site-footer {
    width: 100%;
    margin-top: 40px;
    background: #ffffff;
    color: #374151;
    border-top: 1px solid #e5e7eb;
    font-family: inherit;
}

.footer-inner {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 34px 24px 20px;
    box-sizing: border-box;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    margin-bottom: 12px;
}

.footer-logo img {
    display: block;
    width: auto;
    height: 34px;
    max-width: 175px;
    object-fit: contain;
}

.footer-description {
    max-width: 330px;
    font-size: 13px;
    line-height: 1.7;
    color: #6b7280;
    margin: 0;
}

.footer-heading {
    font-size: 12px;
    font-weight: 700;
    color: #111827;
    margin: 2px 0 14px;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    width: fit-content;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.5;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: #e53935;
}

.footer-bottom {
    border-top: 1px solid #e5e7eb;
    margin-top: 28px;
    padding-top: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    text-align: center;
}

.footer-copyright {
    color: #6b7280;
    font-size: 12px;
    line-height: 1.6;
    margin: 0;
}

.footer-disclaimer {
    max-width: 760px;
    color: #9ca3af;
    font-size: 11px;
    line-height: 1.65;
    margin: 0;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 26px 32px;
    }

    .footer-brand-section {
        grid-column: 1 / -1;
    }
}

@media (max-width: 480px) {
    .footer-inner {
        padding: 28px 18px 18px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px 18px;
    }

    .footer-brand-section {
        grid-column: 1 / -1;
    }

    .footer-logo img {
        height: 30px;
        max-width: 155px;
    }

    .footer-description {
        max-width: 100%;
        font-size: 12px;
    }

    .footer-heading {
        font-size: 11px;
        margin-bottom: 12px;
    }

    .footer-links {
        gap: 9px;
    }

    .footer-links a {
        font-size: 12px;
        overflow-wrap: anywhere;
    }

    .footer-bottom {
        margin-top: 24px;
        padding-top: 16px;
    }
}
/* ===== End Premium Footer ===== */

/* ===== Footer layout correction ===== */
.site-footer .footer-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)) !important;
    align-items: start;
    gap: 28px;
}

.site-footer .footer-grid > div {
    min-width: 0;
}

.site-footer .footer-links {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px;
}

.site-footer .footer-links a {
    display: block;
    width: auto;
    max-width: 100%;
    overflow-wrap: anywhere;
}

@media (max-width: 900px) {
    .site-footer .footer-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 26px 20px;
    }

    .site-footer .footer-brand-section {
        grid-column: 1 / -1 !important;
    }
}

@media (max-width: 600px) {
    .site-footer .footer-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 20px 8px !important;
    }

    .site-footer .footer-brand-section {
        grid-column: 1 / -1 !important;
    }

    .site-footer .footer-tools-section,
    .site-footer .footer-info-section,
    .site-footer .footer-legal-section {
        grid-column: auto !important;
        min-width: 0 !important;
        width: 100% !important;
    }

    .site-footer .footer-heading {
        font-size: 11px !important;
        white-space: nowrap !important;
    }

    .site-footer .footer-links a {
        font-size: 11px !important;
        overflow-wrap: anywhere !important;
    }

    .site-footer .footer-inner {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
}
/* ===== End Footer layout correction =====

/* Mobile content typography fix */
@media (max-width: 600px) {
    body {
        font-size: 14px;
        line-height: 1.65;
    }

    main p,
    main li {
        font-size: 14px;
        line-height: 1.7;
    }

    main h1 {
        font-size: 25px;
        line-height: 1.3;
    }

    main h2 {
        font-size: 20px;
        line-height: 1.4;
    }

    main h3 {
        font-size: 17px;
        line-height: 1.45;
    }

    main {
        overflow-wrap: break-word;
    }
}

/* Final mobile text readability */
@media screen and (max-width: 600px) {
    .container {
        padding: 16px 15px !important;
        max-width: 100%;
    }

    .container p,
    .container li {
        font-size: 14px !important;
        line-height: 1.65 !important;
        margin-bottom: 12px;
    }

    .container h1 {
        font-size: 24px !important;
        margin-bottom: 16px;
    }

    .container h2 {
        font-size: 19px !important;
        margin-top: 22px;
        margin-bottom: 10px;
    }

    .container h3 {
        font-size: 16px !important;
    }

    .container * {
        max-width: 100%;
        overflow-wrap: anywhere;
    }
}

/* Mobile footer: 3 headings in one row */
@media (max-width: 600px) {
    .footer-grid {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 12px 6px !important;
        align-items: start !important;
    }

    .footer-brand-section {
        grid-column: 1 / -1 !important;
        width: 100% !important;
    }

    .footer-tools-section,
    .footer-info-section,
    .footer-legal-section {
        display: block !important;
        min-width: 0 !important;
        width: 100% !important;
    }

    .footer-heading {
        display: block !important;
        font-size: 11px !important;
        white-space: nowrap !important;
        margin-bottom: 8px !important;
    }

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

    .footer-links a {
        display: block !important;
        font-size: 11px !important;
        line-height: 1.5 !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow-wrap: anywhere !important;
    }

    .footer-links a::after {
        content: none !important;
    }
}


/* Clean Header Controls */
.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    position: relative;
    margin-left: auto;
    flex-shrink: 0;
}

.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    color: #222222;
    font-size: 21px;
    cursor: pointer;
    flex-shrink: 0;
}

.header-menu {
    display: none;
    position: absolute;
    top: 44px;
    right: 0;
    min-width: 150px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    z-index: 9999;
    overflow: hidden;
}

.header-menu.show {
    display: block;
}

.header-menu a {
    display: block;
    padding: 12px 16px;
    color: #222222;
    text-decoration: none;
    font-size: 14px;
}

.header-menu a:hover {
    background: #f5f5f5;
}

@media (max-width: 480px) {
    .navbar {
        padding: 10px 12px !important;
    }

    .navbar img {
        height: 26px !important;
        max-width: 145px;
    }

    .header-actions {
        gap: 6px;
    }
.menu-toggle {
        width: 34px;
        height: 34px;
    }
}
