

body:has(#carbi-premium-home-v3) {
  margin: 0 !important;
  overflow: hidden !important;
  background: #eaf5ff !important;
}

#carbi-premium-home-v3,
#carbi-premium-home-v3 * {
  box-sizing: border-box;
}

#carbi-premium-home-v3 {
  position: fixed;
  inset: 0;
  z-index: 10000;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding:
    max(14px, env(safe-area-inset-top))
    14px
    calc(
      120px +
      env(safe-area-inset-bottom)
    );
  color: #092b61;
  background:
    radial-gradient(
      circle at 15% 4%,
      rgba(255,255,255,.95),
      transparent 28%
    ),
    linear-gradient(
      180deg,
      #58bcff 0,
      #dff3ff 270px,
      #eef8ff 100%
    );
  font-family:
    Inter,
    ui-rounded,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  visibility: visible !important;
}

.cph-sky {
  width: min(980px, 100%);
  margin: 0 auto;
}

.cph-hero {
  min-height: 180px;
  display: grid;
  grid-template-columns:
    230px 1fr 145px;
  align-items: center;
  gap: 18px;
}

.cph-robot {
  position: relative;
  width: 205px;
  height: 170px;
  margin: 0 auto;
}

.cph-robot-head {
  position: absolute;
  left: 48px;
  top: 9px;
  width: 125px;
  height: 93px;
  border: 12px solid #f7fbff;
  border-radius: 48px;
  background:
    radial-gradient(
      circle at 50% 40%,
      #224a82,
      #061d46 70%
    );
  box-shadow:
    0 13px 28px rgba(11,62,129,.24);
}

.cph-eye {
  position: absolute;
  top: 27px;
  width: 17px;
  height: 27px;
  border-radius: 50%;
  background: #14eaff;
  box-shadow:
    0 0 16px #0be8ff;
}

.cph-eye-left {
  left: 29px;
}

.cph-eye-right {
  right: 29px;
}

.cph-smile {
  position: absolute;
  left: 43px;
  bottom: 19px;
  width: 30px;
  height: 14px;
  border-bottom:
    5px solid #19e8ff;
  border-radius: 50%;
}

.cph-robot-body {
  position: absolute;
  left: 67px;
  top: 94px;
  width: 88px;
  height: 70px;
  border-radius:
    24px 24px 35px 35px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background:
    linear-gradient(
      145deg,
      #f9fcff,
      #bddcf7
    );
  box-shadow:
    0 12px 25px rgba(20,75,135,.18);
}

.cph-robot-body span {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    linear-gradient(
      145deg,
      #0088ff,
      #2556e4
    );
  font-size: 23px;
  font-weight: 900;
}

.cph-robot-arm {
  position: absolute;
  left: 3px;
  top: 46px;
  transform:
    rotate(-18deg);
  font-size: 58px;
  filter:
    drop-shadow(
      0 8px 10px
      rgba(9,59,126,.18)
    );
}

.cph-greeting h1 {
  margin: 0;
  color: #092764;
  font-size:
    clamp(35px, 6vw, 64px);
  line-height: .98;
  letter-spacing: -.045em;
}

.cph-greeting p {
  margin: 12px 0 2px;
  font-size:
    clamp(18px, 3vw, 29px);
}

.cph-greeting strong {
  font-size:
    clamp(18px, 3vw, 28px);
}

.cph-account-button {
  min-height: 94px;
  padding: 13px;
  border:
    2px solid rgba(255,255,255,.9);
  border-radius: 29px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  color: #092764;
  background:
    rgba(255,255,255,.93);
  box-shadow:
    0 14px 30px rgba(27,94,163,.15);
  font: inherit;
  cursor: pointer;
}

.cph-account-button span {
  font-size: 37px;
}

.cph-account-button strong {
  text-align: left;
  font-size: 20px;
  line-height: 1.08;
}

.cph-quick-actions {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0,1fr));
  gap: 18px;
}

.cph-quick-card {
  min-height: 130px;
  padding: 18px;
  border:
    3px solid #2180ef;
  border-radius: 28px;
  display: grid;
  grid-template-columns:
    100px 1fr 25px;
  align-items: center;
  gap: 12px;
  color: #092764;
  text-align: left;
  background:
    rgba(255,255,255,.92);
  box-shadow:
    0 12px 27px rgba(15,89,171,.12);
  font: inherit;
  cursor: pointer;
}

