/* ============================================================
   GIEO QUẺ KINH DỊCH — Main Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Inter:wght@400;500;600&display=swap');

.gqkd-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: 'Inter', -apple-system, sans-serif;
}

/* ========== MASTER HERO BANNER ========== */
.gqkd-hero-banner {
    text-align: center;
    padding: 36px 24px 28px 24px;
    background: linear-gradient(145deg, #fffdfa 0%, #fdf8f0 60%, #fff4e0 100%);
    border: 2px solid #ebd9c5;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(201, 147, 43, 0.1), 0 2px 6px rgba(0,0,0,0.02);
    position: relative;
    overflow: hidden;
}

.gqkd-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #ebd9c5;
    color: #a87420;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
    box-shadow: 0 3px 10px rgba(201, 147, 43, 0.1);
}

.gqkd-hero-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #c9932b;
    box-shadow: 0 0 8px #c9932b;
}

.gqkd-hero-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(24px, 4.5vw, 36px);
    line-height: 1.3;
    color: #1e293b;
    font-weight: 800;
    margin: 0 0 10px 0;
    letter-spacing: -0.5px;
}

.gqkd-hero-tagline {
    font-size: clamp(14px, 2.5vw, 16px);
    color: #64748b;
    margin: 0 0 24px 0;
    font-weight: 500;
}

/* ========== 3-STEP QUICK GUIDE ========== */
.gqkd-guide-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 15px;
}

@media (max-width: 768px) {
    .gqkd-guide-steps {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

.gqkd-step-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #ffffff;
    border: 1.5px solid #ebd9c5;
    border-radius: 14px;
    text-align: left;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    transition: transform 0.2s, border-color 0.2s;
}

.gqkd-step-pill:hover {
    border-color: #c9932b;
    transform: translateY(-2px);
}

.gqkd-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c9932b 0%, #a87420 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 15px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(201, 147, 43, 0.3);
}

.gqkd-step-text strong {
    display: block;
    color: #1e293b;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

.gqkd-step-text small {
    display: block;
    color: #64748b;
    font-size: 12px;
    margin-top: 2px;
    line-height: 1.35;
}

/* ========== SECTION HEADERS ========== */
.gqkd-methods-container {
    margin-bottom: 35px;
}

.gqkd-section-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ebd9c5;
}

.gqkd-sec-icon {
    font-size: 26px;
    line-height: 1;
}

.gqkd-sec-title {
    font-size: 18px;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.gqkd-sec-desc {
    font-size: 13px;
    color: #64748b;
    margin: 2px 0 0 0;
}

/* ========== HERO GRID (3 BIG CARDS) ========== */
.gqkd-hero-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 20px;
}

