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

:root {
  --bg:           #080d1a;
  --glass:        rgba(14, 22, 48, 0.72);
  --glass-border: rgba(255, 255, 255, 0.10);
  --glass-hover:  rgba(14, 22, 48, 0.85);
  --accent:       #00d1d1;
  --accent-glow:  rgba(0, 209, 209, 0.18);
  --accent2:      #3b82f6;
  --green:        #10b981;
  --red:          #ef4444;
  --yellow:       #f59e0b;
  --text:         #f0f4ff;
  --text-muted:   #8b98b1;
  --text-dim:     #4b5a73;
  --input-bg:     rgba(6, 12, 28, 0.80);
  --input-border: rgba(60, 80, 130, 0.60);
  --radius:       16px;
  --radius-sm:    10px;
  --font:         'Poppins', sans-serif;
}

body {
  font-family: var(--font);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse at 10% 10%, rgba(0, 209, 209, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 90%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ============================
   BACKGROUND VIDEO
   ============================ */
.background-clip {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100vh;
  object-fit: cover;
  z-index: -1;
  filter: brightness(28%);
}

/* ============================
   BACK BUTTON
   ============================ */
.back-btn {
  position: fixed;
  top: 20px; left: 20px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(14, 22, 48, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0.45rem 1rem;
  border-radius: 50px;
  transition: all 0.25s ease;
}
.back-btn:hover {
  color: var(--text);
  border-color: var(--accent);
  background: rgba(0, 209, 209, 0.1);
}

/* ============================
   CONTAINER / FORM
   ============================ */
.container {
  max-width: 1100px;
  margin: auto;
  padding: 80px 24px 80px;
}

h1 {
  color: var(--text);
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.6px;
  margin-bottom: 6px;
  line-height: 1.2;
}

.subtitle {
  font-size: 0.88rem;
  margin-bottom: 32px;
  color: var(--text-muted);
  line-height: 1.5;
}

.subtitle span { color: var(--accent); }

/* ============================
   GRID LAYOUT
   ============================ */
.grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 22px;
  align-items: start;
}

/* ============================
   GLASSMORPHISM CARDS
   ============================ */
.card {
  background: var(--glass);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s ease, background 0.25s ease;
}

/* Top shimmer line */
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(0, 209, 209, 0.35) 50%, transparent 100%);
}

.card:hover {
  border-color: rgba(0, 209, 209, 0.18);
  background: var(--glass-hover);
}

.card-title {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-dim);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  gap: 7px;
}

.card-title::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 12px;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
}

/* ============================
   FORM ELEMENTS
   ============================ */
.form-group {
  margin-bottom: 16px;
}

label {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 7px;
  letter-spacing: 0.3px;
}

input,
select,
textarea {
  width: 100%;
  padding: 11px 14px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.875rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

input:hover,
select:hover,
textarea:hover {
  border-color: rgba(90, 115, 170, 0.75);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 209, 209, 0.10);
  background: rgba(0, 209, 209, 0.03);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-dim);
  font-size: 0.84rem;
}

select option {
  background: #0c1428;
  color: var(--text);
}

textarea {
  height: 100px;
  resize: vertical;
  line-height: 1.6;
}

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

/* ============================
   DIFFICULTY CARDS
   ============================ */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.diff-card {
  padding: 16px 12px;
  text-align: center;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: all 0.22s ease;
  position: relative;
  overflow: hidden;
}

.diff-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.diff-indicator {
  width: 32px;
  height: 4px;
  border-radius: 2px;
  margin: 0 auto 12px;
  background: rgba(255, 255, 255, 0.12);
  transition: background 0.2s, width 0.2s;
}

.diff-card h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 5px;
  transition: color 0.2s;
}

.diff-card p {
  font-size: 0.68rem;
  color: var(--text-dim);
  line-height: 1.45;
}

/* Easy Active */
.diff-card.diff-easy.active {
  border-color: rgba(16, 185, 129, 0.45);
  background: rgba(16, 185, 129, 0.07);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.1), inset 0 1px 0 rgba(16, 185, 129, 0.12);
}
.diff-card.diff-easy.active .diff-indicator { background: var(--green); width: 36px; }
.diff-card.diff-easy.active h4 { color: var(--green); }

/* Medium Active */
.diff-card.diff-medium.active {
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.07);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.1), inset 0 1px 0 rgba(245, 158, 11, 0.12);
}
.diff-card.diff-medium.active .diff-indicator { background: var(--yellow); width: 36px; }
.diff-card.diff-medium.active h4 { color: var(--yellow); }

/* Hard Active */
.diff-card.diff-hard.active {
  border-color: rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.07);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.1), inset 0 1px 0 rgba(239, 68, 68, 0.12);
}
.diff-card.diff-hard.active .diff-indicator { background: var(--red); width: 36px; }
.diff-card.diff-hard.active h4 { color: var(--red); }

/* ============================
   BUTTON GROUPS
   ============================ */
