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

:root {
  color-scheme: dark;
  --md-sys-color-primary: rgb(155 212 160);
  --md-sys-color-surface-tint: rgb(155 212 160);
  --md-sys-color-on-primary: rgb(0 57 21);
  --md-sys-color-primary-container: rgb(27 81 41);
  --md-sys-color-on-primary-container: rgb(182 241 187);
  --md-sys-color-secondary: rgb(157 212 158);
  --md-sys-color-on-secondary: rgb(2 57 19);
  --md-sys-color-secondary-container: rgb(30 81 39);
  --md-sys-color-on-secondary-container: rgb(184 241 185);
  --md-sys-color-tertiary: rgb(154 212 162);
  --md-sys-color-on-tertiary: rgb(0 57 23);
  --md-sys-color-tertiary-container: rgb(25 81 42);
  --md-sys-color-on-tertiary-container: rgb(181 241 189);
  --md-sys-color-error: rgb(255 179 178);
  --md-sys-color-on-error: rgb(86 29 32);
  --md-sys-color-error-container: rgb(115 51 53);
  --md-sys-color-on-error-container: rgb(255 218 217);
  --md-sys-color-background: rgb(16 21 16);
  --md-sys-color-on-background: rgb(224 228 220);
  --md-sys-color-surface: rgb(16 21 16);
  --md-sys-color-on-surface: rgb(224 228 220);
  --md-sys-color-surface-variant: rgb(65 73 65);
  --md-sys-color-on-surface-variant: rgb(193 201 190);
  --md-sys-color-outline: rgb(139 147 137);
  --md-sys-color-outline-variant: rgb(65 73 65);
  --md-sys-color-shadow: rgb(0 0 0);
  --md-sys-color-scrim: rgb(0 0 0);
  --md-sys-color-inverse-surface: rgb(224 228 220);
  --md-sys-color-inverse-on-surface: rgb(45 50 44);
  --md-sys-color-inverse-primary: rgb(53 105 63);
  --md-sys-color-primary-fixed: rgb(182 241 187);
  --md-sys-color-on-primary-fixed: rgb(0 33 9);
  --md-sys-color-primary-fixed-dim: rgb(155 212 160);
  --md-sys-color-on-primary-fixed-variant: rgb(27 81 41);
  --md-sys-color-secondary-fixed: rgb(184 241 185);
  --md-sys-color-on-secondary-fixed: rgb(0 33 8);
  --md-sys-color-secondary-fixed-dim: rgb(157 212 158);
  --md-sys-color-on-secondary-fixed-variant: rgb(30 81 39);
  --md-sys-color-tertiary-fixed: rgb(181 241 189);
  --md-sys-color-on-tertiary-fixed: rgb(0 33 11);
  --md-sys-color-tertiary-fixed-dim: rgb(154 212 162);
  --md-sys-color-on-tertiary-fixed-variant: rgb(25 81 42);
  --md-sys-color-surface-dim: rgb(16 21 16);
  --md-sys-color-surface-bright: rgb(54 58 53);
  --md-sys-color-surface-container-lowest: rgb(11 15 11);
  --md-sys-color-surface-container-low: rgb(24 29 24);
  --md-sys-color-surface-container: rgb(28 33 28);
  --md-sys-color-surface-container-high: rgb(38 43 38);
  --md-sys-color-surface-container-highest: rgb(49 54 49);
  --md-extended-color-sharp-light-color: rgb(156 212 159);
  --md-extended-color-sharp-light-on-color: rgb(0 57 20);
  --md-extended-color-sharp-light-color-container: rgb(29 81 40);
  --md-extended-color-sharp-light-on-color-container: rgb(183 241 185);
  --md-extended-color-sharp-dark-color: rgb(156 212 159);
  --md-extended-color-sharp-dark-on-color: rgb(1 57 19);
  --md-extended-color-sharp-dark-color-container: rgb(29 81 40);
  --md-extended-color-sharp-dark-on-color-container: rgb(184 241 185);
  --md-extended-color-sharp-white-color: rgb(156 212 159);
  --md-extended-color-sharp-white-on-color: rgb(0 57 20);
  --md-extended-color-sharp-white-color-container: rgb(29 81 40);
  --md-extended-color-sharp-white-on-color-container: rgb(183 241 186);
  --md-extended-color-teritary-dark-color: rgb(157 212 157);
  --md-extended-color-teritary-dark-on-color: rgb(3 57 18);
  --md-extended-color-teritary-dark-color-container: rgb(31 80 39);
  --md-extended-color-teritary-dark-on-color-container: rgb(185 240 184);
  --md-extended-color-yellow-dark-color: rgb(226 196 109);
  --md-extended-color-yellow-dark-on-color: rgb(61 47 0);
  --md-extended-color-yellow-dark-color-container: rgb(87 69 0);
  --md-extended-color-yellow-dark-on-color-container: rgb(255 224 137);
  --md-extended-color-yellow-dark2-color: rgb(230 195 108);
  --md-extended-color-yellow-dark2-on-color: rgb(62 46 0);
  --md-extended-color-yellow-dark2-color-container: rgb(89 68 0);
  --md-extended-color-yellow-dark2-on-color-container: rgb(255 223 149);
  --md-extended-color-yellow-mid-color: rgb(236 192 108);
  --md-extended-color-yellow-mid-on-color: rgb(65 45 0);
  --md-extended-color-yellow-mid-color-container: rgb(93 66 0);
  --md-extended-color-yellow-mid-on-color-container: rgb(255 222 165);
  --md-extended-color-yellow-light-color: rgb(233 193 108);
  --md-extended-color-yellow-light-on-color: rgb(64 45 0);
  --md-extended-color-yellow-light-color-container: rgb(91 67 0);
  --md-extended-color-yellow-light-on-color-container: rgb(255 223 158);
  --md-extended-color-yellow-dark3-color: rgb(237 192 108);
  --md-extended-color-yellow-dark3-on-color: rgb(65 45 0);
  --md-extended-color-yellow-dark3-color-container: rgb(93 66 0);
  --md-extended-color-yellow-dark3-on-color-container: rgb(255 222 166);
  --md-extended-color-yellow-mid2-color: rgb(236 192 108);
  --md-extended-color-yellow-mid2-on-color: rgb(65 45 0);
  --md-extended-color-yellow-mid2-color-container: rgb(93 66 0);
  --md-extended-color-yellow-mid2-on-color-container: rgb(255 222 165);
  --md-extended-color-yellow-mid3-color: rgb(232 194 108);
  --md-extended-color-yellow-mid3-on-color: rgb(63 46 0);
  --md-extended-color-yellow-mid3-color-container: rgb(91 67 0);
  --md-extended-color-yellow-mid3-on-color-container: rgb(255 223 156);
  --md-extended-color-purple-dark-color: rgb(205 189 255);
  --md-extended-color-purple-dark-on-color: rgb(52 39 94);
  --md-extended-color-purple-dark-color-container: rgb(75 62 118);
  --md-extended-color-purple-dark-on-color-container: rgb(231 222 255);
  --md-extended-color-purple-dark2-color: rgb(208 188 254);
  --md-extended-color-purple-dark2-on-color: rgb(54 38 93);
  --md-extended-color-purple-dark2-color-container: rgb(77 61 117);
  --md-extended-color-purple-dark2-on-color-container: rgb(233 221 255);
  --md-extended-color-purple-dark3-color: rgb(215 186 251);
  --md-extended-color-purple-dark3-on-color: rgb(59 37 90);
  --md-extended-color-purple-dark3-color-container: rgb(83 60 115);
  --md-extended-color-purple-dark3-on-color-container: rgb(237 220 255);
  --md-extended-color-purple-light-color: rgb(208 188 254);
  --md-extended-color-purple-light-on-color: rgb(55 38 93);
  --md-extended-color-purple-light-color-container: rgb(77 61 117);
  --md-extended-color-purple-light-on-color-container: rgb(233 221 255);
  --md-extended-color-blue-dark-color: rgb(208 189 254);
  --md-extended-color-blue-dark-on-color: rgb(54 38 93);
  --md-extended-color-blue-dark-color-container: rgb(77 61 117);
  --md-extended-color-blue-dark-on-color-container: rgb(233 221 255);
  --md-extended-color-blue-dark2-color: rgb(207 189 254);
  --md-extended-color-blue-dark2-on-color: rgb(54 38 93);
  --md-extended-color-blue-dark2-color-container: rgb(77 61 117);
  --md-extended-color-blue-dark2-on-color-container: rgb(233 221 255);
  --md-extended-color-green-dark-color: rgb(162 211 152);
  --md-extended-color-green-dark-on-color: rgb(13 56 14);
  --md-extended-color-green-dark-color-container: rgb(37 80 34);
  --md-extended-color-green-dark-on-color-container: rgb(190 240 178);
  --md-extended-color-green-light-color: rgb(161 211 154);
  --md-extended-color-green-light-on-color: rgb(9 57 15);
  --md-extended-color-green-light-color-container: rgb(35 80 36);
  --md-extended-color-green-light-on-color-container: rgb(188 240 180);
  --md-extended-color-green-mid-color: rgb(164 211 150);
  --md-extended-color-green-mid-on-color: rgb(16 56 12);
  --md-extended-color-green-mid-color-container: rgb(40 80 33);
  --md-extended-color-green-mid-on-color-container: rgb(192 239 176);
  --md-extended-color-green-light2-color: rgb(163 211 151);
  --md-extended-color-green-light2-on-color: rgb(15 56 13);
  --md-extended-color-green-light2-color-container: rgb(39 80 34);
  --md-extended-color-green-light2-on-color-container: rgb(191 240 177);
  --md-extended-color-green-dark2-color: rgb(164 211 150);
  --md-extended-color-green-dark2-on-color: rgb(16 56 12);
  --md-extended-color-green-dark2-color-container: rgb(39 80 33);
  --md-extended-color-green-dark2-on-color-container: rgb(191 239 176);
  --md-extended-color-green-dark3-color: rgb(163 211 151);
  --md-extended-color-green-dark3-on-color: rgb(15 56 13);
  --md-extended-color-green-dark3-color-container: rgb(39 80 34);
  --md-extended-color-green-dark3-on-color-container: rgb(191 240 177);
  --md-extended-color-green-light3-color: rgb(162 211 153);
  --md-extended-color-green-light3-on-color: rgb(12 57 14);
  --md-extended-color-green-light3-color-container: rgb(37 80 35);
  --md-extended-color-green-light3-on-color-container: rgb(189 240 179);
  --md-extended-color-green-light2-hovered-color: rgb(162 211 152);
  --md-extended-color-green-light2-hovered-on-color: rgb(12 57 14);
  --md-extended-color-green-light2-hovered-color-container: rgb(37 80 35);
  --md-extended-color-green-light2-hovered-on-color-container: rgb(189 240 179);
  --md-extended-color-green-dark2-hovered-color: rgb(161 211 153);
  --md-extended-color-green-dark2-hovered-on-color: rgb(11 57 15);
  --md-extended-color-green-dark2-hovered-color-container: rgb(36 80 35);
  --md-extended-color-green-dark2-hovered-on-color-container: rgb(189 240 179);
  --md-extended-color-system-regular-color: rgb(156 212 159);
  --md-extended-color-system-regular-on-color: rgb(1 57 19);
  --md-extended-color-system-regular-color-container: rgb(29 81 40);
  --md-extended-color-system-regular-on-color-container: rgb(184 241 185);
  --md-extended-color-system-hovered-color: rgb(154 212 161);
  --md-extended-color-system-hovered-on-color: rgb(0 57 22);
  --md-extended-color-system-hovered-color-container: rgb(26 81 42);
  --md-extended-color-system-hovered-on-color-container: rgb(182 241 188);
  --md-extended-color-purple-light-hovered-color: rgb(208 188 254);
  --md-extended-color-purple-light-hovered-on-color: rgb(54 38 93);
  --md-extended-color-purple-light-hovered-color-container: rgb(77 61 117);
  --md-extended-color-purple-light-hovered-on-color-container: rgb(233 221 255);
  --md-extended-color-yellow-dark2-hovered-color: rgb(228 195 108);
  --md-extended-color-yellow-dark2-hovered-on-color: rgb(61 46 0);
  --md-extended-color-yellow-dark2-hovered-color-container: rgb(88 68 0);
  --md-extended-color-yellow-dark2-hovered-on-color-container: rgb(255 223 145);
  --md-extended-color-yellow-dark3-hovered-color: rgb(232 194 108);
  --md-extended-color-yellow-dark3-hovered-on-color: rgb(63 46 0);
  --md-extended-color-yellow-dark3-hovered-color-container: rgb(91 67 0);
  --md-extended-color-yellow-dark3-hovered-on-color-container: rgb(255 223 155);
  --md-extended-color-teal-dark-color: rgb(128 212 214);
  --md-extended-color-teal-dark-on-color: rgb(0 55 56);
  --md-extended-color-teal-dark-color-container: rgb(0 79 81);
  --md-extended-color-teal-dark-on-color-container: rgb(156 241 243);
  --md-extended-color-teal-dark-hovered-color: rgb(128 212 217);
  --md-extended-color-teal-dark-hovered-on-color: rgb(0 55 57);
  --md-extended-color-teal-dark-hovered-color-container: rgb(0 79 83);
  --md-extended-color-teal-dark-hovered-on-color-container: rgb(156 240 245);
  --md-extended-color-teal-mid-color: rgb(128 212 215);
  --md-extended-color-teal-mid-on-color: rgb(0 55 56);
  --md-extended-color-teal-mid-color-container: rgb(0 79 82);
  --md-extended-color-teal-mid-on-color-container: rgb(156 241 244);
  --md-extended-color-teal-light-color: rgb(129 212 221);
  --md-extended-color-teal-light-on-color: rgb(0 54 59);
  --md-extended-color-teal-light-color-container: rgb(0 79 85);
  --md-extended-color-teal-light-on-color-container: rgb(157 240 249);
  --md-extended-color-teal-light-variant-color: rgb(129 211 221);
  --md-extended-color-teal-light-variant-on-color: rgb(0 54 59);
  --md-extended-color-teal-light-variant-color-container: rgb(0 79 86);
  --md-extended-color-teal-light-variant-on-color-container: rgb(157 240 250);
  --md-extended-color-teal-light2-color: rgb(128 213 212);
  --md-extended-color-teal-light2-on-color: rgb(0 55 55);
  --md-extended-color-teal-light2-color-container: rgb(0 79 80);
  --md-extended-color-teal-light2-on-color-container: rgb(156 241 241);
  --md-extended-color-teal-light-strong-color: rgb(129 211 221);
  --md-extended-color-teal-light-strong-on-color: rgb(0 54 59);
  --md-extended-color-teal-light-strong-color-container: rgb(0 79 85);
  --md-extended-color-teal-light-strong-on-color-container: rgb(157 240 249);
  --md-extended-color-teal-dark2-color: rgb(128 213 212);
  --md-extended-color-teal-dark2-on-color: rgb(0 55 55);
  --md-extended-color-teal-dark2-color-container: rgb(0 79 80);
  --md-extended-color-teal-dark2-on-color-container: rgb(156 241 240);
  --md-extended-color-system-dark-grey-color: rgb(153 212 162);
  --md-extended-color-system-dark-grey-on-color: rgb(0 57 23);
  --md-extended-color-system-dark-grey-color-container: rgb(25 81 42);
  --md-extended-color-system-dark-grey-on-color-container: rgb(181 241 189);
  --md-extended-color-system-light-gray-color: rgb(155 212 161);
  --md-extended-color-system-light-gray-on-color: rgb(0 57 22);
  --md-extended-color-system-light-gray-color-container: rgb(27 81 41);
  --md-extended-color-system-light-gray-on-color-container: rgb(182 241 187);
  --md-extended-color-system-green-mid-color: rgb(158 212 157);
  --md-extended-color-system-green-mid-on-color: rgb(4 57 18);
  --md-extended-color-system-green-mid-color-container: rgb(32 80 38);
  --md-extended-color-system-green-mid-on-color-container: rgb(185 240 183);
  --md-extended-color-system-green-dark-color: rgb(164 211 150);
  --md-extended-color-system-green-dark-on-color: rgb(16 56 12);
  --md-extended-color-system-green-dark-color-container: rgb(39 80 33);
  --md-extended-color-system-green-dark-on-color-container: rgb(191 239 176);
  --md-extended-color-system-green-mid2-color: rgb(160 212 155);
  --md-extended-color-system-green-mid2-on-color: rgb(7 57 16);
  --md-extended-color-system-green-mid2-color-container: rgb(34 80 37);
  --md-extended-color-system-green-mid2-on-color-container: rgb(187 240 181);
  --md-extended-color-system-green-mid-gray-color: rgb(158 212 157);
  --md-extended-color-system-green-mid-gray-on-color: rgb(3 57 18);
  --md-extended-color-system-green-mid-gray-color-container: rgb(31 80 39);
  --md-extended-color-system-green-mid-gray-on-color-container: rgb(185 240 184);
  --md-extended-color-system-green-light-strong-color: rgb(163 211 151);
  --md-extended-color-system-green-light-strong-on-color: rgb(15 56 13);
  --md-extended-color-system-green-light-strong-color-container: rgb(39 80 34);
  --md-extended-color-system-green-light-strong-on-color-container: rgb(191 240 177);
  --md-extended-color-system-green-light-gray-color: rgb(165 211 149);
  --md-extended-color-system-green-light-gray-on-color: rgb(17 56 11);
  --md-extended-color-system-green-light-gray-color-container: rgb(40 80 32);
  --md-extended-color-system-green-light-gray-on-color-container: rgb(192 239 176);
  --md-extended-color-system-green-dark2-color: rgb(158 212 156);
  --md-extended-color-system-green-dark2-on-color: rgb(5 57 17);
  --md-extended-color-system-green-dark2-color-container: rgb(32 80 38);
  --md-extended-color-system-green-dark2-on-color-container: rgb(186 240 183);
  --md-extended-color-system-green-light-gray2-color: rgb(159 212 156);
  --md-extended-color-system-green-light-gray2-on-color: rgb(6 57 17);
  --md-extended-color-system-green-light-gray2-color-container: rgb(33 80 37);
  --md-extended-color-system-green-light-gray2-on-color-container: rgb(186 240 182);
  --md-extended-color-onboarding-green-color: rgb(160 212 155);
  --md-extended-color-onboarding-green-on-color: rgb(7 57 16);
  --md-extended-color-onboarding-green-color-container: rgb(34 80 37);
  --md-extended-color-onboarding-green-on-color-container: rgb(187 240 182);
  --md-extended-color-onboarding-green-dark-color: rgb(162 211 152);
  --md-extended-color-onboarding-green-dark-on-color: rgb(12 56 14);
  --md-extended-color-onboarding-green-dark-color-container: rgb(37 80 35);
  --md-extended-color-onboarding-green-dark-on-color-container: rgb(189 240 179);
  --md-extended-color-onboarding-green-hovered-color: rgb(161 211 154);
  --md-extended-color-onboarding-green-hovered-on-color: rgb(10 57 15);
  --md-extended-color-onboarding-green-hovered-color-container: rgb(36 80 36);
  --md-extended-color-onboarding-green-hovered-on-color-container: rgb(188 240 180);
  --md-extended-color-onboarding-green-dark-hovered-color: rgb(162 211 152);
  --md-extended-color-onboarding-green-dark-hovered-on-color: rgb(12 57 14);
  --md-extended-color-onboarding-green-dark-hovered-color-container: rgb(37 80 35);
  --md-extended-color-onboarding-green-dark-hovered-on-color-container: rgb(189 240 179);
  --sidebar-bg: #101510;
  --main-bg: #0b0f0b;
  --surface-bg: #101510;
  --card-bg: #232823;
  --red: #272B26;
  --green-btn: #2d3a2d;
  --green-btn-arrow: #b6c6b6;
  --text-main: #e3e3e3;
  --text-secondary: #a0a0a0;
  --border-radius: 32px;
  --card-radius: 32px;
  --news-radius: 20px;
  --sidebar-width: 76px;
  --sidebar-width-open: 198px;
  --transition: 0.2s cubic-bezier(.4, 0, .2, 1);
  --transition-slow: 0.7s cubic-bezier(.4, 0, .2, 1);
}



