/* ==========================================================================
   Hotel Management ERP — "Front Desk / Occupancy Control" bespoke design
   Only the HERO + FEATURES sections are redesigned; everything is scoped
   under .ht-scope (plus the page-only .ht-header-bg on the navbar) so no
   other page is affected.
   ========================================================================== */
.ht-scope {
    --ht-ink: #0b2a2e;
    --ht: #0e7490;            /* jewel teal primary */
    --ht-2: #0f8ba3;
    --ht-3: #0b5563;          /* deep teal */
    --ht-gold: #c8901f;       /* champagne gold accent */
    --ht-gold-2: #e6b64b;
    --ht-soft: #e6f3f6;
    --ht-soft-2: #f3fafb;
    --ht-line: #dce9ec;
    --ht-muted: #567077;
    --ht-grad: linear-gradient(120deg, #0f8ba3 0%, #0e7490 55%, #0b5563 100%);
    --ht-grad-gold: linear-gradient(120deg, #e6b64b 0%, #c8901f 100%);
    color: #24444a;
}
.ht-scope section { overflow: hidden; }

/* page-only header background so the navbar blends into the hero */
.ht-header-bg {
    background:
        radial-gradient(1100px 320px at 86% 130%, #d3ecf1 0%, rgba(211,236,241,0) 70%),
        #f4fbfc;
}

/* ---- shared bits ---- */
.ht-kicker {
    display: inline-flex; align-items: center; gap: .5rem;
    font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
    color: var(--ht); background: var(--ht-soft);
    padding: .45rem .9rem; border-radius: 2rem; border: 1px solid var(--ht-line);
}
.ht-kicker.on-dark { color: #b9ecf5; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); }
.ht-h { font-weight: 800; letter-spacing: -.02em; color: var(--ht-ink); line-height: 1.12; }
.ht-grad-txt {
    background: var(--ht-grad); -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}
.ht-lead { color: var(--ht-muted); font-size: 1.075rem; line-height: 1.7; }

/* buttons */
.ht-btn {
    display: inline-flex; align-items: center; gap: .5rem; font-weight: 700;
    padding: .85rem 1.5rem; border-radius: .85rem; border: 0; cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
    text-decoration: none;
}
.ht-btn i { transition: transform .25s ease; }
.ht-btn:hover i { transform: translate(2px,-2px); }
.ht-btn-primary { background: var(--ht-grad); color: #fff; box-shadow: 0 .8rem 1.6rem rgba(14,116,144,.32); }
.ht-btn-primary:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 1.2rem 2.2rem rgba(14,116,144,.42); }
.ht-btn-ghost { background: #fff; color: var(--ht); border: 1.5px solid var(--ht-line); }
.ht-btn-ghost:hover { color: var(--ht); transform: translateY(-3px); border-color: var(--ht); box-shadow: 0 1rem 2rem rgba(14,116,144,.14); }

/* ==========================================================================
   HERO
   ========================================================================== */
.ht-hero {
    position: relative;
    background:
        radial-gradient(1100px 520px at 88% -8%, #cfeef3 0%, rgba(207,238,243,0) 60%),
        radial-gradient(900px 480px at 4% 112%, #fbf1db 0%, rgba(251,241,219,0) 55%),
        #f4fbfc;
}
.ht-hero::before {
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(14,116,144,.10) 1.4px, transparent 1.4px);
    background-size: 26px 26px; -webkit-mask-image: linear-gradient(180deg,#000,transparent 76%);
    mask-image: linear-gradient(180deg,#000,transparent 76%); opacity: .55;
}
.ht-hero .container { position: relative; z-index: 2; }
.ht-hero h1 { font-size: clamp(2.15rem, 4.4vw, 3.5rem); }
.ht-hero-trust { display: flex; flex-wrap: wrap; gap: 1.4rem 2rem; }
.ht-hero-trust .t { display: flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--ht-ink); font-size: .95rem; }
.ht-hero-trust .t i { color: var(--ht); font-size: 1.15rem; }

/* front-desk dashboard mock card */
.ht-dash-wrap { position: relative; }
.ht-dash {
    position: relative; z-index: 2; background: #fff; border-radius: 1.6rem;
    border: 1px solid var(--ht-line); box-shadow: 0 2.4rem 5rem rgba(11,42,46,.16);
    padding: 1.5rem 1.5rem 1.4rem;
}
.ht-dash__head { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.3rem; }
.ht-avatar {
    width: 3rem; height: 3rem; border-radius: .9rem; flex: none;
    display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800;
    background: var(--ht-grad); box-shadow: 0 .5rem 1rem rgba(14,116,144,.35);
}
.ht-dash__head h6 { margin: 0; font-weight: 800; color: var(--ht-ink); font-size: 1rem; }
.ht-dash__head span { font-size: .8rem; color: var(--ht-muted); }
.ht-pill-live {
    margin-left: auto; display: inline-flex; align-items: center; gap: .4rem;
    font-size: .72rem; font-weight: 800; color: var(--ht-3); background: var(--ht-soft);
    padding: .32rem .7rem; border-radius: 2rem;
}
.ht-pill-live .dot { width: .5rem; height: .5rem; border-radius: 50%; background: #12a594; box-shadow: 0 0 0 0 rgba(18,165,148,.6); animation: htpulse 1.7s infinite; }
@keyframes htpulse { 70% { box-shadow: 0 0 0 .5rem rgba(18,165,148,0); } 100% { box-shadow: 0 0 0 0 rgba(18,165,148,0); } }

/* occupancy ring + meta */
.ht-cover { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 1.2rem; }
.ht-ring {
    --p: 86; width: 7.8rem; height: 7.8rem; border-radius: 50%; flex: none; position: relative;
    background: conic-gradient(var(--ht) calc(var(--p) * 1%), #e4eef0 0);
}
.ht-ring::after {
    content: ""; position: absolute; inset: .8rem; background: #fff; border-radius: 50%;
    box-shadow: inset 0 0 0 1px var(--ht-line);
}
.ht-ring__c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 2; }
.ht-ring__c i { font-size: 1.05rem; color: var(--ht); line-height: 1; margin-bottom: .15rem; }
.ht-ring__c b { font-size: 1.6rem; font-weight: 800; color: var(--ht-ink); line-height: 1; }
.ht-ring__c small { font-size: .64rem; color: var(--ht-muted); margin-top: .2rem; }
.ht-cover-meta { flex: 1; display: flex; flex-direction: column; gap: .8rem; }
.ht-meta-top { display: flex; justify-content: space-between; font-size: .78rem; font-weight: 700; color: var(--ht-ink); margin-bottom: .35rem; }
.ht-meta-top span:last-child { color: var(--ht-muted); font-weight: 700; }
.ht-bar { height: .5rem; border-radius: 2rem; background: #e8eff1; overflow: hidden; }
.ht-bar > i { display: block; height: 100%; border-radius: 2rem; }
.ht-bar .adr { background: linear-gradient(90deg,#0f8ba3,#0e7490); width: 82%; }
.ht-bar .rev { background: var(--ht-grad-gold); width: 70%; }

/* room status grid */
.ht-rooms { border-top: 1px dashed var(--ht-line); padding-top: 1.1rem; margin-bottom: 1.1rem; }
.ht-rooms__t { display: flex; justify-content: space-between; align-items: center; margin-bottom: .8rem; flex-wrap: wrap; gap: .4rem; }
.ht-rooms__t h6 { margin: 0; font-size: .86rem; font-weight: 800; color: var(--ht-ink); }
.ht-legend { display: flex; gap: .8rem; }
.ht-legend span { display: inline-flex; align-items: center; gap: .3rem; font-size: .68rem; color: var(--ht-muted); font-weight: 600; }
.ht-legend .d { width: .55rem; height: .55rem; border-radius: 3px; }
.d.occ { background: var(--ht); } .d.free { background: #dbe7ea; } .d.clean { background: var(--ht-gold); }
.ht-grid { display: grid; grid-template-columns: repeat(9, 1fr); gap: .32rem; }
.ht-grid > i { aspect-ratio: 1; border-radius: 4px; }
.ht-grid > i.occ { background: var(--ht); } .ht-grid > i.free { background: #e5eef0; box-shadow: inset 0 0 0 1px var(--ht-line); }
.ht-grid > i.clean { background: var(--ht-gold); } .ht-grid > i.res { background: #a7d4de; }

/* arrivals */
.ht-arrivals { display: flex; flex-direction: column; gap: .55rem; }
.ht-arr { display: flex; align-items: center; gap: .7rem; }
.ht-arr .av { width: 2.1rem; height: 2.1rem; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 800; color: #fff; background: var(--ht-grad); }
.ht-arr b { display: block; font-size: .82rem; color: var(--ht-ink); line-height: 1.15; }
.ht-arr span.sub { font-size: .72rem; color: var(--ht-muted); }
.ht-arr .tag { margin-left: auto; font-size: .68rem; font-weight: 800; padding: .22rem .55rem; border-radius: 2rem; }
.ht-arr .tag.in { color: var(--ht-3); background: var(--ht-soft); }
.ht-arr .tag.pend { color: #a56a00; background: #fbf1db; }

/* floating badges */
.ht-badge {
    position: absolute; z-index: 3; background: #fff; border-radius: .9rem;
    box-shadow: 0 1rem 2.4rem rgba(11,42,46,.16); padding: .7rem .95rem;
    display: flex; align-items: center; gap: .6rem; border: 1px solid var(--ht-line);
    animation: htfloat 5s ease-in-out infinite;
}
.ht-badge .ic { width: 2.1rem; height: 2.1rem; border-radius: .6rem; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.05rem; flex: none; }
.ht-badge .ic--book { background: var(--ht-grad-gold); }
.ht-badge .ic--ready { background: var(--ht-grad); }
.ht-badge b { display: block; font-size: .82rem; color: var(--ht-ink); line-height: 1.1; }
.ht-badge span { font-size: .72rem; color: var(--ht-muted); }
.ht-badge--tl { top: -2.4rem; left: -1.6rem; }
.ht-badge--br { bottom: -1.9rem; right: -1.6rem; animation-delay: 1.4s; }
@keyframes htfloat { 50% { transform: translateY(-10px); } }

/* ==========================================================================
   FEATURES — bento grid (12 cards + 2×2 promo hero)
   ========================================================================== */
.ht-head { max-width: 760px; margin: 0 auto 3.2rem; text-align: center; }
.ht-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.ht-head p { margin-top: 1rem; }

.ht-bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.ht-bento__hero {
    grid-column: span 2; grid-row: span 2; border-radius: 1.4rem; overflow: hidden; position: relative;
    background: var(--ht-grad); color: #fff; padding: 2.2rem 2rem; display: flex; flex-direction: column;
}
.ht-bento__hero::after { content: ""; position: absolute; top: -25%; right: -20%; width: 60%; height: 70%; background: radial-gradient(circle, rgba(230,182,75,.4), transparent 65%); }
.ht-bento__hero .ht-kicker { align-self: flex-start; position: relative; z-index: 2; }
.ht-bento__hero h3 { color: #fff; font-weight: 800; font-size: 1.7rem; line-height: 1.2; position: relative; z-index: 2; }
.ht-bento__hero p { color: rgba(255,255,255,.85); font-size: .98rem; margin-bottom: 1.2rem; position: relative; z-index: 2; }
.ht-bento__hero img { width: 100%; border-radius: 1rem; margin-top: auto; box-shadow: 0 1.4rem 2.6rem rgba(0,0,0,.24); position: relative; z-index: 2; }
.ht-feat {
    background: #fff; border: 1px solid var(--ht-line); border-radius: 1.2rem; padding: 1.4rem;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; height: 100%;
}
.ht-feat:hover { transform: translateY(-.5rem); box-shadow: 0 1.6rem 3rem rgba(11,42,46,.12); border-color: transparent; }
.ht-ico {
    width: 3rem; height: 3rem; border-radius: .9rem; display: flex; align-items: center; justify-content: center; margin-bottom: .9rem;
}
.ht-ico img, .ht-ico svg { width: 1.6rem; height: 1.6rem; }
/* icons are teal monochrome — recolor to each chip's accent */
.ht-ico svg [fill]:not([fill="none"]) { fill: currentColor; }
.ht-ico svg [stroke]:not([stroke="none"]) { stroke: currentColor; }
.ht-feat h3 { font-size: 1.05rem; font-weight: 800; color: var(--ht-ink); margin-bottom: .45rem; }
.ht-feat p { font-size: .86rem; color: var(--ht-muted); margin-bottom: .8rem; line-height: 1.5; }
.ht-ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .4rem; }
.ht-ticks li { position: relative; padding-left: 1.4rem; font-size: .82rem; color: #3a565c; line-height: 1.4; }
.ht-ticks li::before {
    content: "\2713"; position: absolute; left: 0; top: 0; font-size: .68rem; font-weight: 700; color: var(--ht);
    width: 1.05rem; height: 1.05rem; border-radius: 50%; background: var(--ht-soft);
    display: flex; align-items: center; justify-content: center;
}
/* icon color chips */
.ht-c1 { background: #e3f4f7; color: #0e7490; } .ht-c2 { background: #fbf1db; color: #c8901f; }
.ht-c3 { background: #e7f6f0; color: #0e9c6e; } .ht-c4 { background: #eae9fb; color: #6d5bd0; }
.ht-c5 { background: #fdeaf0; color: #d6407e; } .ht-c6 { background: #e7f1ff; color: #2b7fff; }
.ht-c7 { background: #fdeede; color: #d9730d; } .ht-c8 { background: #e6f6f7; color: #0f9aa3; }
.ht-c9 { background: #eef3e6; color: #6a9a1f; } .ht-c10 { background: #fcece9; color: #e05242; }
.ht-c11 { background: #e9eefb; color: #3b5bdb; } .ht-c12 { background: #f0eafb; color: #8b5cf6; }

/* ==========================================================================
   CHANNEL MANAGER — Channex & Beds24 integration
   ========================================================================== */
.ht-channel { background: linear-gradient(180deg, var(--ht-soft-2), #fff); }

/* channel-sync card mock (left) */
.ht-sync {
    background: #fff; border: 1px solid var(--ht-line); border-radius: 1.5rem;
    box-shadow: 0 1.8rem 4rem rgba(11,42,46,.12); padding: 1.5rem;
}
.ht-sync__head { display: flex; align-items: center; gap: .7rem; margin-bottom: 1.2rem; }
.ht-sync__head .ic { width: 2.6rem; height: 2.6rem; border-radius: .7rem; background: var(--ht-grad); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex: none; }
.ht-sync__head h6 { margin: 0; font-weight: 800; color: var(--ht-ink); font-size: 1rem; }
.ht-sync__head span { font-size: .78rem; color: var(--ht-muted); }
.ht-sync__head .live { margin-left: auto; display: inline-flex; align-items: center; gap: .4rem; font-size: .72rem; font-weight: 800; color: var(--ht-3); background: var(--ht-soft); padding: .32rem .7rem; border-radius: 2rem; }
.ht-sync__head .live .dot { width: .5rem; height: .5rem; border-radius: 50%; background: #12a594; box-shadow: 0 0 0 0 rgba(18,165,148,.6); animation: htpulse 1.7s infinite; }
.ht-crow { display: flex; align-items: center; gap: .8rem; padding: .8rem 0; border-bottom: 1px solid var(--ht-line); }
.ht-crow:last-of-type { border-bottom: 0; }
.ht-crow .logo { width: 2.3rem; height: 2.3rem; border-radius: .6rem; flex: none; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .82rem; color: #fff; }
.ht-crow h6 { margin: 0; font-size: .9rem; font-weight: 700; color: var(--ht-ink); }
.ht-crow span.rooms { font-size: .74rem; color: var(--ht-muted); }
.ht-crow .st { margin-left: auto; display: inline-flex; align-items: center; gap: .35rem; font-size: .72rem; font-weight: 800; padding: .28rem .6rem; border-radius: 2rem; }
.ht-crow .st.ok { color: var(--ht-3); background: var(--ht-soft); }
.ht-crow .st.up { color: #a56a00; background: #fbf1db; }
.ht-crow .st i { font-size: .8rem; }
.ht-crow .st.up i { animation: htspin 1.4s linear infinite; }
@keyframes htspin { to { transform: rotate(360deg); } }
.ht-sync__foot { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px dashed var(--ht-line); }
.ht-sync__foot .lbl { font-size: .74rem; color: var(--ht-muted); font-weight: 600; }
.ht-pw { display: inline-flex; align-items: center; gap: .4rem; font-size: .76rem; font-weight: 800; color: var(--ht-ink); background: var(--ht-soft-2); border: 1px solid var(--ht-line); padding: .3rem .7rem; border-radius: 2rem; }
.ht-pw i { color: var(--ht); }

/* brand logo colors for OTA rows */
.lg-booking { background: #003580; } .lg-airbnb { background: #ff5a5f; } .lg-expedia { background: #ffc72c; color: #1a1a3d !important; }
.lg-agoda { background: #5b4eff; } .lg-mmt { background: #e73c33; }

/* partner cards (right) */
.ht-cm { display: flex; gap: 1rem; background: #fff; border: 1px solid var(--ht-line); border-radius: 1.3rem; padding: 1.4rem; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.ht-cm + .ht-cm { margin-top: 1.1rem; }
.ht-cm:hover { transform: translateY(-.35rem); box-shadow: 0 1.4rem 3rem rgba(11,42,46,.12); border-color: transparent; }
.ht-cm__logo { flex: none; width: 3.2rem; height: 3.2rem; border-radius: .9rem; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 1rem; letter-spacing: -.02em; }
.ht-cm__logo.cx { background: var(--ht-grad); box-shadow: 0 .6rem 1.2rem rgba(14,116,144,.3); }
.ht-cm__logo.b24 { background: var(--ht-grad-gold); box-shadow: 0 .6rem 1.2rem rgba(200,144,31,.3); }
.ht-cm__top { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .3rem; }
.ht-cm__top h3 { margin: 0; font-size: 1.12rem; font-weight: 800; color: var(--ht-ink); }
.ht-cm__badge { font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--ht-3); background: var(--ht-soft); padding: .2rem .55rem; border-radius: 2rem; }
.ht-cm p { font-size: .86rem; color: var(--ht-muted); margin: 0 0 .7rem; line-height: 1.5; }
.ht-cm .ht-ticks li { font-size: .8rem; }

/* OTA chip strip */
.ht-otas { margin-top: 2.6rem; text-align: center; }
.ht-otas .lbl { display: block; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ht-muted); margin-bottom: 1.1rem; }
.ht-otas__list { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; }
.ht-chip { display: inline-flex; align-items: center; gap: .45rem; background: #fff; border: 1px solid var(--ht-line); border-radius: 2rem; padding: .55rem 1.1rem; font-weight: 700; font-size: .9rem; color: var(--ht-ink); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.ht-chip:hover { transform: translateY(-.2rem); box-shadow: 0 .8rem 1.8rem rgba(11,42,46,.1); border-color: var(--ht); }
.ht-chip .dot { width: .55rem; height: .55rem; border-radius: 50%; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1199px) {
    .ht-bento { grid-template-columns: repeat(3, 1fr); }
    .ht-bento__hero { grid-column: 1 / -1; grid-row: auto; flex-direction: row; align-items: center; gap: 1.6rem; }
    .ht-bento__hero img { margin-top: 0; width: 42%; }
}
@media (max-width: 767px) {
    .ht-bento { grid-template-columns: 1fr 1fr; }
    .ht-badge--tl { left: .5rem; } .ht-badge--br { right: .5rem; }
}
@media (max-width: 575px) {
    .ht-bento { grid-template-columns: 1fr; }
    .ht-bento__hero { flex-direction: column; } .ht-bento__hero img { width: 100%; }
    .ht-dash { margin-top: 1rem; }
    .ht-badge { display: none; }
}

/* legacy contact textarea marker kept for the untouched lower sections */
.gen-1 { height: 150px; }
