@import "https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;1,400&display=swap";

:root {
  --font-heading: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Amreeya Luxury Palette */
  --amreeya-gold: #c5a880;
  --amreeya-gold-light: #e6cca8;
  --amreeya-gold-dark: #9e7f4f;
  --amreeya-gold-glow: rgba(197, 168, 128, 0.25);
  
  --bg-primary: #08090b;
  --bg-card: rgba(18, 20, 26, 0.85);
  --bg-card-elevated: rgba(24, 27, 36, 0.95);
  
  --text-primary: #ffffff;
  --text-secondary: #9aa4b2;
  --text-muted: #64748b;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(197, 168, 128, 0.35);
  --border-gold: rgba(197, 168, 128, 0.3);
  
  --color-valid: #10b981;
  --color-used: #f59e0b;
  --color-invalid: #ef4444;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-card: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  background-image: 
    radial-gradient(circle at 80% 25%, rgba(197, 168, 128, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 15% 70%, rgba(166, 38, 88, 0.07) 0%, transparent 45%),
    radial-gradient(circle at 50% 0%, rgba(38, 42, 54, 0.5) 0%, transparent 65%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Floating Navigation */
.header-floating-nav {
  z-index: 50;
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  background: rgba(14, 16, 21, 0.82);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  width: calc(100% - 32px);
  max-width: 1140px;
  margin: 16px auto 0;
  padding: 12px 28px;
  position: sticky;
  top: 16px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 0 0 20px -5px rgba(197, 168, 128, 0.1);
  transition: all 0.25s ease;
}

.header-content {
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  display: flex;
}

.header-left-badge {
  border: 1px solid var(--border-gold);
  color: var(--amreeya-gold-light);
  white-space: nowrap;
  background: rgba(197, 168, 128, 0.08);
  border-radius: var(--radius-full);
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  display: flex;
}

.header-logo-link {
  justify-content: center;
  align-items: center;
  text-decoration: none;
  display: flex;
}

.header-logo-img {
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(255, 255, 255, 0.15));
  width: auto;
  max-width: 320px;
  height: clamp(48px, 5.5vw, 62px);
  transition: transform 0.2s ease, opacity 0.2s ease;
  display: block;
}

.header-logo-img:hover {
  transform: scale(1.02);
  opacity: 0.95;
}

/* =========================================================
   TWO-COLUMN MAIN CONTENT GRID
   ========================================================= */
.main-content {
  flex: 1;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 36px 20px 64px;
  
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  grid-template-areas:
    "hero hero"
    "guidance form";
  column-gap: 36px;
  row-gap: 28px;
  align-items: start;
}

/* Hero Section */
.main-content > div:first-child {
  grid-area: hero;
  text-align: center;
  margin-bottom: 4px !important;
}

.hero-heading {
  font-family: var(--font-heading);
  color: #ffffff;
  letter-spacing: -0.7px;
  margin: 0 auto 12px;
  font-size: clamp(1.7rem, 3.8vw, 2.6rem);
  font-weight: 700;
  line-height: 1.25;
}

.hero-subtitle {
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto;
  font-size: clamp(0.92rem, 2vw, 1.02rem);
  line-height: 1.6;
  font-weight: 400;
}

.gold-gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #f6e8d0 40%, #c5a880 100%);
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  font-weight: 700;
}

/* =========================================================
   LEFT COLUMN: GUIDANCE & SECURITY HIGHLIGHTS
   ========================================================= */
.guidance-grid {
  grid-area: guidance;
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
  border-top: none !important;
  counter-reset: step-counter;
}

.guidance-grid .amreeya-card {
  padding: 22px 24px !important;
  background: rgba(18, 20, 26, 0.75) !important;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 25px -8px rgba(0, 0, 0, 0.5) !important;
  
  display: grid !important;
  grid-template-columns: 46px 1fr !important;
  grid-template-rows: auto auto !important;
  column-gap: 16px !important;
  row-gap: 6px !important;
  align-items: start !important;
  position: relative !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  overflow: hidden;
}

.guidance-grid .amreeya-card:hover {
  transform: translateY(-2px);
  border-color: rgba(197, 168, 128, 0.35) !important;
  background: rgba(24, 27, 36, 0.9) !important;
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.6), 0 0 25px -5px rgba(197, 168, 128, 0.12) !important;
}

