/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Aviator-themed color palette */
  --background: hsl(240, 10%, 3.9%);
  --foreground: hsl(0, 0%, 98%);
  --card: hsl(240, 10%, 7%);
  --card-foreground: hsl(0, 0%, 98%);
  --primary: hsl(14, 100%, 57%);
  --primary-foreground: hsl(0, 0%, 98%);
  --primary-glow: hsl(14, 100%, 67%);
  --secondary: hsl(240, 5%, 15%);
  --secondary-foreground: hsl(0, 0%, 98%);
  --muted: hsl(240, 5%, 12%);
  --muted-foreground: hsl(240, 5%, 64%);
  --accent: hsl(217, 91%, 60%);
  --accent-foreground: hsl(0, 0%, 98%);
  --border: hsl(240, 6%, 20%);
  --input: hsl(240, 6%, 20%);
  --ring: hsl(14, 100%, 57%);
  
  /* Aviator gradients */
  --gradient-aviator: linear-gradient(180deg, hsl(240, 15%, 5%) 0%, hsl(240, 12%, 8%) 30%, hsl(240, 10%, 12%) 100%);
  --gradient-crypto: linear-gradient(135deg, hsl(14, 100%, 57%), hsl(217, 91%, 60%));
  --gradient-card: linear-gradient(145deg, hsl(240, 10%, 7%), hsl(240, 8%, 9%));
  --gradient-sky: radial-gradient(ellipse at top center, hsl(217, 91%, 20%, 0.3) 0%, transparent 50%);
  --gradient-flight: linear-gradient(45deg, hsl(217, 91%, 60%, 0.1), hsl(14, 100%, 57%, 0.1));
  --gradient-trail: linear-gradient(90deg, transparent 0%, hsl(14, 100%, 57%, 0.6) 50%, transparent 100%);
  
  /* Shadows */
  --shadow-crypto: 0 0 30px hsl(14, 100%, 57%, 0.3);
  --shadow-card: 0 10px 30px -5px hsl(240, 10%, 1%, 0.3);
  --shadow-flight: 0 0 60px hsl(217, 91%, 60%, 0.4);
  
  /* Animations */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: 'Roboto', sans-serif;
  background: var(--gradient-aviator);
  color: var(--foreground);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Payment Container */
.payment-container {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

/* Aviator Background Animations */
.aviator-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Sky gradient overlay */
.aviator-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-sky);
}

/* Flight path overlay */
.aviator-background::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-flight);
  opacity: 0.2;
}

/* Flying Planes Animations */
@keyframes fly-across {
  0% {
      transform: translateX(-100px) translateY(0px) rotate(15deg);
      opacity: 0;
  }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% {
      transform: translateX(calc(100vw + 100px)) translateY(-50px) rotate(15deg);
      opacity: 0;
  }
}

@keyframes fly-diagonal {
  0% {
      transform: translateX(-100px) translateY(100px) rotate(25deg);
      opacity: 0;
  }
  10% { opacity: 0.8; }
  90% { opacity: 0.8; }
  100% {
      transform: translateX(calc(100vw + 100px)) translateY(-100px) rotate(25deg);
      opacity: 0;
  }
}

@keyframes fly-reverse {
  0% {
      transform: translateX(calc(100vw + 100px)) translateY(50px) rotate(-15deg) scaleX(-1);
      opacity: 0;
  }
  10% { opacity: 0.6; }
  90% { opacity: 0.6; }
  100% {
      transform: translateX(-100px) translateY(-30px) rotate(-15deg) scaleX(-1);
      opacity: 0;
  }
}

