/* =========================================
   Reset & Variables & Global Fonts
   ========================================= */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;600;800&display=swap");

*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  --container: 1180px;
  --gutter: clamp(12px, 4vw, 20px);
  --radius: 18px;
  --primary-gradient: linear-gradient(135deg, #ffd60a, #ffc300);
  --primary-gradient-hover: linear-gradient(135deg, #ffc300, #ffaa00);
  --bg-dark: #000814;
  --bg-panel: rgba(0, 0, 0, 0.58);
  --text-main: #f5f5f5;
  --text-highlight: #ffd60a;
}

img, svg, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =========================================
   Body & Layout
   ========================================= */
body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #003366, #000814 60%);
  color: var(--text-main);
  transition: opacity .5s ease, transform .5s ease;
  opacity: 1;
  overflow-x: hidden;
  width: 100%;
  min-height: 100vh;
}

body.fade-out {
  opacity: 0;
  transform: scale(.98);
  pointer-events: none;
}

.page-entry-anim {
  opacity: 0;
  transform: translateY(30px);
  animation: pageSlideUp .8s cubic-bezier(.16, 1, .3, 1) forwards;
}

@keyframes pageSlideUp {
  to { opacity: 1; transform: translateY(0); }
}

.page-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4.5rem;
  width: min(var(--container), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

/* =========================================
   Header & Navigation
   ========================================= */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: .8rem 1rem;
  padding-left: calc(var(--gutter) + env(safe-area-inset-left));
  padding-right: calc(var(--gutter) + env(safe-area-inset-right));
  background: linear-gradient(to bottom, rgba(0, 8, 20, .92), rgba(0, 8, 20, .6));
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, .55);
}

.header-inner {
  width: min(var(--container), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
  min-width: 0;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1 1 auto;
}

.brand a {
  display: flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
}

.brand-logo-img {
  display: block;
  width: auto !important;
  height: auto !important;
  max-height: 40px !important;
  max-width: 100% !important;
  object-fit: contain !important;
  object-position: left center !important;
  padding-right: 10px;
  transform: translateZ(0);
}

/* Nav konténer */
.nav, .topnav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  flex: 0 0 auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Általános navigációs linkek (Belépés, Fórum, stb.) */
.nav-links a {
  text-decoration: none;
  font-size: .9rem;
  font-weight: 600;
  padding: .5rem 1rem;
  border-radius: 999px;
  white-space: nowrap;
  transition: all .2s ease;
  
  /* Alapértelmezett stílus: átlátszó, világos kék szöveg */
  color: #e0f0ff;
  background: transparent;
  border: 1px solid rgba(224, 240, 255, 0.15);
}

.nav-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

/* Kiemelt CTA Gomb (Válj Ügyfelünkké!) */
.nav-links a.nav-cta {
  background-image: var(--primary-gradient); /* Itt a javítás: gradient */
  color: #001d3d !important;
  font-weight: 700;
  border: 1px solid transparent !important; /* Fontos a border fix */
  padding: .5rem 1.2rem;
  box-shadow: 0 4px 15px rgba(255, 214, 10, .3);
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* CTA Hover - Villogás javítva */
.nav-links a.nav-cta:hover {
  background-image: var(--primary-gradient-hover); /* Gradientből gradientbe */
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 214, 10, .45);
  color: #001021 !important;
  border-color: transparent !important;
}

/* Mobil menü gomb */
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(0, 0, 0, .18);
  border: 1px solid rgba(255, 255, 255, .12);
  color: #ffd60a;
  font-size: 18px;
  backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  cursor: pointer;
}

.nav-drawer {
  display: none;
}

/* =========================================
   Landing Page
   ========================================= */
body.landing-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.landing-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.landing-hero {
  max-width: 900px;
  width: 100%;
}

