/*
Theme Name: Mau Lam Video
Theme URI: https://ndgroupmedia.com/
Author: NDGROUP
Description: Một theme WordPress hiện đại tối ưu cho AI Chatbot và Video Agency.
Version: 4.2.1
Text Domain: mlv
*/

/* 1. Global Variables & Base - Updated for Security V1.3 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --bg-deep: #060912;
    --bg-surface: #0b1120;
    --bg-card: rgba(17, 24, 39, 0.4);
    --cyan: #00f2fe;
    --cyan-glow: rgba(0, 242, 254, 0.2);
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.08);
    --glass: rgba(17, 24, 39, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --header-height: 70px;
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 80px;
    --radius: 16px;
    --blue-gradient: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    --orange-gradient: linear-gradient(90deg, #ff4e50, #f9d423);
    --purple-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --auth-bg: #0b1221;
    --auth-input-bg: #0b1221;
    --auth-border: rgba(255, 255, 255, 0.05);
    --auth-cyan: #00bcd4;
    --auth-text: #ffffff;
    --auth-text-muted: #94a3b8;
}

/* 1.1 Authentication Premium Design */
.mlv-auth-container { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; padding: 40px 20px; background: #060912; font-family: 'Inter', sans-serif; }
.mlv-auth-header { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 40px; }
.mlv-auth-logo { background: #3b82f6; width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4); }
.mlv-auth-header span { font-size: 26px; font-weight: 800; color: #fff; }
.mlv-auth-header span i { color: #00bcd4; font-style: normal; font-weight: 800; }
.mlv-auth-box { background: #0b1221; border: 1px solid var(--auth-border); border-radius: 24px; padding: 48px; width: 100%; max-width: 480px; box-shadow: 0 20px 40px rgba(0,0,0,0.4); text-align: center; }
.mlv-auth-box h1 { font-size: 32px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.mlv-auth-box .subtitle { color: var(--auth-text-muted); font-size: 16px; margin-bottom: 35px; }
.mlv-btn-google { display: flex; align-items: center; justify-content: center; gap: 12px; background: #fff !important; color: #000 !important; font-weight: 700; padding: 14px 28px; border-radius: 99px !important; width: 100%; border: none; cursor: pointer; transition: 0.3s; font-size: 16px; position: relative; }
.mlv-btn-google:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(255,255,255,0.1); }
.mlv-btn-google img { width: 22px; height: 22px; }
.mlv-auth-divider { display: flex; align-items: center; text-align: center; color: #475569; font-size: 14px; margin: 30px 0; }
.mlv-auth-divider::before, .mlv-auth-divider::after { content: ''; flex: 1; border-bottom: 1px solid rgba(255,255,255,0.08); }
.mlv-auth-divider span { padding: 0 15px; }
.mlv-form-group { margin-bottom: 22px; text-align: left; }
.mlv-form-group label { display: block; font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.mlv-form-group input { width: 100%; padding: 14px 20px; background: #0b1221; border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; color: #fff; font-size: 15px; outline: none; transition: 0.3s; }
.mlv-form-group input:focus { border-color: var(--auth-cyan); background: #0b1221; }
.mlv-btn-submit { width: 100%; padding: 16px; background: var(--auth-cyan); color: #000; border: none; border-radius: 99px; font-weight: 800; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; transition: 0.3s; margin-top: 15px; }
.mlv-btn-submit:hover { transform: translateY(-2px); opacity: 0.9; box-shadow: 0 4px 15px rgba(0, 188, 212, 0.4); }
.mlv-auth-footer { text-align: center; margin-top: 30px; font-size: 15px; color: var(--auth-text-muted); }
.mlv-auth-footer a { color: var(--auth-cyan); font-weight: 700; text-decoration: none; }

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-deep);
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, .font-heading { font-family: 'Inter', sans-serif; font-weight: 700; }

a { color: inherit; text-decoration: none; transition: 0.3s; }

.site-glass {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: var(--glass);
    border: 1px solid var(--glass-border);
}

/* 2. Layout Structure */
#page { display: flex; min-height: 100vh; }

#main-sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    border-right: 1px solid var(--border);
    background: var(--bg-surface);
    display: flex;
    flex-direction: column;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#content-area {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-height: 100vh;
    display: flex !important;
    flex-direction: column !important;
    overflow-x: hidden;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#content {
    width: 100% !important;
    flex: 1;
}

#colophon {
    width: 100% !important;
    clear: both !important;
}

.site-header {
    position: fixed;
    top: 0;
    left: 260px;
    width: calc(100% - 260px);
    height: var(--header-height);
    background: #0b0f1a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 900;
    transition: all 0.3s ease;
}

.site-main {
    padding: 30px;
    margin-top: var(--header-height);
    flex: 1;
}

/* 3. Sidebar UI Refinement */
.sidebar-header { padding: 30px 20px; }
.site-title a { font-size: 18px; font-weight: 800; color: var(--text); letter-spacing: -0.5px; }

.nav-group-title {
    padding: 20px 20px 10px;
    font-size: 10px;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 1.2px;
    text-transform: uppercase;
    opacity: 0.6;
}

.nav-menu { list-style: none; padding: 5px 15px; }
.nav-menu li { margin-bottom: 4px; }
.nav-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    border-radius: 10px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
}
.nav-menu li.active a, .nav-menu a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--cyan);
}
.nav-menu i { width: 20px; text-align: center; font-size: 16px; }

.nav-badge {
    margin-left: auto;
    font-size: 8px;
    padding: 2px 5px;
    border-radius: 4px;
    font-weight: 900;
    text-transform: uppercase;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}
.nav-badge.hot { background: #ff4e50; color: #fff; }
.nav-badge.live { background: #007bff; color: #fff; }
.nav-badge.sale { background: #6f42c1; color: #fff; }
.nav-badge.new { background: #28a745; color: #fff; }

.nav-menu li.nav-cyan a {
    color: #00f2fe !important;
}
.nav-menu li.nav-cyan a i {
    color: #00f2fe !important;
}
.nav-menu li.nav-cyan a:hover {
    background: rgba(0, 242, 254, 0.1);
}

.sidebar-footer { padding: 15px 20px; border-top: 1px solid var(--border); margin-top: auto; }
.btn-collapse {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    border: none;
    background: var(--glass);
    color: var(--text-muted);
    cursor: pointer;
    font-size: 12px;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}

/* 4. Header & Action Buttons */
.header-container {
    height: 100%;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.left-section { display: flex; align-items: center; gap: 20px; }
.menu-toggle { display: none; background: none; border: none; color: #fff; font-size: 20px; cursor: pointer; }

.top-nav-links { display: flex; gap: 10px; }
.pill-btn {
    padding: 7px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}
.pill-btn.active { background: rgba(0, 242, 254, 0.1); color: var(--cyan); }

.center-section { display: flex; gap: 10px; align-items: center; }
.action-btn {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 16px; border-radius: 10px;
    font-size: 12px; font-weight: 700; color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.action-btn.cyan { background: var(--blue-gradient); }
.action-btn.red { background: #ff4e50; }
.action-btn.orange { background: linear-gradient(90deg, #f97316 0%, #ea580c 100%); }
.action-btn.purple { background: var(--purple-gradient); }

.badge-mini {
    font-size: 7px; background: rgba(0,0,0,0.3);
    padding: 2px 5px; border-radius: 40px; margin-left: 5px;
}

/* Auth Profile */
.user-profile {
    display: flex; align-items: center; gap: 10px;
    padding: 6px 15px; border-radius: 30px;
    cursor: pointer; font-weight: 600; font-size: 13px;
}
.user-avatar { width: 30px; height: 30px; border-radius: 50%; overflow: hidden; border: 1px solid var(--border); }
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* 5. Section UI Refinement */
.hero-banner-section { display: flex; justify-content: flex-start; padding: 15px 0; width: 100%; position: relative; z-index: 50; margin-left: 0 !important; }
.banner-container { background-color: #FE4A49; border-radius: 12px; padding: 16px; text-align: left; max-width: 450px; width: 100%; box-shadow: 0 4px 15px rgba(0,0,0,0.2); margin: 0 !important; transition: all 0.3s ease;}
.banner-content { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.banner-text { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 8px; }
.fire-icon { font-size: 16px; }
.banner-title { color: #ffffff; margin: 0; font-size: 14px; font-weight: 700; line-height: 1.2; }
.discount-code-wrapper { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; margin-top: 5px; }
.code-box { background-color: rgba(255, 255, 255, 0.2); padding: 6px 12px; border-radius: 8px; display: flex; align-items: center; }
.code-box .label { color: #ffffff; margin-right: 5px; font-size: 11px; }
.code-box .code { color: #ffffff; font-weight: bold; font-size: 14px; }
.btn-copy-code { background-color: #ffffff; color: #FE4A49; border: none; padding: 6px 14px; border-radius: 6px; cursor: pointer; font-weight: bold; font-size: 11px; transition: all 0.3s ease; white-space: nowrap; }
.btn-copy-code:hover { transform: scale(1.05); }

@media (max-width: 768px) {
    .hero-banner-section { justify-content: center !important; padding: 80px 0 20px 0 !important; z-index: 100 !important; position: relative !important; }
    .banner-container { width: 95% !important; max-width: 400px !important; margin: 0 auto !important; padding: 15px !important; text-align: center !important; }
    .banner-title { font-size: 16px !important; line-height: 1.5 !important; margin-bottom: 10px !important; }
    .fire-icon { font-size: 20px !important; }
}

.featured-section { margin-bottom: 60px; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
.section-title-wrap { display: flex; align-items: center; gap: 12px; }
.section-icon { font-size: 22px; color: var(--cyan); }
.section-header h2 { font-size: 22px; font-weight: 800; color: #fff; }

.section-label {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(0, 242, 254, 0.1);
    color: var(--cyan);
    font-size: 9px;
    font-weight: 900;
    border-radius: 6px;
    margin-bottom: 25px; /* Increased for category sections */
    text-transform: uppercase;
}

.home-category-section { margin-bottom: 80px !important; width: 100% !important; max-width: none !important; margin-left: 0 !important; }
.category-header { display: flex; align-items: center; gap: 30px; margin-bottom: 40px; width: 100% !important; justify-content: flex-start !important; padding-left: 0 !important; }
.category-title { font-size: 32px !important; font-weight: 800 !important; color: #fff !important; white-space: nowrap; letter-spacing: -1px; text-align: left !important; margin: 0 !important; padding-left: 0 !important; }
.category-divider { flex: 1; height: 1px; background: linear-gradient(to right, rgba(255,255,255,0.1), transparent); margin-right: 40px; }
.empty-msg { text-align: left !important; padding: 50px 0; opacity: 0.5; width: 100%; grid-column: 1 / -1; }

@media (max-width: 768px) {
    .category-header { flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 20px; }
    .category-title { font-size: 22px !important; }
    .category-divider { display: none; }
}

.view-all {
    font-size: 12px; color: var(--text-muted); font-weight: 600;
    display: flex; align-items: center; gap: 8px;
}
.view-all i { font-size: 10px; }

/* 6. Card Grids */
/* 6. Card Grids & Premium Chatbot Card */
.chatbot-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px; 
    padding: 20px 0;
    margin: 0 !important;
    justify-content: start !important;
    width: 100% !important;
}

@media (max-width: 1400px) {
    .chatbot-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .chatbot-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
    .chatbot-premium-card { border-radius: 12px !important; }
    .card-image-area { aspect-ratio: 9/12 !important; }
    .chatbot-title { font-size: 13px !important; line-height: 1.3 !important; font-weight: 700 !important; color: #ffffff !important; margin-bottom: 5px !important; }
    .chatbot-excerpt { font-size: 10px !important; line-height: 1.4 !important; color: #fbbf24 !important; margin-bottom: 8px !important; -webkit-line-clamp: 2 !important; }
    .card-badges .badge { font-size: 8px !important; padding: 2px 5px !important; gap: 3px !important; }
    .card-badges .badge i { font-size: 7px !important; }
    .card-stats-price { padding-top: 5px !important; }
    .sales-info { font-size: 9px !important; color: #94a3b8 !important; }
    .price-current { font-size: 13px !important; color: #00f2fe !important; font-weight: 800 !important; }
    .price-old { font-size: 9px !important; }
    .card-action-bar { font-size: 9px !important; padding: 7px !important; gap: 5px !important; letter-spacing: 0 !important; }
    .card-details { padding: 10px !important; }
    .save-icon { width: 24px !important; height: 24px !important; font-size: 11px !important; bottom: 8px !important; right: 8px !important; }
}

@media (max-width: 600px) {
    .chatbot-grid { grid-template-columns: 1fr; }
}

.chatbot-premium-card {
    background: #111827;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chatbot-premium-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    border-color: rgba(59, 130, 246, 0.4);
}

.card-image-area {
    position: relative;
    width: 100%;
    aspect-ratio: 9/13; /* Vertical portrait ratio as in image */
    overflow: hidden;
    background: #000;
}

.card-image-area .main-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.chatbot-premium-card:hover .main-thumb { transform: scale(1.1); }

.card-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column; /* Stacked badges like image? */
    gap: 6px;
    z-index: 5;
}

.card-badges .badge {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: fit-content;
}

.badge-premium { background: #10b981; color: white; }
.badge-type { background: rgba(31, 41, 55, 0.9); color: #fff; border: 1px solid rgba(255, 255, 255, 0.2); }
.badge-new { background: #f97316; color: white; }

.save-icon {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
    backdrop-filter: blur(4px);
    cursor: pointer;
    z-index: 5;
}

.card-details {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.chatbot-title {
    margin: 0 0 8px 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
}

.chatbot-title a { color: #fff; text-decoration: none; }

.chatbot-excerpt {
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 12px;
    color: #fbbf24; /* Yellow text for description part */
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-stats-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 10px;
}

.sales-info { font-size: 11px; color: #64748b; }
.pricing-info { text-align: right; }
.price-old { font-size: 11px; color: #64748b; text-decoration: line-through; display: block; margin-bottom: -2px; opacity: 0.6; }
.price-current { font-size: 20px; font-weight: 900; color: #00f2fe; line-height: 1; }

.card-action-bar {
    background: rgba(13, 148, 136, 0.3);
    border-top: 1px solid rgba(45, 212, 191, 0.2);
    color: #2dd4bf;
    padding: 12px;
    text-align: center;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.3s;
    background: #0f172a; /* Darker base */
}

.card-action-bar:hover { background: #0d9488; color: #fff; }

/* ==========================================
   Chatbot Archive V3 - Video First 9:16
   ========================================== */
.chatbot-v3-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 20px 0;
}

.chatbot-v3-card {
    background: #111827;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
}

.chatbot-v3-card:hover {
    transform: translateY(-10px);
    border-color: var(--cyan);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.v3-media-area {
    position: relative;
    width: 100%;
    aspect-ratio: 9/16;
    background: #000;
    overflow: hidden;
}

.v3-media-area .v3-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.chatbot-v3-card:hover .v3-thumb {
    transform: scale(1.1);
}

.v3-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 40%, transparent 60%, rgba(0,0,0,0.4) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.v3-play-btn {
    width: 50px;
    height: 50px;
    background: rgba(0, 242, 254, 0.2);
    backdrop-filter: blur(8px);
    border: 2px solid var(--cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cyan);
    font-size: 18px;
    transition: 0.3s;
    opacity: 0.8;
}

.chatbot-v3-card:hover .v3-play-btn {
    transform: scale(1.2);
    background: var(--cyan);
    color: #000;
    opacity: 1;
}

.v3-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    display: flex;
    justify-content: space-between;
    z-index: 5;
}

.v3-badge-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.v3-tag {
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.v3-tag-premium { background: linear-gradient(90deg, #f59e0b, #d97706); color: #fff; }
.v3-tag-new { background: #10b981; color: #fff; }
.v3-tag-type { 
    background: rgba(255,255,255,0.1); 
    backdrop-filter: blur(12px); 
    color: #fff; 
    border: 1px solid rgba(255,255,255,0.2);
}

.v3-save-btn {
    z-index: 10;
}

/* Chatbot V3 Grid & Archive */
.chatbot-v3-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.v3-archive-header {
    margin-bottom: 50px;
    text-align: left;
}

.v3-archive-title {
    font-size: 48px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 25px;
    letter-spacing: -1.5px;
}

.v3-filter-bar {
    display: flex;
    gap: 15px;
    padding: 12px;
    border-radius: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.v3-search-box {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.v3-search-box i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 16px;
}

.v3-search-box input {
    width: 100%;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 14px 20px 14px 48px;
    border-radius: 12px;
    color: #fff;
    outline: none;
    font-size: 14px;
    transition: 0.3s;
}

.v3-search-box input:focus {
    border-color: var(--cyan);
    background: rgba(0,0,0,0.5);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.1);
}

.v3-cat-select {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 14px 25px;
    border-radius: 12px;
    color: #fff;
    outline: none;
    cursor: pointer;
    font-size: 14px;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 1.2em;
    padding-right: 45px;
}

.v3-category-pills {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.v3-pill {
    padding: 8px 20px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 50px;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none !important;
}

.v3-pill:hover, .v3-pill.active {
    background: rgba(0, 242, 254, 0.1);
    border-color: var(--cyan);
    color: var(--cyan);
}

@media (max-width: 768px) {
    .v3-archive-title { font-size: 32px; }
    .chatbot-v3-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .v3-filter-bar { padding: 8px; }
}

.v3-save-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    background: #f1c40f;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 14px;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(241, 196, 15, 0.3);
}

.v3-info-area {
    padding: 20px;
    background: #0f172a;
    position: relative;
    z-index: 3;
}

.v3-title {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.v3-version {
    font-size: 10px;
    color: var(--cyan);
    border: 1px solid rgba(0, 242, 254, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
}

.v3-excerpt {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.5;
    margin-bottom: 15px;
    min-height: 36px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.v3-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 12px;
}

.v3-stats {
    font-size: 11px;
    color: #64748b;
}

.v3-price-wrap {
    text-align: right;
}

.v3-old-price {
    font-size: 11px;
    color: #ef4444;
    text-decoration: line-through;
    margin-right: 8px;
}

.v3-current-price {
    font-size: 18px;
    font-weight: 900;
    color: #f59e0b;
}

@media (max-width: 1200px) {
    .chatbot-v3-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
    .chatbot-v3-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
}

@media (max-width: 600px) {
    .v3-info-area { padding: 12px; }
    .v3-title { font-size: 14px; }
    .v3-excerpt { font-size: 10px; }
    .v3-current-price { font-size: 16px; }
}

/* Thêm style đặc biệt cho thanh bar giống ảnh tham chiếu */
.chatbot-premium-card .card-action-bar {
    background: rgba(20, 184, 166, 0.15) !important;
    color: #2dd4bf !important;
    border-top: 1px solid rgba(20, 184, 166, 0.2) !important;
}

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

/* 7. Sidebar Overlay (Mobile) */
.sidebar-overlay { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(0,0,0,0.6); backdrop-filter: blur(5px);
    z-index: 950; display: none;
}
#main-sidebar.active + .sidebar-overlay { display: block; }

/* 8. Pulse Animation */
@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 78, 80, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(255, 78, 80, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 78, 80, 0); }
}
.action-btn.red.pulse { animation: pulse 2s infinite; }
.action-btn.purple .badge-mini { background: #ffcc00; color: #000; } /* Special GIÁ RẺ badge color */

/* 9. Media Queries */
@media (max-width: 1200px) {
    .site-header .center-section { display: none; }
}

@media (max-width: 1100px) {
    #main-sidebar { transform: translateX(-100%) !important; width: 260px !important; }
    #main-sidebar.active { transform: translateX(0) !important; }
    #content-area, #content, #primary { margin-left: 0 !important; width: 100% !important; max-width: 100% !important; }
    .site-header { left: 0 !important; width: 100% !important; height: auto !important; min-height: var(--header-height); }
    .menu-toggle { display: block !important; }
    
    /* Horizontal Menu for Mobile */
    .top-nav-links { 
        display: flex !important; 
        overflow-x: auto !important; 
        white-space: nowrap !important;
        padding: 10px 0 !important;
        gap: 12px !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        flex: 1;
        margin-left: 10px;
    }
    .top-nav-links::-webkit-scrollbar { display: none; }
    .top-nav-links a { 
        font-size: 13px !important; 
        padding: 6px 15px !important;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 15px;
        flex-shrink: 0 !important;
    }
}

@media (max-width: 600px) {
    .site-main { padding: 10px; }
    .header-container { padding: 0 10px; }
    .chatbot-grid, .course-grid { 
        grid-template-columns: 1fr 1fr !important; 
        gap: 12px !important; 
    }
}

/* 13. Checkout & Single Product Styles */
.btn-primary-glow { 
    display: inline-flex; align-items: center; gap: 12px; justify-content: center;
    padding: 16px 40px; border-radius: 12px; background: var(--blue-gradient); 
    color: #fff; font-weight: 800; font-size: 16px; transition: 0.3s;
    box-shadow: 0 10px 30px rgba(0, 242, 254, 0.3); border: none; cursor: pointer;
}
.btn-primary-glow:hover { transform: scale(1.02); }
.full-width { width: 100%; }

.checkout-container { width: 100%; max-width: 900px; margin: 40px auto; padding: 50px; border-radius: 30px; }
.qr-box { background: #fff; padding: 20px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.bank-details { padding: 20px; background: rgba(0, 242, 254, 0.05); border-radius: 15px; border: 1px dashed var(--cyan); font-size: 13px; color: var(--text-muted); }
.bank-details code { background: #000; padding: 2px 8px; border-radius: 4px; color: var(--cyan); font-weight: 700; }

/* 14. Ultimate Layout Logic (260px Sidebar + 20px Gap) */
@media (min-width: 1101px) {
    #main-sidebar { 
        transform: translateX(0) !important; 
        width: 260px !important; 
        position: fixed !important;
        left: 0 !important;
        top: 0 !important;
        z-index: 1000 !important;
        display: block !important;
    }
    /* DỨT ĐIỂM: Chỉ #content-area mang lề 260px, xóa bỏ mọi cộng dồn của các lớp con */
    #content-area { 
        margin-left: 260px !important; 
        width: calc(100% - 260px) !important; 
        max-width: 100% !important;
        position: relative !important;
        display: block !important;
    }
    
    #content, .site-content, #primary, .site-main, .featured-section, .home-category-section {
        margin-left: 0 !important;
        padding-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .site-header { 
        left: 260px !important; 
        width: calc(100% - 260px) !important;
        position: fixed !important;
        z-index: 999 !important;
    }
    .header-container { padding-left: 20px !important; justify-content: flex-start !important; }
}

@media (max-width: 1100px) {
    #main-sidebar { transform: translateX(-100%) !important; width: 260px !important; }
    #main-sidebar.active { transform: translateX(0) !important; }
    #content-area, #content, #primary { margin-left: 0 !important; width: 100% !important; max-width: 100% !important; }
    .site-header { left: 0 !important; width: 100% !important; }
    .menu-toggle { display: block !important; }
}


/* 1. DESTRUCT SIDEBAR & UTILITY COLUMN (Dứt điểm - Truy quét) */
#secondary, 
.sidebar, 
.sidebar-right,
.utility-column, 
aside.widget-area, 
.antigravity-sidebar-right,
.antigravity-sidebar,
.lg\:col-span-1 {
    display: none !important;
    width: 0 !important;
    max-width: 0 !important;
    flex: 0 0 0 !important;
    visibility: hidden !important;
    opacity: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* GLOBAL CONTAINER BREAK (Phá vỡ giới hạn khung) */
.container, 
.wrapper, 
.canvas, 
.main-content-inner, 
.content-wrapper,
.ast-container,
.site-content .container {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* 2. FORCE FULL-WIDTH MAIN CONTENT (Mobile Only) */
@media (max-width: 768px) {
    #primary, .content-area, .main-content {
        width: 100% !important;
        max-width: 100% !important;
        flex: 100% !important;
        margin: 0 !important;
    }
}

/* 4. ALIGN COPYRIGHT TEXT */
.site-info, 
.copy-right, 
footer .container {
    text-align: center !important;
    padding-bottom: 20px !important;
    background: #0d0d0d !important;
}

.custom-footer-info {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 10px;
    background: #0d0d0d;
    color: #00ffcc;
    font-weight: 600;
    font-size: 14px;
    border-top: 1px solid #222;
    letter-spacing: 0.5px;
    line-height: 1.6;
    flex-wrap: wrap;
    gap: 15px;
}

@media (max-width: 768px) {
    .custom-footer-info {
        flex-direction: column;
        gap: 5px;
        font-size: 13px;
    }
}

/* ==========================================
   Single Chatbot V3 - 2-Column Hero
   ========================================== */
.chatbot-v3-single {
    display: grid !important;
    grid-template-columns: 380px 1fr !important;
    gap: 40px !important;
    align-items: start !important;
    margin-top: 40px !important;
    padding: 0 !important; /* Tránh padding kép từ content-area */
}

.v3-single-media {
    width: 100%;
}

.v3-single-video-card {
    aspect-ratio: 9/16;
    border-radius: 24px;
    overflow: hidden;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    cursor: pointer;
}

.v3-single-video-card iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.v3-single-info {
    display: flex;
    flex-direction: column;
}

.v3-single-badges {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.v3-single-tag {
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.v3-single-tag.cyan { color: #00f2fe; border-color: rgba(0, 242, 254, 0.3); }
.v3-single-tag.yellow { color: #fbbf24; border-color: rgba(251, 191, 36, 0.3); }

.v3-single-title {
    font-size: 42px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 25px;
    letter-spacing: -1px;
    line-height: 1.1;
}

.v3-price-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 30px 40px;
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    width: 100%;
}

.v3-price-card .old {
    font-size: 24px;
    color: #94a3b8;
    text-decoration: line-through;
    opacity: 0.5;
}

.v3-price-card .current {
    font-size: 48px;
    font-weight: 900;
    color: #00f2fe;
    text-shadow: 0 0 30px rgba(0, 242, 254, 0.3);
}

.v3-steps-section {
    margin-bottom: 40px;
}

.v3-steps-title {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.v3-steps-list {
    list-style: none;
}

.v3-steps-list li {
    font-size: 14px;
    color: #cbd5e1;
    margin-bottom: 12px;
    display: flex;
    gap: 12px;
    line-height: 1.6;
}

.v3-steps-list li b { color: #f59e0b; }

.v3-single-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.v3-btn-buy {
    flex: 1;
    background: linear-gradient(90deg, #06b6d4, #0891b2);
    color: #000;
    font-weight: 900;
    padding: 20px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 18px;
    box-shadow: 0 10px 25px rgba(6, 182, 212, 0.3);
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

.v3-btn-buy:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 35px rgba(6, 182, 212, 0.5);
}

.v3-btn-save {
    width: 65px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: 0.3s;
}

.v3-btn-save:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fbbf24;
}

/* Gallery Demo Area */
.v3-media-title {
    font-size: 14px;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.v3-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.v3-gallery-item {
    aspect-ratio: 16/9;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
    cursor: pointer;
}

.v3-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s;
}

.v3-gallery-item:hover img {
    transform: scale(1.1);
}

.v3-single-tag-outline {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 600;
}

@media (max-width: 1000px) {
    .chatbot-v3-single { grid-template-columns: 1fr; gap: 20px; }
    .v3-single-media { max-width: 350px; margin: 0 auto; }
    .v3-single-title { font-size: 32px; }
}

/* HIGH-LEVEL DIRECTIVE: UNIFIED LEFT ALIGNMENT (NO DOUBLE MARGIN) */
/* CHỈ áp dụng lề 260px cho lớp bọc ngoài duy nhất là #content-area */
#content-area { 
    margin-left: 260px !important; 
    padding-left: 40px !important; /* Tạo khoảng trống ~1cm từ sidebar */
    width: calc(100% - 260px) !important;
    max-width: 100% !important;
    display: block !important;
    position: relative !important;
}

/* Ép tất cả các lớp lồng bên trong về 0 để tránh cộng dồn lề */
#content, 
.site-content, 
#primary, 
.site-main { 
    margin-left: 0 !important; 
    padding-left: 0 !important; 
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    text-align: left !important;
}

/* Giải phóng hoàn toàn các lớp bên trong */
.container, .wrapper, .main-content, .grid-container, .canvas, .featured-section, .home-category-section, .category-header {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    text-align: left !important;
}

.chatbot-grid, .course-grid, .category-header {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    margin: 0 !important;
    padding: 0 !important;
}

.chatbot-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
    justify-items: start !important;
    gap: 20px !important;
}

/* 15. ADVERTISING SERVICES PAGE STYLE (V2) */
.service-grid-v2 {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
    gap: 25px !important;
    margin-top: 30px !important;
}

.service-card-v2 {
    background: var(--bg-surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: 16px !important;
    padding: 30px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
}

.service-card-v2:hover {
    transform: translateY(-8px) !important;
    border-color: var(--cyan) !important;
    box-shadow: 0 15px 40px rgba(0, 242, 254, 0.1) !important;
}

.service-card-v2 .card-thumb-v2 {
    width: 100% !important;
    height: 140px !important;
    border-radius: 12px 12px 0 0 !important;
    overflow: hidden !important;
    margin-bottom: 20px !important;
    margin: -20px -20px 20px -20px !important;
}

.service-card-v2 .card-thumb-v2 img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: 0.5s !important;
}

.service-card-v2:hover .card-thumb-v2 img {
    transform: scale(1.1) rotate(1deg) !important;
}

.service-card-v2 .service-icon {
    font-size: 40px !important;
    color: var(--cyan) !important;
    margin-bottom: 20px !important;
    background: rgba(0, 242, 254, 0.05) !important;
    width: 80px !important;
    height: 80px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
}

.service-card-v2 .service-title {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #fff !important;
    margin-bottom: 15px !important;
    line-height: 1.3 !important;
}

.service-card-v2 .service-desc {
    font-size: 14px !important;
    color: var(--text-muted) !important;
    margin-bottom: 25px !important;
    line-height: 1.6 !important;
    flex-grow: 1 !important;
}

.service-card-v2 .service-price {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: var(--cyan) !important;
    margin-bottom: 20px !important;
    padding: 10px 20px !important;
    background: rgba(0, 242, 254, 0.05) !important;
    border-radius: 8px !important;
    width: 100% !important;
}

.service-card-v2 .btn-buy-service {
    width: 100% !important;
    background: var(--blue-gradient) !important;
    color: #000 !important;
    font-weight: 800 !important;
    padding: 12px !important;
    border-radius: 8px !important;
    text-transform: uppercase !important;
    font-size: 14px !important;
    transition: 0.3s !important;
    border: none !important;
    cursor: pointer !important;
}

.service-card-v2 .btn-buy-service:hover {
    opacity: 0.9 !important;
    transform: scale(1.02) !important;
}

.service-card-v2 .btn-details-service {
    width: 100% !important;
    background: transparent !important;
    border: 1px solid var(--cyan) !important;
    color: var(--cyan) !important;
    font-weight: 700 !important;
    padding: 10px !important;
    border-radius: 8px !important;
    text-transform: uppercase !important;
    font-size: 13px !important;
    margin-bottom: 10px !important;
    transition: 0.3s !important;
    cursor: pointer !important;
}

.service-card-v2 .btn-details-service:hover {
    background: rgba(0, 242, 254, 0.1) !important;
    transform: scale(1.02) !important;
}

@media (max-width: 768px) {
    #content-area, #content, .site-content, #primary, .site-main {
        margin-left: 0 !important;
        width: 100% !important;
        padding-left: 10px !important; 
        padding-right: 10px !important;
    }
    .chatbot-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .course-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .service-grid-v2 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    .service-card-v2 {
        padding: 15px 12px !important;
        min-height: 480px !important; /* Đảm bảo đủ chỗ cho content */
    }
    .service-card-v2 .service-title {
        font-size: 15px !important;
        height: 40px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .service-card-v2 .card-thumb-v2 {
        height: 110px !important;
    }
    .service-card-v2 .service-desc {
        display: -webkit-box !important;
        -webkit-line-clamp: 3 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        font-size: 12px !important;
        margin-bottom: 15px !important;
        height: 60px !important;
    }
    .service-card-v2 .service-price {
        font-size: 13px !important;
        padding: 8px 5px !important;
        margin-bottom: 15px !important;
    }
    .service-card-v2 .btn-details-service,
    .service-card-v2 .btn-buy-service {
        padding: 8px !important;
        font-size: 12px !important;
    }
    /* Catch-all rule for the mobile service title to fix scaling issues */
    .service-header h1,
    h1.text-3xl.font-black.text-white.tracking-tight {
        font-size: 18px !important; /* Exactly 60% of 30px */
        line-height: 1.4 !important;
        letter-spacing: normal !important;
        margin-top: 15px !important;
        margin-bottom: 10px !important;
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        font-weight: 900 !important;
    }
    .service-header p {
        font-size: 13px !important;
        padding: 0 10px !important;
    }
}

/* 16. COURSES PAGE REDESIGN (V3) - MATCHING SUGGESTION IMAGE */
.course-archive-header {
    background: transparent;
    padding: 20px 0 20px;
}

/* Category Pills */
.course-filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 25px;
}

.course-pill {
    padding: 8px 22px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none !important;
}

.course-pill.active {
    background: rgba(0, 242, 254, 0.15);
    border-color: var(--cyan);
    color: var(--cyan);
}

.course-pill:hover:not(.active) {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

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

.course-search-input {
    width: 100%;
    background: rgba(17, 24, 39, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    padding: 15px 20px 15px 50px;
    color: #fff;
    outline: none;
    transition: all 0.3s ease;
    font-size: 15px;
}

.course-search-input:focus {
    border-color: var(--cyan);
    background: rgba(17, 24, 39, 0.9);
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.15);
}

.search-icon-inside {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 18px;
}

/* Course Stats Bar */
.course-stats-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 0 5px;
}

.course-count-text {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    font-family: 'Inter', sans-serif;
}

.course-count-text span { color: var(--cyan); }

.course-sort-select {
    background: rgba(17, 24, 39, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 8px 15px;
    border-radius: 10px;
    font-size: 13px;
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 1em;
    padding-right: 35px;
}

/* Refined Course Card (Matching Suggestion Image) */
.course-card-v3 {
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none !important;
}

.course-card-v3:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.v3-thumb-area {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.v3-thumb-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.course-card-v3:hover .v3-thumb-area img {
    transform: scale(1.05);
}

.v3-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.v3-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    line-height: 1.5;
    margin-bottom: 12px;
    height: 45px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #fff !important;
}

.v3-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.v3-difficulty {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #fbbf24;
}

.v3-stats {
    display: flex;
    gap: 15px;
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
}

.v3-stats span { display: flex; align-items: center; gap: 6px; }
.v3-stats i { color: #fbbf24; font-size: 10px; }

.v3-footer {
    margin-top: auto;
    padding-top: 5px;
}

.v3-btn-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.v3-btn-status.free {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.v3-btn-status.paid {
    background: rgba(0, 242, 254, 0.15);
    color: var(--cyan);
    border: 1px solid rgba(0, 242, 254, 0.2);
}

@media (max-width: 768px) {
    .course-archive-header { padding: 15px 5px; }
    .course-pill { padding: 6px 16px; font-size: 12px; }
    .v3-title { font-size: 14px; height: 42px; }
    .v3-card-body { padding: 15px; }
}


/* --- GREEN GLOW BUTTON --- */
.btn-glow-green {
    background: linear-gradient(90deg, #10b981, #34d399) !important;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4) !important;
    animation: glow-green 2s infinite;
}

@keyframes glow-green {
    0% { box-shadow: 0 0 5px rgba(16, 185, 129, 0.4); }
    50% { box-shadow: 0 0 25px rgba(16, 185, 129, 0.8); }
    100% { box-shadow: 0 0 5px rgba(16, 185, 129, 0.4); }
}

/* Global Product Styles for Chatbot Prompt Redesign */
.status-table {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.status-row { transition: background 0.3s; }
.status-row:hover { background: rgba(255, 255, 255, 0.03); }
.badge-item { display: inline-flex; align-items: center; gap: 5px; }
.mini-pills .pill-item { transition: all 0.3s; }
.mini-pills .pill-item:hover { border-color: #00f2fe; color: #00f2fe; }

/* --- WP Editor Content Formatting for Modals --- */
#details-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
}
#details-content ul {
    list-style-type: disc;
    margin-left: 2rem;
    margin-bottom: 1rem;
}
#details-content ol {
    list-style-type: decimal;
    margin-left: 2rem;
    margin-bottom: 1rem;
}
#details-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}
#details-content h1, #details-content h2, #details-content h3, #details-content h4, #details-content h5, #details-content h6 {
    font-weight: 700;
    color: #1f2937;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}
#details-content h1 { font-size: 1.5em; }
#details-content h2 { font-size: 1.4em; }
#details-content h3 { font-size: 1.25em; }
#details-content a {
    color: #3b82f6;
    text-decoration: underline;
}
#details-content strong, #details-content b {
    font-weight: 700;
    color: #111827;
}
#details-content i, #details-content em {
    font-style: italic;
}
#details-content blockquote {
    border-left: 4px solid #e5e7eb;
    padding-left: 1rem;
    font-style: italic;
    color: #6b7280;
    margin-top: 1rem;
    margin-bottom: 1rem;
}