@media (max-width: 820px) {
    .gqkd-hero-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.gqkd-hero-card {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #faf8f5 100%);
    border: 2px solid #ebd9c5;
    border-radius: 18px;
    padding: 30px 20px 22px 20px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(201, 147, 43, 0.08);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.gqkd-hero-card:hover {
    transform: translateY(-6px);
    border-color: #c9932b;
    box-shadow: 0 12px 30px rgba(201, 147, 43, 0.2);
}

.gqkd-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 9px;
    border-radius: 999px;
}

.gqkd-badge-red {
    background: #b91c1c;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(185, 28, 28, 0.3);
}

.gqkd-badge-gold {
    background: #c9932b;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(201, 147, 43, 0.3);
}

.gqkd-badge-copper {
    background: #9a5a22;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(154, 90, 34, 0.3);
}

.gqkd-card-icon-wrap {
    font-size: 46px;
    line-height: 1;
    margin: 10px 0 12px;
    filter: drop-shadow(0 2px 5px rgba(201, 147, 43, 0.25));
}

.gqkd-card-heading {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 19px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 8px 0;
}

.gqkd-card-summary {
    font-size: 13.5px;
    color: #555555;
    line-height: 1.55;
    margin: 0 0 16px 0;
    flex-grow: 1;
}

.gqkd-card-cta {
    background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(185, 28, 28, 0.25);
    transition: background 0.2s, transform 0.2s;
}

.gqkd-hero-card:hover .gqkd-card-cta {
    background: linear-gradient(135deg, #991b1b 0%, #b91c1c 100%);
}

/* ========== COMPACT GRID (5 LIFE APPLICATION METHODS) ========== */
.gqkd-compact-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

@media (max-width: 992px) {
    .gqkd-compact-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .gqkd-compact-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

.gqkd-compact-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 12px;
    background: #ffffff;
    border: 1.5px solid #ebd9c5;
    border-radius: 14px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    transition: all 0.25s ease;
}

.gqkd-compact-card:hover {
    border-color: #c9932b;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(201, 147, 43, 0.15);
}

.gqkd-compact-icon {
    font-size: 26px;
    line-height: 1;
    flex-shrink: 0;
}

.gqkd-compact-info h4 {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 2px 0;
    line-height: 1.25;
}

.gqkd-compact-info p {
    font-size: 11.5px;
    color: #64748b;
    margin: 0;
    line-height: 1.3;
}

/* ========== MODULE AREA ========== */
.gqkd-module-area {
    padding: 30px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    animation: gqkd-slideIn 0.4s ease;
}

@keyframes gqkd-slideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.gqkd-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: #ffffff !important;
    border: 1.5px solid #c9932b;
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14.5px;
    font-weight: 700;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-decoration: none !important;
}

.gqkd-back-btn:hover {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-color: #ffd700;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 147, 43, 0.25);
    color: #ffd700 !important;
}

/* ========== PLACEHOLDER ========== */
.gqkd-placeholder {
    text-align: center;
    padding: 60px 20px;
}

.gqkd-placeholder h2 {
    color: #0f3460;
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    margin-bottom: 10px;
}

.gqkd-placeholder p {
    color: #666;
    font-size: 15px;
}

.gqkd-coming-soon {
    display: inline-block;
    background: #fef3cd;
    color: #856404;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    margin-top: 15px;
}

/* ========== LOADING ========== */
.gqkd-loading {
    text-align: center;
    padding: 40px;
}

.gqkd-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid #e5e7eb;
    border-top-color: #0f3460;
    border-radius: 50%;
    animation: gqkd-spin 0.8s linear infinite;
}

@keyframes gqkd-spin {
    to { transform: rotate(360deg); }
}

/* ========== MODULE HEADER ========== */
.gqkd-mod-header {
    text-align: center;
    margin-bottom: 30px;
}

.gqkd-mod-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    color: #0f3460;
    margin-bottom: 10px;
}

.gqkd-mod-header p {
    color: #555;
    font-size: 15px;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
}

/* ========== METHOD GRID (2 buttons) ========== */
.gqkd-method-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 600px) {
    .gqkd-method-grid { grid-template-columns: 1fr; }
}

.gqkd-method-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
    border-radius: 16px;
    padding: 35px 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border: 2px solid transparent;
}

.gqkd-method-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(15,52,96,0.35);
    border-color: #ffd700;
}

.gqkd-method-card:active {
    transform: translateY(-2px) scale(0.98);
}

.gqkd-method-icon {
    font-size: 56px;
    margin-bottom: 15px;
    display: block;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.3));
}

.gqkd-method-name {
    font-size: 18px;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.gqkd-method-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    line-height: 1.5;
}

/* ========== METHOD AREA ========== */
.gqkd-lh-method-area {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid #e5e7eb;
    animation: gqkd-slideIn 0.4s ease;
}

/* ========== EXPLAIN SECTION ========== */
.gqkd-explain-section {
    margin-bottom: 40px;
}

.gqkd-explain-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    color: #0f3460;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e7eb;
}

.gqkd-explain-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 600px) {
    .gqkd-explain-grid { grid-template-columns: 1fr; }
}

.gqkd-explain-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 25px;
    transition: box-shadow 0.3s;
}

.gqkd-explain-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.gqkd-explain-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.gqkd-explain-card h4 {
    font-size: 17px;
    color: #0f3460;
    margin-bottom: 10px;
}

.gqkd-explain-card p {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
}

.gqkd-explain-card ul {
    margin: 10px 0 0;
    padding-left: 20px;
}

.gqkd-explain-card li {
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
    line-height: 1.5;
}

/* ========== HỌC KINH DỊCH SECTION ========== */
.gqkd-learn-section {
    margin-top: 40px;
    border-top: 3px solid #0f3460;
    padding-top: 30px;
}

.gqkd-learn-header {
    text-align: center;
    margin-bottom: 25px;
}

.gqkd-learn-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    color: #0f3460;
    margin-bottom: 8px;
}

.gqkd-learn-header p {
    color: #888;
    font-size: 14px;
}

.gqkd-lessons-list {
    max-width: 800px;
    margin: 0 auto;
}

