:root {
  --bg: #000000;
  --card: #0a0a0a;
  --muted: #666666;
  --text: #cccccc;
  --primary: #00ff88;
  --primary-600: #00cc6a;
  --accent: #1a1a1a;
  --danger: #ff4444;
  --border: rgba(255,255,255,0.08);
  --ring: rgba(255, 255, 255, 0.15);
  --shadow: 0 10px 40px rgba(0,0,0,0.8);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: #000;
  cursor: none;
  overflow-x: hidden;
  position: relative;
}

/* Custom Cursor */
#cursor-glow {
  position: fixed;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,255,136,0.6), transparent 70%);
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.15s ease-out, opacity 0.3s ease;
  opacity: 0;
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
}

body::after {
  content: '';
  position: fixed;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00ff88;
  pointer-events: none;
  z-index: 10000;
  transition: transform 0.08s ease-out;
  opacity: 0;
  box-shadow: 0 0 10px rgba(0,255,136,0.9);
}

/* Background Effects - Hacker Style */
.bg-effects { 
  position: fixed; 
  inset: 0; 
  z-index: 0; 
  pointer-events: none; 
  overflow: hidden;
  background: radial-gradient(ellipse at top, rgba(0,40,80,0.3), transparent 50%),
              radial-gradient(ellipse at bottom, rgba(0,20,40,0.4), transparent 50%),
              #000;
}

#matrix-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.15;
}

.tech-grid {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(rgba(0,255,136,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,136,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  animation: gridPulse 4s ease-in-out infinite;
}

@keyframes gridPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.8; }
}

.scanning-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(0,255,136,0.8) 50%, 
    transparent);
  box-shadow: 0 0 20px rgba(0,255,136,0.8);
  animation: scan 6s linear infinite;
}

@keyframes scan {
  0% { transform: translateY(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(100vh); opacity: 0; }
}

.orb { 
  position: absolute; 
  border-radius: 50%; 
  filter: blur(80px); 
  opacity: 0.2; 
  animation: float 20s ease-in-out infinite; 
}

.orb-1 { 
  width: 500px; 
  height: 500px; 
  background: radial-gradient(circle at 30% 30%, #00ff88, transparent 70%); 
  top: -100px; 
  left: -100px; 
}

.orb-2 { 
  width: 400px; 
  height: 400px; 
  background: radial-gradient(circle at 70% 30%, #00d9ff, transparent 70%); 
  bottom: -100px; 
  right: -100px; 
  animation-delay: 3s; 
}

.orb-3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle at 50% 50%, #00ff88, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 6s;
}

@keyframes float {
  0%,100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -30px) scale(1.1); }
  50% { transform: translate(-20px, 20px) scale(0.9); }
  75% { transform: translate(20px, 30px) scale(1.05); }
}

.container { position: relative; z-index: 1; max-width: 1100px; margin: 40px auto 80px; padding: 0 20px; }

/* Card Styling */
.card {
  background: linear-gradient(145deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid var(--border);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.08);
  border-radius: 20px;
  backdrop-filter: blur(12px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.1);
}

/* Header */
.header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; gap: 20px; flex-wrap: wrap; }
.branding { display: flex; align-items: center; gap: 16px; }
.logo-img { 
  height: 50px; 
  width: auto; 
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0,255,136,0.4));
  animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-4px); }
}

h1 { 
  margin: 0; 
  font-size: 24px; 
  font-weight: 700; 
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.subtitle { margin: 4px 0 0; color: var(--muted); font-size: 13px; }

/* Buttons */
.header-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn { 
  appearance: none; 
  border: 1px solid var(--border); 
  background: #1a1a1a; 
  color: #888; 
  padding: 11px 16px; 
  border-radius: 12px; 
  cursor: pointer; 
  transition: all .2s ease; 
  box-shadow: 0 4px 14px rgba(0,0,0,0.5);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.2);
}


.btn:active { transform: translateY(0) scale(0.98); }