/* Step Counter (01, 02, 03) */
.guidance-grid .amreeya-card::after {
  counter-increment: step-counter;
  content: "0" counter(step-counter);
  position: absolute;
  top: 14px;
  right: 18px;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: rgba(197, 168, 128, 0.4);
}

.guidance-grid .icon-badge {
  grid-row: 1 / span 2 !important;
  grid-column: 1 !important;
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  margin-bottom: 0 !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, rgba(197, 168, 128, 0.16) 0%, rgba(197, 168, 128, 0.04) 100%) !important;
  border: 1px solid rgba(197, 168, 128, 0.3) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.guidance-grid .amreeya-card h3 {
  grid-row: 1 !important;
  grid-column: 2 !important;
  font-size: 1.05rem !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  margin-bottom: 0 !important;
  letter-spacing: -0.2px;
}

.guidance-grid .amreeya-card p {
  grid-row: 2 !important;
  grid-column: 2 !important;
  font-size: 0.85rem !important;
  color: var(--text-secondary) !important;
  line-height: 1.55 !important;
  margin: 0 !important;
}

/* Left Column Trust Badge Footer */


/* =========================================================
   RIGHT COLUMN: VERIFICATION FORM & RESULT CARD
   ========================================================= */
.main-content > :not(:first-child):not(.guidance-grid) {
  grid-area: form;
  width: 100%;
  max-width: 100% !important;
  margin: 0 !important;
}

.form-card-container {
  max-width: 100% !important;
  margin: 0 !important;
  padding: 36px 32px !important;
  background: linear-gradient(180deg, rgba(22, 25, 33, 0.9) 0%, rgba(15, 17, 23, 0.95) 100%) !important;
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-radius: 20px !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 35px -12px rgba(197, 168, 128, 0.15) !important;
  position: relative;
  overflow: hidden;
}

/* Luxury golden ambient bar on top of the form */
.form-card-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(197, 168, 128, 0.8), rgba(230, 204, 168, 0.9), rgba(197, 168, 128, 0.8), transparent);
}

.customer-info-grid {
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  display: grid;
}

.input-footer-row {
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  display: flex;
}

/* Input Fields */
.custom-input {
  border-radius: 12px;
  color: #ffffff;
  width: 100%;
  font-size: 0.95rem;
  font-family: var(--font-body);
  background: rgba(10, 11, 15, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  outline: none;
  padding: 13px 16px;
  transition: all 0.2s ease;
}

.custom-input:focus {
  border-color: var(--amreeya-gold);
  background: rgba(12, 14, 18, 0.95);
  box-shadow: 0 0 0 3px rgba(197, 168, 128, 0.16);
}

.custom-input::placeholder {
  color: var(--text-muted);
}

.code-input-field {
  letter-spacing: 3px !important;
  text-align: center !important;
  color: #ffffff !important;
  font-family: "SF Mono", Monaco, Consolas, "Courier New", monospace !important;
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  background: rgba(10, 11, 15, 0.85) !important;
  border: 1px solid rgba(197, 168, 128, 0.35) !important;
  padding: 16px 18px !important;
  border-radius: 14px !important;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5) !important;
  transition: all 0.25s ease !important;
}

.code-input-field:focus {
  border-color: var(--amreeya-gold) !important;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5), 0 0 0 4px rgba(197, 168, 128, 0.2), 0 0 20px rgba(197, 168, 128, 0.15) !important;
}

