@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@600;700&family=DM+Sans:wght@400;500&display=swap');

:root {
  --bg:     #0a0c0f;
  --bg2:    #0f1217;
  --bg3:    #151820;
  --border: rgba(255,255,255,0.07);
  --border2:rgba(255,255,255,0.13);
  --accent: #f6c90e;
  --accent2:#e05c1a;
  --text:   #e8eaf0;
  --muted:  #6b7280;
  --gold:   #f6c90e;
  --silver: #9ca3af;
  --bronze: #cd7c42;
  --disc:   #5865F2;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

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

/* BG EFFECTS */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(246,201,14,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 90% 80%, rgba(224,92,26,0.06) 0%, transparent 50%);
}

body::after {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* NAV */
nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem; height: 80px;
}

.nav-right { display: flex; align-items: center; gap: 0.75rem; }

.nav-logo { display: flex; align-items: center; gap: 0.62rem; text-decoration: none; }

.logo-img { width: 42px; height: 42px; object-fit: contain; }

.logo-box {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Rajdhani', sans-serif; font-size: 1rem; font-weight: 700;
  color: #000; flex-shrink: 0;
}

.logo-text {
  font-family: 'Rajdhani', sans-serif; font-size: 2.1rem; font-weight: 700;
  color: var(--text); letter-spacing: 0.5px;
}
.logo-text span { color: var(--accent); }

.discord-btn {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 1.3rem;
  background: var(--disc); color: #fff;
  text-decoration: none; border-radius: 8px;
  font-size: 0.875rem; font-weight: 500;
  box-shadow: 0 2px 16px rgba(88,101,242,0.3);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.discord-btn:hover { background: #4752c4; transform: translateY(-1px); box-shadow: 0 6px 24px rgba(88,101,242,0.45); }
.discord-btn svg { width: 17px; height: 17px; fill: currentColor; }

/* HERO */
.hero {
  position: relative; z-index: 1;
  text-align: center;
  padding: 5.5rem 1rem 3.5rem;
  max-width: 600px; margin: 0 auto;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.35rem 1rem;
  border: 1px solid rgba(246,201,14,0.3); border-radius: 100px;
  font-size: 0.72rem; font-weight: 500; color: var(--accent);
  letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: 1.5rem;
  background: rgba(246,201,14,0.05);
}

.hero h1 {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 700; line-height: 1.05;
  letter-spacing: -1px; margin-bottom: 1rem;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.hero p { color: var(--muted); font-size: 0.95rem; line-height: 1.7; margin-bottom: 2rem; }

/* STATS */
.stats-bar {
  position: relative; z-index: 1;
  display: flex; align-items: stretch;
  max-width: 700px; margin: 0 auto 3rem;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
}

.stat {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  gap: 10px; padding: 16px 8px;
}
.stat + .stat { border-left: 1px solid var(--border); }
.stat-icon { font-size: 1.05rem; color: var(--muted); }
.stat-text { display: flex; flex-direction: column; text-align: left; }
.stat-num { font-family: 'Rajdhani', sans-serif; font-size: 1.5rem; font-weight: 700; color: var(--accent); display: block; line-height: 1.05; }
.stat-label { font-size: 0.66rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }

/* LAIKMATIS */
.stat-timer { flex: 1.25; }
.stat-timer .stat-icon { color: var(--accent); }
.stat-timer .stat-num { font-size: 1.15rem; }
.stat-timer .stat-label { color: #b89a3a; }

/* MAIN LAYOUT */
.main-layout {
  position: relative;
  z-index: 1;
}

/* PODIUM */
.leaderboard {
  position: relative; z-index: 1;
  max-width: 700px; margin: 0 auto;
  padding: 0 1rem 2.5rem;
}

.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.25rem;
}

.section-title { display: inline-flex; align-items: center; }
.section-title::before {
  content: "\f091";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--accent);
  font-size: 1.1rem;
  margin-right: 10px;
}

.title-text {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text);
  display: inline-block;
  position: relative;
  padding-bottom: 5px;
}
.title-text::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 46px; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: 2px;
}

