@charset "UTF-8";
/* ===========================================
       GLOBAL DESIGN SYSTEM & COLOR THEME
   =========================================== */
:root {
  /* Brand/Theme gradients */
  --primary-gradient: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  --accent-gradient: linear-gradient(135deg, #D14425 0%, #D97706 100%);
  --button-gradient: linear-gradient(135deg, #D14425 0%, #D97706 100%);
  
  --primary-color: #1e3c72;
  --primary-light: #2a5298;
  --accent-color: #D14425;
  --accent-hover: #B93A1F;
  
  /* Layout backgrounds */
  --bg:             #E2E8F0; /* Slate-based clean background */
  --bg2:            #CBD5E1; 
  --surface:        #FFFFFF;
  --surface2:       #F8FAFC;
  --surface-elevated: #FFFFFF;
  --border:         #CBD5E1;
  --border-hover:   #94A3B8;
  --border-subtle:  #E2E8F0;
  
  /* Accents */
  --accent:         #0ea5e9;
  --accent2:        #06b6d4;
  --accent3:        #38bdf8;
  
  /* Text */
  --text:           #0F172A;
  --text-muted:     #475569;
  --text-soft:      #334155;
  
  /* Hub variables & backward compatibility mapping */
  --text-primary:   #0F172A;
  --text-secondary: #475569;
  --button-bg:      linear-gradient(135deg, #1e3c72, #2a5298);
  
  /* PDF variables backward compatibility mapping */
  --muted:          #475569;
  --soft:           #334155;
  
  /* Hub variables backward compatibility mapping */
  --bg-main:        #E2E8F0;
  --bg-card:        #ffffff;
  --text-title:     #0F172A;
  --text-body:      #334155;
  --text-light:     #64748B;
  --border-color:   #CBD5E1;
  --header-bg:      rgba(226, 232, 240, 0.85);
  --header-border:  #CBD5E1;
  
  /* Statuses */
  --success:        #059669;
  --success-bg:     rgba(5, 150, 105, 0.07);
  --danger:         #ef4444;
  --warn:           #f59e0b;
  
  /* Other UI variables */
  --card-glow:      rgba(209, 68, 37, 0.04);
  --cta-shadow:     0 4px 18px rgba(14, 165, 233, 0.2);
  --cta-shadow-hover: 0 6px 20px rgba(14, 165, 233, 0.35);
  --coming-soon-bg: rgba(255, 255, 255, 0.4);
  --coming-soon-border: #CBD5E1;
  --coming-soon-hover: rgba(255, 255, 255, 0.65);
  --grid-dot-color: rgba(100, 116, 139, 0.25);
  --grid-dot-accent: rgba(15, 23, 42, 0.015);
  --glow-opacity: 0.06;
  
  --radius:         16px;
  --radius-sm:      10px;
  --border-radius-md: 12px;
  --border-radius-lg: 20px;
  --shadow:         0 8px 30px rgba(15, 23, 42, 0.03);
  --shadow-lg:      0 16px 48px rgba(15, 23, 42, 0.05);
  --trans:          all 0.28s cubic-bezier(0.4,0,0.2,1);
  --transition:     all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  --feature-check-bg: rgba(209, 68, 37, 0.05);
  --feature-check-color: #D14425;
}

body.dark-theme {
  /* Brand/Theme gradients */
  --accent-gradient: linear-gradient(135deg, #E8553A 0%, #F59E0B 100%);
  --button-gradient: linear-gradient(135deg, #E8553A 0%, #F59E0B 100%);
  
  --accent-color: #E8553A;
  --accent-hover: #F06A52;
  
  /* Layout backgrounds */
  --bg:             #050505;
  --bg2:            #0A0A0A;
  --surface:        #111111;
  --surface2:       #1A1A1A;
  --surface-elevated: #111111;
  --border:         #222222;
  --border-hover:   #333333;
  --border-subtle:  #191919;
  
  /* Accents */
  --accent:         #38bdf8;
  --accent2:        #22d3ee;
  --accent3:        #7dd3fc;
  
  /* Text */
  --text:           #F5F5F4;
  --text-muted:     #94A3B8;
  --text-soft:      #A8A29E;
  
  /* Hub variables & backward compatibility mapping */
  --text-primary:   #F5F5F4;
  --text-secondary: #A8A29E;
  --button-bg:      linear-gradient(135deg, #E8553A, #F59E0B);
  
  /* PDF variables backward compatibility mapping */
  --muted:          #94A3B8;
  --soft:           #A8A29E;
  
  /* Hub variables backward compatibility mapping */
  --bg-main:        #050505;
  --bg-card:        #0A0A0A;
  --text-title:     #F5F5F4;
  --text-body:      #A8A29E;
  --text-light:     #6B6560;
  --border-color:   #222222;
  --header-bg:      rgba(5, 5, 5, 0.85);
  --header-border:  #222222;
  
  /* Statuses */
  --success:        #34D399;
  --success-bg:     rgba(52, 211, 153, 0.1);
  --danger:         #f87171;
  --warn:           #fbbf24;
  
  /* Other UI variables */
  --card-glow:      rgba(232, 85, 58, 0.06);
  --cta-shadow:     0 4px 20px rgba(56, 189, 248, 0.25);
  --cta-shadow-hover: 0 6px 24px rgba(56, 189, 248, 0.45);
  --coming-soon-bg: rgba(10, 10, 10, 0.45);
  --coming-soon-border: #222222;
  --coming-soon-hover: rgba(10, 10, 10, 0.65);
  --grid-dot-color: rgba(255, 255, 255, 0);
  --grid-dot-accent: rgba(255, 255, 255, 0);
  --glow-opacity: 0.08;
  
  --shadow:         0 4px 24px rgba(0,0,0,0.5);
  --shadow-lg:      0 12px 48px rgba(0,0,0,0.6);
  
  --feature-check-bg: rgba(232, 85, 58, 0.08);
  --feature-check-color: #E8553A;
}

/* -- Floating Back to Top Button ------------------ */
#backToTopBtn {
    position: fixed;
    bottom: 95px;
    right: 30px;
    z-index: 999;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.85); /* Dark slate semi-transparent */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
}
#backToTopBtn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
#backToTopBtn:hover {
    background: rgba(15, 23, 42, 1);
    transform: translateY(-3px);
    border-color: var(--accent);
    color: var(--accent);
}

/* Light Mode back to top styles */
body.light #backToTopBtn,
body:not(.dark-theme) #backToTopBtn {
    background: rgba(255, 255, 255, 0.85) !important;
    border-color: #CBD5E1 !important;
    color: #0F172A !important;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08) !important;
}
body.light #backToTopBtn:hover,
body:not(.dark-theme) #backToTopBtn:hover {
    background: #FFFFFF !important;
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
}

/* -- Global Flex Sticky Footer Layout ------------------ */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
}