.gqkd-lesson-item {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.gqkd-lesson-item:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.gqkd-lesson-toggle {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    background: #fff;
    transition: background 0.2s;
    user-select: none;
}

.gqkd-lesson-toggle:hover {
    background: #f8f9fa;
}

.gqkd-lesson-toggle.active {
    background: #0f3460;
    color: white;
}

.gqkd-lesson-toggle.active .gqkd-lesson-title {
    color: white;
}

.gqkd-lesson-toggle.active .gqkd-lesson-arrow {
    color: #ffd700;
}

.gqkd-lesson-icon {
    font-size: 24px;
    margin-right: 14px;
    flex-shrink: 0;
}

.gqkd-lesson-title {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.gqkd-lesson-arrow {
    font-size: 18px;
    color: #999;
    margin-left: 10px;
    transition: transform 0.3s;
}

.gqkd-lesson-body {
    padding: 20px 25px;
    background: #fafbfc;
    border-top: 1px solid #e5e7eb;
    font-size: 14px;
    line-height: 1.8;
    color: #444;
    animation: gqkd-slideIn 0.3s ease;
}

.gqkd-lesson-body h5 {
    font-size: 15px;
    color: #0f3460;
    margin: 15px 0 8px;
}

.gqkd-lesson-body ul {
    padding-left: 20px;
    margin: 8px 0;
}

.gqkd-lesson-body li {
    margin-bottom: 5px;
}

.gqkd-lesson-body strong {
    color: #0f3460;
}

.gqkd-lesson-body em {
    color: #666;
    font-style: italic;
}

/* Lesson table (Bát Quái) */
.gqkd-lesson-table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    font-size: 13px;
}

.gqkd-lesson-table th {
    background: #0f3460;
    color: white;
    padding: 8px 12px;
    text-align: left;
    font-weight: 600;
}

.gqkd-lesson-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #e5e7eb;
}

.gqkd-lesson-table tr:nth-child(even) td {
    background: #f8f9fa;
}

.gqkd-lesson-table tr:hover td {
    background: #eef3f8;
}

