/* ============================================================
   MECHANIK MASTERS — ESL / IEM STYLE
   Light, clean, powerful. Inspired by Intel Extreme Masters.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Oswald:wght@400;500;600;700&display=swap');

:root {
  /* Dark palette */
  --bg-page:       #0a0a0f;
  --bg-section:    #11111a;
  --bg-card:       #151522;
  --bg-card-hover: #1c1c2e;
  --bg-dark:       #07070a;
  --bg-footer:     #050508;

  /* Borders */
  --border-light:   #4a5467;
  --border-default: #5f6f88;

  /* Intense Red Accent */
  --accent:        #ff003c;
  --accent-hover:  #cc002d;
  --accent-light:  rgba(255, 0, 60, 0.15);

  /* Text — raised contrast across the board */
  --text-dark:      #FFFFFF;
  --text-body:      #e8e8f0;
  --text-secondary: #b8bdd4;
  --text-muted:     #8892aa;
  --text-on-dark:   #FFFFFF;
  --text-on-accent: #FFFFFF;

  /* Gold */
  --gold:          #D4A843;

  /* Misc */
  --radius:     6px;
  --shadow-sm:  0 4px 15px rgba(0,0,0,0.25);
  --shadow-md:  0 8px 30px rgba(0,0,0,0.3);
  --shadow-lg:  0 15px 50px rgba(0,0,0,0.4);
  --transition: 0.2s ease;

  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Oswald', sans-serif;
}


/* ---------- Base Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-page);
  color: var(--text-body);
  line-height: 1.6;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent);
  color: #fff;
}

/* Override Bootstrap dark theme on body */
body.bg-dark { background-color: var(--bg-page) !important; }
body.text-white { color: var(--text-body) !important; }
body[data-bs-theme="dark"] { --bs-body-bg: var(--bg-page); --bs-body-color: var(--text-body); }


/* =========================================================
   NAVBAR - BAZA I WYRÓWNANIE
   ========================================================= */

.navbar {
  background: rgba(10, 10, 15, 0.85) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  padding: 10px 0 !important;
  position: sticky;
  top: 0;
  z-index: 1050;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.navbar .container-fluid {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between;
  min-width: 0;
  gap: 0.35rem;
  position: relative;
}

/* =========================================================
   LOGO / NAZWA
   ========================================================= */
.navbar-brand {
  font-family: var(--font-heading) !important;
  font-weight: 800 !important;
  font-size: clamp(1.1rem, 4vw, 1.8rem) !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-shadow: 0 0 8px #ff003c, 0 0 20px #ff003c, 0 0 30px rgba(255, 0, 60, 0.6);
  background: none !important;
  background-image: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  line-height: 1;
  margin: 0 !important;
  padding: 0;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  align-self: center;
  order: 1;
}

.navbar-brand:hover {
  text-shadow: 0 0 12px #ff003c, 0 0 25px #ff003c, 0 0 45px rgba(255, 0, 60, 0.9);
  color: #ffffff !important;
}

/* =========================================================
   HAMBURGER (Precyzyjnie wyśrodkowany)
   ========================================================= */
.navbar-toggler {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 0 !important;
  margin: auto 0 auto 0.5rem !important; /* Wyrównanie w pionie */
  cursor: pointer;
  height: 38px;
  width: 38px;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  align-self: center !important;
  order: 3 !important;
  z-index: 1060;
  flex-shrink: 0;
  line-height: 1 !important;
}

.hamburger-box {
  width: 26px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
  display: block;
  width: 26px;
  height: 2.5px;
  background-color: #ffffff;
  border-radius: 2px;
  position: absolute;
  transition: transform 0.35s cubic-bezier(0.77, 0.2, 0.05, 1), opacity 0.25s ease, top 0.35s cubic-bezier(0.77, 0.2, 0.05, 1);
}

.hamburger-inner { top: 50%; transform: translateY(-50%); }
.hamburger-inner::before { content: ''; top: -8px; }
.hamburger-inner::after { content: ''; top: 8px; }

.navbar-toggler:not(.collapsed) .hamburger-inner { background-color: transparent !important; }
.navbar-toggler:not(.collapsed) .hamburger-inner::before { top: 0; transform: rotate(45deg); }
.navbar-toggler:not(.collapsed) .hamburger-inner::after { top: 0; transform: rotate(-45deg); }

/* =========================================================
   PRZYCISKI MOTYWU
   ========================================================= */
.navbar-theme-area-header {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 0.25rem 0 0 !important;
  padding: 0;
  align-self: center;
  order: 2;
}

.navbar-theme-area-inside {
  display: none !important;
}

.navbar-theme-toggle {
  width: 38px;
  height: 38px;
  padding: 0 !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  background: none;
  line-height: 1;
}

.navbar-theme-toggle:hover {
  color: var(--text-primary);
}

.inside-toggle-btn {
  width: 48px !important;
  height: 48px !important;
  font-size: 1.35rem !important;
}

/* =========================================================
   DESKTOP (min-width: 1200px)
   ========================================================= */
@media (min-width: 1200px) {
  .navbar-toggler {
    display: none !important;
  }

  .navbar-theme-area-header {
    order: 4;
    margin-left: 1rem !important;
    margin-right: 0 !important;
  }

  .navbar-collapse {
    order: 2;
    display: flex !important;
    align-items: center;
    min-width: 0;
  }

  .navbar-nav {
    margin-left: 2.5rem !important;
    gap: 0.5rem;
  }
}

/* =========================================================
   MOBILNE I TABLETY (max-width: 1199.98px)
   ========================================================= */
@media (max-width: 1199.98px) {
  .navbar .container-fluid {
    flex-wrap: wrap;
  }

  .navbar-brand {
    margin-right: auto !important;
  }

  .navbar-toggler {
    display: inline-flex !important;
  }

  .navbar-collapse {
    order: 10 !important;
    flex-basis: 100%;
    width: 100%;
    background: rgba(10, 10, 15, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 16px;
    margin-top: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  }

  .navbar-nav {
    width: 100%;
  }

  .navbar-collapse .nav-link {
    padding: 10px 14px !important;
    border-radius: 8px;
    font-size: 0.9rem !important;
    border-bottom: 1px solid var(--border-light);
  }

  .navbar-collapse .nav-link:last-child {
    border-bottom: none;
  }
}

/* EKRANY <= 380PX */
@media (max-width: 380px) {
  .navbar-theme-area-header {
    display: none !important;
  }

  .navbar-theme-area-inside {
    display: flex !important;
    align-items: center;
    justify-content: center !important;
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border-light);
    width: 100%;
  }
}

/* Ekran < 320px */
@media (max-width: 319.98px) {
  .navbar-brand {
    font-size: 0.95rem !important;
    text-shadow: none !important;
  }

  .navbar-brand:hover {
    text-shadow: none !important;
  }
}
/* ============================================================
   HERO — Full-screen video background, IEM style
   ============================================================ */
.hero {
  width: 100%;
  height: 80vh; /* Domyślna wysokość sekcji */
  min-height: 600px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: #111;
}

.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Wideo wypełnia cały obszar bez czarnych pasków (zachowanie proporcji 16:9) */
.video-background iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw; /* Proporcja 16:9 wg szerokości */
  min-height: 100%;
  min-width: 177.77vh; /* Proporcja 16:9 wg wysokości (100 * 16/9) */
  transform: translate(-50%, -50%);
  border: none;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.45);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  width: 100%;
  padding: 1rem 1.5rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Duże, wyraziste logo */
