/* ABOUTME: Main stylesheet for NOVA AI Store */
/* ABOUTME: 北欧展厅清冷优雅 + 硅谷实验室未来感 */

/* ===== 基础样式 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* 色彩系统 */
  --background: #FAFAFA;
  --foreground: #1A1A1A;
  --card: #FFFFFF;
  --card-foreground: #1A1A1A;
  --secondary: #F5F5F5;
  --secondary-foreground: #1A1A1A;
  --muted: #F5F5F5;
  --muted-foreground: #737373;
  --accent: #E5A853;
  --accent-foreground: #1A1A1A;
  --border: #E5E5E5;
  --destructive: #EF4444;

  /* 间距 */
  --radius: 0.5rem;

  /* 字体 */
  --font-sans: 'Inter', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', ui-sans-serif, system-ui, -apple-system, sans-serif;

  /* 动效 */
  --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== 通用组件 ===== */

/* 按钮 */
.btn-primary {
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: var(--accent-foreground);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 300ms var(--ease-out);
}

.btn-primary:hover {
  background: rgba(229, 168, 83, 0.9);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-outline {
  padding: 0.5rem 1rem;
  background: transparent;
  color: var(--foreground);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 300ms var(--ease-out);
}

.btn-outline:hover {
  background: var(--secondary);
}

.btn-outline:active {
  transform: scale(0.98);
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
}

.btn-full {
  width: 100%;
}

/* ===== 导航栏 ===== */
.nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(250, 250, 250, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: baseline;
  text-decoration: none;
}

.logo-brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
}

.logo-sub {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-left: 0.25rem;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

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

.nav-link {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 200ms;
}

.nav-link:hover {
  color: var(--foreground);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-email {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.menu-btn {
  display: block;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--foreground);
}

@media (min-width: 768px) {
  .menu-btn {
    display: none;
  }
}

.menu-icon {
  width: 1.5rem;
  height: 1.5rem;
}

.hidden {
  display: none !important;
}

.mobile-menu {
  background: var(--background);
  border-bottom: 1px solid var(--border);
  padding: 1rem;
}

@media (min-width: 768px) {
  .mobile-menu {
    display: none !important;
  }
}

.mobile-nav-link {
  display: block;
  font-size: 1rem;
  color: var(--foreground);
  text-decoration: none;
  padding: 0.5rem 0;
  transition: color 200ms;
}

.mobile-nav-link:hover {
  color: var(--accent);
}

/* ===== Hero Section ===== */
.hero-section {
  position: relative;
  padding-top: 5rem;
  padding-bottom: 3rem;
}

@media (min-width: 640px) {
  .hero-section {
    padding-top: 6rem;
    padding-bottom: 4rem;
  }
}

@media (min-width: 1024px) {
  .hero-section {
    padding-top: 10rem;
    padding-bottom: 8rem;
  }
}

.hero-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.hero-grid {
  display: flex;
  flex-direction: column-reverse;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
  }
}

/* Hero 图片区域 */
.hero-image-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-glow {
  position: absolute;
  width: 16rem;
  height: 16rem;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.4;
  animation: breathe 3s ease-in-out infinite;
  filter: blur(40px);
}

@media (min-width: 640px) {
  .hero-glow {
    width: 20rem;
    height: 20rem;
  }
}

@media (min-width: 1024px) {
  .hero-glow {
    width: 24rem;
    height: 24rem;
  }
}

.hero-circle {
  position: relative;
  z-index: 10;
  width: 14rem;
  height: 14rem;
  border-radius: 50%;
  background: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  animation: glow 3s ease-in-out infinite;
}

@media (min-width: 640px) {
  .hero-circle {
    width: 16rem;
    height: 16rem;
  }
}

@media (min-width: 768px) {
  .hero-circle {
    width: 18rem;
    height: 18rem;
  }
}

@media (min-width: 1024px) {
  .hero-circle {
    width: 20rem;
    height: 20rem;
  }
}

.hero-circle-inner {
  width: 11rem;
  height: 11rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary), var(--background));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

