@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;500;700&display=swap');

:root {
  --glass-bg: rgba(255, 255, 255, 0.1);
  /* Kept for legacy if needed, but card uses specific gradient */
  --glass-border: rgba(255, 255, 255, 0.2);
  --text-main: #0f172a;
  --text-sub: #334155;
  --error: #ef4444;
  --text-primary: var(--text-main);
  /* Mapping old var to new preference */
  --text-secondary: var(--text-sub);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Outfit', sans-serif;
  height: 100vh;
  width: 100%;
  color: var(--text-main);
  /* Apply main text color to body */
  background: linear-gradient(348deg,
      rgba(62, 138, 236, 1) 28%,
      rgba(255, 214, 167, 1) 60%,
      rgba(253, 153, 36, 1) 83%);
  display: flex;
  align-items: center;
  justify-content: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  overflow: hidden;
  /* Prevent scrollbars if not needed */
}

.container {
  width: 100%;
  max-width: 1200px;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Main layout wrapper REMOVED */

/* Restoring single glass card layout */
.glass-card {
  position: fixed;
  inset: 0;
  margin: auto;
  width: 99.8%;
  /* Increased for airy feel */
  max-width: 100%;
  padding: 50px 40px;
  border-radius: 6px;
  /* Flex height instead of fixed */
  height: 99.8%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;

  /* Premium Apple Glass Effect */
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);

  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;

  text-align: center;
  color: var(--text-main);
  z-index: 1;
  overflow-y: auto;
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}

.glass-card::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari and Opera */
}

/* Identical Premium Styling for the Suggestion Form Card */
/* Removed .glass-suggestion-form and .cards-wrapper.active styles */

/* Telegram-style Vanish Animation */
.vanish {
  animation: vanishEffect 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  pointer-events: none;
}

@keyframes vanishEffect {
  0% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }

  100% {
    opacity: 0;
    transform: scale(0.01);
    filter: blur(8px);
    display: none;
  }
}

/* Optional subtle shine effect */
.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  width: 99.9%;
  height: 99.9%;
  background: linear-gradient(to right,
      transparent,
      rgba(255, 255, 255, 0.1),
      transparent);
  transform: skewX(-25deg);
  animation: shine 6s infinite;
  pointer-events: none;
  /* Add this to prevent blocking clicks */
}

h1 {
  font-size: 3.9rem;
  /* Increased as requested */
  font-weight: 700;
  margin-bottom: 1.2rem;
  letter-spacing: -1px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

p.subtitle {
  font-size: 1.1rem;
  /* Smaller for sophistication */
  color: var(--text-sub);
  margin-bottom: 2rem;
  line-height: 1.5;
  max-width: 420px;
  /* Constrain text width */
}

.countdown-text {
  font-size: 1.2rem;
  /* Made bigger as requested */
  font-weight: 500;
  margin-bottom: 1.5rem;
  /* Added gap from timer */
  color: var(--text-main);
}

/* Countdown Timer */
.countdown {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  width: 100%;
}

.time-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  padding: 12px 10px;
  border-radius: 16px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  min-width: 85px;
  transition: transform 0.3s ease;
}

.time-unit:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.25);
}

.time-unit span:first-child {
  font-size: 1.6rem;
  /* Slightly smaller digits */
  font-weight: 700;
  color: var(--text-main);
  line-height: 1;
}

.time-unit .label {
  font-size: 0.65rem;
  /* Smaller labels */
  text-transform: uppercase;
  letter-spacing: 1.5px;
  opacity: 0.6;
  margin-top: 6px;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

button {
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.3);
  color: var(--text-main);
  /* Ensure dark text */
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
}

.form-container h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: var(--text-main);
}

.form-container .subtitle {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--text-sub);
}

.form-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 85%;
  max-width: 1800px;
  animation: fadeIn 0.5s ease-out;
  /* Reverted to transparent blend */
}

#designForm {
  width: 85%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.form-container,
#designForm {
  width: 85%;
  /* <-- Maximize Mobile Form Width */
}

