/* ==========================================================================
   OKX US Landing Page Clone - Master Stylesheet (Polished & Pixel-Perfect)
   ========================================================================== */

:root {
  --bg-black: #000000;
  --bg-card: #121212;
  --bg-search: #1f1f1f;
  --text-white: #ffffff;
  --text-muted: #8e8e8e;
  --text-light: #cccccc;
  --border-dark: #222222;
  --border-subtle: rgba(255, 255, 255, 0.12);
  --okx-lime: #c8f560;
  --okx-lime-hover: #b8e64c;
  --okx-green: #00d578;
  --okx-red: #ff4d4f;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --container-max-width: 1360px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  background-color: var(--bg-black);
  color: var(--text-white);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  background-color: var(--bg-black);
  color: var(--text-white);
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
  padding-bottom: 60px; /* Space for mobile bottom bar */
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.15s ease, color 0.15s ease;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
}

input {
  font-family: inherit;
  outline: none;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 32px;
  padding-right: 32px;
}

@media (max-width: 640px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* ==========================================================================
   Header / Navigation Bar
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(0, 0, 0, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  height: 64px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-left {
  display: flex;
  align-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  height: 24px;
  margin-right: 14px;
}

.brand-logo img {
  height: 24px;
  width: auto;
  object-fit: contain;
}

.nav-divider {
  width: 1px;
  height: 16px;
  background-color: #333333;
  margin: 0 16px 0 2px;
  display: none;
}

@media (min-width: 1080px) {
  .nav-divider {
    display: block;
  }
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 20px;
}

@media (min-width: 1080px) {
  .desktop-nav {
    display: flex;
  }
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 400;
  color: #ffffff;
  padding: 8px 0;
  cursor: pointer;
  transition: opacity 0.15s ease;
  white-space: nowrap;
}

.nav-item:hover {
  opacity: 0.8;
}

.nav-item .chevron {
  width: 10px;
  height: 10px;
  transition: transform 0.2s ease;
  opacity: 0.7;
}

.nav-item:hover .chevron {
  transform: rotate(180deg);
  opacity: 1;
}

/* Nav Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: -12px;
  background-color: #121212;
  border: 1px solid #242424;
  border-radius: 12px;
  padding: 10px;
  min-width: 220px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.2s ease;
  z-index: 1000;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: flex;
  flex-direction: column;
  padding: 10px 14px;
  border-radius: 8px;
  transition: background 0.15s ease;
}

.dropdown-link:hover {
  background-color: #1c1c1c;
}

.dropdown-title {
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
}

.dropdown-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Nav Right */
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.search-box-btn {
  display: none;
  align-items: center;
  gap: 8px;
  background-color: var(--bg-search);
  border: 1px solid transparent;
  border-radius: 8px;
  height: 36px;
  width: 190px;
  padding: 0 12px;
  color: #777777;
  font-size: 13px;
  font-weight: 400;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

@media (min-width: 960px) {
  .search-box-btn {
    display: flex;
  }
}

.search-box-btn:hover {
  border-color: #383838;
  background-color: #242424;
  color: #aaaaaa;
}

.search-box-btn svg {
  width: 14px;
  height: 14px;
  opacity: 0.8;
  flex-shrink: 0;
}

.login-btn {
  display: none;
  font-size: 14px;
  font-weight: 400;
  color: #ffffff;
  padding: 6px 10px;
  transition: opacity 0.2s ease;
}

@media (min-width: 768px) {
  .login-btn {
    display: inline-block;
  }
}

.login-btn:hover {
  opacity: 0.8;
}

.signup-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 400;
  color: #ffffff;
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 9999px;
  height: 34px;
  padding: 0 16px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.signup-btn:hover {
  background-color: #ffffff;
  color: #000000;
}

.icon-actions {
  display: none;
  align-items: center;
  gap: 12px;
  margin-left: 4px;
}

@media (min-width: 900px) {
  .icon-actions {
    display: flex;
  }
}

.nav-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  opacity: 0.9;
  padding: 4px;
  transition: opacity 0.2s ease;
}

.nav-icon-btn:hover {
  opacity: 1;
}

.nav-icon-btn svg {
  width: 19px;
  height: 19px;
}

/* Mobile Header Controls */
.mobile-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

@media (min-width: 1080px) {
  .mobile-controls .hamburger-btn,
  .mobile-controls .mobile-search-trigger {
    display: none;
  }
}

.hamburger-btn,
.mobile-search-trigger {
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
}

.hamburger-btn svg,
.mobile-search-trigger svg {
  width: 22px;
  height: 22px;
}

/* Mobile Navigation Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #000000;
  z-index: 999;
  padding: 20px 20px 80px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  overflow-y: auto;
}

.mobile-drawer.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.drawer-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 24px;
}

.drawer-close-btn {
  color: #ffffff;
  padding: 6px;
}

.drawer-close-btn svg {
  width: 24px;
  height: 24px;
}

.drawer-auth-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.drawer-auth-buttons .signup-btn {
  height: 38px;
  padding: 0 24px;
}

.drawer-auth-buttons .login-btn {
  display: inline-block;
  font-size: 15px;
  padding: 0 8px;
}

.drawer-menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.drawer-menu-item {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid #141414;
}

.drawer-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  font-size: 17px;
  font-weight: 500;
  color: #ffffff;
  cursor: pointer;
}

.drawer-menu-header svg {
  width: 14px;
  height: 14px;
  opacity: 0.6;
  transition: transform 0.2s ease;
}

.drawer-menu-item.active .drawer-menu-header svg {
  transform: rotate(180deg);
}

.drawer-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  padding-left: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.drawer-submenu a {
  font-size: 14px;
  color: var(--text-muted);
  padding: 4px 0;
}

.drawer-submenu a:hover {
  color: #ffffff;
}

.drawer-menu-item.active .drawer-submenu {
  padding-bottom: 12px;
}

/* Mobile Bottom Navigation Bar */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background-color: #000000;
  border-top: 1px solid #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 90;
}

@media (min-width: 768px) {
  .mobile-bottom-nav {
    display: none;
  }
}

.bottom-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #777777;
  font-size: 11px;
  font-weight: 500;
  width: 25%;
  height: 100%;
}