/* -- Global Footer ----------------------------------- */
footer, #main-footer {
    margin-top: auto !important;
    flex-shrink: 0;
    border-top: 1px solid var(--border);
    padding: 40px 24px;
    background: var(--surface);
    transition: background-color 0.4s ease;
}
body.dark-theme footer, body.dark-theme #main-footer {
    background: #03060c;
}
.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 20px;
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}
.logo-icon svg path {
    stroke: var(--accent-color);
}
body.dark-theme .logo-icon svg path {
    stroke: #ffffff;
}
.footer-logo-text {
    font-size: 18px;
    font-weight: 800;
    color: var(--accent-color);
    letter-spacing: -0.5px;
}
body.dark-theme .footer-logo-text {
    color: #ffffff;
}
.footer-logo-text span {
    color: var(--accent-color);
}
.copyright-text {
    font-size: 14px;
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    margin: 0;
}
.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 12px 0;
}
.footer-links a {
    color: var(--text-muted) !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: color 0.3s ease !important;
}
.footer-links a:hover {
    color: var(--accent-color) !important;
}
body.light .footer-links a:hover,
body:not(.dark-theme) .footer-links a:hover {
    color: var(--primary-color) !important;
}

/* -- Floating Help / Chat FAB Button & Popup ---------- */
.help-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}
.help-fab-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--button-gradient);
    border: 2px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
    outline: none;
}
.help-fab-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.help-fab-btn .fab-icon-open  { display: block; }
.help-fab-btn .fab-icon-close { display: none; }
.help-fab-btn.open .fab-icon-open  { display: none; }
.help-fab-btn.open .fab-icon-close { display: block; }

