/* ==============================================================================
 * bajhi Cloud SaaS Dashboard & Landing Platform v5.0 — Render.com Aesthetic
 * Containerized Layout • Top Navigation Bar • HTML Moving Elements • 340+ Apps
 * ============================================================================== */

:root {
    --bajhi-bg-main: #0b0d11;
    --bajhi-bg-card: #11141b;
    --bajhi-bg-card-hover: #161a24;
    --bajhi-bg-input: #171b24;
    --bajhi-bg-deep: #08090d;
    --bajhi-border: rgba(255, 255, 255, 0.08);
    --bajhi-border-focus: rgba(99, 102, 241, 0.5);
    --bajhi-border-glow: rgba(99, 102, 241, 0.25);
    --bajhi-text-main: #f3f4f6;
    --bajhi-text-muted: #9ca3af;
    --bajhi-text-dim: #6b7280;
    --bajhi-accent-purple: #6366f1;
    --bajhi-accent-indigo: #4f46e5;
    --bajhi-accent-cyan: #06b6d4;
    --bajhi-accent-green: #10b981;
    --bajhi-accent-amber: #f59e0b;
    --bajhi-accent-red: #ef4444;
    --bajhi-radius: 12px;
    --bajhi-radius-sm: 8px;
    --bajhi-radius-pill: 9999px;
    --bajhi-shadow-glow: 0 0 25px rgba(99, 102, 241, 0.15);
}

/* ==============================================================================
 * 1. STRICT CONTAINERIZATION (NO FULLSCREEN BREAKOUT, NO 100VW BLEED)
 * ============================================================================== */
.bajhi-cloud-container {
    max-width: 1360px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--bajhi-text-main);
    background: transparent;
    position: relative;
}

.bajhi-cloud-container * {
    box-sizing: border-box;
}

/* ==============================================================================
 * 2. TOP NAVIGATION BAR (SIDEBAR REMOVED ENTIRELY)
 * ============================================================================== */
.bajhi-cloud-topbar {
    background: rgba(17, 20, 27, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--bajhi-border);
    border-radius: var(--bajhi-radius);
    padding: 12px 20px;
    margin-bottom: 28px;
    position: sticky;
    top: 15px;
    z-index: 100;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
    will-change: transform;
}

.bajhi-cloud-topbar.topbar-hidden {
    transform: translateY(calc(-100% - 30px));
    opacity: 0;
    pointer-events: none;
}

.logged-in .bajhi-cloud-topbar {
    top: 45px !important;
}

@media (max-width: 782px) {
    .logged-in .bajhi-cloud-topbar {
        top: 56px !important;
    }
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.topbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #ffffff;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -0.5px;
}

.brand-logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #4f46e5, #06b6d4);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
}

.brand-highlight {
    color: var(--bajhi-accent-cyan);
    font-weight: 800;
    margin-left: 2px;
}

.topbar-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 4px 10px;
    border-radius: var(--bajhi-radius-pill);
    font-size: 11.5px;
    font-weight: 600;
    color: var(--bajhi-accent-green);
}

.pulse-dot {
    width: 7px;
    height: 7px;
    background-color: var(--bajhi-accent-green);
    border-radius: 50%;
    position: relative;
    display: inline-block;
    box-shadow: 0 0 8px var(--bajhi-accent-green);
    animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.85);
    }
}

/* TOPBAR NAV LINKS */
.topbar-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    border-radius: var(--bajhi-radius-pill);
}

.topbar-nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 15px;
    border-radius: var(--bajhi-radius-pill);
    font-size: 13px;
    font-weight: 500;
    color: var(--bajhi-text-muted);
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.topbar-nav-item:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.topbar-nav-item.active {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-weight: 600;
}

.topbar-nav-item .nav-item-icon {
    font-size: 16px;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.catalog-badge,
.user-apps-badge {
    font-size: 10px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.1);
    color: #e5e7eb;
    padding: 1px 7px;
    border-radius: var(--bajhi-radius-pill);
}

