﻿html{
  background: #0b0e14; /* albo kolor z klimatu */
}

    :root{
      --panel-bg: rgba(10, 12, 18, 0.72);
      --panel-bg-strong: rgba(10, 12, 18, 0.82);
      --border: rgba(255, 255, 255, 0.10);
      --text: rgba(255,255,255,0.92);
      --muted: rgba(255,255,255,0.72);
      --accent: rgba(255, 200, 80, 0.95);
      --shadow: 0 18px 60px rgba(0,0,0,0.55);
      --radius: 18px;
      --max: 1200px;
    }

    *{ box-sizing: border-box; }
    html, body { height: 100%; }

    body{
      margin: 0;
      font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
      color: var(--text);
      background-image: url("../img/bg.jpg");
      background-size: cover;
      background-position: center top;
      background-attachment: fixed;
      overflow-x: hidden;
    }

    .overlay{
      min-height: 100%;
      background: radial-gradient(1200px 700px at 20% 10%, rgba(0,0,0,0.25), transparent 60%),
                  linear-gradient(to bottom, rgba(0,0,0,0.25), rgba(0,0,0,0.55));
    }

    /* TOP MENU */
    header{
      position: sticky;
      top: 0;
      z-index: 50;
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      background: rgba(10, 12, 18, 0.55);
      border-bottom: 1px solid var(--border);
    }

    .nav{
      max-width: var(--max);
      margin: 0 auto;
      padding: 14px 18px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
    }

    .brand{
      display: flex;
      align-items: center;
    }

    .brand img{
      height: 72px;        /* zmień jeśli trzeba */
      width: auto;
      display: block;
      filter: drop-shadow(0 6px 16px rgba(0,0,0,0.6));
    }

    .nav ul{
      list-style: none;
      margin: 0;
      padding: 0;
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      justify-content: flex-end;
    }

    /* ZMIANA: stylujemy tylko linki w menu (ul), nie logo */
    .nav ul a{
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 10px 12px;
      border-radius: 12px;
      text-decoration: none;
      color: var(--text);
      border: 1px solid transparent;
      transition: transform .12s ease, background .12s ease, border-color .12s ease;
      background: rgba(255,255,255,0.06);
    }

    /* ZMIANA: hover tylko dla linków menu */
    .nav ul a:hover{
      transform: translateY(-1px);
      background: rgba(255,255,255,0.10);
      border-color: rgba(255,255,255,0.10);
    }

    /* ZMIANA: CTA tylko dla linku w menu */
    .nav ul .cta{
      background: rgba(255, 200, 80, 0.14);
      border-color: rgba(255, 200, 80, 0.35);
    }
    .nav ul .cta:hover{
      background: rgba(255, 200, 80, 0.20);
      border-color: rgba(255, 200, 80, 0.45);
    }

    /* MAIN LAYOUT */
    main{
      max-width: var(--max);
      margin: 0 auto;
      padding: 22px 18px 28px;
      display: grid;
      grid-template-rows: auto auto;
      gap: 18px;
    }

    /* GLÓWNY BLOK: lewy panel + postać */
    .top-grid{
      display: grid;
      grid-template-columns: 1.15fr 0.85fr;
      gap: 18px;
      align-items: stretch;
    }

    .panel{
      background: var(--panel-bg);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      padding: 18px;
    }

    /* LOGO zamiast h1 - WYŚRODKOWANE */
    .logo{
      display: block;
      max-width: 360px;
      width: 100%;
      height: auto;
      margin: 4px auto 14px; /* <-- center */
      filter: drop-shadow(0 10px 25px rgba(0,0,0,0.6));
    }

    .panel p{
      margin: 0 0 12px;
      color: var(--muted);
      line-height: 1.55;
    }

    .badges{
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 14px;
    }
    .badge{
      padding: 8px 10px;
      border-radius: 999px;
      background: rgba(255,255,255,0.08);
      border: 1px solid rgba(255,255,255,0.10);
      font-size: 13px;
      color: var(--text);
    }
    .badge b{ color: var(--accent); font-weight: 700; }

    .info-grid{
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
      margin-top: 16px;
    }

    .card{
      background: rgba(0,0,0,0.25);
      border: 1px solid rgba(255,255,255,0.10);
      border-radius: 16px;
      padding: 12px;
    }
    .card .k{
      font-size: 12px;
      letter-spacing: 0.4px;
      text-transform: uppercase;
      color: rgba(255,255,255,0.70);
      margin-bottom: 6px;
    }
    .card .v{
      font-size: 15px;
      color: rgba(255,255,255,0.92);
    }

    /* PRZYCISKI - WYŚRODKOWANE (tylko lewy panel) */
    .panel-left-actions{
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 16px;
      justify-content: center; /* <-- center */
    }

    .btn{
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 10px 12px;
      border-radius: 14px;
      text-decoration: none;
      color: var(--text);
      background: rgba(255,255,255,0.08);
      border: 1px solid rgba(255,255,255,0.12);
      transition: transform .12s ease, background .12s ease, border-color .12s ease;
    }
    .btn:hover{
      transform: translateY(-1px);
      background: rgba(255,255,255,0.12);
      border-color: rgba(255,255,255,0.18);
    }
    .btn.primary{
      background: rgba(255, 200, 80, 0.16);
      border-color: rgba(255, 200, 80, 0.35);
    }
    .btn.primary:hover{
      background: rgba(255, 200, 80, 0.22);
      border-color: rgba(255, 200, 80, 0.48);
    }

    /* PANEL Z POSTACIĄ */
    .character{
      position: relative;
      overflow: hidden;
      background: var(--panel-bg-strong);
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 14px;
    }

    .character::before{
      content: "";
      position: absolute;
      inset: -40%;
      background: radial-gradient(circle at 30% 20%, rgba(255, 200, 80, 0.15), transparent 55%),
                  radial-gradient(circle at 70% 60%, rgba(120, 180, 255, 0.12), transparent 58%);
      transform: rotate(10deg);
      pointer-events: none;
    }

    .character img{
      position: relative;
      max-width: 100%;
      max-height: 520px;
      height: auto;
      object-fit: contain;
      filter: drop-shadow(0 22px 55px rgba(0,0,0,0.6));
      transform: translateY(6px);
    }

    .character .note{
      position: absolute;
      bottom: 12px;
      left: 12px;
      right: 12px;
      font-size: 12px;
      color: rgba(255,255,255,0.72);
      background: rgba(0,0,0,0.35);
      border: 1px solid rgba(255,255,255,0.10);
      border-radius: 12px;
      padding: 10px 12px;
    }

    /* DOLNY BLOK */
    .bottom{
      padding: 18px;
    }

    .bottom h2{
      margin: 0 0 10px;
      font-size: 20px;
      letter-spacing: 0.2px;
    }

    .columns{
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      gap: 12px;
      margin-top: 12px;
    }

    .columns .card{
      min-height: 110px;
    }

    .links{
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 14px;
    }

    /* STOPKA */
    footer{
      max-width: var(--max);
      margin: 0 auto;
      padding: 10px 18px 26px;
      color: rgba(255,255,255,0.65);
      font-size: 12px;
      display: flex;
      gap: 10px;
      justify-content: space-between;
      flex-wrap: wrap;
    }

    footer a{
      color: rgba(255,255,255,0.75);
      text-decoration: none;
      border-bottom: 1px dashed rgba(255,255,255,0.25);
    }
    footer a:hover{ color: rgba(255,255,255,0.92); }

    @media (max-width: 980px){
      .top-grid{ grid-template-columns: 1fr; }
      .character img{ max-height: 420px; }
      .columns{ grid-template-columns: 1fr; }
      .info-grid{ grid-template-columns: 1fr; }
      .nav{ gap: 10px; }
    }

    .character img{
      position: absolute;
      inset: 0;
      margin: auto;
      max-width: 100%;
      max-height: 520px;
      object-fit: contain;
      opacity: 0;
      transition: opacity 1.2s ease;
    }

    .character img.active{
      opacity: 1;
    }

    .columns.four{
      grid-template-columns: repeat(4, 1fr);
    }
    .card.feature{
      text-align: center;
    }

    .card.feature img{
      width: 100%;
      max-width: 90px;
      height: auto;
      margin: 4px auto 10px;
      display: block;
      filter: drop-shadow(0 6px 14px rgba(0,0,0,0.45));
      opacity: 0.9;
    }

    /* IKONKI W TOP MENU */
    .nav-ico{
      width: 18px;
      height: 18px;
      flex: 0 0 18px;
      display: inline-block;
      opacity: .92;
    }

    .nav ul{
      align-items: center;
    }

    .nav ul li{
      flex: 1 1 140px;
    }

    .nav ul a{
      width: 100%;
      height: 44px;
      justify-content: center;
      padding: 0 14px;
      white-space: nowrap;
    }
	.form .field .k{
  font-size: 12px;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.70);
  display:block;
  margin-bottom: 6px;
}

