* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  font-weight: 400;
  color: #1a1a1a;
  background-color: #f5f5f5;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  background-color: #f5f5f5;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 48px;
  background-color: #f5f5f5;
}

.logo {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
}

.cart {
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  background: none;
  border: none;
  position: relative;
  padding: 8px 16px;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.cart:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.cart-count {
  position: absolute;
  top: 0;
  right: 0;
  background-color: #000;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 80px 24px 60px;
}

.hero-title {
  font-size: 52px;
  font-weight: 600;
  line-height: 1.2;
  color: #1a1a1a;
  margin-bottom: 0;
  position: relative;
  display: inline-block;
}

.highlight {
  background-color: #000;
  color: #fff;
  padding: 4px 16px;
  display: inline-block;
  transform: rotate(-2deg);
  margin-left: 8px;
  font-weight: 700;
}

/* Search Section */
.search-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 24px;
}

.search-container {
  margin-bottom: 32px;
}

.search-input {
  width: 100%;
  padding: 20px 24px;
  font-size: 18px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s ease;
  background-color: #fff;
}

.search-input:focus {
  outline: none;
  border-color: #000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.search-input::placeholder {
  color: #999;
}

/* Loading Indicator */
[x-cloak] {
  display: none !important;
}

.loading-indicator {
  text-align: center;
  padding: 40px 24px;
}

.spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto 16px;
  border: 4px solid #e0e0e0;
  border-top-color: #000;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.loading-indicator p {
  font-size: 16px;
  color: #666;
  font-weight: 500;
}

/* Search Results */
.search-results {
  background-color: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
}

.result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s ease;
}

.result-item:last-child {
  border-bottom: none;
}

.result-item:hover {
  background-color: #fafafa;
}

.result-domain {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
}

.result-info {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 200px;
}

.result-status {
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  width: 90px;
  text-align: center;
  display: inline-block;
}

.result-status.available {
  background-color: #e8f5e9;
  color: #2e7d32;
}

.result-status.taken {
  background-color: #ffebee;
  color: #c62828;
}

.result-price {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  width: 80px;
  text-align: left;
}

.add-to-cart-btn {
  background-color: #000;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.add-to-cart-btn:hover:not(:disabled) {
  background-color: #333;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.add-to-cart-btn:disabled {
  background-color: #999;
  cursor: not-allowed;
  opacity: 0.6;
}

/* Projects Section */
.projects-section {
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 24px 80px;
}

.projects-intro {
  text-align: center;
  font-size: 20px;
  color: #000;
  margin-bottom: 48px;
  font-weight: 700;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.project-card {
  background-color: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 16px;
  padding: 48px 32px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border-color: #000;
}

.project-card.placeholder {
  opacity: 0.6;
  cursor: default;
}

.project-card.placeholder:hover {
  transform: none;
  box-shadow: none;
  border-color: #e0e0e0;
}

.project-icon {
  font-size: 64px;
  margin-bottom: 24px;
}

.project-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-title {
  font-size: 24px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.project-description {
  font-size: 16px;
  color: #666;
  line-height: 1.5;
}

/* Cart Sidebar */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  backdrop-filter: blur(4px);
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 450px;
  height: 100%;
  background-color: #fff;
  z-index: 1000;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
  }

  to {
    transform: translateX(0);
  }
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-bottom: 2px solid #e0e0e0;
}

.cart-header h2 {
  font-size: 24px;
  font-weight: 600;
  margin: 0;
}

.cart-close {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #666;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.cart-close:hover {
  background-color: #f5f5f5;
  color: #000;
}

.cart-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.cart-empty {
  text-align: center;
  padding: 60px 24px;
  color: #666;
}

.cart-empty p {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 8px;
}

.cart-empty-subtitle {
  font-size: 14px;
  color: #999;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.cart-item {
  background-color: #f9f9f9;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
}

.cart-item:hover {
  border-color: #000;
  background-color: #fff;
}

.cart-item-info {
  flex: 1;
}