html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  background: var(--surface-bg);
  color: var(--text-main);
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
  width: 100vw;
  overflow-x: hidden;
  overflow-y: hidden;
}

.app-bg {
  position: relative;
  min-height: 100vh;
  min-width: 100vw;
  width: 100vw;
  height: 100vh;
  background: var(--surface-bg);
  display: flex;
  flex-direction: row;
}

.sidebar {
  background: #101510;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 0;
  border-radius: 32px 0 0 32px;
  min-width: var(--sidebar-width);
  width: var(--sidebar-width);
  height: calc(100vh - 44px);
  margin-top: 22px;
  margin-bottom: 22px;
  z-index: 2;
  position: relative;
}

.sidebar.open {
  width: var(--sidebar-width-open);
  min-width: var(--sidebar-width-open);
}

.main-area {
  flex: 1; /* kitölti a sidebar melletti helyet */
  min-width: 0; /* fontos, hogy a flexbox engedje zsugorodni */
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 0;
}

.main-content {
  background: var(--main-bg);
  border-radius: 32px;
  margin: 22px 22px 0px 0;
  padding: 0 22px 0px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.12);
  max-width: calc(100% - 22px);
  min-height: calc(100dvh - 104px); /* mobilbarát */
  height: calc(100dvh - 104px);
  overflow-y: scroll;
  scroll-behavior: smooth
}

