@view-transition {
  navigation: auto;
}

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --blue: #3b6cff;
  --purple: #7b3fe4;
  --pink: #c93cff;
  --orange: #ff9f1c;
  --yellow: #ffd166;
  --bg-dark: #0b0e1a;
  --glass: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --text-main: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.7);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { 
  scroll-behavior: smooth; 
  view-transition-name: page; 
  background: #0b0e1a;
}
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #1b1f3b 0%, var(--bg-dark) 60%), linear-gradient(135deg, var(--purple), var(--blue));
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  background-color: #0b0e1a;
}

::view-transition {
  background: #0b0e1a;
}

.pp-brand { font-size: 1.6rem; font-weight: 700; display: inline-flex; gap: 2px; }
.pp-brand .pixel { background: linear-gradient(180deg, #5cc3ff 0%, #2f7bff 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.pp-brand .pulse { background: linear-gradient(180deg, #ff4f9a 0%, #c4005f 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

nav { position: fixed; top: 0; left: 0; width: 100%; z-index: 100; padding: 16px 24px; display: flex; justify-content: space-between; align-items: center; background: rgba(11, 14, 26, 0.6); backdrop-filter: blur(12px); border-bottom: 1px solid var(--glass-border); transition: transform 0.3s ease; }
nav.hidden { transform: translateY(-100%); }
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: white; }
.nav-logo img { height: 32px; filter: drop-shadow(0 0 8px rgba(255,160,80,0.5)); }
.nav-links { display: flex; gap: 24px; align-items: center; transition: opacity 0.3s; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 0.95rem; font-weight: 500; transition: color 0.2s, text-shadow 0.2s; position: relative; }
.nav-links a:hover, .nav-links a.active { color: white; text-shadow: 0 0 12px rgba(255,255,255,0.4); }
.nav-links a.active::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 100%; height: 2px; background: linear-gradient(90deg, var(--yellow), var(--orange)); border-radius: 2px; }
.btn-auth { padding: 8px 16px; border-radius: 8px; border: 1px solid var(--glass-border); background: var(--glass); color: white; cursor: pointer; font-weight: 500; transition: all 0.2s; }
.btn-auth:hover { background: rgba(255,255,255,0.1); transform: translateY(-1px); }

.hamburger { display: none; flex-direction: column; justify-content: space-between; width: 28px; height: 20px; background: transparent; border: none; cursor: pointer; padding: 0; z-index: 110; }
.hamburger span { display: block; width: 100%; height: 3px; background: white; border-radius: 2px; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); transform-origin: center; }
.hamburger.active span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

