/*
Theme Name: BranexTheme
Theme URI: https://branexitltd.xyz
Author: Branexit
Author URI: https://branexitltd.xyz
Description: A modern web hosting WordPress theme with domain registration, shared hosting, VPS, and email hosting services.
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bt
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary:       #5A1538;
    --primary-rgb:   90, 21, 56;
    --primary-dark:  #2A0A1C;
    --accent:        #B84D74;
    --accent-rgb:    184, 77, 116;
    --accent-bright: #E8B0C4;
    --accent-bright-rgb: 232, 176, 196;
    --accent-light:  #F5E8F0;
    --gold:          #D4A853;
    --gold-rgb:      212, 168, 83;
    --gold-dark:     #B8943F;
    --text:          #1e293b;
    --text-muted:    #64748b;
    --bg:            #ffffff;
    --bg-light:      #f8fafc;
    --border:        #e5e7eb;
    --radius:        12px;
    --font:          'Inter', sans-serif;

    --accent-dark:     #8B2D5E;

    --focus-ring:      var(--accent);

    --color-success:   #16a34a;
    --color-success-rgb: 22, 163, 74;
    --color-error:     #dc2626;
    --color-error-rgb: 220, 38, 38;
    --color-warning:   #d97706;
    --color-warning-rgb: 217, 119, 6;

    --gradient-dark:   linear-gradient(135deg, var(--primary-dark), var(--primary));
    --gradient-accent: linear-gradient(135deg, var(--accent), var(--accent-dark));
    --gradient-gold:   linear-gradient(135deg, var(--gold), var(--gold-dark));

    --hero-padding:        120px 0 80px;
    --hero-padding-mobile: 80px 0 50px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    color: var(--text);
    line-height: 1.6;
    background: var(--bg);
    overflow-x: hidden;
}

:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all .3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 15px;
}

/* =============================================
   HERO SECTION (shared base dimensions)
   ============================================= */
