:root {
    --bg-body: #0f172a;
    --bg-card: #1e293b;
    --bg-card-hover: #334155;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --secondary-color: #8b5cf6;
    --accent-gradient: linear-gradient(135deg, #463edc 0%, #42228b 100%);
    --navbar-bg: rgba(15, 23, 42, 0.8);
    --border-color: #334155;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
}

p {
    color: var(--text-muted);
    line-height: 1.7;
}

a {
    text-decoration: none;
    transition: all 0.2s ease;
}

/* Navbar */
.navbar {
    background-color: var(--navbar-bg) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    color: var(--text-main) !important;
    font-size: 1.5rem;
}

.nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    margin: 0 0.5rem;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-main) !important;
}

/* Buttons */
.btn {
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.1), 0 2px 4px -1px rgba(99, 102, 241, 0.06);
}

.btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.2);
}

.btn-outline-light {
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.btn-outline-light:hover {
    background-color: var(--bg-card);
    border-color: var(--text-muted);
    color: var(--text-main);
}

/* Hero Section */
.hero-section {
    padding: 8rem 0 6rem;
    position: relative;
    overflow: hidden;
}

/* Background elements for hero */
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    z-index: -1;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    z-index: -1;
}

.hero-title {
    font-size: 3.5rem;
    background: linear-gradient(to right, #fff 20%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

/* Cards (Categories & Products) */
.section-title {
    text-align: center;
    position: relative;
    margin-bottom: 3.5rem;
}

.section-title h2 {
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
}

.custom-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    height: 100%;
}

.custom-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    background-color: var(--bg-card-hover);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.product-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 1.5rem 0;
}

.product-price small {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
    border-top: 1px solid var(--border-color);
    padding: 5rem 0;
    margin-top: 70px;
    border-bottom: 1px solid var(--border-color);
}

/* Footer */
footer {
    background-color: #020617;
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
    margin-top: 0 !important;
}

footer p {
    font-size: 0.9rem;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-section {
        padding: 5rem 0;
    }
}

/* Background image support for cards */
.custom-card-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    z-index: 1;
    overflow: hidden;
    /* Ensure border remains visible */
    border: 1px solid var(--border-color);
}

/* Gradient overlay for text readability */
.custom-card-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.75));
    z-index: -1;
    transition: opacity 0.3s ease;
}

.custom-card-bg:hover::before {
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.5));
}

/* Make sure text shines through */
.custom-card-bg * {
    z-index: 2;
    position: relative;
}


/* =========================
   BlueBirdHost Custom Navbar + Footer
========================= */

:root {
    --bbh-blue: #001b5e;
    --bbh-dark-footer: #00113ada;
    --bbh-button: #003ece;
    --bbh-button-hover: #0050ff;
    --bbh-text-light: #ffffff;
    --bbh-text-muted: #a7b6e3;
}

body {
    background: var(--bbh-blue) !important;
}

/* Platz unter der fixed Navbar, damit oben nichts abgeschnitten wird */
main.flex-grow-1 {
    padding-top: clamp(95px, 8vw, 130px);
}

/* Navbar */
.bbh-navbar {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    min-height: clamp(55px, 6vw, 95px);

    background: rgba(0, 0, 0, 0.25) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border-bottom: none !important;
    padding: 0 !important;
    z-index: 9999;
}

.bbh-navbar-inner {
    width: 100%;
    min-height: clamp(55px, 6vw, 95px);

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 0 clamp(10px, 2vw, 25px);
    box-sizing: border-box;
}

.bbh-logo {
    display: flex;
    align-items: center;
}

.bbh-logo img {
    height: clamp(28px, 3.5vw, 55px);
    width: auto;
    transition: 0.25s ease;
}

.bbh-logo img:hover {
    transform: scale(1.08) rotate(-3deg);
}

.bbh-collapse {
    justify-content: flex-end;
}

.bbh-nav-list {
    gap: 18px;
}

