:root {
  --bg: #0f0f12;
  --surface: #17171b;
  --muted: #8d92a1;
  --text: #f7f7fb;
  --primary: #7c5cff;
  --primary-600: #6c4ef0;
  --success: #2ecc71;
  --danger: #ff5d5d;
  --warning: #ffb020;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(0,0,0,0.35);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: linear-gradient(180deg, #0b0b0e, #141419 40%, #0f0f12);
  color: var(--text);
}


#app {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.container {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 20px 16px 32px;
}

.card {
  background: radial-gradient(1200px 400px at 0% -10%, rgba(124,92,255,0.08), transparent 60%), var(--surface);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}

.header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px 16px;
}
.logo {
  width: 28px;
  height: 28px;
  background: radial-gradient(80% 80% at 30% 20%, #9e8bff, #6c4ef0 60%, #3a2d99);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(124,92,255,0.5);
}
.brand {
  font-weight: 700;
  letter-spacing: 0.2px;
}

.muted { color: var(--muted); }
.center { text-align: center; }
.spacer { height: 12px; }
.spacer-lg { height: 24px; }

input[type="text"], input[type="email"], input[type="password"], select, textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  padding: 14px 14px;
  outline: none;
}
textarea { min-height: 90px; resize: vertical; }

input::placeholder, textarea::placeholder { color: #a6abbd; }

.row { display: grid; gap: 12px; }
.row-2 { grid-template-columns: 1fr 1fr; }

.btn {
  width: 100%;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
}
.btn:hover { background: var(--primary-600); }
.btn.secondary { background: rgba(255,255,255,0.06); }
.btn.danger { background: var(--danger); }
.btn.success { background: var(--success); }
.btn.warning { background: var(--warning); color: #1a1a1a; }

.footer { padding: 16px; text-align: center; font-size: 12px; color: var(--muted); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 12px;
}

.grid-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.choice {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  text-align: center;
  cursor: pointer;
}
.choice.active {
  outline: 2px solid var(--primary);
  background: rgba(124,92,255,0.12);
}

.images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.imgbox {
  position: relative;
  padding-top: 100%;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}
.imgbox img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.countdown {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 32px;
  text-align: center;
}

/* Progress Bar */
.progress-container {
  text-align: center;
  margin: 20px 0;
}

.progress-text {
  margin-bottom: 12px;
  font-weight: 500;
  color: #333;
}

.progress-bar {
  width: 100%;
  height: 20px;
  background-color: #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4CAF50, #81C784);
  border-radius: 10px;
  width: 0%;
  transition: width 0.3s ease;
}

.progress-percent {
  font-size: 16px;
  font-weight: bold;
  color: #4CAF50;
}

/* Form Header */
.form-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.back-btn {
  min-width: auto;
  padding: 8px 16px;
  font-size: 14px;
}

/* Logout Container */
.logout-container {
  text-align: center;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.logout-btn {
  min-width: auto;
  padding: 4px 8px;
  font-size: 10px;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.logout-btn:hover {
  opacity: 1;
}

.chip.warning {
  background: rgba(255, 193, 7, 0.1);
  color: #856404;
  border: 1px solid rgba(255, 193, 7, 0.3);
}

.toolbar { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }

/* AdSense Display Reklamları */
.ad-container {
  text-align: center;
  margin: 20px 0;
  padding: 15px;
  background: rgba(255,255,255,0.02);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.05);
}

.ad-label {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.7;
}

/* Responsive AdSense reklamları */
.ad-responsive {
  display: block;
  width: 100%;
  height: auto;
  min-height: 250px;
}

.ad-banner {
  display: block;
  width: 100%;
  height: auto;
  min-height: 90px;
  max-width: 100%;
}

.ad-rectangle {
  display: block;
  width: 300px;
  height: 250px;
  max-width: 100%;
  margin: 0 auto;
}

.ad-leaderboard {
  display: block;
  width: 728px;
  height: 90px;
  max-width: 100%;
}

@media (max-width: 380px) {
  .row-2 { grid-template-columns: 1fr; }
  .toolbar { grid-template-columns: 1fr; }
  
  .ad-banner, .ad-leaderboard {
    width: 320px;
    height: 50px;
  }
  
  .ad-rectangle {
    width: 300px;
    height: 250px;
  }
  
  .ad-container {
    margin: 15px 0;
    padding: 10px;
  }
}


