/* ==========================================================================
   TVKIX HELP CENTER & AI ASSISTANT - STYLESHEET
   Clean, Modern, Ultra-Crisp & Responsive Design System
   ========================================================================== */

:root {
    --bg-page: #f8fafc;
    --bg-card: #ffffff;
    --bg-input: #f8fafc;
    --bg-input-focus: #ffffff;
    --bg-muted: #f1f5f9;
    --bg-tag: #f8fafc;
    
    --border-color: #e2e8f0;
    --border-light: #edf2f7;
    --border-hover: #cbd5e1;
    --border-focus: #6366f1;
    
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-light: #eef2ff;
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    --primary-shadow: rgba(79, 70, 229, 0.25);
    
    --accent-purple: #6366f1;
    --accent-purple-bg: #ede9fe;
    --accent-purple-text: #6d28d9;
    
    --accent-blue: #0284c7;
    --accent-blue-bg: #e0f2fe;
    --accent-blue-text: #0369a1;
    
    --accent-green: #10b981;
    --accent-green-bg: #ecfdf5;
    --accent-green-text: #047857;
    
    --accent-orange: #f97316;
    --accent-orange-bg: #ffedd5;
    --accent-orange-text: #c2410c;
    
    --accent-amber: #f59e0b;
    --accent-amber-bg: #fef3c7;
    --accent-amber-text: #b45309;
    
    --accent-rose: #ef4444;
    --accent-rose-bg: #fee2e2;
    --accent-rose-text: #b91c1c;
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    
    --radius-xs: 6px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-pill: 9999px;
    
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.06), 0 1px 2px -1px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -4px rgba(0, 0, 0, 0.03);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
    
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ================= RESET & BASE ================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-page);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
    outline: none;
}

input, textarea {
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
}

/* ================= CONTAINER ================= */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* ================= HEADER / NAVBAR ================= */
header.site-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    height: 70px;
    display: flex;
    align-items: center;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.02);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.brand-logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

.brand-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--primary-light);
    color: var(--primary);
}

.brand-logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
    display: block;
}

.brand-logo-text {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #1e1b4b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.brand-logo-text span {
    color: var(--primary);
}

/* Desktop Navigation Menu */
nav.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
    height: 70px;
}

.nav-link {
    font-size: 0.94rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 24px 2px 20px 2px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link.active {
    color: var(--primary);
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2.5px;
    background: var(--primary);
    border-radius: var(--radius-pill);
}

/* Header Right Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-selector-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid transparent;
    transition: var(--transition);
    cursor: pointer;
}

.lang-selector-btn:hover {
    background: var(--bg-muted);
    color: var(--text-primary);
}

.btn-my-account {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition);
    box-shadow: var(--shadow-xs);
}

.btn-my-account:hover {
    border-color: var(--border-hover);
    background: var(--bg-muted);
    color: var(--primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.mobile-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: #ffffff;
    color: var(--text-primary);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 20px 24px;
    flex-direction: column;
    gap: 12px;
    box-shadow: var(--shadow-lg);
    z-index: 99;
}

.mobile-nav-drawer.open {
    display: flex;
}

.mobile-nav-drawer .nav-link {
    padding: 10px 0;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--border-light);
}

.mobile-nav-drawer .nav-link.active::after {
    display: none;
}

/* ================= PAGE HERO & SEARCH HEADER ================= */
.help-hero-section {
    padding: 36px 0 24px 0;
}

.help-hero-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.help-title-col {
    flex: 1;
    min-width: 280px;
}

.help-title {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    line-height: 1.15;
    margin-bottom: 6px;
}

.help-subtitle {
    font-size: 1.02rem;
    color: var(--text-muted);
    font-weight: 400;
}

.help-search-col {
    width: 380px;
    max-width: 100%;
    position: relative;
}

.search-box-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.search-box-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15), var(--shadow-sm);
}

.search-icon {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-right: 12px;
    flex-shrink: 0;
}

.search-input {
    width: 100%;
    padding: 12px 0;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.search-input::placeholder {
    color: var(--text-light);
}

.search-clear-btn {
    display: none;
    color: var(--text-light);
    font-size: 0.85rem;
    padding: 4px;
    cursor: pointer;
    border-radius: var(--radius-pill);
    transition: var(--transition);
}

.search-clear-btn:hover {
    color: var(--text-primary);
    background: var(--bg-muted);
}

/* Search Dropdown / Autocomplete */
.search-results-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    z-index: 110;
    max-height: 380px;
    overflow-y: auto;
    display: none;
}