.cart-item-domain {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.cart-item-price {
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

.cart-item-remove {
  background-color: #ffebee;
  color: #c62828;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cart-item-remove:hover {
  background-color: #c62828;
  color: #fff;
}

.cart-footer {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 2px solid #e0e0e0;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 20px;
  font-weight: 600;
}

.cart-total-label {
  color: #666;
}

.cart-total-amount {
  color: #000;
  font-size: 24px;
}

.checkout-btn {
  width: 100%;
  background-color: #000;
  color: #fff;
  border: none;
  padding: 16px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.checkout-btn:hover {
  background-color: #333;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Checkout Page Styles */
.checkout-container {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 48px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 48px 24px;
  min-height: calc(100vh - 150px);
}

.checkout-step-indicator {
  font-size: 14px;
  font-weight: 500;
  color: #666;
}

/* Order Summary */
.order-summary {
  background-color: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 16px;
  padding: 32px;
  height: fit-content;
  position: sticky;
  top: 24px;
}

.order-summary h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 24px;
}

.summary-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 2px solid #e0e0e0;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background-color: #f9f9f9;
  border-radius: 8px;
}

.summary-domain {
  font-weight: 500;
  font-size: 14px;
}

.summary-price {
  font-weight: 600;
  color: #000;
}

.summary-empty {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}

.summary-total {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
}

.total-final {
  font-size: 20px;
  font-weight: 700;
  padding-top: 12px;
  border-top: 2px solid #e0e0e0;
  margin-top: 8px;
}

/* Checkout Form */
.checkout-form {
  background-color: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 16px;
  padding: 48px;
}

.form-step {
  max-width: 600px;
}

.form-title {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 8px;
}

.form-subtitle {
  font-size: 16px;
  color: #666;
  margin-bottom: 40px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #1a1a1a;
}

.form-input {
  width: 100%;
  padding: 16px 20px;
  font-size: 16px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s ease;
  background-color: #fff;
}

.form-input:focus {
  outline: none;
  border-color: #000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.form-input::placeholder {
  color: #999;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-help {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: #666;
}

.form-actions {
  margin-top: 32px;
}

.btn-primary {
  background-color: #000;
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-primary:hover:not(:disabled) {
  background-color: #333;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-large {
  width: 100%;
  padding: 18px 32px;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.btn-arrow {
  font-size: 20px;
}

.btn-secondary {
  background-color: #f5f5f5;
  color: #000;
  border: 2px solid #e0e0e0;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-secondary:hover {
  background-color: #fff;
  border-color: #000;
}

.btn-back {
  background: none;
  border: none;
  color: #666;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 24px;
  padding: 8px 0;
  transition: color 0.2s ease;
}

.btn-back:hover {
  color: #000;
}

/* Account Toggle */
.account-option-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 32px;
  padding: 6px;
  background-color: #f5f5f5;
  border-radius: 10px;
}

.toggle-btn {
  background: none;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #666;
}

.toggle-btn.active {
  background-color: #fff;
  color: #000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: #666;
}

.checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

/* Error Message */
.error-message {
  background-color: #ffebee;
  color: #c62828;
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 500;
  border: 2px solid #ffcdd2;
}

/* Success Screen */
.success-screen {
  text-align: center;
  padding: 80px 40px;
}

.success-icon {
  width: 80px;
  height: 80px;
  background-color: #e8f5e9;
  color: #2e7d32;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: bold;
  margin: 0 auto 24px;
}

.success-title {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 12px;
}

.success-message {
  font-size: 16px;
  color: #666;
  margin-bottom: 32px;
  line-height: 1.6;
}

.success-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
  header {
    padding: 20px 24px;
  }

  .hero {
    padding: 60px 24px 40px;
  }

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

  .highlight {
    padding: 2px 12px;
    margin-left: 4px;
  }

  .search-input {
    padding: 16px 20px;
    font-size: 16px;
  }

  .result-domain {
    font-size: 16px;
  }

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

  .project-card {
    min-height: 240px;
    padding: 40px 24px;
  }

  .project-icon {
    font-size: 48px;
  }

  .project-title {
    font-size: 20px;
  }

  .project-description {
    font-size: 14px;
  }

  .cart-sidebar {
    max-width: 100%;
  }

  .add-to-cart-btn {
    font-size: 13px;
    padding: 6px 12px;
  }

  .checkout-container {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px 16px;
  }

  .order-summary {
    position: static;
    order: 2;
  }

  .checkout-form {
    padding: 32px 24px;
    order: 1;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-title {
    font-size: 26px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 32px;
  }

  .logo {
    font-size: 12px;
  }

  .cart {
    font-size: 12px;
  }
}