/* ============================================================
   Helpblogger Profiler v3.40.0 — Pro Clean Design
   CSS custom properties are set via admin Color Settings.
   All colors reference var(--hbp-*) for full admin control.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

:root {
    /* ── Brand (overridden by inline style from admin color settings) */
    --hbp-primary:         #2563EB;
    --hbp-primary-dark:    #1D4ED8;
    --hbp-primary-light:   #DBEAFE;
    --hbp-primary-xlight:  #EFF6FF;
    --hbp-accent:          #2563EB;

    /* ── Semantic */
    --hbp-success:   #16A34A;
    --hbp-warning:   #D97706;
    --hbp-danger:    #DC2626;

    /* ── Neutrals */
    --hbp-gray-50:   #F8FAFC;
    --hbp-gray-100:  #F1F5F9;
    --hbp-gray-200:  #E2E8F0;
    --hbp-gray-300:  #CBD5E1;
    --hbp-gray-400:  #94A3B8;
    --hbp-gray-500:  #64748B;
    --hbp-gray-600:  #475569;
    --hbp-gray-700:  #334155;
    --hbp-gray-800:  #1E293B;
    --hbp-gray-900:  #0F172A;
    --hbp-white:     #FFFFFF;

    /* ── Sizing */
    --hbp-sidebar-w:  270px;
    --hbp-topbar-h:   68px;
    --hbp-radius:     12px;
    --hbp-radius-sm:  8px;
    --hbp-radius-lg:  16px;
    --hbp-radius-xl:  24px;

    /* ── Typography (overridden by inline style from admin Appearance → Typography settings) */
    --hbp-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    --hbp-font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    --hbp-font-size-base: 15px;
    --hbp-line-height: 1.6;

    /* ── Elevation */
    --hbp-shadow-xs:  0 1px 2px rgba(0,0,0,.05);
    --hbp-shadow-sm:  0 2px 8px rgba(0,0,0,.07);
    --hbp-shadow:     0 4px 16px rgba(0,0,0,.08);
    --hbp-shadow-lg:  0 8px 32px rgba(0,0,0,.10);

    /* ── Transition */
    --hbp-transition: all 0.22s cubic-bezier(0.2, 0, 0, 1);

    /* ── Aliases (used widely) */
    --text-color:    #1E293B;
    --button-color:  var(--hbp-primary);
}

/* ============================================================
   BASE
   ============================================================ */
body.hbp-dashboard {
    font-family:   var(--hbp-font);
    font-size:     var(--hbp-font-size-base);
    line-height:   var(--hbp-line-height);
    background:    var(--hbp-gray-50);
    color:         var(--text-color);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* Headings use the admin-selected heading font everywhere (dashboard,
   site pages, public profile) — set at the highest reasonable specificity
   so component-level styles don't need to repeat it. */
body.hbp-dashboard h1, body.hbp-dashboard h2, body.hbp-dashboard h3,
body.hbp-dashboard h4, body.hbp-dashboard h5, body.hbp-dashboard h6,
.hbp-sitemode h1, .hbp-sitemode h2, .hbp-sitemode h3,
.hbp-sitemode h4, .hbp-sitemode h5, .hbp-sitemode h6,
.hbpp-wrap h1, .hbpp-wrap h2, .hbpp-wrap h3,
.hbpp-wrap h4, .hbpp-wrap h5, .hbpp-wrap h6 {
    font-family: var(--hbp-font-heading);
}

a { color: var(--hbp-primary); text-decoration: none; }
a:hover { color: var(--hbp-primary-dark); }

/* Site-mode font must reach EVERY element inside the body — header,
   telegram bar, nav drawer, bottom nav, footer — not just the inner
   .hbp-sitemode content wrapper, since several of those live outside it. */
body.hbp-sitemode-body {
    font-family: var(--hbp-font);
}

img { max-width: 100%; height: auto; }

/* ============================================================
   LAYOUT SHELL
   ============================================================ */
.hbp-sidebar {
    position: fixed;
    top: 0; left: 0;
    width: var(--hbp-sidebar-w);
    max-width: calc(100vw - 48px);
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 300;
    background: var(--hbp-header-bg, var(--hbp-white));
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1);
}

.hbp-main-wrap {
    margin-left: var(--hbp-sidebar-w);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ============================================================
   SIDEBAR — BRAND
   ============================================================ */
.hbp-sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: var(--hbp-topbar-h);
    flex-shrink: 0;
}
.hbp-brand-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    overflow: hidden;
}
.hbp-brand-img   { height: 34px; width: auto; }
.hbp-brand-text {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: -0.4px;
    white-space: nowrap;
}
.hbp-sidebar-close {
    display: none;
    align-items: center;
    justify-content: center;
    width: 34px; height: 34px;
    background: none;
    border: none; cursor: pointer;
    border-radius: var(--hbp-radius-sm);
    color: var(--hbp-header-text, var(--text-color));
    font-size: 16px;
    transition: var(--hbp-transition);
    flex-shrink: 0;
}
.hbp-sidebar-close:hover { background: var(--hbp-gray-200); }