.input{
  width: 100%;
  height: 44px;
  border-radius: 14px;
  padding: 0 12px;
  color: var(--text);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
}

.input:focus{
  outline: none;
  border-color: rgba(255,200,80,0.45);
  box-shadow: 0 0 0 3px rgba(255,200,80,0.12);
}
/* AUTH PAGES (login/register) */
main.auth{
  max-width: 520px;
  margin: 0 auto;
  padding: 40px 18px 28px; /* ręcznie kontrolowany odstęp od góry */
  min-height: auto;       /* NIE 100vh */
  display: block;         /* żadnego flexa */
}


main.auth > .panel{
  width: 100%;                      /* żeby panel nie zrobił się węższy */
}
.captcha-center {
    display: flex;
    justify-content: center;
    margin-top: 14px;
    margin-bottom: 6px;
}

/* lekko uspójnia z panelem */
.captcha-center iframe {
    border-radius: 6px;
}
.ticket-list {
    list-style: none;
    padding: 0;
}

.ticket-list li {
    padding: 10px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.ticket-status {
    float: right;
    font-size: 12px;
}

.ticket-status.open {
    color: #4caf50;
}

.ticket-status.closed {
    color: #f44336;
}

.select, .textarea {
    width: 100%;
    margin-bottom: 10px;
}
/* SUPPORT layout */
.support-wrap { max-width: 920px; margin: 0 auto; }
.support-panel { padding: 18px; }

/* mniej przebijania tła */
.support-card,
.ticket-row,
.msg {
  background: rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(0,0,0,.35);
}

.support-card { padding: 12px 14px; margin-top: 12px; }
.support-card.solid { background: rgba(0,0,0,.65); }
.support-card.ok { border-color: rgba(120,255,180,.28); }
.support-card.error { border-color: rgba(255,120,120,.35); }

.support-header {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.support-actions { display:flex; gap:10px; }

/* 2 kolumny na listach */
.support-grid {
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:16px;
  margin-top: 14px;
}
@media (max-width: 860px){
  .support-grid { grid-template-columns: 1fr; }
}

.ticket-list { display:flex; flex-direction:column; gap:10px; margin-top: 10px; }

.ticket-row {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding: 12px 14px;
  text-decoration:none;
  color: inherit;
  transition: transform .08s ease, border-color .08s ease;
}
.ticket-row:hover { transform: translateY(-1px); border-color: rgba(255,255,255,.18); }
.ticket-row.closed { opacity: .85; }

.ticket-title { display:flex; align-items:center; gap:10px; font-weight: 600; }
.ticket-meta { display:flex; gap:12px; align-items:center; font-size: 12px; }
.status-open { opacity:.95; }
.status-closed { opacity:.85; }

.muted { opacity: .75; }

/* badge type (ładne kolory) */
.badge {
  display:inline-flex;
  align-items:center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
}
.badge-bug {
  background: rgba(255,70,70,.18);
  border-color: rgba(255,70,70,.30);
}
.badge-report {
  background: rgba(60,140,255,.18);
  border-color: rgba(60,140,255,.30);
}
.badge-question {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.18);
}

/* New ticket type pills */
.type-pills { display:flex; gap:10px; flex-wrap: wrap; margin-top: 6px; }
.pill {
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.35);
  cursor:pointer;
  user-select:none;
  font-weight: 650;
}
.pill input { accent-color: auto; }
.pill.bug { border-color: rgba(255,70,70,.30); background: rgba(255,70,70,.10); }
.pill.report { border-color: rgba(60,140,255,.30); background: rgba(60,140,255,.10); }
.pill.question { border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.08); }

/* większe pole treści */
.textarea-big {
  min-height: 190px;
  resize: vertical;
  line-height: 1.35;
}

/* Ticket body */
.ticket-body { margin-top: 8px; white-space: normal; }

/* Messages */
.messages { display:flex; flex-direction:column; gap:10px; margin-top: 10px; }
.msg { padding: 12px 14px; }
.msg-user { border-left: 3px solid rgba(255,255,255,.18); }
.msg-support { border-left: 3px solid rgba(60,140,255,.35); }
.msg-meta { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.msg-body { margin-top: 8px; }