.cph-quick-card:nth-child(2) {
  border-color: #c9dcf2;
}

.cph-quick-icon {
  width: 100px;
  height: 95px;
  border-radius: 25px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(
      145deg,
      #eaf6ff,
      #ffffff
    );
  font-size: 62px;
}

.cph-quick-card strong {
  display: block;
  font-size:
    clamp(20px, 3vw, 31px);
}

.cph-quick-card small {
  display: block;
  margin-top: 6px;
  font-size:
    clamp(13px, 2vw, 20px);
  line-height: 1.28;
}

.cph-quick-card b {
  color: #0871df;
  font-size: 52px;
  font-weight: 500;
}

.cph-emergency {
  width: 100%;
  min-height: 116px;
  margin: 24px 0 25px;
  padding: 17px 35px;
  border:
    3px solid #ffaaa8;
  border-radius: 28px;
  display: grid;
  grid-template-columns:
    90px 1fr 30px;
  align-items: center;
  gap: 17px;
  color: #9e1111;
  text-align: left;
  background:
    linear-gradient(
      135deg,
      #fff0f0,
      #fff8f8
    );
  font: inherit;
  cursor: pointer;
}

.cph-emergency-icon {
  width: 76px;
  height: 76px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background:
    linear-gradient(
      145deg,
      #ff211d,
      #c40000
    );
  box-shadow:
    0 9px 18px rgba(213,0,0,.25);
  font-size: 22px;
  font-weight: 900;
}

.cph-emergency strong {
  display: block;
  font-size:
    clamp(22px, 3.7vw, 36px);
}

.cph-emergency small {
  display: block;
  margin-top: 5px;
  color: #502626;
  font-size:
    clamp(14px, 2.3vw, 22px);
}

.cph-emergency b {
  font-size: 52px;
}

.cph-help-section h2 {
  margin: 0 0 25px;
  padding: 20px 15px;
  border-radius: 27px;
  color: #ffffff;
  text-align: center;
  background:
    linear-gradient(
      135deg,
      #0787fa,
      #1159e7
    );
  box-shadow:
    0 14px 26px rgba(11,103,225,.25);
  font-size:
    clamp(22px, 4vw, 36px);
}

.cph-category-grid {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0,1fr));
  gap: 19px;
}

.cph-category {
  min-height: 240px;
  padding: 14px 10px 16px;
  border:
    2px solid rgba(255,255,255,.8);
  border-radius: 27px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  color: #101727;
  text-align: center;
  box-shadow:
    0 15px 34px rgba(32,75,132,.14);
  font: inherit;
  overflow: hidden;
  cursor: pointer;
}

.cph-category:active,
.cph-quick-card:active,
.cph-emergency:active,
.cph-account-button:active {
  transform: scale(.98);
}

.cph-category-art {
  min-height: 117px;
  display: grid;
  place-items: center;
  font-size:
    clamp(62px, 10vw, 104px);
  filter:
    drop-shadow(
      0 11px 9px
      rgba(18,44,83,.17)
    );
}

.cph-category strong {
  font-size:
    clamp(18px, 3vw, 29px);
  line-height: 1.02;
}

.cph-category small {
  margin-top: 8px;
  font-size:
    clamp(13px, 2vw, 20px);
}

.cph-category-vision {
  background:
    linear-gradient(
      180deg,
      #a967ff,
      #f7e9ff 72%
    );
}

.cph-category-builder {
  background:
    linear-gradient(
      180deg,
      #3ee186,
      #ecfff4 72%
    );
}

.cph-category-realestate {
  background:
    linear-gradient(
      180deg,
      #4ad0ff,
      #edfaff 72%
    );
}

.cph-category-diy {
  background:
    linear-gradient(
      180deg,
      #ffb42e,
      #fff1cf 72%
    );
}

.cph-category-auto {
  background:
    linear-gradient(
      180deg,
      #ff4540,
      #ffe7e6 72%
    );
}

.cph-category-business {
  background:
    linear-gradient(
      180deg,
      #1cd5b6,
      #e7fff9 72%
    );
}

