/* ============================================================
   BWC CORPORATION — PORTAL STYLE v5.0
   Identity: Black · Yellow · White · Blue
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Montserrat:wght@400;500;600;700;800;900&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg:            #050507;
  --bg2:           #080810;
  --bg3:           #0C0C15;
  --card:          #0F0F1A;
  --card-hover:    #141425;
  --border:        #1A1A2E;
  --border-bright: #24243A;
  --accent:        #FFD200;
  --accent2:       #0066FF;
  --accent-light:  #FFE866;
  --accent-glow:   rgba(255, 210, 0, 0.22);
  --accent-glow2:  rgba(0, 102, 255, 0.15);
  --text:          #F0F0F8;
  --text-muted:    #7070A0;
  --text-dim:      #3A3A58;
  --green:         #22c55e;
  --green-glow:    rgba(34, 197, 94, 0.25);
  --gray:          #505070;
  --red:           #ef4444;
}

body {
  font-family: 'Montserrat', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, .brand-small {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
}

/* ========================================================
   LOGIN — SPLIT LAYOUT
   ======================================================== */

.login-page {
  display: flex;
  min-height: 100vh;
}

/* ── LEFT HERO ── */
.login-hero {
  flex: 1;
  background: #000;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 100vh;
}

.hero-noise {
  position: absolute; inset: 0; z-index: 1; opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat; background-size: 128px;
  pointer-events: none;
}

.hero-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 2;
}

