/* Language Modal */
.language-modal {
  width: min(450px, calc(100% - 32px));
  padding: 32px;
  color: var(--ink);
  border: 1px solid var(--line-bright);
  border-radius: 20px;
  background: #16101f;
  box-shadow: 0 25px 90px rgba(0,0,0,.5);
}
.language-modal::backdrop {
  background: rgba(0,0,0,.8);
  backdrop-filter: blur(5px);
}
.language-content {
  text-align: center;
}
.language-icon {
  font-size: 48px;
  margin-bottom: 16px;
}
.language-content h2 {
  margin: 0 0 8px;
  font-size: 24px;
  color: var(--violet-light);
}
.language-content p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 14px;
}
.language-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.language-button {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
}
.language-button:hover {
  border-color: var(--violet-light);
  background: rgba(139,92,246,.15);
  transform: translateY(-2px);
}
.language-button .flag {
  font-size: 32px;
}

/* Auth Page */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  z-index: 1;
}

.auth-container {
  width: 100%;
  max-width: 380px;
  background: rgba(14, 10, 20, 0.95);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
  backdrop-filter: blur(18px);
}

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

.back-link {
  display: inline-block;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  margin-bottom: 16px;
  transition: color 0.3s ease;
}

.back-link:hover {
  color: var(--violet-light);
}

.auth-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.auth-logo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.auth-logo h1 {
  margin: 0;
  font-size: 20px;
  color: var(--ink);
}

.auth-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 24px;
  background: rgba(255,255,255,.04);
  padding: 4px;
  border-radius: 10px;
}

.auth-tab {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.auth-tab:hover {
  color: var(--ink);
}

.auth-tab.active {
  background: var(--violet-light);
  color: white;
}

.auth-content {
  position: relative;
  min-height: 240px;
}

.auth-form {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.auth-form.active {
  opacity: 1;
  visibility: visible;
  position: relative;
}

.auth-form .form-group {
  margin-bottom: 16px;
}

.auth-form label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}

.auth-form input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.04);
  color: var(--ink);
  font-size: 13px;
  transition: all 0.3s ease;
}

.auth-form input:focus {
  outline: none;
  border-color: var(--violet-light);
  background: rgba(139,92,246,.1);
}

.auth-form .button {
  width: 100%;
  margin-bottom: 10px;
  padding: 10px 16px;
  font-size: 13px;
}

.auth-hint {
  text-align: center;
  color: var(--muted);
  font-size: 11px;
  margin: 12px 0 0;
}

.auth-footer {
  margin-top: 24px;
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.auth-footer p {
  color: var(--muted);
  font-size: 11px;
  margin: 0;
}

/* Account Page */
.account-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  position: relative;
  z-index: 1;
}

.account-container {
  width: 100%;
  max-width: 1200px;
  background: rgba(14, 10, 20, 0.9);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 48px;
  box-shadow: 0 25px 90px rgba(0,0,0,.5);
  backdrop-filter: blur(18px);
}

.account-header {
  margin-bottom: 32px;
}

.account-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.account-logo img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.account-logo h1 {
  margin: 0;
  font-size: 24px;
  color: var(--ink);
}

.account-user {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.02);
  margin-bottom: 32px;
}

.user-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--violet-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  color: white;
}

.user-info h2 {
  margin: 0 0 4px;
  font-size: 18px;
  color: var(--ink);
}

.user-info p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.account-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
}

.account-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-section h3 {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.sidebar-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-menu li {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sidebar-menu li:hover {
  color: var(--ink);
  background: rgba(255,255,255,.04);
}

.sidebar-menu li.active {
  color: var(--ink);
  background: rgba(139,92,246,.15);
  font-weight: 600;
}

.balance-display {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.02);
  text-align: center;
}

.balance-amount {
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
}

.logout-button {
  width: 100%;
  border: 1px solid var(--line);
  color: #ff6b6b;
}

.logout-button:hover {
  background: rgba(255,107,107,.1);
  border-color: #ff6b6b;
}

.account-main {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.welcome-section h2 {
  margin: 0 0 8px;
  font-size: 28px;
  color: var(--ink);
}

.welcome-section p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.account-actions {
  display: flex;
  gap: 12px;
}

.account-actions .button {
  flex: 1;
}

.button-secondary {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}

.button-secondary:hover {
  background: rgba(255,255,255,.04);
  border-color: var(--violet-light);
}

.account-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.stat-item {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.02);
}

.stat-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}