@media (min-width: 640px) {
  .hero-circle-inner {
    width: 13rem;
    height: 13rem;
  }
}

@media (min-width: 768px) {
  .hero-circle-inner {
    width: 15rem;
    height: 15rem;
  }
}

@media (min-width: 1024px) {
  .hero-circle-inner {
    width: 16rem;
    height: 16rem;
  }
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  animation: breathe 3s ease-in-out infinite;
}

.badge {
  position: absolute;
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 9999px;
  animation: breathe 3s ease-in-out infinite;
}

@media (min-width: 640px) {
  .badge {
    padding: 0.5rem 1rem;
  }
}

.badge-top-right {
  top: 0.5rem;
  right: 0.5rem;
  background: var(--accent);
  color: var(--accent-foreground);
}

@media (min-width: 640px) {
  .badge-top-right {
    top: 1rem;
    right: 1rem;
  }
}

.badge-bottom-left {
  bottom: 1rem;
  left: 1rem;
  background: var(--background);
  border: 1px solid var(--border);
  color: var(--foreground);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

@media (min-width: 640px) {
  .badge-bottom-left {
    bottom: 2rem;
    left: 2rem;
  }
}

/* Hero 内容区域 */
.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
}

@media (min-width: 1024px) {
  .hero-content {
    gap: 1.25rem;
    text-align: left;
  }
}

.hero-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (min-width: 640px) {
  .hero-label {
    font-size: 0.875rem;
  }
}

.hero-title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--foreground);
}

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

@media (min-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
}

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

@media (min-width: 1280px) {
  .hero-title {
    font-size: 3.5rem;
  }
}

.text-gradient {
  color: var(--accent);
}

.hero-description {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  line-height: 1.6;
  max-width: 36rem;
}

@media (min-width: 640px) {
  .hero-description {
    font-size: 1rem;
  }
}

@media (min-width: 1024px) {
  .hero-description {
    font-size: 1.125rem;
  }
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
  }
}

@media (min-width: 1024px) {
  .hero-buttons {
    justify-content: flex-start;
  }
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

@media (min-width: 640px) {
  .hero-stats {
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 2rem;
  }
}

@media (min-width: 1024px) {
  .hero-stats {
    justify-content: flex-start;
  }
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
}

@media (min-width: 640px) {
  .stat-value {
    font-size: 1.5rem;
  }
}

.stat-label {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

@media (min-width: 640px) {
  .stat-label {
    font-size: 0.875rem;
  }
}

/* ===== 商品展示网格 ===== */
.products-section {
  padding: 3rem 0;
  background: rgba(245, 245, 245, 0.3);
}

@media (min-width: 640px) {
  .products-section {
    padding: 4rem 0;
  }
}

@media (min-width: 1024px) {
  .products-section {
    padding: 8rem 0;
  }
}

.products-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.products-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
  text-align: center;
}

@media (min-width: 640px) {
  .products-header {
    gap: 1rem;
    margin-bottom: 3rem;
  }
}

.products-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (min-width: 640px) {
  .products-label {
    font-size: 0.875rem;
  }
}

.products-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
}

@media (min-width: 640px) {
  .products-title {
    font-size: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .products-title {
    font-size: 2rem;
  }
}

.products-description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  max-width: 36rem;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .products-description {
    font-size: 1rem;
  }
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .products-grid {
    gap: 1rem;
  }
}