.branex-hero {
    padding: var(--hero-padding);
    min-height: 600px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

/* =============================================
   HERO SECTION
   ============================================= */
@keyframes branex-hero-shift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes branex-blob-float {
    0%   { transform: translate(0, 0) scale(1); }
    33%  { transform: translate(30px, -30px) scale(1.05); }
    66%  { transform: translate(-20px, 20px) scale(0.95); }
    100% { transform: translate(0, 0) scale(1); }
}
@keyframes branex-blob-float2 {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(-40px, -20px) scale(1.1); }
    100% { transform: translate(0, 0) scale(1); }
}
@keyframes branex-fade-up {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes branex-glow-pulse {
    0%, 100% { box-shadow: 0 10px 40px rgba(0,0,0,0.2); }
    50%      { box-shadow: 0 10px 50px rgba(var(--accent-rgb), 0.15), 0 0 80px rgba(var(--accent-rgb), 0.05); }
}

.branex-hero-section {
    background: var(--gradient-dark);
    background-size: 300% 300%;
    animation: branex-hero-shift 20s ease infinite;
    position: relative;
    overflow: hidden;
}
.branex-hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}
.branex-hero-section::after {
    content: '';
    position: absolute;
    top: -20%; left: -10%;
    width: 120%; height: 120%;
    background: radial-gradient(ellipse at 20% 40%, rgba(var(--accent-rgb), 0.12) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 60%, rgba(var(--accent-bright-rgb), 0.08) 0%, transparent 50%);
    pointer-events: none;
    animation: branex-blob-float 25s ease-in-out infinite;
}
.branex-hero-section .branex-hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    opacity: 0.4;
}
.branex-hero-section .branex-hero-blob--1 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.15), transparent);
    top: -10%; right: -10%;
    animation: branex-blob-float 30s ease-in-out infinite;
}
.branex-hero-section .branex-hero-blob--2 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(var(--accent-bright-rgb), 0.1), transparent);
    bottom: -15%; left: -5%;
    animation: branex-blob-float2 35s ease-in-out infinite;
}
.branex-hero-content {
    position: relative; z-index: 1; text-align: center;
    animation: branex-fade-up 0.8s ease forwards;
}
.branex-hero-content h1 { color: #fff; font-size: 42px; font-weight: 700; margin-bottom: 15px; }
.branex-hero-content h1 span { color: var(--accent-bright); }
.branex-hero-content p { color: rgba(255,255,255,0.8); font-size: 18px; margin-bottom: 35px; }

.branex-domain-search {
    max-width: 600px; margin: 0 auto; background: var(--bg);
    border-radius: 50px; display: flex; padding: 8px; box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}
.branex-domain-search input {
    flex: 1; padding: 18px 24px; border: none; font-size: 16px; outline: none;
    border-radius: 50px;
}
.branex-domain-search:focus-within {
    animation: branex-glow-pulse 3s ease-in-out infinite;
}
.branex-domain-search button {
    background: var(--gradient-accent);
    color: #fff; border: none; padding: 18px 35px;
    font-size: 16px; font-weight: 600; cursor: pointer; transition: .3s; border-radius: 50px;
}
.branex-domain-search button:hover {
    filter: brightness(1.15);
    box-shadow: 0 4px 20px var(--accent);
}

.branex-hero-domain-prices {
    display: flex; justify-content: center; gap: 30px; margin-top: 30px; flex-wrap: wrap;
}
.branex-hero-domain-price {
    color: #fff; text-align: center; padding: 10px 20px;
    background: rgba(255,255,255,0.1); border-radius: 8px; min-width: 100px;
}
.branex-hero-domain-price .branex-tld { font-size: 20px; font-weight: 700; }
.branex-hero-domain-price .branex-price { font-size: 14px; opacity: 0.8; }

/* =============================================
   HOSTING PLANS SECTION
   ============================================= */
.branex-plans-section { padding: 80px 0; background: var(--bg-light); }

.branex-section-title { text-align: center; margin-bottom: 50px; }
.branex-section-title h2 { font-size: 36px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.branex-section-title p { color: var(--text-muted); font-size: 16px; max-width: 600px; margin: 0 auto; }

/* TABS NAV */
.branex-tabs-nav {
    display: flex; justify-content: center; gap: 6px; margin-bottom: 40px; flex-wrap: wrap;
}
.branex-tab-btn {
    padding: 12px 32px; border: none; background: var(--bg); color: var(--text-muted);
    font-size: 14px; font-weight: 700; border-radius: 50px; cursor: pointer;
    transition: .3s; font-family: var(--font); letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.branex-tab-btn:hover { color: var(--accent); background: var(--accent-light); }
.branex-tab-btn.active {
    background: var(--gradient-accent); color: #fff;
    box-shadow: 0 4px 20px rgba(var(--accent-rgb), 0.3);
}
.branex-tab-pane { display: none; }
.branex-tab-pane.active { display: block; }
.branex-tab-pane.active .branex-plan-card {
    opacity: 0; transform: translateY(20px);
    transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.branex-tab-pane.active .branex-plan-card.branex-card-visible {
    opacity: 1; transform: translateY(0);
}
.branex-tab-pane.active .branex-plan-card:nth-child(1).branex-card-visible { transition-delay: 0.02s; }
.branex-tab-pane.active .branex-plan-card:nth-child(2).branex-card-visible { transition-delay: 0.08s; }
.branex-tab-pane.active .branex-plan-card:nth-child(3).branex-card-visible { transition-delay: 0.14s; }

/* PRICING GRID (reusing basic-hosting card design) */
.branex-plan-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
    max-width: 1020px; margin: 0 auto; align-items: center;
}
.branex-plan-card {
    background: var(--bg); border-radius: 20px; padding: 36px 26px 32px;
    text-align: center; position: relative;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(0,0,0,0.04);
    display: flex; flex-direction: column;
    height: 100%;
}
.branex-plan-card::before {
    content: ''; position: absolute; top: 0; left: 20px; right: 20px;
    height: 3px; background: linear-gradient(90deg, transparent, var(--border), transparent);
    border-radius: 0 0 3px 3px; transition: .35s;
}
.branex-plan-card:hover,
.branex-tab-pane.active .branex-plan-card.branex-card-visible:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 20px 50px rgba(0,0,0,0.07);
    border-color: rgba(var(--accent-rgb), 0.12);
}
.branex-plan-card:hover::before {
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.branex-plan-card.featured {
    border: 1.5px solid rgba(var(--accent-rgb), 0.25);
    box-shadow: 0 4px 24px rgba(var(--accent-rgb), 0.1);
}
.branex-plan-card.featured::before {
    background: linear-gradient(90deg, var(--accent), var(--accent-bright), var(--accent));
}
.branex-plan-card.featured .branex-badge {
    position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff; padding: 5px 22px; border-radius: 20px;
    font-size: 12px; font-weight: 700; letter-spacing: 0.5px;
    text-transform: uppercase; white-space: nowrap;
    box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.3);
}

.branex-plan-card h3 { font-size: 20px; font-weight: 800; margin: 0 0 3px; color: var(--text); letter-spacing: -0.3px; }
.branex-plan-card .branex-plan-sub { color: var(--text-muted); font-size: 13px; margin-bottom: 18px; }
.branex-plan-card .branex-price-wrap { margin-bottom: 18px; padding: 4px 0; }
.branex-plan-card .branex-price-wrap .branex-cur { font-size: 16px; vertical-align: top; color: var(--text-muted); font-weight: 600; }
.branex-plan-card .branex-price-wrap .branex-amt { font-size: 40px; font-weight: 800; color: var(--text); line-height: 1; letter-spacing: -1px; }
.branex-plan-card.featured .branex-price-wrap .branex-amt {
    background: linear-gradient(135deg, var(--accent), var(--accent-bright));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.branex-plan-card .branex-price-wrap .branex-period { font-size: 13px; color: var(--text-muted); }

.branex-plan-card .branex-plan-annual { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; font-weight: 500; }

.branex-plan-card ul {
    list-style: none; padding: 0; margin: 0 auto; text-align: left; width: 100%;
}
.branex-plan-card ul li {
    padding: 7px 0; border-bottom: 1px solid rgba(0,0,0,0.04);
    font-size: 13px; color: var(--text-muted);
    display: flex; align-items: center; gap: 8px;
}
.branex-plan-card ul li:last-child { border-bottom: none; }
.branex-plan-card ul li::before {
    content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
    color: var(--accent); font-size: 11px; width: 18px; text-align: center;
    flex-shrink: 0;
}

.branex-plan-card .branex-plan-btn {
    display: inline-block; padding: 11px 32px; margin-top: 22px;
    background: var(--text); color: #fff; border-radius: 30px;
    font-weight: 700; font-size: 14px; text-decoration: none;
    transition: all .3s; border: none; cursor: pointer;
}
.branex-plan-card .branex-plan-btn:hover { background: var(--accent); transform: scale(1.03); color: #fff; }
.branex-plan-card.featured .branex-plan-btn {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    box-shadow: 0 4px 14px rgba(var(--accent-rgb), 0.3);
}
.branex-plan-card.featured .branex-plan-btn:hover {
    background: var(--text); box-shadow: none; transform: scale(1.03);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .branex-plan-grid { grid-template-columns: 1fr; padding: 0 15px; }
    .branex-tab-btn { padding: 10px 20px; font-size: 12px; }
}

/* =============================================
   SERVICES SECTION
   ============================================= */
.branex-services-section { padding: 80px 0; background: var(--bg); }
.branex-services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 30px; }
.branex-service-card {
    background: var(--bg-light); border-radius: 15px; padding: 40px; transition: .3s;
    border: 1px solid transparent;
}
.branex-service-card:hover { background: var(--primary); color: #fff; border-color: var(--accent); }
.branex-service-card:hover .branex-service-icon { color: var(--accent-bright); }
.branex-service-card:hover p { color: rgba(255,255,255,0.8); }
.branex-service-card:hover .branex-service-link { color: #fff; }
.branex-service-icon { font-size: 40px; color: var(--accent); margin-bottom: 20px; transition: .3s; }
.branex-service-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.branex-service-card p { color: var(--text-muted); font-size: 15px; line-height: 1.7; transition: .3s; }
.branex-service-card .branex-service-link { display: inline-block; margin-top: 15px; font-weight: 600; color: var(--accent); }

/* =============================================
   FEATURES SECTION
   ============================================= */
.branex-features-section {
    padding: 80px 0; background: var(--gradient-dark);
    color: #fff; position: relative;
}
.branex-features-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(var(--accent-rgb),0.06) 0%, transparent 60%);
    pointer-events: none;
}
.branex-features-section .branex-section-title h2 { color: #fff; }
.branex-features-section .branex-section-title p { color: rgba(255,255,255,0.7); }

.branex-features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.branex-feature-item { text-align: center; padding: 30px; background: rgba(255,255,255,0.05); border-radius: 12px; transition: .3s; }
.branex-feature-item:hover { background: rgba(255,255,255,0.1); transform: translateY(-3px); }
.branex-feature-item i { font-size: 36px; color: var(--accent-bright); margin-bottom: 15px; }
.branex-feature-item h4 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.branex-feature-item p { color: rgba(255,255,255,0.7); font-size: 14px; }

/* =============================================
   CTA SECTION
   ============================================= */
.branex-cta-section {
    padding: 80px 0; background: var(--gradient-accent);
    color: #fff; text-align: center; position: relative; overflow: hidden;
}
.branex-cta-section::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.06) 0%, transparent 50%);
    pointer-events: none;
}
.branex-cta-section > * { position: relative; z-index: 1; }
.branex-cta-section h2 { font-size: 36px; font-weight: 700; margin-bottom: 15px; }
.branex-cta-section p { font-size: 18px; opacity: 0.9; margin-bottom: 30px; max-width: 600px; margin-left: auto; margin-right: auto; }
.branex-cta-btn { display: inline-block; padding: 15px 40px; background: #fff; color: var(--accent-dark); border-radius: 30px; font-weight: 600; font-size: 16px; transition: .3s; }
.branex-cta-btn:hover { background: var(--text); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.2); }

/* =============================================
   HERO RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
    .branex-hero { padding: var(--hero-padding-mobile); min-height: 420px; }
    .branex-hero-content h1 { font-size: 28px; }
    .branex-domain-search { flex-direction: column; border-radius: 50px; max-width: 100%; }
    .branex-domain-search input { border-radius: 50px 50px 0 0; text-align: center; }
    .branex-domain-search button { border-radius: 0 0 50px 50px; padding: 18px 35px; width: 100%; }
}

/* =============================================
   SEARCH OVERLAY
   ============================================= */
.branex-overlay-fullpage {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999999;
    align-items: center;
    justify-content: center;
}
.branex-overlay-fullpage-content {
    width: 100%;
    max-width: 600px;
    padding: 40px 20px;
    position: relative;
}
.branex-overlay-close {
    position: absolute;
    top: -40px;
    right: 20px;
    color: rgba(255,255,255,0.6);
    font-size: 28px;
    cursor: pointer;
    transition: .3s;
}
.branex-overlay-close:hover { color: #fff; transform: rotate(90deg); }
.branex-overlay-search .search-form {
    display: flex;
    background: var(--bg);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}
.branex-overlay-search input {
    flex: 1;
    padding: 20px 24px;
    border: none;
    font-size: 16px;
    outline: none;
}
.branex-overlay-search button {
    background: var(--gradient-accent);
    color: #fff;
    border: none;
    padding: 0 35px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: .3s;
}
.branex-overlay-search button:hover { filter: brightness(1.12); }

/* =============================================
   FAQ ACCORDION (shared across pages)
   ============================================= */
.branex-faq-grid { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.branex-faq-item { background: var(--bg); border-radius: 14px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.04); border: 1px solid var(--border); }
.branex-faq-question { padding: 20px 24px; font-weight: 600; font-size: 16px; color: var(--text); cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: .2s; }
.branex-faq-question:hover { color: var(--accent); }
.branex-faq-question i { color: var(--accent); transition: .3s; font-size: 14px; }
.branex-faq-question.active i { transform: rotate(180deg); }
.branex-faq-answer { padding: 0 24px 20px; color: var(--text-muted); font-size: 15px; line-height: 1.7; display: none; }
.branex-faq-answer.active { display: block; }
@keyframes branex-aff-pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
}
.branex-aff-hero > * { position: relative; z-index: 1; }
.branex-aff-hero-label {
    color: var(--accent-bright);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}
.branex-aff-hero h1 { color: #fff; font-size: 44px; font-weight: 800; margin-bottom: 14px; letter-spacing: -0.5px; }
.branex-aff-hero h1 span { color: var(--accent-bright); }
.branex-aff-hero-sub { color: rgba(255,255,255,0.75); font-size: 16px; max-width: 640px; margin: 0 auto 28px; line-height: 1.7; }
.branex-aff-hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.branex-btn-primary {
    display: inline-block; padding: 14px 32px; background: var(--accent); color: #fff;
    border-radius: 30px; font-weight: 600; font-size: 15px; transition: .3s;
}
.branex-btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.25); }
.branex-btn-secondary {
    display: inline-block; padding: 14px 32px; background: rgba(255,255,255,0.1); color: #fff;
    border-radius: 30px; font-weight: 600; font-size: 15px; transition: .3s; border: 1px solid rgba(255,255,255,0.15);
}
.branex-btn-secondary:hover { background: rgba(255,255,255,0.2); transform: translateY(-2px); }
.branex-aff-stats { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.06); }
.branex-aff-stat { text-align: center; min-width: 110px; }
.branex-aff-stat-num { display: block; color: var(--accent-bright); font-size: 22px; font-weight: 800; }
.branex-aff-stat-label { display: block; color: rgba(255,255,255,0.6); font-size: 13px; margin-top: 3px; }