/* Grid lines background */
.login-hero::before {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background-image:
    linear-gradient(rgba(255,210,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,210,0,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 80%);
}

/* Yellow glow orb top-left */
.login-hero::after {
  content: '';
  position: absolute; top: -10%; left: -5%;
  width: 500px; height: 500px; z-index: 1;
  background: radial-gradient(circle, rgba(255,210,0,0.12) 0%, transparent 65%);
  pointer-events: none;
}

.hero-content {
  position: relative; z-index: 3;
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  gap: 0;
  padding: 40px;
}

/* BWC Cat Eyes */
.bwc-eyes-wrap {
  display: flex;
  gap: 28px;
  margin-bottom: 32px;
}

.bwc-eye {
  width: 28px; height: 28px; border-radius: 50%;
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.bwc-eye-y {
  background: #FFD200;
  box-shadow: 0 0 20px rgba(255,210,0,0.9), 0 0 60px rgba(255,210,0,0.4);
  animation: eyePulse 3s ease-in-out infinite;
}
.bwc-eye-b {
  background: #0066FF;
  box-shadow: 0 0 20px rgba(0,102,255,0.9), 0 0 60px rgba(0,102,255,0.4);
  animation: eyePulse 3s ease-in-out infinite 1.5s;
}
.eye-pupil {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(0,0,0,0.6);
}
@keyframes eyePulse {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50%       { transform: scale(1.15); filter: brightness(1.3); }
}

/* Big BWC wordmark */
.bwc-wordmark {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(100px, 14vw, 160px);
  color: #fff;
  letter-spacing: 16px;
  line-height: 0.9;
  background: linear-gradient(160deg, #fff 30%, rgba(255,210,0,0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 40px rgba(255,210,0,0.15));
  animation: wordmarkIn 1s cubic-bezier(0.22,1,0.36,1) both;
}
@keyframes wordmarkIn {
  from { opacity: 0; transform: translateY(30px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.bwc-fullname {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 8px;
  color: var(--accent);
  text-transform: uppercase;
  margin-top: 8px;
  animation: wordmarkIn 1s cubic-bezier(0.22,1,0.36,1) 0.1s both;
}

.bwc-tagline {
  font-size: 12px;
  font-weight: 400;
  color: rgba(255,255,255,0.3);
  letter-spacing: 2px;
  margin-top: 12px;
  animation: wordmarkIn 1s cubic-bezier(0.22,1,0.36,1) 0.2s both;
}

.hero-divider {
  width: 60px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  margin: 32px auto;
  animation: wordmarkIn 1s cubic-bezier(0.22,1,0.36,1) 0.3s both;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
  animation: wordmarkIn 1s cubic-bezier(0.22,1,0.36,1) 0.4s both;
}

.hstat {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.hstat-val {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  color: #fff;
  letter-spacing: 2px;
  line-height: 1;
}
.hstat-lbl {
  font-size: 9px;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.hstat-sep {
  width: 1px; height: 32px;
  background: rgba(255,255,255,0.1);
}

.hero-footer {
  position: absolute; bottom: 28px; left: 0; right: 0;
  text-align: center; z-index: 3;
  font-size: 11px; color: rgba(255,255,255,0.25);
  letter-spacing: 1.5px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}

/* ── RIGHT PANEL ── */
.login-panel {
  flex: 0 0 460px;
  max-width: 100%;
  background: var(--bg);
  border-left: 1px solid var(--border-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
}

/* Top yellow accent line */
.login-panel::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.6;
}

/* Subtle glow top-right */
.login-panel::after {
  content: '';
  position: absolute; top: -80px; right: -80px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(255,210,0,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.login-form-wrap {
  width: 100%; max-width: 360px;
  position: relative; z-index: 1;
  animation: panelIn 0.7s cubic-bezier(0.22,1,0.36,1) 0.2s both;
}
@keyframes panelIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

.form-header { margin-bottom: 36px; }

.form-logo-mark {
  display: flex; gap: 8px; margin-bottom: 20px;
}
.flm-eye {
  width: 10px; height: 10px; border-radius: 50%;
}
.flm-y { background: #FFD200; box-shadow: 0 0 8px #FFD200; }
.flm-b { background: #0066FF; box-shadow: 0 0 8px #0066FF; }

.form-title {
  font-size: 28px; font-weight: 800;
  color: var(--text); line-height: 1.1;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.form-sub {
  font-size: 13px; color: var(--text-muted);
  font-weight: 400; line-height: 1.5;
}

/* Inputs */
.input-group {
  position: relative;
  margin-bottom: 20px;
}

.input-group label {
  display: block;
  font-size: 11px; font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 8px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.input-group input {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border-bright);
  border-radius: 10px;
  padding: 14px 48px 14px 16px;
  color: var(--text);
  font-size: 14px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  outline: none;
}

.input-group input:focus {
  border-color: var(--accent);
  background: rgba(255,210,0,0.04);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.input-group input::placeholder { color: var(--text-dim); }

.input-group input:-webkit-autofill,
.input-group input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px #080810 inset;
  caret-color: var(--text);
}

.toggle-pass {
  position: absolute; right: 14px; bottom: 14px;
  cursor: pointer; opacity: 0.3; color: var(--text-muted);
  transition: opacity 0.2s;
}
.toggle-pass:hover { opacity: 0.9; }

.error-msg {
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.25);
  border-left: 3px solid var(--red);
  color: #FCA5A5;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 16px;
  font-weight: 500;
}

.hidden { display: none !important; }

/* Login button */
.btn-login {
  width: 100%;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 10px;
  padding: 15px;
  font-size: 14px;
  font-weight: 800;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
  margin-top: 8px;
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 4px 24px rgba(255,210,0,0.35);
  text-transform: uppercase;
}
.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255,210,0,0.5);
  filter: brightness(1.05);
}
.btn-login:active   { transform: scale(0.98) translateY(0); }
.btn-login:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-shine {
  position: absolute; top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: skewX(-20deg);
  animation: shine 3.5s ease-in-out infinite;
}
@keyframes shine { 0%{left:-100%} 40%{left:160%} 100%{left:160%} }

.form-footer {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-top: 28px;
}
.security-badge {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--text-muted); font-weight: 500;
}
.footer-text {
  font-size: 11px; color: var(--text-dim);
}

/* Spinner */
.spinner {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid rgba(0,0,0,0.25);
  border-top-color: #000;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

@keyframes shake {
  0%,100% { transform: translateX(0); }
  20%,60%  { transform: translateX(-5px); }
  40%,80%  { transform: translateX(5px); }
}
.shake { animation: shake 0.4s ease; }

/* Dots */
.dot-green {
  display: inline-block; width: 7px; height: 7px;
  border-radius: 50%; background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: blink 2.5s ease-in-out infinite;
}
.dot-gray {
  display: inline-block; width: 7px; height: 7px;
  border-radius: 50%; background: var(--gray);
}
@keyframes blink {
  0%,100% { opacity: 1; } 50% { opacity: 0.35; }
}

/* ── MOBILE LOGIN ── */
@media (max-width: 900px) {
  .login-page { flex-direction: column; }
  .login-hero {
    min-height: 320px; flex: 0 0 320px;
    width: 100%;
  }
  .bwc-wordmark { font-size: 80px; letter-spacing: 10px; }
  .hero-stats { gap: 20px; }
  .login-panel {
    flex: 1; border-left: none;
    border-top: 1px solid var(--border-bright);
    padding: 32px 24px max(32px, env(safe-area-inset-bottom));
  }
}
@media (max-width: 480px) {
  .login-hero { flex-basis: 260px; }
  .bwc-wordmark { font-size: 64px; letter-spacing: 8px; }
  .bwc-eyes-wrap { gap: 20px; margin-bottom: 20px; }
  .bwc-eye { width: 22px; height: 22px; }
  .hero-stats { display: none; }
  .form-title { font-size: 24px; }
}

/* ========================================================
   DASHBOARD PAGE
   ======================================================== */

.dashboard-page { background: var(--bg); }

/* Topbar */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px;
  height: 64px;
  background: rgba(5,5,7,0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-bright);
  position: sticky; top: 0; z-index: 100;
  gap: 16px;
}

/* Yellow + blue accent top line */
.topbar::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg,
    var(--accent) 0%,
    var(--accent2) 50%,
    var(--accent) 100%);
  background-size: 200% 100%;
  animation: topbarLine 4s linear infinite;
}
@keyframes topbarLine {
  0%   { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}

.topbar-left  { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.topbar-center { flex: 1; max-width: 380px; }
.topbar-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

/* Logo mark: two eye dots */
.logo-mark {
  display: flex; align-items: center; gap: 5px;
}
.cat-eye-sm {
  width: 8px; height: 8px; border-radius: 50%;
}
.cat-eye-sm.y { background: #FFD200; box-shadow: 0 0 6px #FFD200; }
.cat-eye-sm.b { background: #0066FF; box-shadow: 0 0 6px #0066FF; }

/* Legacy: keep cat-icon-small for any pages still using it */
.cat-icon-small {
  font-size: 22px;
  filter: drop-shadow(0 0 8px rgba(255,210,0,0.6));
}

.brand-group { display: flex; flex-direction: column; gap: 1px; }
.brand-small {
  font-size: 13px; font-weight: 800;
  letter-spacing: 2px; line-height: 1.1;
  background: linear-gradient(90deg, #fff, var(--accent-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.brand-env {
  font-size: 8px; color: var(--accent-light);
  letter-spacing: 2.5px; font-weight: 600; opacity: 0.6;
  text-transform: uppercase;
}

/* Search */
.search-wrap {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg3); border: 1px solid var(--border-bright);
  border-radius: 10px; padding: 9px 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.search-icon { font-size: 13px; opacity: 0.35; }
.search-input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text); font-size: 13px;
  font-family: 'Montserrat', sans-serif; font-weight: 500;
}
.search-input::placeholder { color: var(--text-dim); }

.welcome-text {
  font-size: 12px; color: var(--text-muted); white-space: nowrap; font-weight: 500;
}

.status-indicator {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--green); font-weight: 600;
  background: rgba(34,197,94,0.06);
  border: 1px solid rgba(34,197,94,0.15);
  border-radius: 20px; padding: 4px 10px;
}
.status-label { white-space: nowrap; }

.btn-logout {
  display: flex; align-items: center; gap: 6px;
  background: transparent;
  border: 1px solid var(--border-bright);
  color: var(--text-muted); border-radius: 8px;
  padding: 7px 14px; font-size: 12px;
  font-family: 'Montserrat', sans-serif; font-weight: 600;
  cursor: pointer; transition: all 0.2s; white-space: nowrap;
}
.btn-logout:hover {
  border-color: var(--red); color: var(--red);
  background: rgba(239,68,68,0.06);
}

.mobile-search {
  display: none; padding: 10px 16px;
  background: var(--bg3); border-bottom: 1px solid var(--border);
}

/* Main content */
.dashboard-main {
  max-width: 1280px; margin: 0 auto; padding: 44px 28px;
  animation: mainIn 0.5s cubic-bezier(0.22,1,0.36,1) both;
}
@keyframes mainIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ========================================================
   STATS BAR
   ======================================================== */

.stats-bar {
  display: grid; grid-template-columns: repeat(4,1fr);
  background: var(--card);
  border: 1px solid rgba(255,210,0,0.15);
  border-radius: 18px; margin-bottom: 32px;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(255,210,0,0.04);
  position: relative;
}
.stats-bar::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent2), transparent);
  opacity: 0.5;
}

.stat-card {
  display: flex; align-items: center; gap: 14px;
  padding: 24px 28px;
  transition: background 0.2s; position: relative;
}
.stat-card:hover { background: var(--card-hover); }
.stat-card + .stat-card { border-left: 1px solid var(--border); }
.stat-divider { display: none; }

.stat-icon-wrap {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,210,0,0.08);
  border: 1px solid rgba(255,210,0,0.18);
  flex-shrink: 0;
}
.stat-icon  { font-size: 20px; }
.stat-info  { display: flex; flex-direction: column; }

.stat-value {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px; font-weight: 400;
  line-height: 1; letter-spacing: 1px;
  background: linear-gradient(135deg, #fff 40%, var(--accent-light) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-value.uptime {
  background: linear-gradient(135deg, var(--green) 0%, #4ade80 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.stat-label {
  font-size: 10px; color: var(--text-muted); margin-top: 5px;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px;
}

/* ========================================================
   FILTERS
   ======================================================== */

.filter-bar { display: flex; gap: 8px; margin-bottom: 22px; }

.filter-btn {
  background: var(--bg3); border: 1px solid var(--border-bright);
  color: var(--text-muted); border-radius: 8px;
  padding: 7px 18px; font-size: 12px; font-weight: 700;
  font-family: 'Montserrat', sans-serif; cursor: pointer;
  transition: all 0.2s; letter-spacing: 0.3px;
  text-transform: uppercase;
}
.filter-btn:hover {
  border-color: var(--accent); color: var(--accent);
  background: rgba(255,210,0,0.07);
}
.filter-btn.active {
  background: var(--accent); border-color: transparent;
  color: #000; font-weight: 800;
  box-shadow: 0 4px 16px rgba(255,210,0,0.35);
}

.dashboard-header { margin-bottom: 22px; }
.dashboard-header h2 {
  font-size: 28px; font-weight: 800; letter-spacing: -0.5px;
  background: linear-gradient(135deg, #fff 0%, #9090c0 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.dashboard-header p { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* ========================================================
   PROJECT CARDS
   ======================================================== */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px,1fr));
  gap: 14px;
}

.project-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 20px;
  display: flex; align-items: center; gap: 16px;
  cursor: pointer; position: relative; overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.23,1,0.32,1),
              box-shadow 0.25s, border-color 0.25s, background 0.25s;
  opacity: 0;
  animation: cardIn 0.5s cubic-bezier(0.22,1,0.36,1) both;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.project-card:nth-child(1)  { animation-delay: 0.04s; }
.project-card:nth-child(2)  { animation-delay: 0.08s; }
.project-card:nth-child(3)  { animation-delay: 0.12s; }
.project-card:nth-child(4)  { animation-delay: 0.16s; }
.project-card:nth-child(5)  { animation-delay: 0.20s; }
.project-card:nth-child(6)  { animation-delay: 0.24s; }
.project-card:nth-child(7)  { animation-delay: 0.28s; }
.project-card:nth-child(8)  { animation-delay: 0.32s; }
.project-card:nth-child(9)  { animation-delay: 0.36s; }
.project-card:nth-child(10) { animation-delay: 0.40s; }
.project-card:nth-child(n+11){ animation-delay: 0.44s; }

.project-card:hover {
  background: var(--card-hover);
  border-color: rgba(255,210,0,0.35);
  transform: translateY(-3px);
  box-shadow: 0 10px 36px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,210,0,0.15);
}

.card-accent-line {
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2), transparent);
  opacity: 0; transition: opacity 0.25s;
}
.project-card:hover .card-accent-line { opacity: 1; }

.project-icon-wrap { flex-shrink: 0; }
.project-icon {
  font-size: 26px; width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg2); border: 1px solid var(--border-bright);
  border-radius: 12px;
  transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.project-card:hover .project-icon {
  background: rgba(255,210,0,0.1);
  border-color: rgba(255,210,0,0.3);
  box-shadow: 0 0 18px rgba(255,210,0,0.15);
}

.project-info { flex: 1; min-width: 0; }
.project-info h3 {
  font-size: 14px; font-weight: 700; margin-bottom: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.project-info p {
  font-size: 11px; color: var(--text-muted); margin-bottom: 9px; line-height: 1.4;
}

.project-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.tag {
  font-size: 9px; font-weight: 700;
  background: rgba(255,210,0,0.08); color: var(--accent-light);
  border: 1px solid rgba(255,210,0,0.18);
  border-radius: 5px; padding: 2px 7px;
  text-transform: uppercase; letter-spacing: 0.3px;
}

.project-status { flex-shrink: 0; }
.badge-online {
  display: flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 700;
  color: var(--green); background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.2);
  border-radius: 20px; padding: 3px 10px; white-space: nowrap;
}
.badge-soon {
  font-size: 10px; font-weight: 700; color: var(--gray);
  background: rgba(80,80,112,0.08); border: 1px solid rgba(80,80,112,0.2);
  border-radius: 20px; padding: 3px 10px; white-space: nowrap;
}

.card-arrow {
  font-size: 14px; color: var(--text-muted);
  opacity: 0; transition: opacity 0.2s, transform 0.2s; flex-shrink: 0;
}
.project-card:hover .card-arrow { opacity: 1; transform: translateX(3px); }

/* ========================================================
   SKELETON LOADERS
   ======================================================== */

.loading-state {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px,1fr)); gap: 14px;
}
.skeleton-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 20px;
  display: flex; align-items: center; gap: 16px; overflow: hidden;
}
.skeleton {
  background: linear-gradient(90deg, var(--bg3) 25%, rgba(255,210,0,0.06) 50%, var(--bg3) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.8s ease-in-out infinite; border-radius: 8px;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-icon  { width: 52px; height: 52px; border-radius: 12px; flex-shrink: 0; }
.skeleton-body  { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.skeleton-title { height: 14px; width: 55%; }
.skeleton-desc  { height: 11px; width: 80%; }
.skeleton-tags  { height: 9px; width: 38%; }

/* ========================================================
   TOAST
   ======================================================== */

.toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%);
  background: var(--card);
  border: 1px solid rgba(255,210,0,0.25);
  color: var(--text); padding: 12px 24px;
  border-radius: 10px; font-size: 13px; font-weight: 500;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
  z-index: 9999; animation: fadeIn 0.3s ease; white-space: nowrap;
}
@keyframes fadeIn {
  from { opacity:0; transform: translateX(-50%) translateY(10px); }
  to   { opacity:1; transform: translateX(-50%) translateY(0); }
}

/* ========================================================
   RESPONSIVE — DASHBOARD
   ======================================================== */

@media (max-width: 900px) {
  .topbar-center  { display: none; }
  .welcome-text   { display: none; }
  .status-indicator { display: none; }
  .logout-label   { display: none; }
  .brand-env      { display: none; }
  .mobile-search  { display: block; }
}
@media (max-width: 768px) {
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .stat-card + .stat-card { border-left: none; }
  .stat-card:nth-child(odd)  { border-right: 1px solid var(--border); }
  .stat-card:nth-child(1), .stat-card:nth-child(2) { border-bottom: 1px solid var(--border); }
  .stat-card { padding: 18px; }
}
@media (max-width: 640px) {
  .topbar { padding: 0 14px; height: 58px; }
  .dashboard-main { padding: 18px 14px; }
  .projects-grid { grid-template-columns: 1fr; }
  .filter-bar { flex-wrap: wrap; }
  .filter-btn { min-height: 40px; }
  .btn-logout { min-height: 40px; min-width: 40px; justify-content: center; }
  .stat-value { font-size: 30px; }
  .loading-state { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ─── Real logo images ─── */
.hero-logo-wrap {
  margin-bottom: 28px;
  animation: wordmarkIn 0.8s cubic-bezier(0.22,1,0.36,1) both;
}
.hero-logo-img {
  width: 190px;
  max-width: 60%;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 0 40px rgba(59,130,246,0.20)) drop-shadow(0 8px 24px rgba(0,0,0,0.5));
}

.form-logo-mark {
  display: flex; margin-bottom: 20px;
}
.form-logo-img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 2px 12px rgba(0,0,0,0.4));
}

.topbar-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
  display: block;
}
