* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont;
}

body {
  height: 100vh;
  background: #0f1020;
  color: #fff;
  overflow: auto;
}

/* 🔥 Animated background */
.bg-animated {
  position: fixed;
  inset: 0;
  background: linear-gradient(120deg, #5f2eea, #00c6ff, #5f2eea);
  background-size: 300% 300%;
  animation: gradientMove 18s ease infinite;
  filter: blur(40px);
  opacity: 0.6;
  z-index: -1;
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Layout */
.start-wrapper {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.start-card {
  width: 820px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 40px 120px rgba(0,0,0,.4);
}

.start-header {
  text-align: center;
  margin-bottom: 40px;
}

.start-header h1 {
  font-size: 36px;
  letter-spacing: 1px;
}

.start-header p {
  opacity: .7;
  margin-top: 6px;
}

/* Grid */
.panels-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.panel-card {
  position: relative;
  padding: 26px;
  border-radius: 18px;
  background: rgba(255,255,255,0.12);
  text-decoration: none;
  color: #fff;
  transition: all .3s ease;
  overflow: auto;
}

.panel-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255,255,255,.15));
  opacity: 0;
  transition: opacity .3s;
}

.panel-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,.4);
}

.panel-card:hover::before {
  opacity: 1;
}

.panel-card .icon {
  font-size: 28px;
}

.panel-card h2 {
  margin-top: 14px;
  font-size: 20px;
}

.panel-card p {
  margin-top: 6px;
  font-size: 14px;
  opacity: .75;
}

.start-footer {
  text-align: center;
  margin-top: 30px;
  font-size: 12px;
  opacity: .5;
}
/* ===== PIN MODAL ===== */
.pin-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,12,30,.55);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.pin-overlay.hidden {
  display: none;
}

.pin-modal {
  width: 360px;
  padding: 36px;
  border-radius: 22px;
  background: linear-gradient(
    160deg,
    rgba(255,255,255,0.18),
    rgba(255,255,255,0.08)
  );
  box-shadow:
    0 40px 120px rgba(0,0,0,.6),
    inset 0 0 0 1px rgba(255,255,255,.15);
  text-align: center;
  animation: pinEnter .35s ease;
}

@keyframes pinEnter {
  from { opacity: 0; transform: scale(.94) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.pin-modal h3 {
  font-size: 26px;
  letter-spacing: .5px;
}

.pin-sub {
  opacity: .6;
  margin: 6px 0 20px;
}

#pinInput {
  width: 100%;
  height: 64px;
  border-radius: 16px;
  border: none;
  outline: none;
  font-size: 34px;
  text-align: center;
  letter-spacing: 12px;
  background: rgba(0,0,0,.35);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.15);
}

.pin-error {
  margin-top: 14px;
  color: #ff7b7b;
  font-size: 14px;
  min-height: 18px;
}

.pin-modal button {
  width: 100%;
  margin-top: 10px;
  border: none;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  background: #6366f1;
  color: #fff;
  cursor: pointer;
}

.pin-modal button:hover {
  background: #4f46e5;
}

.orders-workspace {
  transform: none !important;
}







/* =====================================================
   HASŁO / PIN – FUTURE 2080
===================================================== */

:root {
  --bg-main: #020617;
  --glass-bg: rgba(15, 23, 42, 0.72);
  --glass-border: rgba(255, 255, 255, 0.08);

  --accent: #6366f1;
  --accent-soft: rgba(99, 102, 241, 0.35);

  --danger: #ef4444;
  --success: #22c55e;
  --text-main: #e5e7eb;
  --text-muted: #94a3b8;
}

/* =====================================================
   PAGE BACKGROUND
===================================================== */

.start-body {
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 50% -200px, rgba(99,102,241,.25), transparent 60%),
    radial-gradient(900px 500px at 80% 100%, rgba(34,197,94,.15), transparent 60%),
    var(--bg-main);

  display: flex;
  align-items: center;
  justify-content: center;

  font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  color: var(--text-main);
}

/* =====================================================
   CARD
===================================================== */