.header {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  margin-bottom: 22px;
  min-height: 80px;
  position: sticky;
  top: 0;
  z-index: 10;
  background: #0B0F0B;
  backdrop-filter: blur(12px);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.welcome-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-top: 40px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.header.hide .welcome-container {
  transform: translateY(-50%);
  opacity: 0;
}

.header-icons {
  position: absolute;
  top: 8px;
  right: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--green-btn);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  transition: var(--transition);
}

.header-icon-link:hover {
  background-color: var(--card-bg);
}

.header-icon {
  width: 24px;
  height: 24px;
}

.welcome-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-top: 40px;
}

.footer { 
  margin-top: 8px; 
  position: relative;
  z-index: 10;
}

#site-footer .footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 12px;
  background: #0E1512;
}
#site-footer .footer-left img,
#site-footer .footer-right img {
  height: 65px;
  object-fit: contain;
}

#site-footer .footer-right {
  padding-right: 48px;
}

#site-footer .footer-center {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
#site-footer .footer-privacy {
  color: #C4C8C3;
  text-decoration: underline;
  cursor: pointer;
  font-size: 14px;
}
@media (max-width: 900px) {
  #site-footer .footer-container {
    flex-direction: column;
    gap: 8px;
    padding: 10px 12px;
  }
}