/* ============================================================
   SIDEBAR — NAVIGATION
   ============================================================ */
.hbp-sidebar-section-label {
    padding: 20px 18px 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.7px;
    color: var(--hbp-gray-400);
    text-transform: uppercase;
}
.hbp-sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 8px 10px;
    scrollbar-width: thin;
    scrollbar-color: var(--hbp-gray-200) transparent;
}
.hbp-sidebar-nav::-webkit-scrollbar { width: 4px; }
.hbp-sidebar-nav::-webkit-scrollbar-thumb { background: var(--hbp-gray-200); border-radius: 4px; }

.hbp-sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: var(--hbp-radius);
    font-size: 14.5px;
    font-weight: 500;
    color: var(--hbp-header-text, var(--hbp-gray-600));
    text-decoration: none;
    margin-bottom: 2px;
    transition: var(--hbp-transition);
    background: transparent;
}
.hbp-sidebar-link:hover {
    background: var(--hbp-gray-100);
    color: var(--text-color);
}
.hbp-sidebar-link.active {
    background: var(--hbp-primary-light);
    color: var(--hbp-primary);
    font-weight: 600;
}
.hbp-sidebar-link-icon {
    width: 22px;
    text-align: center;
    font-size: 17px;
    flex-shrink: 0;
    color: inherit;
}
.hbp-sidebar-link-label { flex: 1; }
.hbp-sidebar-link-pip {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--hbp-primary);
    flex-shrink: 0;
}

/* ─── SIDEBAR GROUP (expandable, e.g. Ad Manager) ─────────── */
.hbp-sidebar-group-toggle {
    width: 100%;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}
.hbp-sidebar-group-caret {
    font-size: 12px;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}
.hbp-sidebar-group.open .hbp-sidebar-group-caret { transform: rotate(180deg); }
.hbp-sidebar-subnav {
    padding-left: 14px;
    margin-bottom: 2px;
}
.hbp-sidebar-sublink {
    padding-top: 9px;
    padding-bottom: 9px;
    font-size: 13.5px;
}

/* ============================================================
   SIDEBAR — FOOTER (user card)
   ============================================================ */
.hbp-sidebar-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: var(--hbp-gray-50);
    border-top: 1px solid var(--hbp-gray-100);
    flex-shrink: 0;
}
.hbp-sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}
.hbp-sidebar-avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--hbp-primary);
    color: var(--hbp-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
    overflow: hidden;
}
.hbp-sidebar-avatar img { width: 100%; height: 100%; object-fit: cover; }
.hbp-sidebar-user-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.hbp-sidebar-user-name {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hbp-sidebar-user-role {
    font-size: 12px;
    color: var(--hbp-gray-400);
}
.hbp-sidebar-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: var(--hbp-radius-sm);
    color: var(--hbp-gray-400);
    font-size: 18px;
    text-decoration: none;
    transition: var(--hbp-transition);
    background: transparent;
    flex-shrink: 0;
}
.hbp-sidebar-logout:hover {
    background: #FEF2F2;
    color: var(--hbp-danger);
}

/* ============================================================
   TOPBAR
   ============================================================ */
.hbp-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--hbp-topbar-h);
    display: flex;
    align-items: center;
    background: var(--hbp-header-bg, var(--hbp-white));
    border-bottom: 1px solid var(--hbp-gray-200);
    flex-shrink: 0;
}
.hbp-topbar-inner {
    width: 100%;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.hbp-topbar-start {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.hbp-topbar-brand {
    display: none;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.hbp-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    background: none;
    border: none; cursor: pointer;
    border-radius: var(--hbp-radius);
    color: var(--hbp-header-text, var(--text-color));
    font-size: 20px;
    transition: var(--hbp-transition);
}

.hbp-topbar-breadcrumb { flex: 1; }
.hbp-topbar-page-label {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: -0.3px;
}
.hbp-topbar-end { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.hbp-topbar-user-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 8px;
    border-radius: 40px;
    background: none;
    color: var(--hbp-header-text, var(--text-color));
    text-decoration: none;
    transition: var(--hbp-transition);
}
.hbp-topbar-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--hbp-primary);
    color: var(--hbp-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    overflow: hidden;
    flex-shrink: 0;
}
.hbp-topbar-avatar img { width: 100%; height: 100%; object-fit: cover; }
.hbp-topbar-user-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
}

/* ============================================================
   CONTENT + FOOTER
   ============================================================ */
.hbp-content { flex: 1; }

.hbp-footer {
    padding: 20px 28px;
    margin-top: auto;
    border-top: 1px solid var(--hbp-gray-100);
    background: transparent;
}
.hbp-footer-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: var(--hbp-gray-400);
}

/* ============================================================
   MOBILE OVERLAY
   ============================================================ */
.hbp-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.35);
    z-index: 290;
    backdrop-filter: blur(3px);
}
.hbp-overlay.open { display: block; }

/* ============================================================
   PAGE CONTAINER
   ============================================================ */