.hero-logo {
  height: clamp(160px, 22vh, 280px);
  width: auto;
  transition: transform 0.3s ease;
}

.hero-logo:hover {
  transform: scale(1.05);
}

/* Tytuł główny */
.hero-content h1,
.hero-content .hero-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2.5rem, 4.5vw, 4.8rem) !important;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #fff;
  text-shadow: 0 0 15px #ff003c, 0 0 30px #ff003c, 0 0 50px rgba(255, 0, 60, 0.8);
  line-height: 1.05;
}

.hero-content .hero-subtitle {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(1rem, 1.6vw, 1.4rem);
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.85);
}

.hero-content p {
  color: rgba(255, 255, 255, 0.8);
}

.hero-content .btn {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--radius);
  border: none;
  transition: all var(--transition);
}

/* ---------- Odliczanie (Countdown) ---------- */
.countdown {
  display: flex;
  justify-content: center;
  gap: clamp(8px, 1.5vw, 14px);
}

.countdown-item {
  background: var(--accent);
  color: #fff;
  min-width: clamp(70px, 7vw, 90px);
  padding: 10px 14px;
  border-radius: var(--radius);
  text-align: center;
}

.countdown-item .cd-number {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.8rem, 2.8vw, 2.6rem);
  line-height: 1;
  display: block;
}

.countdown-item .cd-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(0.6rem, 0.75vw, 0.7rem);
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.85;
  margin-top: 4px;
  display: block;
}

/* 1. DUŻE MONITORY (np. 2K, 4K, 1440p) */
@media (min-height: 900px) {
  .hero {
    height: 82vh; /* Więcej miejsca dla filmu na dużym ekranie */
    min-height: 700px;
  }
}

/* 2. LAPTOPY (ekrany o małej wysokości pionowej, np. 1366x768 lub mniejsze okna) */
@media (max-height: 800px) {
  .hero {
    height: 72vh; /* Zmniejszenie wysokości sekcji, by odkryć treść niżej */
    min-height: 480px;
  }

  .hero-logo {
    height: clamp(120px, 18vh, 180px); /* Skalowanie logo pod wysokość ekranu */
  }

  .hero-content h1,
  .hero-content .hero-title {
    font-size: clamp(2rem, 3.5vw, 3rem) !important;
  }

  .countdown-item {
    padding: 6px 10px;
    min-width: 60px;
  }

  .countdown-item .cd-number {
    font-size: 1.6rem;
  }
}

/* 3. URZĄDZENIA MOBILNE */
@media (max-width: 480px) {
  .hero {
    height: 75vh;
    min-height: 500px;
  }

  .hero-logo {
    height: clamp(110px, 16vh, 150px);
  }

  .countdown-item {
    min-width: 52px;
    padding: 6px 4px;
  }

  .countdown-item .cd-number {
    font-size: 1.4rem;
  }
}
/* ============================================================
   SECTION HEADINGS (light mode)
   ============================================================ */
h2.text-center {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dark);
  margin-bottom: 2rem !important;
}

h2.text-center::after {
  content: '';
  display: block;
  width: 50px;
  height: 4px;
  background: var(--accent);
  margin: 12px auto 0;
  border-radius: 2px;
}


/* ============================================================
   CARDS (light mode)
   ============================================================ */