@media (min-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

/* 商品卡片 */
.product-card {
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: transform 300ms var(--ease-out), box-shadow 300ms var(--ease-out);
}

.product-card:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.product-card:active {
  transform: scale(0.98);
}

.product-image-wrapper {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms var(--ease-out);
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.product-brand-tag {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--foreground);
  background: rgba(250, 250, 250, 0.9);
  backdrop-filter: blur(4px);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

@media (min-width: 640px) {
  .product-brand-tag {
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
  }
}

.product-sale-tag {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--accent-foreground);
  background: var(--accent);
  border-radius: var(--radius);
}

@media (min-width: 640px) {
  .product-sale-tag {
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
  }
}

.product-price-badge {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.5rem 1rem;
  background: var(--accent);
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media (min-width: 640px) {
  .product-price-badge {
    bottom: 1rem;
    padding: 0.5rem 1.5rem;
  }
}

.product-price-text {
  font-size: 1rem;
  font-weight: 800;
  color: var(--foreground);
}

@media (min-width: 640px) {
  .product-price-text {
    font-size: 1.25rem;
  }
}

.product-hover-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem;
  background: linear-gradient(to top, rgba(250, 250, 250, 0.95), transparent);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out);
}

@media (min-width: 640px) {
  .product-hover-overlay {
    padding: 1rem;
  }
}

.product-card:hover .product-hover-overlay {
  opacity: 1;
  transform: translateY(0);
}

.product-info {
  padding: 0.75rem;
}

@media (min-width: 640px) {
  .product-info {
    padding: 1rem;
  }
}

.product-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 640px) {
  .product-name {
    font-size: 1rem;
  }
}

.product-price-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

@media (min-width: 640px) {
  .product-price-row {
    margin-top: 0.5rem;
  }
}

.product-price {
  font-size: 1rem;
  font-weight: 800;
  color: var(--foreground);
}

@media (min-width: 640px) {
  .product-price {
    font-size: 1.25rem;
  }
}

.product-original-price {
  font-size: 0.75rem;
  color: rgba(115, 115, 115, 0.6);
  text-decoration: line-through;
}

@media (min-width: 640px) {
  .product-original-price {
    font-size: 0.875rem;
  }
}

.products-footer {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .products-footer {
    margin-top: 3rem;
  }
}

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

@media (min-width: 640px) {
  .footer {
    padding: 3rem 0;
  }
}

.footer-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 640px) {
  .footer-content {
    flex-direction: row;
  }
}

.footer-logo {
  display: flex;
  align-items: baseline;
}

.footer-copyright {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

@media (min-width: 640px) {
  .footer-copyright {
    font-size: 0.875rem;
  }
}

/* ===== 弹窗 ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 26, 26, 0.5);
  backdrop-filter: blur(4px);
  padding: 1rem;
  animation: fadeIn 200ms var(--ease-out);
}

.modal-content {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem;
  max-width: 24rem;
  width: 100%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  animation: floatUp 300ms var(--ease-out);
}

.modal-small {
  max-width: 20rem;
}

.modal-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.modal-desc {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.modal-buttons {
  display: flex;
  gap: 0.75rem;
}

/* ===== 登录弹窗 ===== */
.back-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  background: none;
  border: none;
  cursor: pointer;
  margin-bottom: 1.5rem;
  transition: color 200ms;
}

.back-btn:hover {
  color: var(--foreground);
}

.back-btn:hover .back-icon {
  transform: translateX(-4px);
}

.back-icon {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 200ms;
}

.app-icon-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.app-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 0.75rem;
}

.app-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
  text-align: center;
  margin-bottom: 2rem;
}

.tab-switcher {
  display: flex;
  background: var(--secondary);
  border-radius: var(--radius);
  padding: 0.25rem;
  margin-bottom: 1.5rem;
}

.tab-btn {
  flex: 1;
  padding: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  background: none;
  border: none;
  border-radius: calc(var(--radius) - 2px);
  cursor: pointer;
  transition: all 200ms;
}

.tab-btn:hover {
  color: var(--foreground);
}

.tab-btn.active {
  background: var(--card);
  color: var(--foreground);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
}

.form-input {
  padding: 0.75rem;
  font-size: 0.875rem;
  color: var(--foreground);
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 200ms;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
}

.password-wrapper {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted-foreground);
}