.hbp-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 36px 28px;
}
.hbp-page-boxed {
    max-width: 100%;
    margin: 0;
    padding: 24px 28px;
}

/* ============================================================
   CARDS
   ============================================================ */
.hbp-card {
    background: var(--hbp-white);
    border-radius: var(--hbp-radius-lg);
    border: 1px solid var(--hbp-gray-200);
    overflow: visible;
}
.hbp-card-header {
    padding: 20px 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
}
.hbp-card-title {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--text-color) !important;
    margin: 0 !important;
    letter-spacing: -0.2px !important;
    line-height: 1.3 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    text-transform: none !important;
}
.hbp-section-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: var(--text-color) !important;
    margin: 0 !important;
    letter-spacing: -0.3px !important;
    line-height: 1.3 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
}
.hbp-page-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-color);
    margin: 0;
    letter-spacing: -0.5px;
    line-height: 1.25;
}
.hbp-sub-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 10px;
    letter-spacing: -0.2px;
}
.hbp-card-body { padding: 20px 24px 24px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.hbp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 24px;
    border-radius: var(--hbp-radius);
    font-size: 14.5px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--hbp-transition);
    line-height: 1;
    letter-spacing: -0.1px;
    white-space: nowrap;
}
.hbp-btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none !important; }

.hbp-btn-primary { background: var(--hbp-primary); color: #fff; box-shadow: var(--hbp-shadow-xs); }
.hbp-btn-primary:hover { background: var(--hbp-primary-dark); transform: translateY(-1px); box-shadow: var(--hbp-shadow-sm); color: #fff; }

.hbp-btn-outline { background: transparent; color: var(--hbp-primary); border: 2px solid var(--hbp-primary); }
.hbp-btn-outline:hover { background: var(--hbp-primary-light); transform: translateY(-1px); color: var(--hbp-primary-dark); }

.hbp-btn-ghost { background: var(--hbp-gray-100); color: var(--text-color); }
.hbp-btn-ghost:hover { background: var(--hbp-gray-200); transform: translateY(-1px); color: var(--text-color); }

.hbp-btn-danger { background: var(--hbp-danger); color: #fff; }
.hbp-btn-danger:hover { background: #B91C1C; transform: translateY(-1px); color: #fff; }

.hbp-btn-success { background: var(--hbp-success); color: #fff; }
.hbp-btn-success:hover { background: #15803D; transform: translateY(-1px); color: #fff; }

.hbp-btn-sm { padding: 8px 18px; font-size: 13px; }
.hbp-btn-lg { padding: 14px 32px; font-size: 16px; }
.hbp-btn-full { width: 100%; }

/* ============================================================
   FORMS
   ============================================================ */
.hbp-form-group { margin-bottom: 22px; }
.hbp-label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--hbp-gray-700);
    margin-bottom: 8px;
    letter-spacing: -0.1px;
}
.hbp-label span.req { color: var(--hbp-danger); margin-left: 2px; }
.hbp-input,
.hbp-select,
.hbp-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--hbp-gray-200);
    border-radius: var(--hbp-radius);
    font-size: 15px;
    font-family: var(--hbp-font);
    color: var(--text-color);
    background: var(--hbp-white);
    transition: var(--hbp-transition);
    outline: none;
    line-height: 1.5;
}
.hbp-input:focus, .hbp-select:focus, .hbp-textarea:focus {
    border-color: var(--hbp-primary);
    box-shadow: 0 0 0 3px var(--hbp-primary-light);
}
.hbp-input::placeholder, .hbp-textarea::placeholder { color: var(--hbp-gray-400); }
.hbp-textarea { resize: vertical; min-height: 110px; }
.hbp-select { cursor: pointer; appearance: auto; }
.hbp-input-hint { font-size: 13px; color: var(--hbp-gray-400); margin-top: 6px; line-height: 1.4; }

.hbp-input-group { position: relative; display: flex; align-items: center; }
.hbp-input-group .hbp-input { padding-left: 42px; }
.hbp-input-group .hbp-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hbp-gray-400);
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    pointer-events: none;
    z-index: 1;
}
.hbp-input-group .hbp-input[type="password"] { padding-right: 42px; }
.hbp-input-group .hbp-input-toggle-pass {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 4px;
    margin: 0;
    cursor: pointer;
    color: var(--hbp-gray-400);
    line-height: 1;
}
.hbp-input-group .hbp-input-toggle-pass:hover { color: var(--hbp-gray-600); }
.hbp-input-group .hbp-input-toggle-pass svg { display: block; }

/* ============================================================
   ALERTS
   ============================================================ */
.hbp-alert {
    padding: 14px 18px;
    border-radius: var(--hbp-radius);
    font-size: 14.5px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}
