:root {
  --font-title: 'Google Sans Flex', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
  --color-bg: #ffffff;
  --color-card: #f6f6f6;
  --color-text-title: #000000;
  --color-text-body: #333333;
  --color-text-sub: #686868;
  --color-border: #e5e5e5;
  --color-border-card: #ffffff;
  --color-accent: #000000;
  --color-danger: #dc2626;
  --color-danger-bg: #fef2f2;
  --color-warning: #d97706;
  --color-warning-bg: #fffbeb;
  --color-success: #16a34a;
  --color-success-bg: #f0fdf4;
}

html, body {
  overflow-x: hidden;
  width: 100%;
}

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

.font-title {
  font-family: var(--font-title);
}

.page-wrapper {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-nav {
  background: #ffffff;
  border-bottom: 1px solid var(--color-border);
  padding: 18px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo-box {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo-badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #000000;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.nav-logo-text {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 20px;
  color: var(--color-text-title);
  letter-spacing: -0.5px;
}

.nav-logo-sub {
  font-size: 13px;
  color: var(--color-text-sub);
  margin-left: 4px;
}

/* SmartBay Privacy Card Styles */
.privacy-card {
  background: var(--color-card);
  border: 1px solid var(--color-border-card);
  border-radius: 21px;
  padding: 28px;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.privacy-card:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}

.privacy-card-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Buttons */
.btn-primary {
  background: #000000;
  color: #ffffff;
  border-radius: 12px;
  padding: 12px 24px;
  min-height: 46px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-primary:hover:not(:disabled) {
  background: #262626;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-danger {
  background: var(--color-danger);
  color: #ffffff;
  border-radius: 12px;
  padding: 12px 24px;
  min-height: 46px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-danger:hover:not(:disabled) {
  background: #b91c1c;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}
.btn-danger:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  background: #ffffff;
  color: #333333;
  border: 1px solid #d4d4d6;
  border-radius: 12px;
  padding: 12px 24px;
  min-height: 46px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-secondary:hover:not(:disabled) {
  background: #f8fafc;
  border-color: #94a3b8;
}

.btn-google {
  background: #ffffff;
  color: #1f2937;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px 20px;
  min-height: 46px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.btn-google:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Form Inputs */
.input-field {
  width: 100%;
  background: #ffffff;
  border: 1px solid #d4d4d6;
  border-radius: 12px;
  padding: 12px 16px;
  min-height: 46px;
  font-size: 14px;
  line-height: 20px;
  color: #111827;
  transition: all 0.2s ease;
}
.input-field:focus {
  outline: none;
  border-color: #000000;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

/* Radio Card for Scopes */
.scope-card {
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.scope-card:hover:not(.selected):not(.danger-selected) {
  border-color: #cbd5e1;
  background: #f8fafc;
}
.scope-card.selected {
  border-color: #000000;
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
.scope-card.danger-selected {
  border-color: #ef4444;
  background: #fffafa;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.1);
}
.scope-card.danger-selected #scopeAccountTitle {
  color: #dc2626;
}

/* App Selection Item */
.app-item {
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.app-item:hover:not(.active) {
  border-color: #94a3b8;
  background: #f8fafc;
}
.app-item.active {
  border-color: #000000;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Site Footer */
.site-footer {
  background: #ffffff;
  padding: 36px 48px;
  border-top: 1px solid #e5e5e5;
  margin-top: auto;
}

@media (max-width: 768px) {
  .site-nav {
    padding: 16px 20px;
  }
  .site-footer {
    padding: 24px 20px;
  }
}

@media (max-width: 640px) {
  .site-nav {
    padding: 12px 14px;
  }
  .nav-logo-text {
    font-size: 16px;
    letter-spacing: -0.3px;
  }
  .privacy-card {
    padding: 16px 12px;
    border-radius: 16px;
  }
  .app-item {
    padding: 10px 10px;
    border-radius: 10px;
  }
  .site-footer {
    padding: 20px 14px;
  }
}