.eye-icon {
  width: 1.25rem;
  height: 1.25rem;
}

.error-message {
  font-size: 0.875rem;
  color: var(--destructive);
  text-align: center;
}

/* ===== AI 弹窗 ===== */
.ai-modal-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.ai-modal-image {
  width: 5rem;
  height: 6.25rem;
  border-radius: var(--radius);
  object-fit: cover;
}

.ai-modal-info {
  flex: 1;
}

.ai-modal-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
}

.ai-modal-brand {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.ai-modal-price {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: 0.25rem;
}

.ai-report {
  background: var(--secondary);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1rem;
}

.ai-report-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.ai-report-content {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.ai-loading-text {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  text-align: center;
  margin-bottom: 1rem;
}

/* ===== 动画 ===== */
@keyframes breathe {
  0%, 100% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 0.75;
    transform: scale(1.02);
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(229, 168, 83, 0.2);
  }
  50% {
    box-shadow: 0 0 30px rgba(229, 168, 83, 0.4);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

/* ===== 响应式调整 ===== */
@media (max-width: 767px) {
  .desktop-nav {
    display: none;
  }
}

/* ===== AI Mystery Box 悬浮按钮 (样式隔离) ===== */
/* 所有类名使用 nova-box- 前缀，避免污染全局样式 */

.nova-box-float-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
  user-select: none;
}

.nova-box-icon-wrapper {
  position: relative;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  border-radius: 50%;
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.3),
    0 0 15px rgba(201, 162, 39, 0.3);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.nova-box-float-btn:hover .nova-box-icon-wrapper {
  transform: scale(1.15) rotate(8deg);
  box-shadow: 
    0 8px 30px rgba(0, 0, 0, 0.4),
    0 0 25px rgba(201, 162, 39, 0.5);
}

.nova-box-icon {
  width: 32px;
  height: 32px;
  transition: transform 0.4s var(--ease-out);
}

.nova-box-float-btn:hover .nova-box-icon {
  transform: scale(1.1);
}

/* 宝箱各部件样式 */
.nova-box-body {
  fill: #1a1a1a;
  stroke: #c9a227;
  transition: stroke 0.3s var(--ease-out);
}

.nova-box-top {
  fill: #1a1a1a;
  stroke: #c9a227;
  transition: stroke 0.3s var(--ease-out);
}

.nova-box-lock {
  fill: #c9a227;
  transition: fill 0.3s var(--ease-out);
}

.nova-box-float-btn:hover .nova-box-lock {
  fill: #d4af37;
}

.nova-box-keyhole {
  fill: #1a1a1a;
}

.nova-box-glow-line {
  stroke: #c9a227;
  opacity: 0.6;
  transition: opacity 0.3s var(--ease-out);
}

.nova-box-float-btn:hover .nova-box-glow-line {
  opacity: 1;
}

.nova-box-gem {
  fill: #c9a227;
  transition: fill 0.3s var(--ease-out);
}

.nova-box-float-btn:hover .nova-box-gem {
  fill: #d4af37;
}

/* 呼吸灯光晕效果 */
.nova-box-glow-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(201, 162, 39, 0.15) 0%, transparent 70%);
  animation: nova-box-breathe 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes nova-box-breathe {
  0%, 100% {
    opacity: 0.4;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1.15);
  }
}

/* 标签文字 */
.nova-box-label {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: #c9a227;
  letter-spacing: 0.5px;
  white-space: nowrap;
  opacity: 0.9;
  transition: opacity 0.3s var(--ease-out), color 0.3s var(--ease-out);
}

.nova-box-float-btn:hover .nova-box-label {
  opacity: 1;
  color: #d4af37;
}

/* 移动端适配 */
@media (max-width: 767px) {
  .nova-box-float-btn {
    bottom: 16px;
    right: 16px;
  }
  
  .nova-box-icon-wrapper {
    width: 48px;
    height: 48px;
  }
  
  .nova-box-icon {
    width: 28px;
    height: 28px;
  }
  
  .nova-box-label {
    font-size: 10px;
  }
}