@keyframes float-up-down {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes drift-left-right {
  0%, 100% { transform: translateX(0px); }
  50% { transform: translateX(30px); }
}

/* Flying Elements */
.flying-plane {
  position: absolute;
  font-size: 2rem;
  z-index: 2;
}

.plane-1 {
  top: 8rem;
  animation: fly-across 5s linear infinite;
  opacity: 0.7;
}

.plane-2 {
  top: 12rem;
  font-size: 1.8rem;
  animation: fly-diagonal 10s linear infinite 8s;
  opacity: 0.6;
}

.plane-3 {
  top: 16rem;
  font-size: 1.8rem;
  animation: fly-reverse 15s linear infinite 15s;
  opacity: 0.5;
}

.plane-4 {
  top: 24rem;
  font-size: 1.5rem;
  animation: fly-across 20s linear infinite 12s;
  opacity: 0.4;
}

.plane-5 {
  top: 7rem;
  font-size: 1.5rem;
  animation: fly-diagonal 25s linear infinite 20s;
  opacity: 0.35;
}

/* Floating Clouds */
.floating-cloud {
  position: absolute;
  font-size: 1.5rem;
  opacity: 0.3;
  z-index: 2;
}

.cloud-1 {
  top: 5rem;
  left: 33%;
  animation: float-up-down 6s ease-in-out infinite;
}

.cloud-2 {
  top: 18rem;
  right: 25%;
  font-size: 1.2rem;
  opacity: 0.25;
  animation: drift-left-right 8s ease-in-out infinite;
}

.cloud-3 {
  bottom: 8rem;
  left: 20%;
  font-size: 1rem;
  opacity: 0.2;
  animation: float-up-down 6s ease-in-out infinite 3s;
}

/* Flight Trails */
.flight-trail {
  position: absolute;
  height: 2px;
  background: var(--gradient-trail);
  animation: pulse 2s ease-in-out infinite;
  z-index: 2;
}

.trail-1 {
  top: 5rem;
  left: 2.5rem;
  width: 24rem;
  opacity: 0.6;
}

.trail-2 {
  top: 10rem;
  right: 5rem;
  width: 20rem;
  opacity: 0.4;
  animation-delay: 1s;
}

.trail-3 {
  bottom: 15rem;
  left: 25%;
  width: 16rem;
  opacity: 0.5;
  animation-delay: 2s;
}

/* Floating Particles */
.particle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
  z-index: 2;
}

.particle-1 {
  top: 25%;
  left: 25%;
  background: hsl(14, 100%, 57%, 0.3);
}

.particle-2 {
  top: 33%;
  right: 33%;
  width: 4px;
  height: 4px;
  background: hsl(217, 91%, 60%, 0.4);
  animation-delay: 0.7s;
}

/* Discount Code Styles */
.discount-container {
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
}

.discount-input {
    flex: 1;
    margin-bottom: 0;
}

.apply-discount-btn {
    padding: 0.75rem 1.5rem;
    background: var(--secondary);
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    color: var(--foreground);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.apply-discount-btn:hover:not(:disabled) {
    background: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary);
}

.apply-discount-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.apply-discount-btn.applied {
    background: #22c55e;
    color: white;
    border-color: #22c55e;
}

.discount-message {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    min-height: 1.25rem;
}

.discount-message.success {
    color: #22c55e;
}

.discount-message.error {
    color: #ef4444;
}

/* Update payment summary for discount */
.discount-row {
    color: #22c55e;
    font-weight: 500;
}

.discount-row .summary-value {
    color: #22c55e;
}

.original-price {
    text-decoration: line-through;
    color: var(--muted-foreground);
    margin-right: 0.5rem;
}

/* Discount Code Styles - Updated */
.discount-input-container {
    width: 100%;
}

.discount-input-wrapper {
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
    margin-bottom: 0.5rem;
}

.discount-input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: hsl(var(--secondary), 0.5);
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    color: var(--foreground);
    font-size: 0.875rem;
    transition: var(--transition-smooth);
    margin-bottom: 0;
}

.discount-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px hsl(var(--ring), 0.2);
}

.discount-input::placeholder {
    color: var(--muted-foreground);
}

