:root {
  --primary: #1C85E8;
  --primary-dark: #2B6CB0;
  --teal: #0a4042;
  --teal-light: #0e454a;
  --bg-light: #EFF8FA;
  --white: #FFFFFF;
  --footer-bg: #041329;
  --accent: #1da795;
  --text: #4a5568;
  --heading-font: 'Poppins', sans-serif;
  --body-font: 'Inter', -apple-system, sans-serif;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s ease;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

.main-content {
  padding-top: 72px;
  padding-bottom: 40px;
}

body {
  font-family: var(--body-font);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 700;
  line-height: 1.25;
  color: #1a202c;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
}

ul {
  list-style: none;
}

.container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Top Header / Navigation */
/* Enhanced header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #0a9a7a 0%, #0090b4 100%);
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,180,216,0.25);
  height: 72px;
  border-bottom: 2px solid rgba(255,255,255,0.25);
}

.site-header::before,
.site-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background-repeat: repeat-x;
  background-size: 200px auto;
  pointer-events: none;
  mix-blend-mode: screen;
}

.site-header::before {
  background-image: url('/images/bb.webp');
  animation: headerFloat1 40s linear infinite;
}

.site-header::after {
  background-image: url('/images/b1.webp');
  animation: headerFloat2 55s linear infinite;
}

@keyframes headerFloat1 {
  0% { background-position: 0 0; }
  100% { background-position: 600px 0; }
}

@keyframes headerFloat2 {
  0% { background-position: 0 0; }
  100% { background-position: -600px 0; }
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 24px;
  color: #fff;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  height: 40px;
  width: auto;
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-left {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-left > a {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 10px;
  transition: all var(--transition);
}
.nav-left > a:visited {
  color: #fff;
}
.nav-menu > a,
.nav-menu .dropdown-trigger {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 6px;
  transition: all var(--transition);
}
.nav-left > a:hover,
.nav-menu > a:hover,
.nav-menu .dropdown-trigger:hover {
  color: #fff;
  transform: scale(1.06);
  background: linear-gradient(135deg,rgba(255,255,255,0.12),rgba(255,255,255,0.06));
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.nav-actions .btn-accent {
  background: #fff;
  color: #00b4d8;
  border-color: #fff;
}
.nav-actions .btn-accent:visited {
  color: #00b4d8;
}
.nav-actions .btn-accent:hover {
  background: #f0fdff;
  color: #0096b4;
  border-color: #f0fdff;
}
.nav-actions .btn-outline-light {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.7);
}
.nav-actions .btn-outline-light:visited {
  color: #fff;
}
.nav-actions .btn-outline-light:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
  color: #fff;
}

/* Dropdown */
.dropdown {
  position: relative;
}
.dropdown-trigger {
  cursor: pointer;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
  user-select: none;
}
.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 170px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  transition-delay: 0.3s, 0.3s;
  z-index: 100;
  pointer-events: none;
}
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
  transition-delay: 0s, 0s;
}
.dropdown-menu a {
  display: block;
  padding: 10px 22px;
  color: #4a5568;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.dropdown-menu a:visited {
  color: #4a5568;
}
.dropdown-menu a:hover {
  background: #f0fdff;
  color: #00b4d8;
}
.dropdown-menu a::after {
  display: none;
}
.dropdown-lang .dropdown-menu {
  min-width: 120px;
}

.lang-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  filter: brightness(0) invert(1);
  transition: transform 0.3s ease;
}
.lang-trigger:hover {
  transform: rotate(30deg) scale(1.3);
}

.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all var(--transition);
  position: relative;
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: '';
  position: absolute;
  left: 0;
}

.nav-toggle-label span::before {
  top: -7px;
}

.nav-toggle-label span::after {
  top: 7px;
}

#nav-toggle:checked ~ .nav-toggle-label span {
  background: transparent;
}

#nav-toggle:checked ~ .nav-toggle-label span::before {
  top: 0;
  transform: rotate(45deg);
}

#nav-toggle:checked ~ .nav-toggle-label span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Hero Section */
.hero {
  padding: 140px 0 100px;
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--white) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(28,133,232,0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero h1 {
  font-size: 60px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #1a202c 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 18px;
  color: var(--text);
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-badge {
  display: inline-block;
  background: rgba(28,133,232,0.1);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 24px;
}

/* Section Common */
.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 16px;
  font-size: 36px;
}

.section-subtitle {
  text-align: center;
  color: var(--text);
  max-width: 600px;
  margin: 0 auto 48px;
  font-size: 16px;
}

/* Features Grid */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  border: 1px solid #edf2f7;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.feature-card .icon {
  font-size: 40px;
  margin-bottom: 16px;
  display: block;
}

.feature-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
}

/* Payment Methods */
.payment-section {
  text-align: center;
  background: var(--bg-light);
}

.payment-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 800px;
  margin: 0 auto;
}

.payment-chip {
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 500;
  color: #2d3748;
  transition: all var(--transition);
}