/* ===== AI Mystery Box 开箱弹窗 (样式隔离) ===== */

/* 遮罩层容器 */
.nova-box-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}

.nova-box-modal-overlay.active {
  display: flex;
}

/* 磨砂玻璃背景 */
.nova-box-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* 弹窗内容 */
.nova-box-modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 40px 20px;
}

/* 扣费提示 */
.nova-box-fee-notice {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 32px;
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(42, 42, 42, 0.95) 100%);
  border: 1px solid rgba(201, 162, 39, 0.3);
  border-radius: 16px;
  animation: nova-box-fee-appear 0.5s ease-out forwards;
  opacity: 0;
}

.nova-box-modal-overlay.active .nova-box-fee-notice {
  opacity: 1;
}

.nova-box-fee-icon {
  width: 40px;
  height: 40px;
}

.nova-box-fee-icon svg {
  width: 100%;
  height: 100%;
}

.nova-box-fee-text {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.5px;
}

.nova-box-fee-amount {
  font-weight: 700;
  color: #c9a227;
  font-size: 20px;
}

/* 动画区域 */
.nova-box-animation-area {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  width: 100%;
  max-width: 400px;
  margin-top: 60px;
}

.nova-box-animation-area.active {
  display: flex;
}

/* 中央旋转宝箱 */
.nova-box-center-box {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nova-box-center-glow {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.6) 0%, rgba(201, 162, 39, 0.2) 40%, transparent 70%);
  animation: nova-box-center-glow 1.5s ease-in-out infinite;
}

.nova-box-center-icon {
  width: 80px;
  height: 80px;
  animation: nova-box-spin 0.8s linear infinite;
  filter: drop-shadow(0 0 20px rgba(201, 162, 39, 0.8));
}

/* 进度条容器 */
.nova-box-progress-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.nova-box-progress-label {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  letter-spacing: 0.3px;
}

.nova-box-progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.nova-box-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #c9a227 0%, #d4af37 50%, #c9a227 100%);
  border-radius: 4px;
  transition: width 0.1s linear;
  position: relative;
}

.nova-box-progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
  animation: nova-box-progress-shine 1.5s ease-in-out infinite;
}

.nova-box-progress-percent {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: #c9a227;
  letter-spacing: 0.5px;
}

/* ===== 开箱弹窗动画 ===== */

@keyframes nova-box-fee-appear {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes nova-box-center-glow {
  0%, 100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.2);
  }
}

@keyframes nova-box-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes nova-box-progress-shine {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* 移动端适配 */
@media (max-width: 767px) {
  .nova-box-fee-notice {
    padding: 16px 24px;
    gap: 12px;
  }
  
  .nova-box-fee-icon {
    width: 32px;
    height: 32px;
  }
  
  .nova-box-fee-text {
    font-size: 14px;
  }
  
  .nova-box-fee-amount {
    font-size: 16px;
  }
  
  .nova-box-center-box {
    width: 100px;
    height: 100px;
  }
  
  .nova-box-center-glow {
    width: 160px;
    height: 160px;
  }
  
  .nova-box-center-icon {
    width: 60px;
    height: 60px;
  }
  
  .nova-box-progress-label {
    font-size: 14px;
  }
  
  .nova-box-animation-area {
    margin-top: 40px;
    gap: 30px;
  }
}

/* ===== AI Mystery Box 开箱结果区域 ===== */
.nova-box-result-area {
  display: none;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-align: center;
  padding: 32px 24px;
  max-width: 320px;
  width: 100%;
}

.nova-box-result-area.active {
  display: block;
  opacity: 1;
  transform: scale(1);
}

.nova-box-result-title {
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  text-shadow: 0 0 20px rgba(201, 162, 27, 0.5);
}

.nova-box-result-subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 24px;
}