.cph-bottom-nav {
  position: fixed;
  z-index: 10020;
  left: 50%;
  bottom:
    max(
      13px,
      env(safe-area-inset-bottom)
    );
  transform:
    translateX(-55%);
  width:
    min(700px, calc(100vw - 145px));
  min-height: 96px;
  padding: 8px 15px;
  border:
    2px solid rgba(255,255,255,.88);
  border-radius: 32px;
  display: grid;
  grid-template-columns:
    repeat(4,1fr);
  background:
    rgba(255,255,255,.96);
  box-shadow:
    0 18px 47px rgba(17,67,127,.22);
  backdrop-filter: blur(18px);
}

.cph-bottom-nav button {
  border: 0;
  border-radius: 21px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  color: #132540;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.cph-bottom-nav button span {
  font-size: 30px;
}

.cph-bottom-nav button strong {
  font-size:
    clamp(12px, 2.5vw, 18px);
}

.cph-bottom-nav button.active {
  color: #0871e5;
}

.cph-tools-button {
  position: fixed;
  z-index: 10030;
  right: 15px;
  bottom:
    max(
      13px,
      env(safe-area-inset-bottom)
    );
  width: 125px;
  height: 125px;
  border:
    4px solid rgba(255,255,255,.92);
  border-radius: 50%;
  display: grid;
  place-items: center;
  align-content: center;
  color: #ffffff;
  background:
    radial-gradient(
      circle at 35% 15%,
      #30b8ff,
      #006df1 60%,
      #1550d4
    );
  box-shadow:
    0 18px 38px rgba(12,87,210,.35);
  font: inherit;
  cursor: pointer;
}

.cph-tools-button > span {
  font-size: 30px;
}

.cph-tools-button strong {
  font-size: 21px;
  line-height: .95;
}

.cph-tools-button small {
  font-size: 19px;
}

.cph-tools-menu {
  position: fixed;
  z-index: 10040;
  right: 19px;
  bottom:
    calc(
      145px +
      env(safe-area-inset-bottom)
    );
  width: min(310px, calc(100vw - 32px));
  padding: 12px;
  border:
    2px solid rgba(255,255,255,.88);
  border-radius: 26px;
  background:
    rgba(255,255,255,.97);
  box-shadow:
    0 25px 65px rgba(20,62,117,.28);
  opacity: 0;
  transform:
    translateY(13px)
    scale(.96);
  transform-origin:
    bottom right;
  transition:
    opacity .17s ease,
    transform .17s ease;
}

.cph-tools-menu[hidden] {
  display: none !important;
}

.cph-tools-menu.is-open {
  opacity: 1;
  transform:
    translateY(0)
    scale(1);
}