.qr-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 24px;
}

.qrcode-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-left: 12px;
  margin-top: 12px;
}

.qr-instruction {
  font-size: 1rem;
  color: var(--text-main);
  margin: 2px 0 0 0;
  text-align: left;
}

.qr-scanner-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 16px;
}

.qr-scanner {
  position: relative;
  width: 240px;
  height: 240px;
  background: var(--red);
  border-radius: 20px;
}

#qrVideo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  background: #000;
}

.corner {
  position: absolute;
  width: 60px;
  height: 60px;
}

.corner.top-left {
  top: -30px;
  left: -30px;
}

.corner.top-right {
  top: -30px;
  right: -30px;
}

.corner.bottom-left {
  bottom: -30px;
  left: -30px;
}

.corner.bottom-right {
  bottom: -30px;
  right: -30px;
}

.camera-switch-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 19px;
  background: #272B26;
  border: none;
  border-radius: 32px;
  padding: 10px 18px;
  color: var(--text-main);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 64px;
  height: 92px;
  width: 260px;
}

.camera-switch-btn:hover {
  border-radius: 64px;
  transition: var(--transition);
}

/* New QR Layout Styles */
.qr-layout-container {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.qr-scanner-column {
  flex: 0.7;
  display: flex;
  justify-content: center;
}

.qr-controls-column {
  flex: 0 0 280px;
  display: flex;
  flex-direction: column;
}

.qr-controls-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 120%;
}