.card {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-light) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-sm);
  color: var(--text-body) !important;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card.bg-dark {
  background: var(--bg-card) !important;
  color: var(--text-body) !important;
}
.card .text-white { color: var(--text-body) !important; }
.card .text-secondary { color: var(--text-secondary) !important; }

/* Sponsor cards */
.sponsor-card .card-header {
  background: var(--bg-section) !important;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-light) !important;
  color: var(--text-dark) !important;
}


/* ============================================================
   SCHEDULE
   ============================================================ */
.schedule-table {
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
}

.schedule-row {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-body);
  transition: background var(--transition);
}
.schedule-row:last-child { border-bottom: none; }
.schedule-row:hover { background: var(--bg-section); }

.schedule-row .fw-bold { color: var(--text-dark); font-size: 1rem; }
.schedule-row .text-muted { color: var(--text-muted) !important; }
.schedule-row .match-teams { color: var(--text-body); font-weight: 500; font-size: 1rem; }


/* ============================================================
   ACCORDION — Teams (light mode)
   ============================================================ */
.accordion-item {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-light) !important;
  border-radius: var(--radius) !important;
  margin-bottom: 6px;
  overflow: hidden;
}

.accordion-button {
  background: var(--bg-card) !important;
  color: var(--text-dark) !important;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius) !important;
  box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
  background: var(--bg-section) !important;
  color: var(--accent) !important;
}

.accordion-button::after {
  filter: invert(1) !important; /* White chevron for dark mode */
}

.accordion-body {
  background: var(--bg-section) !important;
  color: var(--text-body) !important;
}

.team-logo {
  height: 40px;
  width: 40px;
  object-fit: contain;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  background: #fff;
  margin-right: 12px;
  padding: 2px;
}


/* ============================================================
   REGULAMIN (light mode)
   ============================================================ */
.list-group-item {
  background: var(--bg-card) !important;
  color: var(--text-body) !important;
  border-color: var(--border-light) !important;
}
.list-group-item.bg-dark { background: var(--bg-card) !important; }
.list-group-item.text-white { color: var(--text-body) !important; }
.list-group-item.border-secondary { border-color: var(--border-light) !important; }

.list-group-item strong {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}


/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  font-weight: 600;
  border-radius: var(--radius) !important;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #fff !important;
}
.btn-primary:hover {
  background: var(--accent-hover) !important;
  border-color: var(--accent-hover) !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-success {
  background: #28a745 !important;
  border-color: #28a745 !important;
  color: #fff !important;
}

.btn-outline-light {
  border: 2px solid var(--border-default) !important;
  color: var(--text-dark) !important;
  background: transparent !important;
}
.btn-outline-light:hover {
  border-color: var(--accent) !important;
  color: var(--accent) !important;
}


/* ============================================================
   FORMS
   ============================================================ */
.form-control, .form-select {
  background: var(--bg-section) !important;
  border: 1px solid var(--border-default) !important;
  color: var(--text-dark) !important;
  border-radius: var(--radius);
}
.form-control:focus, .form-select:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(0,114,206,0.15) !important;
}
.form-label {
  font-weight: 500;
  color: var(--text-body);
}


/* ============================================================
   FOOTER — Dark footer (contrast)
   ============================================================ */
