/* ============================================
   iTOPIK - Mobile-First Navigation System
   ============================================ */

:root {
  --nav-primary: #0EA5E9;
  --nav-primary-dark: #0284C7;
  --nav-accent: #6366F1;
  --nav-primary-bg: #F0F9FF;
  --nav-bg: #FFFFFF;
  --nav-text: #0F172A;
  --nav-text-secondary: #64748B;
  --nav-text-muted: #94A3B8;
  --nav-border: #E2E8F0;
  --nav-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --nav-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --nav-shadow-lg: 0 -4px 20px rgba(0, 0, 0, 0.07);
  --nav-header-height: 64px;
  --nav-bottom-height: 64px;
  --nav-radius: 12px;
  --desktop-nav-height: 64px;
  --nav-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.6; }
}

@keyframes pillSlide {
  from { opacity: 0; transform: scaleX(0.85); }
  to { opacity: 1; transform: scaleX(1); }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(-4px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(14,165,233,0.35); }
  50% { box-shadow: 0 0 0 6px rgba(14,165,233,0); }
}

/* ============================================
   DESKTOP NAVBAR (>= 992px)
   ============================================ */
@media (max-width: 991px) {
  .desktop-nav { display: none; }
}

.desktop-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  height: var(--desktop-nav-height);
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid rgba(226,232,240,0.5);
  transition: height 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s, box-shadow 0.3s;
  will-change: height;
}

.desktop-nav::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at 16px 16px, rgba(14,165,233,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
}

.desktop-nav::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0;
  background: linear-gradient(90deg, var(--nav-primary), var(--nav-accent));
  transition: height 0.4s ease;
}

.desktop-nav.scrolled::after {
  height: 2px;
}

.desktop-nav.scrolled {
  height: 56px;
  background: rgba(255,255,255,0.88);
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

.desktop-nav-inner {
  display: flex;
  align-items: center;
  height: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

@media (min-width: 1280px) {
  .desktop-nav-inner {
    padding: 0 48px;
  }
}

.desktop-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
  position: relative;
}

.logo-dot-wrap {
  position: relative;
  width: 10px;
  height: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--nav-primary), var(--nav-accent));
  display: block;
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}

.logo-dot-glow {
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: var(--nav-primary);
  opacity: 0.2;
  filter: blur(3px);
  animation: glow-pulse 2s ease-in-out infinite;
}

.desktop-logo-text {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
}

.desktop-logo-text .i-light {
  font-weight: 300;
  color: var(--nav-text);
}

.desktop-logo-text .topik-grad {
  font-weight: 700;
  background: linear-gradient(135deg, var(--nav-primary), var(--nav-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.desktop-links {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  position: relative;
}

.nav-links-wrap {
  display: flex;
  align-items: center;
  gap: 2px;
  position: relative;
  padding: 4px;
  background: rgba(226,232,240,0.25);
  border-radius: 10px;
}

.nav-pill {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--nav-primary), var(--nav-accent));
  box-shadow: 0 1px 4px rgba(14,165,233,0.25), inset 0 1px 1px rgba(255,255,255,0.3);
  transition: left 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), width 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 0;
  pointer-events: none;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #334155;
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.2s;
  white-space: nowrap;
  z-index: 1;
  cursor: pointer;
  user-select: none;
}

.nav-link:hover {
  color: var(--nav-text);
}

.nav-link.active {
  color: white;
}

/* Profile section */
.desktop-profile {
  position: relative;
  flex-shrink: 0;
}

.profile-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px 3px 3px;
  height: 34px;
  border: 1px solid transparent;
  border-radius: 100px;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.profile-trigger::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 100px;
  padding: 1px;
  background: linear-gradient(135deg, var(--nav-primary), var(--nav-accent));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.2s;
}

.profile-trigger:hover {
  background: rgba(14,165,233,0.06);
}

.profile-trigger:hover::before {
  opacity: 1;
}

.profile-trigger:focus-visible {
  outline: 2px solid var(--nav-primary);
  outline-offset: 2px;
}

.profile-online-dot {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22C55E;
  border: 2px solid white;
  z-index: 2;
}