.bbh-nav-link,
.bbh-nav-list .nav-link {
    color: white !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    font-size: clamp(14px, 1.4vw, 18px);
    margin: 0 !important;
}

.bbh-nav-link:hover,
.bbh-nav-list .nav-link:hover {
    color: var(--bbh-text-muted) !important;
}

.bbh-buy-btn,
.bbh-nav-list .btn,
.bbh-nav-list .btn-primary {
    color: white !important;
    text-decoration: none !important;

    background: var(--bbh-button) !important;
    background-image: none !important;

    padding: 12px 28px !important;
    border-radius: 8px !important;

    font-weight: 700 !important;
    border: none !important;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    transition: 0.2s ease;
    box-shadow: none !important;
}

.bbh-buy-btn:hover,
.bbh-nav-list .btn:hover,
.bbh-nav-list .btn-primary:hover {
    background: var(--bbh-button-hover) !important;
    transform: scale(1.08);
    color: white !important;
}

.bbh-toggler {
    border: none !important;
    box-shadow: none !important;
}

/* Footer */
.bbh-footer {
    width: 100%;
    margin-top: 80px;

    background: var(--bbh-dark-footer);

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 35px 80px;
    box-sizing: border-box;

    border-top: 2px solid rgba(255, 255, 255, 0.15);
}

.bbh-footer-logo img {
    height: 80px;
    width: auto;
}

.bbh-footer-center {
    flex: 1;
    text-align: center;
    color: white;
}

.bbh-footer-center p {
    margin: 4px 0;
    color: white;
}

.bbh-footer-center a {
    color: white;
    font-weight: 700;
    text-decoration: underline;
}

.bbh-footer-socials {
    display: flex;
    align-items: center;
    gap: 25px;
}

.bbh-footer-socials a {
    color: white;
    font-size: 32px;
    transition: 0.25s ease;
}

.bbh-footer-socials a:hover {
    transform: scale(1.15);
    color: var(--bbh-text-muted);
}

@media (max-width: 700px) {
    .bbh-navbar {
        min-height: 55px;
    }

    .bbh-navbar-inner {
        min-height: 55px;
    }

    .bbh-logo img {
        height: 32px;
    }

    .bbh-collapse {
        position: absolute;
        top: 55px;
        left: 0;

        width: 100%;
        background: rgba(0, 0, 0, 0.9);
        padding: 20px;
        box-sizing: border-box;
    }

    .bbh-nav-list {
        gap: 14px;
        align-items: flex-start !important;
    }

    .bbh-buy-btn,
    .bbh-nav-list .btn,
    .bbh-nav-list .btn-primary {
        display: inline-flex;
        padding: 10px 18px !important;
    }

    .bbh-footer {
        flex-direction: column;
        text-align: center;
        gap: 25px;
        padding: 35px 20px;
    }

    .bbh-footer-logo img {
        height: 60px;
    }

    .bbh-footer-socials {
        justify-content: center;
    }
}

/* =========================
   BlueBirdHost Plan Explorer
========================= */

.bbh-explorer-section {
    padding: 120px 0 90px;
    background:
        radial-gradient(circle at top left, rgba(0, 80, 255, 0.18), transparent 35%),
        radial-gradient(circle at bottom right, rgba(0, 166, 255, 0.10), transparent 30%),
        #001b5e;
    min-height: 100vh;
}

.bbh-explorer-header {
    text-align: center;
    margin-bottom: 36px;
}

.bbh-explorer-badge {
    display: inline-block;
    color: #00a6ff;
    background: rgba(0, 80, 255, 0.16);
    border: 1px solid rgba(0, 166, 255, 0.22);
    border-radius: 999px;
    padding: 7px 14px;
    font-weight: 800;
    font-size: 13px;
    margin-bottom: 14px;
}

.bbh-explorer-header h1 {
    color: white;
    font-size: clamp(34px, 5vw, 64px);
    font-weight: 900;
    margin-bottom: 12px;
}

