/* TÃ´ng mÃ u HoÃ ng Kim (Premium Dark-Gold) */
:root {
    --shk-bg-dark: #121212;
    --shk-bg-card: #1e1e1e;
    --shk-gold: #d4af37;
    --shk-gold-light: #f3e5ab;
    --shk-text-light: #e0e0e0;
    --shk-text-muted: #888;
    --shk-border: #333;
    --shk-red: #e74c3c;
    --shk-green: #2ecc71;
    --shk-blue: #3498db;
    --shk-orange: #e67e22;
}

@keyframes shk-pulse-border {
    0% { border-color: var(--shk-gold); box-shadow: 0 0 5px rgba(212,175,55,0.2); transform: scale(1); }
    50% { border-color: #fff; box-shadow: 0 0 15px rgba(212,175,55,0.8); transform: scale(1.02); }
    100% { border-color: var(--shk-gold); box-shadow: 0 0 5px rgba(212,175,55,0.2); transform: scale(1); }
}

/* ============================================================ */
/* FLOATING CHATBOT WIDGET STYLING */
/* ============================================================ */
:root {
    --shk-gold-light: #f3e5ab;
    --shk-gold: #d4af37;
    --shk-gold-dark: #aa7c11;
    --shk-dark-bg: #141414;
    --shk-glass-bg: rgba(26, 26, 26, 0.95);
    --shk-glass-border: rgba(212, 175, 55, 0.2);
    --shk-text-light: #e2e8f0;
    --shk-text-muted: #a0aec0;
}

.shk-chatbot-window {
    position: fixed;
    bottom: 95px;
    right: 25px;
    width: 380px;
    height: 580px;
    max-width: calc(100vw - 50px);
    max-height: calc(100vh - 120px);
    background: var(--shk-glass-bg);
    border: 1px solid var(--shk-glass-border);
    border-radius: 16px;
    box-shadow: 0 20px 45px rgba(0,0,0,0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 999999;
    font-family: 'Be Vietnam Pro', 'Inter', 'Roboto', sans-serif;
    color: var(--shk-text-light);
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.shk-chat-header {
    padding: 15px 20px;
    background: rgba(0,0,0,0.4);
    border-bottom: 1px solid var(--shk-glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.shk-bot-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.shk-bot-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid var(--shk-gold);
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--shk-gold);
    font-weight: bold;
    font-size: 1rem;
    box-shadow: 0 0 8px rgba(212,175,55,0.3);
}

.shk-bot-status {
    font-size: 0.75rem;
    color: #4caf50;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 2px;
}

.shk-bot-status::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #4caf50;
    box-shadow: 0 0 6px #4caf50;
}

.shk-chatbot-close-btn {
    background: transparent;
    border: none;
    color: #a0aec0;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.shk-chatbot-close-btn:hover {
    color: #fff !important;
}

.shk-chat-feed {
    flex: 1;
    padding: 15px 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(0,0,0,0.15);
}

/* Chat bubble styling */
.shk-message {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 14px;
    line-height: 1.5;
    font-size: 0.9rem;
    word-break: break-word;
    animation: shkSlideUp 0.3s ease forwards;
    box-sizing: border-box;
}

.shk-message.bot {
    align-self: flex-start;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    color: var(--shk-text-light);
    border-top-left-radius: 2px;
}

.shk-message.user {
    align-self: flex-end;
    background: linear-gradient(135deg, rgba(212,175,55,0.18) 0%, rgba(170,124,17,0.18) 100%);
    border: 1px solid var(--shk-glass-border);
    color: #fff;
    border-top-right-radius: 2px;
}

/* Chatbot control elements */
.shk-chat-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 5px;
    width: 100%;
}

.shk-option-btn {
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid var(--shk-glass-border);
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    transition: all 0.25s ease;
    font-size: 0.85rem;
    box-sizing: border-box;
    width: 100%;
}

.shk-option-btn:hover {
    background: var(--shk-gold);
    color: #000 !important;
    border-color: var(--shk-gold);
    transform: translateX(3px);
}

.shk-chat-input-area {
    padding: 12px 15px;
    background: rgba(0,0,0,0.4);
    border-top: 1px solid var(--shk-glass-border);
    display: flex;
    gap: 8px;
    align-items: center;
}

.shk-chat-input {
    flex: 1;
    background: rgba(0,0,0,0.6) !important;
    border: 1px solid var(--shk-glass-border) !important;
    color: #fff !important;
    border-radius: 8px !important;
    padding: 10px 12px !important;
    font-size: 0.9rem !important;
    box-sizing: border-box !important;
    outline: none !important;
    height: 38px !important;
}

.shk-chat-input:focus {
    border-color: var(--shk-gold) !important;
}

.shk-chat-send-btn {
    background: linear-gradient(135deg, var(--shk-gold) 0%, var(--shk-gold-dark) 100%);
    border: none;
    color: #000 !important;
    font-weight: bold;
    height: 38px;
    padding: 0 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.shk-chat-send-btn:hover:not(:disabled) {
    box-shadow: 0 0 10px rgba(212,175,55,0.4);
}

.shk-chat-send-btn:disabled {
    background: var(--shk-text-muted);
    cursor: not-allowed;
    color: rgba(0,0,0,0.5) !important;
}

.shk-mic-btn {
    position: absolute;
    right: 10px;
    background: transparent;
    border: none;
    color: var(--shk-gold);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    transition: all 0.3s;
    padding: 0;
    z-index: 102;
}

.shk-mic-btn:hover {
    background: rgba(212, 175, 55, 0.15) !important;
    transform: scale(1.1);
}

.shk-mic-btn.recording {
    color: #ff3333 !important;
    background: rgba(255, 51, 51, 0.15) !important;
    animation: shk-pulse-recording 1.5s infinite;
}

@keyframes shk-pulse-recording {
    0% { box-shadow: 0 0 0 0 rgba(255, 51, 51, 0.4); }
    70% { box-shadow: 0 0 0 8px rgba(255, 51, 51, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 51, 51, 0); }
}

/* Typing indicator */
.shk-typing {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 8px;
}

.shk-typing span {
    width: 5px;
    height: 5px;
    background-color: var(--shk-gold);
    border-radius: 50%;
    display: inline-block;
    animation: shkBounce 1.4s infinite both;
}

.shk-typing span:nth-child(1) { animation-delay: 0s; }

.shk-typing span:nth-child(2) { animation-delay: 0.2s; }

.shk-typing span:nth-child(3) { animation-delay: 0.4s; }

/* Markdown styling in chat */
.shk-message p { margin-bottom: 8px; }

.shk-message p:last-child { margin-bottom: 0; }

.shk-message strong { color: var(--shk-gold-light); }

.shk-message ul { margin-left: 15px; margin-bottom: 8px; padding-left: 0; }

.shk-message li { margin-bottom: 4px; }

.shk-chat-link {
    color: var(--shk-gold) !important;
    text-decoration: underline !important;
    font-weight: bold;
}

.shk-chat-link:hover {
    color: #fff !important;
}

.shk-table-responsive {
    overflow-x: auto;
    margin: 10px 0;
    border-radius: 8px;
    border: 1px solid var(--shk-glass-border);
}

.shk-chat-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.shk-chat-table th, .shk-chat-table td {
    padding: 8px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    text-align: left;
}

.shk-chat-table th {
    background-color: rgba(212,175,55,0.1);
    color: var(--shk-gold);
    font-weight: 600;
}

/* Recommendations Grid */
.shk-chatbot-rec-wrapper {
    margin-top: 15px !important;
    width: 100% !important;
}

.shk-chatbot-rec-tabs {
    display: flex !important;
    border-bottom: 1px solid var(--shk-glass-border) !important;
    margin-bottom: 12px !important;
    gap: 4px !important;
    overflow-x: auto;
    scrollbar-width: none;
}

.shk-chatbot-rec-tabs::-webkit-scrollbar {
    display: none;
}

.shk-chatbot-rec-tab-btn {
    background: transparent !important;
    border: none !important;
    color: var(--shk-text-muted) !important;
    padding: 8px 12px !important;
    cursor: pointer !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    transition: all 0.3s !important;
    white-space: nowrap;
}

.shk-chatbot-rec-tab-btn.active {
    color: var(--shk-gold) !important;
    border-bottom: 2px solid var(--shk-gold) !important;
    background: rgba(212,175,55,0.05) !important;
}

.shk-chatbot-rec-grid {
    display: none !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
}

.shk-chatbot-rec-grid.active {
    display: grid !important;
}

.shk-chatbot-sim-card {
    background: #000000 !important;
    border: 1px solid #333333 !important;
    border-radius: 10px !important;
    padding: 10px 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    box-sizing: border-box !important;
    transition: all 0.3s !important;
}

.shk-chatbot-sim-card:hover {
    border-color: var(--shk-gold) !important;
    background: #111111 !important;
}

.shk-chatbot-sim-info-left {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
}

.shk-chatbot-sim-number {
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    letter-spacing: 0.5px !important;
    font-family: monospace !important;
    text-align: left !important;
}

.shk-chatbot-sim-price {
    color: var(--shk-gold) !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
}

.shk-chatbot-sim-advantages {
    font-size: 0.7rem !important;
    color: #aaaaaa !important;
}

.shk-chatbot-sim-order-btn {
    background: linear-gradient(135deg, var(--shk-gold) 0%, var(--shk-gold-dark) 100%) !important;
    color: #000000 !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    padding: 6px 12px !important;
    border-radius: 6px !important;
    text-align: center !important;
    transition: all 0.3s !important;
    font-size: 0.75rem !important;
    white-space: nowrap !important;
}

.shk-chatbot-sim-order-btn:hover {
    box-shadow: 0 0 8px rgba(212,175,55,0.5) !important;
}

/* Custom form inputs inside chat */
.shk-input-group-chat {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.shk-input-group-chat input[type="text"], 
.shk-input-group-chat input[type="date"],
.shk-input-group-chat select {
    background: rgba(0,0,0,0.5) !important;
    border: 1px solid var(--shk-glass-border) !important;
    color: #fff !important;
    border-radius: 8px !important;
    padding: 8px 10px !important;
    font-size: 0.85rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
    outline: none !important;
    height: 36px !important;
}

.shk-input-group-chat select option {
    background: #1a1a1a !important;
    color: #fff !important;
}

.shk-input-submit-btn {
    background: linear-gradient(135deg, var(--shk-gold) 0%, var(--shk-gold-dark) 100%);
    color: #000 !important;
    font-weight: bold;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.shk-input-submit-btn:hover {
    box-shadow: 0 0 8px rgba(212,175,55,0.4);
}

/* Launcher Button */
.shk-chatbot-launcher {
    position: fixed;
    bottom: 155px;
    right: 25px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--shk-gold) 0%, var(--shk-gold-dark) 100%);
    border: 2px solid #111;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(212,175,55,0.4);
    z-index: 999998;
    transition: all 0.3s;
}

.shk-chatbot-launcher:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 25px rgba(212,175,55,0.6);
}

.shk-chatbot-launcher svg {
    fill: #000;
}

.shk-pulse {
    animation: shkPulseAnim 2s infinite;
}

/* Chatbot Analysis Widget Tabs */
.shk-chatbot-analysis-wrapper {
    margin-top: 10px !important;
    background: rgba(0,0,0,0.3) !important;
    border: 1px solid var(--shk-glass-border) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.shk-chatbot-analysis-tabs {
    display: flex !important;
    background: rgba(0,0,0,0.4) !important;
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
}

.shk-chatbot-analysis-tab-btn {
    background: transparent !important;
    border: none !important;
    color: var(--shk-text-muted) !important;
    padding: 10px 14px !important;
    cursor: pointer !important;
    font-size: 0.75rem !important;
    font-weight: bold !important;
    white-space: nowrap !important;
    transition: all 0.25s ease !important;
}

.shk-chatbot-analysis-tab-btn:hover {
    color: #fff !important;
}

.shk-chatbot-analysis-tab-btn.active {
    color: var(--shk-gold) !important;
    background: rgba(212,175,55,0.06) !important;
    border-bottom: 2px solid var(--shk-gold) !important;
}

.shk-chatbot-analysis-pane {
    display: none !important;
    padding: 15px !important;
    background: #141414 !important;
    box-sizing: border-box !important;
}

.shk-chatbot-analysis-pane.active {
    display: block !important;
}

/* Adjustments for nested layout inside popup chat bubble */
.shk-chatbot-analysis-pane .shk-final-summary-section {
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
}

.shk-chatbot-analysis-pane .shk-final-header {
    display: none !important;
}

.shk-chatbot-analysis-pane .shk-final-grid {
    flex-direction: column !important;
    gap: 15px !important;
    display: flex !important;
}

.shk-chatbot-analysis-pane .shk-sim-card {
    width: 100% !important;
    box-sizing: border-box !important;
    margin-bottom: 0 !important;
    background: rgba(255,255,255,0.02) !important;
    border-color: rgba(255,255,255,0.05) !important;
}

.shk-chatbot-analysis-pane .shk-premium-card {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
}

.shk-chatbot-analysis-pane .shk-summary-details {
    width: 100% !important;
    box-sizing: border-box !important;
    background: rgba(255,255,255,0.02) !important;
    border-color: rgba(255,255,255,0.05) !important;
}

.shk-chatbot-analysis-pane .shk-summary-bars {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    display: grid !important;
}

.shk-chatbot-analysis-pane .shk-summary-conclusion {
    background: rgba(255,255,255,0.03) !important;
    color: #e2e8f0 !important;
}

.shk-chatbot-analysis-pane .shk-hexagram-container {
    justify-content: center !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    display: flex !important;
}

.shk-chatbot-analysis-pane .shk-hexagram-box {
    width: 110px !important;
    padding: 10px 5px !important;
}

.shk-chatbot-analysis-pane .shk-battu-container {
    justify-content: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    display: flex !important;
}

.shk-chatbot-analysis-pane .shk-battu-box {
    width: 80px !important;
    padding: 10px 0 !important;
    font-size: 0.8rem !important;
}

.shk-chatbot-analysis-pane .shk-battu-info {
    flex-direction: column !important;
    gap: 10px !important;
    display: flex !important;
}

.shk-chatbot-analysis-pane .shk-battu-info-col {
    width: 100% !important;
    padding: 10px !important;
}

/* ============================================================
   SIM HOÃNG KIM â BOT AI PAGE STYLES
   ============================================================ */
.shk-bot-ai-body {
    background-color: #080a0f !important;
}

.shk-bot-ai-wrapper {
    --shk-bg-dark: #080a0f;
    --shk-bg-card: rgba(26, 30, 43, 0.65);
    --shk-bg-card-hover: rgba(36, 42, 59, 0.85);
    --shk-border-gold-low: rgba(212, 175, 55, 0.15);
    --shk-border-gold-high: rgba(212, 175, 55, 0.65);
    --shk-text-light: #f1f5f9;
    --shk-text-muted: #94a3b8;
    --shk-gold-light: #fbe08d;
    --shk-gold-gradient: linear-gradient(135deg, #fbe08d 0%, #d4af37 100%);
    
    font-family: 'Inter', sans-serif;
    color: var(--shk-text-light);
    background: radial-gradient(circle at 50% 0%, #151d2d 0%, var(--shk-bg-dark) 100%);
    line-height: 1.6;
    max-width: 100%;
    overflow-x: hidden;
}