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

:root {
  --bg: #0a0b0f;
  --bg-elevated: #12141a;
  --bg-card: #161922;
  --border: #1e2230;
  --text: #f1f3f9;
  --text-muted: #8b93a7;
  --primary: #22c55e;
  --primary-dim: rgba(34, 197, 94, 0.15);
  --blue: #3b82f6;
  --positive: #22c55e;
  --negative: #ef4444;
  --radius: 12px;
  --radius-lg: 20px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
}

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

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--primary);
  color: #04150a;
}

.btn-primary:hover {
  background: #16a34a;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--bg-elevated);
  border-color: #2a3142;
}

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

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
}

.full-width {
  width: 100%;
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 11, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 18px;
}

.logo-icon {
  color: var(--primary);
  font-size: 22px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 110;
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.25s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-links.mobile-open {
  display: flex !important;
  flex-direction: column;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
  gap: 16px;
  animation: slideDown 0.25s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Hero ===== */
.hero {
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

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

.badge {
  display: inline-block;
  padding: 6px 12px;
  background: var(--primary-dim);
  color: var(--primary);
  font-size: 13px;
  font-weight: 500;
  border-radius: 100px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 52px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(135deg, #22c55e 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 32px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 40px;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 22px;
  font-weight: 700;
}

.stat-suffix {
  font-size: 22px;
  font-weight: 700;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
}

/* Portfolio Card */
.portfolio-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-card.loaded {
  animation: cardPop 0.4s ease;
}

@keyframes cardPop {
  0% { transform: scale(0.97); opacity: 0.8; }
  100% { transform: scale(1); opacity: 1; }
}

.portfolio-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.portfolio-value {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.portfolio-change {
  font-size: 14px;
  margin-bottom: 16px;
}

.positive { color: var(--positive); }
.negative { color: var(--negative); }
.neutral { color: var(--text-muted); }

.portfolio-chart {
  height: 70px;
  margin-bottom: 20px;
}

.portfolio-chart svg {
  width: 100%;
  height: 100%;
}

.token-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.token-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: var(--bg-elevated);
  border-radius: 10px;
}

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

.token-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}

.token-icon.small {
  width: 28px;
  height: 28px;
  font-size: 13px;
}

.token-icon.eth { background: #627eea33; color: #8ba3ff; }
.token-icon.btc { background: #f7931a33; color: #f7931a; }
.token-icon.sol { background: #9945ff33; color: #c084fc; }
.token-icon.usdc { background: #2775ca33; color: #60a5fa; }
.token-icon.avax { background: #e8414233; color: #f87171; }
.token-icon.matic { background: #8247e533; color: #a78bfa; }

.token-name {
  font-weight: 600;
  font-size: 14px;
}

.token-amount {
  font-size: 12px;
  color: var(--text-muted);
}

.token-value {
  text-align: right;
  font-size: 14px;
  font-weight: 500;
}

.token-value .positive,
.token-value .negative {
  font-size: 12px;
  font-weight: 400;
}

/* ===== Features ===== */
.features {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

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

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: #2a3142;
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 28px;
  margin-bottom: 16px;
}

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

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

/* ===== How it works ===== */
.how-it-works {
  padding: 80px 0 100px;
  background: var(--bg-elevated);
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.step {
  flex: 1;
  max-width: 280px;
  text-align: center;
  padding: 0 20px;
}

.step-number {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

.step p {
  font-size: 14px;
  color: var(--text-muted);
}

.step-divider {
  width: 60px;
  height: 1px;
  background: var(--border);
  margin-top: 28px;
  flex-shrink: 0;
}

/* ===== Dashboard Preview ===== */
.dashboard-section {
  padding: 100px 0;
}

.dashboard-preview {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  overflow: hidden;
}

.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.dash-title h3 {
  font-size: 20px;
  font-weight: 600;
}

.last-updated {
  font-size: 13px;
  color: var(--text-muted);
}

.dash-actions {
  display: flex;
  gap: 10px;
}

.dash-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.dash-stat-card {
  background: var(--bg-elevated);
  border-radius: 10px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dash-stat-card .label {
  font-size: 12px;
  color: var(--text-muted);
}

.dash-stat-card .value {
  font-size: 22px;
  font-weight: 700;
}

.dash-stat-card .change {
  font-size: 13px;
}

.dash-table-wrapper {
  overflow-x: auto;
}

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

.dash-table th {
  text-align: left;
  padding: 12px 16px;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
}

.dash-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.dash-table tr:last-child td {
  border-bottom: none;
}

.asset-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.asset-cell strong {
  display: block;
  font-weight: 600;
}

.asset-cell span {
  font-size: 12px;
  color: var(--text-muted);
}

/* ===== FAQ ===== */
.faq-section {
  padding: 80px 0 100px;
  background: var(--bg-elevated);
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  background: none;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
}

.faq-icon {
  font-size: 20px;
  color: var(--text-muted);
  transition: transform 0.25s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 200px;
  padding: 0 22px 18px;
}

.faq-answer p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== CTA ===== */
.cta-section {
  padding: 60px 0 100px;
}

.cta-box {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.12) 0%, rgba(59, 130, 246, 0.08) 100%);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  text-align: center;
}

.cta-box h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
}

.cta-box p {
  color: var(--text-muted);
  margin-bottom: 28px;
  font-size: 17px;
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--border);
  padding-top: 48px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 10px;
}

.footer-links {
  display: flex;
  gap: 64px;
}

.footer-links h4 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--text);
}

.footer-links a {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

/* ===== Modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 90%;
  max-width: 400px;
  position: relative;
  transform: translateY(12px);
  transition: transform 0.25s ease;
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}

.modal h3 {
  font-size: 20px;
  margin-bottom: 6px;
}

.modal-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.wallet-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wallet-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  font-family: inherit;
}

.wallet-option:hover {
  border-color: #2a3142;
  background: #1a1d27;
}

.wallet-option.connected {
  border-color: var(--primary);
}

.wallet-icon {
  font-size: 22px;
}

.modal-note {
  margin-top: 20px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

.address-input {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  margin-bottom: 16px;
  outline: none;
  transition: border-color 0.2s;
}

.address-input:focus {
  border-color: var(--primary);
}

.address-input::placeholder {
  color: var(--text-muted);
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 300;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.toast.success {
  border-color: rgba(34, 197, 94, 0.4);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .features-grid {
    grid-template-columns: 1fr 1fr;
  }

  .dash-stats {
    grid-template-columns: 1fr 1fr;
  }

  .steps {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .step-divider {
    display: none;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero {
    padding: 120px 0 60px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-stats {
    gap: 24px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .dash-stats {
    grid-template-columns: 1fr;
  }

  .dash-header {
    flex-direction: column;
    gap: 16px;
  }

  .footer-content {
    flex-direction: column;
  }

  .footer-links {
    gap: 40px;
  }

  .cta-box {
    padding: 40px 24px;
  }

  .cta-box h2 {
    font-size: 26px;
  }
}

/* ===== Auth Modal ===== */
.auth-modal {
  max-width: 420px;
}

.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  background: var(--bg-elevated);
  padding: 4px;
  border-radius: 10px;
}

.auth-tab {
  flex: 1;
  padding: 10px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-tab.active {
  background: var(--bg-card);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.auth-form h3 {
  font-size: 22px;
  margin-bottom: 6px;
}

.auth-form.hidden {
  display: none;
}

.input-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 6px;
  margin-top: 14px;
}

.input-label:first-of-type {
  margin-top: 0;
}

.auth-form .btn {
  margin-top: 20px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 16px;
  color: var(--text-muted);
  font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.social-buttons {
  display: flex;
  gap: 10px;
}

.social-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.social-btn:hover {
  border-color: #2a3142;
  background: #1a1d27;
}

.social-logo {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
}

.boogle-logo {
  background: linear-gradient(135deg, #4285f4, #34a853, #fbbc05, #ea4335);
  color: white;
  font-size: 13px;
}

.bicrosoft-logo {
  background: linear-gradient(135deg, #f25022 0%, #7fba00 33%, #00a4ef 66%, #ffb900 100%);
  color: white;
  font-size: 11px;
  letter-spacing: -0.5px;
}


/* ===== Boogle Popup (exact Google Accounts style) ===== */
#boogleModal {
  background: rgba(32, 33, 36, 0.6);
}

.boogle-popup {
  background: #fff;
  width: 90%;
  max-width: 450px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  font-family: 'Google Sans', Roboto, Arial, sans-serif;
  color: #202124;
  overflow: hidden;
  transform: scale(0.98);
  transition: transform 0.2s ease;
}

#boogleModal.active .boogle-popup {
  transform: scale(1);
}

.boogle-top {
  padding: 24px 40px 0;
}

.boogle-logo-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.boogle-g-icon {
  flex-shrink: 0;
}

.boogle-brand {
  font-size: 16px;
  color: #202124;
  font-weight: 500;
}

.boogle-body {
  padding: 24px 40px 36px;
}

.boogle-heading {
  font-size: 24px;
  font-weight: 400;
  margin: 0 0 8px;
  color: #202124;
  line-height: 1.3333;
}

.boogle-continue {
  font-size: 16px;
  color: #202124;
  margin: 0 0 32px;
}

.boogle-app {
  color: #1a73e8;
  font-weight: 500;
}

.boogle-field {
  position: relative;
  margin-bottom: 8px;
}

.boogle-input {
  width: 100%;
  height: 56px;
  padding: 13px 15px;
  border: 1px solid #dadce0;
  border-radius: 4px;
  font-size: 16px;
  font-family: inherit;
  color: #202124;
  background: #fff;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.boogle-input:focus {
  border-color: #1a73e8;
  box-shadow: inset 0 0 0 1px #1a73e8;
}

.boogle-float-label {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  padding: 0 4px;
  font-size: 16px;
  color: #5f6368;
  pointer-events: none;
  transition: all 0.15s ease;
}

.boogle-input:focus + .boogle-float-label,
.boogle-input:not(:placeholder-shown) + .boogle-float-label {
  top: 0;
  font-size: 12px;
  color: #1a73e8;
}

.boogle-input::placeholder {
  color: transparent;
}

.boogle-forgot {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  color: #1a73e8;
  text-decoration: none;
  font-weight: 500;
}

.boogle-forgot:hover {
  text-decoration: underline;
}

.boogle-guest {
  margin-top: 32px;
  font-size: 14px;
  color: #5f6368;
  line-height: 1.5;
}

.boogle-guest a {
  color: #1a73e8;
  text-decoration: none;
  font-weight: 500;
}

.boogle-guest a:hover {
  text-decoration: underline;
}

.boogle-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
}

.boogle-create {
  background: none;
  border: none;
  color: #1a73e8;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  padding: 10px 8px;
  border-radius: 4px;
}

.boogle-create:hover {
  background: #f6fafe;
}

.boogle-next {
  background: #1a73e8;
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  min-width: 80px;
  transition: background 0.15s;
}

.boogle-next:hover {
  background: #1765cc;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.boogle-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px 20px;
}

.boogle-lang {
  border: none;
  background: transparent;
  font-size: 12px;
  color: #5f6368;
  font-family: inherit;
  cursor: pointer;
  padding: 6px 4px;
}

.boogle-footer-links {
  display: flex;
  gap: 24px;
}

.boogle-footer-links a {
  font-size: 12px;
  color: #5f6368;
  text-decoration: none;
}

.boogle-footer-links a:hover {
  color: #202124;
}

/* ===== Fake browser chrome for Boogle ===== */
.boogle-window {
  background: #fff;
  width: 90%;
  max-width: 500px;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.35);
  overflow: hidden;
  font-family: 'Google Sans', Roboto, Arial, sans-serif;
  transform: scale(0.98);
  transition: transform 0.2s ease;
}

#boogleModal.active .boogle-window {
  transform: scale(1);
}

.boogle-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f1f3f4;
  padding: 0 0 0 12px;
  border-bottom: 1px solid #dadce0;
  user-select: none;
  height: 40px;
}

.boogle-chrome-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #5f6368;
  overflow: hidden;
}

.boogle-chrome-icon {
  font-size: 11px;
}

.boogle-chrome-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.boogle-chrome-controls {
  display: flex;
  gap: 0;
  align-items: center;
}

.chrome-btn {
  width: 46px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #5f6368;
  background: transparent;
  position: relative;
}

.chrome-btn:hover {
  background: #e8eaed;
}

.chrome-close:hover {
  background: #e81123;
  color: #fff;
}

.chrome-min::before {
  content: "";
  width: 10px;
  height: 1px;
  background: currentColor;
  position: absolute;
  bottom: 14px;
}

.chrome-max::before {
  content: "";
  width: 10px;
  height: 10px;
  border: 1px solid currentColor;
  position: absolute;
}

.chrome-close::before {
  content: "×";
  font-size: 18px;
  line-height: 1;
  font-weight: 300;
}

.boogle-urlbar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  padding: 8px 16px;
  border-bottom: 1px solid #dadce0;
  font-size: 12px;
  color: #5f6368;
}

.urlbar-lock {
  font-size: 11px;
  flex-shrink: 0;
}

.urlbar-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #202124;
  font-family: Roboto, Arial, sans-serif;
}

/* Adjust inner popup so it doesn't have its own outer shadow */
.boogle-window .boogle-popup {
  box-shadow: none;
  border-radius: 0;
  max-width: none;
  width: 100%;
  transform: none;
}

/* Boogle password step extras */
.boogle-email-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #dadce0;
  border-radius: 16px;
  padding: 4px 10px 4px 4px;
  margin-top: 8px;
  cursor: pointer;
  font-size: 14px;
  color: #202124;
}