.btn.primary { 
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-600) 100%); 
  border-color: rgba(0,255,136,0.6); 
  color: #000; 
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(0,255,136,0.4);
}

.btn.outline { 
  background: #0a0a0a; 
  border: 1px solid rgba(255,255,255,0.1);
}

.btn.ghost { 
  background: transparent; 
  border-style: dashed; 
  color: #555; 
}

.btn svg {
  position: relative;
  z-index: 1;
}

.btn span {
  position: relative;
  z-index: 1;
}

/* Sections */
.section { 
  padding: 24px 28px; 
  border-top: 1px dashed var(--border);
  animation: sectionFadeIn 0.6s ease-out both;
}

@keyframes sectionFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.section:nth-child(1) { animation-delay: 0.1s; }
.section:nth-child(2) { animation-delay: 0.2s; }
.section:nth-child(3) { animation-delay: 0.3s; }
.section:nth-child(4) { animation-delay: 0.4s; }

.section:first-of-type { border-top: 0; }
.section-title { 
  margin: 0 0 18px; 
  font-size: 17px; 
  font-weight: 600;
  letter-spacing: .3px; 
  color: #f3f6ff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::before {
  content: '';
  width: 4px;
  height: 20px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  border-radius: 4px;
}

/* Grid */
.grid.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .grid.two { grid-template-columns: 1fr; } }

/* Form Fields */
.field { 
  display: flex; 
  flex-direction: column; 
  gap: 8px; 
}

.field label { 
  font-size: 13px; 
  color: var(--muted); 
  font-weight: 500;
}

.field input, .field textarea, .field select {
  width: 100%;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  background: #0a0a0a;
  color: #ccc;
  outline: none;
  transition: all .25s ease;
  font-family: inherit;
  font-size: 14px;
}

.field input:hover, .field textarea:hover, .field select:hover {
  border-color: rgba(255,255,255,0.2);
  background: #111;
}

.field input:focus, .field textarea:focus, .field select:focus { 
  box-shadow: 0 0 0 3px rgba(255,255,255,0.1); 
  border-color: rgba(255,255,255,0.3);
  background: #0f0f0f;
}

.field .error { 
  min-height: 18px; 
  font-size: 12px; 
  color: var(--danger);
  font-weight: 500;
}

/* Phone Input Group */
.phone-input-group {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 10px;
  align-items: center;
}

.phone-code {
  width: 100%;
}

.phone-input-group input[type="tel"] {
  width: 100%;
}

/* App Cards */
.app-grid { 
  display: grid; 
  grid-template-columns: repeat(4, 1fr);
  gap: 12px; 
}

@media (max-width: 900px) {
  .app-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .app-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.app-card { 
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 12px;
  border-radius: 14px;
  background: #0a0a0a;
  border: 1px solid rgba(255,255,255,0.1);
  cursor: pointer;
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.app-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.02);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.app-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.2);
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
  background: #111;
}

.app-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.app-card input:checked ~ .app-check {
  opacity: 1;
  transform: scale(1);
}

.app-card input:checked + .app-icon {
  transform: scale(1.1);
  filter: drop-shadow(0 2px 8px rgba(0,255,136,0.5));
}

.app-card input:checked ~ * {
  position: relative;
  z-index: 1;
}

.app-card input:checked::before {
  opacity: 0.1;
}

.app-card:has(input:checked) {
  border-color: var(--primary);
  background: #0f0f0f;
  box-shadow: 0 0 20px rgba(0,255,136,0.2), inset 0 0 30px rgba(0,255,136,0.05);
}

.app-icon {
  font-size: 24px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.app-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  position: relative;
  z-index: 1;
  line-height: 1.3;
}

.app-check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #000;
  font-size: 14px;
  font-weight: bold;
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0,255,136,0.6);
}

/* Digital Signature for Applicant */
.applicant-signature-wrapper {
  max-width: 600px;
  margin: 0 auto;
}