.bottom-tab.active {
  color: var(--okx-lime);
}

.bottom-tab svg {
  width: 20px;
  height: 20px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding-top: 60px;
  padding-bottom: 120px;
  position: relative;
}

@media (min-width: 1024px) {
  .hero-section {
    padding-top: 100px;
    padding-bottom: 150px;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 60px;
  }
}

.hero-left {
  display: flex;
  flex-direction: column;
}

.hero-title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: #ffffff;
  margin-bottom: 36px;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 52px;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 64px;
  }
}

.hero-cta-wrap {
  margin-bottom: 64px;
  display: flex;
}

@media (max-width: 639px) {
  .hero-cta-wrap {
    margin-bottom: 40px;
  }
}

.hero-cta-btn {
  text-decoration: none;
}

@media (max-width: 639px) {
  .hero-cta-btn {
    width: 100%;
  }
}

.hero-cta-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 500px;
  margin-bottom: 64px;
}

@media (min-width: 640px) {
  .hero-cta-form {
    flex-direction: row;
    align-items: center;
  }
}

.email-input-wrapper {
  flex: 1;
}

.hero-email-input {
  width: 100%;
  height: 52px;
  background-color: transparent;
  border: 1px solid #333333;
  border-radius: 8px;
  padding: 0 18px;
  color: #ffffff;
  font-size: 15px;
  transition: border-color 0.2s ease;
}

.hero-email-input:focus {
  border-color: #ffffff;
}

.hero-email-input::placeholder {
  color: #666666;
}