/* Primary Button */
.btn-amreeya-primary {
  background: linear-gradient(135deg, #dfc294 0%, #c5a880 50%, #ae8c5c 100%) !important;
  color: #08090b !important;
  font-family: var(--font-heading) !important;
  letter-spacing: 0.3px !important;
  border-radius: 12px !important;
  cursor: pointer !important;
  border: none !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 15px 28px !important;
  font-size: 0.98rem !important;
  font-weight: 700 !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 8px 25px -4px rgba(197, 168, 128, 0.4) !important;
  display: inline-flex;
}

.btn-amreeya-primary:hover {
  background: linear-gradient(135deg, #eed8b3 0%, #d8be96 50%, #be9c6e 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 30px -4px rgba(197, 168, 128, 0.55), 0 0 20px rgba(197, 168, 128, 0.2) !important;
}

.btn-amreeya-primary:disabled {
  opacity: 0.45 !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
}

.btn-amreeya-outline {
  color: #ffffff !important;
  border: 1px solid rgba(197, 168, 128, 0.35) !important;
  font-family: var(--font-body);
  cursor: pointer;
  white-space: nowrap;
  background: rgba(197, 168, 128, 0.1) !important;
  border-radius: 10px !important;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 10px 18px !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
}

.btn-amreeya-outline:hover {
  border-color: var(--amreeya-gold) !important;
  background: rgba(197, 168, 128, 0.22) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

/* =========================================================
   CRITICAL: ENHANCED RESULT CARD FORMATTING
   ========================================================= */

/* Make "Verify Another Code" prominent at the top */
.main-content > div:not(:first-child):not(.guidance-grid) > button.btn-amreeya-outline {
  margin-bottom: 14px !important;
  font-size: 0.88rem !important;
  padding: 10px 20px !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}

/* Result Message Callout (Transforming raw server text into clean guidance) */
.main-content .amreeya-card div[style*="rgba(13, 9, 10"] {
  background: rgba(20, 23, 31, 0.95) !important;
  border: 1px solid rgba(239, 68, 68, 0.35) !important;
  border-left: 4px solid #ef4444 !important;
  border-radius: 14px !important;
  padding: 20px 22px !important;
  margin-bottom: 24px !important;
  box-shadow: 0 10px 25px -8px rgba(0, 0, 0, 0.5) !important;
}

.main-content .amreeya-card div[style*="rgba(13, 9, 10"] p {
  white-space: pre-line !important;
  text-align: left !important;
  font-size: 0.92rem !important;
  line-height: 1.75 !important;
  color: #f1f5f9 !important;
  letter-spacing: 0.15px !important;
}

/* When status is valid / genuine product */
.status-pill-valid {
  color: #10b981 !important;
  background: rgba(16, 185, 129, 0.1) !important;
  border: 1px solid rgba(16, 185, 129, 0.25) !important;
}

.status-pill-used {
  color: #f59e0b !important;
  background: rgba(245, 158, 11, 0.1) !important;
  border: 1px solid rgba(245, 158, 11, 0.25) !important;
}

.status-pill-invalid {
  color: #ef4444 !important;
  background: rgba(239, 68, 68, 0.1) !important;
  border: 1px solid rgba(239, 68, 68, 0.25) !important;
}

.footer-container {
  color: var(--text-muted);
  background: #08090b;
  border-top: 1px solid var(--border-subtle);
  padding: 28px 20px;
  font-size: 0.85rem;
}

.footer-content {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
}

.footer-divider {
  color: var(--border-subtle);
  margin: 0 8px;
}

/* =========================================================
   RESPONSIVE DESIGN (TABLETS & MOBILE)
   ========================================================= */
@media (max-width: 960px) {
  .main-content {
    grid-template-columns: 1fr;
    grid-template-areas:
      "hero"
      "form"
      "guidance";
    column-gap: 0;
    row-gap: 28px;
    padding: 24px 16px 48px;
  }
  
  .header-floating-nav {
    border-radius: 16px;
    width: calc(100% - 24px);
    margin: 10px auto 0;
    padding: 12px 18px;
    top: 10px;
  }
  
  .header-left-badge {
    display: none;
  }
  
  .header-logo-img {
    max-width: 220px;
    height: 46px;
  }
  
  .form-card-container {
    padding: 28px 20px !important;
  }
  
  .code-input-field {
    letter-spacing: 1.5px !important;
    font-size: 1.15rem !important;
    padding: 14px 12px !important;
  }
  
  .customer-info-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}
