/* TikTok Exit Card Styles - Beautiful UI specifically for TikTok WebView */
:root {
  --bg: #0f0f10;
  --card: #121316;
  --line: #1f232b;
  --text: #eaf0f6;
  --muted: #9aa3ad;
  --pink: #ff3a7a;
  --pink2: #ff2d6b;
  --cyan: #19f0f0;
  --ok: #22c55e;
}

/* Card wrapper for proper centering */
.tiktok-card-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 16px;
  box-sizing: border-box;
}

@media screen and (max-width: 380px) {
  .tiktok-card-wrapper {
    padding: 0 12px;
  }
}

/* Animations */
@keyframes gradShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes sheen {
  0%, 65% { transform: translateX(-130%); }
  85%, 100% { transform: translateX(130%); }
}

/* Card Container */
.tiktok-exit-card {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 14px 36px rgba(0,0,0,.35);
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* Mobile responsive adjustments */
@media screen and (max-width: 600px) {
  .tiktok-exit-card {
    max-width: 100%;
    margin: 0;
    width: 100%;
    border-radius: 16px;
  }
}

@media screen and (max-width: 380px) {
  .tiktok-exit-card {
    max-width: 100%;
    margin: 0;
    width: 100%;
  }
}

/* Header */
.exit-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.exit-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0e0f12;
}

.exit-title {
  font-weight: 800;
  letter-spacing: .1px;
  color: var(--text);
  flex: 1;
}

.exit-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ok);
  background: rgba(34,197,94,.12);
  border: 1px solid rgba(34,197,94,.35);
  padding: 6px 8px;
  border-radius: 999px;
}

/* Body */
.exit-body {
  padding: 18px 16px 16px;
  background: var(--card);
}

.exit-h1 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 800;
  text-align: center;
  color: var(--text);
}

.exit-subtitle {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.exit-hint {
  display: block;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  margin: 6px 0 10px;
}

/* Button */
.exit-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  text-decoration: none;
  color: #fff;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: .2px;
  padding: 14px 18px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(90deg, var(--pink), var(--pink2), var(--cyan));
  background-size: 220% 220%;
  box-shadow: 0 12px 28px rgba(0,0,0,.35), inset 0 0 0 2px rgba(255,255,255,.9);
  transition: transform .06s ease, box-shadow .2s ease;
  position: relative;
  overflow: hidden;
  text-shadow: 0 1px 1px rgba(0,0,0,.35);
  cursor: pointer;
  animation: gradShift 9s linear infinite;
}

/* Mobile button adjustments */
@media screen and (max-width: 600px) {
  .exit-button {
    font-size: 18px;
    padding: 12px 16px;
    border-radius: 14px;
  }
}

@media screen and (max-width: 380px) {
  .exit-button {
    font-size: 16px;
    padding: 10px 14px;
    gap: 8px;
  }
  
  .exit-h1 {
    font-size: 18px !important;
  }
  
  .exit-subtitle {
    font-size: 13px !important;
  }
  
  .exit-header {
    padding: 12px 14px !important;
  }
  
  .exit-body {
    padding: 16px 14px 14px !important;
  }
}

.exit-button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.18) 18%, transparent 36%);
  transform: translateX(-130%);
  animation: sheen 3.8s ease-in-out infinite;
}

.exit-button:active {
  transform: translateY(1px);
  box-shadow: 0 6px 18px rgba(0,0,0,.3), inset 0 0 0 2px rgba(255,255,255,.9);
}

/* Meta */
.exit-meta {
  margin-top: 12px;
  color: #a7b0ba;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .exit-button { animation: none; }
  .exit-button::after { display: none; }
}