/* ==========================================================
   GuinRank - Sections & Section Hub Stylesheet (SEO & SSR Hub)
   Fully Adaptive to Light, Dark, Sunmoon (Sunrise), & Dynamic Primary Color
   ========================================================== */

.sections-hub-container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 32px 20px 140px;
    box-sizing: border-box;
}

/* 1. Breadcrumbs */
.hub-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.hub-breadcrumbs a {
    color: var(--text-muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}

.hub-breadcrumbs a:hover {
    color: var(--primary-color);
}

.hub-breadcrumbs .breadcrumb-separator {
    opacity: 0.5;
    font-size: 12px;
}

.hub-breadcrumbs .current-page {
    color: var(--text-main);
    font-weight: 600;
}

/* 2. Hero Section (Next-Gen Creative Showcase - Theme Adaptive) */
.hub-hero {
    position: relative;
    padding: clamp(24px, 4vw, 44px) clamp(18px, 3.5vw, 38px);
    border-radius: clamp(20px, 3vw, 32px);
    background: var(--glass-bg);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
    margin-bottom: clamp(24px, 3.5vw, 36px);
    overflow: hidden;
}

/* Ambient Floating Glows - Dynamically Powered by Primary & Accent Variables */
.hub-hero-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(60px);
    opacity: 0.6;
    z-index: 0;
}

.hub-hero-glow.glow-1 {
    top: -60px;
    inset-inline-end: -40px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, var(--primary-shadow) 0%, color-mix(in srgb, var(--primary-color) 12%, transparent) 60%, transparent 80%);
    animation: hero-glow-drift 8s ease-in-out infinite alternate;
}

.hub-hero-glow.glow-2 {
    bottom: -60px;
    inset-inline-start: 10%;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, color-mix(in srgb, var(--ai-color, #8b5cf6) 22%, transparent) 0%, var(--primary-light) 60%, transparent 80%);
    animation: hero-glow-drift 10s ease-in-out infinite alternate-reverse;
}

@keyframes hero-glow-drift {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(18px) scale(1.08); }
    100% { transform: translateY(-12px) scale(0.96); }
}

/* Tech Dot Grid Texture */
.hub-hero-grid-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(var(--primary-color) 0.9px, transparent 0.9px);
    background-size: 24px 24px;
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
}

/* Hero Inner Layout */
.hub-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
}

.hub-hero-content {
    flex: 1;
    max-width: 720px;
}

/* Breadcrumbs inside Hero */
.hub-hero-breadcrumbs {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--card-bg) 60%, transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    white-space: nowrap;
}

.hub-hero-breadcrumbs::-webkit-scrollbar {
    display: none;
}

.hub-hero-breadcrumbs a {
    color: var(--text-muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
}

.hub-hero-breadcrumbs a:hover {
    color: var(--primary-color);
}

.hub-hero-breadcrumbs .bc-slash {
    opacity: 0.4;
    font-size: 11px;
}

.hub-hero-breadcrumbs .bc-active {
    color: var(--text-main);
    font-weight: 700;
}

/* Live Badge with Pulse - Fully Dynamic Color */
.hub-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border-radius: 999px;
    background: var(--primary-light);
    color: var(--primary-color);
    font-size: 12.5px;
    font-weight: 700;
    margin-bottom: 18px;
    border: 1px solid color-mix(in srgb, var(--primary-color) 25%, transparent);
    box-shadow: 0 4px 14px var(--primary-shadow);
}

.hub-badge-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success, #10b981);
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--success, #10b981) 70%, transparent);
    animation: hub-pulse-dot 2s infinite;
}

