
:root{
  --dbx-bg:#06111d;
  --dbx-hero-1:#07111c;
  --dbx-hero-2:#0b2033;
  --dbx-hero-3:#10314a;
  --dbx-card:#ffffff;
  --dbx-card-soft:#f6f9fc;
  --dbx-text:#eff6fb;
  --dbx-text-soft:rgba(255,255,255,.86);
  --dbx-ink:#122238;
  --dbx-ink-soft:#60738a;
  --dbx-line:#dfe8f1;
  --dbx-line-dark:rgba(255,255,255,.12);
  --dbx-gold:#f4c96f;
  --dbx-orange:#ff9447;
  --dbx-shadow:0 22px 60px rgba(12,23,37,.14);
  --dbx-radius:24px;
}
.dbx-shell,.dbx-shell *,.dbx-modal,.dbx-modal *,.dbx-quiz,.dbx-quiz *{box-sizing:border-box}
html{scroll-behavior:smooth}
.dbx-shell{font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;color:var(--dbx-ink);width:min(1220px,calc(100% - 18px));max-width:100%;margin:14px auto 34px;overflow-x:clip}
.dbx-shell button,.dbx-shell input,.dbx-modal button,.dbx-quiz button{font:inherit}
.dbx-shell a,.dbx-modal a,.dbx-quiz a{text-decoration:none}
.dbx-stage{border-radius:28px;overflow:hidden;background:var(--dbx-card);border:1px solid #dbe6ef;box-shadow:var(--dbx-shadow)}
.dbx-hero{position:relative;padding:24px 22px 20px;background:radial-gradient(circle at top right,rgba(244,201,111,.16),transparent 36%),linear-gradient(135deg,var(--dbx-hero-1) 0%,var(--dbx-hero-2) 48%,var(--dbx-hero-3) 100%);color:#fff}
.dbx-hero::after{content:"";position:absolute;inset:0;background:url('hero-dubai.svg') center/cover no-repeat;opacity:.38;pointer-events:none}
.dbx-hero__inner{position:relative;z-index:2;max-width:920px}
.dbx-kicker{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:999px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.08);backdrop-filter:blur(10px);font-size:12px;font-weight:800;letter-spacing:.16em;text-transform:uppercase;color:#ffe8b2}
.dbx-title{margin:14px 0 8px;font-size:clamp(34px,5.6vw,64px);line-height:.96;font-weight:900;color:#fff;text-shadow:0 12px 28px rgba(0,0,0,.28)}
.dbx-subtitle{max-width:760px;margin:0;font-size:16px;line-height:1.65;color:var(--dbx-text-soft)}
.dbx-actionbar{position:relative;z-index:2;display:flex;flex-wrap:wrap;gap:12px;margin-top:18px}
.dbx-btn{border:none;border-radius:999px;padding:14px 20px;font-weight:800;cursor:pointer;transition:.22s ease;display:inline-flex;align-items:center;justify-content:center;gap:10px}
.dbx-btn--primary{background:linear-gradient(135deg,var(--dbx-gold),var(--dbx-orange));color:#0f1722;box-shadow:0 12px 30px rgba(255,148,71,.24)}
.dbx-btn--ghost{background:rgba(255,255,255,.08);color:#fff;border:1px solid rgba(255,255,255,.16);backdrop-filter:blur(8px)}
.dbx-btn:hover{transform:translateY(-1px)}
.dbx-cats-inline{position:relative;z-index:2;margin-top:18px;display:flex;flex-wrap:wrap;gap:10px;align-items:flex-start;max-width:980px}
.dbx-cat-pill{flex:0 0 auto;max-width:100%;border:1px solid rgba(255,255,255,.14);background:rgba(5,14,24,.44);color:#fff;padding:10px 14px;border-radius:999px;display:inline-flex;align-items:center;gap:8px;font-weight:800;font-size:13px;line-height:1;cursor:pointer;white-space:nowrap;box-shadow:inset 0 1px 0 rgba(255,255,255,.03)}
.dbx-cat-pill span:last-child{overflow:hidden;text-overflow:ellipsis}
.dbx-cat-pill.is-active{background:linear-gradient(135deg,var(--dbx-gold),var(--dbx-orange));color:#111827;border-color:transparent}
.dbx-more-cats{margin-top:10px;position:relative;z-index:2;color:#fff;font-size:13px;opacity:.92}
.dbx-more-cats button{background:none;border:none;color:#fff;font-weight:800;cursor:pointer;padding:0}
.dbx-main{padding:22px}
.dbx-toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:16px}
.dbx-toolbar__eyebrow{font-size:12px;text-transform:uppercase;letter-spacing:.16em;font-weight:800;color:#d6a84d}
.dbx-toolbar__title{margin:6px 0 8px;font-size:clamp(28px,3.6vw,40px);line-height:1.06;color:#13233a}
.dbx-toolbar__note{margin:0;color:#627690;max-width:720px;line-height:1.65}
.dbx-utility{display:flex;gap:10px;flex-wrap:wrap}
.dbx-filter-current{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}
.dbx-state{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:999px;background:#f8fbfd;border:1px solid #dbe7f0;color:#2d4661;font-size:13px;font-weight:700}
.dbx-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.dbx-card{display:flex;flex-direction:column;min-height:100%;background:#fff;border:1px solid #e5edf5;border-radius:22px;overflow:hidden;box-shadow:0 12px 30px rgba(14,30,50,.08)}
.dbx-card__media{aspect-ratio:16/10;background:#dbe9f4;position:relative;overflow:hidden}
.dbx-card__media img{width:100%;height:100%;object-fit:cover;display:block}
.dbx-card__body{display:flex;flex-direction:column;gap:12px;padding:16px;flex:1}
.dbx-card__category{display:inline-flex;align-items:center;gap:8px;align-self:flex-start;padding:7px 10px;border-radius:999px;background:#eff8fc;color:#1a5064;font-size:12px;font-weight:800;max-width:100%}
.dbx-card__title{margin:0;min-height:3.2em;font-size:18px;line-height:1.35;color:#132238;font-weight:800;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.dbx-card__meta{display:flex;gap:10px;flex-wrap:wrap;font-size:13px;color:#5c6f85;font-weight:700}
.dbx-card__price{color:#ff8a3d;font-weight:900}
.dbx-card__chips{display:flex;gap:8px;flex-wrap:wrap}
.dbx-chip{display:inline-flex;align-items:center;padding:7px 10px;border-radius:999px;background:#f3f7fb;color:#35506b;font-size:12px;font-weight:700;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dbx-card__desc{margin:0;color:#687b92;line-height:1.6;font-size:14px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.dbx-card__footer{margin-top:auto;padding-top:4px}
.dbx-card__btn{width:100%;border:none;border-radius:16px;padding:14px 16px;font-weight:900;cursor:pointer;background:linear-gradient(135deg,var(--dbx-gold),var(--dbx-orange));color:#111827;box-shadow:0 10px 24px rgba(255,148,71,.18)}
.dbx-load{display:flex;justify-content:center;padding-top:20px}
.dbx-skeleton{height:355px;border-radius:22px;background:linear-gradient(90deg,#eef4f9,#f7fafc,#eef4f9);background-size:200% 100%;animation:dbxPulse 1.2s infinite}
@keyframes dbxPulse{0%{background-position:200% 0}100%{background-position:-200% 0}}
.dbx-empty{grid-column:1/-1;padding:28px;border:1px dashed #d7e4ef;border-radius:22px;background:#fbfdff;color:#5f738b;text-align:center}

.dbx-modal{position:fixed;inset:0;background:rgba(4,11,18,.72);backdrop-filter:blur(4px);display:none;align-items:center;justify-content:center;padding:20px;z-index:9999}
.dbx-modal.is-open{display:flex}
.dbx-modal__panel{width:min(860px,100%);max-height:min(90vh,980px);overflow:auto;border-radius:26px;background:#0f1e2c;box-shadow:0 24px 60px rgba(0,0,0,.36);position:relative}
.dbx-modal__close{position:absolute;top:14px;right:14px;z-index:4;width:42px;height:42px;border-radius:50%;border:none;background:rgba(255,255,255,.12);color:#fff;font-size:26px;cursor:pointer}
.dbx-detail__hero{position:relative;aspect-ratio:16/9;background:#102435}
.dbx-detail__hero img{width:100%;height:100%;object-fit:cover;display:block}
.dbx-detail__overlay{position:absolute;inset:auto 0 0 0;padding:24px;background:linear-gradient(180deg,rgba(7,12,18,0) 0%,rgba(7,12,18,.82) 48%,rgba(7,12,18,.95) 100%)}
.dbx-detail__cats{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}
.dbx-detail__cat{display:inline-flex;align-items:center;gap:8px;padding:8px 11px;border-radius:999px;background:rgba(255,255,255,.12);color:#fff;font-size:12px;font-weight:800}
.dbx-detail__title{margin:0;font-size:clamp(24px,4vw,38px);line-height:1.08;font-weight:900;color:#fff;text-shadow:0 12px 28px rgba(0,0,0,.3)}
.dbx-detail__body{padding:22px;background:#0f1e2c}
.dbx-detail__stats{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:16px}
.dbx-detail__stat{display:inline-flex;align-items:center;padding:8px 12px;border-radius:999px;background:#15283a;color:#dbe9f5;font-size:13px;font-weight:800}
.dbx-detail__text{margin:0;color:#d9e6f1;line-height:1.72;font-size:15px}
.dbx-detail__chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.dbx-detail__cta{display:flex;justify-content:center;margin-top:22px}
.dbx-detail__link{min-width:240px;padding:16px 24px;border-radius:16px;text-align:center;font-weight:900;background:linear-gradient(135deg,var(--dbx-gold),var(--dbx-orange));color:#111827;box-shadow:0 12px 28px rgba(255,148,71,.18)}

.dbx-quiz{position:fixed;inset:0;background:rgba(4,11,18,.72);backdrop-filter:blur(4px);display:none;align-items:center;justify-content:center;padding:20px;z-index:9998}
.dbx-quiz.is-open{display:flex}
.dbx-quiz__panel{width:min(700px,100%);max-height:min(90vh,900px);overflow:auto;border-radius:26px;background:linear-gradient(180deg,#07111c 0%,#0b2135 100%);padding:24px 24px 22px;position:relative;box-shadow:0 24px 60px rgba(0,0,0,.36)}
.dbx-quiz__close{position:absolute;top:14px;right:14px;width:42px;height:42px;border-radius:50%;border:none;background:rgba(255,255,255,.12);color:#fff;font-size:26px;cursor:pointer}
.dbx-quiz__step{font-size:12px;text-transform:uppercase;letter-spacing:.16em;font-weight:800;color:#f0c66e;margin-bottom:10px}
.dbx-quiz__title{margin:0 0 8px;font-size:clamp(28px,4vw,40px);line-height:1.08;font-weight:900;color:#fff}
.dbx-quiz__help{margin:0 0 20px;color:rgba(255,255,255,.82);line-height:1.65}
.dbx-quiz__options{display:grid;gap:12px}
.dbx-quiz__option{width:100%;border:1px solid rgba(255,255,255,.10);border-radius:20px;background:rgba(255,255,255,.06);padding:16px;display:flex;align-items:flex-start;gap:14px;color:#fff;cursor:pointer;text-align:left}
.dbx-quiz__option:hover{border-color:rgba(244,201,111,.44);transform:translateY(-1px)}
.dbx-quiz__emoji{font-size:28px;line-height:1}
.dbx-quiz__label{display:block;font-size:17px;font-weight:900;margin-bottom:5px;color:#fff}
.dbx-quiz__hint{display:block;color:rgba(255,255,255,.78);line-height:1.55}
.dbx-summary{margin-top:18px;padding-top:18px;border-top:1px solid rgba(255,255,255,.1)}
.dbx-summary__label{font-size:12px;text-transform:uppercase;letter-spacing:.16em;font-weight:800;color:#f0c66e;margin-bottom:10px}
.dbx-summary__chips{display:flex;gap:8px;flex-wrap:wrap}
.dbx-summary__chip{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:999px;background:rgba(255,255,255,.08);color:#fff;font-size:13px;font-weight:700}

@media (max-width: 1100px){
  .dbx-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width: 820px){
  .dbx-shell{width:min(100%,calc(100% - 10px));margin:8px auto 24px}
  .dbx-stage{border-radius:22px}
  .dbx-main{padding:18px}
  .dbx-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
  .dbx-card__body{padding:14px}
  .dbx-cats-inline{max-width:none}
}
@media (max-width: 640px){
  .dbx-hero{padding:18px 16px 16px}
  .dbx-title{font-size:clamp(30px,11vw,44px)}
  .dbx-subtitle{font-size:14px;line-height:1.6}
  .dbx-actionbar{gap:10px}
  .dbx-btn{width:100%;padding:14px 18px}
  .dbx-cats-inline{display:grid;grid-template-columns:1fr 1fr;gap:8px}
  .dbx-cat-pill{padding:10px 12px;font-size:12px;justify-content:flex-start;min-width:0;white-space:normal;line-height:1.25;border-radius:16px}
  .dbx-cat-pill span:last-child{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
  .dbx-more-cats{margin-top:8px}
  .dbx-toolbar{align-items:flex-start}
  .dbx-toolbar__title{font-size:34px}
  .dbx-toolbar__note{font-size:14px}
  .dbx-grid{grid-template-columns:1fr}
  .dbx-card{border-radius:18px}
  .dbx-card__media{aspect-ratio:16/9}
  .dbx-card__title{font-size:17px;min-height:auto}
  .dbx-card__desc{-webkit-line-clamp:2}
  .dbx-modal,.dbx-quiz{padding:10px}
  .dbx-modal__panel,.dbx-quiz__panel{border-radius:20px}
  .dbx-detail__overlay{padding:18px}
  .dbx-detail__body{padding:18px}
  .dbx-detail__link{width:100%;min-width:0}
}


/* Category visibility fix */
.dbx-hero__inner{
    max-width:none !important;
    width:100%;
    padding-right:8px;
}
.dbx-cats-inline{
    max-width:none !important;
    width:100%;
    display:flex !important;
    flex-wrap:wrap !important;
    overflow:visible !important;
    gap:10px !important;
}
.dbx-cat-pill{
    white-space:normal !important;
    line-height:1.2;
}
.dbx-cat-pill span:last-child{
    overflow:visible !important;
    text-overflow:unset !important;
    white-space:normal !important;
}
.dbx-more-cats{
    display:none !important;
}
@media (max-width: 640px){
    .dbx-cats-inline{
        display:grid !important;
        grid-template-columns:1fr 1fr !important;
        gap:8px !important;
    }
}


/* Final title color fix */
.dbx-title,
.dbx-shell .dbx-title,
.dbx-shell h2.dbx-title,
.dbx-stage .dbx-title{
    color:#ffffff !important;
    -webkit-text-fill-color:#ffffff !important;
    text-shadow:0 10px 30px rgba(0,0,0,.34);
}

.dbx-detail__title,
.dbx-shell .dbx-detail__title,
.dbx-shell h3.dbx-detail__title,
.dbx-modal .dbx-detail__title{
    color:#ffffff !important;
    -webkit-text-fill-color:#ffffff !important;
    text-shadow:0 10px 30px rgba(0,0,0,.34);
}

.dbx-title *,
.dbx-detail__title *{
    color:inherit !important;
    -webkit-text-fill-color:inherit !important;
}

/* Embedded app hard fix: no iframe positioning, no desktop side scroll */
.dbx-shell,
.dbx-stage,
.dbx-main,
.dbx-hero,
.dbx-grid,
.dbx-card,
.dbx-toolbar,
.dbx-cats-inline,
.dbx-filter-current{
    max-width:100% !important;
}

.dbx-shell,
.dbx-stage,
.dbx-main{
    overflow-x:clip !important;
}

.dbx-cat-pill,
.dbx-chip,
.dbx-state,
.dbx-detail__stat,
.dbx-detail__cat,
.dbx-summary__chip{
    min-width:0 !important;
    max-width:100% !important;
}

.dbx-modal,
.dbx-quiz{
    position:fixed !important;
    inset:0 !important;
    width:100vw !important;
    height:100dvh !important;
    min-height:100dvh !important;
    max-width:none !important;
    margin:0 !important;
    padding:20px !important;
    display:none !important;
    align-items:center !important;
    justify-content:center !important;
    overflow-x:hidden !important;
    overflow-y:auto !important;
    transform:none !important;
    z-index:2147483000 !important;
}

.dbx-modal.is-open,
.dbx-quiz.is-open{
    display:flex !important;
}

.dbx-modal__panel,
.dbx-quiz__panel{
    position:relative !important;
    top:auto !important;
    right:auto !important;
    bottom:auto !important;
    left:auto !important;
    transform:none !important;
    margin:auto !important;
    width:min(860px,calc(100vw - 40px)) !important;
    max-width:calc(100vw - 40px) !important;
    max-height:calc(100dvh - 40px) !important;
    overflow:auto !important;
    -webkit-overflow-scrolling:touch !important;
}

.dbx-quiz__panel{
    width:min(700px,calc(100vw - 40px)) !important;
}

.dbx-modal__close,
.dbx-quiz__close{
    position:absolute !important;
    top:14px !important;
    right:14px !important;
    left:auto !important;
    bottom:auto !important;
    transform:none !important;
    z-index:5 !important;
}

html.dbx-modal-lock,
body.dbx-modal-lock{
    overflow:hidden !important;
}

@media (max-width:640px){
    .dbx-modal,
    .dbx-quiz{
        align-items:flex-start !important;
        padding:12px !important;
        padding-top:max(12px,env(safe-area-inset-top)) !important;
    }
    .dbx-modal__panel,
    .dbx-quiz__panel{
        width:calc(100vw - 24px) !important;
        max-width:calc(100vw - 24px) !important;
        max-height:calc(100dvh - 24px) !important;
        border-radius:20px !important;
    }
}