.bbh-explorer-header p {
    color: #a7b6e3;
    font-size: 18px;
    max-width: 720px;
    margin: 0 auto;
}

.bbh-finder {
    background: rgba(17, 19, 34, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.42);
    overflow: hidden;
    max-width: 1200px;
    margin: 0 auto;
}

.bbh-finder-topbar {
    height: 52px;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 0 18px;
    background: rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bbh-window-dots {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.dot-red,
.dot-yellow,
.dot-green {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    display: inline-block;
    border: none;
    padding: 0;
}

.dot-red {
    background: #ff5f57;
}

.dot-yellow {
    background: #ffbd2e;
}

.dot-green {
    background: #28c840;
}

.bbh-finder-path {
    color: #cbd6ff;
    font-family: Consolas, monospace;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.22);
    border-radius: 999px;
    padding: 7px 14px;
    width: 100%;
}

.bbh-finder-body {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 520px;
}

.bbh-finder-sidebar {
    background: rgba(5, 7, 19, 0.55);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding: 22px;
}

.bbh-sidebar-title {
    color: #a7b6e3;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
}

.bbh-sidebar-folder {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    background: transparent;
    border: none;
    border-radius: 12px;
    padding: 12px;
    text-align: left;
    font-weight: 800;
    transition: 0.2s ease;
}

.bbh-sidebar-folder i {
    color: #0050ff;
    font-size: 20px;
}

.bbh-sidebar-folder:hover,
.bbh-sidebar-folder.active {
    background: rgba(0, 80, 255, 0.22);
}

.bbh-empty-folder,
.bbh-no-files {
    color: #a7b6e3;
    padding: 20px;
}

.bbh-finder-content {
    padding: 28px;
}

.bbh-folder-view {
    display: none;
}

.bbh-folder-view.active {
    display: block;
}

.bbh-folder-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 26px;
}

.bbh-folder-title-row h2 {
    color: white;
    margin: 0 0 8px;
    font-size: 32px;
    font-weight: 900;
}

.bbh-folder-title-row p {
    color: #a7b6e3;
    margin: 0;
    max-width: 620px;
}

.bbh-folder-count {
    color: #00a6ff;
    font-weight: 800;
    background: rgba(0, 80, 255, 0.16);
    border-radius: 999px;
    padding: 8px 13px;
    white-space: nowrap;
}

.bbh-folder-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    gap: 18px;
}

.bbh-file-item {
    min-height: 130px;
    background: #15182a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    color: white;
    padding: 18px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: 0.2s ease;
    cursor: pointer;
}

.bbh-file-item:hover {
    background: #18203a;
    border-color: rgba(0, 166, 255, 0.45);
    transform: translateY(-3px);
}

.bbh-file-item i {
    color: #00a6ff;
    font-size: 36px;
}

.bbh-file-item span {
    color: #dce6ff;
    font-weight: 800;
    font-size: 14px;
    text-align: center;
    word-break: break-word;
}

.bbh-plan-window {
    display: none;
    position: fixed;
    top: 160px;
    left: calc(50% - 230px);
    width: min(460px, calc(100vw - 30px));
    background: #111322;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
    overflow: hidden;
}

.bbh-plan-window.open {
    display: block;
}

.bbh-plan-window.dragging {
    user-select: none;
}

.bbh-plan-window-bar {
    height: 46px;
    background: rgba(255, 255, 255, 0.07);
    border-bottom: 1px solid rgba(255, 255, 255, 0.11);
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 14px;
    cursor: move;
    color: #cbd6ff;
    font-family: Consolas, monospace;
    font-size: 13px;
}

.bbh-close-window {
    cursor: pointer;
}

.bbh-plan-window-content {
    padding: 24px;
}

.bbh-plan-window-content h3 {
    color: white;
    font-size: 28px;
    font-weight: 900;
    margin: 0 0 8px;
}

.bbh-plan-price {
    color: #00a6ff;
    font-size: 21px;
    font-weight: 900;
    margin-bottom: 16px;
}

