  @import url("https://fonts.googleapis.com/css2?family=Anton&family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

  :root {
    --f-gold: #ffbd4a;
    --f-blue: #5271ff;
    --f-red: #ff5c5c;
    --f-dark: #0d0d0f;
    --f-dark2: #111114;
    --f-dark3: #17171b;
    --f-border: rgba(255, 255, 255, 0.1);
    --f-border-bright: rgba(255, 255, 255, 0.16);
    --f-text: rgba(255, 255, 255, 0.92);
    --f-text-muted: rgba(255, 255, 255, 0.5);
    --f-font: "Kanit", sans-serif;
  }

  /* ============================================================
     FUNKY AGENCY FOOTER - MONK MEDIA ONE v2
  ============================================================ */

  .footer-area-four {
    background: var(--f-dark) !important;
    position: relative;
    z-index: 5;
    overflow: visible !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    font-family: var(--f-font);
  }

  /* Animated top stripe */
  .footer-area-four::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(
      90deg,
      var(--f-gold),
      var(--f-blue),
      var(--f-red),
      var(--f-gold)
    );
    background-size: 200% 100%;
    animation: rainbowSlide 4s linear infinite;
    z-index: 10;
  }
  @keyframes rainbowSlide {
    0% {
      background-position: 0% 50%;
    }
    100% {
      background-position: 200% 50%;
    }
  }

  /* Ambient glow */
  .footer-area-four > .footer-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
      radial-gradient(
        ellipse 55% 45% at 15% 65%,
        rgba(82, 113, 255, 0.07) 0%,
        transparent 60%
      ),
      radial-gradient(
        ellipse 45% 35% at 85% 25%,
        rgba(255, 189, 74, 0.05) 0%,
        transparent 60%
      );
    pointer-events: none;
    z-index: 0;
  }

  .footer-area-four .footer-wrapper {
    position: relative;
    z-index: 2;
    padding-bottom: 0;
  }

  /* ============================================================
     HERO GRID
  ============================================================ */
  .f4-hero {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(220px, 1fr) minmax(240px, 1fr);
    gap: clamp(28px, 4vw, 64px);
    align-items: start;
    padding: clamp(38px, 4vw, 56px) clamp(24px, 5vw, 72px)
      clamp(30px, 3vw, 42px);
    border-bottom: 1px solid var(--f-border-bright);
  }

  /* --- Greeting Card --- */
  .f4-greeting {
  }
  .f4-logo {
    margin-bottom: 24px;
  }
  .f4-logo img {
    height: 38px;
    width: auto;
    display: block;
  }
  .f4-logo-fallback {
    font-family: var(--f-font);
    font-size: 1.75rem;
    letter-spacing: 0.04em;
    color: var(--f-text);
    line-height: 1;
    display: none;
  }
  .f4-logo-fallback span {
    color: var(--f-gold);
  }

  .f4-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    width: 100%;
  }
  .f4-btn-footer {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 30px;
    font-family: var(--f-font);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none !important;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.02);
    color: rgba(255, 255, 255, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.12);
  }
  .f4-btn-footer.portfolio-btn:hover {
    background: var(--f-blue);
    color: #ffffff !important;
    border-color: var(--f-blue);
    box-shadow: 0 8px 25px rgba(82, 113, 255, 0.35);
    transform: translateY(-3px);
  }
  .f4-btn-footer.tech-btn:hover {
    background: var(--f-gold);
    color: #000000 !important;
    border-color: var(--f-gold);
    box-shadow: 0 8px 25px rgba(255, 189, 74, 0.35);
    transform: translateY(-3px);
  }
  @media (max-width: 575px) {
    .f4-buttons {
      gap: 10px;
    }
    .f4-btn-footer {
      font-size: 0.78rem;
      padding: 10px 14px;
    }
  }

  .f4-scroll-card {
    background: var(--f-dark3);
    border: 1px solid var(--f-border-bright);
    border-radius: 20px;
    padding: 22px 22px 20px;
    position: relative;
    overflow: hidden;
  }
  .f4-scroll-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 20px;
    background: linear-gradient(
      135deg,
      rgba(255, 189, 74, 0.2) 0%,
      transparent 40%,
      rgba(82, 113, 255, 0.16) 80%,
      transparent 100%
    );
    pointer-events: none;
  }
  .f4-scroll-card-inner {
    position: relative;
    z-index: 1;
  }

  .f4-scroll-emoji {
    font-size: 2.2rem;
    line-height: 1;
    margin-bottom: 10px;
    display: block;
    animation: wiggle 2.8s ease-in-out infinite;
    transform-origin: center bottom;
  }
  @keyframes wiggle {
    0%,
    100% {
      transform: rotate(-5deg);
    }
    50% {
      transform: rotate(5deg);
    }
  }

  .f4-scroll-headline {
    font-family: var(--f-font);
    font-size: clamp(1.28rem, 2.1vw, 1.62rem);
    color: var(--f-text);
    letter-spacing: 0.02em;
    line-height: 1.25;
    margin-bottom: 10px;
  }
  .f4-scroll-headline span {
    background: linear-gradient(90deg, var(--f-gold), var(--f-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .f4-scroll-sub {
    font-size: 0.94rem;
    color: var(--f-text-muted);
    line-height: 1.65;
    margin: 0;
  }

  .f4-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    padding: 10px 22px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--f-gold), var(--f-blue));
    color: #000 !important;
    font-family: "Kanit", sans-serif;
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none !important;
    transition:
      transform 0.2s ease,
      box-shadow 0.2s ease;
    box-shadow: 0 8px 24px rgba(255, 189, 74, 0.28);
  }
  .f4-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(255, 189, 74, 0.44);
    color: #000 !important;
    text-decoration: none !important;
  }
  .f4-cta-btn svg {
    width: 13px;
    height: 13px;
  }


  .f4-card-socials {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
  }
  .f4-card-socials .f4-social-btn {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(255,255,255,0.045);
  }
  .f4-card-socials .f4-social-btn svg {
    width: 19px;
    height: 19px;
  }

  /* --- Nav Columns --- */
  .f4-nav-col {
  }

  .f4-nav-title {
    font-family: var(--f-font);
    font-size: 0.98rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--f-gold);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .f4-nav-title::after {
    content: "";
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 189, 74, 0.6), transparent);
    border-radius: 999px;
  }

  .f4-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .f4-nav-list li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 0;
    color: var(--f-text-muted);
    font-size: 1.12rem;
    font-weight: 500;
    text-decoration: none !important;
    transition:
      color 0.2s,
      transform 0.2s,
      gap 0.2s;
  }
  .f4-nav-list li a::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--f-gold);
    flex-shrink: 0;
    opacity: 0;
    transform: scale(0.3);
    transition:
      opacity 0.2s,
      transform 0.2s;
  }
  .f4-nav-list li a:hover {
    color: var(--f-text);
    transform: translateX(6px);
    gap: 13px;
    text-decoration: none !important;
  }
  .f4-nav-list li a:hover::before {
    opacity: 1;
    transform: scale(1);
  }

  /* map under company nav */
  .f4-map-box {
    margin-top: 26px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--f-border-bright);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    transition:
      transform 0.25s ease,
      box-shadow 0.25s ease;
  }
  .f4-map-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
  }

  /* --- Social Icons Stack --- */
  .f4-socials-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding-top: 40px;
  }

  .f4-social-btn {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    background: var(--f-dark3);
    border: 1px solid var(--f-border-bright);
    display: grid;
    place-items: center;
    color: var(--f-text-muted);
    text-decoration: none !important;
    transition:
      background 0.22s,
      color 0.22s,
      transform 0.22s,
      border-color 0.22s,
      box-shadow 0.22s;
    position: relative;
    overflow: hidden;
  }
  .f4-social-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      135deg,
      rgba(255, 189, 74, 0.18),
      rgba(82, 113, 255, 0.15)
    );
    opacity: 0;
    transition: opacity 0.22s;
    border-radius: inherit;
  }
  .f4-social-btn:hover {
    color: #fff;
    border-color: rgba(255, 189, 74, 0.45);
    transform: translateY(-4px) rotate(-3deg);
    box-shadow: 0 10px 26px rgba(255, 189, 74, 0.2);
    text-decoration: none !important;
  }
  .f4-social-btn:hover::after {
    opacity: 1;
  }
  .f4-social-btn svg {
    width: 20px;
    height: 20px;
    position: relative;
    z-index: 1;
  }

  /* ============================================================
     BOTTOM BAR
  ============================================================ */
  .f4-bottom-bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: clamp(20px, 3vw, 48px);
    padding: 24px clamp(24px, 5vw, 72px) 26px;
    position: relative;
  }

  .f4-desc {
    font-size: 0.92rem;
    color: var(--f-text-muted);
    line-height: 1.68;
    max-width: 380px;
  }
  .f4-desc strong {
    color: rgba(255, 255, 255, 0.68);
    font-weight: 600;
  }

  .f4-copyright {
    grid-column: 1 / -1;
    justify-self: center;
    text-align: center;
    font-size: 0.84rem;
    color: var(--f-text-muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
    line-height: 1.8;
  }
  .f4-copyright a {
    color: var(--f-gold);
    text-decoration: none;
    font-weight: 700;
  }
  .f4-copyright a:hover {
    text-decoration: underline;
  }

  .f4-chat-area {
    position: absolute;
    right: clamp(34px, 5vw, 72px);
    top: -90px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    z-index: 50;
  }

  /* ============================================================
     CHAT WIDGET
  ============================================================ */
  .site-chat-widget {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    z-index: 5000;
  }

  .site-chat-panel {
    width: min(450px, calc(100vw - 32px));
    height: min(540px, 72vh);
    background: #0b0b10;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
      0 28px 70px rgba(0, 0, 0, 0.6),
      0 0 0 1px rgba(255, 189, 74, 0.07);
    display: none;
    flex-direction: column;
    position: absolute;
    bottom: calc(100% + 12px);
    right: 0;
  }
  .site-chat-widget.is-open .site-chat-panel {
    display: flex;
  }
  .site-chat-widget.is-open .site-chat-trigger {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.75);
  }

  /* Floating close button appears at the same circular-widget spot when chat is open */
  .site-chat-floating-close {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: radial-gradient(circle at 35% 30%, #1a1b28, #050506);
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow:
      0 8px 24px rgba(0, 0, 0, 0.45),
      0 0 0 2px rgba(255, 92, 92, 0.14);
    cursor: pointer;
    transition:
      transform 0.2s ease,
      box-shadow 0.2s ease;
    position: relative;
  }
  .site-chat-floating-close::before {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: conic-gradient(
      from 0deg,
      var(--f-red),
      var(--f-blue),
      var(--f-gold),
      var(--f-red)
    );
    z-index: -1;
    filter: blur(10px);
    opacity: 0.65;
    animation: spinGlow 4s linear infinite;
  }
  .site-chat-floating-close:hover {
    transform: scale(1.08);
    box-shadow:
      0 12px 32px rgba(0, 0, 0, 0.5),
      0 0 0 2px rgba(255, 92, 92, 0.32);
  }
  .site-chat-widget.is-open .site-chat-floating-close {
    display: inline-flex;
  }

  .site-chat-widget-header {
    padding: 16px 18px 14px;
    background: #0f1017;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .site-chat-widget-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
  }
  .site-chat-widget-avatar {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: #1a1a1a;
    border: 1px solid rgba(255, 189, 74, 0.28);
  }
  .site-chat-widget-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
  }
  .site-chat-widget-title {
    font-size: 0.93rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 3px;
    font-family: "Kanit", sans-serif;
  }
  .site-chat-widget-status {
    font-size: 0.68rem;
    color: #06ffa5;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: "Kanit", sans-serif;
  }
  .site-chat-widget-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #06ffa5;
    animation: statusPulse 2s ease-in-out infinite;
  }
  @keyframes statusPulse {
    0%,
    100% {
      opacity: 1;
    }
    50% {
      opacity: 0.35;
    }
  }

  .site-chat-widget-close {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition:
      background 0.2s,
      border-color 0.2s;
    padding: 0;
  }
  .site-chat-widget-close:hover {
    background: rgba(255, 92, 92, 0.2);
    border-color: rgba(255, 92, 92, 0.4);
  }

  .site-chat-widget-messages {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 13px;
    padding: 16px;
    background: #050508;
  }
  .site-chat-widget-messages::-webkit-scrollbar {
    width: 3px;
  }
  .site-chat-widget-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
  }

  .site-chat-msg {
    max-width: 85%;
    padding: 11px 14px;
    border-radius: 15px;
    font-size: 0.88rem;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: "Kanit", sans-serif;
  }
  .site-chat-msg.ai {
    background: #0f0f18;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-bottom-left-radius: 4px;
    align-self: flex-start;
  }
  .site-chat-msg.user {
    background: linear-gradient(
      135deg,
      rgba(255, 189, 74, 0.14),
      rgba(82, 113, 255, 0.11)
    );
    border: 1px solid rgba(255, 189, 74, 0.22);
    color: #fff;
    border-bottom-right-radius: 4px;
    align-self: flex-end;
    font-weight: 500;
  }
  .site-chat-typing {
    display: flex;
    gap: 4px;
    padding: 11px 14px;
    background: #0f0f18;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    border-bottom-left-radius: 4px;
    align-self: flex-start;
    width: fit-content;
  }
  .site-chat-typing span {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    animation: typeBounce 1.4s infinite ease-in-out both;
  }
  .site-chat-typing span:nth-child(1) {
    animation-delay: -0.32s;
  }
  .site-chat-typing span:nth-child(2) {
    animation-delay: -0.16s;
  }
  @keyframes typeBounce {
    0%,
    80%,
    100% {
      transform: scale(0);
    }
    40% {
      transform: scale(1);
    }
  }

  .site-chat-widget-bottom {
    padding: 13px 15px;
    background: #050508;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
  }
  .site-chat-suggestions {
    display: flex;
    flex-direction: column;
    gap: 9px;
    align-items: flex-end;
    padding: 12px 16px 0;
    background: #050508;
  }
  .site-chat-quick-header {
    font-size: 0.6rem;
    color: var(--f-gold);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-family: "Kanit", sans-serif;
  }
  .site-chat-suggestion-pill {
    background: #0f0f18;
    border: 1px solid rgba(255, 189, 74, 0.22);
    border-radius: 8px;
    padding: 7px 14px;
    color: #fff;
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    font-family: "Kanit", sans-serif;
    transition:
      background 0.2s,
      border-color 0.2s;
  }
  .site-chat-suggestion-pill:hover {
    background: rgba(255, 189, 74, 0.1);
    border-color: rgba(255, 189, 74, 0.42);
  }
  .site-chat-widget-form {
    display: flex;
    gap: 9px;
  }
  .site-chat-widget-input {
    flex: 1;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #0f0f18 !important;
    color: #fff !important;
    padding: 11px 18px;
    font-size: 0.88rem;
    outline: none;
    font-family: "Kanit", sans-serif;
    box-shadow: 0 0 0 1000px #0f0f18 inset !important;
    -webkit-text-fill-color: #fff !important;
    caret-color: var(--f-gold);
    color-scheme: dark;
    transition: border-color 0.2s;
  }
  .site-chat-widget-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
    opacity: 1;
  }
  .site-chat-widget-input:focus {
    border-color: rgba(255, 189, 74, 0.38);
  }
  .site-chat-widget-send {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 189, 74, 0.3);
    background: linear-gradient(
      135deg,
      rgba(255, 189, 74, 0.14),
      rgba(82, 113, 255, 0.14)
    ) !important;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
    transition:
      transform 0.2s,
      border-color 0.2s;
  }
  .site-chat-widget-send:hover {
    transform: scale(1.1);
    border-color: rgba(255, 189, 74, 0.55);
  }

  /* Trigger */
  .site-chat-trigger {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: radial-gradient(circle at 35% 30%, #1a1b28, #050506);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow:
      0 8px 24px rgba(0, 0, 0, 0.45),
      0 0 0 2px rgba(255, 189, 74, 0.12);
    cursor: pointer;
    transition:
      transform 0.2s ease,
      box-shadow 0.2s ease,
      opacity 0.2s ease;
    position: relative;
  }
  .site-chat-trigger::before {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: conic-gradient(
      from 0deg,
      var(--f-gold),
      var(--f-blue),
      var(--f-red),
      var(--f-gold)
    );
    z-index: -1;
    filter: blur(10px);
    opacity: 0.7;
    animation: spinGlow 4s linear infinite;
  }
  @keyframes spinGlow {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }
  .site-chat-trigger:hover {
    transform: scale(1.1);
    box-shadow:
      0 12px 32px rgba(0, 0, 0, 0.5),
      0 0 0 2px rgba(255, 189, 74, 0.35);
  }

  .site-chat-trigger::after {
    content: "Talk to AI Assistant!";
    position: absolute;
    right: calc(100% + 14px);
    top: 50%;
    transform: translateY(-50%);
    background: rgba(10,10,14,0.96);
    color: #fff;
    border: 1px solid rgba(255, 189, 74, 0.35);
    border-radius: 999px 999px 6px 999px;
    padding: 9px 15px;
    font-family: var(--f-font);
    font-size: 0.86rem;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.02em;
    box-shadow: 0 14px 32px rgba(0,0,0,0.35);
    opacity: 1;
    pointer-events: none;
  }
  .site-chat-trigger .site-chat-tooltip-tail {
    position: absolute;
    right: calc(100% + 5px);
    top: calc(50% + 11px);
    width: 18px;
    height: 18px;
    background: rgba(10,10,14,0.96);
    border-right: 1px solid rgba(255, 189, 74, 0.35);
    border-bottom: 1px solid rgba(255, 189, 74, 0.35);
    transform: rotate(-18deg) skewX(-18deg);
    border-bottom-right-radius: 14px;
    pointer-events: none;
    box-shadow: 8px 8px 18px rgba(0,0,0,0.18);
  }
  .site-chat-widget.is-open .site-chat-trigger::after,
  .site-chat-widget.is-open .site-chat-trigger .site-chat-tooltip-tail {
    opacity: 0;
  }

  .site-chat-trigger img {
    width: 34px;
    max-width: 34px;
    height: auto;
    display: block;
    border-radius: 50%;
    object-fit: contain;
    transform: none !important;
  }

  /* ============================================================
     RESPONSIVE
  ============================================================ */
  @media (max-width: 1100px) {
    .f4-hero {
      grid-template-columns: 1fr 1fr;
      grid-template-rows: auto auto;
    }
    .f4-socials-col {
      flex-direction: row;
      flex-wrap: wrap;
      padding-top: 0;
      grid-column: 1 / -1;
      justify-content: flex-start;
    }
  }
  @media (max-width: 680px) {
    .f4-hero {
      grid-template-columns: 1fr;
      gap: 28px;
      padding: 34px 20px 28px;
    }
    .f4-socials-col {
      flex-direction: row;
      padding-top: 0;
      flex-wrap: wrap;
    }
    .f4-bottom-bar {
      grid-template-columns: 1fr;
      gap: 16px;
      padding: 24px clamp(24px, 5vw, 72px) 26px;
      text-align: center;
    }
    .f4-desc {
      max-width: 100%;
    }
    .f4-copyright {
      order: -1;
    }
    .f4-chat-area {
      position: relative;
      right: auto;
      top: auto;
      justify-content: center;
    }
    .site-chat-panel {
      right: 50%;
      transform: translateX(50%);
      width: min(400px, calc(100vw - 20px));
      bottom: calc(100% + 8px);
    }
  }


  /* === Final requested fixes: close button same spot + brand-color social hover === */
  .site-chat-widget {
    min-width: 66px;
    min-height: 66px;
  }

  .site-chat-floating-close {
    position: absolute !important;
    right: 0 !important;
    top: 0 !important;
    z-index: 6 !important;
  }

  .site-chat-widget.is-open .site-chat-trigger {
    visibility: hidden;
  }

  .site-chat-widget.is-open .site-chat-floating-close {
    display: inline-flex !important;
  }

  .f4-card-socials .f4-social-btn[aria-label="Instagram"]:hover {
    background: rgba(225, 48, 108, 0.18);
    border-color: rgba(225, 48, 108, 0.75);
    box-shadow: 0 0 22px rgba(225, 48, 108, 0.55), 0 12px 26px rgba(225, 48, 108, 0.22);
  }
  .f4-card-socials .f4-social-btn[aria-label="YouTube"]:hover {
    background: rgba(255, 0, 0, 0.18);
    border-color: rgba(255, 0, 0, 0.75);
    box-shadow: 0 0 22px rgba(255, 0, 0, 0.55), 0 12px 26px rgba(255, 0, 0, 0.22);
  }
  .f4-card-socials .f4-social-btn[aria-label="Facebook"]:hover {
    background: rgba(24, 119, 242, 0.18);
    border-color: rgba(24, 119, 242, 0.75);
    box-shadow: 0 0 22px rgba(24, 119, 242, 0.55), 0 12px 26px rgba(24, 119, 242, 0.22);
  }
  .f4-card-socials .f4-social-btn[aria-label="Threads"]:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.55);
    box-shadow: 0 0 22px rgba(255, 255, 255, 0.28), 0 12px 26px rgba(255, 255, 255, 0.12);
  }
  .f4-card-socials .f4-social-btn[aria-label="LinkedIn"]:hover {
    background: rgba(10, 102, 194, 0.18);
    border-color: rgba(10, 102, 194, 0.75);
    box-shadow: 0 0 22px rgba(10, 102, 194, 0.55), 0 12px 26px rgba(10, 102, 194, 0.22);
  }


  /* === V3 vibrant brand-card section added into current footer === */
  :root {
    --f-gold:  #ffc844;
    --f-gold2: #ffdf80;
    --f-blue:  #4f6fff;
    --f-blue2: #839cff;
    --f-red:   #ff4f4f;
    --f-dark:  #080810;
    --f-dark2: #0d0d16;
    --f-dark3: #12121e;
    --f-border: rgba(255,255,255,0.09);
    --f-border-bright: rgba(255,200,68,0.28);
    --f-border-glow: rgba(255,200,68,0.28);
    --f-text: rgba(255,255,255,0.95);
    --f-text-muted: rgba(255,255,255,0.54);
    --f-muted: rgba(255,255,255,0.54);
  }

  .footer-area-four::before {
    background: linear-gradient(90deg,
      var(--f-gold), var(--f-blue), var(--f-red),
      var(--f-gold2), var(--f-blue2), var(--f-gold));
    background-size: 300% 100%;
    box-shadow: 0 0 24px rgba(255,200,68,0.7), 0 0 60px rgba(79,111,255,0.35);
  }

  .footer-area-four > .footer-wrapper::before {
    background:
      radial-gradient(ellipse 70% 55% at 5% 80%,  rgba(79,111,255,0.18) 0%, transparent 65%),
      radial-gradient(ellipse 55% 45% at 92% 15%, rgba(255,200,68,0.16) 0%, transparent 65%),
      radial-gradient(ellipse 40% 35% at 50% 110%, rgba(255,79,79,0.09) 0%, transparent 60%);
  }

  .f4-hero {
    grid-template-columns: minmax(280px,1.05fr) minmax(200px,1fr) minmax(240px,1fr);
    gap: clamp(24px,4vw,60px);
  }