.qr-controls-row {
  display: flex;
  gap: 4px;
  height: 184px;
}

.qr-controls-right {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

/* QR Control Button Base Styles */
.qr-control-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  background: #272B26;
  border: none;
  color: var(--text-main);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 12px 8px;
  transition: var(--transition);
}

.qr-control-btn-smol {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  gap: 12px;
  background: #272B26;
  border: none;
  color: var(--text-main);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 12px 8px;
  transition: var(--transition);
}

.qr-control-btn:hover {
  border-radius: 64px !important;
  transition: var(--transition);
}

.qr-control-btn-smol:hover {
  border-radius: 64px !important;
  transition: var(--transition);
}

.qr-control-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.qr-control-icon-switch {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.qr-control-btn span {
  font-size: 0.9rem;
  text-align: center;
  line-height: 1.2;
}

/* Button Size Variants */
.qr-btn-normal {
  height: 90px;
  width: 76%;
}

.qr-btn-tall {
  height: 184px;
  gap: 12;
}

.qr-btn-half {
  width: 130px;
}

/* Specific Button Styles with Custom Border Radius */
.qr-btn-participation {
  border-radius: 32px 16px 16px 16px;
}

.qr-btn-camera-switch {
  border-radius: 16px 32px 16px 16px;
}

.qr-btn-camera-disable {
  border-radius: 16px;
}

.qr-btn-restart {
  border-radius: 16px 16px 16px 32px;
  width: 191px;
}

.qr-btn-game {
  border-radius: 16px 16px 32px 16px;
  width: 191px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .qr-layout-container {
    flex-direction: column;
    gap: 24px;
  }
  
  .qr-controls-column {
    flex: none;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }
  
  .qr-controls-grid {
    max-width: 280px;
    margin: 0 auto;
  }
}

.camera-switch-icon {
  width: 42px;
  height: 42px;
}

.welcome-icon {
  width: 50px;
  height: 50px;
}

.welcome-text {
  font-size: 1.7rem;
  font-weight: 500;
  color: var(--text-main);
}

.welcome-subtext {
  font-size: 1.7rem;
  font-weight: 500;
  color: var(--text-main);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.2rem;
  color: var(--text-main);
  margin: 18px 0 0 0;
  font-weight: 500;
}

.arrow-icon {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  filter: brightness(0.8);
}

.top-cards-row {
  display: flex;
  flex-direction: row;
  gap: 8px;
  margin-top: 8px;
  margin-bottom: 0;
  align-items: flex-start;
}

.event-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.red-card {
  background: var(--red);
  border-radius: var(--card-radius);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.red-card.large {
  width: 714px;
  height: 205px;
}

.red-card.medium {
  width: 120px;
  height: 205px;
}

.red-card.small {
  width: 56px;
  height: 205px;
}

.event-labels-row {
  display: flex;
  flex-direction: row;
  gap: 8px;
  margin-top: 8px;
  margin-bottom: 0;
}

.event-label {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  color: var(--text-main);
  font-size: 1.05rem;
  font-weight: 500;
}

.event-label-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.event-label .desc {
  font-size: 0.95rem;
  color: var(--text-main);
  font-weight: 400;
}

.arrow-container {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--green-btn);
  border-radius: 50%;
  width: 36px;
  height: 36px;
}

.arrow-container .arrow-icon {
  filter: brightness(1);
  width: 12px;
  height: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bottom-cards-row {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin-top: 0;
}

.news-card {
  background: var(--card-bg);
  border-radius: var(--news-radius);
  width: 17vw;
  min-width: 170px;
  height: 110px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.13);
  overflow: hidden;
}

.red-rect {
  background: var(--red);
  width: 100%;
  height: 60%;
  border-radius: 0 0 18px 18px;
}

.news-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 8px 0 0 14px;
  color: var(--text-main);
  font-size: 1.05rem;
  font-weight: 500;
}