.profile-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--nav-primary), var(--nav-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
  text-transform: uppercase;
  position: relative;
}

.profile-avatar.has-photo {
  background-size: cover;
  background-position: center;
}

.profile-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--nav-text);
  white-space: nowrap;
  line-height: 1;
}

.profile-chevron {
  color: var(--nav-text-muted);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.profile-trigger[aria-expanded="true"] .profile-chevron {
  transform: rotate(180deg);
}

/* Profile Dropdown */
.profile-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--nav-border);
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px) scale(0.96);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1200;
  overflow: hidden;
}

.profile-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.dropdown-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
}

.dropdown-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--nav-primary), var(--nav-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  text-transform: uppercase;
}

.dropdown-avatar.has-photo {
  background-size: cover;
  background-position: center;
}

.dropdown-fullname {
  font-size: 13px;
  font-weight: 600;
  color: var(--nav-text);
  line-height: 1.2;
}

.dropdown-username {
  font-size: 11px;
  color: var(--nav-text-muted);
  margin-top: 1px;
}

.dropdown-divider {
  height: 1px;
  background: var(--nav-border);
  margin: 4px 0;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--nav-text);
  text-decoration: none;
  transition: background 0.15s;
}

.dropdown-item:hover {
  background: var(--nav-primary-bg);
}

.dropdown-item:focus-visible {
  outline: 2px solid var(--nav-primary);
  outline-offset: -2px;
}

.dropdown-icon {
  font-size: 15px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.dropdown-item-danger {
  color: #EF4444;
}

.dropdown-item-danger:hover {
  background: #FEF2F2;
}

/* Desktop actions (guest) */
.desktop-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.desktop-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}

.desktop-btn-outline {
  border: 1.5px solid var(--nav-border);
  color: var(--nav-text-secondary);
  background: transparent;
}

.desktop-btn-outline:hover {
  border-color: var(--nav-primary);
  color: var(--nav-primary);
  background: var(--nav-primary-bg);
}

.desktop-btn-primary {
  background: linear-gradient(135deg, var(--nav-primary), var(--nav-accent));
  color: #fff;
  border: none;
  box-shadow: 0 2px 8px rgba(14,165,233,0.3);
}

.desktop-btn-primary:hover {
  box-shadow: 0 4px 14px rgba(14,165,233,0.4);
  transform: translateY(-1px);
  color: #fff;
}

/* ============================================
   MOBILE HEADER
   ============================================ */
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  height: var(--nav-header-height);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
  transition: box-shadow 0.3s ease;
}

.app-header.scrolled {
  box-shadow: var(--nav-shadow-md);
}

.app-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 16px;
  max-width: 1200px;
  margin: 0 auto;
  gap: 12px;
}

.app-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Noto Sans KR', 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 900;
  color: var(--nav-text);
  text-decoration: none;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.app-logo .logo-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--nav-primary), #38BDF8);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}


.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.header-btn-outline {
  background: transparent;
  color: var(--nav-text-secondary);
  border: 1.5px solid var(--nav-border);
}

.header-btn-outline:hover {
  background: var(--nav-primary-bg);
  border-color: var(--nav-primary);
  color: var(--nav-primary);
}

.header-btn-primary {
  background: linear-gradient(135deg, var(--nav-primary), var(--nav-primary-dark));
  color: #FFFFFF;
  border: 1.5px solid transparent;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.25);
}

.header-btn-primary:hover {
  box-shadow: 0 6px 16px rgba(14, 165, 233, 0.35);
  color: #FFFFFF;
}

.notif-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: none;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  font-size: 20px;
  transition: background 0.2s ease;
  line-height: 1;
  padding: 0;
}

.notif-bell:hover {
  background: var(--nav-primary-bg);
}

/* Hamburger Button */
.hamburger-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: none;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  gap: 4px;
  padding: 0;
  transition: background 0.2s ease;
}

.hamburger-btn:hover {
  background: var(--nav-primary-bg);
}

.hamburger-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--nav-text);
  border-radius: 4px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.hamburger-btn.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Hamburger Panel */