.boogle-email-chip:hover {
  background: #f7f8f8;
}

.chip-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #1a73e8;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chip-arrow {
  font-size: 10px;
  color: #5f6368;
}

.boogle-show-pass {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  font-size: 14px;
  color: #202124;
  cursor: pointer;
  user-select: none;
}

.boogle-show-pass input {
  width: 16px;
  height: 16px;
  accent-color: #1a73e8;
  cursor: pointer;
}

/* ===== Bicrosoft / Microsoft-style popup ===== */
#bicrosoftModal {
  background: rgba(0,0,0,0.45);
}

.ms-window {
  display: flex;
  flex-direction: column;
  width: 90%;
  max-width: 440px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}

.ms-popup {
  background: #fff;
  padding: 44px 44px 28px;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: #1b1b1b;
}

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

.ms-title {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 20px;
  color: #1b1b1b;
}

.ms-field {
  margin-bottom: 12px;
}

.ms-input {
  width: 100%;
  height: 36px;
  padding: 6px 10px;
  border: 1px solid #605e5c;
  border-radius: 2px;
  font-size: 15px;
  font-family: inherit;
  color: #1b1b1b;
  outline: none;
  transition: border-color 0.15s;
}

.ms-input:focus {
  border-color: #0067b8;
  border-width: 2px;
  padding: 5px 9px;
}