.search-results-dropdown.active {
    display: block;
    animation: fadeInDown 0.15s ease-out;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: var(--transition-fast);
}

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

.search-result-item:hover {
    background: var(--bg-muted);
}

.search-result-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.search-result-info {
    flex: 1;
    overflow: hidden;
}

.search-result-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-category {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ================= MAIN SPLIT GRID (CHAT & GUIDES) ================= */
.help-main-section {
    padding-bottom: 40px;
}

.help-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: stretch;
}

/* Card Base */
.help-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
    min-height: 520px;
}

/* ================= LEFT COLUMN: CHAT WITH US ================= */
.chat-card {
    display: flex;
    flex-direction: column;
}

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

.chat-header-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
}

.chat-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 500;
    color: #10b981;
}

.chat-quota-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    background: #eef2ff;
    color: #4f46e5;
    border: 1px solid #c7d2fe;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
    transition: var(--transition);
}

.chat-quota-badge.limit-reached {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fecaca;
}

.chat-quota-badge.warning {
    background: #fffbeb;
    color: #d97706;
    border-color: #fde68a;
}

.limit-banner-bubble {
    background: #fff1f2 !important;
    border: 1px solid #fecdd3 !important;
    color: #9f1239 !important;
    border-radius: var(--radius-md) !important;
    padding: 14px 16px !important;
    font-size: 0.88rem !important;
    line-height: 1.5 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.limit-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #10b981;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 700;
    margin-top: 10px;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.limit-whatsapp-btn:hover {
    background: #059669;
    color: #ffffff;
    transform: translateY(-1px);
}

.chat-input-bar.disabled {
    background: #f8fafc;
    border-color: #e2e8f0;
    opacity: 0.85;
}

.chat-input-bar.disabled .chat-input-field {
    cursor: not-allowed;
    color: var(--text-muted);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    display: inline-block;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.chat-reset-btn {
    color: var(--text-muted);
    font-size: 0.95rem;
    padding: 6px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-reset-btn:hover {
    color: var(--text-primary);
    background: var(--bg-muted);
    transform: rotate(45deg);
}

/* Chat Messages Container */
.chat-messages-container {
    flex: 1;
    padding: 22px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-height: 440px;
    background: #ffffff;
}

/* Message Rows */
.chat-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.chat-row.bot {
    align-self: flex-start;
    max-width: 88%;
}

.chat-row.user {
    align-self: flex-end;
    flex-direction: row-reverse;
    max-width: 84%;
}

.chat-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.88rem;
}

.chat-avatar.bot {
    background: #1e1b4b;
    color: #a5b4fc;
}

.chat-avatar.user {
    background: var(--primary);
    color: #ffffff;
}

.chat-bubble-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.chat-row.user .chat-bubble-wrapper {
    align-items: flex-end;
}

.chat-bubble {
    padding: 12px 16px;
    border-radius: var(--radius-lg);
    font-size: 0.92rem;
    line-height: 1.55;
    word-break: break-word;
}

.chat-row.bot .chat-bubble {
    background: #f1f5f9;
    color: #1e293b;
    border-top-left-radius: 4px;
}

.chat-row.user .chat-bubble {
    background: var(--primary);
    color: #ffffff;
    border-top-right-radius: 4px;
    box-shadow: 0 2px 8px var(--primary-shadow);
}

.chat-bubble ol, .chat-bubble ul {
    margin: 8px 0 4px 18px;
}

.chat-bubble li {
    margin-bottom: 4px;
}

.chat-bubble code {
    background: rgba(0, 0, 0, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.85em;
}

.chat-row.user .chat-bubble code {
    background: rgba(255, 255, 255, 0.2);
}

.chat-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--text-light);
    padding: 0 4px;
}

.chat-check-icon {
    color: #60a5fa;
    font-size: 0.85rem;
}

/* Prompt suggestions pills */
.chat-suggestions-wrapper {
    padding: 0 20px 10px 20px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.chat-suggestions-wrapper::-webkit-scrollbar {
    display: none;
}

.chat-suggestion-chip {
    white-space: nowrap;
    padding: 6px 12px;
    background: var(--bg-muted);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.chat-suggestion-chip:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: #c7d2fe;
}

/* Typing indicator */
.typing-bubble {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 18px;
    background: #f1f5f9;
    border-radius: var(--radius-lg);
    border-top-left-radius: 4px;
    width: fit-content;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: var(--text-light);
    border-radius: 50%;
    animation: typingPulse 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingPulse {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Chat Input Section */
.chat-card-footer {
    padding: 14px 20px 16px 20px;
    border-top: 1px solid var(--border-light);
    background: #ffffff;
}

.chat-input-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 4px 6px 4px 14px;
    transition: var(--transition);
}

.chat-input-bar:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.chat-input-field {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px 0;
    font-size: 0.92rem;
    color: var(--text-primary);
}

.chat-input-field::placeholder {
    color: var(--text-light);
}

.chat-action-btn {
    color: var(--text-muted);
    font-size: 1.05rem;
    padding: 8px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.chat-action-btn:hover {
    color: var(--text-primary);
    background: var(--bg-muted);
}

.chat-send-btn {
    background: var(--primary);
    color: #ffffff;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: var(--transition);
    box-shadow: 0 2px 6px var(--primary-shadow);
}

.chat-send-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.chat-send-btn:disabled {
    background: var(--border-color);
    color: var(--text-light);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.chat-disclaimer {
    text-align: center;
    font-size: 0.73rem;
    color: var(--text-light);
    margin-top: 10px;
}

/* ================= RIGHT COLUMN: GUIDES & DOCUMENTATION ================= */
.docs-card {
    display: flex;
    flex-direction: column;
}

/* Tabs Header */
.docs-tabs-header {
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding: 0 16px;
    background: #ffffff;
}

.docs-tab-btn {
    padding: 18px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    position: relative;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.docs-tab-btn:hover {
    color: var(--text-primary);
}

.docs-tab-btn.active {
    color: var(--primary);
    font-weight: 600;
}

.docs-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 12px;
    right: 12px;
    height: 2.5px;
    background: var(--primary);
    border-radius: var(--radius-pill);
}

/* Guide List Container */
.docs-list-container {
    flex: 1;
    padding: 12px 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.docs-list-tab-content {
    display: none;
    flex-direction: column;
    gap: 6px;
}

.docs-list-tab-content.active {
    display: flex;
}

/* Guide List Item */
.doc-item-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    background: #ffffff;
    border: 1px solid transparent;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
}

.doc-item-row:hover {
    background: var(--bg-muted);
    border-color: var(--border-light);
    transform: translateX(3px);
}

.doc-item-icon-box {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.doc-item-row:hover .doc-item-icon-box {
    transform: scale(1.05);
}

/* Specific Badge Icon Colors */
.icon-purple { background: var(--accent-purple-bg); color: var(--accent-purple-text); }
.icon-blue { background: var(--accent-blue-bg); color: var(--accent-blue-text); }
.icon-green { background: var(--accent-green-bg); color: var(--accent-green-text); }
.icon-orange { background: var(--accent-orange-bg); color: var(--accent-orange-text); }
.icon-amber { background: var(--accent-amber-bg); color: var(--accent-amber-text); }
.icon-rose { background: var(--accent-rose-bg); color: var(--accent-rose-text); }

.doc-item-content {
    flex: 1;
    min-width: 0;
}

.doc-item-title {
    font-size: 0.96rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.doc-item-desc {
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.doc-item-arrow {
    color: var(--text-light);
    font-size: 0.9rem;
    transition: var(--transition);
    margin-left: 4px;
}

.doc-item-row:hover .doc-item-arrow {
    color: var(--primary);
    transform: translateX(3px);
}

/* ================= BROWSE BY CATEGORY SECTION ================= */
.categories-section {
    padding: 30px 0;
}

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

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.section-link {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.section-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

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

.category-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-xs);
}

.category-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.category-icon-box {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.category-info {
    display: flex;
    flex-direction: column;
}

.category-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.category-count {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ================= CONTACT SUPPORT BANNER ================= */
.support-banner-section {
    padding: 10px 0 50px 0;
}

.support-banner-card {
    background: #fbfbfe;
    border: 1px solid #e0e7ff;
    border-radius: var(--radius-lg);
    padding: 24px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    box-shadow: var(--shadow-xs);
}

.support-banner-left {
    display: flex;
    align-items: center;
    gap: 18px;
}

.support-banner-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: #ede9fe;
    color: #6366f1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.support-banner-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.support-banner-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.btn-contact-support {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    background: #ffffff;
    color: var(--primary);
    border: 1.5px solid #c7d2fe;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
    cursor: pointer;
    box-shadow: var(--shadow-xs);
}

.btn-contact-support:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* ================= FOOTER ================= */
footer.site-footer {
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    padding: 40px 0 30px 0;
    margin-top: auto;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-link {
    font-size: 0.88rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--text-primary);
}

/* ================= MODAL / ARTICLE VIEWER ================= */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

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

.article-modal-card {
    background: #ffffff;
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 760px;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
    transform: scale(0.96) translateY(10px);
    transition: var(--transition-smooth);
    overflow: hidden;
}

.modal-backdrop.active .article-modal-card {
    transform: scale(1) translateY(0);
}

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

.article-header-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.article-header-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.modal-close-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: var(--transition);
    cursor: pointer;
}

.modal-close-btn:hover {
    background: var(--bg-muted);
    color: var(--text-primary);
}

.article-modal-body {
    padding: 28px;
    overflow-y: auto;
    color: var(--text-secondary);
    line-height: 1.65;
    font-size: 0.95rem;
}

.article-modal-body h3 {
    color: var(--text-primary);
    font-size: 1.12rem;
    margin: 20px 0 10px 0;
}

.article-modal-body h4 {
    color: var(--text-primary);
    font-size: 1rem;
    margin: 16px 0 8px 0;
}

.article-modal-body p {
    margin-bottom: 14px;
}

.article-modal-body ol, .article-modal-body ul {
    margin: 0 0 16px 20px;
}

.article-modal-body li {
    margin-bottom: 8px;
}

/* Callout Boxes */
.article-callout {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin: 18px 0;
    display: flex;
    gap: 14px;
    font-size: 0.9rem;
}

.article-callout.tip {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.article-callout.info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

.article-callout.warning {
    background: #fef3c7;
    border: 1px solid #fde68a;
    color: #92400e;
}

/* Code Snippet Blocks */
.code-block-wrapper {
    background: #0f172a;
    border-radius: var(--radius-md);
    padding: 14px 18px;
    margin: 14px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.code-content {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.86rem;
    color: #38bdf8;
    overflow-x: auto;
    white-space: nowrap;
}

.btn-copy-code {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    cursor: pointer;
    flex-shrink: 0;
}

.btn-copy-code:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #38bdf8;
}

/* Article Modal Footer */
.article-modal-footer {
    padding: 16px 28px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-page);
}

.article-feedback-text {
    font-size: 0.86rem;
    color: var(--text-muted);
}

.article-feedback-buttons {
    display: flex;
    gap: 8px;
}

.btn-feedback {
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: #ffffff;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    cursor: pointer;
}

.btn-feedback:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

/* Contact Modal */
.contact-modal-card {
    background: #ffffff;
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 560px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.contact-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 24px;
}

.contact-option-card {
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.contact-option-card:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    transform: translateY(-2px);
}

.contact-opt-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.contact-opt-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-primary);
}

.contact-opt-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Form Styles */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: #ffffff;
    color: var(--text-primary);
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.btn-submit-ticket {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: #ffffff;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: pointer;
}

.btn-submit-ticket:hover {
    background: var(--primary-hover);
}

/* ================= ANIMATIONS ================= */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@media (max-width: 920px) {
    nav.main-nav {
        display: none;
    }
    .mobile-menu-btn {
        display: flex;
    }
    .help-grid-layout {
        grid-template-columns: 1fr;
    }
    .help-search-col {
        width: 100%;
    }
    .help-hero-grid {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 680px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .support-banner-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }
    .btn-contact-support {
        width: 100%;
    }
    .chat-row.bot, .chat-row.user {
        max-width: 94%;
    }
    .contact-options-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 440px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
    .docs-tab-btn {
        padding: 14px 12px;
        font-size: 0.88rem;
    }
    .btn-my-account span {
        display: none;
    }
}
