:root{--bg:#f0f4ff;--card:#ffffff;--card2:#f1f4fb;--text:#0b1220;--muted:#556074;--line:#d7deea;--primary:#2563eb;--danger:#dc2626;}
*{box-sizing:border-box}
body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial;background:linear-gradient(180deg,var(--bg) 0%, #eef3ff 100%);color:var(--text)}
a{color:var(--accent);text-decoration:none}
.container{max-width:980px;margin:0 auto;padding:24px}
.header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}
.brand{font-weight:800;letter-spacing:.2px;font-size:20px}
.badge{display:inline-flex;align-items:center;gap:8px;padding:6px 10px;border-radius:999px;background:rgba(255,255,255,.08);color:var(--muted);font-size:12px}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}
.card{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.10);border-radius:16px;padding:16px;box-shadow:0 10px 30px rgba(0,0,0,.25)}
.card h3{margin:0 0 8px 0}
.price{font-size:28px;font-weight:800;margin:8px 0}
.muted{color:var(--muted)}
.btn{
  border:1px solid var(--line);
  background: rgba(241,244,251,1);
  color:var(--text);
  padding:0 12px;
  height:40px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border-radius:12px;
  cursor:pointer;
  font-weight:700;
  line-height:1;
  white-space:nowrap;
}
.btn.secondary{background:rgba(255,255,255,.10);color:var(--text);border:1px solid rgba(255,255,255,.16)}
.btn:disabled{opacity:.55;cursor:not-allowed}
.notice{margin-top:16px;padding:12px 14px;border-radius:12px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.10)}
.notice.ok{border-color:rgba(67,209,158,.35)}
.notice.bad{border-color:rgba(255,91,91,.35)}
.row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.small{font-size:12px}
input[type="text"],input[type="password"],input[type="email"]{width:100%;padding:12px 12px;border-radius:12px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);color:var(--text)}
label{display:block;font-size:12px;color:var(--muted);margin:10px 0 6px}
.footer{margin-top:24px;color:var(--muted);font-size:12px}


.tm-disabled{opacity:.6;cursor:not-allowed}


/* --- AUTH LIGHT THEME (login oldal ne legyen fekete) --- */
body.auth-light{
  --bg:#f4f6fb;
  --card:#ffffff;
  --text:#0b1020;
  --muted:#44506a;
  --border:rgba(0,0,0,.12);
}
body.auth-light .pill{background:rgba(0,0,0,.06);color:rgba(0,0,0,.7);border-color:rgba(0,0,0,.12)}
body.auth-light a{color:#1b4dff}
body.auth-light #loginBox input{
  background:#fff !important;
  color:#111 !important;
  border:1px solid rgba(0,0,0,.15) !important;
}


.inp{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);color:#fff;border-radius:10px;padding:10px 12px;outline:none}
.inp:focus{border-color:rgba(120,160,255,.6)}
.inp.right{text-align:right}
.small{font-size:12px}
.tm-table th,.tm-table td{padding:10px 8px;border-bottom:1px solid rgba(255,255,255,.08)}
.btn.tiny{padding:6px 10px;border-radius:10px}
.btn.danger{background:rgba(255,80,80,.18);border:1px solid rgba(255,80,80,.35)}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media(max-width:900px){.grid2{grid-template-columns:1fr}}