/* ========== CHAPTER HEADERS ========== */
.gqkd-chapter-header {
    display: flex;
    align-items: center;
    padding: 18px 22px;
    cursor: pointer;
    background: linear-gradient(135deg, #0f3460 0%, #1a1a2e 100%);
    color: #fff;
    border-radius: 12px;
    margin-bottom: 8px;
    transition: all 0.3s;
    user-select: none;
    box-shadow: 0 2px 10px rgba(15,52,96,0.25);
}

.gqkd-chapter-header:hover {
    box-shadow: 0 4px 20px rgba(15,52,96,0.4);
    transform: translateY(-2px);
}

.gqkd-chapter-header.active {
    background: linear-gradient(135deg, #1a4a8a 0%, #0f3460 100%);
    border-radius: 12px 12px 4px 4px;
    margin-bottom: 0;
}

.gqkd-chapter-icon {
    font-size: 26px;
    margin-right: 14px;
    flex-shrink: 0;
}

.gqkd-chapter-title {
    flex: 1;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.gqkd-chapter-header .gqkd-lesson-arrow {
    color: #ffd700;
    font-size: 20px;
}

.gqkd-chapter-body {
    background: #f0f2f5;
    border-radius: 0 0 12px 12px;
    padding: 12px;
    margin-bottom: 12px;
    animation: gqkd-slideIn 0.4s ease;
}

.gqkd-chapter-body .gqkd-lesson-item {
    margin-bottom: 6px;
}

.gqkd-chapter-body .gqkd-lesson-toggle {
    border-radius: 8px;
}

.gqkd-chapter-body .gqkd-lesson-body {
    border-radius: 0 0 8px 8px;
}

/* Lesson subtitle */
.gqkd-lesson-toggle small {
    display: block;
    font-size: 12px;
    margin-top: 3px;
    opacity: 0.7;
    font-weight: 400;
}

.gqkd-lesson-toggle.active small {
    color: rgba(255,255,255,0.6);
}

/* Lesson body ordered lists */
.gqkd-lesson-body ol {
    padding-left: 20px;
    margin: 8px 0;
}

.gqkd-lesson-body ol li {
    margin-bottom: 8px;
}

/* ========== FORM STYLES ========== */
.gqkd-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}
@media (max-width: 500px) {
    .gqkd-form-grid { grid-template-columns: 1fr; }
}
.gqkd-form-group {
    display: flex;
    flex-direction: column;
}
.gqkd-form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 5px;
}
.gqkd-form-group input,
.gqkd-form-group select {
    width: 100%;
    box-sizing: border-box;
    height: 46px;
    padding: 0 14px;
    border: 2px solid #e0e4e8;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s;
    background: #fff;
    cursor: pointer;
}
.gqkd-form-group input:focus,
.gqkd-form-group select:focus {
    border-color: #0f3460;
    outline: none;
    box-shadow: 0 0 0 3px rgba(15,52,96,0.1);
}
.gqkd-btn-gieo {
    display: inline-block;
    background: linear-gradient(135deg, #0f3460, #1a1a2e);
    color: #ffd700;
    border: none;
    padding: 14px 40px;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 15px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(15,52,96,0.3);
}
.gqkd-btn-gieo:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(15,52,96,0.4);
}

/* ========== HEXAGRAM VISUAL ========== */
.gqkd-result-container {
    margin: 25px 0;
    animation: gqkd-slideIn 0.5s ease;
}
.gqkd-calc-steps {
    background: #f0f4f8;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    border-left: 4px solid #0f3460;
}
.gqkd-calc-steps h4 { color: #0f3460; margin-bottom: 12px; }
.gqkd-steps-detail p { font-size: 14px; line-height: 1.8; color: #444; margin: 4px 0; }
.gqkd-hex-row {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}
.gqkd-hex-visual {
    background: #fff;
    border: 2px solid #e0e4e8;
    border-radius: 16px;
    padding: 20px 30px;
    text-align: center;
    min-width: 180px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
}
.gqkd-hex-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #0f3460;
    letter-spacing: 2px;
    margin-bottom: 8px;
}
.gqkd-hex-name {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 700;
    color: #0f3460;
    margin-bottom: 4px;
}
.gqkd-hex-sub {
    font-size: 12px;
    color: #888;
    margin-bottom: 15px;
}
.gqkd-hex-lines {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.gqkd-hex-line {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}
.gqkd-hex-line.gqkd-line-sep {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #ccc;
}
.gqkd-line-solid {
    width: 80px;
    height: 8px;
    background: #0f3460;
    border-radius: 2px;
}
.gqkd-line-broken {
    display: flex;
    gap: 12px;
}
.gqkd-line-broken span {
    width: 34px;
    height: 8px;
    background: #0f3460;
    border-radius: 2px;
}
.gqkd-line-dong .gqkd-line-solid,
.gqkd-line-dong .gqkd-line-broken span {
    background: #dc3545;
}
.gqkd-hao-num {
    font-size: 11px;
    color: #999;
    width: 14px;
    text-align: right;
}
.gqkd-dong-mark {
    font-size: 14px;
    color: #dc3545;
    font-weight: 700;
}

/* Result summary */
.gqkd-result-summary {
    background: linear-gradient(135deg, #f8f9fa, #eef3f8);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #d0d8e4;
}
.gqkd-result-summary p {
    font-size: 15px;
    margin: 6px 0;
    color: #333;
}

/* ========== AI GUIDE BOX & STEPS ========== */
.gqkd-ai-guide-box {
    background: #fffdf5;
    border: 1.5px solid #ebd9c5;
    border-radius: 16px;
    padding: 24px 20px;
    margin-top: 25px;
    margin-bottom: 22px;
    box-shadow: 0 4px 18px rgba(201, 147, 43, 0.08);
    box-sizing: border-box;
}

.gqkd-ai-guide-title {
    text-align: center;
    color: #8b0000;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 16.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 18px;
    line-height: 1.4;
}

.gqkd-ai-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.gqkd-ai-step-card {
    border-radius: 12px;
    padding: 16px 14px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    transition: transform 0.2s, box-shadow 0.2s;
}

.gqkd-ai-step-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.gqkd-ai-step-card.step-1 { border: 1.5px solid #bae6fd; background: #f0f9ff; }
.gqkd-ai-step-card.step-2 { border: 1.5px solid #ddd6fe; background: #f5f3ff; }
.gqkd-ai-step-card.step-3 { border: 1.5px solid #a7f3d0; background: #ecfdf5; }

.gqkd-ai-step-card .step-title {
    font-size: 13.5px;
    font-weight: 800;
    margin-bottom: 6px;
    line-height: 1.35;
}

.gqkd-ai-step-card.step-1 .step-title { color: #0284c7; }
.gqkd-ai-step-card.step-2 .step-title { color: #7c3aed; }
.gqkd-ai-step-card.step-3 .step-title { color: #059669; }

.gqkd-ai-step-card .step-desc {
    font-size: 12.5px;
    color: #475569;
    line-height: 1.55;
}

.gqkd-ai-step-card .step-desc strong {
    color: #1e293b;
}

/* ========== AI RAW TEXT BOX ========== */
.gqkd-ai-text-box {
    background: #ffffff;
    border: 1.5px solid #ebd9c5;
    border-radius: 16px;
    padding: 22px 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 18px rgba(201, 147, 43, 0.06);
    box-sizing: border-box;
}

.gqkd-ai-text-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.gqkd-ai-text-title {
    margin: 0;
    color: #1e293b;
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 800;
    font-size: 16px;
}

.gqkd-ai-text-badge {
    background: #f1f5f9;
    color: #475569;
    font-size: 11.5px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
}

.gqkd-ai-textarea {
    width: 100%;
    min-height: 170px;
    max-height: 280px;
    padding: 14px 16px;
    border: 1.5px solid #334155;
    border-radius: 10px;
    background: #0f172a;
    font-family: Consolas, Monaco, 'Courier New', monospace;
    font-size: 12.5px;
    line-height: 1.6;
    color: #f1f5f9;
    box-sizing: border-box;
    outline: none;
    resize: vertical;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.3);
}

.gqkd-ai-textarea:focus {
    border-color: #c9932b;
    box-shadow: 0 0 0 3px rgba(201, 147, 43, 0.2);
}

.gqkd-ai-btn-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

.gqkd-btn-copy {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
    color: #ffffff !important;
    border: none;
    padding: 12px 22px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(185, 28, 28, 0.25);
    white-space: nowrap;
}

.gqkd-btn-copy:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(185, 28, 28, 0.35);
}

.gqkd-btn-gemini {
    background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 12px 22px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    white-space: nowrap;
}

.gqkd-btn-gemini:hover {
    background: linear-gradient(135deg, #2563eb 0%, #60a5fa 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

.gqkd-btn-chatgpt {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 12px 22px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
    white-space: nowrap;
}

.gqkd-btn-chatgpt:hover {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
}

/* ========== COACH BANNER ========== */
.gqkd-coach-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 26px;
    background: linear-gradient(135deg, #1e3a8a 0%, #152c6b 100%);
    border: 1.5px solid #c9932b;
    border-radius: 16px;
    color: #ffffff !important;
    text-decoration: none !important;
    margin-top: 25px;
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.18);
    transition: transform 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.gqkd-coach-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.28);
}

.gqkd-coach-icon {
    font-size: 38px;
    line-height: 1;
    flex-shrink: 0;
}

.gqkd-coach-text {
    flex: 1;
    text-align: left;
}

.gqkd-coach-text .coach-title {
    font-size: 16.5px;
    font-weight: 800;
    color: #ffd700;
    margin: 0 0 4px 0;
    line-height: 1.35;
}

.gqkd-coach-text .coach-desc {
    font-size: 13.5px;
    color: #e2e8f0;
    margin: 0;
    line-height: 1.45;
}

@media (max-width: 768px) {
    .gqkd-ai-guide-box { padding: 18px 14px; }
    .gqkd-ai-guide-title { font-size: 14.5px; }
    .gqkd-ai-steps-grid { grid-template-columns: 1fr; gap: 10px; }
    .gqkd-ai-text-box { padding: 16px 14px; }
    .gqkd-ai-btn-group { flex-direction: column; width: 100%; gap: 10px; }
    .gqkd-btn-copy, .gqkd-btn-gemini, .gqkd-btn-chatgpt { width: 100%; justify-content: center; box-sizing: border-box; }
    .gqkd-coach-banner { flex-direction: column; text-align: center; padding: 20px 16px; }
    .gqkd-coach-text { text-align: center; }
    .gqkd-coach-banner .gqkd-zalo-btn { width: 100%; justify-content: center; }
}

/* Bat Quai reference table */
.gqkd-bq-table {
    margin-top: 10px;
}
.gqkd-bq-table h4 {
    font-size: 14px;
    color: #0f3460;
    margin-bottom: 8px;
}

/* Coming soon placeholder */
.gqkd-coming-soon {
    text-align: center;
    padding: 30px;
    color: #888;
    font-size: 16px;
}

/* ========== MOBILE RESPONSIVE ========== */
@media (max-width: 768px) {
    .gqkd-wrapper { padding: 20px 15px; }
    .gqkd-header { padding: 30px 15px 25px; }
    .gqkd-logo-img { width: 70px; height: 70px; }
    .gqkd-title { font-size: 24px; }
    .gqkd-intro p { font-size: 14px; }
    .gqkd-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .gqkd-card { padding: 20px 12px; }
    .gqkd-card-icon { font-size: 32px; }
    .gqkd-card-name { font-size: 13px; }
    .gqkd-method-grid { gap: 12px; }
    .gqkd-method-card { padding: 25px 15px; }
    .gqkd-method-icon { font-size: 40px; }
    .gqkd-method-name { font-size: 15px; }
    .gqkd-hex-row { gap: 15px; }
    .gqkd-hex-visual { min-width: 140px; padding: 15px; }
    .gqkd-hex-name { font-size: 15px; }
    .gqkd-line-solid { width: 60px; height: 6px; }
    .gqkd-line-broken span { width: 24px; height: 6px; }
    .gqkd-line-broken { gap: 8px; }
    .gqkd-explain-grid { grid-template-columns: 1fr; }
    .gqkd-mod-header h2 { font-size: 22px; }
    .gqkd-chapter-title { font-size: 14px; }
    .gqkd-ai-textarea { font-size: 11px; min-height: 150px; }
    .gqkd-btn-gieo { padding: 12px 30px; font-size: 15px; width: 100%; }
}

@media (max-width: 480px) {
    .gqkd-grid { grid-template-columns: 1fr; }
    .gqkd-hex-row { flex-direction: column; align-items: center; }
    .gqkd-hex-visual { width: 100%; max-width: 250px; }
    .gqkd-method-grid { grid-template-columns: 1fr; }
}


/* ========== LEARN TOGGLE ACCORDION & ZALO BANNER STYLES ========== */
.gqkd-learn-toggle-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: linear-gradient(145deg, #fffdfa 0%, #fdf8f0 100%);
    border: 1.5px solid #ebd9c5;
    border-radius: 16px;
    padding: 18px 22px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    transition: all 0.25s;
}

.gqkd-learn-toggle-box:hover {
    border-color: #c9932b;
    box-shadow: 0 6px 18px rgba(201, 147, 43, 0.12);
}

.gqkd-learn-toggle-left {
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
}

.gqkd-learn-main-icon {
    font-size: 32px;
    line-height: 1;
    flex-shrink: 0;
}

.gqkd-learn-main-title {
    font-size: 16px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 3px 0;
}

.gqkd-learn-main-sub {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

.gqkd-learn-toggle-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    border: 1px solid #ebd9c5;
    color: #a87420;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 999px;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(201, 147, 43, 0.1);
}

@media (max-width: 640px) {
    .gqkd-learn-toggle-box {
        flex-direction: column;
        align-items: flex-start;
    }
    .gqkd-learn-toggle-badge {
        width: 100%;
        justify-content: center;
        margin-top: 8px;
    }
}

.gqkd-zalo-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 28px;
    background: linear-gradient(135deg, #1e3a8a 0%, #152c6b 100%);
    border: 1.5px solid #c9932b;
    border-radius: 18px;
    color: #ffffff;
    margin-top: 35px;
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.18);
}

.gqkd-zalo-icon {
    font-size: 38px;
    line-height: 1;
    flex-shrink: 0;
}

.gqkd-zalo-text {
    flex: 1;
    text-align: left;
}

.gqkd-zalo-text h4 {
    font-size: 16.5px;
    font-weight: 800;
    color: #ffd700;
    margin: 0 0 4px 0;
}

.gqkd-zalo-text p {
    font-size: 13.5px;
    color: #e2e8f0;
    margin: 0;
    line-height: 1.45;
}

.gqkd-zalo-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0068FF;
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 15px;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(0, 104, 255, 0.35);
    transition: transform 0.2s, background 0.2s;
}

.gqkd-zalo-btn:hover {
    background: #0056cc;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .gqkd-zalo-banner {
        flex-direction: column;
        text-align: center;
        padding: 22px 18px;
    }
    .gqkd-zalo-text {
        text-align: center;
    }
    .gqkd-zalo-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================================
   LIVE AI KINH DỊCH BOT PANEL (DIRECT ON WEB VIA VPS GATEWAY)
   ============================================================ */
.gqkd-ai-live-card {
    background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%);
    border: 2px solid #c9932b;
    border-radius: 20px;
    padding: 28px 26px;
    margin: 28px 0;
    color: #f8fafc;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(201, 147, 43, 0.25);
}

.gqkd-ai-live-header {
    text-align: center;
    margin-bottom: 22px;
    border-bottom: 1px solid rgba(201, 147, 43, 0.28);
    padding-bottom: 18px;
}

.gqkd-ai-live-badge {
    display: inline-block;
    background: linear-gradient(135deg, #c9932b 0%, #a87420 100%);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.6px;
    padding: 5px 14px;
    border-radius: 999px;
    margin-bottom: 10px;
    text-transform: uppercase;
    box-shadow: 0 3px 10px rgba(201, 147, 43, 0.35);
}

.gqkd-ai-live-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 22px;
    font-weight: 800;
    color: #fde68a !important;
    margin: 0 0 8px 0;
    line-height: 1.35;
}

.gqkd-ai-live-sub {
    font-size: 13.5px;
    color: #cbd5e1;
    margin: 0 auto;
    max-width: 780px;
    line-height: 1.55;
}

.gqkd-ai-live-form {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 18px;
}

.gqkd-ai-q-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #fde68a;
    margin-bottom: 10px;
}

.gqkd-ai-q-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.gqkd-ai-chip {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(201, 147, 43, 0.4);
    color: #f1f5f9;
    font-size: 12.5px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gqkd-ai-chip:hover {
    background: #c9932b;
    color: #ffffff;
    border-color: #c9932b;
    transform: translateY(-1px);
}

.gqkd-ai-q-input-row {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.gqkd-ai-q-input {
    flex: 1;
    background: #ffffff !important;
    color: #0f172a !important;
    border: 2px solid #cbd5e1 !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    font-size: 14.5px !important;
    font-weight: 500 !important;
    margin: 0 !important;
    height: auto !important;
    min-height: 48px !important;
    box-sizing: border-box !important;
}

.gqkd-ai-q-input:focus {
    border-color: #c9932b !important;
    outline: none !important;
}

.gqkd-btn-run-ai {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: #ffffff !important;
    border: 1.5px solid #fca5a5;
    border-radius: 12px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.gqkd-btn-run-ai:hover:not(:disabled) {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.55);
}

.gqkd-btn-run-ai:disabled {
    opacity: 0.75;
    cursor: wait;
}

/* Loading Box */
.gqkd-ai-loading-box {
    text-align: center;
    padding: 32px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(201, 147, 43, 0.5);
    border-radius: 14px;
    margin-top: 20px;
}

.gqkd-ai-loading-title {
    color: #fde68a !important;
    font-size: 17px;
    font-weight: 800;
    margin: 14px 0 6px 0;
}

.gqkd-ai-loading-step {
    color: #cbd5e1;
    font-size: 14px;
    margin: 0;
}

/* AI Report Card */
.gqkd-ai-report-card {
    background: #fffdfa;
    color: #1e293b;
    border: 2px solid #ebd9c5;
    border-radius: 16px;
    margin-top: 22px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.gqkd-ai-report-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: linear-gradient(90deg, #7f1d1d 0%, #991b1b 100%);
    padding: 14px 20px;
    color: #ffffff;
}

.gqkd-ai-report-badge {
    font-size: 13.5px;
    font-weight: 800;
    letter-spacing: 0.4px;
    color: #fef08a;
}

.gqkd-btn-copy-report {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.gqkd-btn-copy-report:hover {
    background: rgba(255, 255, 255, 0.28);
}

.gqkd-ai-report-body {
    padding: 24px 26px;
    font-size: 15px;
    line-height: 1.72;
    color: #1e293b;
    text-align: left;
}

.gqkd-md-sec-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 18px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 16.5px;
    margin: 22px 0 14px 0;
    line-height: 1.35;
}

.gqkd-md-sec-banner:first-child {
    margin-top: 0;
}

.gqkd-md-sec-banner .sec-icon {
    font-size: 22px;
    flex-shrink: 0;
}

.gqkd-md-sec-banner.sec-maihoa {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border-left: 5px solid #ea580c;
    color: #9a3412;
}

.gqkd-md-sec-banner.sec-luchao {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-left: 5px solid #b91c1c;
    color: #7f1d1d;
}

.gqkd-md-sec-banner.sec-phanquyet {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-left: 5px solid #059669;
    color: #065f46;
}

.gqkd-md-h3 {
    font-size: 17px;
    font-weight: 800;
    color: #8b0000;
    margin: 18px 0 8px 0;
}

.gqkd-md-h4 {
    font-size: 15.5px;
    font-weight: 700;
    color: #0f3460;
    margin: 14px 0 6px 0;
}

.gqkd-md-p {
    margin: 0 0 10px 0;
    color: #1e293b;
}

.gqkd-md-ul {
    margin: 0 0 14px 0;
    padding-left: 20px;
}

.gqkd-md-ul li {
    margin-bottom: 7px;
    color: #1e293b;
}

.gqkd-md-ul li.gqkd-md-subli {
    margin-left: 16px;
    list-style-type: circle;
    color: #334155;
}

.gqkd-md-code {
    background: #fef3c7;
    color: #92400e;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.92em;
}

.gqkd-md-hr {
    border: none;
    border-top: 1px dashed #cbd5e1;
    margin: 18px 0;
}

/* Follow-up Chat Area */
.gqkd-ai-chat-wrap {
    margin-top: 22px;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(201, 147, 43, 0.45);
    border-radius: 16px;
    padding: 18px 20px;
}

.gqkd-ai-chat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.gqkd-ai-chat-head span {
    font-weight: 800;
    font-size: 15px;
    color: #fde68a;
}

.gqkd-ai-chat-head small {
    font-size: 12.5px;
    color: #cbd5e1;
}

.gqkd-ai-chat-messages {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 520px;
    overflow-y: auto;
    margin-bottom: 12px;
}

.gqkd-chat-msg {
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 14.5px;
    line-height: 1.65;
}

.gqkd-chat-user {
    background: rgba(59, 130, 246, 0.18);
    border: 1px solid rgba(96, 165, 250, 0.4);
    color: #f8fafc;
    align-self: flex-end;
    width: 92%;
}

.gqkd-chat-bot {
    background: #fffdfa;
    border: 1.5px solid #ebd9c5;
    color: #1e293b;
    align-self: flex-start;
    width: 100%;
}

.gqkd-chat-role {
    font-weight: 800;
    font-size: 13px;
    margin-bottom: 6px;
    color: #c9932b;
}

.gqkd-chat-user .gqkd-chat-role {
    color: #93c5fd;
}

.gqkd-chat-bot .gqkd-ai-report-body {
    padding: 4px 0 0 0;
}

.gqkd-ai-chat-FollowChips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.gqkd-ai-chip-sm {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(253, 230, 138, 0.35);
    color: #fef08a;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 11px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s;
}

.gqkd-ai-chip-sm:hover {
    background: #c9932b;
    color: #ffffff;
}

.gqkd-ai-chat-input-bar {
    display: flex;
    gap: 10px;
}

.gqkd-ai-chat-input {
    flex: 1;
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 10px !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    margin: 0 !important;
    height: 44px !important;
}

.gqkd-btn-send-chat {
    background: linear-gradient(135deg, #c9932b 0%, #a87420 100%);
    color: #ffffff !important;
    border: none;
    border-radius: 10px;
    padding: 0 20px;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
}

.gqkd-ai-error-box {
    background: rgba(220, 38, 38, 0.15);
    border: 1px solid #f87171;
    color: #fecaca;
    padding: 14px 18px;
    border-radius: 12px;
    margin-top: 16px;
    font-weight: 600;
    text-align: center;
}

.gqkd-ai-raw-details {
    margin-top: 18px;
    font-size: 13px;
    color: #94a3b8;
}

.gqkd-ai-raw-details summary {
    cursor: pointer;
    font-weight: 600;
    color: #cbd5e1;
    padding: 6px 0;
}

@media (max-width: 768px) {
    .gqkd-ai-live-card { padding: 20px 14px; }
    .gqkd-ai-live-title { font-size: 18px; }
    .gqkd-ai-q-input-row { flex-direction: column; }
    .gqkd-btn-run-ai { width: 100%; padding: 14px; }
    .gqkd-ai-report-topbar { flex-direction: column; align-items: flex-start; }
    .gqkd-ai-report-body { padding: 16px 14px; font-size: 14.5px; }
    .gqkd-ai-chat-input-bar { flex-direction: column; }
    .gqkd-btn-send-chat { width: 100%; padding: 12px; }
}