.digital-sign-card {
  background: #0a0a0a;
  border: 1px solid rgba(0,255,136,0.2);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.digital-sign-box {
  height: 200px;
  border: 2px dashed rgba(0,255,136,0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: #000;
  cursor: crosshair;
  overflow: hidden;
  transition: all 0.3s ease;
}

.digital-sign-box:hover {
  border-color: rgba(0,255,136,0.5);
  background: #050505;
  box-shadow: 0 0 20px rgba(0,255,136,0.15);
}

.signature-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: rgba(0,255,136,0.05);
  border: 1px solid rgba(0,255,136,0.15);
  border-radius: 10px;
  font-size: 12px;
  color: var(--muted);
}

.signature-info svg {
  color: var(--primary);
  flex-shrink: 0;
}

/* Signatures */
.signatures { 
  display: grid; 
  grid-template-columns: 1fr; 
  gap: 16px; 
}

@media (min-width: 780px) { 
  .signatures { 
    grid-template-columns: repeat(3, 1fr); 
  } 
}

.sign-card { 
  background: #0a0a0a; 
  border: 1px solid rgba(255,255,255,0.1); 
  border-radius: 16px; 
  padding: 18px; 
  display: flex; 
  flex-direction: column; 
  gap: 14px;
  transition: all 0.3s ease;
}

.sign-card:hover {
  border-color: rgba(255,255,255,0.15);
  background: #0f0f0f;
}

.sign-role { 
  color: #dfe7ff; 
  font-weight: 600; 
  font-size: 14px; 
  letter-spacing: .4px;
  text-transform: uppercase;
}

.sign-box { 
  height: 150px; 
  border: 2px dashed rgba(255,255,255,0.15); 
  border-radius: 12px; 
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative; 
  background: #000;
  transition: all 0.3s ease;
  cursor: pointer;
  overflow: hidden;
}

.sign-box:hover {
  border-color: rgba(0,255,136,0.4);
  background: #050505;
}

.signature-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: crosshair;
}

.sign-placeholder { 
  color: var(--muted); 
  font-size: 12px;
  font-style: italic;
  pointer-events: none;
  z-index: 1;
}

.clear-signature {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255,68,68,0.9);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 11px;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.clear-signature:hover {
  background: #ff4444;
  transform: scale(1.05);
}

.sign-meta { 
  display: grid; 
  grid-template-columns: 100px 1fr; 
  gap: 12px; 
}

.sign-meta .field input {
  font-size: 12px;
  padding: 10px 12px;
}

@media (max-width: 780px) {
  .sign-meta {
    grid-template-columns: 1fr;
  }
}


/* Print-only header (hidden on screen) */
.print-only-header {
  display: none;
}

/* Consent */
.consent { 
  display: flex; 
  flex-direction: column; 
  gap: 6px; 
}

.checkbox { 
  display: flex; 
  align-items: flex-start; 
  gap: 12px;
  padding: 16px;
  background: #0a0a0a;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.3s ease;
}

.checkbox:hover {
  background: #0f0f0f;
  border-color: rgba(255,255,255,0.15);
}

.checkbox input { 
  margin-top: 3px; 
  accent-color: var(--primary);
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.checkbox span {
  flex: 1;
  line-height: 1.6;
  color: var(--muted);
}

/* Footer */
.form-footer { 
  display: flex; 
  gap: 12px; 
  padding: 24px 28px; 
  border-top: 1px dashed var(--border);
  flex-wrap: wrap;
}

.footer-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: #0a0a0a;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  color: #666;
  font-size: 13px;
  line-height: 1.6;
  flex: 1;
}

.footer-note svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: #888;
}