.live-badge {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 20px; padding: 6px 12px;
  font-size: 0.72rem; color: #9aa0ab;
}
.live-badge #cd { color: var(--text); font-weight: 600; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 8px #22c55e; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }

.podium {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 0.75rem; margin-bottom: 0.75rem;
}

.podium-card {
  position: relative;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s;
}
.podium-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; z-index: 3;
}
.podium-card.r1::before { background: linear-gradient(90deg, var(--accent), var(--accent2)); }
.podium-card.r2::before { background: linear-gradient(90deg, var(--silver), #6b7280); }
.podium-card.r3::before { background: linear-gradient(90deg, var(--bronze), #a05a20); }
.podium-card:hover { transform: translateY(-3px); border-color: var(--border2); }

/* Podium baneris */
.srv-banner {
  width: 100%; height: 120px;
  background: var(--bg3); overflow: hidden; position: relative;
}
.srv-banner img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.srv-banner::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 80px;
  background: linear-gradient(transparent, var(--bg2));
}
.srv-banner.no-banner {
  background: linear-gradient(135deg, #1a1e28, #14171e);
}

.podium-medal {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  font-size: 1.1rem;
}

.podium-body { padding: 0 1rem 1.25rem; position: relative; z-index: 2; }

.podium-name { font-family: 'Rajdhani', sans-serif; font-size: 1rem; font-weight: 700; margin-bottom: 0.3rem; word-break: break-word; }
.podium-card.empty .podium-name { color: var(--muted); font-style: italic; font-size: 0.85rem; }

.podium-votes { font-size: 0.78rem; color: var(--muted); margin-top: 0.4rem; }
.podium-votes strong { color: var(--text); font-size: 0.9rem; }

/* Kategorijos BADGE */
.cat-badge {
  display: inline-block;
  padding: 1px 8px;
  background: rgba(129,140,248,0.12);
  border-radius: 4px;
  font-size: 0.65rem; font-weight: 500;
  color: #818cf8;
  vertical-align: middle;
}

/* Ikonos fallback */
.icon-fallback {
  display: flex; align-items: center; justify-content: center;
  background: var(--bg3); color: var(--accent);
  font-family: 'Rajdhani', sans-serif; font-weight: 700;
}
.server-icon.icon-fallback { font-size: 1.1rem; margin: -22px auto 0.4rem; position: relative; z-index: 2; border: 2px solid var(--bg2); }
.server-icon-sm.icon-fallback { font-size: 0.8rem; }

/* SERVER LIST */
.server-list { display: flex; flex-direction: column; gap: 5px; margin-bottom: 2.5rem; }

.server-row {
  display: flex; align-items: stretch; gap: 0;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
  animation: fadeIn 0.4s ease both;
  position: relative;
}
.server-row::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2.5px; z-index: 2;
  background: transparent; transition: background 0.15s; border-radius: 2px 0 0 2px;
}
.server-row:hover { background: var(--bg3); border-color: var(--border2); transform: translateX(4px); }
.server-row:hover::before { background: var(--accent); }
.server-row.empty { opacity: 0.25; pointer-events: none; }

.row-main {
  display: flex; align-items: center; gap: 0.85rem;
  padding: 0.85rem 1.1rem; flex: 1; min-width: 0;
}

/* Listo banneris */
.server-row .row-banner {
  position: absolute; inset: 0;
  width: auto; height: auto;
  z-index: 0; overflow: hidden;
  background: transparent;
  pointer-events: none;
}
.server-row .row-banner img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center; display: block;
}

.server-row .row-banner:not(.no-banner)::after {
  content: ''; position: absolute; inset: 0;
  width: auto; height: auto;
  background: linear-gradient(90deg,
    var(--bg2) 0%,
    rgba(15,18,23,0.97) 40%,
    rgba(15,18,23,0.86) 100%);
}
.server-row:hover .row-banner:not(.no-banner)::after {
  background: linear-gradient(90deg,
    var(--bg3) 0%,
    rgba(21,24,32,0.97) 40%,
    rgba(21,24,32,0.86) 100%);
}

.server-row .row-banner.no-banner { display: none; }

/* Turinys virš banerio */
.server-row .row-main { position: relative; z-index: 2; }

@keyframes fadeIn { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:translateY(0)} }

.row-rank { font-family: 'Rajdhani', sans-serif; font-size: 1rem; font-weight: 700; color: var(--muted); width: 28px; text-align: center; flex-shrink: 0; }
.row-name { font-size: 0.9rem; font-weight: 500; flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; overflow: hidden; }
.row-name.e { color: var(--muted); font-style: italic; font-size: 0.82rem; font-weight: 400; }

.row-players { flex-shrink: 0; width: 100px; text-align: center; }
.row-actions { flex-shrink: 0; display: flex; justify-content: center; width: 90px; }

.row-votes { font-family: 'Rajdhani', sans-serif; font-size: 0.95rem; font-weight: 700; width: 64px; text-align: right; flex-shrink: 0; }
.row-votes span { font-size: 0.68rem; color: var(--muted); font-family: 'DM Sans', sans-serif; font-weight: 400; margin-left: 2px; }

/* DISCORD SECTION */
.disc-section {
  position: relative; z-index: 1;
  max-width: 700px; margin: 0 auto;
  padding: 0 1rem 5rem;
}

.disc-card {
  background: var(--bg2); border: 1px solid rgba(88,101,242,0.25);
  border-radius: 14px; padding: 2rem 2.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  position: relative; overflow: hidden;
}
.disc-card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 100% at 100% 50%, rgba(88,101,242,0.06) 0%, transparent 60%);
}

