/* =========================================================
   InnoRight — Global IP Service Platform
   Custom Styles (complements Tailwind CDN)
   Aesthetic: Institutional Elegance meets Global Tech
   ========================================================= */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400;1,600&family=DM+Sans:wght@300;400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&family=Ma+Shan+Zheng&family=Zhi+Mang+Xing&display=swap');

/* ---- CSS Variables / Design Tokens ---- */
:root {
  --navy:       #1A3A5C;
  --navy-dark:  #0F2337;
  --navy-light: #1E4570;
  --blue:       #2E75B6;
  --blue-light: #4A90D9;
  --gold:       #C8963E;
  --gold-light: #E0B96A;
  --gold-pale:  #F9F1E2;
  --success:    #2E8B57;
  --bg:         #F8F9FC;
  --surface:    #FFFFFF;
  --text-primary:   #1A1A2E;
  --text-secondary: #5A6477;
  --border:     #E2E8F0;
  --shadow-card: 0 2px 16px rgba(26,58,92,0.06);
  --shadow-hover: 0 8px 32px rgba(26,58,92,0.12);
  --shadow-gold:  0 4px 20px rgba(200,150,62,0.2);
  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body-en: 'DM Sans', sans-serif;
  --font-body-cn: 'Noto Sans SC', 'PingFang SC', sans-serif;
  --font-kaishu: 'Zhi Mang Xing', 'Ma Shan Zheng', 'KaiTi', 'STKaiti', serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body-en);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

body.lang-zh {
  font-family: var(--font-body-cn);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
}

body.lang-zh h1,
body.lang-zh h2,
body.lang-zh h3 {
  font-family: var(--font-body-cn);
  font-weight: 700;
}

/* ---- Page Wrapper ---- */
#app {
  min-height: 100vh;
}

.page {
  display: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.page.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* ---- Header / Navigation ---- */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
  background: rgba(26,58,92,0.0);
}

#header.scrolled {
  background: rgba(26,58,92,0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(200,150,62,0.3), 0 4px 24px rgba(0,0,0,0.15);
}

#header.solid {
  background: var(--navy);
  box-shadow: 0 1px 0 rgba(200,150,62,0.3), 0 4px 24px rgba(0,0,0,0.15);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
}
.logo-accent {
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  display: inline-block;
  margin-left: 1px;
  vertical-align: super;
  flex-shrink: 0;
}

/* Logo language switching */
.logo-zh {
  display: none;
}
body.lang-zh .logo-en {
  display: none !important;
}
body.lang-zh .logo-zh {
  display: inline-block;
  font-family: var(--font-kaishu);
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: #fff;
  position: relative;
  padding-bottom: 2px;
}
body.lang-zh .logo-zh::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.6;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
}
.nav-links a {
  display: block;
  padding: 0.5rem 1rem;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 1rem; right: 1rem;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}
.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}
.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.lang-toggle {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.1);
  border-radius: 100px;
  padding: 2px;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.2);
}
.lang-toggle span {
  display: block;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  transition: all 0.2s;
  user-select: none;
}
.lang-toggle span.active {
  background: var(--gold);
  color: #fff;
}

.btn-outline-white {
  padding: 0.45rem 1.1rem;
  border: 1.5px solid rgba(255,255,255,0.6);
  border-radius: 100px;
  color: rgba(255,255,255,0.9);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  background: transparent;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
  color: #fff;
}

.btn-gold {
  padding: 0.45rem 1.2rem;
  background: var(--gold);
  border: 1.5px solid var(--gold);
  border-radius: 100px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(200,150,62,0.3);
}
.btn-gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  box-shadow: 0 4px 16px rgba(200,150,62,0.4);
  transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: rgba(255,255,255,0.85);
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0; right: 0;
  width: 300px; height: 100vh;
  background: var(--navy-dark);
  z-index: 2000;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1);
  padding: 6rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.mobile-drawer.open {
  transform: translateX(0);
}
.mobile-drawer a {
  display: block;
  padding: 1rem 0;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color 0.2s;
}
.mobile-drawer a:hover { color: var(--gold); }
.mobile-drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1999;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.mobile-drawer-overlay.open {
  opacity: 1; pointer-events: all;
}