@keyframes hub-pulse-dot {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 color-mix(in srgb, var(--success, #10b981) 70%, transparent); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px transparent; }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 color-mix(in srgb, var(--success, #10b981) 70%, transparent); }
}

.hub-badge-divider {
    width: 1px;
    height: 12px;
    background: color-mix(in srgb, var(--primary-color) 25%, transparent);
}

.hub-badge-sub {
    color: var(--text-muted);
    font-weight: 500;
}

/* Dynamic Gradient Typography - Adapts to Primary Color & Dark/Sunmoon */
.hub-hero-title {
    font-size: clamp(24px, 3.5vw + 10px, 38px);
    font-weight: 950;
    color: var(--text-main);
    line-height: 1.2;
    margin: 0 0 14px 0;
    letter-spacing: -0.03em;
}

.hero-gradient-text {
    background: linear-gradient(135deg, var(--primary-color) 0%, color-mix(in srgb, var(--primary-color) 70%, #ffffff) 45%, color-mix(in srgb, var(--primary-color) 80%, var(--ai-color, #8b5cf6)) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 10px var(--primary-shadow));
}

[data-theme="dark"] .hero-gradient-text,
[data-theme="sunmoon"] .hero-gradient-text {
    background: linear-gradient(135deg, var(--primary-color) 0%, color-mix(in srgb, var(--primary-color) 55%, #ffffff) 50%, color-mix(in srgb, var(--primary-color) 80%, #ffffff) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 12px var(--primary-shadow));
}

.hub-hero-desc {
    font-size: clamp(14px, 1vw + 10px, 15.5px);
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0 0 24px 0;
    max-width: 640px;
}

/* Feature Pills Strip */
.hub-hero-feature-pills {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.hub-feature-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 14px;
    background: color-mix(in srgb, var(--card-bg) 65%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
}

.hub-feature-pill:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px var(--primary-shadow);
}

.hub-feature-pill i, .hub-feature-pill svg {
    color: var(--primary-color);
    width: 16px;
    height: 16px;
}

/* Hero Showcase Deck (Right Column on Desktop) */
.hub-hero-deck {
    flex-shrink: 0;
    width: 320px;
}

.hub-deck-card {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
}

.hub-deck-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: var(--shadow-lg);
    border-color: color-mix(in srgb, var(--primary-color) 40%, var(--glass-border));
}

.hub-deck-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hub-deck-signal {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--success, #10b981);
    background: var(--success-light, rgba(34, 195, 60, 0.15));
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--success, #10b981) 25%, transparent);
}

.hub-deck-signal .signal-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success, #10b981);
}

.hub-deck-icon {
    color: var(--primary-color);
    width: 22px;
    height: 22px;
    opacity: 0.85;
}

.hub-deck-metrics {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 16px 12px;
    background: color-mix(in srgb, var(--bg-body) 65%, transparent);
    border-radius: 18px;
    border: 1px solid var(--border-color);
}

.hub-deck-metric {
    text-align: center;
}

.hub-deck-metric .metric-num {
    font-size: 28px;
    font-weight: 900;
    color: var(--text-main);
    line-height: 1;
    letter-spacing: -0.02em;
}

.hub-deck-metric .metric-lbl {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 5px;
}

.metric-separator {
    width: 1px;
    height: 32px;
    background: var(--border-color);
}

.hub-deck-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hub-deck-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

.hub-deck-status i, .hub-deck-status svg {
    color: var(--primary-color);
    width: 15px;
    height: 15px;
}

.hub-deck-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: #ffffff;
    border: none;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px var(--primary-shadow);
    transition: all 0.25s ease;
}

.hub-deck-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px var(--primary-shadow);
}

.hub-deck-btn i, .hub-deck-btn svg {
    width: 15px;
    height: 15px;
}

/* Section Emblem Card (for SectionView Hero - Refined Glassmorphic Design) */
.hub-section-emblem-card {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 26px 22px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.hub-section-emblem-card:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--primary-color) 30%, var(--glass-border));
    box-shadow: var(--shadow-lg);
}

/* Subtle, Soft-diffused Glass Ambient Glow */
.hub-emblem-glow {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--primary-color) 16%, transparent) 0%, transparent 70%);
    filter: blur(36px);
    opacity: 0.6;
    pointer-events: none;
    z-index: 0;
}

.hub-emblem-icon {
    position: relative;
    z-index: 1;
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: color-mix(in srgb, var(--primary-color) 8%, var(--card-bg));
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    border: 1px solid color-mix(in srgb, var(--primary-color) 22%, var(--glass-border));
    box-shadow: 0 4px 16px color-mix(in srgb, var(--primary-color) 10%, transparent);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.hub-section-emblem-card:hover .hub-emblem-icon {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 8px 24px color-mix(in srgb, var(--primary-color) 18%, transparent);
}

.hub-emblem-icon i, .hub-emblem-icon svg {
    width: 28px;
    height: 28px;
}

.hub-emblem-info {
    position: relative;
    z-index: 1;
}

.hub-emblem-info .emblem-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--text-main);
}

.hub-emblem-info .emblem-count {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 3px;
}

.hub-emblem-action-btn {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 20px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--primary-color) 10%, transparent);
    color: var(--primary-color);
    border: 1px solid color-mix(in srgb, var(--primary-color) 24%, transparent);
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--primary-color) 8%, transparent);
    transition: all 0.25s ease;
    margin-top: 2px;
}

.hub-emblem-action-btn:hover {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 4px 14px var(--primary-shadow);
    transform: translateY(-1px);
}

.hub-emblem-action-btn i, .hub-emblem-action-btn svg {
    width: 14px;
    height: 14px;
}