.bbh-plan-text {
    color: #cbd6ff;
    background: #050713;
    border-radius: 12px;
    padding: 16px;
    line-height: 1.7;
    font-size: 15px;
    margin-bottom: 16px;
}

.bbh-plan-text p {
    color: #cbd6ff;
    margin: 0;
}

.bbh-plan-terminal {
    background: #050713;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 18px;
    font-family: Consolas, monospace;
}

.bbh-plan-terminal p {
    margin: 5px 0;
    color: #dce6ff;
    font-size: 13px;
}

.bbh-plan-terminal span {
    color: #00ff66;
    font-weight: 900;
}

.bbh-plan-buy {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    background: #003ece;
    color: white !important;
    border-radius: 10px;
    padding: 13px 20px;
    font-weight: 900;
    text-decoration: none !important;
    transition: 0.2s ease;
}

.bbh-plan-buy:hover {
    background: #0050ff;
    transform: scale(1.03);
}

@media (max-width: 900px) {
    .bbh-finder-body {
        grid-template-columns: 1fr;
    }

    .bbh-finder-sidebar {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        display: flex;
        gap: 10px;
        overflow-x: auto;
    }

    .bbh-sidebar-title {
        display: none;
    }

    .bbh-sidebar-folder {
        width: auto;
        white-space: nowrap;
    }

    .bbh-folder-grid {
        grid-template-columns: repeat(2, minmax(120px, 1fr));
    }
}

@media (max-width: 520px) {
    .bbh-explorer-section {
        padding-top: 90px;
    }

    .bbh-finder-content {
        padding: 18px;
    }

    .bbh-folder-title-row {
        flex-direction: column;
    }

    .bbh-folder-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================
   BlueBirdHost Homepage Explorer + Unified Buttons
========================= */

.bbh-home-finder {
    max-width: 1320px;
}

.bbh-main-btn,
.btn-primary,
.btn-outline-light,
.custom-card .btn,
.custom-card .btn-primary,
.custom-card .btn-outline-light {
    background: #003ece !important;
    background-image: none !important;
    border: none !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    box-shadow: none !important;
}

.bbh-main-btn:hover,
.btn-primary:hover,
.btn-outline-light:hover,
.custom-card .btn:hover,
.custom-card .btn-primary:hover,
.custom-card .btn-outline-light:hover {
    background: #0050ff !important;
    color: #ffffff !important;
    transform: scale(1.04);
    box-shadow: none !important;
}

.bbh-main-btn:focus,
.btn-primary:focus,
.btn-outline-light:focus {
    box-shadow: none !important;
}

.bbh-main-btn.w-100,
.btn-primary.w-100,
.btn-outline-light.w-100 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Breadcrumb / root explorer navigation */
.bbh-crumb {
    background: transparent;
    border: none;
    outline: none;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    padding: 0;
    cursor: pointer;
    opacity: 0.75;
}

.bbh-crumb:hover,
.bbh-crumb.active {
    opacity: 1;
    color: #ffffff;
    font-weight: 500;
}

.bbh-crumb:focus,
.bbh-crumb:focus-visible {
    outline: none;
    box-shadow: none;
}


.bbh-crumb.is-hidden {
    display: none;
}

.bbh-root-view {
    display: none;
}

.bbh-root-view.active {
    display: block;
}

.bbh-root-header h2 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.bbh-root-header p {
    color: rgba(255,255,255,0.8);
    font-size: 1.15rem;
    margin-bottom: 2rem;
    max-width: 680px;
}

.bbh-root-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 280px));
    gap: 1.2rem;
}

.bbh-root-folder {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 18px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #ffffff;
    transition: 0.2s ease;
}

.bbh-root-folder i {
    font-size: 2rem;
    color: #1da1ff;
}

.bbh-root-folder span {
    font-size: 1.2rem;
    font-weight: 800;
}