.hbp-alert-success { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
.hbp-alert-danger  { background: #FFF1F2; color: #9F1239; border: 1px solid #FECDD3; }
.hbp-alert-warning { background: #FFFBEB; color: #92400E; border: 1px solid #FDE68A; }
.hbp-alert-info    { background: var(--hbp-primary-light); color: var(--hbp-primary-dark); border: 1px solid #BFDBFE; }

/* ============================================================
   STAT CARDS
   ============================================================ */
.hbp-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}
.hbp-stat-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}
.hbp-adw-actions-grid {
    grid-template-columns: 1fr 1fr;
}
.hbp-scard,
.hbp-stat-card {
    background: var(--hbp-white);
    border-radius: var(--hbp-radius-lg);
    padding: 20px 16px 18px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    border: 1px solid var(--hbp-gray-200);
    transition: var(--hbp-transition);
    position: relative;
    overflow: hidden;
}
.hbp-scard:hover,
.hbp-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--hbp-shadow);
    border-color: var(--hbp-gray-300);
}
.hbp-scard-icon,
.hbp-stat-icon {
    width: 42px; height: 42px;
    border-radius: var(--hbp-radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.hbp-scard-icon.indigo,  .hbp-stat-icon.blue   { background: #EEF2FF; color: #4F46E5; }
.hbp-scard-icon.emerald, .hbp-stat-icon.green  { background: #ECFDF5; color: #059669; }
.hbp-scard-icon.amber,   .hbp-stat-icon.amber  { background: #FFFBEB; color: #D97706; }
.hbp-scard-icon.rose,    .hbp-stat-icon.red    { background: #FFF1F2; color: #E11D48; }
.hbp-scard-icon.sky   { background: #F0F9FF; color: #0284C7; }
.hbp-scard-icon.purple{ background: #F5F3FF; color: #7C3AED; }

.hbp-scard-val,
.hbp-stat-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-color);
    line-height: 1;
    letter-spacing: -0.8px;
}
.hbp-scard-lbl,
.hbp-stat-label {
    font-size: 13px;
    color: var(--hbp-gray-500);
    font-weight: 500;
    line-height: 1.3;
}
.hbp-scard-accent {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
}
.hbp-scard-accent.indigo  { background: linear-gradient(90deg,#6366f1,#8b5cf6); }
.hbp-scard-accent.emerald { background: linear-gradient(90deg,#10b981,#34d399); }
.hbp-scard-accent.amber   { background: linear-gradient(90deg,#f59e0b,#fbbf24); }
.hbp-scard-accent.rose    { background: linear-gradient(90deg,#f43f5e,#fb7185); }
.hbp-scard-accent.sky     { background: linear-gradient(90deg,#0ea5e9,#38bdf8); }
.hbp-scard-accent.purple  { background: linear-gradient(90deg,#8b5cf6,#a78bfa); }

/* ============================================================
   TABLES
   ============================================================ */
.hbp-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.hbp-posts-table { width: 100%; border-collapse: collapse; }
.hbp-posts-table th {
    text-align: left;
    padding: 13px 18px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--hbp-gray-500);
    background: var(--hbp-gray-50);
    white-space: nowrap;
}
.hbp-posts-table td {
    padding: 16px 18px;
    font-size: 14.5px;
    border-top: 1px solid var(--hbp-gray-100);
    vertical-align: middle;
    line-height: 1.4;
}
.hbp-posts-table tr:hover td { background: var(--hbp-gray-50); }
.hbp-post-title-link { font-weight: 600; color: var(--text-color); text-decoration: none; }
.hbp-post-title-link:hover { color: var(--hbp-primary); }

/* ============================================================
   BADGES
   ============================================================ */
.hbp-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 40px;
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
}
.hbp-badge-publish { background: #ECFDF5; color: #065F46; }
.hbp-badge-draft   { background: var(--hbp-gray-100); color: var(--hbp-gray-600); }
.hbp-badge-pending { background: #FFFBEB; color: #92400E; }
.hbp-badge-hbp_spam { background: #FEE2E2; color: #991B1B; }
.hbp-badge-job     { background: var(--hbp-primary-light); color: var(--hbp-primary); }
.hbp-badge-article { background: #ECFDF5; color: #065F46; }

/* ============================================================
   TYPE SELECTOR
   ============================================================ */
.hbp-type-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 28px;
}
.hbp-type-card {
    background: var(--hbp-white);
    border: 2px solid var(--hbp-gray-200);
    border-radius: var(--hbp-radius-xl);
    padding: 28px 24px;
    cursor: pointer;
    text-align: center;
    transition: var(--hbp-transition);
    user-select: none;
}
.hbp-type-card:hover { border-color: var(--hbp-primary); background: var(--hbp-primary-xlight); transform: translateY(-2px); }
.hbp-type-card.selected {
    border-color: var(--hbp-primary);
    background: var(--hbp-primary-light);
}
.hbp-type-card-icon   { font-size: 40px; margin-bottom: 12px; display: block; }
.hbp-type-card-title  { font-size: 16px; font-weight: 700; color: var(--text-color); margin-bottom: 6px; }
.hbp-type-card-desc   { font-size: 13.5px; color: var(--hbp-gray-500); line-height: 1.4; }
.hbp-type-card input[type="radio"] { display: none; }

/* ============================================================
   JOB DETAILS
   ============================================================ */
.hbp-job-details-box {
    background: var(--hbp-primary-xlight);
    border: 1px solid var(--hbp-primary-light);
    border-radius: var(--hbp-radius-lg);
    padding: 24px;
    margin: 24px 0;
}
.hbp-job-details-box .hbp-section-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--hbp-primary);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ============================================================
   RICH EDITOR
   ============================================================ */
.hbp-wp-editor-wrap .wp-editor-container { border-radius: var(--hbp-radius-lg); overflow: visible; border: 1.5px solid var(--hbp-gray-200); }
.hbp-wp-editor-wrap .wp-editor-container:focus-within { border-color: var(--hbp-primary); box-shadow: 0 0 0 3px var(--hbp-primary-light); }
.hbp-wp-editor-wrap .wp-editor-container .mce-top-part,
.hbp-wp-editor-wrap .wp-editor-container .wp-editor-tabs { border-radius: 10px 10px 0 0; overflow: hidden; }
.hbp-wp-editor-wrap .wp-editor-container .mce-edit-area { overflow: hidden; }
.hbp-wp-editor-wrap .wp-editor-container .mce-statusbar { border-radius: 0 0 10px 10px; overflow: hidden; }
@media (max-width: 600px) {
    .hbp-wp-editor-wrap .wp-editor-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
    .hbp-wp-editor-wrap .wp-editor-tabs { order: -1; }
    .hbp-wp-editor-wrap .mce-toolbar-grp { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .hbp-wp-editor-wrap .mce-toolbar .mce-btn-group { flex-wrap: wrap; }
    .hbp-wp-editor-wrap .wp-media-buttons { display: flex; flex-wrap: wrap; gap: 4px; }
}

/* ============================================================
   FEATURED IMAGE
   ============================================================ */
.hbp-image-upload-area {
    border: 2px dashed var(--hbp-gray-300);
    border-radius: var(--hbp-radius-xl);
    padding: 40px 24px;
    text-align: center;
    cursor: pointer;
    transition: var(--hbp-transition);
    position: relative;
    background: var(--hbp-gray-50);
}
.hbp-image-upload-area:hover { border-color: var(--hbp-primary); background: var(--hbp-primary-xlight); }
.hbp-image-preview {
    display: none;
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    border-radius: var(--hbp-radius-lg);
    margin-top: 16px;
}

/* ============================================================
   SUBSCRIPTION / PLAN CARDS
   ============================================================ */
.hbp-plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 24px 0;
}
.hbp-plan-card {
    background: var(--hbp-white);
    border: 2px solid var(--hbp-gray-200);
    border-radius: var(--hbp-radius-xl);
    padding: 28px 24px;
    text-align: center;
    transition: var(--hbp-transition);
    position: relative;
    cursor: pointer;
}
.hbp-plan-card:hover { border-color: var(--hbp-primary); transform: translateY(-3px); box-shadow: var(--hbp-shadow); }
.hbp-plan-card.popular { border-color: var(--hbp-primary); background: var(--hbp-primary-xlight); }
.hbp-plan-card.selected { border-color: var(--hbp-primary); box-shadow: 0 0 0 3px var(--hbp-primary-light); }
.hbp-plan-popular-tag {
    position: absolute;
    top: -13px; left: 50%;
    transform: translateX(-50%);
    background: var(--hbp-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 40px;
}
.hbp-plan-name { font-size: 18px; font-weight: 700; color: var(--text-color); margin-bottom: 6px; }
.hbp-plan-price { font-size: 42px; font-weight: 800; color: var(--hbp-primary); line-height: 1; margin: 10px 0 4px; letter-spacing: -1px; }
.hbp-plan-price small { font-size: 16px; font-weight: 500; color: var(--hbp-gray-400); }
.hbp-plan-period { font-size: 13.5px; color: var(--hbp-gray-400); }

/* ============================================================
   AUTH PAGES
   ============================================================ */
.hbp-auth-page {
    min-height: 100vh;
    background: linear-gradient(145deg, var(--hbp-primary-xlight) 0%, #F8FAFC 60%, #F1F5F9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.hbp-auth-container { width: 100%; max-width: 460px; }
.hbp-auth-logo { text-align: center; margin-bottom: 32px; }
.hbp-auth-logo img {
    max-height: 40px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
}
.hbp-auth-logo .hbp-logo-text {
    display: inline-block;
    font-size: 22px;
    font-weight: 800;
    color: var(--text-color);
    text-decoration: none;
    letter-spacing: -0.3px;
}
.hbp-auth-card {
    background: var(--hbp-white);
    border-radius: var(--hbp-radius-xl);
    padding: 40px 36px;
    border: 1px solid var(--hbp-gray-200);
    box-shadow: var(--hbp-shadow-lg);
}
.hbp-auth-card-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-color);
    margin: 0 0 6px;
    letter-spacing: -0.5px;
}
.hbp-auth-card-sub {
    font-size: 14.5px;
    color: var(--hbp-gray-500);
    margin: 0 0 28px;
    line-height: 1.5;
}
.hbp-auth-divider {
    border: none;
    border-top: 1px solid var(--hbp-gray-200);
    margin: 24px 0;
}
.hbp-auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--hbp-gray-500);
}
.hbp-auth-footer a { color: var(--hbp-primary); text-decoration: none; font-weight: 600; }
.hbp-auth-footer a:hover { text-decoration: underline; }

/* ============================================================
   PROFILE
   ============================================================ */
.hbp-profile-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.hbp-profile-avatar {
    width: 88px; height: 88px;
    border-radius: 50%;
    background: var(--hbp-primary);
    color: #fff;
    font-size: 34px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid var(--hbp-gray-200);
}
.hbp-profile-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   SUBSCRIPTION STATUS
   ============================================================ */
.hbp-sub-status {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
    border-radius: var(--hbp-radius-lg);
    padding: 18px 22px;
    margin-bottom: 28px;
}
.hbp-sub-status.expired {
    background: #FFF1F2;
    border-color: #FECDD3;
}

/* ============================================================
   SPINNER
   ============================================================ */
.hbp-spinner {
    display: inline-block;
    width: 18px; height: 18px;
    border: 2px solid rgba(255,255,255,.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: hbp-spin 0.6s linear infinite;
}
@keyframes hbp-spin { to { transform: rotate(360deg); } }

/* ============================================================
   EMPTY STATE
   ============================================================ */
.hbp-empty {
    text-align: center;
    padding: 72px 28px;
}
.hbp-empty-icon  { font-size: 60px; margin-bottom: 18px; opacity: 0.35; display: block; }
.hbp-empty-title { font-size: 20px; font-weight: 700; color: var(--text-color); }
.hbp-empty-desc  { font-size: 15px; color: var(--hbp-gray-400); margin-top: 8px; line-height: 1.5; }

/* ============================================================
   TOAST
   ============================================================ */
#hbp-toast-container {
    position: fixed;
    bottom: 24px; right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.hbp-toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: var(--hbp-radius-xl);
    font-size: 14.5px;
    font-weight: 600;
    max-width: 380px;
    animation: hbp-toast-in 0.3s ease;
    color: #fff;
    box-shadow: var(--hbp-shadow-lg);
}
.hbp-toast.success { background: #059669; }
.hbp-toast.error   { background: var(--hbp-danger); }
.hbp-toast.info    { background: var(--hbp-primary); }
@keyframes hbp-toast-in {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   PAGINATION
   ============================================================ */
.hbp-pagination { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.hbp-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px; height: 40px;
    padding: 0 14px;
    border-radius: var(--hbp-radius);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
    background: transparent;
    border: 1.5px solid transparent;
    transition: var(--hbp-transition);
}
.hbp-page-btn:hover { background: var(--hbp-gray-100); color: var(--text-color); }
.hbp-page-btn.active {
    background: var(--hbp-primary);
    color: #fff;
    border-color: var(--hbp-primary);
}

/* ============================================================
   DIVIDER
   ============================================================ */
.hbp-divider {
    border: none;
    border-top: 1px solid var(--hbp-gray-200);
    margin: 24px 0;
}

/* ============================================================
   SECTION HEADER ROW (title + action)
   ============================================================ */
.hbp-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* ============================================================
   RESPONSIVE — 768px (tablet / mobile)
   ============================================================ */
@media (max-width: 768px) {
    .hbp-sidebar { transform: translateX(-100%); }
    .hbp-sidebar.open { transform: translateX(0); }
    .hbp-sidebar-close { display: flex; }
    .hbp-main-wrap { margin-left: 0; }
    .hbp-menu-toggle { display: flex; }
    .hbp-topbar-brand { display: flex; }
    .hbp-topbar-breadcrumb { display: none; }
    .hbp-topbar-inner { padding: 0 16px; }
    .hbp-topbar-user-name { display: none; }
    .hbp-page { padding: 20px 16px 32px; }
    .hbp-page-boxed { padding: 16px; }
    .hbp-card-header { padding: 16px 18px 0; }
    .hbp-card-body { padding: 16px 18px 20px; }
    .hbp-type-selector { grid-template-columns: 1fr; }
    .hbp-plan-grid { grid-template-columns: 1fr; }
    .hbp-adw-actions-grid { grid-template-columns: 1fr; }
    .hbp-stats-grid,
    .hbp-stat-strip { grid-template-columns: repeat(2, 1fr); }
    .hbp-auth-card { padding: 28px 22px; border-radius: var(--hbp-radius-lg); }
    .hbp-scard, .hbp-stat-card { padding: 16px 14px 14px; }
    .hbp-scard-val, .hbp-stat-value { font-size: 22px; }
    .hbp-page-title { font-size: 19px; }
    .hbp-posts-table { min-width: 640px; }
}
@media (max-width: 480px) {
    .hbp-stats-grid,
    .hbp-stat-strip { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .hbp-profile-header { flex-direction: column; align-items: flex-start; gap: 16px; }
    .hbp-profile-avatar { width: 72px; height: 72px; font-size: 28px; }
    #hbp-toast-container { right: 12px; bottom: 12px; left: 12px; }
    .hbp-toast { max-width: 100%; }
    .hbp-btn { font-size: 14px; }
}

/* ============================================================
   FAQ FLOATING WIDGET
   ============================================================ */
#hbp-faq-fab {
    position: fixed;
    bottom: 24px; right: 24px;
    z-index: 9990;
    width: 52px; height: 52px;
    border-radius: 50%;
    background: var(--hbp-primary);
    color: #fff;
    border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 20px rgba(37,99,235,.4), 0 1px 4px rgba(0,0,0,.12);
    transition: transform .2s cubic-bezier(.34,1.56,.64,1), box-shadow .2s ease, background .15s;
    outline: none;
}
#hbp-faq-fab:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,99,235,.5); }
#hbp-faq-fab:active { transform: scale(.95); }
#hbp-faq-fab.is-open { background: #111827; box-shadow: 0 4px 16px rgba(0,0,0,.28); }

#hbp-faq-overlay {
    display: none;
    position: fixed; inset: 0;
    z-index: 9991;
    background: rgba(0,0,0,.3);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity .25s ease;
}
#hbp-faq-overlay.is-visible { opacity: 1; }

#hbp-faq-modal,
#hbp-faq-detail {
    position: fixed;
    bottom: 90px; right: 24px;
    z-index: 9992;
    width: 420px;
    max-width: calc(100vw - 32px);
    height: min(72vh, 620px);
    background: #fff;
    border-radius: var(--hbp-radius-xl);
    box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 8px 32px rgba(0,0,0,.14);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    pointer-events: none;
}
#hbp-faq-modal { opacity: 0; transform: translateY(16px) scale(.97); transition: opacity .25s ease, transform .28s cubic-bezier(.34,1.2,.64,1); }
#hbp-faq-modal.is-open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
#hbp-faq-detail { opacity: 0; transform: translateX(100%); transition: opacity .22s ease, transform .28s cubic-bezier(.25,.8,.25,1); }
#hbp-faq-detail.is-open { opacity: 1; transform: translateX(0); pointer-events: auto; }

.hbp-faq-modal-header {
    background: var(--hbp-primary);
    padding: 20px 22px 16px;
    flex-shrink: 0;
}
.hbp-faq-modal-header-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; }
.hbp-faq-modal-pretitle { font-size: 11px; font-weight: 700; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 3px; }
.hbp-faq-modal-title { font-size: 18px; font-weight: 800; color: #fff; margin: 0; line-height: 1.2; }
.hbp-faq-modal-close { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.15); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; transition: background .15s; }
.hbp-faq-modal-close:hover { background: rgba(255,255,255,.28); }
.hbp-faq-search-wrap { position: relative; display: flex; align-items: center; }
.hbp-faq-search-icon { position: absolute; left: 12px; color: rgba(255,255,255,.5); pointer-events: none; }
#hbp-faq-modal-search { width: 100%; padding: 10px 14px 10px 36px; background: rgba(255,255,255,.15); border: 1.5px solid rgba(255,255,255,.25); border-radius: 10px; color: #fff; font-size: 14px; outline: none; box-sizing: border-box; transition: background .15s; font-family: inherit; }
#hbp-faq-modal-search::placeholder { color: rgba(255,255,255,.55); }
#hbp-faq-modal-search:focus { background: rgba(255,255,255,.22); border-color: rgba(255,255,255,.5); }
.hbp-faq-tabs { display: flex; gap: 6px; padding: 12px 16px; overflow-x: auto; flex-shrink: 0; background: var(--hbp-gray-50); border-bottom: 1px solid var(--hbp-gray-100); scrollbar-width: none; }
.hbp-faq-tabs::-webkit-scrollbar { display: none; }
.hbp-faq-tab { flex-shrink: 0; padding: 5px 14px; border-radius: 99px; font-size: 12px; font-weight: 600; cursor: pointer; border: 1.5px solid var(--hbp-gray-200); background: #fff; color: var(--hbp-gray-500); transition: all .15s; white-space: nowrap; }
.hbp-faq-tab.active, .hbp-faq-tab:hover { background: var(--hbp-primary); color: #fff; border-color: var(--hbp-primary); }
.hbp-faq-modal-body { flex: 1; overflow-y: auto; padding: 8px 0; scroll-behavior: smooth; min-height: 0; }
.hbp-faq-modal-body::-webkit-scrollbar { width: 4px; }
.hbp-faq-modal-body::-webkit-scrollbar-thumb { background: var(--hbp-gray-200); border-radius: 4px; }
.hbp-faq-loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 40px 20px; font-size: 14px; color: var(--hbp-gray-400); }
.hbp-faq-spinner { width: 20px; height: 20px; border: 2.5px solid var(--hbp-gray-200); border-top-color: var(--hbp-primary); border-radius: 50%; animation: hbp-faq-spin .7s linear infinite; display: inline-block; flex-shrink: 0; }
@keyframes hbp-faq-spin { to { transform: rotate(360deg); } }
.hbp-faq-item { border-bottom: 1px solid var(--hbp-gray-100); }
.hbp-faq-item:last-child { border-bottom: none; }
.hbp-faq-question-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; background: none; border: none; cursor: pointer; text-align: left; font-family: inherit; transition: background .12s; }
.hbp-faq-question-btn:hover { background: var(--hbp-gray-50); }
.hbp-faq-question-text { font-size: 14px; font-weight: 600; color: var(--text-color); line-height: 1.45; flex: 1; }
.hbp-faq-arrow { flex-shrink: 0; color: var(--hbp-gray-300); transition: color .15s, transform .15s; }
.hbp-faq-question-btn:hover .hbp-faq-arrow { color: var(--hbp-primary); transform: translateX(2px); }
.hbp-faq-cat-label { display: inline-block; background: var(--hbp-primary-light); color: var(--hbp-primary-dark); font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 99px; margin-left: 4px; vertical-align: middle; flex-shrink: 0; }
.hbp-faq-empty { padding: 40px 20px; text-align: center; }
.hbp-faq-modal-footer { padding: 12px 18px; background: var(--hbp-gray-50); border-top: 1px solid var(--hbp-gray-100); font-size: 13px; color: var(--hbp-gray-500); display: flex; align-items: center; justify-content: center; gap: 6px; flex-shrink: 0; }
.hbp-faq-modal-footer a { color: var(--hbp-primary); font-weight: 600; text-decoration: none; }
.hbp-faq-modal-footer a:hover { text-decoration: underline; }
.hbp-faq-no-data { padding: 40px 20px; text-align: center; color: var(--hbp-gray-400); font-size: 14px; }
.hbp-faq-detail-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--hbp-gray-100); background: #fff; flex-shrink: 0; }
.hbp-faq-detail-back { display: flex; align-items: center; gap: 6px; background: none; border: none; cursor: pointer; font-family: inherit; font-size: 14px; font-weight: 600; color: var(--hbp-primary); padding: 6px 10px 6px 6px; border-radius: var(--hbp-radius-sm); transition: background .12s; }
.hbp-faq-detail-back:hover { background: var(--hbp-primary-light); }
.hbp-faq-detail-close-btn { background: var(--hbp-gray-100) !important; color: var(--hbp-gray-500) !important; }
.hbp-faq-detail-close-btn:hover { background: var(--hbp-gray-200) !important; }
.hbp-faq-detail-body { flex: 1; overflow-y: auto; padding: 22px 20px; scroll-behavior: smooth; min-height: 0; }
.hbp-faq-detail-body::-webkit-scrollbar { width: 4px; }
.hbp-faq-detail-body::-webkit-scrollbar-thumb { background: var(--hbp-gray-200); border-radius: 4px; }
.hbp-faq-detail-cat { display: inline-block; background: var(--hbp-primary-light); color: var(--hbp-primary-dark); font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 99px; margin-bottom: 12px; }
.hbp-faq-detail-question { font-size: 16px; font-weight: 800; color: var(--text-color); line-height: 1.4; margin: 0 0 18px; }
.hbp-faq-detail-answer { font-size: 14.5px; color: var(--hbp-gray-600); line-height: 1.75; }
.hbp-faq-detail-answer p { margin: 0 0 12px; }
.hbp-faq-detail-answer p:last-child { margin-bottom: 0; }
.hbp-faq-detail-answer a { color: var(--hbp-primary); text-decoration: underline; }
.hbp-faq-detail-answer ul, .hbp-faq-detail-answer ol { padding-left: 20px; margin: 0 0 12px; }
.hbp-faq-detail-answer li { margin-bottom: 6px; }
@media (max-width: 480px) {
    #hbp-faq-modal, #hbp-faq-detail { bottom: 0; right: 0; left: 0; width: 100%; max-width: 100%; height: 100dvh; border-radius: 20px 20px 0 0; }
    #hbp-faq-modal { transform: translateY(24px) scale(1); }
    #hbp-faq-modal.is-open { transform: translateY(0) scale(1); }
    #hbp-faq-detail { transform: translateX(100%); }
    #hbp-faq-detail.is-open { transform: translateX(0); }
    #hbp-faq-fab { bottom: 18px; right: 18px; }
}

/* ============================================================
   THEME HEADER / FOOTER INTEGRATION
   ============================================================ */
.hbp-theme-header-wrap { width: 100%; min-height: 60vh; }
.hbp-content--no-sidebar {
    flex: unset !important;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 36px 28px 56px;
    box-sizing: border-box;
}
.hbp-content--no-sidebar .hbp-dashboard-grid,
.hbp-content--no-sidebar .hbp-section,
.hbp-content--no-sidebar .hbp-form-card,
.hbp-content--no-sidebar .hbp-card { width: 100%; max-width: 100%; }
body.hbp-dashboard .hbp-theme-header-wrap ~ .hbp-main-wrap { margin-left: 0; }
@media (max-width: 767px) {
    .hbp-content--no-sidebar { padding: 20px 16px 40px; }
}