.disc-left h2 { font-family: 'Rajdhani', sans-serif; font-size: 1.4rem; font-weight: 700; margin-bottom: 0.4rem; letter-spacing: 0.3px; }
.disc-left p { font-size: 0.82rem; color: var(--muted); line-height: 1.7; max-width: 300px; }
.disc-left p strong { color: var(--text); }

.btn-disc-big {
  flex-shrink: 0;
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.85rem 1.75rem;
  background: var(--disc); color: #fff;
  text-decoration: none; border-radius: 9px;
  font-size: 0.9rem; font-weight: 600; white-space: nowrap;
  box-shadow: 0 4px 20px rgba(88,101,242,0.3);
  transition: all 0.2s;
}
.btn-disc-big:hover { background: #4752c4; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(88,101,242,0.45); }
.btn-disc-big svg { width: 19px; height: 19px; fill: currentColor; }

/* FOOTER */
footer {
  position: relative; z-index: 1;
  text-align: center; padding: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.7rem; color: var(--muted);
}
footer a { color: var(--accent); text-decoration: none; }

/* SCROLLBAR */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }

.gold { color: #e6b800; }
.silver { color: #c0c0c0; }
.bronze { color: #cd7f32; }

/* Pridėti serverį mygtukas */
.btn-add-server {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.7rem 1.6rem;
  background: rgba(246,201,14,0.08);
  border: 1px solid rgba(246,201,14,0.2);
  border-radius: 8px;
  color: var(--accent); text-decoration: none;
  font-size: 0.85rem; font-weight: 600;
  font-family: 'Rajdhani', sans-serif; letter-spacing: 0.5px;
  transition: all 0.2s;
}
.btn-add-server:hover {
  background: rgba(246,201,14,0.15);
  border-color: rgba(246,201,14,0.4);
  transform: translateY(-2px);
}

.server-icon    { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; margin: -22px auto 0.4rem; display: block; position: relative; z-index: 2; border: 2px solid var(--bg2); }
.server-icon-sm { width: 28px; height: 28px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.players-badge  { font-size: 0.75rem; font-weight: 500; }
.row-players    { flex-shrink: 0; min-width: 70px; text-align: center; }

/* Mygtukų stiliai */
.btn-connect, .btn-connect-sm {
  display: inline-block;
  background: var(--accent);
  color: #000;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  transition: all 0.2s ease;
  text-align: center;
}

.btn-connect {
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 0.85rem;
  width: 100%;
}

.row-actions {
  display: flex;
  justify-content: center;
}

.btn-connect-sm {
  padding: 5px 0;
  width: 90px;
  text-align: center;
  border-radius: 4px;
  font-size: 0.7rem;
  white-space: nowrap;
}

.btn-connect.disabled,
.btn-connect-sm.disabled {
  background: rgba(231, 76, 60, 0.15) !important;
  color: #e74c3c !important;
  border: 1px solid rgba(231, 76, 60, 0.3) !important;
  cursor: default;
  pointer-events: none;
  transform: none !important;
  opacity: 0.9;
}

.btn-connect-sm.disabled {
  width: 90px;
  font-size: 0.65rem;
  padding: 5px 0;
}

.btn-connect.disabled {
  width: 100%;
  display: block;
  padding: 10px 0;
  font-size: 0.8rem;
}

.btn-connect:hover, .btn-connect-sm:hover {
  background: #fff;
  transform: translateY(-2px);
}

/* ============================================
   PARTNERS PANEL
   ============================================ */
.partners-panel {
  position: absolute;
  left: calc(50% + 350px + 1.5rem);
  top: 3.0rem;
  width: 280px;
}

.partners-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem 1rem 1rem;
  position: relative;
  overflow: hidden;
}

.partners-header {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
  color: var(--accent);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.partners-header i {
  font-size: 0.85rem;
}

.partners-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.partner-card {
  display: block;
  text-decoration: none;
  color: var(--text);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg3);
  border: 1px solid rgba(255,255,255,0.04);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.partner-card:hover {
  transform: translateY(-2px);
  border-color: var(--border2);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.partner-banner {
  width: 100%;
  height: 72px;
  background: var(--bg);
  overflow: hidden;
}
.partner-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.partner-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  background: rgba(0,0,0,0.35);
  border-top: 1px solid rgba(255,255,255,0.04);
}

.partner-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.partner-arrow {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 600;
  flex-shrink: 0;
  transition: transform 0.15s;
}
.partner-card:hover .partner-arrow {
  transform: translateX(3px);
}

.partners-footer {
  text-align: center;
  padding-top: 0.75rem;
  margin-top: 0.85rem;
  border-top: 1px solid var(--border);
  font-size: 0.7rem;
  color: var(--muted);
}
.partners-footer a {
  color: var(--accent);
  text-decoration: underline;
  font-weight: 500;
}

/* ============================================
   MEDIA QUERIES
   ============================================ */

/* TABLET  */
@media (max-width: 1200px) {
  .main-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .leaderboard {
    max-width: 700px;
    width: 100%;
    order: 1;
  }

  .disc-section {
    order: 2;
    width: 100%;
    max-width: 700px;
  }

  .partners-panel {
    position: static !important;
    width: 100% !important;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 1rem 2rem;
    left: auto !important;
    top: auto !important;
    order: 3;
  }

  .partners-box {
    padding: 1.25rem;
  }

  .partners-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }
}

/* MOBILE */
@media (max-width: 600px) {
  nav { padding: 0 1rem; }
  .hero { padding: 3.5rem 1rem 2.5rem; }
  .podium { grid-template-columns: 1fr; }
  .row-banner { display: none; }
  .row-players { display: none; }
  .leaderboard { padding: 0 0.75rem 2rem; }
  .partners-panel { padding: 0 0.75rem 2rem; }
  .partners-list { grid-template-columns: 1fr; }
  .disc-section { padding: 0 0.75rem 2rem; }
  .disc-card { flex-direction: column; text-align: center; padding: 1.5rem; gap: 1.25rem; }
  .disc-left p { max-width: 100%; }

  .stats-bar { flex-wrap: wrap; margin: 0 0.75rem 2rem; }
  .stat { flex: 1 1 50%; }
  .stat:nth-child(3), .stat:nth-child(4) { border-top: 1px solid var(--border); }
  .stat:nth-child(3) { border-left: none; }
  .stat-timer { flex: 1 1 50%; }
}

/* MOBILE MYGTUKAI */
@media (max-width: 768px) {
  .row-actions, .podium-actions {
    display: none !important;
  }

  .server-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}


/* Balsavimo mygtukai */
.btn-vote {
  display: inline-flex;
  align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  padding: 8px 16px;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 7px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.22s ease;
  box-shadow: 0 4px 14px rgba(246,201,14,0.18);
}
.btn-vote:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 7px 22px rgba(246,201,14,0.38);
}
.btn-vote .vote-arrow { display: inline-block; font-size: 0.78em; transition: transform 0.22s ease; }
.btn-vote:hover:not(:disabled) .vote-arrow { transform: translateY(-4px); }
.btn-vote:disabled { opacity: 0.6; cursor: default; }
.btn-vote.voted {
  background: rgba(34,197,94,0.15);
  color: #22c55e;
  border: 1px solid rgba(34,197,94,0.3);
  box-shadow: none;
}

.btn-vote-sm {
  display: inline-flex;
  align-items: center; gap: 6px;
  padding: 6px 14px;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 6px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.22s ease;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(246,201,14,0.16);
}
.btn-vote-sm:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 5px 16px rgba(246,201,14,0.34);
}
.btn-vote-sm .vote-arrow { display: inline-block; font-size: 0.78em; transition: transform 0.22s ease; }
.btn-vote-sm:hover:not(:disabled) .vote-arrow { transform: translateY(-3px); }
.btn-vote-sm:disabled { opacity: 0.6; cursor: default; }
.btn-vote-sm.voted {
  background: rgba(34,197,94,0.15);
  color: #22c55e;
  border: 1px solid rgba(34,197,94,0.3);
  box-shadow: none;
}

/* Nav prisijungimas */
.nav-login {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.3rem;
  background: transparent;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s;
}
.nav-login::before {
  content: '';
  width: 15px;
  height: 15px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 7L9.6 8.4l2.6 2.6H2v2h10.2l-2.6 2.6L11 17l5-5zM20 19h-8v2h8c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-8v2h8v14z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 7L9.6 8.4l2.6 2.6H2v2h10.2l-2.6 2.6L11 17l5-5zM20 19h-8v2h8c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-8v2h8v14z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.nav-login:hover {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  transform: translateY(-1px);
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px 5px 5px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 30px;
}
.nav-user-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  border-radius: 30px;
  transition: opacity 0.15s;
}
.nav-user-link:hover { opacity: 0.8; }
.nav-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--disc);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  overflow: hidden;
  flex-shrink: 0;
}
.nav-avatar img { width: 100%; height: 100%; object-fit: cover; }
.nav-username {
  font-size: 0.85rem;
  font-weight: 600;
  font-family: 'Rajdhani', sans-serif;
  color: var(--text);
}
.nav-logout {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  padding: 2px 6px;
  border-radius: 5px;
  transition: all 0.15s;
}
.nav-logout:hover { color: #e74c3c; background: rgba(231,76,60,0.1); }

/* Toast pranešimas */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 14px 24px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 1000;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  max-width: 90%;
  text-align: center;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.toast.success {
  background: rgba(34,197,94,0.95);
  color: #fff;
}
.toast.error {
  background: rgba(231,76,60,0.95);
  color: #fff;
}