.apply-discount-btn {
    position: relative;
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 0.375rem;
    color: var(--primary-foreground);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    white-space: nowrap;
    min-width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.apply-discount-btn:hover:not(:disabled) {
    background: hsl(var(--primary), 0.9);
    transform: translateY(-1px);
}

.apply-discount-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.apply-discount-btn.applied {
    background: #22c55e;
    border-color: #22c55e;
    color: white;
}

.apply-discount-btn.applied .btn-text::after {
    content: " ✓";
    font-weight: bold;
}

.apply-discount-btn.error {
    background: #ef4444;
    border-color: #ef4444;
    color: white;
}

.apply-discount-btn.error .btn-text::after {
    content: " ✕";
    font-weight: bold;
}

/* Loading spinner */
.btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Discount status */
.discount-status {
    min-height: 20px;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.discount-status.success {
    color: #22c55e;
}

.discount-status.error {
    color: #ef4444;
}

.discount-status .discount-code {
    font-weight: 600;
    background: rgba(34, 197, 94, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.discount-status.error .discount-code {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
}

/* Remove discount button */
.remove-discount {
    background: none;
    border: none;
    color: var(--muted-foreground);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: var(--transition-smooth);
    font-size: 0.875rem;
}

.remove-discount:hover {
    color: var(--foreground);
    background: rgba(239, 68, 68, 0.1);
}

/* Updated Payment Summary Styles */
.payment-summary {
    background: hsl(var(--secondary), 0.3);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid hsl(var(--border), 0.3);
}

.summary-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.summary-label {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.summary-value {
    color: var(--foreground);
    font-weight: 500;
    text-align: right;
}

.challenge-name {
    font-weight: 600;
    color: var(--foreground);
}

.challenge-price {
    font-size: 1.125rem;
    font-weight: 600;
}

.discount-row {
    color: #22c55e;
}

.discount-row .summary-value {
    color: #22c55e;
    font-weight: 600;
}

.total-row {
    border-top: 2px solid var(--border);
    padding-top: 1rem;
    margin-top: 0.5rem;
}

.total-row .summary-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--foreground);
}

.total-row .summary-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.original-price {
    text-decoration: line-through;
    color: var(--muted-foreground);
    font-size: 0.875rem;
    margin-right: 0.5rem;
    opacity: 0.7;
}

/* Terms and Conditions */
.terms-section {
    margin: 1.5rem 0;
}

.terms-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: hsl(var(--secondary), 0.2);
    border-radius: 0.5rem;
    border: 1px solid var(--border);
}

.terms-checkbox input[type="checkbox"] {
    margin-top: 0.25rem;
    accent-color: var(--primary);
}

.terms-label {
    font-size: 0.875rem;
    color: var(--foreground);
    line-height: 1.4;
}

.terms-label a {
    color: var(--primary);
    text-decoration: none;
}

.terms-label a:hover {
    text-decoration: underline;
}

.terms-error {
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: none;
}

.terms-error.show {
    display: block;
}

.particle-3 {
  bottom: 33%;
  left: 50%;
  width: 6px;
  height: 6px;
  background: hsl(14, 100%, 57%, 0.2);
  animation-delay: 1.5s;
}

.particle-4 {
  top: 50%;
  right: 25%;
  width: 4px;
  height: 4px;
  background: hsl(217, 91%, 60%, 0.3);
  animation-delay: 2.3s;
}

@keyframes ping {
  75%, 100% {
      transform: scale(2);
      opacity: 0;
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Payment Box */
.payment-box {
  position: relative;
  z-index: 10;
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  width: 100%;
  max-width: 40rem;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(10px);
}

/* Header */
.payment-header {
  text-align: center;
  margin-bottom: 2rem;
}

.header-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.wallet-icon {
  position: relative;
  color: var(--primary);
  font-size: 3rem;
  animation: pulse 2s ease-in-out infinite;
}

.zap-icon {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  color: var(--accent);
  font-size: 1.5rem;
  animation: bounce 1s infinite;
}

@keyframes bounce {
  0%, 20%, 53%, 80%, 100% { transform: translate3d(0,0,0); }
  40%, 43% { transform: translate3d(0,-15px,0); }
  70% { transform: translate3d(0,-7px,0); }
  90% { transform: translate3d(0,-2px,0); }
}

.main-title {
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--gradient-crypto);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.subtitle {
  color: var(--muted-foreground);
  font-size: 1.125rem;
}

/* Billing Toggle */
.billing-toggle {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.billing-toggle > div {
  display: flex;
  background: hsl(var(--secondary), 0.3);
  backdrop-filter: blur(4px);
  border-radius: 0.5rem;
  padding: 0.25rem;
}

.toggle-btn {
  padding: 0.5rem 1.5rem;
  border: none;
  border-radius: 0.375rem;
  background: transparent;
  color: var(--muted-foreground);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
}

.toggle-btn.active {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-crypto);
}

.toggle-btn:not(.active):hover {
  color: var(--foreground);
}

.save-badge {
  margin-left: 0.5rem;
  font-size: 0.75rem;
  background: hsl(var(--accent), 0.2);
  color: var(--accent);
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
}

/* Form Styles */
.payment-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.form-label {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
}

.form-input,
.form-select {
  width: 100%;
  padding: 0.75rem;
  background: hsl(var(--secondary), 0.5);
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  color: var(--foreground);
  font-size: 0.875rem;
  transition: var(--transition-smooth);
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px hsl(var(--ring), 0.2);
}

.form-input::placeholder {
  color: var(--muted-foreground);
}

/* Crypto Options */
.crypto-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.crypto-option {
  position: relative;
  padding: 1.5rem;
  border: 2px solid var(--border);
  border-radius: 0.75rem;
  background: hsl(var(--secondary), 0.3);
  cursor: pointer;
  transition: var(--transition-smooth);
  text-align: center;
}

.crypto-option:hover {
  border-color: hsl(var(--primary), 0.5);
  transform: scale(1.05);
}

.crypto-option.selected {
  border-color: var(--primary);
  background: hsl(var(--primary), 0.1);
  box-shadow: var(--shadow-crypto);
}

.crypto-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  margin: 0 auto 0.75rem;
  transition: transform 0.3s ease;
}

.crypto-option:hover .crypto-icon {
  transform: scale(1.1);
}

.btc-icon { background: #f7931a; }
.ltc-icon { background: #345d9d; }
.usdt-icon { background: #26a17b; }

.crypto-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.crypto-symbol {
  font-weight: 600;
  color: var(--foreground);
}

.crypto-name {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.check-icon {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  width: 1.5rem;
  height: 1.5rem;
  background: var(--primary);
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--primary-foreground);
  font-size: 1rem;
}

.crypto-option.selected .check-icon {
  display: flex;
}

/* Wallet Address */
.wallet-address-container {
  position: relative;
}

.wallet-placeholder {
  padding: 1rem;
  background: hsl(var(--muted), 0.3);
  border: 1px dashed var(--border);
  border-radius: 0.5rem;
  color: var(--muted-foreground);
  text-align: center;
}

.wallet-address-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: hsl(var(--secondary), 0.5);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
}

.wallet-address {
  flex: 1;
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
  color: var(--foreground);
  word-break: break-all;
  background: transparent;
  border: none;
}

.copy-btn {
  padding: 0.5rem;
  background: transparent;
  border: none;
  color: var(--muted-foreground);
  cursor: pointer;
  border-radius: 0.25rem;
  transition: var(--transition-smooth);
}

.copy-btn:hover {
  color: var(--primary);
  background: hsl(var(--primary), 0.1);
}

.copy-btn.copied {
  color: #22c55e;
}

/* User Details */
.user-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.user-details .form-input:nth-child(3) {
  grid-column: 1 / -1;
}

/* Payment Summary */
.payment-summary {
  background: hsl(var(--secondary), 0.3);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.summary-row:last-child {
  margin-bottom: 0;
}

.summary-label {
  color: var(--muted-foreground);
}

.summary-value {
  color: var(--foreground);
  font-weight: 500;
}

.total-row {
  border-top: 1px solid hsl(var(--border), 0.5);
  padding-top: 0.5rem;
  margin-top: 0.5rem;
}

.total-row .summary-label,
.total-row .summary-value {
  font-weight: 600;
}

.total-price {
  color: var(--primary);
}

/* Submit Button */
.submit-btn {
  position: relative;
  width: 100%;
  padding: 0.875rem 2rem;
  background: var(--primary);
  color: var(--primary-foreground);
  border: none;
  border-radius: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  overflow: hidden;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-crypto);
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px hsl(var(--primary), 0.4);
}

.submit-btn:active {
  transform: translateY(0);
}

.btn-text {
  position: relative;
  z-index: 2;
}

.btn-bg {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.submit-btn:hover .btn-bg {
  left: 100%;
}

/* Support Section */
.support-section {
  text-align: center;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.support-section p {
  margin-bottom: 0.5rem;
}

.telegram-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.telegram-btn:hover {
  color: var(--primary);
}

/* Custom Alerts */
.alert-container {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.custom-alert {
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  color: white;
  font-weight: 500;
  min-width: 300px;
  animation: slideIn 0.3s ease-out;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.custom-alert.success {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

.custom-alert.error {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

@keyframes slideIn {
  from {
      transform: translateX(100%);
      opacity: 0;
  }
  to {
      transform: translateX(0);
      opacity: 1;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .payment-box {
      padding: 1.5rem;
      margin: 1rem;
  }
  
  .header-icons {
      gap: 1rem;
  }
  
  .main-title {
      font-size: 2rem;
  }
  
  .crypto-options {
      grid-template-columns: 1fr;
      gap: 0.75rem;
  }
  
  .user-details {
      grid-template-columns: 1fr;
  }
  
  .flying-plane {
      font-size: 1.5rem;
  }
  
  .flight-trail {
      width: 50% !important;
  }
}

/* Discount Code Styles */
.discount-input-container {
    width: 100%;
}

.discount-input-wrapper {
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
    margin-bottom: 0.5rem;
}

.discount-input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: hsl(var(--secondary), 0.5);
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    color: var(--foreground);
    font-size: 0.875rem;
    transition: var(--transition-smooth);
    margin-bottom: 0;
}

.discount-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px hsl(var(--ring), 0.2);
}

.discount-input::placeholder {
    color: var(--muted-foreground);
}

.apply-discount-btn {
    position: relative;
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 0.375rem;
    color: var(--primary-foreground);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    white-space: nowrap;
    min-width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.apply-discount-btn:hover:not(:disabled) {
    background: hsl(var(--primary), 0.9);
    transform: translateY(-1px);
}

.apply-discount-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.apply-discount-btn.applied {
    background: #22c55e;
    border-color: #22c55e;
    color: white;
}

.apply-discount-btn.applied .btn-text::after {
    content: " ✓";
    font-weight: bold;
}

.apply-discount-btn.error {
    background: #ef4444;
    border-color: #ef4444;
    color: white;
}

.apply-discount-btn.error .btn-text::after {
    content: " ✕";
    font-weight: bold;
}

/* Loading spinner */
.btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Discount status */
.discount-status {
    min-height: 20px;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.discount-status.success {
    color: #22c55e;
}

.discount-status.error {
    color: #ef4444;
}

.discount-status .discount-code {
    font-weight: 600;
    background: rgba(34, 197, 94, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.discount-status.error .discount-code {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
}

/* Remove discount button */
.remove-discount {
    background: none;
    border: none;
    color: var(--muted-foreground);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: var(--transition-smooth);
    font-size: 0.875rem;
}

.remove-discount:hover {
    color: var(--foreground);
    background: rgba(239, 68, 68, 0.1);
}

/* Discount row in summary */
.discount-row {
    color: #22c55e;
}

.discount-row .summary-value {
    color: #22c55e;
    font-weight: 600;
}

.original-price {
    text-decoration: line-through;
    color: var(--muted-foreground);
    font-size: 0.875rem;
    margin-right: 0.5rem;
    opacity: 0.7;
}