/* ---- Hero Section ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #0F2337 0%, #1A3A5C 50%, #1E4570 100%);
  overflow: hidden;
  padding-top: 72px;
}

/* Animated geometric background */
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-bg::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46,117,182,0.15) 0%, transparent 70%);
  top: -200px; right: -100px;
  animation: pulse-glow 6s ease-in-out infinite;
}
.hero-bg::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,150,62,0.08) 0%, transparent 70%);
  bottom: -100px; left: 10%;
  animation: pulse-glow 8s ease-in-out infinite 2s;
}

@keyframes pulse-glow {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 1; }
}

/* Grid pattern overlay */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 2rem;
  width: 100%;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(200,150,62,0.15);
  border: 1px solid rgba(200,150,62,0.3);
  border-radius: 100px;
  padding: 0.35rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero-tag::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  color: #fff;
  margin-bottom: 1.5rem;
  line-height: 1.15;
  max-width: 700px;
}

.hero-title .accent {
  color: var(--gold-light);
  position: relative;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.72);
  max-width: 540px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.btn-hero-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  background: var(--gold);
  color: #fff;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.25s;
  box-shadow: 0 4px 20px rgba(200,150,62,0.35);
}
.btn-hero-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(200,150,62,0.45);
}

.btn-hero-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s;
}
.btn-hero-outline:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.8);
  transform: translateY(-2px);
}

/* Hero Stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 2rem;
  max-width: 700px;
}
.stat-item {
  text-align: left;
  padding-right: 2rem;
}
.stat-item + .stat-item {
  padding-left: 2rem;
  border-left: 1px solid rgba(255,255,255,0.12);
}
.stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
  display: block;
}
.stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  margin-top: 0.25rem;
  font-weight: 500;
}

/* Hero right side SVG illustration */
.hero-illustration {
  position: absolute;
  right: 4%;
  top: 50%;
  transform: translateY(-50%);
  width: 42%;
  max-width: 560px;
  opacity: 0.85;
  pointer-events: none;
}

/* ---- Section Wrappers ---- */
.section {
  padding: 5rem 0;
}
.section-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--navy);
  margin-bottom: 0.75rem;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

/* Gold divider line */
.gold-divider {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
  margin: 1rem auto;
}

/* ---- Service Cards ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  display: block;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.service-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
  border-color: var(--gold);
}
.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--gold-pale), #fff);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--gold);
}
.service-card h3 {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.service-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: gap 0.2s, color 0.2s;
}
.service-card:hover .card-link {
  gap: 0.5rem;
  color: var(--gold);
}

/* ---- Inbound/Outbound Split Section ---- */
.split-section {
  background: linear-gradient(135deg, #F0F5FB 0%, #EBF2F8 100%);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}
.split-section::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 1px;
  height: 60%;
  background: linear-gradient(to bottom, transparent, var(--border), var(--gold), var(--border), transparent);
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  gap: 0;
  align-items: center;
}
.split-column {
  padding: 2.5rem 2.5rem;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
}
.split-column.inbound { border-top: 4px solid var(--blue); }
.split-column.outbound { border-top: 4px solid var(--gold); }

.split-column h3 {
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.split-column .split-sub {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.split-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.split-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-primary);
}
.split-list li::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}

.split-bridge {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.5rem;
}
.bridge-icon {
  width: 44px; height: 44px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  box-shadow: var(--shadow-gold);
}

