@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --bg-color: #050508;
  --card-bg: rgba(13, 13, 20, 0.75);
  --card-border: rgba(255, 255, 255, 0.1);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-color: #f43f5e; /* Rose 500 for warnings */
  --accent-glow: rgba(244, 63, 94, 0.35);
  --primary-color: #3b82f6; /* Blue 500 */
  --primary-glow: rgba(59, 130, 246, 0.35);
  --success-color: #10b981; /* Emerald 500 */
}

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

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-color);
  background-image: url('background.png');
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

/* Background Gradients & Effects */
body::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -10%;
  width: 50%;
  height: 60%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  z-index: -1;
  filter: blur(80px);
  pointer-events: none;
}

body::after {
  content: '';
  position: absolute;
  bottom: -10%;
  right: -10%;
  width: 50%;
  height: 60%;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  z-index: -1;
  filter: blur(80px);
  pointer-events: none;
}

.container {
  width: 100%;
  max-width: 540px;
  padding: 24px;
  z-index: 1;
}

/* Branding Header for tistoof */
.profile-header {
  display: none;
  flex-direction: column;
  align-items: center;
  margin-bottom: 12px;
  animation: fade-in-down 0.8s ease-out;
}
.brand-logo {
  max-width: 140px;
  height: auto;
  margin-bottom: 4px;
  filter: drop-shadow(0 0 15px rgba(244, 63, 94, 0.25));
  animation: float 4s ease-in-out infinite;
}

@keyframes fade-in-down {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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


/* Glassmorphism Card */
.card {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 32px 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(244, 63, 94, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}

/* Icon Warning Header */
.icon-container {
  width: 70px;
  height: 70px;
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(244, 63, 94, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  position: relative;
  animation: pulse-glow 3s infinite alternate;
}

.icon-container svg {
  width: 38px;
  height: 38px;
  color: var(--accent-color);
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.2);
  }
  100% {
    box-shadow: 0 0 20px 8px rgba(244, 63, 94, 0.05);
    border-color: rgba(244, 63, 94, 0.4);
  }
}

/* Header Typography */
h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #fff 40%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

.subtitle {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 24px;
  font-weight: 400;
}

/* Warning Info Blocks */
.info-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
  margin-bottom: 24px;
}

.info-item {
  display: flex;
  gap: 16px;
  background: rgba(255, 255, 255, 0.02);
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.info-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.06);
}

.info-item-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-item-icon.warning {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.info-item-icon.info {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.info-item-icon svg {
  width: 20px;
  height: 20px;
}

.info-item-text h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.info-item-text p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Button & Redirect area */
.action-area {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn {
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-color) 0%, #e11d48 100%);
  color: white;
  border: none;
  box-shadow: 0 4px 15px rgba(244, 63, 94, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(244, 63, 94, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  filter: brightness(1.1);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(244, 63, 94, 0.3);
}

.btn-primary:disabled {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  cursor: not-allowed;
  box-shadow: none;
}

/* Progress bar inside disabled button */
.btn-progress-bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
  background: var(--accent-color);
  width: 0%;
  transition: width 1s linear;
}

.btn-secondary {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Countdown Label */
.countdown-text {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.countdown-number {
  font-weight: 600;
  color: var(--accent-color);
}

.disclaimer-text {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.45;
  font-style: italic;
}

/* Promise Section & Checkbox */
.promise-section {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.checkbox-container {
  display: inline-flex;
  align-items: center;
  position: relative;
  cursor: pointer;
  font-size: 15px;
  user-select: none;
  color: var(--text-secondary);
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
  gap: 12px;
}

.checkbox-container:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: relative;
  height: 20px;
  width: 20px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.checkbox-container:hover input ~ .checkmark {
  border-color: rgba(255, 255, 255, 0.25);
}

.checkbox-container input:checked ~ .checkmark {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  box-shadow: 0 0 10px rgba(244, 63, 94, 0.4);
}

.checkmark::after {
  content: "";
  position: absolute;
  display: none;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 11px;
  border: solid white;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.checkbox-container input:checked ~ .checkmark::after {
  display: block;
}

.checkbox-label {
  font-weight: 500;
}

/* Responsive adjust */
@media (max-width: 768px) {
  body {
    background-position: center center;
    background-attachment: scroll;
  }

  .profile-header {
    display: flex;
  }

  .card {
    padding: 32px 20px;
    border-radius: 20px;
  }
  
  h1 {
    font-size: 24px;
  }
  
  .info-item {
    padding: 14px;
  }
}