.hamburger-panel {
  position: fixed;
  top: var(--nav-header-height);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1020;
  background: var(--nav-bg);
  padding: 16px 20px 100px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.hamburger-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.hamburger-user {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 4px 16px;
}

.hamburger-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--nav-primary), var(--nav-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
}

.hamburger-avatar.has-photo {
  background-size: cover;
  background-position: center;
}

.hamburger-user-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--nav-text);
}

.hamburger-user-handle {
  font-size: 13px;
  color: var(--nav-text-secondary);
  margin-top: 2px;
}

.hamburger-divider {
  height: 1px;
  background: var(--nav-border);
  margin: 4px 0;
}

.hamburger-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 0;
}

.hamburger-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 12px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--nav-text);
  text-decoration: none;
  transition: background 0.15s ease;
}

.hamburger-link:hover {
  background: var(--nav-primary-bg);
  color: var(--nav-primary);
}

.hamburger-link span {
  font-size: 20px;
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}

.hamburger-logout {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 12px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  color: #EF4444;
  text-decoration: none;
  transition: background 0.15s ease;
}

.hamburger-logout:hover {
  background: #FEF2F2;
}

.hamburger-logout span {
  font-size: 20px;
  width: 28px;
  text-align: center;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.app-content {
  padding-top: var(--nav-header-height);
  padding-bottom: calc(var(--nav-bottom-height) + env(safe-area-inset-bottom, 0px) + 8px);
  min-height: 100vh;
  background: #F8FAFC;
}

.app-page {
  animation: pageIn 0.25s ease;
}

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

/* ============================================
   BOTTOM NAVIGATION
   ============================================ */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  height: calc(var(--nav-bottom-height) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--nav-bg);
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.07);
  display: flex;
  align-items: flex-start;
  justify-content: space-around;
  padding-top: 8px;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 2px;
  padding: 6px 4px;
  text-decoration: none;
  color: var(--nav-text-muted);
  font-size: 11px;
  font-weight: 500;
  transition: color 0.2s ease, transform 0.15s ease;
  position: relative;
  min-width: 0;
  user-select: none;
}

.bottom-nav-item .nav-icon {
  font-size: 22px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.bottom-nav-item .nav-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.bottom-nav-item.active {
  color: var(--nav-primary);
}

.bottom-nav-item.active .nav-icon {
  transform: translateY(-1px);
}

.bottom-nav-item.active .nav-label {
  color: var(--nav-primary);
  font-weight: 700;
}

.bottom-nav-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 24px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: var(--nav-primary);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bottom-nav-item.active::before {
  transform: translateX(-50%) scaleX(1);
}

.bottom-nav-item:active {
  transform: scale(0.92);
}

/* ============================================
   GUEST PROMO
   ============================================ */
.guest-promo {
  margin: 16px;
  padding: 20px;
  background: linear-gradient(135deg, var(--nav-primary), #0284C7);
  border-radius: 16px;
  text-align: center;
  color: #FFFFFF;
}

.guest-promo-icon {
  font-size: 32px;
  display: block;
  margin-bottom: 8px;
}

.guest-promo-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 4px;
}

.guest-promo-desc {
  font-size: 13px;
  opacity: 0.85;
  margin: 0 0 16px;
  line-height: 1.5;
}

.guest-promo-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 28px;
  background: #FFFFFF;
  color: var(--nav-primary);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.guest-promo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  color: var(--nav-primary-dark);
}