.nova-box-result-item {
  background: rgba(201, 162, 27, 0.15);
  border: 2px solid #c9a227;
  border-radius: 16px;
  padding: 20px 16px;
  margin-bottom: 20px;
  animation: nova-box-item-glow 2s ease-in-out infinite;
}

@keyframes nova-box-item-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(201, 162, 27, 0.3); }
  50% { box-shadow: 0 0 40px rgba(201, 162, 27, 0.6); }
}

.nova-box-result-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.nova-box-result-name {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 8px;
}

.nova-box-result-value {
  font-size: 24px;
  font-weight: 700;
  color: #c9a227;
}

.nova-box-result-message {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 24px;
}

.nova-box-highlight {
  color: #c9a227;
  font-weight: 600;
}

.nova-box-result-btn {
  background: linear-gradient(135deg, #c9a227, #a8861f);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 32px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(201, 162, 27, 0.4);
}

.nova-box-result-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 162, 27, 0.6);
}

.nova-box-result-btn:active {
  transform: scale(0.95);
}

/* ===== AI Mystery Box 奖池展示区域 ===== */
.nova-box-pool-area {
  display: none;
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  padding: 24px 20px;
  max-width: 420px;
  width: 100%;
  position: relative;
}

.nova-box-pool-area.active {
  display: block;
  opacity: 1;
  transform: scale(1);
}

.nova-box-pool-header {
  text-align: center;
  margin-bottom: 20px;
}

.nova-box-pool-title {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  text-shadow: 0 0 20px rgba(201, 162, 27, 0.4);
}

.nova-box-pool-subtitle {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}

.nova-box-pool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.nova-box-pool-item {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(201, 162, 27, 0.3);
  border-radius: 12px;
  padding: 12px 8px;
  text-align: center;
  transition: all 0.3s ease;
}

.nova-box-pool-item:hover {
  border-color: rgba(201, 162, 27, 0.6);
  background: rgba(201, 162, 27, 0.1);
  transform: translateY(-2px);
}

.nova-box-pool-item-icon {
  font-size: 28px;
  margin-bottom: 6px;
}

