:root {
  --success-color: #e0e0e0;
  --text-dark: #000000;
  --text-muted: #666666;
  --bg-page: #ffffff;
  --bg-card: #ffffff;
  --track-bg: #ffffff;
  --border-color: #e0e0e0;
  --brand-light: rgba(0, 17, 255, 0.05); 
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-page);
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand-header {
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.verification-card {
  background: var(--bg-card);
  padding: 24px 16px;
  width: 100%;
  max-width: 400px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.icon-wrapper {
  width: 72px;
  height: 72px;
  background: var(--brand-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.shield-icon {
  width: 34px;
  height: 34px;
  color: var(--btn-color);
}

.verification-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 12px;
  letter-spacing: -0.015em;
}

.verification-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  line-height: 1.5;
  padding: 0 10px;
}

.swipe-container {
  width: 100%;
  height: 64px;
  background-color: var(--track-bg);
  border-radius: 32px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  transition: border-color 0.3s ease;
  user-select: none;
  -webkit-user-select: none;
}

.swipe-text {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 1rem;
  user-select: none;
  z-index: 1;
  transition: opacity 0.3s;
  margin-left: 30px;
}

.swipe-track-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: var(--success-color);
  border-radius: 32px;
  z-index: 2;
}

.swipe-thumb {
  width: 54px;
  height: 54px;
  background: var(--btn-color);
  border-radius: 50%;
  position: absolute;
  left: 4px;
  top: 4px; 
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: background 0.3s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.swipe-thumb:hover {
  transform: scale(1.02);
}

.swipe-thumb:active {
  cursor: grabbing;
  transform: scale(0.96);
}

.thumb-icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.thumb-icon polyline {
  animation: modernArrowFlow 1.8s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

.thumb-icon polyline:nth-child(1) {
  animation-delay: 0.15s;
}

.thumb-icon polyline:nth-child(2) {
  animation-delay: 0s;
}

@keyframes modernArrowFlow {
  0% { opacity: 0; transform: translateX(-4px); }
  30% { opacity: 1; transform: translateX(0); }
  70% { opacity: 1; transform: translateX(0); }
  100% { opacity: 0; transform: translateX(4px); }
}

.success-state .swipe-thumb {
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  border: 1px solid var(--border-color);
  box-sizing: border-box;
  transform: scale(1);
}

.success-state .swipe-container {
  border-color: transparent;
}

.success-state .thumb-icon {
  display: none;
}

.success-icon {
  display: none;
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--text-dark);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.success-state .success-icon {
  display: block;
  animation: checkPop 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes checkPop {
  0% { stroke-dasharray: 0 50; opacity: 0; transform: scale(0.8); }
  70% { transform: scale(1.1); }
  100% { stroke-dasharray: 50 50; opacity: 1; transform: scale(1); }
}

.success-state .swipe-text {
  opacity: 0;
}

.success-text {
  position: absolute;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 1.05rem;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateY(4px);
  user-select: none;
  -webkit-user-select: none;
}

.success-state .success-text {
  opacity: 1;
  transform: translateY(0);
}

.loader {
  display: none;
  width: 22px;
  height: 22px;
  border: 2.5px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top-color: var(--text-dark);
  animation: spin 0.8s linear infinite;
}

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