.payment-chip:hover {
  border-color: transparent;
  color: #fff;
  transform: scale(1.08);
  background: linear-gradient(135deg, #0a9a7a, #0090b4);
  box-shadow: 0 4px 14px rgba(10,154,122,0.3);
}

.payment-list.animate .payment-chip {
  opacity:0;
  transform:translateY(20px);
  animation:chipFadeIn 0.7s ease-out forwards;
}
.payment-list.animate .payment-chip:nth-child(1)  { animation-delay:0.00s; }
.payment-list.animate .payment-chip:nth-child(2)  { animation-delay:0.10s; }
.payment-list.animate .payment-chip:nth-child(3)  { animation-delay:0.20s; }
.payment-list.animate .payment-chip:nth-child(4)  { animation-delay:0.30s; }
.payment-list.animate .payment-chip:nth-child(5)  { animation-delay:0.40s; }
.payment-list.animate .payment-chip:nth-child(6)  { animation-delay:0.50s; }
.payment-list.animate .payment-chip:nth-child(7)  { animation-delay:0.60s; }
.payment-list.animate .payment-chip:nth-child(8)  { animation-delay:0.70s; }
.payment-list.animate .payment-chip:nth-child(9)  { animation-delay:0.80s; }
.payment-list.animate .payment-chip:nth-child(10) { animation-delay:0.90s; }
.payment-list.animate .payment-chip:nth-child(11) { animation-delay:1.00s; }
.payment-list.animate .payment-chip:nth-child(12) { animation-delay:1.10s; }
.payment-list.animate .payment-chip:nth-child(13) { animation-delay:1.20s; }
.payment-list.animate .payment-chip:nth-child(14) { animation-delay:1.30s; }
.payment-list.animate .payment-chip:nth-child(15) { animation-delay:1.40s; }
.payment-list.animate .payment-chip:nth-child(16) { animation-delay:1.50s; }
.payment-list.animate .payment-chip:nth-child(17) { animation-delay:1.60s; }
.payment-list.animate .payment-chip:nth-child(18) { animation-delay:1.70s; }
.payment-list.animate .payment-chip:nth-child(19) { animation-delay:1.80s; }
.payment-list.animate .payment-chip:nth-child(20) { animation-delay:1.90s; }
.payment-list.animate .payment-chip:nth-child(21) { animation-delay:2.00s; }
.payment-list.animate .payment-chip:nth-child(22) { animation-delay:2.10s; }
.payment-list.animate .payment-chip:nth-child(23) { animation-delay:2.20s; }
.payment-list.animate .payment-chip:nth-child(24) { animation-delay:2.30s; }
.payment-list.animate .payment-chip:nth-child(25) { animation-delay:2.40s; }
.payment-list.animate .payment-chip:nth-child(26) { animation-delay:2.50s; }
.payment-list.animate .payment-chip:nth-child(27) { animation-delay:2.60s; }
.payment-list.animate .payment-chip:nth-child(28) { animation-delay:2.70s; }
.payment-list.animate .payment-chip:nth-child(29) { animation-delay:2.80s; }
.payment-list.animate .payment-chip:nth-child(30) { animation-delay:2.90s; }

@keyframes chipFadeIn {
  to { opacity:1; transform:translateY(0); }
}

/* Process Steps */
.process-section {
  background: var(--white);
}

.process-steps {
  display: flex;
  justify-content: center;
  position: relative;
  max-width: 960px;
  margin: 0 auto;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 60px;
  right: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 0;
}

.process-step {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0 12px;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 4px 14px rgba(28,133,232,0.3);
}

.process-step h4 {
  font-size: 14px;
  margin-bottom: 6px;
}

.process-step p {
  font-size: 12px;
  color: var(--text);
  line-height: 1.5;
}

/* Trust Section */
.trust-section {
  background: var(--bg-light);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.trust-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  border: 1px solid #edf2f7;
}

.trust-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.trust-card .icon {
  font-size: 40px;
  margin-bottom: 16px;
  display: block;
}

.trust-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.trust-card p {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, rgba(29,167,149,0.92), rgba(19,141,122,0.92)), url('/images/cta.webp') center/cover no-repeat;
  padding: 80px 0;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/images/b2.webp');
  background-repeat: repeat-x;
  background-size: 250px auto;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: screen;
  animation: ctaFloat 45s linear infinite;
}

@keyframes ctaFloat {
  0% { background-position: 0 0; }
  100% { background-position: 750px 0; }
}

.cta-banner h2 {
  font-size: 36px;
  color: var(--white);
  margin-bottom: 12px;
}

.cta-banner p {
  font-size: 17px;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 32px;
}

.cta-banner .container {
  position: relative;
  z-index: 1;
}