/* Popup Card */
.help-popup-card {
    display: none;
    background: var(--surface);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    width: 270px;
    border: 1px solid var(--border);
    animation: popIn 0.22s cubic-bezier(.4,0,.2,1);
}
.help-popup-card.visible {
    display: block;
}
@keyframes popIn {
    from { opacity: 0; transform: scale(0.88) translateY(10px); }
    to   { opacity: 1; transform: scale(1)    translateY(0);    }
}
.hpc-header {
    background: var(--primary-gradient);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid var(--accent-color);
}
body.dark-theme .hpc-header {
    background: var(--button-gradient);
}
.hpc-header-icon {
    width: 34px;
    height: 34px;
    background: rgba(255,255,255,0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}
.hpc-header-text strong {
    display: block;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}
.hpc-header-text span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}
.hpc-body {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--surface2);
}
.hpc-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 9px;
    padding: 11px 13px;
    transition: background 0.18s, border-color 0.18s;
}
.hpc-link:hover {
    background: var(--bg2);
    border-color: var(--accent-hover);
}
.hpc-link-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.hpc-link-icon.web { background: rgba(14, 165, 233, 0.15); color: #0ea5e9; }
.hpc-link-icon.wa  { background: rgba(37, 211, 102, 0.15); color: #25D366; }
.hpc-link-text strong {
    display: block;
    font-size: 12px;
    color: var(--text);
    font-weight: 700;
}
.hpc-link-text span {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 1px;
}
.hpc-footer {
    padding: 9px 16px;
    background: var(--surface);
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

@media (max-width: 480px) {
    .help-fab { bottom: 16px; right: 16px; }
    #backToTopBtn { bottom: 80px !important; right: 16px !important; }
    .help-popup-card { width: 240px; }
}

/* -- Global Header & Navigation ------------------ */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--header-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--header-border);
    transition: var(--transition), background-color 0.4s ease, border-color 0.4s ease;
}

header.scrolled {
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--primary-gradient);
    border-radius: var(--border-radius-md);
    box-shadow: 0 4px 12px rgba(30, 60, 114, 0.2);
    position: relative;
    overflow: hidden;
}

.logo-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.5s;
}

.logo-group:hover .logo-icon::before {
    left: 100%;
}

.logo-text {
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #00c6ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

body.dark-theme .logo-text {
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #00f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-subtitle {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    -webkit-text-fill-color: initial;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Theme Toggle */
.theme-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 50%;
    cursor: pointer;
    color: var(--text);
    box-shadow: var(--shadow);
    transition: var(--transition), background-color 0.4s ease, border-color 0.4s ease;
}

.theme-toggle-btn:hover {
    transform: rotate(15deg) scale(1.05);
    border-color: var(--border-hover);
    color: var(--accent-hover);
    box-shadow: var(--shadow-lg);
}

.theme-toggle-btn .sun-icon { display: none; }
.theme-toggle-btn .moon-icon { display: block; }

body.dark-theme .theme-toggle-btn .sun-icon {
    display: block;
    color: #f59e0b;
}
body.dark-theme .theme-toggle-btn .moon-icon { display: none; }

.btn-nav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: var(--surface);
    color: var(--text);
    border: 1.5px solid var(--border);
    font-weight: 600;
    font-size: 14px;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition), background-color 0.4s ease, border-color 0.4s ease;
    text-decoration: none;
}

.btn-nav:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -6px rgba(30, 60, 114, 0.3);
}

body.dark-theme .btn-nav:hover {
    background: var(--button-gradient);
    border-color: transparent;
    box-shadow: 0 8px 20px -6px rgba(0, 242, 254, 0.3);
}

.btn-nav svg {
    transition: transform 0.3s ease;
}

.btn-nav:hover svg {
    transform: translateX(-4px);
}

/* -- Responsive Header Adjustments ------------------ */
@media (max-width: 1100px) {
    /* Hide Main Site and About buttons on smaller screens */
    .nav-actions .btn-nav:nth-of-type(4),
    .nav-actions .btn-nav:nth-of-type(5) {
        display: none;
    }
}

@media (max-width: 820px) {
    /* Hide Premium Tools and Blog on tablet, leaving only Tools Hub */
    .nav-actions .btn-nav:nth-of-type(2),
    .nav-actions .btn-nav:nth-of-type(3) {
        display: none;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 12px;
        height: 70px;
    }
    .nav-actions {
        gap: 8px;
    }
    .btn-nav {
        padding: 8px 16px;
        font-size: 13px;
    }
    .theme-toggle-btn {
        width: 38px;
        height: 38px;
    }
}