.bbh-root-folder:hover {
    background: rgba(0, 62, 206, 0.22);
    border-color: rgba(0, 80, 255, 0.45);
}


/* Apple-like explorer icons */
.bbh-sidebar-folder,
.bbh-root-folder,
.bbh-file-item {
    position: relative;
}

.bbh-sidebar-folder span:last-child,
.bbh-root-folder span:last-child,
.bbh-file-item span:last-child {
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.28);
}

.bbh-root-folder {
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.bbh-root-folder span:last-child {
    font-size: 1.12rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.bbh-root-folder:hover {
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(0,62,206,0.12));
    border-color: rgba(85, 146, 255, 0.42);
}

.bbh-sidebar-folder {
    font-weight: 650;
    gap: 14px;
}

.bbh-sidebar-folder span:last-child {
    font-size: 16px;
    letter-spacing: -0.01em;
}

.bbh-file-item {
    background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.03));
}

.bbh-file-item span:last-child {
    font-weight: 650;
    font-size: 13px;
    line-height: 1.35;
}

.bbh-apple-folder-icon {
    width: 46px;
    height: 34px;
    display: inline-block;
    position: relative;
    flex: 0 0 auto;
    border-radius: 8px;
    background: linear-gradient(180deg, #59b9ff 0%, #2a97ff 58%, #177dff 100%);
    box-shadow: 0 10px 18px rgba(20, 122, 255, 0.18), inset 0 1px 0 rgba(255,255,255,0.30);
}

.bbh-apple-folder-icon::before {
    content: "";
    position: absolute;
    left: 4px;
    top: -5px;
    width: 19px;
    height: 10px;
    border-radius: 7px 7px 3px 3px;
    background: linear-gradient(180deg, #8fd2ff 0%, #4aaeff 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.35);
}

.bbh-apple-folder-icon::after {
    content: "";
    position: absolute;
    inset: 6px 3px 4px;
    border-radius: 6px;
    background: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0));
}

.bbh-root-folder .bbh-apple-folder-icon {
    width: 54px;
    height: 40px;
    border-radius: 10px;
}

.bbh-root-folder .bbh-apple-folder-icon::before {
    width: 22px;
    height: 11px;
    left: 5px;
    top: -6px;
}

.bbh-sidebar-folder .bbh-apple-folder-icon {
    width: 30px;
    height: 22px;
    border-radius: 6px;
}

.bbh-sidebar-folder .bbh-apple-folder-icon::before {
    width: 12px;
    height: 6px;
    left: 3px;
    top: -4px;
    border-radius: 5px 5px 2px 2px;
}

.bbh-apple-file-icon {
    width: 34px;
    height: 42px;
    display: inline-block;
    position: relative;
    flex: 0 0 auto;
    border-radius: 8px;
    background: linear-gradient(180deg, #f8fbff 0%, #d7e6ff 100%);
    box-shadow: 0 10px 18px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.80);
}

.bbh-apple-file-icon::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, #c7dcff 50%, #eef5ff 50%);
    clip-path: polygon(0 0, 100% 100%, 100% 0);
    border-top-right-radius: 8px;
}