/* ---- How It Works ---- */
.steps-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.steps-container::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--gold) 100%);
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 1rem;
  position: relative;
}
.step-number {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
  border: 3px solid;
  transition: all 0.3s;
}
.step-item:nth-child(1) .step-number { background: var(--navy); color: #fff; border-color: var(--navy); }
.step-item:nth-child(2) .step-number { background: var(--blue); color: #fff; border-color: var(--blue); }
.step-item:nth-child(3) .step-number { background: var(--gold); color: #fff; border-color: var(--gold); }
.step-item:nth-child(4) .step-number { background: var(--success); color: #fff; border-color: var(--success); }
.step-item h4 {
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.step-item p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ---- Agents Cards Scroll ---- */
.agents-scroll {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.agents-scroll::-webkit-scrollbar { height: 4px; }
.agents-scroll::-webkit-scrollbar-track { background: transparent; }
.agents-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.agent-card {
  flex-shrink: 0;
  width: 220px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all 0.3s;
  cursor: pointer;
  text-decoration: none;
}
.agent-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
  border-color: var(--blue);
}
.agent-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 0.75rem;
}
.agent-card .company-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}
.agent-card .country {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}
.tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 100px;
  background: #EFF4FB;
  color: var(--blue);
  border: 1px solid rgba(46,117,182,0.15);
}
.tag.gold { background: var(--gold-pale); color: var(--gold); border-color: rgba(200,150,62,0.2); }
.stars {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 0.8rem;
  color: var(--gold);
  margin-bottom: 0.25rem;
}
.stars .count { color: var(--text-secondary); font-size: 0.75rem; }
.cases-text { font-size: 0.75rem; color: var(--text-secondary); }

/* ---- Testimonials ---- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  transition: box-shadow 0.3s;
}
.testimonial-card:hover {
  box-shadow: var(--shadow-hover);
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 1rem; right: 1.5rem;
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--gold);
  opacity: 0.2;
  line-height: 1;
}
.testimonial-text {
  font-size: 0.9rem;
  color: var(--text-primary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.author-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  flex-shrink: 0;
}
.author-info .name { font-size: 0.9rem; font-weight: 600; color: var(--navy); }
.author-info .company { font-size: 0.78rem; color: var(--text-secondary); }

/* ---- Stats Banner ---- */
.stats-banner {
  background: linear-gradient(135deg, #0F2337 0%, #1A3A5C 100%);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}
.stats-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 40px 40px;
}
.stats-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  text-align: center;
}
.stats-grid-item {
  padding: 1.5rem 2rem;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.stats-grid-item:last-child { border-right: none; }
.stats-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stats-label {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
  margin-bottom: 0.35rem;
}
.stats-sublabel {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* ---- CTA Section ---- */
.cta-section {
  padding: 5rem 0;
  text-align: center;
}
.cta-section h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--navy);
  margin-bottom: 1rem;
}
.cta-section p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: var(--gold);
  color: #fff;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.25s;
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s;
}
.btn-secondary:hover {
  background: var(--navy);
  color: #fff;
}

/* ---- Footer ---- */
footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 0;
}
.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .logo-text { font-size: 1.3rem; }
.footer-brand .logo-zh { font-size: 1.5rem; }
.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.7;
  margin-top: 0.75rem;
  max-width: 280px;
  color: rgba(255,255,255,0.5);
}
.footer-col h4 {
  font-family: var(--font-body-en);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.25rem;
}
body.lang-zh .footer-col h4 { font-family: var(--font-body-cn); }
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-col ul a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--gold-light); }
.footer-contact p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-contact p a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-contact p a:hover {
  color: var(--gold-light);
  text-decoration: underline;
}
.social-icons {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.social-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: all 0.2s;
  font-size: 0.85rem;
}
.social-icon:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}
.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}
.footer-bottom a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-bottom a:hover { color: var(--gold-light); }

/* ---- Page Header Band ---- */
.page-header {
  background: linear-gradient(135deg, #0F2337, #1A3A5C);
  padding: 6rem 2rem 4rem;
  text-align: center;
  margin-top: 72px;
}
.page-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: #fff;
  margin-bottom: 0.75rem;
}
.page-header p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.65);
  max-width: 500px;
  margin: 0 auto;
}

/* ---- Services Page ---- */
.services-full-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.service-full-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.3s;
  position: relative;
}
.service-full-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
  border-color: var(--gold);
}
.service-meta {
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
  font-size: 0.8rem;
}
.service-meta span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-secondary);
}
.service-features {
  list-style: none;
  margin-bottom: 1.5rem;
}
.service-features li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 0.3rem 0;
  padding-left: 1.25rem;
  position: relative;
}
.service-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 600;
}
.price-badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--gold-pale);
  color: var(--gold);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(200,150,62,0.2);
}

/* ---- Agents Page ---- */
.agents-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  margin-top: 2rem;
}
.filter-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  height: fit-content;
  position: sticky;
  top: 90px;
}
.filter-panel h3 {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.filter-group {
  margin-bottom: 1.5rem;
}
.filter-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}
.filter-group select,
.filter-group input[type="text"] {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text-primary);
  background: var(--bg);
  outline: none;
  transition: border-color 0.2s;
}
.filter-group select:focus,
.filter-group input[type="text"]:focus {
  border-color: var(--blue);
}
.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  cursor: pointer;
}
.filter-checkbox input { accent-color: var(--blue); }
.filter-checkbox span { font-size: 0.84rem; color: var(--text-primary); }