/* Footer */
.site-footer {
  background: linear-gradient(135deg, #041329 0%, #0d5043 100%);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 0;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/images/bb.webp');
  background-repeat: repeat-x;
  background-size: 200px auto;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: screen;
  animation: footerFloat 60s linear infinite;
}

@keyframes footerFloat {
  0% { background-position: 0 0; }
  100% { background-position: -600px 0; }
}

.site-footer .container {
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 16px;
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-col p {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.footer-col a {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  display: block;
  margin-bottom: 10px;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--white);
}

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

.footer-logo-img {
  width: auto;
  display: block;
  max-width: 100%;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.footer-bottom a {
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  display: inline;
  margin-left: 20px;
}

.footer-bottom a:hover {
  color: var(--white);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--body-font);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1.4;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #138d7a);
  color: var(--white);
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #138d7a, #0d6b5e);
  color: var(--white);
}

.btn-success {
  background: linear-gradient(135deg, var(--accent), #138d7a);
  color: var(--white);
  border: none;
}

.btn-success:hover {
  background: linear-gradient(135deg, #138d7a, #0d6b5e);
  border: none;
  color: var(--white);
}

.btn-danger {
  background: #e53e3e;
  color: var(--white);
  border: none;
}

.btn-danger:hover {
  background: #c53030;
  border-color: #c53030;
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.7);
}
.btn-outline-light:visited {
  color: #fff;
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
  color: #fff;
}

.btn-sm {
  font-size: 13px;
  padding: 8px 16px;
}

.btn-lg {
  font-size: 17px;
  padding: 16px 36px;
}

.btn-accent {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn-accent:hover {
  background: #138d7a;
  border-color: #138d7a;
  color: var(--white);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.badge-success {
  background: #c6f6d5;
  color: #22543d;
}

.badge-warning {
  background: #fefcbf;
  color: #744210;
}

.badge-danger {
  background: #fed7d7;
  color: #822727;
}

.badge-info {
  background: #bee3f8;
  color: #2a4365;
}

.badge-secondary {
  background: #edf2f7;
  color: #4a5568;
}

/* Flash Messages */
.flash-wrap {
  max-width: 700px;
  margin: 0 auto;
}

.flash {
  padding: 20px 24px 20px 60px;
  border-radius: var(--radius-sm);
  margin-top: 16px;
  margin-bottom: 20px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  position: relative;
}
.flash::before {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 700;
}
.flash-success {
  background: #f0fdf4;
  color: #166534;
  border: 2px solid #bbf7d0;
}
.flash-success::before { content: '✓'; }
.flash-error {
  background: #fef2f2;
  color: #991b1b;
  border: 2px solid #fecaca;
}
.flash-error::before { content: '✕'; }
.flash-info {
  background: #f0f9ff;
  color: #1e40af;
  border: 2px solid #bae6fd;
}
.flash-info::before { content: 'ℹ'; }

/* Cards */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
  border: 1px solid #edf2f7;
}

.card-header {
  border-bottom: 1px solid #edf2f7;
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.card-header h2, .card-header h3 {
  margin: 0;
}

.card-footer {
  border-top: 1px solid #edf2f7;
  padding-top: 16px;
  margin-top: 16px;
}

/* Tables */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table th {
  background: var(--bg-light);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: #2d3748;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.table td {
  padding: 12px 16px;
  border-bottom: 1px solid #edf2f7;
  color: var(--text);
}

.table tr:nth-child(even) td {
  background: #f7fafc;
}

.table tr:hover td {
  background: #edf2f7;
}

/* Page Header */
.page-header {
  padding: 40px 20px 36px;
  background: linear-gradient(135deg, #f0f9ff 0%, #f0fdfa 100%);
  text-align: center;
}
.page-header + .container {
  padding-top: 28px;
}

.escrow-detail-item { display:flex; flex-direction:column; gap:2px; }
.escrow-detail-label { font-size:0.75rem; text-transform:uppercase; letter-spacing:0.5px; color:var(--text); opacity:0.6; }
.escrow-detail-value { font-size:0.95rem; font-weight:600; color:#1a202c; }

.page-header h1 {
  font-size: 40px;
  margin-bottom: 12px;
}

.page-header p {
  font-size: 17px;
  color: var(--text);
  max-width: 600px;
  margin: 0 auto;
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay:target {
  display: flex;
}

.modal {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  position: relative;
  animation: modalIn 0.2s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal h2 {
  margin-bottom: 12px;
  font-size: 22px;
}

.modal p {
  margin-bottom: 20px;
  color: var(--text);
  font-size: 14px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.modal .btn-close {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 22px;
  color: #a0aec0;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
}

.modal .btn-close:hover {
  color: var(--text);
}

/* QR Code */
.qr-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border: 2px dashed #e2e8f0;
  border-radius: var(--radius);
  background: var(--white);
}

.qr-area img {
  max-width: 200px;
  height: auto;
}

.qr-area .qr-label {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text);
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 11px 14px;
  font-size: 15px;
  font-family: var(--body-font);
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: #2d3748;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(28,133,232,0.15);
}

.form-control::placeholder {
  color: #a0aec0;
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234a5568' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.form-help {
  font-size: 13px;
  color: #718096;
  margin-top: 4px;
}

.form-error {
  font-size: 13px;
  color: #e53e3e;
  margin-top: 4px;
}

/* Grid helpers */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.grid-1 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

/* Spacing helpers */
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.py-4 { padding-top: 32px; padding-bottom: 32px; }
.py-5 { padding-top: 48px; padding-bottom: 48px; }
.small { font-size: 0.85rem; }
.fw-bold { font-weight: 700; }
.text-muted { color: var(--text); opacity: 0.75; }

/* Form controls (Bootstrap compat) */
.form-group { margin-bottom: 20px; }
.form-label { display: block; margin-bottom: 6px; font-weight: 600; color: var(--teal); font-size: 0.95rem; }
.form-control, .form-select { width: 100%; padding: 12px; border: 2px solid #e2e8f0; border-radius: var(--radius-sm); font-size: 1rem; transition: border-color var(--transition); background: var(--white); }
.form-control:focus, .form-select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(28,133,232,0.15); }
.form-select { appearance: auto; }
.form-help { font-size: 0.85rem; color: var(--text); margin-top: 5px; opacity: 0.75; }
textarea.form-control { resize: vertical; min-height: 100px; }

.captcha-box { background: var(--bg-card); border: 2px solid #e2e8f0; border-radius: var(--radius-sm); padding: 20px; margin-bottom: 20px; text-align: center; }
.captcha-box .captcha-img { border-radius: 6px; margin-bottom: 12px; display: inline-block; }
.captcha-input { width: 100%; padding: 12px; border: 2px solid #e2e8f0; border-radius: var(--radius-sm); font-size: 1.3rem; letter-spacing: 4px; text-align: center; background: var(--white); transition: border-color var(--transition); box-sizing: border-box; }
.captcha-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(28,133,232,0.15); }

/* Card sub-components (Bootstrap compat) */
.card-header { padding: 16px 20px; border-bottom: 1px solid #e2e8f0; font-weight: 600; }
.card-body { padding: 20px; }
.card-footer { padding: 16px 20px; border-top: 1px solid #e2e8f0; }
.card-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.card-text { color: var(--text); line-height: 1.7; }

/* Table variants */
.table-bordered { border: 1px solid #e2e8f0; }
.table-bordered th, .table-bordered td { border: 1px solid #e2e8f0; }
.table-dark { background: var(--footer-bg); color: var(--white); }
.table-dark th { background: var(--footer-bg); color: var(--white); }

/* Font */
.font-monospace { font-family: 'SF Mono', 'Fira Code', monospace; }

/* Layout compat */
.row { display: flex; flex-wrap: wrap; margin: 0 -12px; }
.row > [class*="col-"] { padding: 0 12px; box-sizing: border-box; }
.col-md-4, .col-md-6 { width: 100%; }
@media (min-width: 768px) {
  .col-md-4 { width: 33.333%; }
  .col-md-6 { width: 50%; }
}
.col-lg-6 { width: 100%; }
@media (min-width: 992px) {
  .col-lg-6 { width: 50%; }
}

/* Button outline variants (Bootstrap compat) */
.btn-outline-secondary { background: transparent; color: var(--text); border: 2px solid #cbd5e0; }
.btn-outline-secondary:hover { background: #f7fafc; border-color: var(--text); }
.btn-outline-danger { background: transparent; color: #e53e3e; border: 2px solid #e53e3e; }
.btn-outline-danger:hover { background: #e53e3e; color: white; }

/* Step Progress Bar */
.step-progress { display: flex; justify-content: center; gap: 0; margin: 40px auto; max-width: 600px; position: relative; }
.step-progress::before { content: ''; position: absolute; top: 24px; left: 60px; right: 60px; height: 3px; background: #e2e8f0; z-index: 0; }
.step-progress .sp-step { display: flex; flex-direction: column; align-items: center; flex: 1; position: relative; z-index: 1; }
.step-progress .sp-circle { width: 48px; height: 48px; border-radius: 50%; background: var(--white); border: 3px solid #e2e8f0; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem; color: var(--text); transition: all var(--transition); }
.step-progress .sp-step.active .sp-circle { background: var(--primary); border-color: var(--primary); color: var(--white); box-shadow: 0 0 0 5px rgba(28,133,232,0.2); }
.step-progress .sp-step.completed .sp-circle { background: var(--accent); border-color: var(--accent); color: var(--white); }
.step-progress .sp-label { margin-top: 10px; font-size: 0.8rem; font-weight: 600; color: var(--text); text-align: center; }
.step-progress .sp-step.active .sp-label { color: var(--primary); }
.step-progress .sp-step.completed .sp-label { color: var(--accent); }

/* Step Content */
.step-content { display: none; }
.step-content.active { display: block; }

/* Choice Cards (buyer/seller, product type) */
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 24px 0; }
@media (max-width: 600px) { .choice-grid { grid-template-columns: 1fr; } }
.choice-card { padding: 30px 24px; border: 2px solid #e2e8f0; border-radius: var(--radius); cursor: pointer; transition: all var(--transition); text-align: center; background: var(--white); }
.choice-card:hover { border-color: var(--primary); box-shadow: 0 4px 20px rgba(28,133,232,0.1); transform: translateY(-2px); }
.choice-card.selected,
.choice-card:has(input[type="radio"]:checked) { border-color: var(--primary); background: #f0f7ff; box-shadow: 0 0 0 3px rgba(28,133,232,0.15); }
.choice-card .choice-icon { font-size: 2.5rem; margin-bottom: 12px; }
.choice-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.choice-card p { font-size: 0.85rem; color: var(--text); margin: 0; }
.choice-card input[type="radio"] { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.icon-img { width:40px; height:40px; display:block; margin:0 auto 16px; object-fit:contain; }
.icon-img-sm { width:32px; height:32px; display:block; margin:0 auto 12px; object-fit:contain; }

/* Review card */
.review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .review-grid { grid-template-columns: 1fr; } }
.review-item { padding: 12px 16px; background: #f8fafc; border-radius: var(--radius-sm); }
.review-item .review-label { font-size: 0.8rem; color: var(--text); opacity: 0.75; margin-bottom: 4px; }
.review-item .review-value { font-weight: 600; font-size: 1rem; color: var(--teal); }

/* Step navigation buttons */
.step-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 32px; padding-top: 24px; border-top: 1px solid #e2e8f0; }

/* Nicer form spacing for the wizard */
.wizard-card { max-width: 700px; margin: 0 auto; padding: 40px; }
.wizard-card .form-group { margin-bottom: 24px; }

/* Main content clears fixed header */
main { padding-top: 72px; }

/* Auth forms (login, register) */
.auth-form { max-width: 460px; margin: 24px auto 0; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 40px 40px 48px; border: 1px solid #edf2f7; }
.auth-form h1 { margin-bottom: 24px; font-size: 28px; text-align: center; }
.auth-form .btn { width: 100%; margin-top: 8px; }
.auth-links { text-align: center; margin-top: 20px; font-size: 14px; color: var(--text); }
.auth-links a { font-weight: 600; }

/* Currency Pills */
.currency-pills { display: flex; flex-direction: column; gap: 10px; }
.pill-group { }
.pill-group-label { font-size: 0.7rem; font-weight: 700; color: var(--text); opacity: 0.5; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 6px; }
.pill-grid { display: flex; flex-wrap: wrap; gap: 6px; }

/* Input with currency symbol prefix */
.input-symbol { display: flex; align-items: stretch; }
.input-symbol .input-symbol-label {
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-light); border: 1px solid var(--border);
  border-right: 0; border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  padding: 0 14px; font-size: 1.15rem; font-weight: 600;
  color: var(--primary); min-width: 44px;
}
.input-symbol .form-control {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; flex: 1;
  font-size: 1.15rem; font-weight: 600; letter-spacing: 0.5px;
}

/* Pill grid for fund page crypto selector */
.currency-pill-symbol { font-size: 1.1rem; margin-right: 4px; }
.currency-pill { display: inline-flex; align-items: center; padding: 7px 14px; border: 2px solid #e2e8f0; border-radius: 20px; cursor: pointer; font-size: 0.8rem; font-weight: 600; color: #2d3748; transition: all 0.2s ease; background: var(--white); user-select: none; }
.currency-pill:hover { border-color: var(--primary); color: var(--primary); }
.currency-pill:has(input[type="radio"]:checked) { border-color: var(--primary); background: #f0f7ff; color: var(--primary); box-shadow: 0 0 0 2px rgba(28,133,232,0.15); }
.currency-pill input[type="radio"] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Payment page */
.pay-layout { max-width: 480px; margin: 0 auto; }
.pay-qr { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.pay-qr img { width: 220px; height: 220px; border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.pay-qr-label { font-size: 0.8rem; color: var(--text); opacity: 0.7; }
.pay-crypto-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text); opacity: 0.5; font-weight: 600; }
.pay-total { font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.pay-fee-breakdown { font-size: 0.8rem; color: var(--text); margin-top: 2px; }

@keyframes total-glow {
  0%, 100% { border-color: rgba(28,133,232,0.15); box-shadow: 0 0 0 0 rgba(28,133,232,0); }
  50% { border-color: rgba(28,133,232,0.4); box-shadow: 0 0 20px 3px rgba(28,133,232,0.1); }
}
.pay-total-box {
  width: 100%; padding: 16px 20px; border: 2px solid #e2e8f0; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
  animation: total-glow 3s ease-in-out infinite;
}

@keyframes address-glow {
  0%, 100% { border-color: rgba(28,133,232,0.2); box-shadow: 0 0 0 0 rgba(28,133,232,0); }
  50% { border-color: rgba(28,133,232,0.6); box-shadow: 0 0 24px 4px rgba(28,133,232,0.12); }
}
.pay-address-box {
  width: 100%; max-height: 160px; overflow-y: auto;
  background: #f8fafc; border: 2px solid #e2e8f0; border-radius: var(--radius-sm);
  padding: 16px 18px; word-break: break-all; font-family: 'Inter', monospace;
  font-size: 1.05rem; line-height: 1.7; color: #1a202c;
  animation: address-glow 2.5s ease-in-out infinite;
  transition: border-color 0.3s;
}
.pay-address-box:focus,
.pay-address-box:hover { border-color: var(--primary); animation: none; }
.pay-address-box::-webkit-scrollbar { width: 4px; }
.pay-address-box::-webkit-scrollbar-thumb { background: #cbd5e0; border-radius: 4px; }
.pay-address-box { scrollbar-width: thin; scrollbar-color: #cbd5e0 transparent; }

@media (max-width: 640px) {
  .pay-qr img { width: 180px; height: 180px; }
}

/* Fund page */
.fund-wrap {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.fund-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid #edf2f7;
  overflow: hidden;
}
.fund-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 28px;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border-bottom: 1px solid #edf2f7;
}
.fund-card-head-id {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--text);
}
.fund-card-head-id strong {
  font-family: 'Inter', monospace;
  font-size: 1rem;
  color: #1a202c;
  letter-spacing: 0.5px;
}
.fund-card-body {
  padding: 32px 28px;
}
.fund-section-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  opacity: 0.6;
  font-weight: 700;
  margin-bottom: 16px;
  text-align: center;
}
.fund-amount-display {
  text-align: center;
  padding: 24px 20px;
  background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
  border: 2px solid rgba(28,133,232,0.15);
  border-radius: var(--radius);
  margin-bottom: 24px;
  animation: total-glow 3s ease-in-out infinite;
}
.fund-amount-display .fund-amount-value {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  letter-spacing: -0.5px;
}
.fund-amount-display .fund-amount-currency {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  margin-left: 6px;
  letter-spacing: 0.5px;
}
.fund-amount-display .fund-amount-fee {
  font-size: 0.85rem;
  color: var(--text);
  opacity: 0.75;
  margin-top: 6px;
}
.fund-anim-inline {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
  max-height: 200px;
  border-radius: var(--radius-sm);
}
.fund-instructions {
  padding: 20px 24px;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
}
.fund-instructions-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  opacity: 0.7;
  font-weight: 700;
  margin-bottom: 12px;
}
.fund-instructions ul {
  margin: 0;
  padding-left: 20px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fund-instructions li {
  font-size: 0.92rem;
  color: #2d3748;
  line-height: 1.6;
  position: relative;
  padding-left: 6px;
}
.fund-instructions li::before {
  content: '✓';
  position: absolute;
  left: -20px;
  top: 0;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
}
.fund-back {
  text-align: center;
  margin-top: 8px;
}
.fund-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  color: var(--text);
  opacity: 0.5;
  font-size: 0.85rem;
}
.fund-divider::before,
.fund-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.fiat-pill {
  flex: 1;
  min-width: 120px;
  text-align: center;
  padding: 12px 8px;
}
.fiat-pill-name {
  font-weight: 600;
  font-size: 0.9rem;
}
.fiat-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 16px 0;
}
.fiat-card {
  flex: 1;
  min-width: 130px;
  max-width: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px 12px;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  cursor: pointer;
  background: var(--white);
  transition: all 0.2s ease;
  user-select: none;
  text-align: center;
}
.fiat-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.fiat-card:has(input[type="radio"]:checked) {
  border-color: var(--primary);
  background: #f0f7ff;
  box-shadow: 0 0 0 2px rgba(28,133,232,0.15);
}
.fiat-card input[type="radio"] {
  position: absolute;
  width: 1px; height: 1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.fiat-card-icon {
  font-size: 1.6rem;
  line-height: 1;
}
.fiat-card-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
}
.fiat-card-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(0.6);
}
.fiat-disclaimer {
  margin-top: 20px;
  padding: 16px 20px;
  background: #fef9e7;
  border: 1px solid #f9e79f;
  border-radius: 12px;
  font-size: 0.82rem;
  color: #7d6608;
  line-height: 1.6;
}
.fiat-disclaimer strong {
  color: #5a4a02;
}
.fiat-limit-msg {
  text-align: center;
  padding: 14px 18px;
  margin: 12px 0;
  background: #f1f5f9;
  border-radius: 10px;
  font-size: 0.85rem;
  color: var(--text);
  opacity: 0.75;
}
.fund-status-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text);
  opacity: 0.7;
}
.fund-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38a169;
  box-shadow: 0 0 0 0 rgba(56,161,105,0.6);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(56,161,105,0.6); }
  50% { box-shadow: 0 0 0 6px rgba(56,161,105,0); }
}
@media (max-width: 640px) {
  .fund-card-body { padding: 22px 18px; }
  .fund-card-head { padding: 16px 18px; }
  .fund-amount-display .fund-amount-value { font-size: 1.8rem; }
}

/* Video Hero */
.hero-video {
  position: relative;
  height: 400vh;
}
.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero-video-bg {
  position: absolute; inset: 0; z-index: 0;
  transform-origin: center center;
  will-change: transform;
}
.hero-vid, .hero-vid-fallback {
  width: 100%; height: 100%; object-fit: cover;
}
#heroCanvas { width: 100%; height: 100%; display: block; }
.hero-video-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(135deg, rgba(5,10,25,0.85) 0%, rgba(5,10,25,0.5) 60%, transparent 100%);
}
.hero-video-content {
  position: relative; z-index: 2; width: 100%;
}
.hero-text { max-width: 580px; }
.hero-text h1 {
  font-size: 56px; color: #fff; margin-bottom: 20px; line-height: 1.15;
}
.hero-text p {
  font-size: 18px; color: rgba(255,255,255,0.75); line-height: 1.7; margin-bottom: 36px;
}

/* Cyberpunk button */
.btn-cyber {
  display: inline-block; padding: 16px 40px;
  font-family: var(--heading-font); font-size: 16px; font-weight: 700;
  color: #fff; text-transform: uppercase; letter-spacing: 1px;
  background: linear-gradient(135deg, #00d4aa, #00b4d8);
  border: none; border-radius: 8px; cursor: pointer;
  text-decoration: none; transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(0,212,170,0.3), 0 0 60px rgba(0,180,216,0.15);
}
.btn-cyber:hover {
  color: #fff; transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0,212,170,0.5), 0 0 80px rgba(0,180,216,0.25);
}

@media (max-width: 768px) {
  .hero-video { height: 300vh; }
  .hero-text h1 { font-size: 36px; }
  .hero-text p { font-size: 16px; }
  .btn-cyber { width: 100%; text-align: center; }
}

/* Header nav for mobile - update hamburger for dark bg */
.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after { background: rgba(255,255,255,0.85); }

/* Dashboard layout */
.dashboard-layout { display: flex; gap: 30px; align-items: flex-start; }
.dashboard-main { flex: 1; min-width: 0; }
.dashboard-sidebar { width: 300px; flex-shrink: 0; }

/* Profile card in sidebar */
.profile-card { background: var(--white); border-radius: var(--radius); border: 1px solid #e2e8f0; overflow: hidden; }
.profile-card-head { background: linear-gradient(135deg, var(--teal), #00b4d8); padding: 24px; text-align: center; color: #fff; }
.profile-card-avatar { width: 72px; height: 72px; border-radius: 50%; background: rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 700; margin: 0 auto 10px; border: 3px solid rgba(255,255,255,0.4); }
.profile-card-name { font-size: 1.1rem; font-weight: 700; }
.profile-card-email { font-size: 0.85rem; opacity: 0.85; word-break: break-all; }
.profile-card-body { padding: 16px 20px; }
.profile-card-item { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #f1f5f9; font-size: 0.9rem; }
.profile-card-item:last-child { border-bottom: none; }
.profile-card-item-label { color: var(--text); opacity: 0.7; }
.profile-card-item-value { font-weight: 600; color: var(--teal); }
.profile-card-section { padding: 12px 20px; border-top: 1px solid #e2e8f0; }
.profile-card-section-title { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text); opacity: 0.5; margin-bottom: 4px; }
.profile-card-section .profile-card-item { padding: 6px 0; }
.trust-won { color: #22c55e !important; }
.trust-lost { color: #ef4444 !important; }
.trust-score-inline { display: flex; flex-wrap: wrap; gap: 12px; font-size: 0.85rem; }
.trust-stat { opacity: 0.8; }
.trust-stat-won { color: #22c55e; }
.trust-stat-lost { color: #ef4444; }
.trust-stat strong { font-weight: 700; }
.escrow-invited { font-size:0.75rem; color:#94a3b8; font-style:italic; font-weight:400; }
.profile-card-actions { padding: 12px 20px; border-top: 1px solid #e2e8f0; display: flex; gap: 8px; }
.profile-card-actions .btn { flex: 1; text-align: center; }

/* Profile page layout */
.profile-layout { display: flex; gap: 30px; align-items: flex-start; }
.profile-sidebar { width: 260px; flex-shrink: 0; background: var(--white); border-radius: var(--radius); border: 1px solid #e2e8f0; overflow: hidden; }
.profile-sidebar-head { background: linear-gradient(135deg, var(--teal), #00b4d8); padding: 24px; text-align: center; color: #fff; }
.profile-sidebar-avatar { width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700; margin: 0 auto 8px; border: 3px solid rgba(255,255,255,0.4); }
.profile-sidebar-name { font-weight: 700; }
.profile-sidebar-email { font-size: 0.8rem; opacity: 0.8; word-break: break-all; }
.profile-nav { list-style: none; padding: 0; margin: 0; }
.profile-nav li { border-bottom: 1px solid #f1f5f9; }
.profile-nav li:last-child { border-bottom: none; }
.profile-nav a { display: flex; align-items: center; gap: 10px; padding: 14px 20px; color: var(--text); text-decoration: none; font-size: 0.95rem; transition: background var(--transition); }
.profile-nav a:hover { background: #f8fafc; color: var(--teal); }
.profile-nav a.active { background: #f0fdfa; color: var(--teal); font-weight: 600; border-right: 3px solid var(--teal); }
.profile-nav a .nav-icon { font-size: 1.1rem; width: 20px; text-align: center; }
.profile-main { flex: 1; min-width: 0; background: var(--white); border-radius: var(--radius); border: 1px solid #e2e8f0; padding: 28px; }
.profile-main h2 { font-size: 1.3rem; margin-bottom: 20px; color: var(--teal); }

/* Escrow selector (support ticket) */
.escrow-option { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 2px solid #e2e8f0; border-radius: var(--radius-sm); cursor: pointer; margin-bottom: 8px; transition: border-color 0.2s; }
.escrow-option:has(input:checked) { border-color: var(--primary); background: #f0f7ff; }

/* Pricing table */
.pricing-table th { font-size: 0.9rem; }
.pricing-table td { border-top: 1px solid #e2e8f0; font-size: 0.9rem; }
.pricing-table tr:first-child td { border-top: none; }

@media (max-width: 768px) {
  .dashboard-layout { flex-direction: column; }
  .dashboard-sidebar { width: 100%; }
  .profile-layout { flex-direction: column; }
  .profile-sidebar { width: 100%; }
}

/* Information / Blog */
.info-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(320px,1fr)); gap:24px; margin-top:32px; }
.info-card { display:flex; flex-direction:column; padding:28px 24px; background:var(--white); border-radius:var(--radius); border:1px solid #e2e8f0; box-shadow:var(--shadow); transition:all var(--transition); text-decoration:none; color:inherit; }
.info-card:hover { transform:translateY(-4px); box-shadow:0 12px 40px rgba(0,0,0,0.1); border-color:var(--accent); }
.info-card h2 { font-size:20px; margin-bottom:10px; color:#1a202c; }
.info-card p { font-size:14px; color:var(--text); line-height:1.6; margin-bottom:16px; flex:1; }
.info-card-link { font-size:14px; font-weight:600; color:var(--accent); }
.info-article { max-width:780px; margin:0 auto; padding:40px 0 60px; }
.info-article-header { margin-bottom:40px; }
.info-article-header h1 { font-size:36px; margin-bottom:12px; line-height:1.2; }
.info-back { display:inline-block; font-size:14px; color:var(--accent); text-decoration:none; margin-bottom:16px; font-weight:500; }
.info-back:hover { text-decoration:underline; }
.info-meta { font-size:13px; color:#94a3b8; }
.info-section { margin-bottom:36px; }
.info-section h2 { font-size:26px; margin-bottom:16px; color:#1a202c; }
.info-section h3 { font-size:18px; margin:20px 0 8px; color:#1a202c; }
.info-section p { font-size:16px; line-height:1.8; color:var(--text); margin-bottom:16px; }
.info-section ul, .info-section ol { padding-left:24px; margin-bottom:16px; }
.info-section li { font-size:16px; line-height:1.8; color:var(--text); margin-bottom:6px; }
.info-section ul li { list-style:disc; }
.info-section ol li { list-style:decimal; }
.info-section strong { color:#1a202c; }
.info-footer { display:flex; justify-content:space-between; align-items:center; padding-top:32px; border-top:1px solid #e2e8f0; margin-top:48px; }
.info-lang-switch a { font-size:14px; color:var(--accent); text-decoration:none; font-weight:500; }
.info-lang-switch a:hover { text-decoration:underline; }

/* Homepage Your Rules section */
.homep-rules-section { padding:60px 0; background:#f8fafc; }
.homep-rules-inner { position:relative; display:flex; align-items:center; justify-content:center; }
.homep-rules-img { width:100%; max-width:840px; height:auto; border-radius:var(--radius); box-shadow:0 8px 30px rgba(0,0,0,0.1); display:block; }
.homep-rules-card { position:absolute; right:0; top:50%; transform:translateY(-50%); background:#fff; border-radius:var(--radius); padding:32px 36px; box-shadow:0 12px 40px rgba(0,0,0,0.12); max-width:340px; width:100%; opacity:0; border:1px solid #e2e8f0; transition:opacity 0.3s; }
.homep-rules-card.visible { animation:slideInUp 0.8s ease-out both; }
.homep-rules-card h3 { font-size:1.3rem; font-weight:700; color:var(--teal); margin:0 0 6px; }
.homep-rules-card .tagline { font-size:0.85rem; color:var(--text); opacity:0.7; margin-bottom:20px; }
.homep-rules-list { list-style:none; padding:0; margin:0; }
.homep-rules-list li { display:flex; align-items:center; gap:10px; padding:10px 0; font-size:1rem; font-weight:500; color:#1a202c; border-bottom:1px solid #f1f5f9; }
.homep-rules-list li:last-child { border-bottom:none; }
.homep-rules-list li svg { flex-shrink:0; }

@keyframes slideInUp {
  from { opacity:0; transform:translateY(40px); }
  to   { opacity:1; transform:translateY(-50%); }
}

@media (max-width:768px) {
  .homep-rules-inner { flex-direction:column; }
  .homep-rules-card { position:static; transform:none; margin-top:-40px; max-width:100%; opacity:0; }
  .homep-rules-card.visible { animation:slideInUpMobile 0.8s ease-out both; }
  @keyframes slideInUpMobile {
    from { opacity:0; transform:translateY(30px); }
    to   { opacity:1; transform:none; }
  }
}

/* FAQ layout */
.faq-layout { display:flex; gap:32px; align-items:flex-start; }
.faq-main { flex:1; min-width:0; }
.faq-sidebar { display:none; }
.faq-sidebar-desktop { width:340px; flex-shrink:0; }

@media (max-width:768px) {
  .faq-layout { flex-direction:column; }
  .faq-main { width:100%; }
  .faq-sidebar { display:block; margin-bottom:24px; }
  .faq-sidebar-desktop { display:none; }
}

/* Cookie consent bar */
.cookie-bar {
  position:fixed;
  bottom:0;
  left:0;
  right:0;
  z-index:10000;
  background:#fff;
  border-top:3px solid #00568B;
  box-shadow:0 -4px 20px rgba(0,0,0,0.12);
  padding:16px 24px;
}
.cookie-bar-content {
  max-width:1200px;
  margin:0 auto;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:24px;
}
.cookie-bar-text {
  flex:1;
  font-size:0.82rem;
  color:#444;
  line-height:1.6;
}
.cookie-bar-text strong {
  display:block;
  color:#00568B;
  font-size:0.9rem;
  margin-bottom:6px;
}
.cookie-bar-text a {
  color:#00568B;
  text-decoration:underline;
  white-space:nowrap;
}
.cookie-bar-text a:hover {
  text-decoration:none;
}
.cookie-bar-buttons {
  display:flex;
  flex-direction:column;
  gap:8px;
  flex-shrink:0;
}
.cookie-btn {
  display:inline-block;
  padding:10px 24px;
  border-radius:var(--radius-sm);
  font-size:0.85rem;
  font-weight:600;
  text-decoration:none;
  transition:all var(--transition);
  cursor:pointer;
  text-align:center;
  min-width:140px;
}
.cookie-btn-accept {
  background:#00568B;
  color:#fff;
  border:2px solid #00568B;
}
.cookie-btn-accept:hover {
  background:#004070;
  border-color:#004070;
  color:#fff;
}
.cookie-btn-decline {
  background:#fff;
  color:#999;
  border:2px solid #ddd;
}
.cookie-btn-decline:hover {
  color:#e53e3e;
  border-color:#e53e3e;
  background:#fff;
}

@media (max-width:768px) {
  .cookie-bar { padding:14px 16px; }
  .cookie-bar-content { flex-direction:column; align-items:stretch; }
  .cookie-bar-text { font-size:0.8rem; }
  .cookie-bar-buttons { flex-direction:row; }
  .cookie-btn { flex:1; min-width:0; }
}