.news-label .desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.nav-menu {
  display: flex;
  flex-direction: column;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 24px;
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.75rem;
  width: 64px;
  padding: 0;
  border-radius: 16px;
  transition: var(--transition);
  position: relative;
}

.nav-item-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.75rem;
  width: 64px;
  height: 64px;
  padding: 0;
  border-radius: 16px;
  transition: var(--transition);
  position: relative;
  border: none;
  background: none;
  outline: none;
}

.nav-item:not(.active):hover .nav-icon-container {
  background-color: #232823;
}

.nav-item-list:hover {
  background-color: #ffffff2b;
}

.nav-item-list span {
  pointer-events: none;
}


.nav-item.active .nav-icon-container {
  background-color: var(--green-btn);
}

.nav-item span {
  color: #C1C9BE;
}

.nav-item.active span {
  color: #D4E8D1;
}

.nav-icon {
  filter: brightness(0) saturate(100%) invert(85%) sepia(6%) saturate(466%) hue-rotate(60deg) brightness(95%) contrast(86%); /* #C1C9BE */
}

.nav-item.active .nav-icon {
  filter: brightness(0) saturate(100%) invert(94%) sepia(11%) saturate(309%) hue-rotate(61deg) brightness(94%) contrast(90%); /* #D4E8D1 */
}
.nav-icon-container {
  width: 56px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  transition: var(--transition);
}