.mobile-menu { position: fixed; top: 69px; left: 0; width: 100%; background: rgba(11, 14, 26, 0.95); backdrop-filter: blur(16px); border-bottom: 1px solid var(--glass-border); padding: 20px 24px; display: flex; flex-direction: column; gap: 14px; transform: translateY(-20px); opacity: 0; pointer-events: none; transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1); z-index: 99; }
.mobile-menu.active { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-menu a { color: var(--text-muted); text-decoration: none; font-size: 1.15rem; font-weight: 500; padding: 12px 0; border-bottom: 1px solid var(--glass-border); transition: color 0.2s, transform 0.2s; }
.mobile-menu a:hover, .mobile-menu a.active { color: white; transform: translateX(4px); }
.mobile-menu .btn-auth { margin-top: 8px; width: 100%; text-align: center; }

main { padding-top: 80px; width: 100%; }
section { min-height: calc(100vh - 80px); padding: 80px 24px; display: none; flex-direction: column; align-items: center; justify-content: center; position: relative; opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
section.active { display: flex; }
section.visible { opacity: 1; transform: translateY(0); }
#about { padding-top: 30px; }

.section-title { font-size: 2.4rem; margin-bottom: 40px; text-align: center; background: linear-gradient(90deg, var(--yellow), var(--orange), var(--pink)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; position: relative; display: inline-block; }
.section-title::after { content: ''; position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%); width: 60px; height: 3px; background: linear-gradient(90deg, var(--blue), var(--purple)); border-radius: 2px; }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 1000px; width: 100%; background: var(--glass); border: 1px solid var(--glass-border); border-radius: 20px; padding: 40px; backdrop-filter: blur(10px); }
.about-img img { width: 100%; border-radius: 12px; filter: drop-shadow(0 10px 30px rgba(0,0,0,0.5)); }
.about-text p { line-height: 1.6; margin-bottom: 16px; color: var(--text-muted); font-size: 1.05rem; }
.about-text h3 { font-size: 1.4rem; margin-bottom: 12px; color: white; }

.portfolio-filters { display: flex; gap: 10px; justify-content: center; margin-bottom: 30px; flex-wrap: wrap; }
.filter-btn { padding: 8px 18px; border-radius: 20px; border: 1px solid var(--glass-border); background: var(--glass); color: var(--text-muted); cursor: pointer; font-size: 0.9rem; transition: all 0.2s; }
.filter-btn:hover, .filter-btn.active { background: rgba(59, 108, 255, 0.2); color: white; border-color: var(--blue); }

.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; max-width: 1100px; width: 100%; }
.project-card { background: var(--glass); border: 1px solid var(--glass-border); border-radius: 16px; overflow: hidden; cursor: pointer; transition: transform 0.3s, box-shadow 0.3s; position: relative; display: flex; flex-direction: column; min-height: 380px; }
.project-card:hover { transform: translateY(-8px); box-shadow: 0 12px 40px rgba(0,0,0,0.4); }
.project-thumb { height: 200px; background: linear-gradient(135deg, #1a1f3a, #2a2f5a); display: flex; align-items: center; justify-content: center; font-size: 3rem; color: rgba(255,255,255,0.2); }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.project-info { padding: 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.project-info h3 { margin: 0; color: white; font-size: 1.15rem; line-height: 1.3; }
.project-info p { margin: 0; color: var(--text-muted); font-size: 0.92rem; line-height: 1.5; }

.project-tech { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.project-tech.has-tech { padding-top: 14px; border-top: 1px solid var(--glass-border); }
.tech-chip { display: inline-block; padding: 4px 10px; border-radius: 8px; font-size: 0.72rem; font-weight: 500; color: rgba(255,255,255,0.75); background: rgba(255,255,255,0.06); border: 1px solid var(--glass-border); transition: all 0.2s; white-space: nowrap; }
.project-card:hover .tech-chip:hover { background: rgba(59, 108, 255, 0.18); border-color: var(--blue); color: white; }
.category-badge { display: inline-block; padding: 4px 10px; border-radius: 20px; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; background: rgba(255,255,255,0.08); color: var(--text-muted); border: 1px solid var(--glass-border); }
.category-badge.mobilne { background: rgba(59, 108, 255, 0.2); color: #5cc3ff; border-color: rgba(59, 108, 255, 0.3); }
.category-badge.desktop { background: rgba(123, 63, 228, 0.2); color: #a87aff; border-color: rgba(123, 63, 228, 0.3); }
.category-badge.web { background: rgba(255, 159, 28, 0.2); color: #ffaa55; border-color: rgba(255, 159, 28, 0.3); }
.category-badge.console { background: rgba(201, 60, 255, 0.2); color: #d988ff; border-color: rgba(201, 60, 255, 0.3); }
.category-badge.games { background: rgba(255, 79, 154, 0.2); color: #ff88aa; border-color: rgba(255, 79, 154, 0.3); }

.project-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--blue), var(--purple), var(--pink)); opacity: 0; transition: opacity 0.3s; }
.project-card:hover::before { opacity: 1; }

.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); backdrop-filter: blur(8px); z-index: 200; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.4s ease; }
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-content { width: 90%; max-width: 900px; max-height: 85vh; background: #12152a; border-radius: 20px; border: 1px solid var(--glass-border); overflow: hidden; transform: scale(0.85); opacity: 0; transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s; display: flex; flex-direction: column; }
.modal-overlay.active .modal-content { transform: scale(1); opacity: 1; }
.modal-header { padding: 16px 24px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--glass-border); background: rgba(255,255,255,0.02); }
.modal-header-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.modal-title { font-size: 1.2rem; font-weight: 600; margin: 0; }
.modal-tech { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.macos-close { width: 28px; height: 28px; border-radius: 50%; border: none; cursor: pointer; background: #ff5f57; color: white; font-size: 14px; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,0.3); transition: transform 0.2s, filter 0.2s; }
.macos-close:hover { transform: scale(1.1); filter: brightness(1.2); }
.macos-close::before { content: '✕'; }
.modal-body { padding: 24px; overflow-y: auto; flex: 1; }
.carousel { position: relative; width: 100%; height: 300px; margin-bottom: 20px; background: #0f1221; border-radius: 12px; overflow: hidden; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.3); }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.5); border: none; color: white; padding: 12px; cursor: pointer; border-radius: 10%; transition: background 0.2s; z-index: 2; }
.carousel-btn:hover { background: rgba(255,255,255,0.2); }
.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }
.carousel-fullscreen { position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,0.5); border: none; color: white; padding: 12px; cursor: pointer; border-radius: 10%; transition: background 0.2s; z-index: 2; }
.carousel-fullscreen:hover { background: rgba(255,255,255,0.2); }
#carousel-content img { transition: transform 0.1s ease; transform-origin: center; }
.carousel-zoom { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); width: 65%; height: 26px; display: none; -webkit-appearance: none; appearance: none; background: transparent; }
#modal-carousel:fullscreen .carousel-zoom { display: block; }
.carousel-zoom::-webkit-slider-runnable-track { width: 100%; height: 8px; border-radius: 50px; background: linear-gradient(90deg, var(--orange), var(--pink)); border: 1px solid var(--glass-border); }
.carousel-zoom::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; margin-top: -7px; border-radius: 50%; background: #fff; cursor: pointer; box-shadow: 0 0 0 4px rgba(255, 159, 28, 0.25), 0 2px 8px rgba(0, 0, 0, 0.4); transition: transform 0.15s ease; }
.carousel-zoom::-webkit-slider-thumb:hover { transform: scale(1.15); }
.carousel-zoom::-moz-range-track { width: 100%; height: 8px; border-radius: 50px; background: linear-gradient(90deg, var(--orange), var(--pink)); border: 1px solid var(--glass-border); }
.carousel-zoom::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; cursor: pointer; box-shadow: 0 0 0 4px rgba(255, 159, 28, 0.25), 0 2px 8px rgba(0, 0, 0, 0.4); border: none; }
#carousel-content img { max-height: 280px; max-width: 100%; object-fit: contain; display: block; }
.modal-desc { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.modal-desc-paragraph { margin: 0; color: var(--text-muted); line-height: 1.6; }
.modal-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { padding: 10px 20px; border-radius: 8px; border: none; cursor: pointer; font-weight: 500; transition: all 0.2s; text-decoration: none; font-size: 14px; align-items: center; gap: 6px; }
.btn-primary { background: linear-gradient(135deg, var(--blue), var(--purple)); color: white; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(59, 108, 255, 0.4); }
.btn-secondary { background: var(--glass); border: 1px solid var(--glass-border); color: white; }
.btn-secondary:hover { background: rgba(255,255,255,0.1); }
.video-placeholder { width: 100%; height: 180px; background: #0f1221; border-radius: 12px; margin-bottom: 20px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.4); border: 1px dashed var(--glass-border); }

.contact-container { max-width: 600px; width: 100%; text-align: center; }
.contact-toggle { background: linear-gradient(135deg, var(--orange), var(--pink)); color: white; border: none; padding: 12px 28px; border-radius: 50px; font-size: 1rem; font-weight: 600; cursor: pointer; margin-bottom: 20px; transition: transform 0.2s, box-shadow 0.2s; }
.contact-toggle:hover { transform: scale(1.05); box-shadow: 0 8px 24px rgba(255, 159, 28, 0.4); }
.contact-form-wrapper { max-height: 0; overflow: hidden; transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s; opacity: 0; }
.contact-form-wrapper.open { max-height: 600px; opacity: 1; }
.contact-form { background: var(--glass); border: 1px solid var(--glass-border); border-radius: 16px; padding: 24px; text-align: left; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-size: 0.9rem; color: var(--text-muted); }
.form-group input, .form-group textarea { width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--glass-border); background: rgba(0,0,0,0.3); color: white; font-family: inherit; transition: border-color 0.2s, box-shadow 0.2s; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59, 108, 255, 0.2); }
.chat-section { margin-top: 24px; padding: 20px; background: rgba(255,255,255,0.03); border-radius: 12px; border: 1px solid var(--glass-border); display: none; }
.chat-section.active { display: block; animation: fadeIn 0.4s; }
.chat-messages { height: 150px; overflow-y: auto; margin-bottom: 12px; padding: 10px; background: rgba(0,0,0,0.2); border-radius: 8px; }
.chat-msg { margin-bottom: 8px; padding: 8px 12px; border-radius: 8px; max-width: 80%; }
.chat-msg.client { background: rgba(59, 108, 255, 0.3); align-self: flex-end; margin-left: auto; }
.chat-msg.system { background: rgba(255,255,255,0.1); }
.honeypot { position: absolute !important; left: -9999px !important; top: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; border: 0 !important; padding: 0 !important; margin: -1px !important; }
.contact-form .btn-primary { position: relative; overflow: hidden; }
.btn-progress { position: absolute; left: 0; top: 0; bottom: 0; width: 0%; background: rgba(255,255,255,0.5); pointer-events: none; }
.btn-primary[disabled] { cursor: not-allowed; opacity: 0.85; }
.contact-pipeline { margin-top: 20px; text-align: left; }
.contact-pipeline-toggle { background: rgba(255,255,255,0.06); border: 1px solid var(--glass-border); color: var(--text-muted); padding: 10px 14px; border-radius: 10px; cursor: pointer; font-size: 0.9rem; font-weight: 500; transition: background 0.2s; }
.contact-pipeline-toggle:hover { background: rgba(255,255,255,0.1); }
.contact-pipeline-inner { margin-top: 12px; }
.pipeline-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pipeline-steps li { background: rgba(0,0,0,0.25); border: 1px solid var(--glass-border); border-radius: 10px; padding: 12px 14px; font-size: 0.9rem; color: #e6e8f0; display: flex; gap: 12px; }
.pipeline-steps li strong { color: #fff; }
.pipeline-step { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, var(--orange), var(--pink)); color: #fff; font-size: 0.8rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.contact-success-body { padding: 30px 24px 26px; text-align: center; }
.contact-success-icon { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: linear-gradient(135deg, var(--orange), var(--pink)); color: #fff; font-size: 30px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.contact-success-body p { color: #fff; font-size: 16px; line-height: 1.5; margin: 0; }
.contact-counter { display: block; text-align: right; margin-top: 6px; font-size: 0.8rem; color: var(--text-muted); }

.auth-container, .dashboard-container { max-width: 450px; width: 100%; background: var(--glass); border: 1px solid var(--glass-border); border-radius: 20px; padding: 32px; text-align: center; backdrop-filter: blur(12px); }
.auth-container h2, .dashboard-container h2 { margin-bottom: 20px; }
.auth-container input { width: 100%; padding: 12px; margin-bottom: 12px; border-radius: 8px; border: 1px solid var(--glass-border); background: rgba(0,0,0,0.3); color: white; }
.auth-container button { width: 100%; padding: 12px; border-radius: 8px; border: none; background: linear-gradient(135deg, var(--blue), var(--purple)); color: white; font-weight: 600; cursor: pointer; transition: transform 0.2s; }
.auth-container button:hover { transform: translateY(-2px); }
.dashboard-tabs { display: flex; gap: 10px; margin-bottom: 20px; justify-content: center; }
.tab-btn { padding: 8px 16px; border-radius: 6px; background: transparent; border: 1px solid var(--glass-border); color: var(--text-muted); cursor: pointer; transition: all 0.2s; }
.tab-btn.active { background: rgba(59, 108, 255, 0.2); border-color: var(--blue); color: white; }
.tab-content { display: none; text-align: left; }
.tab-content.active { display: block; animation: fadeIn 0.3s; }
.file-item { padding: 10px; background: rgba(255,255,255,0.05); border-radius: 8px; margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; }
.file-item a { color: var(--blue); text-decoration: none; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.seo { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.pulse { display: inline-flex; gap: 6px; }
.pulse span { width: 8px; height: 8px; background: linear-gradient(135deg, var(--orange), var(--yellow)); animation: pulse 1.4s infinite ease-in-out; }
.pulse span:nth-child(2) { animation-delay: 0.15s; }
.pulse span:nth-child(3) { animation-delay: 0.3s; }
.pulse span:nth-child(4) { animation-delay: 0.45s; }
@keyframes pulse { 0% { transform: scale(0.8); opacity: 0.4; } 50% { transform: scale(1.6); opacity: 1; } 100% { transform: scale(0.8); opacity: 0.4; } }

@media (max-width: 850px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: flex; }
  .about-grid { grid-template-columns: 1fr; }
  .modal-content { width: 95%; max-height: 90vh; }
  .section-title { font-size: 2rem; }
}

::view-transition-old(page) {
  animation: slide-out .35s ease;
}

::view-transition-new(page) {
  animation: slide-in .35s ease;
}

@keyframes slide-out {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(-40px);
  }
}

@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.user-avatar {
    font-size: 28px;
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition);
}

.user-avatar:hover {
    transform: scale(1.1);
}

nav a[href="/executor"],
nav a[href="/client"] {
    display: none;
}

#errorModal {
    z-index: 1200;
}

#errorModal .modal {
    background: #12152a;
    border: 2px solid #e5484d;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

#errorModal .modal-header h3 {
    color: #e5484d;
}

#errorModal .modal-close {
    color: #e5484d;
}

#errorModal .modal-body {
    color: rgba(255, 255, 255, 0.85);
}

