/* ============================================================================
   OneCloud BBS - inner page components
   Loaded AFTER css/bbs-theme.css by pos / accounting / hr / ecommerce /
   pricelist / contact. The homepage does not need any of this, so it stays
   in a separate file rather than bloating the shared theme.
   ========================================================================= */

/* ---------------------------------------------------------- Page hero */
/* Shorter than the homepage hero, same visual family. */
.bbs-phero {
    position: relative; overflow: hidden; isolation: isolate; color: #fff;
    padding-top: clamp(104px, 11vw, 138px); padding-bottom: clamp(52px, 6vw, 86px);
    background:
        radial-gradient(1000px 560px at 80% 6%, rgba(20, 120, 200, .55), transparent 62%),
        radial-gradient(820px 500px at 8% 96%, rgba(93, 199, 255, .2), transparent 60%),
        linear-gradient(150deg, var(--navy-900) 0%, var(--navy-800) 46%, var(--navy-700) 100%);
}
.bbs-phero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
.bbs-phero--plain .bbs-phero__inner { grid-template-columns: 1fr; text-align: center; }
.bbs-phero--plain .bbs-phero__lede { margin-inline: auto; }
.bbs-phero--plain .bbs-crumb { justify-content: center; }
.bbs-phero--plain .bbs-phero__cta { justify-content: center; }

/* Transform-only entrance: never fade the H1, it is an LCP candidate. */
.bbs-phero h1 {
    font-size: clamp(30px, 3.9vw, 48px); line-height: 1.1; color: #fff;
    letter-spacing: -.03em; margin-bottom: 16px; text-wrap: balance;
    animation: bbs-rise .9s var(--ease-out) both;
}
.bbs-phero__lede { font-size: clamp(15.5px, 1.3vw, 18.5px); line-height: 1.62; color: rgba(226, 240, 255, .84); max-width: 56ch; margin-bottom: 26px; }
.bbs-phero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.bbs-phero__media { position: relative; animation: bbs-rise-stage 1.05s var(--ease-out) both; }
.bbs-phero__media img { display: block; width: 100%; height: auto; border-radius: var(--radius-lg); }
.bbs-phero__media--float img { animation: bbs-float 7.5s ease-in-out infinite; }
.bbs-phero__media::before {
    content: ""; position: absolute; inset: 6%; border-radius: 50%; z-index: -1;
    background: radial-gradient(circle, rgba(93, 199, 255, .42), transparent 66%); filter: blur(46px);
}

/* Breadcrumb - mirrored as BreadcrumbList JSON-LD on every inner page. */
.bbs-crumb {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
    list-style: none; margin: 0 0 16px; padding: 0; font-size: 13px; color: rgba(206, 228, 250, .72);
}
.bbs-crumb a { color: inherit; text-decoration: none; transition: color .25s; }
.bbs-crumb a:hover { color: var(--lime); }
.bbs-crumb li + li::before { content: "/"; margin-right: 8px; opacity: .45; }
.bbs-crumb [aria-current="page"] { color: #fff; font-weight: 600; }


/* A split that has lost its media column (single child) should not sit in a
   half-width track - let the copy use the full shell. */
.bbs-split--single { grid-template-columns: 1fr; max-width: 760px; }

/* ------------------------------------------------------- Feature tiles */
.bbs-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.bbs-tiles--3 { grid-template-columns: repeat(3, 1fr); }
.bbs-tile {
    display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px;
    padding: 24px 16px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
    font-size: 14.5px; font-weight: 600; color: var(--ink); text-decoration: none;
    transition: transform .4s var(--ease-out), box-shadow .4s, border-color .4s;
}
.bbs-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(20, 120, 200, .35); color: var(--ink); }
.bbs-tile__ico {
    width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none;
    background: linear-gradient(135deg, rgba(20, 120, 200, .12), rgba(93, 199, 255, .2)); color: var(--navy-600);
    transition: transform .4s var(--ease-spring), background .4s, color .4s;
}
.bbs-tile:hover .bbs-tile__ico {
    transform: rotate(-7deg) scale(1.08);
    background: linear-gradient(135deg, var(--navy-600), var(--navy-500)); color: #fff;
}
.bbs-tile img { width: 34px; height: 34px; object-fit: contain; }