.input-group {
  width: 80%;
  margin-bottom: 1rem;
  text-align: center;
}

input,
textarea {
  width: 40%;
  padding: 14px;
  background: rgba(255, 255, 255, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  color: #000;
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  resize: none;
}

input::placeholder,
textarea::placeholder {
  color: rgba(0, 0, 0, 0.6);
}


input:focus,
textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.tag-label {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0.2rem;
  color: var(--text-main);
  width: 100%;
}

.tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  width: 100%;
  justify-content: center;
}

.tag-chip {
  padding: 10px 25px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tag-chip:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.tag-chip.active {
  background: #fff;
  color: #000;
  border-color: #fff;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}


.button-group .btn {
  padding: 12px 40px;
  /* Bigger buttons */
  font-size: 1rem;
}

.button-group {
  display: flex;
  gap: 1rem;
  width: 100%;
  justify-content: center;
}

.hidden {
  display: none !important;
}

/* Animations */
.fade-out {
  animation: fadeOut 0.4s forwards;
}

.fade-in {
  animation: fadeIn 0.4s forwards;
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(-20px);
  }
}

.social-links {
  margin-top: 5rem;
  /* Increased from 2.5rem */
  display: flex;
  justify-content: center;
  gap: 2.2rem;
  /* Increased gap */
}

.social-icon {
  color: var(--text-main);
  font-size: 1.7rem;
  /* Upscaled from 1.5rem */
  transition: all 0.3s ease;
  opacity: 0.8;
}

.social-icon:hover {
  opacity: 1;
  transform: scale(1.1);
  color: var(--text-sub);
}

/* Status Notification Card */
.status-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 400px;
  padding: 35px 30px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(30px) saturate(200%);
  -webkit-backdrop-filter: blur(30px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
  z-index: 1000;
  animation: modalIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  transition: all 0.3s ease;
  will-change: transform, opacity;
  overflow: hidden;
}

.status-card.success-glow {
  box-shadow: 0 0 40px rgba(2, 192, 118, 0.25), 0 30px 60px rgba(0, 0, 0, 0.15);
  border-color: rgba(2, 192, 118, 0.4);
}

/* Premium Success Glint */
.status-card.success-glow::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg,
      transparent 45%,
      rgba(255, 255, 255, 0.3) 50%,
      transparent 55%);
  animation: glint 3s infinite;
  pointer-events: none;
}

@keyframes glint {
  0% {
    transform: translateX(-100%) translateY(-100%);
  }

  100% {
    transform: translateX(100%) translateY(100%);
  }
}

/* Premium Success Glint */
.status-card.success-glow::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg,
      transparent 45%,
      rgba(255, 255, 255, 0.3) 50%,
      transparent 55%);
  animation: glint 3s infinite;
  pointer-events: none;
}

@keyframes glint {
  0% {
    transform: translateX(-100%) translateY(-100%);
  }

  100% {
    transform: translateX(100%) translateY(100%);
  }
}

.status-card.hidden {
  display: none;
}

.status-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.status-icon {
  font-size: 2.2rem;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: 10px;
}

.status-icon.success {
  background: #02C076;
  /* Binance Success Green */
  color: #fff;
  box-shadow: 0 10px 20px rgba(2, 192, 118, 0.3);
}

.status-icon.success::before {
  content: '\f00c';
  /* FontAwesome check */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

.status-icon.error {
  background: #ef4444;
  color: #fff;
  box-shadow: 0 10px 20px rgba(239, 68, 68, 0.3);
}

.status-icon.error::before {
  content: '\f00d';
  /* FontAwesome xmark */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

.status-message {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
  text-align: center;
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.9rem;
  margin-top: 5px;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translate(-50%, -40%) scale(0.9);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* Vapor Canvas Styles */
#vapor-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1001;
}

@keyframes particleDisperse {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }

  100% {
    transform: translate(var(--x), var(--y)) scale(0);
    opacity: 0;
  }
}

.vanish-active {
  animation: vanishEffectCustom 0.5s forwards ease-in-out;
  pointer-events: none;
}

@keyframes vanishEffectCustom {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -52%) scale(0.95);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 404 Page Specific Styles */
.error-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
}