/* ============================================================
     BRAND CARD — fully rebuilt interactive piece
  ============================================================ */
  .f4-logo {
    margin-bottom: 22px;
  }
  .f4-logo img {
    height: 36px;
    width: auto;
    display: block;
    /* filter removed */
  }
  .f4-logo-fallback {
    font-family: var(--f-font);
    font-size: 1.75rem;
    letter-spacing: 0.04em;
    color: var(--f-text);
    line-height: 1;
    display: none;
  }
  .f4-logo-fallback span { color: var(--f-gold); }

  /* The card itself */
  .f4-brand-card {
    background: var(--f-dark3);
    border-radius: 22px;
    border: 1px solid rgba(255,200,68,0.2);
    padding: 0;
    position: relative;
    overflow: hidden;
    cursor: default;
    box-shadow:
      0 0 0 1px rgba(79,111,255,0.08) inset,
      0 24px 60px rgba(0,0,0,0.5);
    transition: border-color 0.3s, box-shadow 0.3s;
  }
  .f4-brand-card:hover {
    border-color: rgba(255,200,68,0.42);
    box-shadow:
      0 0 0 1px rgba(79,111,255,0.12) inset,
      0 28px 70px rgba(0,0,0,0.55),
      0 0 60px rgba(255,200,68,0.07);
  }

  /* Animated corner-to-corner gradient sheen on hover */
  .f4-brand-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 23px;
    background: linear-gradient(135deg,
      rgba(255,200,68,0.32) 0%,
      transparent 38%,
      rgba(79,111,255,0.24) 72%,
      transparent 100%);
    pointer-events: none;
    z-index: 0;
  }

  /* Scrolling ticker at top of card */
  .f4-ticker-wrap {
    overflow: hidden;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,200,68,0.06);
    border-radius: 22px 22px 0 0;
    padding: 7px 0;
    position: relative;
    z-index: 2;
  }
  .f4-ticker-track {
    display: flex;
    gap: 0;
    width: max-content;
    animation: tickerRoll 18s linear infinite;
    white-space: nowrap;
  }
  .f4-ticker-track:hover { animation-play-state: paused; }
  @keyframes tickerRoll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }
  .f4-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 20px;
    font-family: var(--f-font);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: #ffffff;
  }
  .f4-ticker-dot {
    width: 4px; height: 4px;
    border-radius: 50%;
    background: #ffffff;
    opacity: 0.6;
    flex-shrink: 0;
  }

  /* Card body */
  .f4-brand-body {
    padding: 20px 22px 22px;
    position: relative;
    z-index: 2;
  }

  /* Animated counter stat strip */
  .f4-stats-row {
    display: flex;
    gap: 0;
    margin-bottom: 18px;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255,255,255,0.02);
  }
  .f4-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    border-right: 1px solid rgba(255,255,255,0.07);
    transition: background 0.25s;
    cursor: default;
  }
  .f4-stat:last-child { border-right: none; }
  .f4-stat:hover { background: rgba(255,255,255,0.04); }
  .f4-stat-num {
    font-family: var(--f-font);
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1;
    color: #ffffff;
    letter-spacing: 0.02em;
    text-shadow: 0 0 20px rgba(255,255,255,0.3);
  }
  .f4-stat-label {
    font-size: 0.66rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    margin-top: 3px;
  }

  /* Tagline */
  .f4-brand-tagline {
    font-family: var(--f-font);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--f-text);
    line-height: 1.35;
    margin-bottom: 6px;
    letter-spacing: 0.01em;
  }
  .f4-brand-tagline .hl { color: #ffffff; }
  .f4-brand-sub {
    font-size: 0.88rem;
    color: var(--f-muted);
    line-height: 1.6;
    margin: 0 0 18px;
  }

  /* Social buttons */
  .f4-card-socials {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
  }
  .f4-card-socials .f4-social-btn {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(255,255,255,0.1);
    display: grid;
    place-items: center;
    color: rgba(255,255,255,0.55);
    text-decoration: none !important;
    transition: all 0.22s ease;
    position: relative;
    overflow: hidden;
  }
  .f4-card-socials .f4-social-btn svg { width: 18px; height: 18px; }
  .f4-card-socials .f4-social-btn:hover { color: #fff; }

  /* Per-brand hovers */
  .f4-card-socials .f4-social-btn[aria-label="Instagram"]:hover {
    background: rgba(225,48,108,0.2); border-color: rgba(225,48,108,0.75);
    box-shadow: 0 0 28px rgba(225,48,108,0.65), 0 8px 20px rgba(225,48,108,0.2);
    transform: translateY(-3px);
  }
  .f4-card-socials .f4-social-btn[aria-label="YouTube"]:hover {
    background: rgba(255,0,0,0.2); border-color: rgba(255,0,0,0.75);
    box-shadow: 0 0 28px rgba(255,0,0,0.65), 0 8px 20px rgba(255,0,0,0.2);
    transform: translateY(-3px);
  }
  .f4-card-socials .f4-social-btn[aria-label="Facebook"]:hover {
    background: rgba(24,119,242,0.2); border-color: rgba(24,119,242,0.75);
    box-shadow: 0 0 28px rgba(24,119,242,0.65), 0 8px 20px rgba(24,119,242,0.2);
    transform: translateY(-3px);
  }
  .f4-card-socials .f4-social-btn[aria-label="Threads"]:hover {
    background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.65);
    box-shadow: 0 0 28px rgba(255,255,255,0.3), 0 8px 20px rgba(255,255,255,0.1);
    transform: translateY(-3px);
  }
  .f4-card-socials .f4-social-btn[aria-label="LinkedIn"]:hover {
    background: rgba(10,102,194,0.2); border-color: rgba(10,102,194,0.75);
    box-shadow: 0 0 28px rgba(10,102,194,0.65), 0 8px 20px rgba(10,102,194,0.2);
    transform: translateY(-3px);
  }

  .f4-brand-card {
    max-width: 100%;
  }

  .f4-ticker-track {
    min-width: max-content;
  }

  .f4-stats-row {
    min-width: 0;
  }

  .f4-stat-num {
    color: #ffffff;
  }

  .f4-brand-tagline .hl {
    color: #ffffff;
  }

  @media (max-width: 1100px) {
    .f4-hero {
      grid-template-columns: 1fr 1fr;
    }
    .f4-greeting {
      grid-column: 1 / -1;
    }
  }

  @media (max-width: 680px) {
    .f4-brand-body {
      padding: 18px 16px 18px;
    }
    .f4-stats-row {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .f4-stat {
      padding: 11px 6px;
    }
    .f4-stat-num {
      font-size: clamp(1.05rem, 6vw, 1.35rem);
    }
    .f4-stat-label {
      font-size: 0.58rem;
    }
    .f4-brand-tagline {
      font-size: 1rem;
    }
    .f4-card-socials {
      gap: 8px;
    }
    .f4-card-socials .f4-social-btn {
      width: 42px;
      height: 42px;
    }
  }

  @media (max-width: 380px) {
    .f4-stats-row {
      grid-template-columns: 1fr;
    }
    .f4-stat {
      border-right: none;
      border-bottom: 1px solid rgba(255,255,255,0.07);
    }
    .f4-stat:last-child {
      border-bottom: none;
    }
  }



  /* === Requested layout refinements: chat panel above widget, taller/narrower map, added company links === */
  .footer-area-four .f4-hero {
    grid-template-columns: minmax(260px, 1fr) minmax(220px, 1fr) minmax(240px, 0.92fr);
    gap: clamp(24px, 3.4vw, 54px);
  }

  .footer-area-four .f4-nav-col:nth-child(3) .f4-nav-list {
    gap: 0;
  }

  .footer-area-four .f4-nav-col:nth-child(3) .f4-nav-list li a {
    padding: 5px 0;
    font-size: 1.06rem;
  }

  .footer-area-four .f4-map-box {
    width: min(100%, 420px);
    max-width: 92%;
    margin-top: 18px;
  }

  .footer-area-four .f4-map-box iframe {
    height: 225px !important;
  }

  .footer-area-four .site-chat-panel {
    bottom: calc(100% + 16px) !important;
    right: 0 !important;
    top: auto !important;
    transform: none !important;
    transform-origin: bottom right;
  }

  .footer-area-four .site-chat-widget.is-open .site-chat-panel {
    display: flex !important;
  }

  @media (max-width: 1100px) {
    .footer-area-four .f4-hero {
      grid-template-columns: 1fr 1fr;
    }
    .footer-area-four .f4-map-box {
      width: 100%;
      max-width: 520px;
    }
  }

  @media (max-width: 680px) {
    .footer-area-four .f4-map-box {
      width: 100%;
      max-width: 100%;
    }
    .footer-area-four .f4-map-box iframe {
      height: 260px !important;
    }
    .footer-area-four .site-chat-panel {
      right: 50% !important;
      bottom: calc(100% + 12px) !important;
      transform: translateX(50%) !important;
      width: min(400px, calc(100vw - 20px)) !important;
      max-height: 72vh;
    }
  }



  /* === Final spacing refinement: map breathing room + chat clear of divider === */
  .footer-area-four .f4-hero {
    padding-bottom: clamp(64px, 5vw, 86px) !important;
  }

  .footer-area-four .f4-map-box {
    margin-bottom: clamp(26px, 3vw, 44px) !important;
  }

  .footer-area-four .f4-chat-area {
    top: -132px !important;
  }

  .footer-area-four .site-chat-panel {
    bottom: calc(100% + 18px) !important;
  }

  @media (max-width: 1100px) {
    .footer-area-four .f4-hero {
      padding-bottom: clamp(56px, 6vw, 78px) !important;
    }
    .footer-area-four .f4-chat-area {
      top: -122px !important;
    }
  }

  @media (max-width: 680px) {
    .footer-area-four .f4-hero {
      padding-bottom: 34px !important;
    }
    .footer-area-four .f4-map-box {
      margin-bottom: 0 !important;
    }
    .footer-area-four .f4-chat-area {
      position: relative !important;
      right: auto !important;
      top: auto !important;
      justify-content: center !important;
      margin-top: 18px !important;
      margin-bottom: 8px !important;
    }
    .footer-area-four .site-chat-panel {
      right: 50% !important;
      bottom: calc(100% + 14px) !important;
      transform: translateX(50%) !important;
      width: min(400px, calc(100vw - 20px)) !important;
      max-height: 72vh;
    }
  }

  /* === Precise spacing fix: keep chat below map with breathing room and above divider === */
  .footer-area-four .f4-hero {
    padding-bottom: clamp(118px, 7vw, 148px) !important;
  }

  .footer-area-four .f4-chat-area {
    top: -108px !important;
  }

  .footer-area-four .f4-map-box {
    margin-bottom: clamp(34px, 3.6vw, 56px) !important;
  }

  @media (max-width: 1100px) {
    .footer-area-four .f4-hero {
      padding-bottom: clamp(104px, 8vw, 132px) !important;
    }
    .footer-area-four .f4-chat-area {
      top: -102px !important;
    }
  }

  @media (max-width: 680px) {
    .footer-area-four .f4-hero {
      padding-bottom: 34px !important;
    }
    .footer-area-four .f4-map-box {
      margin-bottom: 22px !important;
    }
    .footer-area-four .f4-chat-area {
      position: relative !important;
      right: auto !important;
      top: auto !important;
      margin-top: 22px !important;
      margin-bottom: 14px !important;
    }
  }



/* === Sticky chatbot cleanup: remove leftover footer space ===
   Chatbot is fixed to viewport now, so footer should not reserve extra height. */
.footer-area-four .f4-hero {
  padding-bottom: clamp(30px, 3vw, 42px) !important;
}

.footer-area-four .f4-map-box {
  margin-bottom: 0 !important;
}

/* Keep the chat widget at the same visual coordinates, but independent from footer flow */
.footer-area-four .f4-chat-area {
  position: fixed !important;
  right: clamp(34px, 5vw, 72px) !important;
  bottom: 96px !important;
  top: auto !important;
  z-index: 9999 !important;
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  margin: 0 !important;
  width: auto !important;
  height: auto !important;
  pointer-events: none;
}

.footer-area-four .f4-chat-area .site-chat-widget {
  pointer-events: auto;
}

/* Remove the leftover assistant tooltip/popup */
.site-chat-trigger::after,
.site-chat-trigger .site-chat-tooltip-tail {
  display: none !important;
  content: none !important;
}

/* Chat panel opens above the fixed circular widget */
.footer-area-four .site-chat-panel {
  bottom: calc(100% + 16px) !important;
  right: 0 !important;
  top: auto !important;
  transform: none !important;
}

/* Close button stays exactly where the circular widget is */
.footer-area-four .site-chat-floating-close {
  position: absolute !important;
  right: 0 !important;
  top: 0 !important;
}

@media (max-width: 1100px) {
  .footer-area-four .f4-hero {
    padding-bottom: clamp(30px, 4vw, 44px) !important;
  }

  .footer-area-four .f4-chat-area {
    right: 28px !important;
    bottom: 88px !important;
    top: auto !important;
  }
}

@media (max-width: 680px) {
  .footer-area-four .f4-hero {
    padding-bottom: 28px !important;
  }

  .footer-area-four .f4-map-box {
    margin-bottom: 0 !important;
  }

  .footer-area-four .f4-chat-area {
    position: fixed !important;
    right: 18px !important;
    bottom: 22px !important;
    top: auto !important;
    margin: 0 !important;
    justify-content: flex-end !important;
  }

  .footer-area-four .site-chat-panel {
    right: 0 !important;
    bottom: calc(100% + 14px) !important;
    transform: none !important;
    width: min(400px, calc(100vw - 24px)) !important;
    max-height: 72vh;
  }
}

/* Sticky AI chat: fixed across the entire page, not part of footer layout */
.mmo-sticky-chat-area {
  position: fixed !important;
  right: clamp(18px, 5vw, 72px) !important;
  bottom: 72px !important;
  top: auto !important;
  left: auto !important;
  z-index: 99999 !important;
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  pointer-events: auto !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
}

.mmo-sticky-chat-area .site-chat-widget {
  position: relative !important;
}