.bbh-apple-file-icon::after {
    content: "";
    position: absolute;
    left: 7px;
    right: 7px;
    top: 15px;
    height: 14px;
    border-radius: 3px;
    background:
        linear-gradient(#3aa5ff,#3aa5ff) 0 0/100% 2px no-repeat,
        linear-gradient(#79bfff,#79bfff) 0 6px/85% 2px no-repeat,
        linear-gradient(#79bfff,#79bfff) 0 12px/65% 2px no-repeat;
    opacity: 0.95;
}


/* Window dot buttons behave like real macOS buttons */
.dot-red,
.dot-yellow,
.dot-green {
    border: none !important;
    padding: 0 !important;
    outline: none !important;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.bbh-finder-topbar .dot-yellow,
.bbh-finder-topbar .dot-green {
    cursor: default;
}

.bbh-plan-window-bar .dot-red,
.bbh-plan-window-bar .dot-yellow,
.bbh-plan-window-bar .dot-green {
    cursor: pointer;
}


/* =========================
   Responsive Explorer / Draggable Windows Patch
========================= */
.bbh-finder {
    width: 100%;
    max-width: 1320px;
}

.bbh-finder-topbar {
    min-height: 58px;
    height: auto;
    padding: 10px 18px;
    flex-wrap: wrap;
}

.bbh-window-dots {
    gap: 10px;
    padding: 2px 0;
}

.dot-red,
.dot-yellow,
.dot-green {
    width: 17px;
    height: 17px;
    min-width: 17px;
    min-height: 17px;
    box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 0 0 1px rgba(0,0,0,0.14);
}

.bbh-finder-path {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scrollbar-width: none;
}

.bbh-finder-path::-webkit-scrollbar {
    display: none;
}

.bbh-crumb {
    white-space: nowrap;
    flex: 0 0 auto;
}

.bbh-root-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.bbh-folder-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.bbh-file-item,
.bbh-root-folder {
    width: 100%;
}

.bbh-plan-window {
    width: min(460px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    max-height: min(78vh, 760px);
    overflow: hidden;
    touch-action: none;
}

.bbh-plan-window-bar {
    min-height: 52px;
    height: auto;
    padding: 10px 14px;
    touch-action: none;
}

.bbh-plan-window-content {
    padding: 22px;
    max-height: calc(min(78vh, 760px) - 52px);
    overflow: auto;
}

.bbh-plan-window.dragging {
    user-select: none;
    transition: none !important;
}

@media (max-width: 900px) {
    .bbh-finder {
        border-radius: 20px;
    }

    .bbh-finder-body {
        grid-template-columns: 1fr;
    }

    .bbh-finder-sidebar {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        display: flex;
        gap: 10px;
        overflow-x: auto;
        padding: 16px 18px;
    }

    .bbh-finder-content {
        padding: 22px;
    }
}

@media (max-width: 700px) {
    .bbh-folder-title-row {
        flex-direction: column;
        gap: 14px;
    }

    .bbh-folder-title-row h2 {
        font-size: 26px;
    }

    .bbh-root-header h2 {
        font-size: 1.8rem;
    }

    .bbh-root-header p,
    .bbh-folder-title-row p {
        font-size: 1rem;
    }

    .bbh-plan-window {
        width: calc(100vw - 18px);
        max-width: calc(100vw - 18px);
    }
}

@media (max-width: 520px) {
    .bbh-finder {
        border-radius: 18px;
    }

    .bbh-finder-topbar {
        padding: 10px 12px;
        gap: 10px;
    }

    .bbh-finder-content,
    .bbh-finder-sidebar {
        padding-left: 14px;
        padding-right: 14px;
    }

    .bbh-root-grid,
    .bbh-folder-grid {
        grid-template-columns: 1fr;
    }

    .bbh-sidebar-folder {
        padding: 10px 12px;
    }

    .bbh-plan-window {
        width: calc(100vw - 12px);
        max-width: calc(100vw - 12px);
        border-radius: 16px;
    }

    .bbh-plan-window-content {
        padding: 18px;
    }

    .bbh-plan-window-content h3 {
        font-size: 24px;
    }

    .bbh-plan-price {
        font-size: 19px;
    }

    .dot-red,
    .dot-yellow,
    .dot-green {
        width: 18px;
        height: 18px;
        min-width: 18px;
        min-height: 18px;
    }
}


/* Prevent page scrolling while dragging a plan window on touch devices */
.bbh-plan-window-bar {
    touch-action: none !important;
    -ms-touch-action: none !important;
    user-select: none;
    -webkit-user-select: none;
    overscroll-behavior: contain;
}

body.bbh-window-dragging {
    overflow: hidden;
    touch-action: none;
}


/* Keep macOS window buttons clickable on touch devices */
.bbh-close-window {
    pointer-events: auto;
    touch-action: manipulation !important;
}