/* 3. Categories Quick Navigation Grid */
.hub-categories-section {
    margin-bottom: 36px;
}

.hub-section-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 18px;
}

.hub-section-label i, .hub-section-label svg {
    color: var(--primary-color);
    width: 20px;
    height: 20px;
}

.hub-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

.hub-cat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 18px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-sm);
}

.hub-cat-card:hover, .hub-cat-card.active {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px var(--primary-shadow);
}

.hub-cat-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
}

.hub-cat-icon i, .hub-cat-icon svg {
    width: 20px;
    height: 20px;
}

.hub-cat-info {
    flex: 1;
    min-width: 0;
}

.hub-cat-name {
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hub-cat-count {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* 4. Filter Toolbar (Dashboard-Style) */
.hub-filter-wrapper {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 16px 20px;
    margin-bottom: 28px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hub-filter-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

/* Search input */
.hub-search-box {
    position: relative;
    flex: 1;
    min-width: 240px;
    max-width: 400px;
}

.hub-search-icon {
    position: absolute;
    inset-inline-start: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    width: 17px;
    height: 17px;
}

.hub-search-input {
    width: 100%;
    height: 44px;
    padding-inline-start: 42px;
    padding-inline-end: 36px;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-main);
    font-size: 14px;
    font-weight: 500;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.hub-search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.hub-search-clear {
    position: absolute;
    inset-inline-end: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 14px;
}

.hub-search-clear:hover {
    color: var(--text-main);
}

/* Filter tabs container (Identical to Dashboard) */
.hub-tabs-container {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
}

.hub-tabs-container::-webkit-scrollbar {
    display: none;
}

.hub-filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: 12px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    user-select: none;
    flex-shrink: 0;
}

.hub-filter-tab i, .hub-filter-tab svg {
    width: 15px;
    height: 15px;
}

.hub-filter-tab:hover {
    color: var(--text-main);
    background: color-mix(in srgb, var(--primary-color) 8%, var(--card-bg));
    border-color: color-mix(in srgb, var(--primary-color) 25%, var(--border-color));
}

.hub-filter-tab.active {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 4px 14px var(--primary-shadow);
}

.hub-filter-tab.active i, .hub-filter-tab.active svg {
    color: #ffffff;
}

/* Category Pills Row */
.hub-cat-pills-row {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-top: 4px;
    border-top: 1px solid var(--border-color);
}

.hub-cat-pills-row::-webkit-scrollbar {
    display: none;
}

.hub-cat-pill {
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
    text-decoration: none;
}

.hub-cat-pill:hover {
    color: var(--text-main);
    background: color-mix(in srgb, var(--primary-color) 8%, var(--card-bg));
}

.hub-cat-pill.active {
    color: var(--primary-color);
    background: var(--primary-light);
    border-color: color-mix(in srgb, var(--primary-color) 30%, transparent);
}

/* 5. Tools Grid */
.hub-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 20px;
}

/* Tool Card */
.hub-tool-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 22px;
    padding: 22px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-sm);
}

.hub-tool-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
    box-shadow: 0 14px 34px var(--primary-shadow);
}

.hub-tool-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
}

.hub-tool-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: transform 0.3s ease;
}

.hub-tool-card:hover .hub-tool-icon-wrap {
    transform: scale(1.08) rotate(3deg);
}

.hub-tool-icon-wrap i, .hub-tool-icon-wrap svg {
    width: 24px;
    height: 24px;
}

.hub-tool-badges {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hub-badge-cost {
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.hub-badge-cost.free {
    background: var(--success-light, rgba(34, 195, 60, 0.15));
    color: var(--success, #10b981);
}

.hub-badge-cost.vip {
    background: var(--icon-purple-bg, rgba(139, 92, 246, 0.15));
    color: var(--purple, #8b5cf6);
}

.hub-badge-cost.pro {
    background: var(--icon-yellow-bg, rgba(245, 158, 11, 0.15));
    color: var(--warning, #f59e0b);
}

.hub-badge-new {
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 10.5px;
    font-weight: 800;
    background: var(--danger, #ef4444);
    color: #ffffff;
    text-transform: uppercase;
}

.hub-badge-lock {
    padding: 4px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
}

.hub-badge-lock i, .hub-badge-lock svg {
    width: 14px;
    height: 14px;
}

.hub-tool-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hub-tool-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 8px 0;
    line-height: 1.35;
    transition: color 0.2s;
}

.hub-tool-card:hover .hub-tool-title {
    color: var(--primary-color);
}

.hub-tool-desc {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0 0 16px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 42px;
}

.hub-tool-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.hub-tool-cat-tag {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.hub-tool-cat-tag i, .hub-tool-cat-tag svg {
    width: 13px;
    height: 13px;
    opacity: 0.7;
}

.hub-tool-action-btn {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: transform 0.2s;
}

.hub-tool-card:hover .hub-tool-action-btn {
    transform: translateX(-3px);
}

[dir="ltr"] .hub-tool-card:hover .hub-tool-action-btn {
    transform: translateX(3px);
}

/* 6. Empty State */
.hub-empty-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    background: var(--card-bg);
    border: 1px dashed var(--border-color);
    border-radius: 24px;
}

.hub-empty-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--primary-color) 10%, var(--card-bg));
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.hub-empty-icon i, .hub-empty-icon svg {
    width: 28px;
    height: 28px;
}

.hub-empty-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 6px 0;
}

.hub-empty-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0 0 18px 0;
    max-width: 360px;
}

.hub-reset-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 20px;
    border-radius: 12px;
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px var(--primary-shadow);
    transition: all 0.2s ease;
}

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