/* TOPBAR RIGHT CONTROLS */
.topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-primary-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1f2430;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.16);
    padding: 8px 18px;
    border-radius: var(--bajhi-radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.btn-primary-action:hover {
    background: #2b3242;
    border-color: rgba(255, 255, 255, 0.28);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
    color: #ffffff;
}

.btn-secondary-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--bajhi-border);
    color: var(--bajhi-text-muted);
    padding: 8px 14px;
    border-radius: var(--bajhi-radius-sm);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-secondary-action:hover {
    background: var(--bajhi-bg-card-hover);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

.user-profile-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 3px 8px 3px 4px;
    border-radius: var(--bajhi-radius-pill);
}

.profile-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--bajhi-border);
}

.profile-info {
    display: flex;
    flex-direction: column;
}

.profile-name {
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.2;
}

.profile-tier-tag {
    font-size: 9px;
    font-weight: 800;
    color: var(--bajhi-accent-cyan);
    letter-spacing: 0.5px;
}

/* ==============================================================================
 * 3. RENDER.COM INSPIRED HERO SECTION (CENTERED VALUE PROPOSITION)
 * ============================================================================== */
.render-hero-section {
    position: relative;
    max-width: 920px;
    margin: 0 auto 36px;
    text-align: center;
    padding: 40px 20px 10px;
}

.hero-glow-backdrop {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 650px;
    height: 380px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.22) 0%, rgba(6, 182, 212, 0.1) 50%, transparent 70%);
    filter: blur(70px);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.35);
    padding: 6px 16px;
    border-radius: var(--bajhi-radius-pill);
    font-size: 12px;
    font-weight: 600;
    color: #c7d2fe;
    margin-bottom: 22px;
}

.badge-spark {
    font-size: 14px;
}

.hero-title {
    font-size: 46px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.2px;
    color: #ffffff;
    margin: 0 0 20px 0;
    max-width: 860px;
}

.text-gradient {
    background: linear-gradient(135deg, #ffffff 30%, #a5b4fc 70%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 16.5px;
    line-height: 1.65;
    color: var(--bajhi-text-muted);
    margin: 0 auto 30px;
    max-width: 720px;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.hero-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #1f2533;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 13px 26px;
    border-radius: var(--bajhi-radius-sm);
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    transition: all 0.2s ease;
}

.hero-cta-btn:hover {
    background: #2a3245;
    border-color: rgba(255, 255, 255, 0.32);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
    color: #ffffff;
}

.hero-secondary-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--bajhi-border);
    color: #ffffff;
    padding: 13px 22px;
    border-radius: var(--bajhi-radius-sm);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.hero-secondary-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* ==============================================================================
 * 4. UPGRADED 1-CLICK INSTANT PROVISIONING ENGINE (CLEAR & VISUAL ARCHITECTURE)
 * ============================================================================== */
.render-terminal-section {
    position: relative;
    max-width: 960px;
    margin: 0 auto 52px;
    z-index: 2;
}

.hero-terminal-wrapper {
    position: relative;
    width: 100%;
}

.render-terminal-window {
    background: #0d1017;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65), 0 0 35px rgba(99, 102, 241, 0.15);
}

.terminal-header {
    background: #141822;
    padding: 13px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-dots {
    display: flex;
    gap: 7px;
}

.terminal-dots .dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.dot-red {
    background: #ef4444;
}

.dot-yellow {
    background: #f59e0b;
}

.dot-green {
    background: #10b981;
}

.terminal-title {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--bajhi-text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.terminal-title .dashicons {
    color: var(--bajhi-accent-cyan);
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.terminal-cluster-status {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--bajhi-accent-green);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 3px 11px;
    border-radius: var(--bajhi-radius-pill);
}

.pulse-dot-green {
    width: 7px;
    height: 7px;
    background: var(--bajhi-accent-green);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px var(--bajhi-accent-green);
    animation: pulseGlow 2s infinite ease-in-out;
}

.terminal-service-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #0f121a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    overflow-x: auto;
}

.terminal-service-tabs .term-picker-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--bajhi-text-muted);
    font-size: 12.5px;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: var(--bajhi-radius-pill);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.terminal-service-tabs .term-picker-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