.nova-box-pool-item-name {
  font-size: 11px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nova-box-pool-item-value {
  font-size: 12px;
  font-weight: 700;
  color: #c9a227;
}

.nova-box-pool-item-rarity {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 4px;
  display: inline-block;
}

.nova-box-pool-item-rarity.Legendary {
  background: rgba(201, 162, 27, 0.3);
  color: #c9a227;
}

.nova-box-pool-item-rarity.Rare {
  background: rgba(147, 51, 234, 0.3);
  color: #a855f7;
}

.nova-box-pool-item-rarity.Epic {
  background: rgba(59, 130, 246, 0.3);
  color: #60a5fa;
}

.nova-box-pool-footer {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.nova-box-pool-cost {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

.nova-box-pool-cost-icon {
  font-size: 18px;
  color: #c9a227;
}

.nova-box-pool-cost-text strong {
  color: #c9a227;
}

.nova-box-pool-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #c9a227, #a8861f);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  padding: 14px 32px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(201, 162, 27, 0.5);
  width: 100%;
  justify-content: center;
}

.nova-box-pool-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(201, 162, 27, 0.7);
}

.nova-box-pool-btn:active {
  transform: scale(0.95);
}

.nova-box-pool-btn-icon {
  font-size: 20px;
}

.nova-box-pool-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 20px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nova-box-pool-close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* 移动端适配 */
@media (max-width: 480px) {
  .nova-box-pool-area {
    padding: 20px 16px;
  }
  
  .nova-box-pool-title {
    font-size: 20px;
  }
  
  .nova-box-pool-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .nova-box-pool-item {
    padding: 10px 6px;
  }
  
  .nova-box-pool-item-icon {
    font-size: 24px;
  }
  
  .nova-box-pool-btn {
    padding: 12px 24px;
    font-size: 14px;
  }
}

/* Language Switcher Styles */
.lang-switcher {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #a3a3a3;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #e5a853;
  border-color: rgba(201, 162, 39, 0.3);
}

.lang-arrow {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.lang-btn:hover .lang-arrow {
  transform: translateY(2px);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 8px;
  min-width: 120px;
  z-index: 1000;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.lang-dropdown.hidden {
  display: none;
}

.lang-option {
  display: block;
  width: 100%;
  padding: 8px 12px;
  background: transparent;
  border: none;
  border-radius: 4px;
  color: #a3a3a3;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.lang-option:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.lang-option.active {
  background: rgba(201, 162, 39, 0.1);
  color: #e5a853;
}

/* Mobile Language Switcher */
.mobile-lang-switcher {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin: 8px 0;
}

.mobile-lang-option {
  padding: 6px 16px;
  background: transparent;
  border: none;
  color: #a3a3a3;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-lang-option:hover {
  color: #ffffff;
}

.mobile-lang-option.active {
  color: #e5a853;
}

.mobile-lang-divider {
  color: rgba(255, 255, 255, 0.2);
}

/* ===== Order & Payment Modal Styles ===== */

.modal-content-large {
  max-width: 560px;
  max-height: 90vh;
  padding: 32px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.modal-content-large::-webkit-scrollbar {
  width: 6px;
}

.modal-content-large::-webkit-scrollbar-thumb {
  background: rgba(229, 168, 83, 0.3);
  border-radius: 3px;
}

.modal-content-large::-webkit-scrollbar-track {
  background: transparent;
}

.ai-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.ai-modal-actions button {
  flex: 1;
}

/* Order Modal */
.order-modal-header {
  text-align: center;
  margin-bottom: 16px;
}

.order-modal-title {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.order-modal-subtitle {
  color: #737373;
  font-size: 13px;
}

.order-product-info {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: #f5f5f5;
  border-radius: 12px;
  margin-bottom: 16px;
}

.order-product-image {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
}

.order-product-details h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.order-product-details p {
  color: #737373;
  font-size: 12px;
  margin-bottom: 2px;
}

.order-product-price {
  font-weight: 700;
  color: #1a1a1a !important;
  font-size: 16px !important;
}

.order-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
}

.form-group input,
.form-group textarea {
  padding: 10px 14px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.2s ease;
  font-family: inherit;
}

.form-group textarea {
  min-height: 60px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #e5a853;
}

.form-group textarea {
  resize: none;
}

.payment-method-section {
  margin-top: 8px;
}

.payment-method-section h4 {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.payment-options {
  display: flex;
  gap: 12px;
}

.payment-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border: 2px solid #e5e5e5;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.payment-option input {
  display: none;
}

.payment-option.active {
  border-color: #e5a853;
  background: rgba(229, 168, 83, 0.1);
}

.payment-icon {
  font-size: 20px;
  color: #e5a853;
}

.payment-name {
  font-size: 14px;
  font-weight: 500;
}

.payment-note {
  margin-top: 12px;
  font-size: 12px;
  color: #737373;
}

.order-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e5e5e5;
}

.order-modal-actions .btn-outline {
  flex: 1;
  padding: 12px 20px;
  background: #f5f5f5;
  color: #525252;
  border: 1px solid #d4d4d4;
  font-size: 14px;
  font-weight: 500;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.order-modal-actions .btn-outline:hover {
  background: #e5e5e5;
  border-color: #a3a3a3;
}

.order-modal-actions .btn-primary {
  flex: 1;
  padding: 12px 20px;
  background: #e5a853;
  color: #1a1a1a;
  border: none;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.order-modal-actions .btn-primary:hover {
  background: #d4a04a;
  transform: translateY(-1px);
}

/* Payment Modal */
.payment-modal-header {
  text-align: center;
  margin-bottom: 24px;
}

.payment-modal-header h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.payment-modal-header {
  text-align: center;
  margin-bottom: 24px;
}

.payment-modal-header h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #1a1a1a;
}

.payment-amount-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background: #fef3e2;
  border-radius: 12px;
  flex-wrap: wrap;
}

.payment-label {
  font-size: 14px;
  color: #737373;
}

.payment-usd {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
}

.payment-divider {
  color: #a3a3a3;
}

.payment-crypto {
  font-size: 16px;
  font-weight: 600;
  color: #e5a853;
}

.payment-steps {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px;
  background: #fafafa;
  border-radius: 12px;
}

.payment-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  flex: 1;
}

.step-number {
  width: 28px;
  height: 28px;
  background: #e5a853;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.payment-step p {
  font-size: 12px;
  color: #525252;
  line-height: 1.4;
}

.payment-info {
  margin-bottom: 24px;
}

.payment-address-box {
  background: #f5f5f5;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  margin-bottom: 16px;
}

.payment-address-box p {
  font-size: 14px;
  color: #737373;
  margin-bottom: 8px;
}

.payment-address {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
  word-break: break-all;
  margin-bottom: 16px;
  padding: 8px;
  background: #fff;
  border-radius: 6px;
  border: 1px solid #e5e5e5;
}

.payment-address-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.copy-address-btn,
.copy-amount-btn {
  padding: 12px 24px;
  background: #1a1a1a;
  border: 2px solid #e5a853;
  color: #e5a853;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 1;
  min-width: 140px;
}

.copy-address-btn:hover,
.copy-amount-btn:hover {
  background: #e5a853;
  color: #1a1a1a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(229, 168, 83, 0.3);
}

.copy-address-btn.copied,
.copy-amount-btn.copied {
  background: #22c55e;
  border-color: #22c55e;
  color: #fff;
}

.payment-network-info {
  text-align: center;
  padding: 12px;
  background: #fffbeb;
  border-radius: 8px;
  margin-bottom: 16px;
}

.payment-network-info p {
  font-size: 12px;
  color: #78716c;
  margin: 4px 0;
}

.payment-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px;
}

.payment-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e5e5e5;
  border-top-color: #e5a853;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.payment-status-text {
  font-size: 14px;
  color: #737373;
}

