/* =============================================================================
   ALIMONZ DEBT - Help Center & Documentation Design System
   Modern, Ultra-Premium, Glassmorphism, Responsive & Dark/Light Mode
   ============================================================================= */

:root {
    --primary: #0F5132;
    --primary-light: #198754;
    --primary-dark: #0A3622;
    --primary-glow: rgba(15, 81, 50, 0.25);
    
    --accent-teal: #0D9488;
    --accent-emerald: #10B981;
    --accent-amber: #F59E0B;
    --accent-blue: #0284C7;
    --accent-purple: #8B5CF6;
    
    --bg-main: #0B0F19;
    --bg-card: rgba(17, 24, 39, 0.75);
    --bg-card-hover: rgba(30, 41, 59, 0.85);
    --bg-glass: rgba(15, 23, 42, 0.65);
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(16, 185, 129, 0.3);
    
    --text-main: #F8FAFC;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(16, 185, 129, 0.2);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
    --bg-main: #F8FAFC;
    --bg-card: #FFFFFF;
    --bg-card-hover: #F1F5F9;
    --bg-glass: rgba(255, 255, 255, 0.85);
    
    --border-color: #E2E8F0;
    --border-highlight: rgba(15, 81, 50, 0.25);
    
    --text-main: #0F172A;
    --text-secondary: #475569;
    --text-muted: #64748B;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 30px rgba(15, 81, 50, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Background Ambient Glows */
.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

.bg-glow-1 {
    top: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.25), transparent 70%);
}

.bg-glow-2 {
    bottom: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.2), transparent 70%);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* =============================================================================
   NAVIGATION BAR
   ============================================================================= */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: var(--bg-glass);
    border-bottom: 1px solid var(--border-color);
    padding: 14px 0;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-main);
}

.brand-logo-img {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
    border: 1px solid var(--border-highlight);
}

.brand-text h1 {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #10B981, #06B6D4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-text span {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    display: block;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: var(--transition);
}

.btn-theme-toggle:hover {
    transform: rotate(20deg) scale(1.05);
    border-color: var(--accent-emerald);
}

.btn-nav-portal {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: #FFFFFF;
    text-decoration: none;
    box-shadow: 0 4px 14px var(--primary-glow);
    transition: var(--transition);
}

.btn-nav-portal:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-glow);
}

/* =============================================================================
   HERO SEARCH & BANNER
   ============================================================================= */
.hero-section {
    padding: 50px 0 40px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 30px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--accent-emerald);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 34px;
    font-weight: 900;
    margin-bottom: 14px;
    line-height: 1.3;
}

.hero-title span {
    background: linear-gradient(135deg, #10B981, #38BDF8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 30px;
}

.search-box-wrapper {
    max-width: 680px;
    margin: 0 auto;
    position: relative;
}

.search-input-group {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 8px 18px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.search-input-group:focus-within {
    border-color: var(--accent-emerald);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18), var(--shadow-md);
}

.search-icon {
    color: var(--text-muted);
    font-size: 18px;
    margin-left: 12px;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text-main);
    font-size: 15px;
    font-weight: 600;
}

.search-input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.search-clear-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 15px;
    padding: 4px;
    display: none;
}

.search-clear-btn:hover {
    color: var(--danger);
}

/* =============================================================================
   QUICK ACCESS PILLS (CATEGORIES)
   ============================================================================= */
.categories-pills {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 30px auto 40px;
    max-width: 900px;
}

.cat-pill {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.cat-pill:hover,
.cat-pill.active {
    background: var(--primary-light);
    color: #FFFFFF;
    border-color: var(--primary-light);
    box-shadow: 0 4px 14px var(--primary-glow);
    transform: translateY(-2px);
}

/* =============================================================================
   GRID & CARDS LAYOUT
   ============================================================================= */
.main-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 28px;
    margin-bottom: 60px;
}

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

.section-header h2 {
    font-size: 20px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header h2 i {
    color: var(--accent-emerald);
}

/* =============================================================================
   TUTORIAL ACCORDION CARDS
   ============================================================================= */
.tutorials-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.guide-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.guide-card:hover {
    border-color: var(--border-highlight);
    box-shadow: var(--shadow-md);
}

.guide-header {
    padding: 18px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.guide-title-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
}

.guide-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-emerald);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.guide-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
}