/* --------------------------------------------- Icon feature list (splits) */
.bbs-featlist { display: grid; gap: 20px; margin-top: 26px; }
.bbs-featitem { display: flex; gap: 15px; align-items: flex-start; }
.bbs-featitem__ico {
    flex: none; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
    background: linear-gradient(135deg, rgba(20, 120, 200, .12), rgba(93, 199, 255, .2)); color: var(--navy-600);
}
.bbs-featitem h3 { font-size: 16.5px; margin: 2px 0 6px; }
.bbs-featitem p { margin: 0; font-size: 14.8px; line-height: 1.6; color: var(--ink-soft); }
.bbs-featlist--light .bbs-featitem h3 { color: #fff; }
.bbs-featlist--light .bbs-featitem p { color: rgba(219, 236, 252, .84); }
.bbs-featlist--light .bbs-featitem__ico { background: rgba(255, 255, 255, .13); color: var(--lime); border: 1px solid rgba(255, 255, 255, .18); }

/* -------------------------------------------------- Marketplace cards */
.bbs-market { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bbs-market__card {
    display: flex; flex-direction: column; padding: 28px; border-radius: var(--radius-lg);
    background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
    transition: transform .45s var(--ease-out), box-shadow .45s, border-color .45s;
}
.bbs-market__card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: rgba(20, 120, 200, .3); }
/* Wordmark chip. The real Lazada/Shopee logo files are not in the repo, so we
   use a neutral typographic badge rather than shipping a broken <img>. */
.bbs-market__badge {
    display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 18px;
    border-radius: 12px; font-weight: 800; font-size: 17px; letter-spacing: -.01em; color: #fff;
    align-self: flex-start; margin-bottom: 16px;
}
.bbs-market__badge--lazada { background: linear-gradient(135deg, #f1592a, #0f146d); }
.bbs-market__badge--shopee { background: linear-gradient(135deg, #ee4d2d, #ff7337); }
.bbs-market__badge--more   { background: linear-gradient(135deg, var(--navy-700), var(--navy-500)); }
.bbs-market__card p { font-size: 14.8px; line-height: 1.65; color: var(--ink-soft); margin: 0 0 16px; }
.bbs-market__card .bbs-checks { margin-top: auto; }

/* ------------------------------------------------------- Chat mock-up */
.bbs-chatmock {
    border-radius: var(--radius-lg); overflow: hidden; background: #fff;
    border: 1px solid var(--line); box-shadow: var(--shadow-lg); max-width: 470px; margin-inline: auto;
}
.bbs-chatmock__bar {
    display: flex; align-items: center; gap: 10px; padding: 14px 18px; color: #fff; font-weight: 700; font-size: 14.5px;
    background: linear-gradient(100deg, var(--navy-800), var(--navy-600));
}
.bbs-chatmock__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); flex: none; }
.bbs-chatmock__body { padding: 18px; display: grid; gap: 12px; background: var(--surface-alt); }
.bbs-bubble { max-width: 86%; padding: 12px 15px; border-radius: 16px; font-size: 14px; line-height: 1.55; }
.bbs-bubble--bot { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 5px; color: var(--ink); }
.bbs-bubble--me {
    margin-left: auto; background: linear-gradient(135deg, var(--navy-600), var(--navy-500));
    color: #fff; border-bottom-right-radius: 5px;
}

/* ------------------------------------------------- Payment logo strip */
.bbs-paylogos { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: center; }
.bbs-paylogos img {
    height: 42px; width: auto; max-width: 150px; object-fit: contain; padding: 9px 16px; border-radius: 12px;
    background: #fff; border: 1px solid var(--line);
    transition: transform .35s var(--ease-spring), box-shadow .35s;
}
.bbs-paylogos img:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }

/* --------------------------------------------- Plan comparison table */
.bbs-plans-wrap {
    overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--line);
    background: #fff; box-shadow: var(--shadow-sm);
}
.bbs-plans { width: 100%; min-width: 880px; border-collapse: collapse; font-size: 14.5px; }
.bbs-plans thead th {
    position: sticky; top: 0; z-index: 2; padding: 20px 16px; text-align: center; vertical-align: top;
    background: linear-gradient(150deg, var(--navy-800), var(--navy-600)); color: #fff;
}
.bbs-plans thead th:first-child { text-align: left; }
.bbs-plans__name { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--sky-300); }
.bbs-plans__amt { font-size: 26px; font-weight: 900; letter-spacing: -.02em; margin-top: 6px; }
.bbs-plans__amt .cur { font-size: 14px; vertical-align: super; margin-right: 1px; }
.bbs-plans__amt .per { font-size: 12.5px; font-weight: 600; color: rgba(214, 234, 252, .8); }
.bbs-plans__was { display: block; font-size: 12.5px; color: rgba(214, 234, 252, .62); text-decoration: line-through; }
.bbs-plans__hot {
    display: inline-block; margin-top: 8px; font-size: 10.5px; font-weight: 800; letter-spacing: .08em;
    text-transform: uppercase; padding: 4px 10px; border-radius: 999px; color: #10240a;
    background: linear-gradient(135deg, var(--lime), var(--lime-deep));
}
.bbs-plans tbody th {
    text-align: left; font-weight: 600; color: var(--ink); padding: 13px 16px;
    border-top: 1px solid var(--line); background: #fff;
}
.bbs-plans tbody td {
    text-align: center; padding: 13px 16px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 13.5px;
}
.bbs-plans tbody tr:hover th, .bbs-plans tbody tr:hover td { background: var(--surface-tint); }
.bbs-plans__group th {
    background: linear-gradient(100deg, rgba(20, 120, 200, .13), rgba(93, 199, 255, .1)) !important;
    font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--navy-700);
    padding: 12px 16px;
}
.bbs-yes { color: #1f9c4d; }
.bbs-no { color: #ccd6df; }

/* ------------------------------------------------------------- Forms */
.bbs-formcard {
    padding: clamp(24px, 3vw, 38px); border-radius: var(--radius-lg); background: #fff;
    border: 1px solid var(--line); box-shadow: var(--shadow);
}
.bbs-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.bbs-field { display: flex; flex-direction: column; gap: 7px; }
.bbs-field--full { grid-column: 1 / -1; }
.bbs-field label { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.bbs-field input, .bbs-field textarea {
    width: 100%; font-family: inherit; font-size: 15px; color: var(--ink);
    padding: 13px 15px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface-alt);
    transition: border-color .25s, box-shadow .25s, background .25s;
}
.bbs-field input::placeholder, .bbs-field textarea::placeholder { color: var(--ink-faint); }
.bbs-field input:focus, .bbs-field textarea:focus {
    outline: none; background: #fff; border-color: var(--navy-500);
    box-shadow: 0 0 0 4px rgba(20, 120, 200, .14);
}
.bbs-field textarea { resize: vertical; min-height: 130px; }

/* Contact detail rows */
.bbs-contactrow { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.bbs-contactrow:last-child { border-bottom: 0; }
.bbs-contactrow__ico {
    flex: none; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--navy-600), var(--navy-500)); color: #fff;
}
.bbs-contactrow b { display: block; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 3px; }
.bbs-contactrow a, .bbs-contactrow span { color: var(--ink); text-decoration: none; font-size: 15.5px; line-height: 1.55; }
.bbs-contactrow a:hover { color: var(--navy-600); }
.bbs-contactrow address { font-style: normal; font-size: 15.5px; line-height: 1.55; color: var(--ink); }


/* ------------------------------------------------- reCAPTCHA v3 badge */
/* The badge normally floats at bottom-right, which is exactly where the
   WhatsApp button and the back-to-top button sit. Rather than hide it, lift it
   clear of that stack - Google's own horizontal slide-out animation is driven
   by inline styles on `right`, so only `bottom` is overridden here and the
   animation still works. The attribution text under the Send button stays
   either way; it is harmless alongside a visible badge. */
.grecaptcha-badge {
    visibility: visible !important;
    bottom: 150px !important;
    z-index: 1035;
}
@media (max-width: 640px) {
    /* Floating buttons stack tighter on mobile. */
    .grecaptcha-badge { bottom: 120px !important; }
}


/* ------------------------------------------------------ Lightweight dialog */
/* Replaces SweetAlert on the contact form. SweetAlert + jQuery cost ~44 KB
   gzipped to show what amounts to one modal; this is a few hundred bytes and
   matches the site's own design language. */
.bbs-dialog {
    position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center;
    padding: 20px; background: rgba(4, 20, 40, .55); backdrop-filter: blur(3px);
    opacity: 0; transition: opacity .22s var(--ease-out);
}
.bbs-dialog.is-open { opacity: 1; }
.bbs-dialog__card {
    width: min(420px, 100%); background: #fff; border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg); padding: 30px 28px 24px; text-align: center;
    transform: translateY(12px) scale(.97);
    transition: transform .28s var(--ease-spring);
}
.bbs-dialog.is-open .bbs-dialog__card { transform: none; }
.bbs-dialog__ico {
    width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
    margin: 0 auto 16px; color: #fff;
}
.bbs-dialog__ico--success { background: linear-gradient(135deg, #34c759, #1f9c4d); }
.bbs-dialog__ico--error   { background: linear-gradient(135deg, #ff6b6b, #d63c3c); }
.bbs-dialog__ico--info    { background: linear-gradient(135deg, var(--navy-600), var(--navy-500)); }
.bbs-dialog h2 { font-size: 20px; margin: 0 0 8px; }
.bbs-dialog p  { font-size: 15px; line-height: 1.6; color: var(--ink-soft); margin: 0 0 22px; }
.bbs-dialog .bbs-btn { width: 100%; }

/* ------------------------------------------------------- Responsive */
@media (max-width: 991px) {
    .bbs-phero__inner { grid-template-columns: 1fr; }
    .bbs-phero__media { order: -1; max-width: 470px; margin-inline: auto; }
    .bbs-tiles { grid-template-columns: repeat(3, 1fr); }
    .bbs-market { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .bbs-tiles, .bbs-tiles--3 { grid-template-columns: repeat(2, 1fr); }
    .bbs-form { grid-template-columns: 1fr; }
}