.agents-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.agent-full-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all 0.3s;
}
.agent-full-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--blue);
  transform: translateY(-2px);
}
.agent-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}
.agent-avatar-lg {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  flex-shrink: 0;
}
.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--success);
  background: rgba(46,139,87,0.08);
  padding: 2px 8px;
  border-radius: 100px;
  border: 1px solid rgba(46,139,87,0.2);
}
.agent-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0.75rem 0;
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.agent-meta-row span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.agent-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
}
.btn-sm-primary {
  flex: 1;
  padding: 0.5rem 0;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.btn-sm-primary:hover { background: var(--blue); }
.btn-sm-outline {
  flex: 1;
  padding: 0.5rem 0;
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.btn-sm-outline:hover { border-color: var(--navy); }

/* ---- Auth Pages ---- */
.auth-page {
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem 4rem;
  padding-top: 96px;
}
.auth-card {
  width: 100%;
  max-width: 480px;
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 48px rgba(26,58,92,0.1);
  border: 1px solid var(--border);
  overflow: hidden;
}
.auth-header {
  background: linear-gradient(135deg, #0F2337, #1A3A5C);
  padding: 2.5rem 2.5rem 2rem;
  text-align: center;
}
.auth-header h2 {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
}
.auth-header p { color: rgba(255,255,255,0.6); font-size: 0.875rem; }
.auth-body { padding: 2rem 2.5rem 2.5rem; }

.form-group {
  margin-bottom: 1.25rem;
}
.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}
.form-input {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text-primary);
  background: var(--bg);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}
.form-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(46,117,182,0.1);
  background: #fff;
}
.form-input.error { border-color: #e53e3e; }
.form-error { font-size: 0.75rem; color: #e53e3e; margin-top: 0.25rem; display: none; }

.tab-switcher {
  display: flex;
  background: var(--bg);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 1.5rem;
}
.tab-btn {
  flex: 1;
  padding: 0.6rem;
  border: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  background: transparent;
  color: var(--text-secondary);
}
.tab-btn.active {
  background: var(--surface);
  color: var(--navy);
  box-shadow: var(--shadow-card);
}

.divider-or {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.25rem 0;
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.divider-or::before, .divider-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.btn-google {
  width: 100%;
  padding: 0.65rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: all 0.2s;
}
.btn-google:hover { border-color: var(--blue); background: #f7faff; }

.btn-full {
  width: 100%;
  padding: 0.8rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  border: none;
  margin-top: 0.5rem;
}
.btn-full.primary {
  background: var(--navy);
  color: #fff;
}
.btn-full.primary:hover { background: var(--blue); }

/* ---- Dashboard ---- */
.dashboard-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 72px);
  margin-top: 72px;
}
.dashboard-sidebar {
  background: var(--navy-dark);
  padding: 2rem 0;
  position: sticky;
  top: 72px;
  height: calc(100vh - 72px);
  overflow-y: auto;
}
.sidebar-logo {
  padding: 0 1.5rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 1rem;
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.sidebar-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  flex-shrink: 0;
}
.sidebar-user-info .name { font-size: 0.85rem; font-weight: 600; color: #fff; }
.sidebar-user-info .role { font-size: 0.72rem; color: rgba(255,255,255,0.45); }
.sidebar-nav {
  padding: 0 0.75rem;
}
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.75rem;
  border-radius: 8px;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
  margin-bottom: 0.2rem;
}
.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: rgba(255,255,255,0.08);
  color: #fff;
}
.sidebar-nav a.active {
  background: rgba(200,150,62,0.15);
  color: var(--gold-light);
}
.sidebar-section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  padding: 0.75rem 1.5rem 0.25rem;
  display: block;
}

.dashboard-main {
  background: var(--bg);
  padding: 2rem;
  overflow-y: auto;
}
.dashboard-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}
.dashboard-topbar h1 {
  font-size: 1.5rem;
  color: var(--navy);
}