.hero-submit-btn {
  height: 52px;
  padding: 0 34px;
  background-color: #ffffff;
  color: #000000;
  font-size: 15px;
  font-weight: 600;
  border-radius: 9999px;
  white-space: nowrap;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-submit-btn:hover {
  background-color: #e5e5e5;
  transform: translateY(-1px);
}

/* Sponsor Logos - Increased size for high visibility */
.partner-logos {
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.partner-logo-item {
  height: 48px;
  display: flex;
  align-items: center;
}

@media (min-width: 768px) {
  .partner-logo-item {
    height: 54px;
  }
}

.partner-logo-item img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

/* Hero Video Container - Sleek and proportional */
.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-video-wrapper {
  width: 100%;
  max-width: 325px;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85);
}

.hero-video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 32px;
}

/* ==========================================================================
   Section 2: Trade Like A Pro
   ========================================================================== */
.trade-pro-section {
  padding: 120px 0;
  text-align: center;
}

@media (min-width: 768px) {
  .trade-pro-section {
    padding: 150px 0;
  }
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 48px;
  }
}

.section-subtitle {
  font-size: 16px;
  color: #999999;
  max-width: 680px;
  margin: 0 auto 48px;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .section-subtitle {
    font-size: 18px;
  }
}

.chart-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  border: 1px solid #1e1e1e;
}

.chart-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   Section 3: With You Every Step Of The Way
   ========================================================================== */
.evolution-section {
  padding: 120px 0;
  text-align: center;
}

@media (min-width: 768px) {
  .evolution-section {
    padding: 150px 0;
  }
}

.evolution-visual {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.evolution-video {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* ==========================================================================
   Section 4: What Is OKX? (Videos Showcase)
   ========================================================================== */
.what-is-okx-section {
  padding: 90px 0 160px;
}

@media (min-width: 768px) {
  .what-is-okx-section {
    padding: 110px 0 180px;
  }
}

.what-header-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 60px;
}

@media (min-width: 768px) {
  .what-header-grid {
    grid-template-columns: 1.3fr 0.7fr;
  }
}

.what-header-left .section-title {
  text-align: left;
  margin-bottom: 16px;
}

.what-header-left .section-subtitle {
  text-align: left;
  margin: 0 0 28px 0;
}

.find-out-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  background-color: #ffffff;
  color: #000000;
  font-size: 15px;
  font-weight: 600;
  border-radius: 9999px;
  transition: all 0.2s ease;
}

.find-out-btn:hover {
  background-color: #e5e5e5;
  transform: translateY(-1px);
}

.what-header-right {
  display: flex;
  justify-content: flex-end;
}

.what-okx-logo-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.what-okx-logo {
  width: 100%;
  max-width: 240px;
  height: auto;
  object-fit: contain;
}

/* Video Cards Grid */
.video-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .video-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.video-card {
  position: relative;
  background-color: #0d0d0d;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #1f1f1f;
  aspect-ratio: 4 / 3.8;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Dark gradient tint for high readability of descriptions */
.video-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.3) 32%,
    rgba(0, 0, 0, 0.05) 55%,
    rgba(0, 0, 0, 0.6) 100%
  );
  z-index: 2;
  pointer-events: none;
  border-radius: 16px;
}

.card-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.video-card-header {
  position: relative;
  z-index: 3;
  padding: 20px 24px;
  text-align: right;
  pointer-events: none;
}

.video-person-title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9), 0 1px 3px rgba(0, 0, 0, 0.8);
}

.video-person-desc {
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9), 0 1px 3px rgba(0, 0, 0, 0.8);
}

.video-person-desc span {
  color: #ffffff;
  font-weight: 600;
}

.video-center-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  width: 54px;
  height: 54px;
  background-color: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.2s ease;
}

.video-center-play:hover {
  transform: translate(-50%, -50%) scale(1.1);
  background-color: rgba(0, 0, 0, 0.85);
}

.video-card.is-playing .video-center-play {
  opacity: 0;
  pointer-events: none;
}