/* ===== LIGHT THEME OVERRIDES (white background, black text) ===== */
:root{
  --bg:#ffffff;
  --card:#ffffff;
  --card2:#f6f8fc;
  --text:#111827;
  --muted:#4b5563;
  --line:#e5e7eb;
  --primary:#2563eb;
}
body{background:#ffffff !important;color:var(--text) !important;}
.container, .wrap{background:transparent !important;}

.card{
  background: var(--card) !important;
  border:1px solid var(--line) !important;
  box-shadow:0 10px 25px rgba(15,23,42,.08) !important;
}
.note{
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  color: var(--text) !important;
}
.muted{color:var(--muted) !important;}

.inp, input, select, textarea{
  background:#ffffff !important;
  color:var(--text) !important;
  border:1px solid #cbd5e1 !important;
}
.inp::placeholder, input::placeholder, textarea::placeholder{
  color:#94a3b8 !important;
}
.inp:focus, input:focus, select:focus, textarea:focus{
  outline:none !important;
  border-color:#2563eb !important;
  box-shadow:0 0 0 3px rgba(37,99,235,.15) !important;
}

.tm-table{color:var(--text) !important;}
.tm-table th,.tm-table td{
  border-bottom:1px solid #e5e7eb !important;
  color:var(--text) !important;
}
.tm-table thead th{
  background:#f1f5f9 !important;
  color:#0f172a !important;
}

.btn{
  background:#2563eb !important;
  color:#ffffff !important;
  border:1px solid #1d4ed8 !important;
}
.btn.secondary, .btn.ghost{
  background:#f1f5f9 !important;
  color:#0f172a !important;
  border:1px solid #cbd5e1 !important;
}
.btn:hover{filter:brightness(.98)}
.btn.secondary:hover, .btn.ghost:hover{background:#e8eef8 !important;}

.btn.logout{
  width:auto !important;
  padding:10px 14px !important;
  border-radius:12px !important;
  background:#ffffff !important;
  color:#0f172a !important;
  border:1px solid #cbd5e1 !important;
  box-shadow:0 8px 16px rgba(15,23,42,.08) !important;
}
.btn.logout:hover{background:#f8fafc !important;}

.top .title{
  display:flex;
  align-items:center;
  gap:12px;
}


/* Subscription page top actions */
.top-actions{display:flex;gap:10px;align-items:center;justify-content:flex-end}
.btn.small{width:auto;padding:8px 12px;border-radius:10px;font-size:14px}

/* FORCE REMOVE small toggle next to Szoftver */
.toggle, .switch, .plan-toggle { display:none !important; }


/* --- Admin table responsive fix --- */
.table-wrap{
  width:100%;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}
.admin-table{
  min-width:980px;
}
.actions{
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
}
.actions input{max-width:120px;}
@media (max-width: 720px){
  .admin-table{min-width:720px;}
  .actions{
    flex-direction:column;
    align-items:stretch;
  }
  .actions select,
  .actions input,
  .actions button{
    width:100% !important;
    max-width:100% !important;
  }
}
/* --- End admin fix --- */

/* FORCE REMOVE GLOBAL FOOTER / CONTACT */
footer, .footer, .tm-footer, .contact, .kapcsolat {
  display: none !important;
}


/* Legal footer links (global) */
.tm-legal-footer{margin-top:24px;padding:14px 10px;border-top:1px solid rgba(255,255,255,.12);font-size:14px;line-height:1.4;text-align:center;opacity:.9}
.tm-legal-footer a{color:inherit;text-decoration:underline}
.tm-legal-footer a:hover{opacity:.85}
.tm-legal-sep{margin:0 10px;opacity:.6}
@media (max-width:480px){.tm-legal-footer{font-size:13px;padding:12px 8px}}

/* TM Quote status badge */
.tm-status-badge{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:800;padding:4px 10px;border-radius:999px;border:1px solid rgba(0,0,0,.12);white-space:nowrap}
.tm-status-badge[data-status="ajanlat"]{background:rgba(107,114,128,.12)}
.tm-status-badge[data-status="elfogadva"]{background:rgba(22,163,74,.14)}
.tm-status-badge[data-status="folyamatban"]{background:rgba(245,158,11,.16)}
.tm-status-badge[data-status="kesz"]{background:rgba(59,130,246,.14)}
.tm-status-badge[data-status="lezarva"]{background:rgba(17,24,39,.14)}


/* Survey photos */
.tm-photo-grid{display:flex;flex-wrap:wrap;gap:10px}
.tm-photo-thumb{width:96px;height:72px;border:1px solid #e6e8ef;border-radius:10px;overflow:hidden;position:relative;background:#f6f7fb}
.tm-photo-thumb img{width:100%;height:100%;object-fit:cover;display:block}