/* ==========================================================
   Tool Adjacent Navigator (Glassmorphic Prev / Next Bar)
   ========================================================== */
.hub-tool-nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 48px;
    margin-bottom: 40px;
    width: 100%;
}

.tool-nav-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    border-radius: 18px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: inherit;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-sm);
    flex: 1;
    min-width: 0;
    max-width: 380px;
}

.tool-nav-card.next-tool {
    justify-content: flex-end;
    text-align: end;
}

.tool-nav-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px var(--primary-shadow);
}

.tool-nav-arrow {
    color: var(--text-muted);
    transition: transform 0.2s ease, color 0.2s ease;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.tool-nav-arrow i, .tool-nav-arrow svg {
    width: 18px;
    height: 18px;
}

.tool-nav-card.prev-tool:hover .tool-nav-arrow {
    color: var(--primary-color);
    transform: translateX(-4px);
}

.tool-nav-card.next-tool:hover .tool-nav-arrow {
    color: var(--primary-color);
    transform: translateX(4px);
}

.tool-nav-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
    border: 1px solid color-mix(in srgb, var(--primary-color) 20%, transparent);
}

.tool-nav-icon i, .tool-nav-icon svg {
    width: 18px;
    height: 18px;
}

.tool-nav-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

.tool-nav-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tool-nav-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
    transition: color 0.2s ease;
}

.tool-nav-card:hover .tool-nav-title {
    color: var(--primary-color);
}

.tool-nav-hub-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 16px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
    white-space: nowrap;
}

.tool-nav-hub-btn i, .tool-nav-hub-btn svg {
    width: 15px;
    height: 15px;
    color: var(--primary-color);
}

.tool-nav-hub-btn:hover {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 4px 14px var(--primary-shadow);
    transform: translateY(-2px);
}

.tool-nav-hub-btn:hover i, .tool-nav-hub-btn:hover svg {
    color: #ffffff;
}

.tool-nav-card-placeholder {
    flex: 1;
    max-width: 380px;
}

/* ==========================================================
   Responsive Adjustments (Next-Gen Multi-Device Adaptive)
   ========================================================== */

/* 1. Laptops & Compact Desktops (993px - 1199px) */
@media (max-width: 1199px) {
    .hub-hero-inner {
        gap: 28px;
    }

    .hub-hero-deck {
        width: 280px;
    }

    .hub-deck-card,
    .hub-section-emblem-card {
        padding: 22px 18px;
    }
}

/* 2. Tablets & Small Laptops (769px - 992px) */
@media (max-width: 992px) {
    .hub-hero-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
    }

    .hub-hero-content {
        max-width: 100%;
    }

    .hub-hero-deck {
        width: 100%;
    }

    /* All-Tools Deck Horizontal Bento on Tablet */
    .hub-hero-deck .hub-deck-card {
        padding: 20px 22px;
        border-radius: 22px;
        gap: 16px;
    }

    /* Category Hero Emblem Card -> Morphs creatively to a sleek horizontal glass action capsule */
    .hub-hero.hub-hero-section .hub-hero-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 22px;
    }

    .hub-section-deck {
        width: 100%;
    }

    .hub-section-deck .hub-section-emblem-card {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 16px 20px;
        text-align: start;
        gap: 16px;
        border-radius: 20px;
    }

    .hub-section-deck .hub-emblem-glow {
        inset-inline-start: 16px;
        left: auto;
        top: 50%;
        transform: translateY(-50%);
        width: 90px;
        height: 90px;
    }

    .hub-section-deck .hub-emblem-icon {
        width: 50px;
        height: 50px;
        border-radius: 14px;
        font-size: 22px;
        flex-shrink: 0;
    }

    .hub-section-deck .hub-emblem-icon i,
    .hub-section-deck .hub-emblem-icon svg {
        width: 22px;
        height: 22px;
    }

    .hub-section-deck .hub-emblem-info {
        flex: 1;
        min-width: 0;
        text-align: start;
    }

    .hub-section-deck .hub-emblem-info .emblem-title {
        font-size: 15.5px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .hub-section-deck .hub-emblem-info .emblem-count {
        font-size: 12px;
    }

    .hub-section-deck .hub-emblem-action-btn {
        flex-shrink: 0;
        margin-top: 0;
        padding: 8px 18px;
        font-size: 12px;
    }
}