.terminal-service-tabs .term-picker-btn.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(6, 182, 212, 0.25));
    border-color: var(--bajhi-accent-purple);
    color: #ffffff;
    box-shadow: 0 2px 12px rgba(99, 102, 241, 0.3);
}

.terminal-blueprint-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 24px;
    background: #0b0d13;
}

.blueprint-card {
    background: #131722;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 18px 20px;
    transition: all 0.2s ease;
}

.blueprint-card:hover {
    border-color: rgba(99, 102, 241, 0.4);
    background: #161b28;
}

.blueprint-label {
    display: block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: var(--bajhi-text-dim);
    margin-bottom: 8px;
}

.blueprint-val {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.blueprint-desc {
    font-size: 12px;
    color: var(--bajhi-text-muted);
    line-height: 1.45;
}

.text-cyan {
    color: var(--bajhi-accent-cyan) !important;
}

.terminal-action-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 24px;
    background: #10131d;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
}

.btn-terminal-deploy {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1f2533;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 11px 24px;
    border-radius: var(--bajhi-radius-sm);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    transition: all 0.2s ease;
}

.btn-terminal-deploy:hover {
    background: #2a3245;
    border-color: rgba(255, 255, 255, 0.32);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.btn-terminal-deploy .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.terminal-deploy-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    color: var(--bajhi-text-muted);
    flex-wrap: wrap;
}

.pipeline-step {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pipeline-step.step-done {
    color: var(--bajhi-accent-green);
    font-weight: 600;
}

.step-check {
    font-size: 13px;
    font-weight: 800;
}

.pipeline-step-arrow {
    color: var(--bajhi-text-dim);
    font-size: 12px;
}

.pipeline-step.step-active {
    color: #ffffff;
    font-weight: 600;
}

/* ==============================================================================
 * 7. APPS MARKETPLACE BROWSER (ALL 340+ APPS)
 * ============================================================================== */
.marketplace-header-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 10px auto 26px auto;
    width: 100%;
}

.marketplace-header-bar-centered {
    justify-content: center;
}

.section-subtitle,
.subtitle {
    font-size: 15px;
    line-height: 1.55;
    color: var(--bajhi-text-muted);
    margin: 0;
}

.marketplace-search-field {
    position: relative;
    width: 100%;
    max-width: 580px;
    margin: 0 auto;
    box-sizing: border-box !important;
}

.marketplace-search-field * {
    box-sizing: border-box !important;
}

.marketplace-search-field .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--bajhi-text-dim);
    font-size: 17px;
    pointer-events: none;
}

.marketplace-search-field input[type="search"],
.marketplace-search-field input {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    background: var(--bajhi-bg-input);
    border: 1px solid var(--bajhi-border);
    border-radius: var(--bajhi-radius-pill);
    padding: 10px 38px 10px 42px;
    font-size: 13.5px;
    color: #ffffff;
    outline: none;
    transition: all 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.marketplace-search-field input:focus {
    border-color: var(--bajhi-border-focus);
    background: #1b202c;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.clear-search-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--bajhi-text-dim);
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
}

/* CATEGORY CHIPS SCROLLER */
.marketplace-categories-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 14px;
    margin-bottom: 24px;
    scrollbar-width: thin;
}

.marketplace-categories-scroll::-webkit-scrollbar {
    height: 4px;
}

.marketplace-categories-scroll::-webkit-scrollbar-thumb {
    background: var(--bajhi-border);
    border-radius: 4px;
}

.category-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bajhi-bg-card);
    border: 1px solid var(--bajhi-border);
    color: var(--bajhi-text-muted);
    padding: 7px 15px;
    border-radius: var(--bajhi-radius-pill);
    font-size: 12.5px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-chip:hover {
    background: var(--bajhi-bg-card-hover);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.15);
}

