/* ==================== RESET & BASE ==================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #667eea;
  --primary-dark: #5a67d8;
  --secondary: #764ba2;
  --accent: #f093fb;
  --bg: #0f0f1a;
  --bg-card: #1a1a2e;
  --bg-card-hover: #1f1f35;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --text-light: #cbd5e1;
  --success: #48bb78;
  --danger: #fc8181;
  --warning: #f6ad55;
  --border: #2d2d44;
  --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
  --radius: 16px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; }

/* ==================== NAVBAR ==================== */
.navbar {
  background: rgba(15, 15, 26, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-links { display: flex; gap: 8px; }

.navbar-links a {
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.3s;
  font-size: 0.9rem;
}

.navbar-links a:hover {
  color: var(--text);
  background: rgba(102, 126, 234, 0.1);
}

/* ==================== HERO SECTION ==================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(102, 126, 234, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 70% 50%, rgba(118, 75, 162, 0.08) 0%, transparent 50%);
  animation: bgFloat 20s ease-in-out infinite;
}

@keyframes bgFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-2%, -2%); }
}

.hero-content { position: relative; z-index: 1; max-width: 700px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(102, 126, 234, 0.15);
  border: 1px solid rgba(102, 126, 234, 0.3);
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--primary);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero h1 .gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-success {
  background: linear-gradient(135deg, #48bb78, #38a169);
  color: white;
}

.btn-danger {
  background: linear-gradient(135deg, #fc8181, #e53e3e);
  color: white;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: 8px;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.btn-group { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ==================== FEATURES ==================== */
.features {
  padding: 80px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.features-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 48px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.3s;
}

.feature-card:hover {
  border-color: var(--primary);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ==================== TEST PAGE ==================== */
.test-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 100px 24px 60px;
  min-height: 100vh;
}

.progress-section { margin-bottom: 32px; }

.progress-bar-bg {
  width: 100%;
  height: 8px;
  background: var(--border);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 12px;
}

.progress-bar-fill {
  height: 100%;
  background: var(--gradient);
  border-radius: 100px;
  transition: width 0.5s ease;
  width: 0%;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.question-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  animation: fadeInUp 0.5s ease;
}

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

.question-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.question-number {
  background: var(--gradient);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.difficulty-badge {
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.difficulty-kolay { background: rgba(72, 187, 120, 0.15); color: var(--success); }
.difficulty-orta { background: rgba(246, 173, 85, 0.15); color: var(--warning); }
.difficulty-zor { background: rgba(252, 129, 129, 0.15); color: var(--danger); }

.question-text {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 20px 0 28px;
  line-height: 1.5;
}

.options-list { display: flex; flex-direction: column; gap: 12px; }

.option-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s;
  text-align: left;
  font-size: 1rem;
}

.option-btn:hover {
  border-color: var(--primary);
  background: rgba(102, 126, 234, 0.08);
}

.option-btn.selected {
  border-color: var(--primary);
  background: rgba(102, 126, 234, 0.15);
}

.option-letter {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
  transition: all 0.3s;
}

.option-btn.selected .option-letter {
  background: var(--gradient);
  color: white;
}

.question-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
  gap: 12px;
}

/* Loading */
.loading-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 15, 26, 0.9);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.spinner {
  width: 56px;
  height: 56px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 20px;
}

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

.loading-text {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* ==================== PAYMENT PAGE ==================== */
.payment-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 100px 24px 60px;
  min-height: 100vh;
}

.payment-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}

.payment-card h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.payment-card .subtitle {
  color: var(--text-muted);
  margin-bottom: 32px;
}

.iban-box {
  background: rgba(102, 126, 234, 0.1);
  border: 1px solid rgba(102, 126, 234, 0.3);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}

.iban-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.iban-number {
  font-size: 1.1rem;
  font-weight: 700;
  font-family: 'Courier New', monospace;
  letter-spacing: 2px;
  word-break: break-all;
}

.iban-holder {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-top: 8px;
}

.price-tag {
  text-align: center;
  padding: 16px;
  margin-bottom: 24px;
}