.cph-tools-menu button {
  width: 100%;
  min-height: 56px;
  padding: 9px 11px;
  border: 0;
  border-bottom:
    1px solid #dbe5f1;
  display: grid;
  grid-template-columns:
    42px 1fr;
  align-items: center;
  gap: 9px;
  color: #182a48;
  text-align: left;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.cph-tools-menu button:last-child {
  border-bottom: 0;
}

.cph-tools-menu button span {
  font-size: 25px;
}

.cph-tools-menu button strong {
  font-size: 16px;
}

@media (max-width: 720px) {
  #carbi-premium-home-v3 {
    padding:
      max(12px, env(safe-area-inset-top))
      10px
      calc(
        112px +
        env(safe-area-inset-bottom)
      );
  }

  .cph-hero {
    min-height: 160px;
    grid-template-columns:
      115px 1fr 85px;
    gap: 7px;
  }

  .cph-robot {
    transform: scale(.65);
    transform-origin:
      left center;
    width: 115px;
  }

  .cph-greeting h1 {
    font-size:
      clamp(30px, 8vw, 47px);
  }

  .cph-greeting p,
  .cph-greeting strong {
    font-size:
      clamp(14px, 4vw, 21px);
  }

  .cph-account-button {
    min-height: 75px;
    padding: 8px;
    border-radius: 22px;
    gap: 3px;
  }

  .cph-account-button span {
    font-size: 27px;
  }

  .cph-account-button strong {
    font-size: 14px;
  }

  .cph-quick-actions {
    gap: 9px;
  }

  .cph-quick-card {
    min-height: 105px;
    padding: 10px;
    border-width: 2px;
    border-radius: 22px;
    grid-template-columns:
      67px 1fr 16px;
    gap: 7px;
  }

  .cph-quick-icon {
    width: 64px;
    height: 69px;
    font-size: 43px;
  }

  .cph-quick-card strong {
    font-size: 18px;
  }

  .cph-quick-card small {
    font-size: 12px;
  }

  .cph-quick-card b {
    font-size: 31px;
  }

  .cph-emergency {
    min-height: 92px;
    margin: 13px 0 17px;
    padding: 11px 15px;
    border-width: 2px;
    border-radius: 22px;
    grid-template-columns:
      64px 1fr 18px;
  }

  .cph-emergency-icon {
    width: 58px;
    height: 58px;
    border-radius: 17px;
    font-size: 16px;
  }

  .cph-emergency strong {
    font-size: 21px;
  }

  .cph-emergency small {
    font-size: 12px;
  }

  .cph-emergency b {
    font-size: 33px;
  }

  .cph-help-section h2 {
    margin-bottom: 13px;
    padding: 14px 7px;
    border-radius: 21px;
    font-size:
      clamp(18px, 5vw, 25px);
  }

  .cph-category-grid {
    gap: 8px;
  }

  .cph-category {
    min-height: 176px;
    padding: 8px 4px 10px;
    border-radius: 19px;
  }

  .cph-category-art {
    min-height: 82px;
    font-size:
      clamp(45px, 13vw, 67px);
  }

  .cph-category strong {
    font-size:
      clamp(13px, 3.7vw, 18px);
  }

  .cph-category small {
    margin-top: 4px;
    font-size:
      clamp(9px, 2.7vw, 12px);
  }

  .cph-bottom-nav {
    left: 8px;
    transform: none;
    width:
      calc(100vw - 112px);
    min-height: 81px;
    padding: 5px 6px;
    border-radius: 26px;
  }

  .cph-bottom-nav button span {
    font-size: 23px;
  }

  .cph-tools-button {
    right: 7px;
    width: 96px;
    height: 96px;
  }

  .cph-tools-button > span {
    font-size: 23px;
  }

  .cph-tools-button strong {
    font-size: 16px;
  }

  .cph-tools-button small {
    font-size: 14px;
  }

  .cph-tools-menu {
    right: 8px;
    bottom:
      calc(
        116px +
        env(safe-area-inset-bottom)
      );
  }
}

@media (max-width: 430px) {
  .cph-category-grid {
    grid-template-columns:
      repeat(2, minmax(0,1fr));
  }

  .cph-category {
    min-height: 185px;
  }

  .cph-hero {
    grid-template-columns:
      94px 1fr 76px;
  }

  .cph-robot {
    transform: scale(.55);
    width: 93px;
  }

  .cph-greeting h1 {
    font-size: 31px;
  }

  .cph-account-button strong {
    font-size: 12px;
  }
}


/*
============================================================================
CARBI PREMIUM HOME — FUNCTION PANEL LAYER FIX
The premium homepage stays visible, but existing feature panels may open above
it. Only old duplicate floating launchers are hidden.
============================================================================
*/

body:has(#carbi-premium-home-v3)
#carbi-simple-tools-launcher,

body:has(#carbi-premium-home-v3)
#carbi-simple-tools-menu,

body:has(#carbi-premium-home-v3)
#carbi-expert-center-launcher,

body:has(#carbi-premium-home-v3)
#carbi-screen-vision-launcher,

body:has(#carbi-premium-home-v3)
#carbi-live-screen-help-launcher {
  display: none !important;
}

/*
Existing account, chat, device, help, emergency, expert, upload, and screen
panels must remain visible when opened.
*/

body:has(#carbi-premium-home-v3)
[role="dialog"],

body:has(#carbi-premium-home-v3)
[aria-modal="true"],

body:has(#carbi-premium-home-v3)
#carbi-expert-center-panel,

body:has(#carbi-premium-home-v3)
#carbi-screen-vision-panel {
  visibility: visible !important;
}



/*
============================================================================
CARBI STOCK AND FOREX HOMEPAGE CARDS
============================================================================
*/

.cph-category-stock {
  background:
    linear-gradient(
      180deg,
      #525cff,
      #e9ebff 72%
    );
}

.cph-category-forex {
  background:
    linear-gradient(
      180deg,
      #16b7d8,
      #e4fbff 72%
    );
}

.cph-category-stock .cph-category-art,
.cph-category-forex .cph-category-art {
  transform: translateY(2px);
}