.stat-value {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}

.orders-section {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  background: rgba(255,255,255,.02);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.section-header h3 {
  margin: 0;
  font-size: 16px;
  color: var(--ink);
}

.text-link {
  color: var(--violet-light);
  text-decoration: none;
  font-size: 14px;
}

.text-link:hover {
  text-decoration: underline;
}

.no-orders {
  text-align: center;
  padding: 40px 20px;
}

.no-orders-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 16px;
}

.no-orders h4 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--ink);
}

.no-orders p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
}

.quick-links h3 {
  margin: 0 0 16px;
  font-size: 16px;
  color: var(--ink);
}

.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.quick-link-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.02);
  text-decoration: none;
  color: var(--ink);
  transition: all 0.2s ease;
}

.quick-link-card:hover {
  background: rgba(255,255,255,.04);
  border-color: var(--violet-light);
}

.quick-link-icon {
  font-size: 24px;
}

@media (max-width: 900px) {
  .account-grid {
    grid-template-columns: 1fr;
  }
  
  .account-sidebar {
    order: 2;
  }
  
  .account-main {
    order: 1;
  }
}

@media (max-width: 600px) {
  .account-container {
    padding: 32px 24px;
  }
  
  .account-stats {
    grid-template-columns: 1fr;
  }
  
  .account-actions {
    flex-direction: column;
  }
  
  .quick-links-grid {
    grid-template-columns: 1fr;
  }
}

/* Policy Pages */
.policy-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  position: relative;
  z-index: 1;
}

.policy-container {
  width: 100%;
  max-width: 800px;
  background: rgba(14, 10, 20, 0.9);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 48px;
  box-shadow: 0 25px 90px rgba(0,0,0,.5);
  backdrop-filter: blur(18px);
}

.policy-header {
  text-align: center;
  margin-bottom: 48px;
}

.policy-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.policy-logo img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.policy-logo h1 {
  margin: 0;
  font-size: 24px;
  color: var(--ink);
}

.policy-header .eyebrow {
  color: var(--violet-light);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 16px;
}

.policy-header h1 {
  margin: 0;
  font-size: 32px;
  color: var(--ink);
  line-height: 1.2;
}

.policy-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.policy-section {
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.policy-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.policy-section h2 {
  margin: 0 0 16px;
  font-size: 20px;
  color: var(--ink);
}

.policy-section p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.policy-section a {
  color: var(--violet-light);
  text-decoration: none;
}

.policy-section a:hover {
  text-decoration: underline;
}

.cookie-types {
  display: grid;
  gap: 20px;
}

.cookie-type {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.02);
}

.cookie-type h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--ink);
}

.cookie-type p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.info-list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.info-list li {
  margin-bottom: 8px;
}

.browser-list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.browser-list li {
  margin-bottom: 12px;
}

.policy-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.policy-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 600px) {
  .policy-container {
    padding: 32px 24px;
  }
  
  .policy-header h1 {
    font-size: 24px;
  }
  
  .policy-section h2 {
    font-size: 18px;
  }
}

/* Why Us Section */
.why-us-section {
  padding: 80px 40px;
  margin: 60px auto;
  max-width: 1400px;
  text-align: center;
}

.section-heading {
  text-align: center;
  margin-bottom: 48px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 48px;
  width: 100%;
}

.feature-card {
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.03);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(50px) scale(0.95);
  animation: fadeInUpScale 0.8s ease forwards;
  text-align: center;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }

.feature-card:hover {
  transform: translateY(-15px) scale(1.02);
  border-color: var(--violet-light);
  background: rgba(139,92,246,.12);
  box-shadow: 0 30px 60px rgba(139,92,246,.25);
}

.feature-icon {
  font-size: 64px;
  margin-bottom: 24px;
  display: block;
  transition: transform 0.4s ease;
  filter: drop-shadow(0 4px 8px rgba(139,92,246,.3));
}

.feature-card:hover .feature-icon {
  transform: scale(1.2) rotate(10deg);
  filter: drop-shadow(0 8px 16px rgba(139,92,246,.5));
}

.feature-card h3 {
  margin: 0 0 12px;
  font-size: 22px;
  color: var(--ink);
  font-weight: 700;
}

.feature-subtitle {
  color: var(--violet-light);
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 16px;
  display: block;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

/* Difference Section */
.difference-section {
  padding: 80px 40px;
  margin: 60px auto;
  max-width: 1200px;
  text-align: center;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 48px;
  width: 100%;
}

.benefit-card {
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.03);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(50px) scale(0.95);
  animation: fadeInUpScale 0.8s ease forwards;
  text-align: center;
}

.benefit-card:nth-child(1) { animation-delay: 0.6s; }
.benefit-card:nth-child(2) { animation-delay: 0.7s; }
.benefit-card:nth-child(3) { animation-delay: 0.8s; }
.benefit-card:nth-child(4) { animation-delay: 0.9s; }

.benefit-card:hover {
  transform: translateY(-12px) scale(1.02);
  border-color: var(--violet-light);
  background: rgba(139,92,246,.12);
  box-shadow: 0 25px 50px rgba(139,92,246,.2);
}

.benefit-icon {
  font-size: 56px;
  margin-bottom: 20px;
  display: block;
  transition: transform 0.4s ease;
  filter: drop-shadow(0 4px 8px rgba(139,92,246,.3));
}

.benefit-card:hover .benefit-icon {
  transform: scale(1.25) rotate(-5deg);
  filter: drop-shadow(0 8px 16px rgba(139,92,246,.5));
}

.benefit-card h3 {
  margin: 0 0 12px;
  font-size: 20px;
  color: var(--ink);
  font-weight: 700;
}

.benefit-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* Stats Section */
.stats-section {
  padding: 100px 40px;
  margin: 80px auto;
  max-width: 1000px;
  background: linear-gradient(135deg, rgba(139,92,246,.15), rgba(0,0,0,.4));
  border-radius: 24px;
  text-align: center;
  border: 1px solid rgba(139,92,246,.3);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 48px;
  margin-top: 48px;
  width: 100%;
}

.stat-card {
  text-align: center;
  position: relative;
  opacity: 0;
  transform: scale(0.5) rotate(-10deg);
  animation: scaleInRotate 1s ease forwards;
}

.stat-card:nth-child(1) { animation-delay: 1s; }
.stat-card:nth-child(2) { animation-delay: 1.1s; }
.stat-card:nth-child(3) { animation-delay: 1.2s; }

.stat-number {
  font-size: 72px;
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 16px;
  transition: all 0.4s ease;
  text-shadow: 0 4px 20px rgba(139,92,246,.3);
}

.stat-card:hover .stat-number {
  color: var(--violet-light);
  transform: scale(1.1);
  text-shadow: 0 8px 30px rgba(139,92,246,.5);
}

.stat-label {
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-plus {
  position: absolute;
  top: -15px;
  right: 30px;
  font-size: 48px;
  font-weight: 900;
  color: var(--violet-light);
  opacity: 0.6;
  animation: pulse 2s ease-in-out infinite;
}

.stat-stars {
  font-size: 28px;
  margin-top: 12px;
}

/* How It Works Section */
.how-it-works-section {
  padding: 80px 40px;
  margin: 60px auto;
  max-width: 1100px;
  text-align: center;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  margin-top: 48px;
  width: 100%;
}

.step-card {
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.03);
  position: relative;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(50px) scale(0.95);
  animation: fadeInUpScale 0.8s ease forwards;
  text-align: center;
}