.nav-icon {
  width: 24px;
  height: 24px;
}

/* ---------- open navbar  ---------- */

.nav-menu-open {
  display: flex;
  flex-direction: column;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 24px;
}
.nav-item-open {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.75rem;
  width: calc(100% - 28px);
  padding: 0;
  border-radius: 16px;
  transition: var(--transition);
  position: relative;
}

.nav-item-open-list {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.75rem;
  width: calc(100% - 28px);
  height: calc(100% - 28px);
  padding: 0;
  border-radius: 16px;
  transition: var(--transition);
  position: relative;
  border: none;
  background: none;
  outline: none;
}

.nav-item-open:not(.active):hover {
  background-color: #232823;
  height: 50px;
  border-radius: 32px;
}

.nav-item-list:hover {
  background-color: #ffffff2b;
}

.nav-item-list span {
  pointer-events: none;
}


.nav-item.active {
  /* background-color: var(--green-btn); */
  height: 50px;
  border-radius: 32px;
}

.nav-item-open span {
  color: #C1C9BE;
}

.nav-item-open.active span {
  color: #D4E8D1;
}

.nav-icon-open {
  filter: brightness(0) saturate(100%) invert(85%) sepia(6%) saturate(466%) hue-rotate(60deg) brightness(95%) contrast(86%); /* #C1C9BE */
}

.nav-item-open.active .nav-icon-open {
  filter: brightness(0) saturate(100%) invert(94%) sepia(11%) saturate(309%) hue-rotate(61deg) brightness(94%) contrast(90%); /* #D4E8D1 */
}
.nav-icon-open-container {
  width: 56px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  transition: var(--transition);
}

/* Alapból elrejtjük a szöveget */
.nav-item-list span {
  display: none;
}

/* Csak ha a gombnak van a "-open" osztálya, mutatjuk */
.nav-item-list.nav-item-open-list span {
  display: flex; /* vagy flex, ha flex konténer */
}


.nav-icon-open {
  width: 24px;
  height: 24px;
}

@media (max-width: 1200px) {
  .red-card.large {
    min-width: 220px;
  }

  .news-card {
    min-width: 120px;
  }
}

@media (max-width: 900px) {
  .main-content {
    padding: 0 8px 32px 32px;
  }

  .red-card.large {
    min-width: 140px;
  }

  .news-card {
    min-width: 90px;
  }

  .sidebar {
    margin-left: 8px;
  }

  .main-content {
    margin-left: 0;
  }
}

@media (max-width: 700px) {
  .sidebar {
    display: none;
  }

  .main-content {
    border-radius: 32px;
    margin: 8px;
    box-shadow: inset -8px 0 0 var(--md-extended-color-system-regular-color-container), inset 0 -8px 0 var(--md-extended-color-system-regular-color-container);
  }

  .main-area {
    margin-left: 0;
  }
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-thumb {
  background: #232823;
  border-radius: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}



/* QR Scanner and Camera Permission Sections */
.qr-scanner-container,
.camera-blocked-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.camera-blocked-container {
  z-index: 1;
  margin-top: 20px;
  height: 400px;
}

.qr-scanner-container {
  z-index: 2;
}

/* Permission Popup Overlay */
.permission-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(11, 15, 11, 0.65);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.permission-container {
  position: relative;
  background: var(--card-bg);
  border-radius: var(--card-radius);
  padding: 32px;
  max-width: 320px;
  width: 320px !important;
  margin: 20px;
}

.permission-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background-color: #3D433C;
  border-radius: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.permission-close-btn:hover {
  border-radius: 15px;
}

.permission-content {
  text-align: center;
}

.permission-hand-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
}

.permission-title {
  color: #FFFFFF;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 24px 0;
}

.permission-list {
  color: #C2C3C2;
  text-align: left;
  margin: 0 0 32px 0;
  padding-left: 20px;
  line-height: 1.6;
}