.guest-promo-btn:active {
  transform: scale(0.97);
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Mobile: show mobile nav, hide desktop nav */
@media (max-width: 991.98px) {
  .desktop-nav {
    display: none !important;
  }
}

/* Desktop: show desktop nav, hide mobile nav */
@media (min-width: 992px) {
  .app-header,
  .bottom-nav,
  .hamburger-panel {
    display: none !important;
  }

  .app-content {
    padding-top: var(--desktop-nav-height);
    padding-bottom: 0;
  }
}

/* Tablet adjustments (768 - 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .app-content {
    padding-top: var(--nav-header-height);
    padding-bottom: calc(var(--nav-bottom-height) + env(safe-area-inset-bottom, 0px) + 8px);
  }

  .bottom-nav {
    max-width: 600px;
    left: 50%;
    transform: translateX(-50%);
  }

  .header-actions .header-btn {
    padding: 8px 16px;
    font-size: 13px;
  }
}

/* Small mobile */
@media (max-width: 767.98px) {
  .app-header-inner {
    padding: 0 12px;
  }

  .header-actions .header-btn {
    padding: 6px 10px;
    font-size: 11px;
  }

  .bottom-nav-item .nav-icon {
    font-size: 20px;
  }

  .bottom-nav-item .nav-label {
    font-size: 9px;
  }
}

/* Safe area for notched phones */
@supports (padding-top: env(safe-area-inset-top)) {
  .app-header {
    padding-top: env(safe-area-inset-top);
    height: calc(var(--nav-header-height) + env(safe-area-inset-top));
  }

  .hamburger-panel {
    top: calc(var(--nav-header-height) + env(safe-area-inset-top));
  }
}

/* Profile page mobile styles */
.profile-mobile-page {
  padding: 0;
  min-height: calc(100vh - var(--nav-header-height) - var(--nav-bottom-height) - env(safe-area-inset-bottom, 0px));
}

.profile-mobile-header {
  background: linear-gradient(135deg, var(--nav-primary), #0284C7, #0369A1);
  padding: 32px 20px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.profile-mobile-header::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -30%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}

.profile-mobile-header::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -20%;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
}

.profile-mobile-avatar {
  position: relative;
  z-index: 1;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 12px;
  background: rgba(255, 255, 255, 0.2);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 28px;
  font-weight: 700;
  border: 3px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.profile-mobile-name {
  position: relative;
  z-index: 1;
  font-size: 20px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 2px;
}

.profile-mobile-username {
  position: relative;
  z-index: 1;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
  font-weight: 500;
}

.profile-mobile-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 0 16px;
  margin-top: -24px;
  position: relative;
  z-index: 2;
}

.profile-mobile-stat-card {
  background: var(--nav-bg);
  border-radius: 14px;
  padding: 16px 14px;
  text-align: center;
  box-shadow: var(--nav-shadow-sm);
  border: 1px solid var(--nav-border);
}

.profile-mobile-stat-icon {
  font-size: 20px;
  display: block;
  margin-bottom: 6px;
}

.profile-mobile-stat-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--nav-text);
  line-height: 1.2;
  display: block;
}

.profile-mobile-stat-label {
  font-size: 11px;
  color: var(--nav-text-muted);
  font-weight: 500;
  display: block;
  margin-top: 2px;
}

.profile-mobile-info {
  padding: 20px 16px;
}

.profile-mobile-section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--nav-text);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.profile-mobile-detail-list {
  background: var(--nav-bg);
  border-radius: 14px;
  border: 1px solid var(--nav-border);
  overflow: hidden;
}

.profile-mobile-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  border-bottom: 1px solid var(--nav-border);
}

.profile-mobile-detail-row:last-child {
  border-bottom: none;
}

.profile-mobile-detail-label {
  font-size: 13px;
  color: var(--nav-text-secondary);
  font-weight: 500;
}

.profile-mobile-detail-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--nav-text);
  text-align: right;
}

.profile-mobile-actions {
  padding: 8px 16px 24px;
}

.profile-mobile-logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  background: var(--nav-bg);
  border: 1.5px solid #FECACA;
  color: #EF4444;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.profile-mobile-logout-btn:hover {
  background: #FEF2F2;
  border-color: #FCA5A5;
}

@media (min-width: 768px) {
  .profile-mobile-stats {
    grid-template-columns: repeat(4, 1fr);
    max-width: 600px;
    margin: -24px auto 0;
  }

  .profile-mobile-info {
    max-width: 600px;
    margin: 0 auto;
  }

  .profile-mobile-actions {
    max-width: 600px;
    margin: 0 auto;
  }
}

@keyframes skeleton-pulse {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}

.nav-skeleton {
  animation: skeleton-pulse 1.5s ease-in-out infinite;
  background: linear-gradient(90deg, #E2E8F0 25%, #F1F5F9 50%, #E2E8F0 75%);
  background-size: 200% 100%;
}