footer, footer.bg-dark {
  background: var(--bg-footer) !important;
  color: rgba(255,255,255,0.8) !important;
  border-top: none !important;
}
footer .text-white { color: rgba(255,255,255,0.8) !important; }
footer .text-muted { color: rgba(255,255,255,0.4) !important; }
footer a.text-white { color: rgba(255,255,255,0.8) !important; }
footer a.text-white:hover { color: #fff !important; }
footer a:hover img { transform: translateY(-3px); transition: transform var(--transition); }


/* ============================================================
   OVERRIDES for Bootstrap "dark" classes used in HTML
   ============================================================ */
.bg-dark:not(footer):not(.hero):not(body) { background-color: var(--bg-card) !important; }
.text-white:not(footer *):not(.hero *) { color: var(--text-body) !important; }
.border-secondary { border-color: var(--border-light) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-success { color: #4ade80 !important; }
.text-warning { color: var(--gold) !important; }
.text-muted { color: var(--text-muted) !important; }
p.lead { color: var(--text-body); }

/* Accordion text contrast fix */
.accordion-body .border-secondary { color: var(--text-body) !important; }
.accordion-body strong { color: var(--text-dark) !important; }
.accordion-body span { color: var(--text-secondary) !important; }

/* List group contrast */
.list-group-item ol li { color: var(--text-body) !important; line-height: 1.7; }

/* ============================================================
   TWITCH LIVE SECTION — Premium design
   ============================================================ */
.live-section {
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

/* Override red accent underline → default red accent for live section heading */
.live-section h2.text-center::after {
  background: var(--accent);
}

/* =========================================================
   ALTERNATYWNE PLATFORMY - TWITCH / YOUTUBE / KICK
   ========================================================= */

.twitch-alt-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    width: 100%;
}

.twitch-alt-label {
    white-space: nowrap;
    flex-shrink: 0;
}

.twitch-platforms {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.platform-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    padding: 8px 13px;

    border-radius: 8px;

    text-decoration: none;
    white-space: nowrap;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.platform-link:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}


/* =========================================================
   TELEFON
   ========================================================= */

@media (max-width: 600px) {

    /*
     * Cały blok przechodzi niżej jako całość.
     *
     * Dzięki temu nie będzie:
     *
     * Oglądaj też na: [YouTube]
     * [Kick]
     *
     * tylko:
     *
     * Oglądaj też na:
     * [YouTube] [Kick]
     */

    .twitch-alt-links {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .twitch-alt-label {
        display: block;
        text-align: center;
    }

    .twitch-platforms {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 8px;
    }
}


/* =========================================================
   BARDZO MAŁY TELEFON
   ========================================================= */

@media (max-width: 400px) {

    /*
     * Na naprawdę małym ekranie:
     *
     * Oglądaj też na:
     *
     * [ YouTube ]
     * [ Kick ]
     */

    .twitch-platforms {
        flex-direction: column;
        width: 100%;
        max-width: 220px;
    }

    .platform-link {
        width: 100%;
    }
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 0, 60, 0.12) !important;
  border: 1px solid rgba(255, 0, 60, 0.3) !important;
  border-radius: 30px;
  padding: 6px 18px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #ff6b8b !important; /* Lighter red for dark mode */
  margin-bottom: 16px;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: #ff4444;
  border-radius: 50%;
  animation: livePulse 1.4s ease-in-out infinite;
  box-shadow: 0 0 6px #ff4444;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}

.twitch-player-wrapper {
  position: relative;
  z-index: 1;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 0, 60, 0.35);
  box-shadow:
    0 0 0 1px rgba(255, 0, 60, 0.1),
    0 8px 40px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(255, 0, 60, 0.08);
  transition: box-shadow 0.3s ease;
}

.twitch-player-wrapper:hover {
  box-shadow:
    0 0 0 1px rgba(255, 0, 60, 0.25),
    0 12px 50px rgba(0, 0, 0, 0.7),
    0 0 80px rgba(255, 0, 60, 0.14);
}

.twitch-alt-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.twitch-alt-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.platform-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 18px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  transition: all 0.2s ease;
  background: rgba(255,255,255,0.03);
}

.platform-link:hover {
  border-color: var(--text-body);
  color: var(--text-dark);
  background: rgba(255,255,255,0.07);
  transform: translateY(-1px);
}

.platform-link.yt:hover {
  border-color: #ff3030;
  color: #ff3030;
  background: rgba(255, 48, 48, 0.07);
}

.platform-link.kick:hover {
  border-color: #53fc18;
  color: #53fc18;
  background: rgba(83, 252, 24, 0.07);
}

/* Logo overlay (team logo zoom) */
#logoOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease;
}
#logoOverlay.active { visibility: visible; opacity: 1; }
#logoOverlay img { max-width: 90%; max-height: 90%; }


/* ============================================================
   BRACKET section dark background override
   ============================================================ */
.p-4.border.rounded,
.p-5.border.rounded,
.p-5.border.border-secondary.rounded.bg-dark {
  background: var(--bg-section) !important;
  border-color: var(--border-light) !important;
  border-radius: var(--radius) !important;
}

/* ============================================================
   O NAS (ABOUT US) SECTION STYLES
   ============================================================ */
.about-main-card {
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  background: var(--bg-card) !important;
}
.about-main-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 0, 60, 0.3) !important;
}
.about-logo-wrapper {
  position: relative;
}
.hero-logo-glow {
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.75));
  transition: filter 0.3s ease, transform 0.3s ease;
}
.about-main-card:hover .hero-logo-glow {
  transform: scale(1.02);
}
.about-feature-card {
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  background: var(--bg-card) !important;
}
.about-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}
.col-md-4:nth-child(1) .about-feature-card:hover {
  border-color: rgba(255, 0, 60, 0.4) !important;
}
.col-md-4:nth-child(2) .about-feature-card:hover {
  border-color: rgba(220, 53, 69, 0.4) !important;
}
.col-md-4:nth-child(3) .about-feature-card:hover {
  border-color: rgba(255, 193, 7, 0.4) !important;
}
.feature-icon-wrapper {
  width: 60px;
  height: 60px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: 50%;
  transition: background var(--transition), border-color var(--transition);
}
.about-feature-card:hover .feature-icon-wrapper {
  background: rgba(255, 255, 255, 0.05);
}
.stat-item {
  padding: 10px;
}
.stat-item .h1 {
  font-family: var(--font-heading);
  letter-spacing: 1px;
}
.badge.bg-primary {
  background: var(--accent-light) !important;
  color: var(--accent) !important;
  border: 1px solid rgba(255, 0, 60, 0.3);
  font-family: var(--font-heading);
  letter-spacing: 0.5px;
}
.about-main-card .btn-outline-secondary {
  border-color: var(--border-default) !important;
  color: var(--text-secondary) !important;
}
.about-main-card .btn-outline-secondary:hover {
  border-color: var(--text-body) !important;
  color: var(--text-dark) !important;
  background: rgba(255, 255, 255, 0.05) !important;
}


/* ============================================================
   LIGHT MODE OVERRIDES
   ============================================================ */
body[data-bs-theme="light"],
html[data-bs-theme="light"] {
  /* Light palette */
  --bg-page:       #f4f5f8;
  --bg-section:    #ffffff;
  --bg-card:       #ffffff;
  --bg-card-hover: #eef0f4;
  --bg-dark:       #e3e6eb;
  --bg-footer:     #11111a;

  /* Borders */
  --border-light:   #dee2e6;
  --border-default: #ced4da;

  /* Text colors */
  --text-dark:      #11111a;
  --text-body:      #1f2937;
  --text-secondary: #4b5563;
  --text-muted:     #8892aa;
}