.pin-card {
  width: 420px;
  max-width: 92vw;

  padding: 34px 36px 38px;
  border-radius: 22px;

  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.06),
    rgba(255,255,255,0.02)
  ), var(--glass-bg);

  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);

  border: 1px solid var(--glass-border);

  box-shadow:
    0 30px 80px rgba(0,0,0,.55),
    inset 0 1px 0 rgba(255,255,255,.06);

  animation: pinCardIn .45s ease-out;
}

@keyframes pinCardIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* =====================================================
   TITLE
===================================================== */

.pin-card h2 {
  margin-bottom: 26px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .3px;
  text-align: center;
}

/* =====================================================
   INPUT GROUPS
===================================================== */

.pin-group {
  margin-bottom: 16px;
}

.pin-group input {
  width: 100%;
  height: 48px;

  padding: 0 14px;

  background: rgba(2,6,23,0.65);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;

  color: var(--text-main);
  font-size: 14px;

  outline: none;

  transition:
    border-color .25s ease,
    box-shadow .25s ease,
    background .25s ease;
}

.pin-group input::placeholder {
  color: var(--text-muted);
}

.pin-group input:focus {
  border-color: var(--accent);
  background: rgba(2,6,23,0.85);

  box-shadow:
    0 0 0 1px rgba(99,102,241,.4),
    0 0 22px rgba(99,102,241,.35);
}

/* =====================================================
   PIN FIELDS (ANIMATED SHOW)
===================================================== */

#pinFields {
  overflow: hidden;
  transition: all .35s ease;
}

#pinFields.hidden {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
}

#pinFields:not(.hidden) {
  max-height: 200px;
  opacity: 1;
  margin-top: 12px;
}

/* =====================================================
   MESSAGE
===================================================== */

.pin-message {
  min-height: 20px;
  margin: 12px 0 18px;

  font-size: 13px;
  text-align: center;
  line-height: 1.4;

  color: var(--text-muted);
}

.pin-message.error {
  color: #fca5a5;
}

.pin-message.success {
  color: #86efac;
}

.pin-message.blocked {
  color: #f87171;
}

/* =====================================================
   BUTTON
===================================================== */

#setPinBtn {
  width: 100%;
  height: 48px;

  border-radius: 14px;
  border: none;

  background: linear-gradient(
    135deg,
    var(--accent),
    #4f46e5
  );

  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .3px;

  cursor: pointer;

  box-shadow:
    0 10px 28px rgba(79,70,229,.45),
    inset 0 1px 0 rgba(255,255,255,.25);

  transition:
    transform .18s ease,
    box-shadow .18s ease,
    filter .18s ease;
}

#setPinBtn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);

  box-shadow:
    0 14px 36px rgba(79,70,229,.55),
    inset 0 1px 0 rgba(255,255,255,.3);
}

#setPinBtn:active {
  transform: translateY(0);
  box-shadow:
    0 6px 16px rgba(79,70,229,.4);
}

#setPinBtn:disabled {
  cursor: not-allowed;
  opacity: .55;
  filter: grayscale(20%);
}

/* =====================================================
   UTIL
===================================================== */

.hidden {
  display: none;
}
/* =====================================================
   CTA – PRZEJŚCIE NA START
===================================================== */

.go-start {
  margin-top: 22px;
  text-align: center;
  animation: goStartIn .35s ease-out;
}

@keyframes goStartIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.go-start-btn {
  display: inline-block;
  padding: 12px 22px;

  border-radius: 14px;
  background: rgba(15,23,42,0.85);
  border: 1px solid rgba(255,255,255,0.14);

  color: #e5e7eb;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: .2px;

  backdrop-filter: blur(10px);
  box-shadow:
    0 10px 26px rgba(0,0,0,.45),
    inset 0 1px 0 rgba(255,255,255,.06);

  transition:
    background .2s ease,
    box-shadow .2s ease,
    transform .2s ease;
}

.go-start-btn:hover {
  background: rgba(99,102,241,0.25);
  box-shadow:
    0 14px 34px rgba(99,102,241,.35),
    inset 0 1px 0 rgba(255,255,255,.08);

  transform: translateY(-1px);
}