.guide-chevron {
    font-size: 14px;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.guide-card.expanded .guide-chevron {
    transform: rotate(180deg);
    color: var(--accent-emerald);
}

.guide-body {
    padding: 0 22px 20px 22px;
    display: none;
    border-top: 1px solid var(--border-color);
    margin-top: 4px;
    padding-top: 16px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
    white-space: pre-line;
}

.guide-card.expanded .guide-body {
    display: block;
    animation: fadeIn 0.3s ease;
}

.guide-video-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 8px 16px;
    border-radius: 10px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #EF4444;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.guide-video-btn:hover {
    background: #EF4444;
    color: #FFFFFF;
    transform: translateY(-2px);
}

/* =============================================================================
   SUPPORT & CONTACT SIDEBAR
   ============================================================================= */
.support-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow-sm);
}

.sidebar-panel h3 {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-main);
}

.support-channels-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.channel-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    background: var(--bg-card-hover);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition);
}

.channel-btn:hover {
    transform: translateX(-4px);
    border-color: var(--accent-emerald);
}

.channel-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.icon-whatsapp { background: rgba(37, 211, 102, 0.15); color: #25D366; }
.icon-phone { background: rgba(2, 132, 199, 0.15); color: #0284C7; }
.icon-email { background: rgba(139, 92, 246, 0.15); color: #8B5CF6; }

.channel-info {
    flex: 1;
}

.channel-info strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
}

.channel-info span {
    font-size: 11px;
    color: var(--text-muted);
}

/* Feature Spotlight Card */
.spotlight-card {
    background: linear-gradient(135deg, rgba(15, 81, 50, 0.3), rgba(15, 23, 42, 0.7));
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-lg);
    padding: 22px;
    text-align: center;
}

.spotlight-card h4 {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 8px;
    color: #FFFFFF;
}

.spotlight-card p {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.btn-spotlight {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #10B981;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 12px;
    text-decoration: none;
    transition: var(--transition);
}

.btn-spotlight:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

/* =============================================================================
   INTERACTIVE STEPPING GUIDE (HOW TO START)
   ============================================================================= */
.quick-start-section {
    margin-bottom: 60px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.step-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: relative;
    transition: var(--transition);
}

.step-box:hover {
    transform: translateY(-4px);
    border-color: var(--accent-emerald);
    box-shadow: var(--shadow-md);
}

.step-num {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: #FFFFFF;
    font-weight: 800;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.step-box h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-box p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* =============================================================================
   FOOTER
   ============================================================================= */
.footer {
    border-top: 1px solid var(--border-color);
    background: var(--bg-glass);
    padding: 36px 0 24px;
    margin-top: 60px;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
}

.footer-brand img {
    width: 30px;
    height: 30px;
    border-radius: 8px;
}

.footer-brand span {
    font-weight: 800;
    font-size: 16px;
}

/* Developer Info Panel */
.developer-info-panel {
    border: 1px solid rgba(13, 148, 136, 0.25);
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.05), rgba(15, 23, 42, 0.6));
}

.developer-info-panel h3 i {
    color: #0D9488;
}

.dev-info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 14px;
}

.dev-info-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    line-height: 1.4;
}

.dev-info-item > i {
    font-size: 14px;
    color: #0D9488;
    margin-top: 3px;
    width: 16px;
    text-align: center;
}

.dev-info-label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.dev-info-item strong {
    color: var(--text-main);
    font-weight: 700;
}

.dev-website-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(13, 148, 136, 0.12);
    border: 1px solid rgba(13, 148, 136, 0.3);
    border-radius: var(--radius-sm);
    color: #0D9488;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.dev-website-btn:hover {
    background: #0D9488;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.3);
}

.footer-attribution {
    margin: 10px 0;
    padding: 8px 16px;
    display: inline-block;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.footer-attribution p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.footer-attribution strong {
    color: var(--text-main);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =============================================================================
   RESPONSIVE DESIGN (MOBILE & TABLET)
   ============================================================================= */
@media (max-width: 900px) {
    .main-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 26px;
    }

    .hero-section {
        padding: 30px 0 25px;
    }

    .categories-pills {
        gap: 6px;
    }

    .cat-pill {
        padding: 6px 14px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .nav-actions .btn-nav-portal span {
        display: none;
    }

    .nav-actions .btn-nav-portal {
        padding: 8px 12px;
    }

    .brand-text h1 {
        font-size: 16px;
    }
}