/* Video Controls Bar - Hidden initially, only visible when video is being played */
.video-controls-bar {
  position: relative;
  z-index: 3;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.video-card.is-playing .video-controls-bar {
  opacity: 1;
  pointer-events: auto;
}

.ctrl-btn {
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  opacity: 0.85;
  transition: opacity 0.15s ease;
}

.ctrl-btn:hover {
  opacity: 1;
}

.ctrl-btn svg {
  width: 16px;
  height: 16px;
}

.ctrl-time {
  font-size: 11px;
  font-weight: 500;
  color: #cccccc;
  white-space: nowrap;
}

.progress-track {
  flex: 1;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  position: relative;
  cursor: pointer;
}

.progress-fill {
  height: 100%;
  background-color: #ffffff;
  border-radius: 2px;
  width: 0%;
  position: relative;
}

.volume-container {
  display: flex;
  align-items: center;
  gap: 6px;
}

.volume-slider {
  width: 40px;
  height: 3px;
  accent-color: #ffffff;
  cursor: pointer;
}

/* ==========================================================================
   Section 5: Questions? We’ve got answers (FAQ)
   ========================================================================== */
.faq-section {
  padding: 120px 0;
}

@media (min-width: 768px) {
  .faq-section {
    padding: 150px 0;
  }
}

.faq-section .section-title {
  text-align: left;
  margin-bottom: 40px;
}

.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-top: 1px solid #242424;
  padding: 28px 0;
  cursor: pointer;
}

.faq-item:last-child {
  border-bottom: 1px solid #242424;
}

.faq-question-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.faq-question {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
}

@media (min-width: 768px) {
  .faq-question {
    font-size: 24px;
  }
}

.faq-toggle-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

/* Negative / Minus icon transition */
.faq-line-v {
  transform-origin: center;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.faq-item.active .faq-line-v {
  transform: scaleY(0);
  opacity: 0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: #a3a3a3;
  font-size: 16px;
  line-height: 1.65;
}

.faq-answer-inner {
  padding-top: 20px;
}

.faq-answer-inner ul {
  padding-left: 20px;
  margin-top: 10px;
}

.faq-answer-inner a {
  color: #ffffff;
  text-decoration: underline;
}

/* ==========================================================================
   Section 6: Footer
   ========================================================================== */
.site-footer {
  padding-top: 120px;
  padding-bottom: 80px;
  border-top: 1px solid #1c1c1c;
}

.footer-top {
  margin-bottom: 40px;
}

.footer-logo {
  margin-bottom: 16px;
}

.footer-logo img {
  height: 26px;
  width: auto;
}

.footer-address {
  font-size: 13px;
  color: #777777;
  line-height: 1.6;
  max-width: 500px;
  margin-bottom: 24px;
}

.language-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background-color: transparent;
  border: 1px solid #333333;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #ffffff;
  transition: border-color 0.2s ease;
}

.language-btn:hover {
  border-color: #666666;
}

.language-btn svg {
  width: 16px;
  height: 16px;
}

/* Footer Links Grid */
.footer-links-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 60px;
}

.footer-acc-item {
  border-bottom: 1px solid #1c1c1c;
}

.footer-acc-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  padding: 16px 0;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.footer-acc-arrow {
  width: 14px;
  height: 14px;
  opacity: 0.6;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.footer-acc-item.active .footer-acc-arrow {
  transform: rotate(180deg);
  opacity: 1;
}

.footer-acc-panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
}

.footer-acc-item.active .footer-acc-panel {
  max-height: 500px;
  opacity: 1;
  padding-bottom: 20px;
}

.footer-column-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-column-list a {
  font-size: 13px;
  color: #888888;
  transition: color 0.15s ease;
  display: inline-block;
}

.footer-column-list a:hover {
  color: #ffffff;
}

.footer-download-col {
  padding-top: 32px;
}

@media (min-width: 768px) {
  .footer-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px 24px;
  }

  .footer-acc-item {
    border-bottom: none !important;
  }

  .footer-acc-item.desktop-spacing {
    margin-top: 32px;
  }

  .footer-acc-trigger {
    cursor: default !important;
    padding: 0 0 18px 0 !important;
    font-size: 16px;
    pointer-events: none;
  }

  .footer-acc-arrow {
    display: none !important;
  }

  .footer-acc-panel {
    max-height: none !important;
    opacity: 1 !important;
    overflow: visible !important;
    padding-bottom: 0 !important;
  }
}