/* 3. Mobile Devices (481px - 768px) */
@media (max-width: 768px) {
    .sections-hub-container {
        padding: 16px 14px 120px;
    }

    .hub-hero {
        padding: 26px 18px;
        border-radius: 22px;
        margin-bottom: 24px;
    }

    .hub-hero-glow.glow-1 {
        width: 220px;
        height: 220px;
        filter: blur(40px);
    }

    .hub-hero-glow.glow-2 {
        width: 180px;
        height: 180px;
        filter: blur(40px);
    }

    .hub-hero-title {
        font-size: 26px;
        line-height: 1.25;
    }

    .hub-hero-desc {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .hub-hero-feature-pills {
        gap: 8px;
    }

    .hub-feature-pill {
        padding: 6px 12px;
        font-size: 12px;
        border-radius: 10px;
    }

    .hub-tools-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .hub-filter-wrapper {
        padding: 14px;
        border-radius: 18px;
    }

    .hub-search-box {
        max-width: 100%;
    }

    .hub-categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 10px;
    }

    .hub-tool-nav-bar {
        flex-direction: column;
        gap: 12px;
        margin-top: 32px;
    }

    .tool-nav-card {
        max-width: 100%;
        width: 100%;
    }

    .tool-nav-card.next-tool {
        justify-content: flex-start;
        text-align: start;
        flex-direction: row-reverse;
    }

    .tool-nav-hub-btn {
        width: 100%;
        justify-content: center;
        order: -1;
    }

    .tool-nav-card-placeholder {
        display: none;
    }
}

/* 4. Small Phones & Ultra-compact Devices (<= 480px) */
@media (max-width: 480px) {
    .sections-hub-container {
        padding: 12px 10px 100px;
    }

    .hub-hero {
        padding: 20px 14px;
        border-radius: 18px;
    }

    .hub-hero-breadcrumbs {
        font-size: 12px;
        padding: 5px 12px;
        margin-bottom: 14px;
    }

    .hub-hero-badge {
        padding: 5px 12px;
        font-size: 11.5px;
        margin-bottom: 14px;
    }

    .hub-badge-sub {
        display: none;
    }

    .hub-badge-divider {
        display: none;
    }

    .hub-hero-title {
        font-size: 22px;
        margin-bottom: 10px;
    }

    .hub-hero-desc {
        font-size: 13px;
        line-height: 1.6;
        margin-bottom: 16px;
    }

    .hub-feature-pill {
        padding: 5px 10px;
        font-size: 11px;
        border-radius: 8px;
    }

    .hub-feature-pill i,
    .hub-feature-pill svg {
        width: 13px;
        height: 13px;
    }

    /* Category Emblem Capsule on Small Phones */
    .hub-section-deck .hub-section-emblem-card {
        padding: 12px 14px;
        gap: 12px;
        border-radius: 16px;
    }

    .hub-section-deck .hub-emblem-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        font-size: 18px;
    }

    .hub-section-deck .hub-emblem-icon i,
    .hub-section-deck .hub-emblem-icon svg {
        width: 18px;
        height: 18px;
    }

    .hub-section-deck .hub-emblem-info .emblem-title {
        font-size: 14px;
    }

    .hub-section-deck .hub-emblem-info .emblem-count {
        font-size: 11px;
    }

    .hub-section-deck .hub-emblem-action-btn {
        padding: 6px 12px;
        font-size: 11px;
        border-radius: 10px;
    }

    /* All-Tools Deck on Small Phones */
    .hub-deck-metrics .metric-num {
        font-size: 22px;
    }

    .hub-deck-metrics .metric-lbl {
        font-size: 10.5px;
    }

    .hub-filter-top-row {
        gap: 10px;
    }

    .hub-search-input {
        height: 40px;
        font-size: 13px;
    }

    .hub-filter-tab {
        padding: 6px 12px;
        font-size: 12px;
    }
}