.avatar-menu {
    position: fixed;
    width: 240px;
    right: 20px;
    background: rgba(18, 21, 42, 0.98);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    z-index: 220;
    opacity: 0;
    transform: translateY(-8px) scale(0.95);
    transform-origin: top right;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.avatar-menu.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.avatar-menu-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 16px 12px;
    border-bottom: 1px solid var(--glass-border);
}

.avatar-menu-profile i {
    font-size: 30px;
    color: var(--primary);
}

.avatar-menu-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
}

.avatar-menu-info strong {
    font-size: 14px;
    color: #fff;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.avatar-menu-info small {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: capitalize;
}

.avatar-menu-empty {
    padding: 18px 16px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.avatar-menu-items {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 12px;
}

.avatar-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s ease, color 0.2s ease;
}

.avatar-menu-item:hover {
    background: rgba(47, 123, 255, 0.15);
    color: #fff;
}

.avatar-menu-item i {
    width: 16px;
    text-align: center;
    color: var(--primary);
}

.avatar-menu-item.danger {
    color: #ff5f57;
}

.avatar-menu-item.danger i {
    color: #ff5f57;
}

.avatar-menu-item.danger:hover {
    background: rgba(255, 95, 87, 0.15);
}

.avatar-menu-profile-card {
    padding: 14px 16px;
    display: none;
}