.branex-aff-how {
    padding: 80px 0;
    background: var(--bg);
}
.branex-aff-how-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}
.branex-aff-how-steps { display: flex; flex-direction: column; gap: 28px; }
.branex-aff-step { display: flex; gap: 18px; align-items: flex-start; }
.branex-aff-step-num {
    width: 44px; height: 44px; min-width: 44px;
    background: var(--gradient-dark); color: var(--accent-bright); font-size: 18px; font-weight: 800;
    border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.branex-aff-step-content h3 { font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.branex-aff-step-content p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.branex-aff-how-visual { text-align: center; }
.branex-aff-how-illustration {
    position: relative; width: 100%; max-width: 460px; height: 320px;
    margin: 0 auto 24px; border-radius: 16px;
    background: var(--gradient-dark); overflow: hidden;
}
.branex-aff-ill-circle {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
    width: 120px; height: 120px; border-radius: 50%;
    background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center;
    font-size: 48px; color: var(--accent-bright);
}
.branex-aff-ill-circle i { position: relative; z-index: 1; }
.branex-aff-ill-circle::after {
    content: ''; position: absolute; inset: 0; border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(var(--accent-bright-rgb), 0.3), transparent 70%);
}
.branex-aff-ill-nodes { position: absolute; inset: 0; }
.branex-aff-ill-node {
    position: absolute; width: 44px; height: 44px; border-radius: 50%;
    background: var(--accent-light); color: var(--accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    animation: branex-float 3s ease-in-out infinite;
}
.branex-aff-ill-node:nth-child(2) { animation-delay: 0.5s; }
.branex-aff-ill-node:nth-child(3) { animation-delay: 1s; }
.branex-aff-ill-node:nth-child(4) { animation-delay: 1.5s; }
.branex-aff-ill-node:nth-child(5) { animation-delay: 2s; }
@keyframes branex-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.branex-aff-how-badges { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.branex-aff-badge {
    display: flex; align-items: center; gap: 8px; padding: 8px 18px;
    background: var(--accent-light); color: var(--accent); border-radius: 8px;
    font-size: 13px; font-weight: 600;
}
.branex-aff-badge i { font-size: 15px; }

.branex-aff-commission {
    padding: 80px 0;
    background: var(--bg-light);
}
.branex-aff-comm-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}
.branex-aff-comm-card {
    background: var(--bg);
    border-radius: 14px;
    padding: 28px 20px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border: 1px solid var(--border);
    transition: .3s;
}
.branex-aff-comm-card:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.08); border-color: var(--accent); }
.branex-aff-comm-card.featured {
    background: var(--gradient-dark);
    border-color: transparent;
}
.branex-aff-comm-card.featured h3 { color: #fff; }
.branex-aff-comm-pct {
    font-size: 28px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 6px;
}
.branex-aff-comm-card.featured .branex-aff-comm-pct { color: var(--accent-bright); }
.branex-aff-comm-card h3 { font-size: 14px; font-weight: 600; color: var(--text); }

.branex-aff-terms-grid { max-width: 800px; margin: 0 auto; }

.branex-aff-cta {
    padding: 80px 0;
    background: var(--gradient-accent);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.branex-aff-cta::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.06) 0%, transparent 50%);
    pointer-events: none;
}
.branex-aff-cta-inner { position: relative; z-index: 1; }
.branex-aff-cta-text h2 { color: #fff; font-size: 36px; font-weight: 700; margin-bottom: 12px; }
.branex-aff-cta-text p { color: rgba(255,255,255,0.85); font-size: 18px; max-width: 580px; margin: 0 auto 30px; }
.branex-aff-cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.branex-aff-cta .branex-btn-primary { background: #fff; color: var(--accent-dark); }
.branex-aff-cta .branex-btn-primary:hover { background: var(--text); color: #fff; }
.branex-aff-cta .branex-btn-secondary { border-color: rgba(255,255,255,0.3); }

@media (max-width: 991px) {
    .branex-aff-how-inner { grid-template-columns: 1fr; gap: 40px; }
    .branex-aff-comm-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .branex-aff-hero h1 { font-size: 28px; }
    .branex-aff-hero-sub { font-size: 15px; }
    .branex-aff-stats { gap: 16px; }
    .branex-aff-stat { min-width: 90px; }
    .branex-aff-stat-num { font-size: 18px; }
    .branex-aff-comm-grid { grid-template-columns: repeat(2, 1fr); }
    .branex-aff-cta-text h2 { font-size: 28px; }
    .branex-aff-cta-text p { font-size: 16px; }
}
@media (max-width: 480px) {
    .branex-aff-comm-grid { grid-template-columns: 1fr; }
}

/* TERMS OF SERVICE PAGE */
.branex-tos-wrap { color: var(--text); }

.branex-tos-hero {
    background: var(--gradient-dark);
    text-align: center; position: relative; overflow: hidden;
}
.branex-tos-hero::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 80% 40%, rgba(var(--accent-bright-rgb), 0.1) 0%, transparent 60%);
    pointer-events: none;
}
.branex-tos-hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.22);
    border-radius: 30px; padding: 5px 16px;
    font-size: 11px; font-weight: 700; color: var(--accent-bright);
    letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 16px;
}
.branex-tos-hero-title { font-size: 36px; font-weight: 900; color: #fff; margin-bottom: 10px; }
.branex-tos-hero-title span { color: var(--accent-bright); }
.branex-tos-hero-sub { font-size: 14px; color: rgba(255,255,255,0.75); margin: 0; }

.branex-tos-updated-bar {
    background: var(--accent-light); border-bottom: 1px solid var(--border);
    padding: 10px 0; text-align: center;
    font-size: 13px; color: var(--accent); font-weight: 600;
}

.branex-tos-layout {
    max-width: 1200px; margin: 0 auto; padding: 50px 20px 80px;
    display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: start;
}

.branex-tos-toc {
    position: sticky; top: 80px;
    background: var(--bg); border: 1.5px solid var(--border);
    border-radius: 14px; padding: 22px 0; overflow: hidden;
}
.branex-tos-toc-title {
    font-size: 11px; font-weight: 800; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 1.5px;
    padding: 0 20px 12px; border-bottom: 1px solid var(--border); margin-bottom: 8px;
}
.branex-tos-toc a {
    display: block; padding: 7px 20px;
    font-size: 12.5px; font-weight: 600; color: var(--text-muted);
    text-decoration: none !important;
    border-left: 3px solid transparent;
    transition: all 0.2s ease; line-height: 1.5;
}
.branex-tos-toc a:hover,
.branex-tos-toc a.active {
    color: var(--accent); background: var(--accent-light);
    border-left-color: var(--accent);
}
.branex-tos-toc-updated {
    margin: 12px 20px 0;
    background: var(--accent-light); border-radius: 8px;
    padding: 8px 12px; font-size: 11px; color: var(--accent); font-weight: 700;
}

.branex-tos-section {
    background: var(--bg); border: 1.5px solid var(--border);
    border-radius: 14px; padding: 32px 36px; margin-bottom: 24px;
}
.branex-tos-section-head {
    display: flex; align-items: center; gap: 14px; margin-bottom: 22px;
    padding-bottom: 16px; border-bottom: 2px solid var(--accent-light);
}
.branex-tos-section-icon {
    width: 44px; height: 44px; border-radius: 12px;
    background: var(--gradient-dark);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; color: var(--accent-bright); flex-shrink: 0;
}
.branex-tos-section-en { font-size: 16px; font-weight: 900; color: var(--text); line-height: 1.2; }

.branex-tos-section p { font-size: 14px; line-height: 1.8; color: var(--text); margin-bottom: 14px; }
.branex-tos-section p:last-child { margin-bottom: 0; }
.branex-tos-section ol,
.branex-tos-section ul { padding-left: 0; margin: 0 0 14px; list-style: none; }
.branex-tos-section ol li,
.branex-tos-section ul li {
    font-size: 13.5px; line-height: 1.75; color: var(--text);
    padding: 7px 0 7px 28px; position: relative;
    border-bottom: 1px dashed var(--border);
}
.branex-tos-section ol li:last-child,
.branex-tos-section ul li:last-child { border-bottom: none; }
.branex-tos-section ol { counter-reset: branex-tos-counter; }
.branex-tos-section ol li::before {
    counter-increment: branex-tos-counter;
    content: counter(branex-tos-counter);
    position: absolute; left: 0; top: 9px;
    width: 20px; height: 20px; border-radius: 50%;
    background: var(--accent); color: #fff;
    font-size: 10px; font-weight: 900;
    display: flex; align-items: center; justify-content: center;
}
.branex-tos-checklist li::before {
    content: '\f058'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
    position: absolute; left: 0; top: 8px;
    color: var(--accent); font-size: 14px;
}
.branex-tos-note-box {
    background: var(--accent-light); border-left: 4px solid var(--accent);
    border-radius: 0 8px 8px 0; padding: 10px 16px;
    font-size: 13px; color: var(--text); margin: 12px 0; line-height: 1.6;
}
.branex-tos-warn-box {
    background: rgba(var(--color-error-rgb), 0.08); border-left: 4px solid var(--color-error);
    border-radius: 0 8px 8px 0; padding: 10px 16px;
    font-size: 13px; color: var(--color-error); margin: 12px 0; line-height: 1.6;
}
.branex-tos-sub-head {
    font-size: 13px; font-weight: 800; color: var(--accent);
    margin: 18px 0 8px; display: flex; align-items: center; gap: 6px;
}
.branex-tos-prohibited {
    display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 14px;
}
.branex-tos-prohibited-item {
    display: flex; align-items: center; gap: 7px;
    font-size: 12px; color: var(--color-error); font-weight: 600;
    background: rgba(var(--color-error-rgb), 0.06); border-radius: 6px; padding: 5px 10px;
}
.branex-tos-prohibited-item i { color: var(--color-error); font-size: 11px; flex-shrink: 0; }

@media (max-width: 900px) {
    .branex-tos-layout { grid-template-columns: 1fr; }
    .branex-tos-toc { position: static; }
    .branex-tos-prohibited { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .branex-tos-section { padding: 22px 18px; }
    .branex-tos-hero-title { font-size: 24px; }
}

/* ABOUT US PAGE */
.branex-about-hero {
    background: var(--gradient-dark);
    text-align: center; position: relative; overflow: hidden;
}
.branex-about-hero::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 80% 40%, rgba(var(--accent-bright-rgb), 0.1) 0%, transparent 60%);
    pointer-events: none;
}
.branex-about-hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.22);
    border-radius: 30px; padding: 5px 16px;
    font-size: 11px; font-weight: 700; color: var(--accent-bright);
    letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 16px;
}
.branex-about-hero-title { font-size: 36px; font-weight: 900; color: #fff; margin-bottom: 10px; }
.branex-about-hero-title span { color: var(--accent-bright); }
.branex-about-hero-sub { font-size: 14px; color: rgba(255,255,255,0.75); margin: 0; }

.branex-about-info { padding: 60px 0; background: var(--bg-light); }
.branex-about-info-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 800px; margin: 0 auto;
}
.branex-about-info-item {
    display: flex; flex-direction: column; gap: 4px;
    background: var(--bg); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 18px 22px;
}
.branex-about-info-label { font-size: 11px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 1px; }
.branex-about-info-value { font-size: 15px; font-weight: 600; color: var(--text); }