.category-chip.active {
    background: #1f2533;
    border-color: rgba(255, 255, 255, 0.28);
    color: #ffffff;
    font-weight: 600;
}

.chip-count {
    background: rgba(255, 255, 255, 0.08);
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
    color: #e5e7eb;
}

/* 340+ APPS GRID */
.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    min-height: 300px;
}

.tpl-card {
    background: var(--bajhi-bg-card);
    border: 1px solid var(--bajhi-border);
    border-radius: var(--bajhi-radius);
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
}

.tpl-card:hover {
    background: var(--bajhi-bg-card-hover);
    border-color: rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.tpl-card-top {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 12px;
}

.tpl-icon-box {
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #181d28;
    border: 1px solid var(--bajhi-border);
    border-radius: 10px;
    flex-shrink: 0;
    overflow: hidden;
    padding: 6px;
}

.tpl-logo-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tpl-info-col {
    flex: 1;
    min-width: 0;
}

.tpl-title {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tpl-category-tag {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 600;
    color: var(--bajhi-accent-cyan);
    background: rgba(6, 182, 212, 0.1);
    padding: 1px 7px;
    border-radius: 4px;
}

.tpl-desc {
    font-size: 13.5px;
    line-height: 1.55;
    color: #9ca3af;
    margin: 0 0 14px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.tpl-card-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.tpl-docs-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #9ca3af;
    font-size: 12.5px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

.tpl-docs-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

.tpl-deploy-btn {
    background: #1c212c;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e5e7eb;
    font-size: 12.5px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: center;
}

.tpl-card-footer.has-full-btn .tpl-deploy-btn {
    width: 100%;
}

.tpl-card:hover .tpl-deploy-btn {
    background: #283040;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.25);
}

.catalog-loading-placeholder {
    grid-column: 1 / -1;
    padding: 60px;
    text-align: center;
    color: var(--bajhi-text-muted);
}

.spin {
    animation: spinIcon 1.5s linear infinite;
    display: inline-block;
}

@keyframes spinIcon {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* GUEST LOAD MORE */
#guest-load-more-wrap {
    text-align: center;
    padding: 28px 0 16px;
}

#btn-guest-load-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 36px;
    font-size: 14.5px;
    font-weight: 700;
    border-radius: var(--bajhi-radius-pill);
    background: #1f2533;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: all 0.2s ease;
}

#btn-guest-load-more:hover {
    background: #2a3245;
    border-color: rgba(255, 255, 255, 0.32);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
}

/* ==============================================================================
 * 8. PLANS & PRICING (EXACTLY MAPPED TO SCREENSHOT VARIATIONS)
 * ============================================================================== */
.pricing-header-wrapper {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.pricing-headline h1 {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 8px 0;
    letter-spacing: -0.8px;
}

.pricing-toggle-container {
    display: flex;
    align-items: center;
    background: #141720;
    border: 1px solid var(--bajhi-border);
    padding: 4px;
    border-radius: var(--bajhi-radius-pill);
}

.billing-cycle-btn {
    background: transparent;
    border: none;
    color: var(--bajhi-text-muted);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: var(--bajhi-radius-pill);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.billing-cycle-btn.active {
    background: #1f2533;
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.save-badge {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 9.5px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.pricing-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.pricing-card {
    background: var(--bajhi-bg-card);
    border: 1px solid var(--bajhi-border);
    border-radius: 16px;
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
}

.pricing-card.is-featured {
    background: #141824;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.popular-ribbon {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #252c3c;
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 14px;
    border-radius: var(--bajhi-radius-pill);
    letter-spacing: 0.8px;
}

.pricing-card.is-active-plan {
    border-color: var(--bajhi-accent-green);
}

.tier-label-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.tier-name {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
}

.active-tier-badge {
    background: rgba(16, 185, 129, 0.15);
    color: var(--bajhi-accent-green);
    border: 1px solid rgba(16, 185, 129, 0.35);
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 10px;
}

.tier-tagline {
    font-size: 12.5px;
    color: var(--bajhi-text-muted);
    margin: 0 0 20px 0;
    min-height: 38px;
}

.price-display {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 24px;
}

.price-currency {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
}

.price-amount {
    font-size: 42px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    letter-spacing: -1px;
}

.price-period {
    font-size: 13.5px;
    color: var(--bajhi-text-dim);
    font-weight: 500;
}

.price-yearly-subtext {
    font-size: 11.5px;
    color: var(--bajhi-accent-green);
    margin: 0 0 22px 0;
    min-height: 18px;
}

.tier-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 26px 0;
    display: flex;
    flex-direction: column;
    gap: 11px;
    font-size: 13px;
    color: var(--bajhi-text-muted);
    flex: 1;
}

.tier-features-list li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tier-features-list strong {
    color: #ffffff;
}

.check-icon {
    color: var(--bajhi-accent-green);
    font-weight: 800;
    font-size: 13px;
}

.card-action {
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.plan-checkout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 18px;
    border-radius: var(--bajhi-radius-sm);
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: #1f2533;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
    background: #2a3245;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-accent {
    background: #222938;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.btn-accent:hover {
    background: #2d3648;
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
    color: #ffffff;
}

.btn-current {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: var(--bajhi-accent-green);
}

.pricing-guarantee-box {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bajhi-bg-card);
    border: 1px solid var(--bajhi-border);
    border-radius: var(--bajhi-radius);
    padding: 20px 24px;
}

.guarantee-icon {
    font-size: 32px;
    color: var(--bajhi-accent-cyan);
}

.guarantee-text h4 {
    margin: 0 0 4px 0;
    font-size: 15px;
    color: #ffffff;
}

.guarantee-text p {
    margin: 0;
    font-size: 13px;
    color: var(--bajhi-text-muted);
}

/* ==============================================================================
 * 9. DASHBOARD / MY APPLICATIONS & EMAIL PANELS
 * ============================================================================== */
.view-panel {
    display: none;
}

.view-panel.active {
    display: block;
    animation: fadeInPanel 0.2s ease-in;
}

@keyframes fadeInPanel {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.view-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.view-header h1 {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 6px 0;
}

.view-header .subtitle {
    font-size: 15px;
    line-height: 1.55;
    color: var(--bajhi-text-muted);
    margin: 0;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 30px;
}

.coolify-card {
    background: var(--bajhi-bg-card);
    border: 1px solid var(--bajhi-border);
    border-radius: var(--bajhi-radius);
    padding: 20px;
}

.metric-box {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.metric-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.metric-title {
    font-size: 12.5px;
    color: var(--bajhi-text-dim);
    font-weight: 500;
}

.metric-head .metric-icon {
    font-size: 20px;
    color: var(--bajhi-accent-purple);
}

.metric-value {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
}

.text-accent {
    color: var(--bajhi-accent-cyan) !important;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: var(--bajhi-radius-pill);
    font-size: 11px;
    font-weight: 700;
}

.status-running {
    background: rgba(16, 185, 129, 0.15);
    color: var(--bajhi-accent-green);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-stopped {
    background: rgba(239, 68, 68, 0.15);
    color: var(--bajhi-accent-red);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.coolify-input,
.coolify-select {
    width: 100%;
    background: var(--bajhi-bg-input);
    border: 1px solid var(--bajhi-border);
    color: #ffffff;
    padding: 10px 14px;
    border-radius: var(--bajhi-radius-sm);
    font-size: 13.5px;
    outline: none;
    transition: border-color 0.2s;
}

.coolify-input:focus,
.coolify-select:focus {
    border-color: var(--bajhi-border-focus);
}

.email-sub-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.email-sub-tab-btn {
    background: var(--bajhi-bg-card);
    border: 1px solid var(--bajhi-border);
    color: var(--bajhi-text-muted);
    padding: 8px 16px;
    border-radius: var(--bajhi-radius-pill);
    font-size: 12.5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.email-sub-tab-btn.active {
    background: #1f2533;
    border-color: rgba(255, 255, 255, 0.28);
    color: #ffffff;
    font-weight: 600;
}

/* ==============================================================================
 * 10. MODALS & POPUPS
 * ============================================================================== */
.coolify-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.coolify-modal-content {
    background: #141720;
    border: 1px solid var(--bajhi-border);
    border-radius: 16px;
    width: 100%;
    max-width: 760px;
    height: 85vh;
    max-height: 750px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
}

.modal-topbar {
    padding: 16px 20px;
    background: #1a1e2a;
    border-bottom: 1px solid var(--bajhi-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
}

.modal-close-btn {
    background: transparent;
    border: none;
    color: var(--bajhi-text-muted);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

.modal-iframe-container {
    flex: 1;
    background: #ffffff;
}

.modal-iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.guest-modal-box {
    background: #141720;
    border: 1px solid var(--bajhi-border);
    border-radius: 16px;
    padding: 32px 28px;
    max-width: 440px;
    width: 100%;
    text-align: center;
    position: relative;
}

.guest-modal-icon {
    width: 60px;
    height: 60px;
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.guest-modal-box h3 {
    margin: 0 0 8px 0;
    color: #ffffff;
    font-size: 20px;
}

.guest-modal-box p {
    font-size: 13.5px;
    color: var(--bajhi-text-muted);
    line-height: 1.6;
    margin: 0 0 24px 0;
}

.guest-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-close-guest-modal {
    position: absolute;
    top: 14px;
    right: 14px;
    background: transparent;
    border: none;
    color: var(--bajhi-text-muted);
    font-size: 22px;
    cursor: pointer;
}

/* ==============================================================================
 * 11. RESPONSIVE BREAKPOINTS
 * ============================================================================== */
@media (max-width: 1200px) {
    .pricing-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 860px) {
    .bajhi-cloud-topbar {
        padding: 8px 12px;
        margin-bottom: 20px;
    }

    .topbar-inner {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
    }

    /* Hide brand on mobile as requested */
    .topbar-left,
    .topbar-brand {
        display: none !important;
    }

    /* Navigation tabs compact in same row */
    .topbar-nav {
        order: 1 !important;
        width: auto !important;
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;
        padding: 3px !important;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: var(--bajhi-radius-pill);
        overflow: visible !important;
    }

    .topbar-nav-item {
        padding: 5px 10px !important;
        font-size: 12px !important;
        gap: 4px !important;
        border-radius: var(--bajhi-radius-pill) !important;
    }

    .topbar-nav-item .nav-item-icon {
        font-size: 14px !important;
        width: 14px !important;
        height: 14px !important;
    }

    .catalog-badge {
        font-size: 9px !important;
        padding: 1px 5px !important;
    }

    /* Controls compact in same row */
    .topbar-right {
        order: 2 !important;
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        margin-left: auto !important;
    }

    .btn-primary-action,
    .btn-secondary-action {
        padding: 5px 10px !important;
        font-size: 12px !important;
        gap: 4px !important;
        border-radius: var(--bajhi-radius-pill) !important;
        white-space: nowrap !important;
        height: 30px !important;
        box-sizing: border-box !important;
    }

    .btn-primary-action .dashicons,
    .btn-secondary-action .dashicons {
        font-size: 14px !important;
        width: 14px !important;
        height: 14px !important;
        line-height: 14px !important;
    }

    .user-profile-summary {
        padding: 0 !important;
        gap: 0 !important;
    }

    .profile-avatar {
        width: 28px !important;
        height: 28px !important;
    }

    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .terminal-blueprint-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

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

    .hide-mobile {
        display: none !important;
    }
}

@media (max-width: 580px) {
    .pricing-cards-grid {
        grid-template-columns: 1fr;
    }

    .metrics-grid {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        gap: 12px !important;
        padding-bottom: 8px !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .metrics-grid .coolify-card.metric-box {
        min-width: 170px !important;
        flex: 0 0 auto !important;
        padding: 14px 16px !important;
    }



    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .terminal-action-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-terminal-deploy {
        width: 100%;
        justify-content: center;
    }

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