.animated-title {
  font-size: clamp(34px, 6.4vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin-bottom: clamp(16px, 4vw, 28px);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease forwards;
}

.animated-title .highlight {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease .5s forwards;
}

@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

.intro-text {
  font-size: clamp(15px, 2.7vw, 19px);
  line-height: 1.65;
  color: #e0f0ff;
  margin-bottom: clamp(18px, 5vw, 36px);
  opacity: .9;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.intro-text strong {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

.hero-stats {
  display: flex;
  gap: clamp(10px, 3vw, 18px);
  margin-top: clamp(14px, 4vw, 28px);
  flex-wrap: wrap;
  justify-content: center;
}

.stat-box {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 14px;
  padding: clamp(12px, 3.2vw, 18px) clamp(14px, 3.6vw, 22px);
  flex: 1 1 170px;
  min-width: 0;
  text-align: center;
  backdrop-filter: blur(5px);
  transition: transform .2s, background .2s, border-color .2s;
}

.stat-box:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, .08);
}

.stat-number {
  display: block;
  font-size: clamp(22px, 5vw, 32px);
  font-weight: 800;
  margin-bottom: .35rem;
  line-height: 1;
}

.stat-label {
  font-size: clamp(12px, 2.6vw, 14px);
  color: #cfd6df;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.stat-box.stat-total .stat-number { color: #e0f0ff; }
.stat-box.stat-active .stat-number { color: #ffd60a; text-shadow: 0 0 15px rgba(255, 214, 10, .3); }
.stat-box.stat-closed .stat-number { color: #2ecc71; }

.cta-btn {
  font-size: 1.1rem;
  padding: 1rem 2rem;
  background-image: var(--primary-gradient);
  color: #001d3d;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  display: inline-block;
  transition: transform .2s ease, box-shadow .2s ease;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.cta-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 0 20px rgba(255, 214, 10, .35);
  background-image: var(--primary-gradient-hover);
}

/* =========================================
   Hero & Internal Pages
   ========================================= */
.hero-strip { margin-bottom: 1.8rem; }
.hero-text h1 { font-size: 1.9rem; margin: 0 0 .75rem; }
.hero-text p { max-width: 720px; opacity: .82; font-size: .95rem; }
.hero-actions { margin-top: 1.4rem; display: flex; gap: .9rem; flex-wrap: wrap; }

/* =========================================
   Dashboard & Tabs
   ========================================= */
.dashboard {
  background: var(--bg-panel);
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .8);
  padding: clamp(14px, 3.6vw, 22px);
  backdrop-filter: blur(16px);
}

.dash-tabs-wrap { position: relative; display: flex; align-items: center; gap: 10px; }

.dashboard-tabs {
  display: flex;
  gap: .75rem;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  padding-bottom: .8rem;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  width: 100%;
}

.dashboard-tabs::-webkit-scrollbar { display: none; }

.dashboard-tab {
  background: 0 0;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: .45rem 1.1rem;
  font-size: .82rem;
  cursor: pointer;
  color: #e0f0ff;
  opacity: .8;
  flex-shrink: 0;
  transition: all .2s ease;
}

.dashboard-tab:hover {
    background: rgba(255,255,255,0.05);
    opacity: 1;
}

.dashboard-tab.active {
  background: rgba(0, 0, 0, .7);
  border-color: rgba(255, 214, 10, .7);
  color: #ffd60a;
  opacity: 1;
}

/* Dashboard Toggle (Mobile) */
.dash-tabs-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(0, 0, 0, .22);
  border: 1px solid rgba(255, 255, 255, .12);
  color: #ffd60a;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .45);
  backdrop-filter: blur(14px);
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.dash-tabs-toggle-dots { font-size: 20px; line-height: 1; transform: translateY(-1px); }

.dash-tabs-toggle:hover {
  background: rgba(0, 0, 0, .32);
  border-color: rgba(255, 214, 10, .22);
}

.dash-tabs-toggle:active { transform: translateY(1px); }
.dash-tabs-drawer { display: none; }

/* Panels */
.dashboard-panels { margin-top: .6rem; }
.tab-panel { display: none; opacity: 0; transform: translateY(6px); }
.tab-panel.active { display: block; opacity: 1; transform: translateY(0); }
.tab-panel.fade-in { animation: tabFadeIn .25s ease-out forwards; }

@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   Forum Components
   ========================================= */
.forum-intro h2 { margin-top: 0; margin-bottom: .35rem; }
.forum-lead { margin-top: 0; margin-bottom: 1.2rem; opacity: .85; font-size: .92rem; }

.forum-list {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1.2fr);
  gap: 1.2rem;
}

.forum-item {
  background: rgba(0, 0, 0, .55);
  border-radius: 14px;
  padding: clamp(14px, 3.2vw, 18px);
  border: 1px solid rgba(255, 255, 255, .08);
  font-size: .9rem;
}

.forum-item-highlight {
  border-color: rgba(255, 214, 10, .7);
  box-shadow: 0 0 25px rgba(255, 214, 10, .3);
}

.forum-item-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: .4rem; gap: 10px; flex-wrap: wrap; }
.forum-author { font-weight: 600; font-size: .85rem; }
.forum-rating { color: #ffd60a; font-size: .85rem; white-space: nowrap; }
.forum-item p { margin: 0; opacity: .9; word-break: break-word; }

.forum-review-form { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .12); }
.forum-review-form h3 { margin-top: 0; margin-bottom: .8rem; }
.forum-email { font-size: .75rem; opacity: .75; }

.forum-moderation {
  margin-top: 1.2rem;
  padding-top: .8rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .5rem;
  justify-content: flex-end;
}

.forum-author-block { display: flex; align-items: center; gap: 10px; }
.forum-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.forum-avatar img { width: 100%; height: 100%; object-fit: cover; }
.forum-avatar-placeholder { font-size: 1.2rem; color: rgba(255, 255, 255, .4); }

/* =========================================
   Profile & Users
   ========================================= */
.profile-grid { display: flex; justify-content: space-between; gap: 1.5rem; margin-top: .7rem; }
.profile-actions { display: flex; flex-direction: column; gap: .5rem; }

.avatar-container {
  width: 120px; height: 120px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, .1);
  border: 2px solid rgba(255, 214, 10, .5);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease;
  position: relative;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.avatar-container:hover { transform: scale(1.05); border-color: #ffd60a; }
.avatar-container img { width: 100%; height: 100%; object-fit: cover; }
.avatar-placeholder { font-size: 3rem; color: rgba(255, 255, 255, .3); }

/* User List */
.user-list-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.user-card-simple {
  background: rgba(255, 255, 255, .05);
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .08);
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease;
}
.user-card-simple.role-ceo { border: 1px solid #ffd60a; box-shadow: 0 0 15px rgba(255, 214, 10, .15); }
.user-card-simple.role-admin { border: 1px solid #e74c3c; box-shadow: 0 0 10px rgba(231, 76, 60, .15); }

.user-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: .5rem; gap: 10px; }
.user-role-badge { font-size: .7rem; text-transform: uppercase; padding: 2px 8px; border-radius: 8px; font-weight: 700; }
.role-ceo .user-role-badge { background: rgba(255, 214, 10, .2); color: #ffd60a; }
.role-admin .user-role-badge { background: rgba(231, 76, 60, .2); color: #e74c3c; }

.role-user-row {
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(255, 255, 255, .05);
  padding: .8rem 1rem;
  border-radius: 10px;
  margin-bottom: .5rem;
  border: 1px solid rgba(255, 255, 255, .05);
  flex-wrap: wrap;
  gap: 10px;
}
.role-user-info { display: flex; flex-direction: column; gap: .2rem; }
.user-name-block { display: flex; align-items: baseline; gap: .5rem; }
.user-display-name { font-weight: 600; color: #e0f0ff; font-size: .95rem; }
.user-username { font-size: .8rem; color: #ffd60a; opacity: .8; }
.user-meta { font-size: .8rem; color: #ccc; display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; }
.user-banned-badge { background: rgba(231, 76, 60, .2); color: #e74c3c; padding: 2px 6px; border-radius: 6px; font-size: .75rem; border: 1px solid rgba(231, 76, 60, .4); }
.role-user-actions { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.role-select { padding: .3rem .5rem; border-radius: 8px; background: #001427; color: #fff; border: 1px solid rgba(255, 255, 255, .2); font-size: .85rem; }

/* =========================================
   Inputs & Buttons
   ========================================= */
.search-group {
  display: flex; align-items: center; gap: 12px; width: 100%;
  margin-top: 10px; margin-bottom: 20px; position: static; flex-wrap: wrap;
}
.search-group input {
  flex: 1; min-width: 0; height: 50px; padding: 12px 20px;
  border-radius: 25px; border: 1px solid #2a3b4d;
  background: #0b1621; color: #fff; outline: none; font-size: 1rem;
  transition: border-color .25s ease, box-shadow .25s ease;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, .3);
}
.search-group input:focus {
  border-color: #ffd60a;
  box-shadow: 0 0 0 3px rgba(255, 214, 10, .15), inset 0 2px 6px rgba(0, 0, 0, .3);
}
.search-group input::placeholder { color: rgba(255, 255, 255, .45); }

.search-group button {
  height: 50px; padding: 0 25px; border: none; border-radius: 25px;
  background: var(--primary-gradient);
  color: #001d3d; font-weight: 700; font-size: 1rem;
  cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .3);
  white-space: nowrap; position: static; transform: none; margin: 0;
}
.search-group button:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 6px 15px rgba(255, 214, 10, .4);
}
.search-group button:active { transform: translateY(0); box-shadow: 0 2px 5px rgba(0, 0, 0, .3); }

.btn-primary {
  display: inline-block;
  padding: .75rem 1.5rem;
  border-radius: 999px;
  background-image: var(--primary-gradient);
  color: #001d3d;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  backface-visibility: hidden;
  transform: translateZ(0);
}
.btn-primary:hover {
    background-image: var(--primary-gradient-hover);
    box-shadow: 0 4px 12px rgba(255,214,10,0.3);
}

.btn-ghost {
  background: 0 0;
  color: #f5f5f5;
  border-radius: 999px;
  padding: .65rem 1.3rem;
  border: 1px solid rgba(245, 245, 245, .3);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.btn-ghost:hover {
    background: rgba(255,255,255,0.1);
}

.btn-sm { font-size: .8rem; padding: .4rem .9rem; }
.btn-ghost.btn-xs { padding: 4px 8px; border: 1px solid #444; background: #222; color: #f5f5f5; font-size: 12px; border-radius: 6px; cursor: pointer; transition: .2s; }
.btn-ghost.btn-xs:hover { background: #333; }
.btn-danger { transition: background .2s ease; }
.btn-danger:hover { background: rgba(231, 76, 60, .15); }
.btn-report { color: #e74c3c !important; font-size: 1rem; margin-right: 5px; }
.btn-report:hover { color: #ff6b6b !important; }

.text-role-ceo { color: #ffd60a !important; font-weight: 700; text-shadow: 0 0 10px rgba(255, 214, 10, .25); }
.text-role-admin { color: #ff6b6b !important; font-weight: 700; }
.text-role-client { color: #2ecc71 !important; }

/* =========================================
   Modals & Toast
   ========================================= */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0, 0, 0, .6);
  display: flex; align-items: center; justify-content: center;
  z-index: 2000; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .25s ease, visibility .25s ease;
  padding: var(--gutter);
}
.modal-backdrop.active { opacity: 1; visibility: visible; pointer-events: auto; }

.modal-card {
  background: #001427;
  padding: clamp(14px, 4vw, 22px);
  border-radius: var(--radius);
  width: 100%;
  max-width: 520px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .8);
  transform: translateY(10px) scale(.96);
  opacity: 0;
  transition: transform .25s ease, opacity .25s ease;
  position: relative;
  max-height: min(90vh, 760px);
  overflow-y: auto;
}
.modal-backdrop.active .modal-card { transform: translateY(0) scale(1); opacity: 1; }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.modal-header h2 { margin: 0; font-size: 1.4rem; }
#report-modal .modal-card { border: 1px solid #e74c3c; box-shadow: 0 0 20px rgba(231, 76, 60, .2); }

.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: .35rem; font-size: .85rem; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: .6rem .7rem; border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .15); background: rgba(0, 0, 0, .4);
  color: #f5f5f5; font-size: 16px; box-sizing: border-box;
}
.form-group textarea { resize: vertical; max-height: 200px; min-height: 96px; }
.form-group small { font-size: .7rem; opacity: .7; }

.toast-container { position: fixed; top: 20px; right: 20px; z-index: 99999; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: rgba(0, 20, 40, .95); color: #fff; padding: 12px 20px;
  border-radius: 8px; border-left: 4px solid #ffd60a;
  box-shadow: 0 5px 15px rgba(0, 0, 0, .5); font-size: .9rem;
  opacity: 0; transform: translateX(20px); animation: slideIn .3s forwards;
  display: flex; align-items: center; gap: 10px;
}
.toast.success { border-color: #2ecc71; }
.toast.error { border-color: #e74c3c; }

@keyframes slideIn { to { opacity: 1; transform: translateX(0); } }
@keyframes fadeOut { to { opacity: 0; transform: translateX(20px); } }

/* =========================================
   Tickets & Ratings
   ========================================= */
.star-rating { display: inline-flex; gap: 5px; font-size: 2rem; cursor: pointer; color: rgba(255, 255, 255, .2); transition: color .2s ease; }
.star-rating .star { transition: transform .2s ease, color .2s ease; }
.star-rating .star:hover { transform: scale(1.2); }
.star-rating .star.active { color: #ffd60a; text-shadow: 0 0 10px rgba(255, 214, 10, .4); }
.rating-text { font-size: .9rem; color: #ffd60a; margin-top: .5rem; font-weight: 600; min-height: 1.2em; }

.ticket-list { display: flex; flex-direction: column; gap: .9rem; margin-top: .8rem; }
.ticket-item { background: rgba(0, 0, 0, .55); border-radius: 12px; padding: .8rem 1rem; border: 1px solid rgba(255, 255, 255, .08); font-size: .85rem; }
.ticket-item.clickable-ticket { cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease; position: relative; }
.ticket-item.clickable-ticket:hover { transform: translateY(-2px); box-shadow: 0 6px 15px rgba(0, 0, 0, .4); background-color: rgba(0, 0, 0, .75); border-color: rgba(255, 214, 10, .3); }
.ticket-item-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: .4rem; gap: 10px; flex-wrap: wrap; }
.ticket-subject { font-weight: 600; }
.ticket-preview { font-size: .9rem; color: #ccc; margin-top: .6rem; font-style: italic; }
.ticket-status { display: inline-block; font-size: .75rem; font-weight: 700; padding: .35rem .8rem; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; border: 1px solid transparent; }
.ticket-status.status-pending { background-color: rgba(255, 214, 10, .2); color: #ffd60a; border-color: rgba(255, 214, 10, .5); }
.ticket-status.status-accepted { background-color: rgba(46, 204, 113, .2); color: #2ecc71; border-color: rgba(46, 204, 113, .5); }
.ticket-status.status-rejected { background-color: rgba(231, 76, 60, .2); color: #e74c3c; border-color: rgba(231, 76, 60, .5); }
.ticket-status.status-closed { background-color: rgba(149, 165, 166, .2); color: #95a5a6; border-color: rgba(149, 165, 166, .5); }

.ticket-actions-modal { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .1); }
.ticket-actions-modal h4 { margin-top: 0; margin-bottom: .8rem; font-size: .9rem; opacity: .9; color: #ffd60a; }
.ticket-actions button { padding: .4rem .9rem; border-radius: 999px; font-size: .8rem; font-weight: 600; cursor: pointer; transition: all .2s ease-in-out; border: 1px solid transparent; background-color: transparent; margin-right: .5rem; margin-bottom: .5rem; }
.ticket-actions button[data-ticket-action="pending"] { color: #ffd60a; border-color: rgba(255, 214, 10, .4); }
.ticket-actions button[data-ticket-action="pending"]:hover { background-color: rgba(255, 214, 10, .15); }
.ticket-actions button[data-ticket-action="accepted"] { color: #2ecc71; border-color: rgba(46, 204, 113, .4); }
.ticket-actions button[data-ticket-action="accepted"]:hover { background-color: rgba(46, 204, 113, .15); }
.ticket-actions button[data-ticket-action="rejected"] { color: #e74c3c; border-color: rgba(231, 76, 60, .4); }
.ticket-actions button[data-ticket-action="rejected"]:hover { background-color: rgba(231, 76, 60, .15); }
.ticket-actions button[data-ticket-action="closed"] { color: #95a5a6; border-color: rgba(149, 165, 166, .4); }
.ticket-actions button[data-ticket-action="closed"]:hover { background-color: rgba(149, 165, 166, .15); }

/* =========================================
   Chat Widget & Window
   ========================================= */
.chat-icon-btn { background: 0 0; border: none; cursor: pointer; font-size: 1.2rem; color: #e0f0ff; transition: color .2s, transform .2s; padding: 0; }
.chat-icon-btn:hover { color: #ffd60a; transform: scale(1.08); }
.chat-status-dot { height: 8px; width: 8px; background-color: #2ecc71; border-radius: 50%; display: inline-block; margin-right: 5px; }

.chat-widget {
  position: fixed; right: 2rem; bottom: 2rem; width: 300px; max-height: 360px;
  background: rgba(0, 0, 0, .8); border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .9); overflow: hidden; z-index: 1000;
  display: flex; flex-direction: column; border: 1px solid rgba(255, 255, 255, .1);
}
.chat-widget.collapsed { height: auto; }
.chat-widget.collapsed .chat-body { display: none; }
.chat-header {
  display: flex; justify-content: space-between; align-items: center; padding: .55rem .85rem;
  background: linear-gradient(135deg, #001d3d, #003566); border-bottom: 1px solid rgba(255, 255, 255, .4);
  cursor: pointer; user-select: none;
}
.chat-toggle { background: 0 0; border: none; color: #f5f5f5; cursor: pointer; font-size: 1rem; }
.chat-body { padding: 0; max-height: 300px; overflow-y: auto; background: #000814; }

.widget-chat-list { list-style: none; margin: 0; padding: 0; }
.widget-chat-item { display: flex; align-items: center; gap: 10px; padding: 10px 15px; cursor: pointer; border-bottom: 1px solid rgba(255, 255, 255, .05); transition: background .2s; position: relative; }
.widget-chat-item:hover { background: rgba(255, 255, 255, .1); }
.widget-avatar { position: relative; width: 36px; height: 36px; border-radius: 50%; background: #333; display: flex; align-items: center; justify-content: center; }
.widget-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.status-dot { position: absolute; bottom: 0; right: 0; width: 10px; height: 10px; border-radius: 50%; border: 2px solid #001427; }
.status-dot.online { background-color: #2ecc71; }
.status-dot.offline { background-color: #95a5a6; }
.widget-name { font-size: .9rem; font-weight: 600; color: #fff; }
.widget-unread-dot { width: 8px; height: 8px; background: #e74c3c; border-radius: 50%; position: absolute; top: 12px; right: 12px; box-shadow: 0 0 5px #e74c3c; }

.status-toggle-wrapper { display: flex; align-items: center; background: rgba(0, 0, 0, .3); padding: 5px 10px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, .1); }
.switch { position: relative; display: inline-block; width: 40px; height: 20px; margin-right: 8px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; border-radius: 20px; }
.slider:before { position: absolute; content: ""; height: 16px; width: 16px; left: 2px; bottom: 2px; background-color: #fff; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: #2ecc71; }
input:checked + .slider:before { transform: translateX(20px); }

/* Chat Window */
.chat-window {
  position: fixed !important; bottom: 20px !important; right: 340px;
  width: 300px; height: 420px; background: #001427;
  border-radius: 12px 12px 0 0; box-shadow: 0 -5px 25px rgba(0, 0, 0, .8);
  display: flex; flex-direction: column; z-index: 1000;
  border: 1px solid rgba(255, 214, 10, .2); overflow: hidden;
  transition: transform .4s cubic-bezier(.19, 1, .22, 1), right .4s ease;
  animation: chatPopUp .4s cubic-bezier(.175, .885, .32, 1.275) forwards;
  transform-origin: bottom center;
}
@keyframes chatPopUp { 0% { opacity: 0; transform: translateY(20px) scale(.9); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
.chat-window.minimized { transform: translateY(370px) !important; }
.chat-window.minimized:hover { transform: translateY(365px) !important; }
.chat-window-header {
  padding: 10px 12px; background: linear-gradient(135deg, #001d3d, #002845);
  border-bottom: 1px solid rgba(255, 255, 255, .08); display: flex;
  justify-content: space-between; align-items: center; cursor: pointer; flex-shrink: 0;
}
.chat-window.has-unread .chat-window-header { background: linear-gradient(135deg, #2c3e50, #c0392b); }
.unread-badge-window { background: #e74c3c; color: #fff; font-size: .7rem; padding: 2px 6px; border-radius: 10px; margin-left: auto; margin-right: 5px; }
.chat-window-controls { display: flex; gap: 8px; }
.chat-window-controls button { background: 0 0; border: none; color: #8da2b5; font-size: 1.2rem; cursor: pointer; padding: 0 4px; transition: color .2s; line-height: 1; }
.chat-window-controls button:hover { color: #fff; }
#chat-minimize-btn { font-weight: 700; position: relative; top: -3px; }
.chat-partner-info { display: flex; align-items: center; gap: 12px; }
.chat-partner-avatar { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; background: #333; flex-shrink: 0; border: 2px solid rgba(255, 255, 255, .1); }
.chat-partner-avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat-partner-avatar span { width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; font-size: 1.2rem; color: #888; }
#chat-header-name { font-size: .95rem; font-weight: 700; color: #fff; letter-spacing: .02em; }
.chat-messages { flex: 1; padding: 16px; overflow-y: auto; background: #000b16; display: flex; flex-direction: column; gap: 12px; }
.chat-bubble { max-width: 82%; padding: 10px 14px; border-radius: 18px; font-size: .9rem; line-height: 1.45; position: relative; word-wrap: break-word; color: #e0e0e0; box-shadow: 0 2px 5px rgba(0, 0, 0, .2); display: flex; flex-direction: column; min-width: 120px; overflow-wrap: anywhere; white-space: pre-wrap; }
.chat-bubble-row { display: flex; align-items: flex-end; gap: 8px; max-width: 85%; }
.chat-bubble-row.me { align-self: flex-end; flex-direction: row-reverse; }
.chat-bubble-row.other { align-self: flex-start; }
.bubble-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: #333; flex-shrink: 0; border: 1px solid rgba(255, 255, 255, .1); }
.bubble-name { display: block; margin-bottom: 4px; font-size: .75rem; font-weight: 700; }
.bubble-time { font-size: .65rem; opacity: .6; margin-left: auto; margin-top: 5px; text-align: right; }
.chat-bubble-row.me .chat-bubble { background: #0b1e33 !important; border: 1px solid #ffd60a !important; color: #fff !important; border-bottom-right-radius: 4px; text-shadow: none; }
.chat-bubble-row.other .chat-bubble { background: #1a2c3f; border: 1px solid rgba(255, 255, 255, .05); border-bottom-left-radius: 4px; color: #e0e0e0; }
.chat-input-area { padding: 12px; background: #001427; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.chat-form-dynamic { display: flex; gap: 10px; align-items: center; width: 100%; position: static; }
.chat-form-dynamic textarea { flex: 1; width: auto; padding: 12px 15px; height: 48px; border-radius: 24px; resize: none; background: #0b1621; color: #fff; border: 1px solid #2a3b4d; box-sizing: border-box; outline: none; font-size: .9rem; transition: border-color .2s; }
.chat-form-dynamic textarea:focus { border-color: #ffd60a; }
.chat-form-dynamic button { position: static; transform: none; top: auto; right: auto; width: 40px; height: 40px; border-radius: 50%; background: #ffd60a; color: #001d3d; border: none; cursor: pointer; flex-shrink: 0; display: flex; align-items: center; justify-content: center; margin: 0; transition: transform .2s, background-color .2s, box-shadow .2s; }
.chat-form-dynamic button:hover { background: #ffcc00; transform: scale(1.05); box-shadow: 0 0 15px rgba(255, 214, 10, .4); }

/* =========================================
   Media Queries
   ========================================= */
@media (max-width: 980px) {
  .page-main { padding: 1.5rem 1rem 3.5rem; }
  .nav-links { gap: 8px; }
}

@media (max-width: 900px) {
  .forum-list { grid-template-columns: minmax(0, 1fr); }
  .profile-grid { flex-direction: column; }
  .chat-widget { right: 1rem; bottom: 1rem; width: 220px; }
}

@media (max-width: 860px) {
  .brand-logo-img { max-height: 34px !important; }
  .nav-links { display: none !important; } /* Rejtsd el a teljes link konténert */
  .nav-toggle { display: inline-flex !important; }
  
  .nav-drawer {
    display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .55);
    opacity: 0; pointer-events: none; transition: opacity .2s ease; z-index: 3000;
  }
  .nav-drawer.is-open { opacity: 1; pointer-events: auto; }
  
  .nav-drawer-inner {
    position: absolute; top: 70px; left: var(--gutter); right: var(--gutter);
    border-radius: 18px; padding: 14px;
    background: rgba(0, 8, 20, .88); border: 1px solid rgba(255, 255, 255, .12);
    backdrop-filter: blur(18px); box-shadow: 0 24px 70px rgba(0, 0, 0, .55);
    display: flex; flex-direction: column; gap: 10px; /* Grid helyett flex */
  }
  .nav-drawer-inner a {
    width: 100%; text-align: center; padding: .8rem 1rem;
    color: #e0f0ff; text-decoration: none; border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.1);
  }
  .nav-drawer-inner a.nav-cta {
     background-image: var(--primary-gradient);
     color: #001d3d !important;
     border: none !important;
  }

  .dashboard-tabs { display: none !important; }
  .dash-tabs-toggle { display: inline-flex !important; position: static !important; }
  
  .dash-tabs-drawer {
    display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .55);
    opacity: 0; pointer-events: none; transition: opacity .2s ease; z-index: 3200;
  }
  .dash-tabs-drawer.is-open { opacity: 1; pointer-events: auto; }
  
  .dash-tabs-drawer-inner {
    position: absolute; top: 70px; left: var(--gutter); right: var(--gutter);
    border-radius: 18px; padding: 14px;
    background: rgba(0, 8, 20, .88); border: 1px solid rgba(255, 255, 255, .12);
    backdrop-filter: blur(18px); box-shadow: 0 24px 70px rgba(0, 0, 0, .55);
    display: grid; gap: 10px;
  }
  .dash-tabs-drawer-inner .dashboard-tab { width: 100%; text-align: center; padding: .7rem 1rem; border-radius: 999px; }

  .landing-main { align-items: flex-start; padding: clamp(16px, 5vw, 28px); }
  .landing-hero { max-width: 680px; }
  .animated-title { font-size: clamp(30px, 8vw, 44px); line-height: 1.08; }
  .animated-title br { display: none; }
  .intro-text { font-size: clamp(15px, 3.5vw, 18px); line-height: 1.7; }
}

@media (max-width: 560px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-ghost { width: 100%; text-align: center; }
  .hero-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
  .hero-stats .stat-box:nth-child(3) { grid-column: 1/-1; }
  .stat-label { font-size: 12px; letter-spacing: .06em; }
  .modal-header h2 { font-size: 1.2rem; }
}

@media (max-width: 768px) {
  .chat-window {
    right: 0 !important; left: 0 !important; width: 100% !important;
    height: 60vh; bottom: 0 !important; border-radius: 16px 16px 0 0; margin: 0;
  }
  .chat-window.minimized { transform: translateY(calc(60vh - 50px)) !important; }
}

@media (max-width: 380px) {
  .animated-title { font-size: 32px; }
  .intro-text { font-size: 15px; }
}

@supports (-webkit-touch-callout: none) {
  .brand-logo-img { transform: scale(.94) translateZ(0) !important; transform-origin: left center !important; }
}