.error-code {
  font-size: 12rem;
  /* Boosted from 10rem */
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(to bottom, var(--text-main), transparent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.15;
  margin-bottom: -1rem;
  letter-spacing: -5px;
}

/* Responsive Design Adjustments */

/* ============================================================
   LAPTOP / SMALL DESKTOP (769px - 1400px)
   ============================================================ */
@media (max-width: 1400px) {
  h1 {
    font-size: 2.9rem;
    /* <-- EDIT Laptop Title Font Size */
  }

  #designForm {
    width: 80%;
    /* <-- EDIT Laptop Form Width */
  }

  .form-container,
  #designForm {
    width: 90%;
    /* <-- Maximize Mobile Form Width */
  }

  input,
  textarea {
    width: 75%;
    /* <-- EDIT Laptop Input Width */
  }
}

/* ============================================================
   TABLET VIEW (481px - 768px)
   ============================================================ */
@media (max-width: 768px) {
  .glass-card {
    padding: 2rem 1.5rem;
    /* <-- EDIT Tablet Card Padding */
    width: 99.5%;
  }

  h1 {
    font-size: 2.2rem;
    /* <-- EDIT Tablet Title Size */
    margin-bottom: 0.8rem;
  }

  p.subtitle {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }

  .countdown {
    gap: 0.8rem;
    margin-bottom: 2rem;
  }

  .time-unit {
    min-width: 70px;
    padding: 10px 5px;
  }

  .error-code {
    font-size: 6rem;
    margin-bottom: -1.5rem;
  }

  /* --- Tablet Form Area --- */
  .form-container,
  #designForm {
    width: 100%;
    /* <-- Maximize Tablet Form Width */
  }

  .form-container h2 {
    font-size: 2rem;
  }

  input,
  textarea {
    width: 100%;
    /* <-- EDIT Tablet Input Area Width */
    padding: 14px;
    font-size: 1.1rem;
  }

  .tag-group {
    gap: 0.7rem;
    margin-bottom: 1.2rem;
  }
}

/* ============================================================
   MOBILE VIEW (Up to 480px)
   ============================================================ */
@media (max-width: 480px) {
  .glass-card {
    padding: 2rem 1.2rem;
    /* Adjusted for better content fit */
    border-radius: 0;
    height: 100%;
    width: 100%;
  }

  h1 {
    font-size: 2rem;
    /* <-- EDIT Mobile Title Font Size */
    /* Prominent title */
  }

  .error-code {
    font-size: 5rem;
    margin-bottom: -1rem;
  }

  .form-container h2 {
    font-size: 2.9rem;
  }

  .form-container .subtitle {
    font-size: 1.5rem;
  }

  .countdown-text {
    font-size: 1.1rem;
  }

  .time-unit {
    min-width: 65px;
    padding: 12px 6px;
  }

  .form-container,
  #designForm {
    width: 100%;
    /* <-- Maximize Mobile Form Width */
  }

  /* --- Mobile Form Area --- */
  input,
  textarea {
    width: 100%;
    /* <-- EDIT Mobile Input Area Width */
    /* Maximum utility on narrow screens */
    font-size: 1.4rem;
    padding: 12px 15px;
    /* <-- EDIT Mobile Input Padding */
    border-radius: 12px;
  }

  .tag-label {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }

  .tag-group {
    gap: 0.6rem;
    margin-bottom: 2rem;
  }

  .tag-chip {
    padding: 8px 15px;
    font-size: 1rem;
  }

  /* --- Mobile Buttons --- */
  .btn {
    padding: 10px 25px;
    /* <-- EDIT Mobile Button Padding */
    /* Slightly more compact than previous 18px */
    font-size: 1.1rem;
    /* <-- EDIT Mobile Button Font Size */
  }

  .google-font-text {
    font-size: 1rem;
  }
}