.stats-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}
.stats-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: box-shadow 0.2s;
}
.stats-card:hover { box-shadow: var(--shadow-hover); }
.stats-card-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
}
.stats-card-info .value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
}
.stats-card-info .label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.2rem;
}
.stats-card-info .change {
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 0.25rem;
}
.change.up { color: var(--success); }
.change.down { color: #e53e3e; }

/* Panel / Card */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.panel-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.panel-header h3 {
  font-size: 1rem;
  color: var(--navy);
}
.panel-body { padding: 1.5rem; }

/* Status Badges */
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
}
.status.pending { background: #FFF8E7; color: #B7791F; border: 1px solid #F6AD55; }
.status.in-progress { background: #EBF8FF; color: #2B6CB0; border: 1px solid #90CDF4; }
.status.review { background: #E9D8FD; color: #6B46C1; border: 1px solid #B794F4; }
.status.completed { background: #F0FFF4; color: #276749; border: 1px solid #68D391; }
.status.cancelled { background: #FFF5F5; color: #9B2C2C; border: 1px solid #FC8181; }

/* Table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.data-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #f8fbff; }
.data-table tr { cursor: pointer; }

/* Request Cards */
.request-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: box-shadow 0.2s;
  cursor: pointer;
}
.request-item:hover { box-shadow: var(--shadow-hover); }
.request-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
}
.request-info { flex: 1; min-width: 0; }
.request-info h4 { font-size: 0.9rem; color: var(--navy); font-weight: 600; margin-bottom: 0.2rem; }
.request-info p { font-size: 0.8rem; color: var(--text-secondary); }
.request-meta { text-align: right; flex-shrink: 0; }
.request-meta .amount { font-size: 0.9rem; font-weight: 600; color: var(--navy); }
.request-meta .date { font-size: 0.75rem; color: var(--text-secondary); margin-top: 0.2rem; }

/* Multi-step Form */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 2.5rem;
}
.step-dot {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--border);
  color: var(--text-secondary);
  transition: all 0.3s;
  position: relative;
  z-index: 1;
}
.step-dot.active { background: var(--navy); color: #fff; }
.step-dot.completed { background: var(--success); color: #fff; }
.step-line {
  height: 2px;
  width: 100px;
  background: var(--border);
  transition: background 0.3s;
}
.step-line.completed { background: var(--success); }

.step-content { display: none; }
.step-content.active { display: block; }

.service-type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.service-type-card {
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
.service-type-card:hover { border-color: var(--blue); }
.service-type-card.selected {
  border-color: var(--gold);
  background: var(--gold-pale);
}
.service-type-card .icon { font-size: 1.8rem; margin-bottom: 0.5rem; }
.service-type-card h4 { font-size: 0.9rem; color: var(--navy); }
.service-type-card p { font-size: 0.75rem; color: var(--text-secondary); margin-top: 0.25rem; }

/* ---- About Page ---- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.3s;
}
.team-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}
.team-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.5rem;
  color: #fff;
  margin: 0 auto 1rem;
  border: 3px solid var(--gold);
}
.team-card h3 { font-size: 1.1rem; color: var(--navy); margin-bottom: 0.25rem; }
.team-card .role { font-size: 0.85rem; color: var(--gold); font-weight: 600; margin-bottom: 0.75rem; }
.team-card p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; }

/* Advantages cards */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.advantage-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.25rem;
  text-align: center;
  transition: all 0.3s;
}
.advantage-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.advantage-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.advantage-card h4 { font-size: 0.95rem; color: var(--navy); margin-bottom: 0.5rem; }
.advantage-card p { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.5; }

/* Agent Detail */
.agent-detail-hero {
  background: linear-gradient(135deg, #0F2337, #1A3A5C);
  padding: 6rem 2rem 3rem;
  margin-top: 72px;
}
.agent-detail-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.agent-detail-avatar {
  width: 88px; height: 88px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  border: 3px solid rgba(200,150,62,0.4);
}
.agent-detail-info h1 { color: #fff; font-size: 1.8rem; margin-bottom: 0.35rem; }
.agent-detail-info .meta { color: rgba(255,255,255,0.6); font-size: 0.9rem; margin-bottom: 0.75rem; }

.agent-detail-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
}
.review-item {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}
.review-item:last-child { border-bottom: none; }
.review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.review-author { font-size: 0.875rem; font-weight: 600; color: var(--navy); }
.review-date { font-size: 0.78rem; color: var(--text-secondary); }
.review-text { font-size: 0.875rem; color: var(--text-primary); line-height: 1.6; }

/* Sticky inquiry card */
.inquiry-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: sticky;
  top: 90px;
  box-shadow: var(--shadow-card);
}
.inquiry-card h3 { font-size: 1rem; color: var(--navy); margin-bottom: 1.25rem; }
.price-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.price-amount {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--gold);
  font-weight: 700;
}
.price-unit { font-size: 0.82rem; color: var(--text-secondary); }

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 2rem;
}
.page-btn {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-primary);
  transition: all 0.2s;
}
.page-btn:hover, .page-btn.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