.branex-about-vision { padding: 80px 0; }
.branex-about-vision p, .branex-about-mission p {
    font-size: 15px; color: var(--text); line-height: 1.8;
    max-width: 800px; margin: 0 auto; text-align: center;
}

.branex-about-mission { padding: 80px 0; background: var(--bg-light); }

.branex-about-cta {
    padding: 80px 0;
    background: var(--gradient-accent);
    text-align: center; position: relative; overflow: hidden;
}
.branex-about-cta::before {
    content: ''; position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.06) 0%, transparent 50%);
    pointer-events: none;
}
.branex-about-cta-inner { position: relative; z-index: 1; }
.branex-about-cta-inner h2 { color: #fff; font-size: 36px; font-weight: 700; margin-bottom: 12px; }
.branex-about-cta-inner p { color: rgba(255,255,255,0.85); font-size: 18px; max-width: 580px; margin: 0 auto 30px; }
.branex-about-cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.branex-about-cta .branex-btn-primary { background: #fff; color: var(--accent-dark); }
.branex-about-cta .branex-btn-primary:hover { background: var(--text); color: #fff; }
.branex-about-cta .branex-btn-secondary { border-color: rgba(255,255,255,0.3); }

@media (max-width: 768px) {
    .branex-about-info-grid { grid-template-columns: 1fr; }
    .branex-about-hero-title { font-size: 28px; }
    .branex-about-cta-inner h2 { font-size: 28px; }
    .branex-about-cta-inner p { font-size: 16px; }
    .branex-about-vision p, .branex-about-mission p { text-align: left; }
}

/* =============================================
   VPS SERVER PAGE
   ============================================= */
.branex-vps-promo {
    max-width: 1170px;
    margin: -30px auto 40px;
    padding: 0 15px;
    position: relative;
    z-index: 20;
}
.branex-vps-promo-inner {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border-radius: 14px;
    padding: 16px 28px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 8px 32px rgba(var(--accent-rgb), 0.3), 0 0 0 1px rgba(255,255,255,0.06) inset;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}
.branex-vps-promo-inner::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at 30% 40%, rgba(255,255,255,0.08) 0%, transparent 50%);
    pointer-events: none;
}
.branex-vps-promo-tag {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    padding: 5px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    white-space: nowrap;
    letter-spacing: 0.8px;
    border: 1px solid rgba(255,255,255,0.15);
}
.branex-vps-promo-msg {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    flex: 1;
    letter-spacing: -0.2px;
    position: relative;
    z-index: 1;
}
.branex-vps-promo-code {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.12);
    border: 1.5px dashed rgba(255,255,255,0.45);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    padding: 7px 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    user-select: none;
    position: relative;
    z-index: 1;
    letter-spacing: 0.5px;
}
.branex-vps-promo-code:hover {
    background: rgba(255,255,255,0.22);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.branex-vps-promo-code .branex-code-label {
    color: rgba(255,255,255,0.55);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}
.branex-vps-promo-code i {
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    transition: transform 0.25s ease;
}
.branex-vps-promo-code:hover i {
    transform: scale(1.15);
}

@media (max-width: 768px) {
    .branex-vps-promo {
        margin: -20px auto 32px;
        padding: 0 12px;
    }
    .branex-vps-promo-inner {
        flex-direction: column;
        text-align: center;
        gap: 14px;
        padding: 24px 20px 20px;
    }
    .branex-vps-promo-msg {
        font-size: 15px;
        line-height: 1.5;
    }
    .branex-vps-promo-code {
        padding: 10px 20px;
        font-size: 15px;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .branex-vps-promo {
        margin: -16px auto 28px;
        padding: 0 10px;
    }
    .branex-vps-promo-inner {
        padding: 20px 16px 18px;
        gap: 12px;
        border-radius: 12px;
    }
    .branex-vps-promo-msg {
        font-size: 14px;
    }
    .branex-vps-promo-code {
        padding: 10px 16px;
        font-size: 14px;
    }
}

/* CONTACT US PAGE */
.branex-contact-hero {
    background: var(--gradient-dark);
    text-align: center; position: relative; overflow: hidden;
}
.branex-contact-hero::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 80% 40%, rgba(var(--accent-bright-rgb), 0.1) 0%, transparent 60%);
    pointer-events: none;
}
.branex-contact-hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.22);
    border-radius: 30px; padding: 5px 16px;
    font-size: 11px; font-weight: 700; color: var(--accent-bright);
    letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 16px;
}
.branex-contact-hero-title { font-size: 36px; font-weight: 900; color: #fff; margin-bottom: 10px; }
.branex-contact-hero-title span { color: var(--accent-bright); }
.branex-contact-hero-sub { font-size: 14px; color: rgba(255,255,255,0.75); margin: 0; }

.branex-contact-cards { padding: 60px 0; background: var(--bg-light); }
.branex-contact-cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 900px; margin: 0 auto; }
.branex-contact-card {
    background: var(--bg); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 32px 24px; text-align: center;
}
.branex-contact-card-icon {
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--accent-light); color: var(--accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; margin: 0 auto 16px;
}
.branex-contact-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.branex-contact-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.branex-contact-card a { color: var(--accent); text-decoration: none; font-weight: 600; }
.branex-contact-card a:hover { text-decoration: underline; }
.branex-contact-card-sub { font-size: 11px; margin-top: 6px; color: var(--text-muted); }