body[data-bs-theme="light"] .navbar {
  background: #ffffff !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

body[data-bs-theme="light"] .navbar-brand {
  color: var(--accent) !important;
  -webkit-text-fill-color: var(--accent) !important;
  text-shadow: none !important;
}

body[data-bs-theme="light"] .navbar .nav-link {
  color: var(--text-secondary) !important;
}

body[data-bs-theme="light"] .navbar .nav-link:hover {
  color: var(--text-dark) !important;
}

body[data-bs-theme="light"] .hamburger-inner,
body[data-bs-theme="light"] .hamburger-inner::before,
body[data-bs-theme="light"] .hamburger-inner::after {
  background-color: var(--text-dark) !important;
}

body[data-bs-theme="light"] .navbar-toggler:not(.collapsed) .hamburger-inner::before,
body[data-bs-theme="light"] .navbar-toggler:not(.collapsed) .hamburger-inner::after {
  background-color: var(--text-dark) !important;
}

@media (max-width: 991.98px) {
  body[data-bs-theme="light"] .navbar-collapse {
    background: rgba(255, 255, 255, 0.98) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08) !important;
  }

  body[data-bs-theme="light"] .navbar-collapse .nav-link {
    border-bottom-color: rgba(0, 0, 0, 0.05) !important;
    color: var(--text-secondary) !important;
  }

  body[data-bs-theme="light"] .navbar-collapse .nav-link:hover {
    background: rgba(0, 0, 0, 0.03) !important;
    color: var(--accent) !important;
  }
}

body[data-bs-theme="light"] .accordion-button::after {
  filter: invert(0) !important;
}

body[data-bs-theme="light"] .live-section {
  background: linear-gradient(180deg, var(--bg-page) 0%, #fff0f2 50%, var(--bg-page) 100%);
}

body[data-bs-theme="light"] .live-badge {
  color: #c8002e !important;
  background: rgba(255, 0, 60, 0.08) !important;
  border-color: rgba(255, 0, 60, 0.2) !important;
}

body[data-bs-theme="light"] .text-light {
  color: var(--text-body) !important;
}

body[data-bs-theme="light"] .btn-outline-light {
  border-color: var(--border-default) !important;
  color: var(--text-body) !important;
}

body[data-bs-theme="light"] .btn-outline-light:hover {
  background-color: var(--bg-card-hover) !important;
  color: var(--text-dark) !important;
  border-color: var(--border-default) !important;
}

body[data-bs-theme="light"] .accordion-body strong {
  color: var(--text-dark) !important;
}

body[data-bs-theme="light"] .about-main-card:hover,
body[data-bs-theme="light"] .about-feature-card:hover {
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
}

/* Custom form & card light theme overrides */
body[data-bs-theme="light"] .card.bg-dark,
body[data-bs-theme="light"] form.bg-dark,
body[data-bs-theme="light"] .accordion-item.bg-dark {
  background-color: var(--bg-card) !important;
  color: var(--text-body) !important;
  border-color: var(--border-light) !important;
}

body[data-bs-theme="light"] .card.bg-dark h2,
body[data-bs-theme="light"] .card.bg-dark h3,
body[data-bs-theme="light"] .card.bg-dark h4,
body[data-bs-theme="light"] form.bg-dark h4 {
  color: var(--text-dark) !important;
}

body[data-bs-theme="light"] .bg-dark .text-white,
body[data-bs-theme="light"] .bg-dark p.text-white,
body[data-bs-theme="light"] form.bg-dark p,
body[data-bs-theme="light"] .card.bg-dark p,
body[data-bs-theme="light"] .card.bg-dark .text-white-50 {
  color: var(--text-secondary) !important;
}

body[data-bs-theme="light"] .bg-dark .text-warning,
body[data-bs-theme="light"] .card.bg-dark .text-warning,
body[data-bs-theme="light"] .border .text-warning,
body[data-bs-theme="light"] .text-warning {
  color: #a17000 !important;
}

body[data-bs-theme="light"] .border-secondary {
  border-color: var(--border-light) !important;
}

body[data-bs-theme="light"] .table-responsive .table.table-dark {
  --bs-table-bg: var(--bg-section) !important;
  --bs-table-striped-bg: rgba(0, 0, 0, 0.02) !important;
  --bs-table-hover-bg: rgba(0, 0, 0, 0.04) !important;
  --bs-table-color: var(--text-body) !important;
  --bs-table-border-color: var(--border-light) !important;
  border-color: var(--border-light) !important;
}

body[data-bs-theme="light"] .table-responsive .table.table-dark thead.table-secondary {
  background-color: var(--bg-dark) !important;
  color: var(--text-dark) !important;
}

/* Theme Toggle Button premium feel */
#theme-toggle {
  transition: all 0.2s ease;
}
#theme-toggle:hover {
  background-color: var(--bg-card-hover) !important;
  color: var(--text-dark) !important;
  border-color: var(--border-default) !important;
  transform: scale(1.05);
}

/* Light mode global overrides */
body[data-bs-theme="light"] {
  --bs-body-bg: var(--bg-page);
  --bs-body-color: var(--text-body);
}

body[data-bs-theme="light"] .bg-dark:not(body) {
  background-color: var(--bg-card) !important;
  border-color: var(--border-light) !important;
}

body[data-bs-theme="light"] .bg-secondary {
  background-color: var(--bg-card-hover) !important;
  color: var(--text-dark) !important;
}

body[data-bs-theme="light"] .bg-black.bg-opacity-20,
body[data-bs-theme="light"] .bg-black.bg-opacity-25 {
  background-color: var(--bg-card-hover) !important;
  border-color: var(--border-light) !important;
}