/* Notification toggles */
.toggle-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}
.toggle-item:last-child { border-bottom: none; }
.toggle-info .toggle-label { font-size: 0.9rem; font-weight: 500; color: var(--text-primary); }
.toggle-info .toggle-desc { font-size: 0.78rem; color: var(--text-secondary); }
.toggle-switch {
  position: relative;
  width: 44px; height: 24px;
  flex-shrink: 0;
  cursor: pointer;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-track {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 100px;
  transition: background 0.25s;
}
.toggle-thumb {
  position: absolute;
  left: 3px; top: 3px;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.25s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.toggle-switch input:checked ~ .toggle-track { background: var(--blue); }
.toggle-switch input:checked ~ .toggle-thumb { transform: translateX(20px); }

/* Search bar */
.search-bar {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 0.6rem 1rem;
  gap: 0.75rem;
  transition: border-color 0.2s;
  flex: 1;
}
.search-bar:focus-within { border-color: var(--blue); }
.search-bar input {
  border: none;
  outline: none;
  font-size: 0.9rem;
  color: var(--text-primary);
  background: transparent;
  width: 100%;
}
.search-bar input::placeholder { color: var(--text-secondary); }

/* Accordion (order details) */
.accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.accordion-header {
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: background 0.2s;
}
.accordion-header:hover { background: var(--bg); }
.accordion-body {
  display: none;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.accordion-body.open { display: block; }
.accordion-chevron {
  transition: transform 0.25s;
}
.accordion-chevron.open { transform: rotate(180deg); }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.modal-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 480px;
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  transform: scale(0.95) translateY(20px);
  transition: transform 0.3s;
}
.modal-overlay.open .modal-card {
  transform: scale(1) translateY(0);
}

/* Profile Page */
.profile-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* ---- Scroll Animations ---- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }

/* ==========================================================
   CUSTOM CURSOR FOLLOWER
   ========================================================== */
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transition: width 0.25s ease, height 0.25s ease, background 0.25s ease, opacity 0.25s ease;
  transform: translate(-50%, -50%);
  mix-blend-mode: normal;
  opacity: 0;
}
.cursor-dot.visible { opacity: 1; }
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 40px; height: 40px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transition: width 0.35s cubic-bezier(0.16,1,0.3,1), height 0.35s cubic-bezier(0.16,1,0.3,1),
              border-color 0.3s ease, background 0.3s ease, opacity 0.3s ease;
  transform: translate(-50%, -50%);
  opacity: 0;
}
.cursor-ring.visible { opacity: 0.6; }

/* Cursor hover states */
.cursor-dot.hovering {
  width: 12px; height: 12px;
  background: var(--gold-light);
}
.cursor-ring.hovering {
  width: 56px; height: 56px;
  border-color: var(--gold-light);
  background: rgba(200,150,62,0.06);
  opacity: 0.8;
}

/* Cursor on clickable cards */
.cursor-dot.on-card {
  width: 64px; height: 64px;
  background: rgba(200,150,62,0.12);
  border: 1.5px solid var(--gold);
  backdrop-filter: blur(2px);
}
.cursor-ring.on-card {
  width: 80px; height: 80px;
  border-color: rgba(200,150,62,0.2);
  opacity: 0.4;
}
/* Cursor card label text (via ::after) — handled in JS with a child span */
.cursor-dot .cursor-label {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.cursor-dot.on-card .cursor-label { opacity: 1; }

/* Hide custom cursor on touch devices */
@media (hover: none) and (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none !important; }
}

/* ==========================================================
   CARD EXPAND ANIMATION
   ========================================================== */

/* Service cards — expandable on click */
.service-card {
  position: relative;
  overflow: hidden;
}
.service-card .card-expand-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s cubic-bezier(0.16,1,0.3,1), opacity 0.4s ease, padding 0.4s ease;
  padding: 0 0;
  border-top: 0px solid transparent;
}
.service-card.expanded .card-expand-content {
  max-height: 400px;
  opacity: 1;
  padding: 1rem 0 0;
  border-top: 1px solid var(--border);
}
.service-card .expand-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue);
  cursor: pointer;
  transition: color 0.2s, gap 0.2s;
  margin-top: 0.5rem;
  user-select: none;
}
.service-card .expand-toggle:hover { color: var(--gold); }
.service-card .expand-toggle .arrow {
  display: inline-block;
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1);
}
.service-card.expanded .expand-toggle .arrow {
  transform: rotate(180deg);
}