.branex-contact-cards .branex-section-title { text-align: center; margin-bottom: 40px; }
.branex-contact-cards .branex-section-title h2 { font-size: 22px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.branex-contact-cards .branex-section-title p { display: inline; font-size: 14px; color: var(--text-muted); margin: 0; }

.branex-contact-chat { padding: 60px 0; background: var(--bg-light); }
.branex-contact-chat-inner { max-width: 600px; margin: 0 auto; text-align: center; }
.branex-contact-chat-icon {
    font-size: 48px; color: var(--accent); margin-bottom: 12px;
}
.branex-contact-chat-inner h2 { font-size: 22px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.branex-contact-chat-inner p { font-size: 14px; color: var(--text-muted); max-width: 450px; margin: 0 auto 24px; }
.branex-contact-chat-note {
    display: block; margin-top: 12px;
    font-size: 12px; color: var(--text-muted);
}
.branex-contact-chat .branex-btn-primary { background: var(--accent); color: #fff; }
.branex-contact-chat .branex-btn-primary:hover { background: var(--accent-dark); }

.branex-contact-cta {
    padding: 80px 0;
    background: var(--gradient-accent);
    text-align: center; position: relative; overflow: hidden;
}
.branex-contact-cta::before {
    content: ''; position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.06) 0%, transparent 50%);
    pointer-events: none;
}
.branex-contact-cta-inner { position: relative; z-index: 1; }
.branex-contact-cta-inner h2 { color: #fff; font-size: 36px; font-weight: 700; margin-bottom: 12px; }
.branex-contact-cta-inner p { color: rgba(255,255,255,0.85); font-size: 18px; max-width: 580px; margin: 0 auto 30px; }
.branex-contact-cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.branex-contact-cta .branex-btn-primary { background: #fff; color: var(--accent-dark); }
.branex-contact-cta .branex-btn-primary:hover { background: var(--text); color: #fff; }
.branex-contact-cta .branex-btn-secondary { border-color: rgba(255,255,255,0.3); }

@media (max-width: 768px) {
    .branex-contact-cards-grid { grid-template-columns: 1fr; }
    .branex-contact-hero-title { font-size: 28px; }
    .branex-contact-cta-inner h2 { font-size: 28px; }
    .branex-contact-cta-inner p { font-size: 16px; }
}

/* KNOWLEDGEBASE PAGE */
.branex-kb-hero {
    background: var(--gradient-dark);
    text-align: center; position: relative; overflow: hidden;
    min-height: 480px;
}
.branex-kb-hero::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 20% 40%, rgba(var(--accent-rgb), 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 60%, rgba(var(--accent-bright-rgb), 0.08) 0%, transparent 50%);
    pointer-events: none;
    animation: branex-blob-float 25s ease-in-out infinite;
}
.branex-kb-hero::after {
    content: ''; position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}
.branex-kb-hero .container { position: relative; z-index: 1; }
.branex-kb-hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.22);
    border-radius: 30px; padding: 5px 16px;
    font-size: 11px; font-weight: 700; color: var(--accent-bright);
    letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 16px;
}
.branex-kb-hero-title { font-size: 42px; font-weight: 900; color: #fff; margin-bottom: 12px; }
.branex-kb-hero-title span { color: var(--accent-bright); }
.branex-kb-hero-sub { font-size: 15px; color: rgba(255,255,255,0.75); max-width: 550px; margin: 0 auto 30px; }

.branex-kb-search {
    max-width: 620px; margin: 0 auto;
}
.branex-kb-search-inner {
    display: flex; align-items: center; background: var(--bg);
    border-radius: 50px; padding: 6px 6px 6px 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}
.branex-kb-search-icon { color: var(--text-muted); font-size: 16px; margin-right: 12px; }
.branex-kb-search-input {
    flex: 1; border: none; outline: none; font-size: 15px; padding: 14px 0;
    background: transparent; color: var(--text); font-family: var(--font);
}
.branex-kb-search-input::placeholder { color: var(--text-muted); }
.branex-kb-search-btn {
    background: var(--gradient-accent); color: #fff; border: none; border-radius: 50px;
    padding: 12px 28px; font-size: 14px; font-weight: 600; cursor: pointer;
    transition: transform .2s, box-shadow .2s; font-family: var(--font);
}
.branex-kb-search-btn:hover {
    transform: translateY(-1px); box-shadow: 0 6px 20px rgba(var(--accent-rgb), 0.3);
}

.branex-kb-categories { padding: 60px 0; background: var(--bg-light); }
.branex-kb-cat-grid {
    display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px;
}
.branex-kb-cat-card {
    background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 28px 16px; text-align: center; transition: all .3s ease;
    display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.branex-kb-cat-card:hover, .branex-kb-cat-card.active {
    border-color: var(--accent); transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(var(--accent-rgb), 0.12);
}
.branex-kb-cat-card.active { background: var(--accent-light); }
.branex-kb-cat-icon {
    width: 52px; height: 52px; border-radius: 14px;
    background: var(--accent-light); display: flex;
    align-items: center; justify-content: center; font-size: 22px;
}
.branex-kb-cat-card:hover .branex-kb-cat-icon,
.branex-kb-cat-card.active .branex-kb-cat-icon {
    transform: scale(1.1);
}
.branex-kb-cat-title { font-size: 14px; font-weight: 700; color: var(--text); margin: 0; }
.branex-kb-cat-count { font-size: 12px; color: var(--text-muted); }

.branex-kb-featured { padding: 60px 0; }
.branex-kb-section-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 24px;
}
.branex-kb-section-header h2 {
    font-size: 22px; font-weight: 700; color: var(--text);
    display: flex; align-items: center; gap: 10px;
}
.branex-kb-section-header h2 i { color: var(--accent); font-size: 18px; }
.branex-kb-article-count {
    font-size: 13px; color: var(--text-muted); background: var(--bg-light);
    padding: 4px 12px; border-radius: 20px;
}

.branex-kb-featured-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.branex-kb-featured-card {
    background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; transition: all .3s ease;
    display: flex; flex-direction: column;
}
.branex-kb-featured-card:hover {
    border-color: var(--accent); transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(var(--accent-rgb), 0.12);
}
.branex-kb-featured-img {
    height: 180px; overflow: hidden; background: var(--bg-light);
    display: flex; align-items: center; justify-content: center;
}
.branex-kb-featured-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .4s ease;
}
.branex-kb-featured-card:hover .branex-kb-featured-img img { transform: scale(1.05); }
.branex-kb-featured-placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--accent-light), var(--bg-light));
    display: flex; align-items: center; justify-content: center;
    color: var(--accent); font-size: 36px; opacity: 0.5;
}
.branex-kb-featured-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.branex-kb-featured-badge {
    display: inline-block; background: var(--gradient-gold); color: #fff;
    font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
    padding: 3px 10px; border-radius: 20px; margin-bottom: 10px; align-self: flex-start;
}
.branex-kb-featured-body h3 {
    font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 8px;
    line-height: 1.4;
}
.branex-kb-featured-body p {
    font-size: 13px; color: var(--text-muted); line-height: 1.6; flex: 1;
}
.branex-kb-featured-meta {
    display: flex; align-items: center; gap: 8px; font-size: 12px;
    color: var(--text-muted); margin-top: 12px; flex-wrap: wrap;
}
.branex-kb-featured-meta i { font-size: 11px; }
.branex-kb-featured-dot {
    width: 3px; height: 3px; border-radius: 50%; background: var(--text-muted);
    display: inline-block;
}