.btn-group {
  display: flex;
  gap: 6px;
  background: rgba(6, 12, 28, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-sm);
  padding: 5px;
}

.btn-group button {
  flex: 1;
  padding: 9px 12px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  border-radius: 7px;
  cursor: pointer;
  font-size: 0.82rem;
  font-family: var(--font);
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-group button:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.btn-group button.active {
  background: rgba(0, 209, 209, 0.14);
  color: var(--accent);
  border: 1px solid rgba(0, 209, 209, 0.28);
  font-weight: 700;
}

/* ============================
   WORKER COUNTER
   ============================ */
.counter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
  padding: 5px 8px;
  height: 44px;
}

.counter button {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  font-size: 1.1rem;
  width: 30px; height: 30px;
  border-radius: 7px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  font-weight: 700;
}

.counter button:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0, 209, 209, 0.08);
}

#c-val {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  min-width: 28px;
  text-align: center;
}

/* ============================
   LIVE PREVIEW CARD
   ============================ */
.preview-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 5px;
  text-transform: capitalize;
}

.preview-location {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.preview-location::before { content: '📍'; font-size: 0.68rem; }

.preview-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.preview-tags span {
  padding: 4px 11px;
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 700;
  border: 1px solid;
}

.tag-easy   { border-color: rgba(16,185,129,.4) !important; color: var(--green) !important;  background: rgba(16,185,129,.08) !important; }
.tag-medium { border-color: rgba(245,158,11,.4) !important; color: var(--yellow) !important; background: rgba(245,158,11,.08) !important; }
.tag-hard   { border-color: rgba(239,68,68,.4)  !important; color: var(--red)    !important; background: rgba(239,68,68,.08)  !important; }
.tag-gender { border-color: rgba(99,102,241,.4)  !important; color: #818cf8       !important; background: rgba(99,102,241,.08) !important; }
.tag-age    { border-color: rgba(245,158,11,.4)  !important; color: var(--yellow) !important; background: rgba(245,158,11,.08) !important; }
.tag-biz    { border-color: rgba(59,130,246,.4)  !important; color: #60a5fa      !important; background: rgba(59,130,246,.08) !important; }

.preview-pay {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.5px;
}

/* ============================
   SUBMIT BUTTON
   ============================ */
.submit-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, var(--accent), #2563eb);
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.25s ease;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 24px rgba(0, 209, 209, 0.22);
  position: relative;
  overflow: hidden;
}

.submit-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  border-radius: inherit;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 209, 209, 0.38);
}

.submit-btn:active { transform: translateY(0); }

/* ============================
   ACCESS DENIED OVERLAY
   ============================ */
.access-denied-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1.5rem;
}

.access-denied-card {
  background: rgba(14, 22, 48, 0.85);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 82, 82, 0.22);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  max-width: 420px;
  width: 100%;
  animation: cardPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes cardPop {
  from { transform: scale(0.82); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.ad-icon {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 2rem;
  color: var(--red);
}

.access-denied-card h2 {
  font-size: 1.3rem; font-weight: 700;
  color: var(--text); margin-bottom: 0.6rem;
}

.access-denied-card p {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.ad-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0.7rem 1.5rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  margin: 0.3rem;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-family: var(--font);
}

.ad-btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
}
.ad-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 209, 209, 0.35);
}

.ad-btn.secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
}
.ad-btn.secondary:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ============================
   SCROLLBAR
   ============================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 3px;
}

/* ============================
   RESPONSIVE — TABLET (≤900px)
   ============================ */
@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr; }

  .right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }

  .right .card:last-of-type,
  .right .submit-btn { grid-column: 1 / -1; }
}

/* ============================
   RESPONSIVE — MOBILE (≤600px)
   ============================ */
@media (max-width: 600px) {
  .container { padding: 70px 14px 60px; }
  h1 { font-size: 1.6rem; }
  .right { grid-template-columns: 1fr; }

  .diff-grid { grid-template-columns: 1fr; gap: 8px; }

  .diff-card {
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
    padding: 12px 14px;
  }

  .diff-indicator {
    width: 4px; height: 38px;
    margin: 0;
    border-radius: 2px;
    flex-shrink: 0;
  }

  .diff-card p { font-size: 0.7rem; }
  .row { grid-template-columns: 1fr; }
  .btn-group button { font-size: 0.78rem; padding: 8px 6px; }

  .back-btn { top: 12px; left: 12px; font-size: 0.78rem; padding: 0.4rem 0.85rem; }
  .card { padding: 16px 18px; }
  .preview-pay { font-size: 1.3rem; }
  .submit-btn { font-size: 0.9rem; padding: 14px; }
}

/* ============================
   RESPONSIVE — SMALL (≤400px)
   ============================ */
@media (max-width: 400px) {
  .container { padding: 65px 10px 50px; }
  h1 { font-size: 1.4rem; }
  .diff-grid { gap: 6px; }
}