.step-card:nth-child(1) { animation-delay: 1.4s; }
.step-card:nth-child(2) { animation-delay: 1.5s; }
.step-card:nth-child(3) { animation-delay: 1.6s; }

.step-card:hover {
  transform: translateY(-15px) scale(1.03);
  border-color: var(--violet-light);
  background: rgba(139,92,246,.12);
  box-shadow: 0 35px 70px rgba(139,92,246,.25);
}

.step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--violet-light), #8b5cf6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 900;
  color: white;
  box-shadow: 0 8px 25px rgba(139,92,246,.5);
  animation: float 3s ease-in-out infinite;
}

.step-icon {
  font-size: 64px;
  margin-bottom: 24px;
  display: block;
  transition: transform 0.4s ease;
  filter: drop-shadow(0 4px 12px rgba(139,92,246,.3));
}

.step-card:hover .step-icon {
  transform: scale(1.3) rotate(-8deg);
  filter: drop-shadow(0 8px 24px rgba(139,92,246,.5));
}

.step-card h3 {
  margin: 0 0 16px;
  font-size: 22px;
  color: var(--ink);
  font-weight: 700;
}

.step-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

/* Animations */
@keyframes fadeInUpScale {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes scaleInRotate {
  from {
    opacity: 0;
    transform: scale(0.5) rotate(-10deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

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

@keyframes float {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-8px);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .why-us-section,
  .difference-section,
  .how-it-works-section {
    padding: 60px 24px;
    margin: 60px auto;
  }
  
  .stats-section {
    padding: 60px 24px;
    margin: 80px auto;
  }
  
  .features-grid,
  .benefits-grid,
  .stats-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }
  
  .stat-number {
    font-size: 56px;
  }
  
  .feature-icon,
  .benefit-icon,
  .step-icon {
    font-size: 48px;
  }
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  width: min(600px, calc(100% - 32px));
  background: rgba(14, 10, 20, 0.95);
  border: 1px solid var(--line-bright);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  backdrop-filter: blur(18px);
  z-index: 1000;
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-banner.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.cookie-content {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.cookie-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.cookie-text {
  flex: 1;
}

.cookie-text h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--ink);
}

.cookie-text p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.cookie-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 140px;
}

.cookie-buttons .button {
  padding: 10px 16px;
  font-size: 13px;
}

.cookie-reject {
  border: 1px solid var(--line);
}

@media (max-width: 600px) {
  .cookie-content {
    flex-direction: column;
  }
  
  .cookie-buttons {
    flex-direction: row;
    width: 100%;
  }
  
  .cookie-buttons .button {
    flex: 1;
  }
}

/* Auth Dialog */
.auth-dialog { width: min(420px, calc(100% - 32px)); padding: 24px; color: var(--ink); border: 1px solid var(--line-bright); border-radius: 18px; background: #16101f; box-shadow: 0 25px 90px rgba(0,0,0,.5); }
.auth-dialog::backdrop { background: rgba(0,0,0,.65); backdrop-filter: blur(3px); }
.auth-container { max-width: 100%; }
.auth-header { display: flex; justify-content: space-between; align-items: start; margin-bottom: 20px; }
.auth-tabs { display: flex; gap: 8px; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.auth-tab { flex: 1; padding: 10px; color: var(--muted); border: 1px solid var(--line); border-radius: 10px; background: transparent; font-size: 12px; font-weight: 600; transition: .2s ease; }
.auth-tab:hover { color: var(--ink); background: rgba(255,255,255,.04); }
.auth-tab.active { color: var(--ink); border-color: var(--violet-light); background: rgba(139,92,246,.15); }
.auth-form { display: none; flex-direction: column; gap: 16px; }
.auth-form.active { display: flex; }
.auth-form.hidden { display: none; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { color: var(--soft); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.form-group input { padding: 12px 14px; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.04); font-size: 13px; transition: .2s ease; }
.form-group input:focus { outline: none; border-color: var(--violet-light); background: rgba(139,92,246,.08); }
.form-group input::placeholder { color: var(--soft); }
.google-auth { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; margin-top: 8px; border: 1px solid var(--line); background: rgba(255,255,255,.04); font-size: 12px; }
.google-auth:hover { border-color: var(--line-bright); background: rgba(255,255,255,.08); }
.auth-error { margin-top: 16px; padding: 12px; color: #ff6b6b; border: 1px solid rgba(255,107,107,.3); border-radius: 10px; background: rgba(255,107,107,.1); font-size: 12px; text-align: center; display: none; }
.auth-error.show { display: block; }

/* Checkout Dialog */
.checkout-dialog { width: min(600px, calc(100% - 32px)); max-height: min(700px, calc(100dvh - 40px)); padding: 24px; overflow-y: auto; color: var(--ink); border: 1px solid var(--line-bright); border-radius: 18px; background: #16101f; box-shadow: 0 25px 90px rgba(0,0,0,.5); }
.checkout-dialog::backdrop { background: rgba(0,0,0,.65); backdrop-filter: blur(3px); }
.checkout-container { max-width: 100%; }
.checkout-header { display: flex; justify-content: space-between; align-items: start; margin-bottom: 20px; }
.checkout-content { display: flex; flex-direction: column; gap: 20px; margin-bottom: 20px; }
.order-summary { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.02); }
.order-summary h3 { margin-bottom: 12px; font-size: 14px; color: var(--violet-light); }
.checkout-items { min-height: 100px; margin-bottom: 12px; }
.checkout-item { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.05); font-size: 12px; }
.checkout-item:last-child { border-bottom: none; }
.checkout-total { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; }
.checkout-total strong { font-size: 18px; color: var(--violet-light); }
.payment-instructions { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.02); }
.payment-instructions h3 { margin-bottom: 16px; font-size: 14px; color: var(--violet-light); }
.payment-method { display: flex; gap: 12px; padding: 12px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.02); }
.payment-icon { display: grid; place-items: center; width: 40px; height: 40px; font-size: 24px; border-radius: 8px; background: rgba(139,92,246,.1); }
.payment-details h4 { margin: 0 0 4px; font-size: 13px; }
.payment-details p { margin: 2px 0; color: var(--muted); font-size: 11px; }
.payment-details strong { color: var(--ink); }
.payment-note { color: #ff9e64; font-size: 10px; font-style: italic; }
.upload-section { margin-top: 16px; padding: 12px; border: 1px dashed var(--line-bright); border-radius: 10px; background: rgba(139,92,246,.05); }
.upload-section h4 { margin-bottom: 8px; font-size: 12px; color: var(--violet-light); }
.file-input { width: 100%; padding: 8px; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.04); font-size: 11px; }
.upload-hint { margin-top: 6px; color: var(--soft); font-size: 10px; }
.discord-section { margin-top: 16px; padding: 12px; border: 1px solid rgba(88,101,242,.3); border-radius: 10px; background: rgba(88,101,242,.1); }
.discord-section h4 { margin-bottom: 8px; font-size: 12px; color: #5865f2; }
.discord-section p { margin: 4px 0; color: var(--muted); font-size: 11px; }
.discord-link { width: 100%; margin-top: 8px; display: flex; align-items: center; justify-content: center; gap: 8px; background: #5865f2; }
.discord-link:hover { background: #4752c4; box-shadow: 0 8px 20px rgba(88,101,242,.3); }
.discord-note { margin-top: 8px; color: #5865f2; font-size: 10px; font-style: italic; }
.checkout-actions { display: flex; gap: 12px; }

@media (max-width: 700px) {
  .checkout-content { grid-template-columns: 1fr; }
}

/* User Menu */
.user-menu { position: fixed; top: 70px; right: 20px; z-index: 100; padding: 16px; border: 1px solid var(--line-bright); border-radius: 12px; background: #16101f; box-shadow: 0 15px 40px rgba(0,0,0,.4); animation: fadeIn .2s ease; }
.user-menu-content { min-width: 200px; }
.user-menu-content p { margin: 0 0 8px; color: var(--ink); font-size: 13px; }
.user-menu-content .user-email { color: var(--muted); font-size: 11px; margin-bottom: 12px; }
.user-menu-content .button { width: 100%; font-size: 11px; }

/* Enhanced Animations */
@keyframes slideIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Button hover effects */
.button-primary { position: relative; overflow: hidden; }
.button-primary::before {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
  transition: left 0.5s;
}
.button-primary:hover::before { left: 100%; }

/* Auth button special effect */
.auth-button { position: relative; font-size: 20px; }
.auth-button::after {
  content: "";
  position: absolute;
  bottom: 0; left: 50%;
  width: 0; height: 2px;
  background: var(--violet-light);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}
.auth-button:hover::after { width: 80%; }
.auth-button:hover { transform: scale(1.1); }

/* Form input animations */
.form-group input { transition: all 0.3s ease; }
.form-group input:focus {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139,92,246,.2);
}

/* Product Images */
.product-image {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  background: rgba(255,255,255,.05);
  margin-bottom: 12px;
}

.cart-product-image {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
  background: rgba(255,255,255,.05);
}

.product-card-top {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.product-card {
  padding: 16px;
}

/* Checkout items animation */
.checkout-item { animation: slideIn 0.3s ease forwards; opacity: 0; }
.checkout-item:nth-child(1) { animation-delay: 0.1s; }
.checkout-item:nth-child(2) { animation-delay: 0.2s; }
.checkout-item:nth-child(3) { animation-delay: 0.3s; }
.checkout-item:nth-child(4) { animation-delay: 0.4s; }

/* Payment method hover effect */
.payment-method { transition: all 0.3s ease; }
.payment-method:hover {
  transform: translateY(-2px);
  border-color: var(--violet-light);
  box-shadow: 0 4px 12px rgba(139,92,246,.15);
}

/* Discord link special effect */
.discord-link { 
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}
.discord-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(88,101,242,.4);
}

/* Cart badge animation */
.cart-count { transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55); }
.cart-count.updated { transform: scale(1.3); }

/* Cart Animation */
@keyframes cartPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}
.cart-button.added { animation: cartPulse 0.3s ease; }
.cart-button.added { color: var(--violet-light); }

/* Loading Spinner */
@keyframes spin {
  to { transform: rotate(360deg); }
}
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: var(--violet-light);
  animation: spin 0.8s linear infinite;
}
.loading-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(9,7,13,0.8);
  z-index: 10;
}

/* Smooth dialog animations */
.auth-dialog, .checkout-dialog { animation: slideIn 0.3s ease; }

/* Loading state */
.button.loading { position: relative; pointer-events: none; opacity: 0.7; }
.button.loading::after {
  content: "";
  position: absolute;
  width: 16px; height: 16px;
  top: 50%; left: 50%;
  margin: -8px 0 0 -8px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Success state */
.button.success { background: #10b981 !important; }
.button.success:hover { background: #059669 !important; }

/* Error state */
.button.error { background: #ef4444 !important; }
.button.error:hover { background: #dc2626 !important; }

/* File input styling */
.file-input-wrapper { position: relative; }
.file-input-wrapper::before {
  content: "📁 Subir captura";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 11px;
  pointer-events: none;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.02);
  transition: all 0.3s ease;
}
.file-input-wrapper:hover::before {
  border-color: var(--violet-light);
  color: var(--violet-light);
  background: rgba(139,92,246,.08);
}
.file-input { opacity: 0; cursor: pointer; }

/* Responsive improvements */
@media (max-width: 700px) {
  .user-menu { right: 10px; left: 10px; top: 60px; }
  .auth-dialog, .checkout-dialog { width: calc(100% - 20px); max-height: 80vh; }
}