.branex-kb-articles { padding: 0 0 80px; }
.branex-kb-layout {
    display: grid; grid-template-columns: 1fr 280px; gap: 40px; align-items: start;
}
.branex-kb-article-grid {
    display: grid; grid-template-columns: 1fr; gap: 16px;
}
.branex-kb-article-card {
    background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 24px; transition: all .3s ease;
    display: flex; flex-direction: column; gap: 10px;
}
.branex-kb-article-card:hover {
    border-color: var(--accent); transform: translateX(4px);
    box-shadow: 0 4px 20px rgba(var(--accent-rgb), 0.08);
}
.branex-kb-article-top {
    display: flex; align-items: center; justify-content: space-between;
}
.branex-kb-article-icon {
    width: 36px; height: 36px; border-radius: 8px;
    background: var(--accent-light); color: var(--accent);
    display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.branex-kb-article-date { font-size: 12px; color: var(--text-muted); }
.branex-kb-article-title {
    font-size: 16px; font-weight: 700; color: var(--text); margin: 0;
    line-height: 1.4;
}
.branex-kb-article-card:hover .branex-kb-article-title { color: var(--accent); }
.branex-kb-article-excerpt {
    font-size: 13px; color: var(--text-muted); line-height: 1.6; margin: 0;
}
.branex-kb-article-footer {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 4px;
}
.branex-kb-article-cat { font-size: 11px; color: var(--text-muted); }
.branex-kb-article-cat a { color: var(--accent); }
.branex-kb-article-read {
    font-size: 12px; font-weight: 600; color: var(--accent);
    display: flex; align-items: center; gap: 6px;
}
.branex-kb-article-read i { font-size: 10px; transition: transform .2s; }
.branex-kb-article-card:hover .branex-kb-article-read i { transform: translateX(3px); }

.branex-kb-pagination {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    margin-top: 32px;
}
.branex-kb-pagination a, .branex-kb-pagination span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 38px; height: 38px; border-radius: 8px; font-size: 13px;
    font-weight: 600; transition: all .2s;
}
.branex-kb-pagination a {
    background: var(--bg); border: 1px solid var(--border); color: var(--text);
}
.branex-kb-pagination a:hover {
    border-color: var(--accent); color: var(--accent);
}
.branex-kb-pagination .current {
    background: var(--gradient-accent); color: #fff; border-color: transparent;
}