body[data-bs-theme="light"] .text-white:not(footer *):not(.hero *):not(.btn):not(.btn *):not(.badge):not(.badge *) {
  color: var(--text-dark) !important;
}

body[data-bs-theme="light"] .btn.text-white,
body[data-bs-theme="light"] .btn .text-white,
body[data-bs-theme="light"] .badge.text-white,
body[data-bs-theme="light"] .badge .text-white {
  color: #ffffff !important;
}

body[data-bs-theme="light"] .text-white-50:not(footer *):not(.hero *) {
  color: var(--text-muted) !important;
}

body[data-bs-theme="light"] h1,
body[data-bs-theme="light"] h2,
body[data-bs-theme="light"] h3,
body[data-bs-theme="light"] h4,
body[data-bs-theme="light"] h5,
body[data-bs-theme="light"] h6,
body[data-bs-theme="light"] .h1,
body[data-bs-theme="light"] .h2,
body[data-bs-theme="light"] .h3,
body[data-bs-theme="light"] .h4,
body[data-bs-theme="light"] .h5,
body[data-bs-theme="light"] .h6 {
  color: var(--text-dark) !important;
}

/* Maintain dark theme look for the hero section even in light mode */
body[data-bs-theme="light"] .hero h1,
body[data-bs-theme="light"] .hero-content h1 {
  color: #ffffff !important;
  text-shadow: 0 0 15px #ff003c, 0 0 30px #ff003c, 0 0 50px rgba(255, 0, 60, 0.8), 0 0 70px rgba(255, 0, 60, 0.4) !important;
}
body[data-bs-theme="light"] .hero .hero-subtitle,
body[data-bs-theme="light"] .hero-content .hero-subtitle {
  color: rgba(255, 255, 255, 0.7) !important;
}
body[data-bs-theme="light"] .hero p,
body[data-bs-theme="light"] .hero-content p {
  color: rgba(255, 255, 255, 0.8) !important;
}

/* Form Controls & Inputs overrides in light mode */
body[data-bs-theme="light"] .form-control,
body[data-bs-theme="light"] .form-select {
  background-color: #ffffff !important;
  color: var(--text-dark) !important;
  border-color: var(--border-default) !important;
}

body[data-bs-theme="light"] .form-control:focus,
body[data-bs-theme="light"] .form-select:focus {
  background-color: #ffffff !important;
  color: var(--text-dark) !important;
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 0.25rem rgba(255, 0, 60, 0.25) !important;
}

body[data-bs-theme="light"] .form-control:disabled,
body[data-bs-theme="light"] .form-control[readonly],
body[data-bs-theme="light"] .form-select:disabled {
  background-color: var(--bg-dark) !important;
  color: var(--text-secondary) !important;
  border-color: var(--border-light) !important;
  opacity: 0.8;
}

body[data-bs-theme="light"] .form-control::placeholder {
  color: var(--text-muted) !important;
}

body[data-bs-theme="light"] .form-control::file-selector-button {
  background-color: var(--bg-dark) !important;
  color: var(--text-dark) !important;
  border-color: var(--border-light) !important;
}

body[data-bs-theme="light"] .schedule-row:hover {
  background-color: var(--bg-card-hover) !important;
}


/* ============================================================
   BADASS FOOTER
   ============================================================ */
.footer-badass {
  background: var(--bg-footer) !important;
  border-top: 1px solid var(--border-light);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
  color: #e8e8f0 !important;
}
.footer-badass p:not(.footer-brand),
.footer-badass div:not(.social-circle),
.footer-badass span:not(.footer-brand span),
.footer-badass a:not(.footer-contact-link):not(.social-circle) {
  color: #e8e8f0 !important;
}
.footer-badass .text-muted,
.footer-badass small,
.footer-badass .small {
  color: #9fa4b7 !important;
}
.footer-badass .text-white,
.footer-badass strong.text-white {
  color: #ffffff !important;
}

/* Red accent top glow indicator */
.footer-badass::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, transparent 100%);
  box-shadow: 0 0 15px var(--accent);
}

.footer-brand,
body[data-bs-theme="light"] .footer-brand,
body[data-bs-theme="light"] h5.footer-brand {
  font-family: var(--font-heading) !important;
  font-weight: 800 !important;
  font-size: 1.5rem !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  color: #ffffff !important;
  text-shadow: none !important;
}
.footer-brand span {
  color: var(--accent, #ff003c) !important;
}

.footer-contact-link {
  color: #fff;
  text-decoration: none;
  transition: color var(--transition), text-shadow var(--transition);
}

.footer-contact-link:hover {
  color: var(--accent);
  text-shadow: 0 0 12px rgba(255, 0, 60, 0.6);
}

/* Social icons circles */
.social-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-circle:hover {
  transform: translateY(-3px);
  color: #fff;
}

.social-circle.twitch:hover {
  border-color: var(--accent);
  background: rgba(255, 0, 60, 0.08);
  box-shadow: 0 4px 15px rgba(255, 0, 60, 0.2);
}

.social-circle.youtube:hover {
  border-color: #ff0000;
  background: rgba(255, 0, 0, 0.08);
  box-shadow: 0 4px 15px rgba(255, 0, 0, 0.2);
}

.social-circle.facebook:hover {
  border-color: #1877f2;
  background: rgba(24, 119, 242, 0.08);
  box-shadow: 0 4px 15px rgba(24, 119, 242, 0.2);
}

/* Status Pulse Animations */
@keyframes pulse-yellow {
  0% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(255, 193, 7, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0); }
}
.animate-pulse-yellow {
  animation: pulse-yellow 2s infinite;
}