@media (min-width: 1024px) {
  .footer-links-grid {
    grid-template-columns: repeat(5, 1fr) 1.2fr;
    gap: 32px 20px;
  }

  .footer-download-col {
    padding-top: 0;
  }
}

.footer-download-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 18px;
}

.footer-register-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 160px;
  padding: 10px 0;
  background-color: #ffffff;
  color: #000000;
  font-size: 14px;
  font-weight: 700;
  border-radius: 9999px;
  margin-bottom: 24px;
  transition: background-color 0.2s ease;
}

.footer-register-btn:hover {
  background-color: #e5e5e5;
}

.qr-code-box {
  width: 124px;
  height: 124px;
  background-color: #ffffff;
  padding: 8px;
  border-radius: 12px;
  margin-bottom: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-code-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
}

.qr-caption {
  font-size: 12px;
  color: #777777;
}

/* Footer Bottom Community */
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 30px;
  border-top: 1px solid #181818;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.community-group {
  display: flex;
  align-items: center;
  gap: 20px;
}

.community-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
}

.social-icons {
  display: flex;
  align-items: center;
  gap: 16px;
}

.social-icon-btn {
  color: #888888;
  transition: color 0.15s ease;
}

.social-icon-btn:hover {
  color: #ffffff;
}

.social-icon-btn svg {
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   Floating Support Widget Button & Drawer
   ========================================================================== */
.floating-support-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--okx-lime);
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(200, 245, 96, 0.35);
  z-index: 150;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

/* In mobile view, prevent overlapping with bottom tab bar */
@media (max-width: 767px) {
  .floating-support-btn {
    bottom: 76px;
    right: 16px;
  }
}

.floating-support-btn:hover {
  transform: scale(1.08);
  background-color: var(--okx-lime-hover);
}

.floating-support-btn svg {
  width: 24px;
  height: 24px;
}

/* Support Modal */
.support-modal {
  position: fixed;
  bottom: 84px;
  right: 24px;
  width: 320px;
  background-color: #141414;
  border: 1px solid #2a2a2a;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8);
  z-index: 160;
  padding: 20px;
  display: none;
  flex-direction: column;
  gap: 16px;
}

@media (max-width: 767px) {
  .support-modal {
    bottom: 136px;
    right: 16px;
    width: calc(100vw - 32px);
    max-width: 340px;
  }
}

.support-modal.open {
  display: flex;
  animation: modalFadeIn 0.2s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.support-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.support-modal-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}

.support-modal-close {
  color: #888888;
  padding: 4px;
}

.support-modal-close:hover {
  color: #ffffff;
}

.confirm-support-btn {
  width: 100%;
  padding: 12px 0;
  background-color: var(--okx-lime);
  color: #000000;
  font-size: 15px;
  font-weight: 700;
  border-radius: 9999px;
  margin-top: 8px;
  transition: all 0.2s ease;
}

.confirm-support-btn:hover {
  background-color: var(--okx-lime-hover);
}

/* Search Modal */
.search-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 250;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 20px 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.search-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.search-modal-content {
  background-color: #121212;
  border: 1px solid #282828;
  border-radius: 16px;
  width: 100%;
  max-width: 560px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.95);
}

.search-input-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid #222222;
}

.search-input-header input {
  flex: 1;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 16px;
}

.search-crypto-list {
  max-height: 360px;
  overflow-y: auto;
  padding: 12px 0;
}

.crypto-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.crypto-result-item:hover {
  background-color: #1e1e1e;
}

.crypto-info-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.token-icon-bitcoin {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: #f7931a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  color: #ffffff;
}

.usd-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: #2b6cb0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
}

.crypto-sym {
  font-weight: 700;
  color: #ffffff;
  font-size: 14px;
}

.crypto-name {
  font-size: 12px;
  color: #777777;
}

.crypto-price {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  text-align: right;
}

.crypto-change {
  font-size: 12px;
  text-align: right;
}

.crypto-change.up {
  color: var(--okx-green);
}

.crypto-change.down {
  color: var(--okx-red);
}