.branex-kb-empty {
    text-align: center; padding: 60px 20px;
}
.branex-kb-empty i { font-size: 48px; color: var(--accent); opacity: 0.4; margin-bottom: 16px; }
.branex-kb-empty h3 { font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.branex-kb-empty p { font-size: 14px; color: var(--text-muted); max-width: 400px; margin: 0 auto 20px; }
.branex-kb-back-btn {
    display: inline-block; background: var(--gradient-accent); color: #fff;
    padding: 10px 24px; border-radius: 8px; font-size: 14px; font-weight: 600;
}
.branex-kb-back-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(var(--accent-rgb), 0.25); }

.branex-kb-sidebar { position: sticky; top: 100px; }
.branex-kb-sidebar-box {
    background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 20px; margin-bottom: 20px;
}
.branex-kb-sidebar-title {
    font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 14px;
    padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.branex-kb-sidebar-cats { list-style: none; }
.branex-kb-sidebar-cats li a {
    display: flex; align-items: center; gap: 10px; padding: 8px 10px;
    border-radius: 8px; font-size: 13px; color: var(--text);
    transition: all .2s;
}
.branex-kb-sidebar-cats li a:hover { background: var(--bg-light); }
.branex-kb-sidebar-cats li a.active {
    background: var(--accent-light); color: var(--accent); font-weight: 600;
}
.branex-kb-sidebar-cats li a i { font-size: 14px; width: 18px; text-align: center; }
.branex-kb-sidebar-cats li a span:first-of-type { flex: 1; }
.branex-kb-sidebar-count {
    font-size: 11px; background: var(--bg-light); padding: 2px 8px; border-radius: 10px;
    color: var(--text-muted);
}
.branex-kb-sidebar-cats li a.active .branex-kb-sidebar-count {
    background: var(--accent); color: #fff;
}

.branex-kb-sidebar-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.branex-kb-tag {
    display: inline-block; background: var(--bg-light); border: 1px solid var(--border);
    border-radius: 20px; padding: 4px 12px; font-size: 11px; color: var(--text-muted);
    transition: all .2s;
}
.branex-kb-tag:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }

.branex-kb-sidebar-help {
    text-align: center; background: var(--accent-light);
    border-color: transparent;
}
.branex-kb-sidebar-help i {
    font-size: 32px; color: var(--accent); margin-bottom: 10px;
}
.branex-kb-sidebar-help h4 {
    font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 6px;
}
.branex-kb-sidebar-help p {
    font-size: 13px; color: var(--text-muted); margin-bottom: 14px; line-height: 1.5;
}
.branex-kb-sidebar-btn {
    display: inline-block; background: var(--gradient-accent); color: #fff;
    padding: 10px 20px; border-radius: 8px; font-size: 13px; font-weight: 600;
}
.branex-kb-sidebar-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(var(--accent-rgb), 0.25); }

@media (max-width: 991px) {
    .branex-kb-cat-grid { grid-template-columns: repeat(3, 1fr); }
    .branex-kb-featured-grid { grid-template-columns: repeat(2, 1fr); }
    .branex-kb-layout { grid-template-columns: 1fr; }
    .branex-kb-sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
    .branex-kb-sidebar-help { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
    .branex-kb-hero { min-height: 400px; }
    .branex-kb-hero-title { font-size: 28px; }
    .branex-kb-hero-sub { font-size: 14px; }
    .branex-kb-cat-grid { grid-template-columns: repeat(2, 1fr); }
    .branex-kb-featured-grid { grid-template-columns: 1fr; }
    .branex-kb-sidebar { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .branex-kb-hero { min-height: 360px; }
    .branex-kb-hero-title { font-size: 24px; }
    .branex-kb-search-inner { flex-direction: column; border-radius: 16px; padding: 12px; }
    .branex-kb-search-input { width: 100%; padding: 10px 0; text-align: center; }
    .branex-kb-search-btn { width: 100%; border-radius: 12px; }
    .branex-kb-search-icon { display: none; }
    .branex-kb-cat-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .branex-kb-cat-card { padding: 20px 12px; }
}