@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(40, 167, 69, 0); }
  100% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }
}
.animate-pulse-green {
  animation: pulse-green 2s infinite;
}

/* ============================================================
   PARTNER CARDS - HYPER MODERN ESPORTS DESIGN
   ============================================================ */
.partner-card {
  position: relative;
  background: rgba(20, 20, 30, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 40px 25px 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
  z-index: 1;
  height: 100%;
}

body[data-bs-theme="light"] .partner-card {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.partner-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), #ff5e00);
}

.partner-card.rankacy::before {
  background: linear-gradient(90deg, var(--gold), #f5d76e);
}

/* Background glow effect disabled */
.partner-glow {
  display: none;
}

.partner-badge {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(45deg, var(--accent), #ff5e00);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 10px rgba(255, 0, 60, 0.3);
  white-space: nowrap;
  z-index: 2;
}

/* Special badge for middle card */
.partner-card.rankacy .partner-badge {
  background: linear-gradient(45deg, var(--gold), #f5d76e);
  color: #000;
  box-shadow: 0 4px 10px rgba(212, 168, 67, 0.3);
}

.partner-logo {
  width: 100%;
  height: 95px;
  margin: 15px auto 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.partner-logo img {
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.4));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.partner-card.telka .partner-logo img {
  height: 52px;
  max-width: 160px;
  width: auto;
  border-radius: 0;
}
.partner-card.fillprint .partner-logo img {
  height: 75px;
  max-width: 100%;
  width: auto;
}
.partner-card.cybermagia .partner-logo img {
  height: 78px;
  max-width: 100%;
  width: auto;
}
.partner-card.procad .partner-logo img {
  height: 42px;
  max-width: 190px;
  width: auto;
}

body[data-bs-theme="light"] .partner-logo img {
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.1));
}

body[data-bs-theme="light"] .partner-card.procad .partner-logo img,
body[data-bs-theme="light"] .partner-card.telka .partner-logo img,
body[data-bs-theme="light"] .partner-card.fillprint .partner-logo img,
body[data-bs-theme="light"] .partner-card.cybermagia .partner-logo img {
  filter: invert(1) drop-shadow(0 2px 8px rgba(0,0,0,0.15));
}

.partner-logo.logo-rounded img {
  border-radius: 8px;
}

.partner-name {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.partner-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 25px;
  flex-grow: 1;
}

.partner-bonus {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 15px;
  font-size: 0.88rem;
  color: var(--text-body);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  margin-bottom: 25px;
}

body[data-bs-theme="light"] .partner-bonus {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.15);
  color: var(--text-dark);
}

.partner-bonus i {
  color: var(--gold);
  font-size: 1.2rem;
  margin-top: 2px;
}

.partner-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px;
  background: transparent;
  color: var(--text-dark);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

body[data-bs-theme="light"] .partner-link {
  border-color: rgba(0, 0, 0, 0.2);
}

.partner-link i {
  transition: transform 0.3s ease;
}

.partner-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff !important;
  box-shadow: 0 5px 15px rgba(255, 0, 60, 0.3);
}

.partner-link:hover i {
  transform: translateX(5px);
}

/* ============================================================
   CHATBOT - Mechanik AI Floating Widget
   ============================================================ */
.chatbot-toggle-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent, #ff003c), #ff5e00);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(255, 0, 60, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.3);
  cursor: pointer;
  z-index: 1060;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.chatbot-toggle-btn:hover {
  transform: scale(1.1) rotate(8deg);
  box-shadow: 0 12px 40px rgba(255, 0, 60, 0.6), inset 0 2px 4px rgba(255, 255, 255, 0.4);
}
.chatbot-pulse {
  position: absolute;
  top: -2px;
  left: -2px;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  border-radius: 50%;
  border: 2px solid var(--accent, #ff003c);
  opacity: 0.8;
  animation: chatbot-pulsing 2s infinite ease-out;
  pointer-events: none;
}
@keyframes chatbot-pulsing {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.3); opacity: 0; }
}

.chatbot-container {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 380px;
  max-width: calc(100vw - 48px);
  height: 560px;
  max-height: calc(100vh - 140px);
  border-radius: 24px;
  background: rgba(10, 10, 15, 0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1060;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  animation: chatbot-slide-up 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes chatbot-slide-up {
  0% { transform: translateY(20px) scale(0.96); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

body[data-bs-theme="light"] .chatbot-container {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.5);
}

.chatbot-header {
  padding: 18px 24px;
  background: linear-gradient(90deg, rgba(255, 0, 60, 0.12), rgba(255, 94, 0, 0.06));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
body[data-bs-theme="light"] .chatbot-header {
  background: linear-gradient(90deg, rgba(255, 0, 60, 0.06), rgba(255, 94, 0, 0.03));
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.chatbot-avatar {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 0, 60, 0.15);
  border: 1px solid rgba(255, 0, 60, 0.25);
  color: var(--accent, #ff003c);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-right: 12px;
  box-shadow: 0 4px 12px rgba(255, 0, 60, 0.1);
}
.chatbot-status-dot {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 10px;
  height: 10px;
  background: #10b981;
  border: 2px solid #0a0a0f;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
}
body[data-bs-theme="light"] .chatbot-status-dot {
  border-color: #fff;
}

.chatbot-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #fff !important;
}
body[data-bs-theme="light"] .chatbot-title {
  color: #11111a !important;
}
.chatbot-subtitle {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 500;
}

.chatbot-close-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-size: 20px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.chatbot-close-btn:hover {
  background: rgba(255, 0, 60, 0.15);
  border-color: rgba(255, 0, 60, 0.25);
  color: #fff;
  transform: rotate(90deg);
}
body[data-bs-theme="light"] .chatbot-close-btn {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.05);
}

.chatbot-messages {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}
.chatbot-messages::-webkit-scrollbar {
  width: 6px;
}
.chatbot-messages::-webkit-scrollbar-track {
  background: transparent;
}
.chatbot-messages::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}
body[data-bs-theme="light"] .chatbot-messages {
  scrollbar-color: rgba(0, 0, 0, 0.15) transparent;
}
body[data-bs-theme="light"] .chatbot-messages::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.15);
}