.payment-modal-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #e5e5e5;
}

.payment-modal-actions .btn-primary {
  background: #e5a853;
  color: #1a1a1a;
  border: none;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 1;
}

.payment-modal-actions .btn-primary:hover {
  background: #d4a04a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(229, 168, 83, 0.3);
}

.payment-modal-actions .btn-outline {
  background: #f5f5f5;
  border: 1px solid #d4d4d4;
  color: #525252;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 500;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 1;
}
  cursor: pointer;
  transition: all 0.2s ease;
}

.payment-modal-actions .btn-outline:hover {
  background: #f5f5f5;
}

.modal-content-large {
  max-width: 480px;
  width: 95%;
}
  font-size: 12px;
  color: #a3a3a3;
}

/* Order Success Modal */
.success-icon {
  width: 64px;
  height: 64px;
  background: #22c55e;
  color: white;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 auto 20px;
}

#orderSuccessModal h3 {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

.success-message {
  text-align: center;
  color: #737373;
  font-size: 14px;
  margin-bottom: 20px;
}

.order-number {
  text-align: center;
  background: #f5f5f5;
  padding: 12px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
}

.order-number span:first-child {
  color: #737373;
}

.order-number span:last-child {
  color: #e5a853;
}

.success-note {
  text-align: center;
  font-size: 12px;
  color: #a3a3a3;
  margin-bottom: 24px;
}

/* Responsive */
@media (max-width: 480px) {
  .modal-content-large {
    padding: 24px 20px;
    max-width: 100%;
  }
  
  .order-product-info {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .payment-options {
    flex-direction: column;
  }
  
  .ai-modal-actions,
  .order-modal-actions {
    flex-direction: column;
  }
}