.price-amount {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.price-currency {
  font-size: 1.2rem;
  color: var(--text-muted);
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 1rem;
  transition: all 0.3s;
  outline: none;
}

.form-control:focus {
  border-color: var(--primary);
  background: rgba(102, 126, 234, 0.05);
}

.form-control::placeholder { color: var(--text-muted); }

.file-upload {
  position: relative;
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
}

.file-upload:hover {
  border-color: var(--primary);
  background: rgba(102, 126, 234, 0.05);
}

.file-upload input {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-upload-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.file-upload-text {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.file-name {
  margin-top: 8px;
  color: var(--success);
  font-weight: 600;
}

/* ==================== SUCCESS PAGE ==================== */
.success-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 100px 24px 60px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
}

.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(72, 187, 120, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 2.5rem;
}

.success-card h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.success-card p {
  color: var(--text-muted);
  margin-bottom: 32px;
}

/* ==================== ADMIN PANEL ==================== */
.admin-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 24px 60px;
  min-height: 100vh;
}

.admin-login-card {
  max-width: 400px;
  margin: 0 auto;
  margin-top: 15vh;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}

.admin-login-card h2 {
  text-align: center;
  margin-bottom: 32px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.stat-card .stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-card .stat-value {
  font-size: 2rem;
  font-weight: 800;
  margin-top: 8px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-header h2 { font-size: 1.5rem; }

.filter-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 8px 20px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s;
  font-size: 0.85rem;
}

.filter-tab.active,
.filter-tab:hover {
  background: var(--gradient);
  color: white;
  border-color: transparent;
}

.payments-table {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.payments-table table {
  width: 100%;
  border-collapse: collapse;
}

.payments-table th,
.payments-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.payments-table th {
  background: rgba(102, 126, 234, 0.1);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-light);
}

.payments-table tr:last-child td { border-bottom: none; }

.payments-table tr:hover td { background: rgba(255, 255, 255, 0.02); }

.status-badge {
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-pending { background: rgba(246, 173, 85, 0.15); color: var(--warning); }
.status-approved { background: rgba(72, 187, 120, 0.15); color: var(--success); }
.status-rejected { background: rgba(252, 129, 129, 0.15); color: var(--danger); }

.action-btns { display: flex; gap: 8px; }

.receipt-link {
  color: var(--primary);
  text-decoration: underline;
  cursor: pointer;
}

/* Receipt Modal */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.active { display: flex; }

.modal-content {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow: auto;
}

.modal-content img {
  width: 100%;
  border-radius: 8px;
}

.modal-close {
  float: right;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ==================== RESPONSIVE TABLE ==================== */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ==================== TOAST ==================== */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 16px 24px;
  border-radius: 12px;
  color: white;
  font-weight: 600;
  z-index: 10001;
  animation: slideInRight 0.3s ease;
  max-width: 90vw;
}

.toast-success { background: linear-gradient(135deg, #48bb78, #38a169); }
.toast-error { background: linear-gradient(135deg, #fc8181, #e53e3e); }

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ==================== MOBILE RESPONSIVE ==================== */
@media (max-width: 768px) {
  .navbar { padding: 0 16px; }
  .navbar-brand { font-size: 1.2rem; }
  .navbar-links a { padding: 6px 10px; font-size: 0.8rem; }

  .hero { padding: 80px 16px 40px; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }

  .features { padding: 40px 16px; }
  .features-title { font-size: 1.5rem; }

  .test-container { padding: 80px 16px 40px; }
  .question-card { padding: 24px; }
  .question-text { font-size: 1.05rem; }

  .payment-container { padding: 80px 16px 40px; }
  .payment-card { padding: 24px; }

  .admin-container { padding: 80px 16px 40px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  .payments-table th,
  .payments-table td { padding: 10px 8px; font-size: 0.8rem; }

  .action-btns { flex-direction: column; }

  .btn { padding: 12px 20px; font-size: 0.9rem; }
  .btn-group { flex-direction: column; }

  .price-amount { font-size: 2rem; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .filter-tabs { flex-direction: column; }
  .filter-tab { text-align: center; }
}

/* ==================== MISC ==================== */
.hidden { display: none !important; }

.text-center { text-align: center; }

.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 32px; }