.permission-list li {
  margin-bottom: 12px;
}

.permission-ok-btn {
  background: #B7F1B9;
  border: none;
  border-radius: 20px;
  padding: 12px 24px;
  color: #2D4E30;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.permission-ok-btn:hover {
  border-radius: 15px;
}

/* Camera Blocked Content */
.camera-blocked-content {
  text-align: center;
  max-width: 300px;
  padding: 20px 20px;
}

.camera-blocked-icon {
  width: 120px;
  height: 120px;
  margin-bottom: 20px;
  opacity: 0.8;
}

.camera-blocked-title {
  color: #FFFFFF;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 16px 0;
  text-align: center;
}

.camera-blocked-text {
  color: #C2C3C2;
  font-size: 1rem;
  line-height: 1.5;
  margin: 0 0 24px 0;
  text-align: center;
}

.camera-blocked-btn {
  background: var(--green-btn);
  border: none;
  border-radius: 32px;
  padding: 12px 24px;
  color: var(--text-main);
  margin-top: 20px;
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 32px;
  min-width: 200px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.camera-blocked-btn:hover {
  border-radius: 15px;
}

/* Content Area */
.content-area {
  position: relative;
  flex: 1;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.content-area>div {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* QR Result Display */
.qr-result {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(11, 15, 11, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.qr-result-content {
  background: var(--card-bg);
  border-radius: var(--card-radius);
  padding: 32px;
  text-align: center;
  max-width: 320px;
  width: 90%;
}

.qr-result-content h3 {
  color: var(--text-main);
  font-size: 1.5rem;
  margin: 0 0 16px 0;
  font-weight: 600;
}

.qr-result-content p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin: 0 0 24px 0;
  word-break: break-all;
  line-height: 1.4;
}

.qr-result-btn {
  background: var(--green-btn);
  border: none;
  border-radius: 20px;
  padding: 12px 24px;
  color: var(--text-main);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.qr-result-btn:hover {
  background: var(--card-bg);
}

/* Video element styling */
#qrVideo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

/* QR Result (existing popup modified) */
.qr-result {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(11, 15, 11, 0.65);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.qr-result-content {
  background: var(--card-bg);
  border-radius: var(--card-radius);
  padding: 32px;
  text-align: center;
  max-width: 320px;
  width: 90%;
  position: relative;
}

.qr-result-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
}

.qr-result-title {
  color: #FFFFFF;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 16px 0;
}

.qr-result-text {
  color: #C2C3C2;
  font-size: 1rem;
  margin: 0 0 24px 0;
  word-break: break-all;
  line-height: 1.4;
}

.qr-result-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.qr-result-btn-primary,
.qr-result-btn-secondary {
  background: #B7F1B9;
  border: none;
  border-radius: 32px;
  padding: 12px 24px;
  color: #2D4E30;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  margin-bottom: 8px;
}

.qr-result-btn-primary:hover,
.qr-result-btn-secondary:hover {
  border-radius: 15px !important;
  background: #B7F1B9 !important;
}

.qr-result-content {
  background: var(--card-bg);
  border-radius: var(--card-radius);
  padding: 32px;
  text-align: center;
  max-width: 320px;
  width: 90%;
  position: relative;
}

.qr-result-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
}

.qr-result-title {
  color: #FFFFFF;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 16px 0;
}

.qr-result-text {
  color: #C2C3C2;
  font-size: 1rem;
  margin: 0 0 24px 0;
  word-break: break-all;
  line-height: 1.4;
}

.qr-result-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.qr-result-btn-primary,
.qr-result-btn-secondary {
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.qr-result-content {
  position: relative;
  background: #272B26;
  border-radius: var(--card-radius);
  padding: 32px;
  max-width: 320px;
  width: 320px;
  margin: 20px;
  text-align: center;
}

.qr-result-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background-color: #3D433C;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.qr-result-close-btn:hover {
  background-color: #2B2E2B;
}

.qr-result-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
}

.qr-result-title {
  color: #FFFFFF;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 16px 0;
}

.qr-result-text {
  color: #C2C3C2;
  font-size: 0.9rem;
  margin: 0 0 24px 0;
  word-break: break-all;
  line-height: 1.4;
}

.qr-result-buttons {
  display: flex;
  gap: 12px;
  flex-direction: column;
}



.qr-result-content {
  background: var(--card-bg);
  border-radius: var(--card-radius);
  padding: 32px;
  text-align: center;
  max-width: 320px;
  width: 90%;
  position: relative;
}

.qr-result-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
}

.qr-result-title {
  color: #FFFFFF;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 16px 0;
}

.qr-result-text {
  color: #C2C3C2;
  font-size: 1rem;
  margin: 0 0 24px 0;
  word-break: break-all;
  line-height: 1.4;
}

.qr-result-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.qr-result-btn-primary,
.qr-result-btn-secondary {
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.2s ease;
}