.ms-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0 24px;
}

.ms-links a {
  font-size: 13px;
  color: #0067b8;
  text-decoration: none;
}

.ms-links a:hover {
  text-decoration: underline;
  color: #004578;
}

.ms-actions {
  display: flex;
  justify-content: flex-end;
}

.ms-next {
  background: #0067b8;
  color: #fff;
  border: none;
  padding: 8px 28px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  border-radius: 2px;
  cursor: pointer;
  min-width: 108px;
}

.ms-next:hover {
  background: #005a9e;
}

.ms-email-display {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 15px;
  color: #1b1b1b;
}

.ms-back {
  cursor: pointer;
  font-size: 18px;
  color: #0067b8;
  padding: 2px 6px;
  border-radius: 2px;
}

.ms-back:hover {
  background: #f3f2f1;
}

.ms-show-pass {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin-top: 12px;
  cursor: pointer;
  user-select: none;
}

.ms-show-pass input {
  width: 16px;
  height: 16px;
  accent-color: #0067b8;
}

.ms-footer {
  margin-top: 32px;
  border-top: 1px solid #edebe9;
  padding-top: 16px;
}

.ms-sign-options {
  background: none;
  border: none;
  color: #0067b8;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
}

.ms-sign-options:hover {
  text-decoration: underline;
}

/* Boogle waiting spinner */
.boogle-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e8eaed;
  border-top-color: #1a73e8;
  border-radius: 50%;
  animation: boogle-spin 0.8s linear infinite;
  margin: 0 auto;
}

@keyframes boogle-spin {
  to { transform: rotate(360deg); }
}

.social-btn .social-logo {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Microsoft window chrome */
.ms-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f1f3f4;
  padding: 0 0 0 12px;
  border-bottom: 1px solid #edebe9;
  height: 40px;
  user-select: none;
}

.ms-chrome-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #1b1b1b;
}

.ms-chrome-controls {
  display: flex;
}

.ms-urlbar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  padding: 8px 16px;
  border-bottom: 1px solid #edebe9;
  font-size: 12px;
  color: #605e5c;
}

.ms-window {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
  max-width: 440px;
  width: 90%;
}
