#page-loader {
  position: fixed;
  inset: 0;
  background: #2c3e50;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}
.loader-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.loader-logo {
  width: 110px;
  opacity: 0;
  transform: scale(0.8);
  animation: logoFade 0.6s ease forwards;
}
.loader-title {
  margin-top: 18px;
  font-size: 1.8rem;
  font-weight: 800;
  color: white;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards 0.3s;
}
.loader-progress {
  width: 260px;
  height: 8px;
  background: #e5e5e5;
  border-radius: 6px;
  overflow: hidden;
  margin-top: 40px;
  position: relative;
}
.loader-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 6px;
  transition: width 0.15s ease-out;
}
.loader-percent {
  margin-top: 10px;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  opacity: 0;
  animation: fadeIn 0.5s ease forwards 0.4s;
}
@keyframes logoFade {
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.__ymDebuggerOpener {
  display: none;
}
:root {
  --primary: #0052cc;
  --primary-dark: #0047b3;
  --primary-light: #0066cc;
  --secondary: #0066cc;
  --accent: #48bb78;
  --dark: #2c3e50;
  --dark-light: #34495e;
  --light: #f8f9fa;
  --white: #ffffff;
  --gray: #6c757d;
  --gray-light: #e9ecef;
  --success: #48bb78;
  --danger: #e53e3e;
  --warning: #ed8936;
  --info: #4299e1;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
  --shadow-hover: 0 25px 50px rgba(0, 0, 0, 0.2);
  --border-radius: 16px;
  --border-radius-lg: 24px;
  --border-radius-xl: 32px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --header-height: 80px;
  --section-spacing: 6rem;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background: var(--dark);
  color: var(--white);
}
.header {
  background: rgba(44, 62, 80, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white);
  padding: 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  height: var(--header-height);
  transition: var(--transition);
}
.header.scrolled {
  background: rgba(44, 62, 80, 0.98);
  box-shadow: var(--shadow-lg);
  height: var(--header-height) !important;
}
.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  padding: 0 2rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: var(--transition);
}
.logo:hover {
  transform: translateY(-2px);
}
.logo-text {
  display: flex;
  flex-direction: column;
}
.logo-main {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}
.logo-tagline {
  font-size: 0.75rem;
  opacity: 0.8;
  color: #a3bffa;
  font-weight: 500;
  letter-spacing: 0.5px;
}
.nav-main {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-link {
  color: var(--white);
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  transition: var(--transition);
  font-weight: 600;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  opacity: 0.9;
}
.admin-panel {
  padding: 0.2rem 0.6rem !important;
}
.nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  opacity: 1;
}
.nav-link.active {
  background: #171f25;
  box-shadow: 0 8px 25px rgba(63, 78, 99, 0.3);
  opacity: 1;
}
.nav-link.active::before {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
}
.user-menu {
  margin-left: 1rem;
  padding-left: 1rem;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}