.chatbot-msg {
  max-width: 85%;
  padding: 12px 18px;
  border-radius: 18px;
  font-size: 13.5px;
  line-height: 1.5;
  word-wrap: break-word;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  animation: chatbot-msg-appear 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes chatbot-msg-appear {
  0% { transform: translateY(10px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.chatbot-msg-bot {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-body);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-top-left-radius: 4px;
  align-self: flex-start;
}
body[data-bs-theme="light"] .chatbot-msg-bot {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.05);
  color: #1a1a24;
}

.chatbot-msg-user {
  background: linear-gradient(135deg, var(--accent, #ff003c), #ff5e00);
  color: #fff;
  border-top-right-radius: 4px;
  align-self: flex-end;
  box-shadow: 0 4px 15px rgba(255, 0, 60, 0.2);
}

.chatbot-suggestions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 8px;
  width: 100%;
}
.chatbot-suggest-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
  width: auto;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.chatbot-suggest-btn:hover {
  background: rgba(255, 0, 60, 0.08);
  border-color: rgba(255, 0, 60, 0.35);
  color: #fff;
  transform: translateX(3px);
  box-shadow: 0 4px 10px rgba(255, 0, 60, 0.15);
}
body[data-bs-theme="light"] .chatbot-suggest-btn {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.06);
  color: #4b5563;
}
body[data-bs-theme="light"] .chatbot-suggest-btn:hover {
  background: rgba(255, 0, 60, 0.05);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.chatbot-input-form {
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  gap: 12px;
  align-items: center;
  background: rgba(5, 5, 8, 0.4);
}
body[data-bs-theme="light"] .chatbot-input-form {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  background: rgba(0, 0, 0, 0.02);
}

.chatbot-input-form input {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 12px 16px;
  font-size: 13.5px;
  color: var(--text-body);
  outline: none;
  transition: all 0.25s ease;
}
.chatbot-input-form input::placeholder {
  color: var(--text-muted);
}
.chatbot-input-form input:focus {
  border-color: rgba(255, 0, 60, 0.5);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 10px rgba(255, 0, 60, 0.15);
}
body[data-bs-theme="light"] .chatbot-input-form input {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
  color: #11111a;
}
body[data-bs-theme="light"] .chatbot-input-form input:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 10px rgba(255, 0, 60, 0.08);
}

.chatbot-send-btn {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent, #ff003c), #ff5e00);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(255, 0, 60, 0.2);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.chatbot-send-btn:hover {
  transform: scale(1.06) translateY(-1px);
  box-shadow: 0 6px 16px rgba(255, 0, 60, 0.35);
}
.chatbot-send-btn:active {
  transform: scale(0.96) translateY(0);
}

.chatbot-typing {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  padding: 6px 10px;
}
.chatbot-dot {
  width: 6px;
  height: 6px;
  background: var(--accent, #ff003c);
  border-radius: 50%;
  animation: chatbot-bounce 1.4s infinite ease-in-out both;
  opacity: 0.7;
}
.chatbot-dot:nth-child(1) { animation-delay: -0.32s; }
.chatbot-dot:nth-child(2) { animation-delay: -0.16s; }
@keyframes chatbot-bounce {
  0%, 80%, 100% { transform: scale(0.4); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}


/* ============================================================
   PATRONAT & SPONSORSTWO - STAROSTWO POWIATOWE & EXTRA CARDS
   ============================================================ */
.partner-powiat-card {
  position: relative;

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.partner-powiat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ff003c, #ff5e00, #ff003c);
}

.powiat-logo-wrapper {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
}

.powiat-logo {
  max-height: 120px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5));
}

.powiat-badge {
  display: inline-block;
  background: linear-gradient(45deg, #ff003c, #ff5e00);
  color: #fff;
  font-family: var(--font-heading, sans-serif);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 10px rgba(255, 0, 60, 0.3);
}

body[data-bs-theme="light"] .partner-powiat-card {
  border-color: rgba(255, 0, 60, 0.25) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.powiat-logo-wrapper {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body[data-bs-theme="light"] .powiat-logo-wrapper {
  background: transparent !important;
  border-color: transparent !important;
}

.partner-powiat-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 28px 40px;
  flex-wrap: wrap;
}

.partner-powiat-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.2;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.powiat-logo {
  max-height: 100px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5));
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .partner-powiat-inner {
    flex-direction: column;
    gap: 16px;
    padding: 24px 20px;
    text-align: center;
  }
  .partner-powiat-title {
    white-space: normal;
    font-size: 1.4rem;
  }
}