.avatar-menu-profile-card.active {
    display: block;
}

.avatar-menu-profile-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    font-size: 13px;
    border-bottom: 1px solid var(--glass-border);
}

.avatar-menu-profile-row:last-child {
    border-bottom: none;
}

.avatar-menu-profile-row span:first-child {
    color: rgba(255, 255, 255, 0.6);
}

.avatar-menu-profile-row span:last-child {
    color: #fff;
    font-weight: 500;
    text-align: right;
}

.login-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); backdrop-filter: blur(8px); z-index: 210; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.4s ease; }
.login-overlay.active { opacity: 1; pointer-events: auto; }
.login-modal { position: relative; width: 90%; max-width: 420px; max-height: 90vh; height: auto; box-sizing: border-box; background: #12152a; border-radius: 20px; border: 1px solid var(--glass-border); transform: scale(0.85); opacity: 0; transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s, height 0.3s ease; display: flex; flex-direction: column; overflow: hidden; }
.login-overlay.active .login-modal { transform: scale(1); opacity: 1; }
.login-header { margin-bottom: 20px; padding: 16px 24px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--glass-border); background: rgba(255,255,255,0.02); }
.login-title { font-size: 22px; font-weight: 600; color: #fff; }
.login-tabs { display: flex; gap: 8px; padding-left: 20px; padding-right: 20px; }
.login-tab { flex: 1; padding: 10px 14px; border: 1px solid var(--glass-border); border-radius: 12px; background: transparent; color: var(--text-muted); font-size: 14px; font-weight: 500; cursor: pointer; transition: var(--transition); }
.login-tab.active { background: linear-gradient(135deg, var(--orange), var(--pink)); color: #fff; border-color: transparent; }
.login-form { padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.login-field { display: flex; flex-direction: column; gap: 6px; }
.login-field label { color: var(--text-muted); font-size: 13px; font-weight: 500; }
.login-field input { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--glass-border); background: rgba(0,0,0,0.3); color: #fff; font-size: 15px; }
.login-field input:focus { outline: none; border-color: var(--orange); }
.login-field-hidden { display: none; }
.login-submit { width: 100%; margin-top: 4px; background: linear-gradient(135deg, var(--orange), var(--pink)); color: #fff; }

/* ===== Notification bell + panel (public pages theme) ===== */
.notif-bell { background: none; color: #fff; border: none; padding: 0; font-size: 15px; cursor: pointer; position: relative; display: inline-flex; align-items: center; transition: all 0.2s; }
.notif-bell:hover { transform: translateY(-1px); box-shadow: 0 0 12px rgba(59, 108, 255, 0.35); }
.notif-bell .notif-badge { background: var(--orange); color: #0b0e1a; font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; padding: 0 6px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; }
.notification-panel { position: fixed; right: 20px; top: 60px; width: 380px; max-width: calc(100vw - 40px); background: #12152a; border: 1px solid var(--glass-border); border-radius: 20px; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5); z-index: 220; opacity: 0; transform: translateY(-8px) scale(.96); pointer-events: none; transition: opacity .2s ease, transform .2s ease; max-height: 70vh; overflow: auto; }
.notification-panel.active { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.notification-panel-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--glass-border); position: sticky; top: 0; background: #12152a; border-radius: 20px 20px 0 0; }
.notification-panel-header h4 { margin: 0; font-size: 16px; color: #fff; }
.notif-clear { background: none; border: none; color: var(--blue); font-size: 13px; cursor: pointer; }
.notification-empty { padding: 24px 16px; text-align: center; color: var(--text-muted); font-size: 14px; }
.notification-item { padding: 12px 20px; border-bottom: 1px solid var(--glass-border); cursor: pointer; display: flex; gap: 10px; align-items: flex-start; transition: background .15s ease; }
.notification-item:hover { background: rgba(59, 108, 255, 0.1); }
.notification-item.unread { background: rgba(59, 108, 255, 0.15); }
.notification-item .notif-icon { font-size: 16px; color: var(--blue); margin-top: 2px; }
.notification-item .notif-msg { font-size: 13px; color: var(--text-main); line-height: 1.4; }
.notification-item .notif-time { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.notification-item .notif-type { font-size: 10px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); }