.user-dropdown {
  position: relative;
}
.user-trigger {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
}
.user-trigger:hover {
  background: rgba(255, 255, 255, 0.1);
}
.dropdown-arrow {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
  opacity: 0.7;
}
.user-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
  opacity: 1;
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  width: 280px;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  padding: 1rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
}
.user-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 1.25rem 1rem;
  border-bottom: 1px solid var(--gray-light);
  margin-bottom: 0.5rem;
}
.user-info {
  flex: 1;
}
.user-name {
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.25rem;
}
.user-email {
  font-size: 0.85rem;
  color: var(--gray);
  opacity: 0.8;
}
.dropdown-divider {
  height: 1px;
  background: var(--gray-light);
  margin: 0.5rem 0;
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  color: var(--dark);
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-size: 0.9rem;
}
.dropdown-item:hover {
  background: var(--light);
  color: var(--primary);
}
.dropdown-item.logout-btn {
  color: var(--danger);
}
.dropdown-item.logout-btn:hover {
  background: #fff5f5;
  color: var(--danger);
}
.cart-badge {
  background: rgb(217, 219, 218);
  color: black;
  border-radius: 10px;
  padding: 0.2rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  margin-left: auto;
}
.dropdown-form {
  margin: 0;
}
.user-avatar {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: var(--shadow);
}
.avatar-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--light);
  color: var(--dark);
  border-radius: 10px;
  padding: 0.2rem 0.4rem;
  font-size: 0.6rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(229, 62, 62, 0.4);
  border: 2px solid var(--dark);
}
.main-content {
  flex: 1;
  padding-top: var(--header-height);
  min-height: calc(100vh - var(--header-height));
}
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
}
.container-narrow {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
}
.messages {
  margin: 2rem 0;
}
.message {
  padding: 1.25rem 1.5rem;
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow);
  border-left: 4px solid;
  backdrop-filter: blur(10px);
  animation: slideInRight 0.5s ease-out;
}
.message i {
  font-size: 1.25rem;
  width: 24px;
  text-align: center;
}
.message.success {
  background: linear-gradient(135deg, #f0fff4, #c6f6d5);
  color: #22543d;
  border-left-color: var(--success);
}
.message.error {
  background: linear-gradient(135deg, #fff5f5, #fed7d7);
  color: #742a2a;
  border-left-color: var(--danger);
}
.message.info {
  background: linear-gradient(135deg, #ebf8ff, #bee3f8);
  color: #1a365d;
  border-left-color: var(--info);
}
.message.warning {
  background: linear-gradient(135deg, #fffaf0, #feebc8);
  color: #744210;
  border-left-color: var(--warning);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}
.btn:hover::before {
  left: 100%;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  box-shadow: 0 8px 25px rgba(0, 82, 204, 0.3);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 82, 204, 0.4);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 82, 204, 0.3);
}
.btn-ghost {
  background: transparent;
  color: var(--dark);
  border: 2px solid transparent;
}
.btn-ghost:hover {
  background: var(--gray-light);
  transform: translateY(-2px);
}
.btn-sm {
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
}
.btn-lg {
  padding: 1.25rem 2.5rem;
  font-size: 1.1rem;
}
.footer {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
  color: var(--white);
  padding: 4rem 0 2rem;
  margin-top: 36px;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}
.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  position: relative;
  z-index: 2;
}
.footer-section h3 {
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
}
.footer-section p {
  opacity: 0.8;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 0.75rem;
}
.footer-links a {
  color: var(--white);
  text-decoration: none;
  opacity: 0.8;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-links a:hover {
  opacity: 1;
  color: var(--accent);
  transform: translateX(5px);
}
.footer-links a i {
  width: 16px;
  text-align: center;
}
.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}
.social-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}
.social-link:hover {
  background: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 82, 204, 0.3);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  opacity: 0.7;
  font-size: 0.9rem;
  position: relative;
  z-index: 2;
}
.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}
.mt-1 {
  margin-top: 1rem;
}
.mt-2 {
  margin-top: 2rem;
}
.mt-3 {
  margin-top: 3rem;
}
.mt-4 {
  margin-top: 4rem;
}
.mb-1 {
  margin-bottom: 1rem;
}
.mb-2 {
  margin-bottom: 2rem;
}
.mb-3 {
  margin-bottom: 3rem;
}
.mb-4 {
  margin-bottom: 4rem;
}
.py-1 {
  padding: 1rem 0;
}
.py-2 {
  padding: 2rem 0;
}
.py-3 {
  padding: 3rem 0;
}
.py-4 {
  padding: 4rem 0;
}
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--dark);
  color: var(--white);
  border: 1px solid rgb(139, 137, 137);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 15px 35px var(--dark);
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.main-content {
  animation: fadeInUp 0.8s ease-out;
}
@media (max-width: 1200px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}
@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }
  .header .container {
    padding: 0 1rem;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .nav-main {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--dark);
    flex-direction: column;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-slow);
    gap: 0.5rem;
  }
  .nav-main.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav-link {
    width: 100%;
    justify-content: flex-start;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
  }
  .user-menu {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 0 0;
    margin: 1rem 0 0;
    width: 100%;
  }
  .user-dropdown {
    width: 100%;
  }
  .user-trigger {
    width: 100%;
    justify-content: center;
  }
  .dropdown-menu {
    position: static;
    width: 100%;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: transparent;
    padding: 1rem 0 0;
    display: none;
  }
  .user-dropdown:hover .dropdown-menu,
  .user-dropdown.active .dropdown-menu {
    display: block;
  }
  .dropdown-header {
    display: none;
  }
  .dropdown-item {
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 0.25rem;
  }
  .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
  }
  .container {
    padding: 0 1rem;
  }
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  .social-links {
    justify-content: center;
  }
  .back-to-top {
    bottom: 1rem;
    right: 1rem;
  }
}
@media (max-width: 480px) {
  .logo-main {
    font-size: 1.25rem;
  }
  .logo-tagline {
    font-size: 0.7rem;
  }
  .btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.9rem;
  }
  .footer {
    padding: 3rem 0 1.5rem;
  }
}
@media (prefers-color-scheme: dark) {
  body {
    background: var(--dark);
    color: var(--white);
  }
}
@media print {
  .header,
  .footer,
  .back-to-top {
    display: none;
  }
  .main-content {
    padding-top: 0;
  }
}
.nav-link[href*="anonymous-order"] {
  background: transparent !important;
  color: white !important;
  border: none;
  padding: 0.75rem 1.5rem !important;
  border-radius: 8px !important;
  margin-right: 10px;
  transition: all 0.3s ease !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-link[href*="anonymous-order"]:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  opacity: 1;
}
.nav-link[href*="register"] {
  color: white !important;
}
.nav-link[href*="login"]:not([href*="logout"]) {
  color: white !important;
  border-radius: 8px !important;
  padding: 0.75rem 1.5rem !important;
}
.nav-link[href*="anonymous-order"] .nav-badge {
  background: #e53e3e !important;
  color: white !important;
  font-size: 11px;
  font-weight: bold;
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-left: 5px;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}
main.container > section:first-of-type {
  margin-top: 2rem !important;
  border-radius: 20px !important;
}
.avatar-img-small {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-img-medium {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-img-large {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-default {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.user-avatar {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: bold;
    overflow: hidden;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: bold;
    overflow: hidden;
}