/* Service full cards on Services page — expandable */
.service-full-card {
  position: relative;
  overflow: hidden;
}
.service-full-card .card-expand-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s cubic-bezier(0.16,1,0.3,1), opacity 0.4s ease, padding 0.4s ease;
  padding: 0 0;
  border-top: 0px solid transparent;
}
.service-full-card.expanded .card-expand-content {
  max-height: 500px;
  opacity: 1;
  padding: 1rem 0 0;
  border-top: 1px solid var(--border);
}
.service-full-card .expand-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue);
  cursor: pointer;
  transition: color 0.2s, gap 0.2s;
  margin-top: 0.75rem;
  user-select: none;
}
.service-full-card .expand-toggle:hover { color: var(--gold); }
.service-full-card .expand-toggle .arrow {
  display: inline-block;
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1);
}
.service-full-card.expanded .expand-toggle .arrow {
  transform: rotate(180deg);
}

/* Agent card expand on hover — reveal extra info */
.agent-card {
  position: relative;
  overflow: hidden;
}
.agent-card .agent-expand-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.45s cubic-bezier(0.16,1,0.3,1), opacity 0.35s ease, padding 0.35s ease;
  padding: 0;
}
.agent-card:hover .agent-expand-content,
.agent-card.expanded .agent-expand-content {
  max-height: 200px;
  opacity: 1;
  padding: 0.75rem 0 0;
}

/* Card magnetic tilt effect */
.service-card,
.service-full-card,
.agent-card {
  transform-style: preserve-3d;
  perspective: 800px;
}
.card-tiltable {
  transition: transform 0.15s ease-out, box-shadow 0.3s ease;
}

/* Expand ripple effect on card click */
.card-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(200,150,62,0.15);
  pointer-events: none;
  transform: scale(0);
  animation: cardRipple 0.6s cubic-bezier(0.16,1,0.3,1) forwards;
}
@keyframes cardRipple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Agents listing page — card expand */
.agents-grid .agent-list-card {
  position: relative;
  overflow: hidden;
}
.agents-grid .agent-list-card .agent-detail-expand {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s cubic-bezier(0.16,1,0.3,1), opacity 0.4s ease, padding 0.4s ease;
  padding: 0;
}
.agents-grid .agent-list-card.expanded .agent-detail-expand {
  max-height: 400px;
  opacity: 1;
  padding: 1rem 0 0;
}
.agents-grid .agent-list-card .expand-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue);
  cursor: pointer;
  transition: color 0.2s;
  user-select: none;
}
.agents-grid .agent-list-card .expand-toggle:hover { color: var(--gold); }
.agents-grid .agent-list-card .expand-toggle .arrow {
  display: inline-block;
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1);
}
.agents-grid .agent-list-card.expanded .expand-toggle .arrow {
  transform: rotate(180deg);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-illustration { display: none; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .stat-item + .stat-item { border-left: none; padding-left: 0; }
  .services-full-grid { grid-template-columns: repeat(2, 1fr); }
  .agents-grid { grid-template-columns: repeat(2, 1fr); }
  .advantages-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid-item { border-right: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .agent-detail-content { grid-template-columns: 1fr; }
  .profile-layout { grid-template-columns: 1fr; }
  .stats-cards { grid-template-columns: repeat(2, 1fr); }
  .split-grid { grid-template-columns: 1fr; }
  .split-bridge { display: none; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .header-actions .btn-outline-white,
  .header-actions .btn-gold { display: none; }
  .hamburger { display: flex; }

  .services-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .steps-container {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .steps-container::before { display: none; }
  .agents-layout { grid-template-columns: 1fr; }
  .filter-panel { position: static; }
  .agents-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .advantages-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .services-full-grid { grid-template-columns: 1fr; }
  .dashboard-layout { grid-template-columns: 1fr; }
  .dashboard-sidebar { display: none; }
  .stats-cards { grid-template-columns: 1fr 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .service-type-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-layout { grid-template-columns: 1fr; }
  .auth-body { padding: 1.5rem; }
}

@media (max-width: 480px) {
  .team-grid { grid-template-columns: 1fr; }
  .advantages-grid { grid-template-columns: 1fr; }
  .stats-cards { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .service-type-grid { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; }
}