.site-footer { 
  text-align: center; 
  color: var(--muted); 
  margin-top: 24px; 
  font-size: 12px;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.designer {
  color: #555;
  font-size: 11px;
  letter-spacing: 0.5px;
}

.designer strong {
  font-weight: 700;
  color: #888;
}

/* Animations */
.entrance { 
  animation: rise .6s cubic-bezier(0.4, 0, 0.2, 1) both; 
}

.entrance:nth-child(1) { animation-delay: 0.1s; }
.entrance:nth-child(2) { animation-delay: 0.2s; }

@keyframes rise { 
  from { opacity: 0; transform: translateY(20px) scale(0.95); } 
  to { opacity: 1; transform: translateY(0) scale(1); } 
}

/* Print Styles */
@media print {
  @page { 
    size: A4 portrait; 
    margin: 8mm; 
  }
  
  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  
  body { 
    background: white !important; 
    cursor: auto;
    margin: 0;
    padding: 0;
  }
  
  .bg-effects, .header, .header-actions, .form-footer, #cursor-glow { 
    display: none !important; 
  }
  
  .container { 
    max-width: 100%; 
    margin: 0; 
    padding: 0;
    width: 100%;
  }
  
  .card { 
    box-shadow: none; 
    border: none; 
    background: white;
    color: #000;
    padding: 0;
    margin: 0;
  }
  
  .section { 
    border: none; 
    padding: 4px 0; 
    page-break-inside: avoid;
  }
  
  .site-footer { display: none !important; }
  
  /* Print başlığı göster */
  .print-only-header {
    display: block !important;
    text-align: center;
    padding: 0 0 8px 0;
    border-bottom: 2px solid #000;
    margin-bottom: 8px;
  }
  
  .print-title {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    margin: 0;
    letter-spacing: 0.5px;
  }
  
  h1 { 
    color: #000; 
    font-size: 16px; 
    margin: 0 0 6px; 
    text-align: center;
  }
  
  .section-title {
    font-size: 13px;
    margin-bottom: 4px;
    color: #000;
  }
  
  .subtitle, .field label, .sign-placeholder { color: #555; font-size: 9px; }
  .app-name, .sign-role { color: #000; font-size: 11px; }
  
  .field {
    margin-bottom: 2px;
  }
  
  .field input, .field textarea, .field select {
    border: 1px solid #ccc;
    background: white !important;
    color: #000 !important;
    font-size: 9px;
    padding: 3px 5px;
  }
  
  .phone-input-group input,
  .phone-input-group select {
    background: white !important;
    color: #000 !important;
  }
  
  .grid.two { 
    grid-template-columns: repeat(2, 1fr); 
    gap: 5px; 
  }
  
  .app-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 3px;
  }
  
  .app-card {
    border: 1px solid #ccc;
    background: white !important;
    padding: 5px 3px;
  }
  
  .app-card:has(input:checked) {
    background: white !important;
    border-color: #000 !important;
    box-shadow: none !important;
  }
  
  .app-icon {
    font-size: 14px;
  }
  
  .app-name {
    font-size: 9px;
  }
  
  .app-check {
    display: none !important;
  }
  
  .signatures {
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
  }
  
  .sign-card {
    padding: 6px;
    border: 1px solid #ccc;
    background: white;
  }
  
  .sign-box { 
    border: 2px dashed #999; 
    background: white; 
    height: 45px;
    margin: 3px 0;
  }
  
  .signature-canvas {
    display: block !important;
  }
  
  .sign-placeholder,
  .clear-signature {
    display: none !important;
  }
  
  /* Digital signature section in print */
  .applicant-signature-wrapper {
    max-width: 100%;
    margin: 4px 0;
  }
  
  .digital-sign-card {
    background: white;
    border: 1px solid #ddd;
    padding: 6px;
  }
  
  .digital-sign-box {
    height: 55px;
    border: 2px solid #000;
    background: white;
  }
  
  .signature-info {
    display: none !important;
  }
  
  .sign-meta {
    grid-template-columns: 55px 1fr;
    gap: 3px;
  }
  
  .sign-meta .field input {
    font-size: 8px;
    padding: 2px 4px;
  }
  
  .sign-meta .field label {
    font-size: 7px;
  }
  
  .consent {
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 9px;
  }
  
  .checkbox {
    padding: 4px;
    border: none;
    background: transparent;
  }
  
  .checkbox span {
    font-size: 8px;
    line-height: 1.3;
  }
  
}

/* Print Template visuals - Not used anymore, direct print from form */
