/**
 * PlaceAI Native Mobile App Design System
 * Rebuilt from scratch for visual excellence, clean mobile hierarchy, and native app aesthetics.
 */

/* Prevent horizontal overflow across the entire app */
html, body {
  max-width: 100vw !important;
  overflow-x: hidden !important;
  touch-action: pan-y !important;
  -webkit-tap-highlight-color: transparent !important;
  box-sizing: border-box !important;
}

*, *::before, *::after {
  box-sizing: border-box !important;
}

/* ===================================================
   DESKTOP DEFAULT RULES (Back buttons hidden on desktop)
   =================================================== */
.chat-back-to-dashboard-btn,
.wp-mobile-back-btn,
.mobile-section-switcher,
.mobile-app-bottom-nav,
.mobile-feature-hub {
  display: none;
}

.community-mode-bar {
  display: flex;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
  box-sizing: border-box;
}

.community-mode-bar .mode-tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s ease;
}

.community-mode-bar .mode-tab-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.community-mode-bar .mode-tab-btn.active {
  background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%);
  color: #ffffff;
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.4);
}

.community-mode-bar .mode-tab-btn.ai-active {
  background: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
  color: #ffffff;
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
}

/* ===================================================
   MOBILE APPSHELL (max-width: 768px)
   =================================================== */
@media (max-width: 768px) {
  /* 1. NATIVE TOP APP BAR */
  .header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: calc(54px + env(safe-area-inset-top, 0px)) !important;
    padding: env(safe-area-inset-top, 0px) 12px 0 12px !important;
    z-index: 10000 !important;
    background: rgba(10, 15, 29, 0.96) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    display: flex !important;
    align-items: center !important;
  }

  .header-container {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
  }

  .logo-section {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }

  .hamburger-menu {
    width: 34px !important;
    height: 34px !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    cursor: pointer !important;
  }

  .dashboard-header-logo,
  .logo-section img {
    height: 26px !important;
    width: auto !important;
    max-width: 110px !important;
    object-fit: contain !important;
  }

  .header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
  }

  .header-icon-btn,
  .header-chat-btn,
  .btn-logout {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #e2e8f0 !important;
    cursor: pointer !important;
    position: relative !important;
    transition: transform 0.15s ease !important;
  }

  .header-icon-btn:active,
  .header-chat-btn:active,
  .btn-logout:active {
    transform: scale(0.92) !important;
  }

  .header-chat-btn span:not(.wp-header-unread-badge),
  .btn-logout span {
    display: none !important;
  }

  .update-icon-btn {
    color: #c084fc !important;
    background: rgba(168, 85, 247, 0.15) !important;
    border-color: rgba(168, 85, 247, 0.4) !important;
  }

  .chat-icon-btn {
    color: #38bdf8 !important;
    background: rgba(56, 189, 248, 0.15) !important;
    border-color: rgba(56, 189, 248, 0.4) !important;
  }

  .logout-icon-btn {
    color: #f87171 !important;
    background: rgba(248, 113, 113, 0.15) !important;
    border-color: rgba(248, 113, 113, 0.4) !important;
  }

  /* 2. MAIN CONTAINER & SPACING */
  .main-container {
    padding-top: calc(env(safe-area-inset-top, 0px) + 62px) !important;
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 96px) !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    width: 100vw !important;
    max-width: 100vw !important;
  }

  .dashboard-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
  }

  /* 3. STREAMLINED PROFILE HERO CARD */
  .profile-card {
    border-radius: 20px !important;
    background: rgba(15, 23, 42, 0.92) !important;
    border: 1px solid rgba(139, 92, 246, 0.3) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
    margin-bottom: 10px !important;
    overflow: hidden !important;
  }

  .profile-cover-banner {
    height: 48px !important;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 60%, #0f172a 100%) !important;
  }

  .cover-badge-top {
    display: none !important;
  }

  .cover-edit-btn {
    top: 8px !important;
    right: 10px !important;
    padding: 3px 8px !important;
    font-size: 10.5px !important;
    border-radius: 8px !important;
  }

  .profile-card-body {
    padding: 0 14px 14px 14px !important;
  }

  .profile-avatar-wrapper {
    margin-top: -24px !important;
    margin-bottom: 6px !important;
  }

  .profile-avatar-large {
    width: 52px !important;
    height: 52px !important;
    font-size: 18px !important;
    border: 2.5px solid #0f172a !important;
  }

  .profile-name {
    font-size: 17px !important;
    font-weight: 800 !important;
    margin-bottom: 2px !important;
  }

  .profile-role-tag {
    font-size: 11.5px !important;
    margin-bottom: 8px !important;
  }

  .profile-chips-ribbon {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 5px !important;
    margin-bottom: 8px !important;
  }

  .profile-chip {
    font-size: 10.5px !important;
    padding: 3px 8px !important;
    border-radius: 6px !important;
  }

  .profile-availability-glow {
    display: inline-flex !important;
    font-size: 11px !important;
    padding: 3px 10px !important;
    margin-bottom: 10px !important;
    border-radius: 8px !important;
  }

  .profile-connect-strip {
    display: flex !important;
    gap: 8px !important;
    margin-bottom: 10px !important;
  }

  .connect-circle {
    width: 30px !important;
    height: 30px !important;
    font-size: 12px !important;
  }

  .profile-divider {
    margin: 8px 0 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
  }

  .profile-stats-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px !important;
    margin-bottom: 10px !important;
  }

  .stat-item {
    padding: 6px 3px !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
  }

  .stat-value {
    font-size: 15px !important;
    font-weight: 800 !important;
  }

  .stat-label {
    font-size: 9.5px !important;
    color: #94a3b8 !important;
  }

  .profile-actions {
    display: flex !important;
    gap: 8px !important;
    margin-top: 6px !important;
  }

  .profile-actions .btn-primary {
    flex: 1 !important;
    height: 38px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
  }

  /* 4. HIDE REDUNDANT CONTACT CARD ON MOBILE */
  .contact-info {
    display: none !important;
  }

  /* 5. MOBILE 4-CARD QUICK LAUNCH HUB */
  .mobile-feature-hub {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    margin-bottom: 12px !important;
  }

  .feature-hub-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.9) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 16px !important;
    padding: 12px 10px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    text-decoration: none !important;
    color: #ffffff !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35) !important;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease !important;
  }

  .feature-hub-card:active {
    transform: scale(0.96) !important;
    background: rgba(30, 41, 59, 0.95) !important;
    border-color: rgba(139, 92, 246, 0.4) !important;
  }

  .hub-card-icon {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
  }

  .hub-icon-code {
    background: linear-gradient(135deg, #0ea5e9, #0284c7) !important;
    color: #ffffff !important;
  }

  .hub-icon-resume {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed) !important;
    color: #ffffff !important;
  }

  .hub-icon-interview {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: #ffffff !important;
  }

  .hub-icon-chat {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    color: #ffffff !important;
  }

  .hub-card-text {
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }

  .hub-card-title {
    font-size: 12.5px !important;
    font-weight: 700 !important;
    color: #f8fafc !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .hub-card-sub {
    font-size: 10px !important;
    color: #94a3b8 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  /* 6. MOBILE SECTION SWITCHER TABS */
  .mobile-section-switcher {
    display: flex !important;
    gap: 6px !important;
    margin-bottom: 12px !important;
    padding: 4px !important;
    background: rgba(15, 23, 42, 0.94) !important;
    border: 1px solid rgba(51, 65, 85, 0.6) !important;
    border-radius: 14px !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    position: sticky !important;
    top: calc(env(safe-area-inset-top, 0px) + 54px) !important;
    z-index: 999 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
  }

  .mob-sec-tab {
    flex: 1 !important;
    padding: 8px 10px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
    border: none !important;
    background: transparent !important;
    color: #94a3b8 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
  }

  .mob-sec-tab.active {
    background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 10px rgba(124, 58, 237, 0.5) !important;
  }

  /* 7. CARD PADDING & CONTENT CLEANUP */
  .card {
    padding: 14px 12px !important;
    border-radius: 18px !important;
    margin-bottom: 12px !important;
    width: 100% !important;
  }

  .section-header {
    margin-bottom: 10px !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
  }

  .section-title {
    font-size: 15px !important;
  }

  /* 8. COMMUNITY CHAT FULLSCREEN NATIVE EXPERIENCE */
  .community-chat-overlay {
    padding: 0 !important;
    align-items: stretch !important;
    justify-content: stretch !important;
  }

  .community-chat-card {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100% !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    border: none !important;
    margin: 0 !important;
  }

  .community-chat-header {
    padding: 10px 12px !important;
    gap: 8px !important;
    height: calc(52px + env(safe-area-inset-top, 0px)) !important;
    padding-top: env(safe-area-inset-top, 0px) !important;
  }

  .chat-back-to-dashboard-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    font-size: 15px !important;
    margin-right: 6px !important;
    cursor: pointer !important;
  }

  .community-header-sub {
    display: none !important;
  }

  .community-header-titles h3 {
    font-size: 15px !important;
    margin: 0 !important;
  }

  .community-mode-bar {
    width: 100% !important;
    display: flex !important;
    gap: 6px !important;
    padding: 8px 12px !important;
    background: rgba(15, 23, 42, 0.98) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-sizing: border-box !important;
  }

  .community-mode-bar .mode-tab-btn {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    padding: 8px 6px !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    text-align: center !important;
    justify-content: center !important;
    border-radius: 10px !important;
    white-space: nowrap !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #94a3b8 !important;
  }

  .community-mode-bar .mode-tab-btn.active {
    background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%) !important;
    color: #ffffff !important;
    border-color: rgba(168, 85, 247, 0.5) !important;
    box-shadow: 0 2px 10px rgba(124, 58, 237, 0.4) !important;
  }

  .community-mode-bar .mode-tab-btn.ai-active {
    background: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%) !important;
    color: #ffffff !important;
    border-color: rgba(56, 189, 248, 0.5) !important;
    box-shadow: 0 2px 10px rgba(2, 132, 199, 0.4) !important;
  }

  /* WhatsApp Single Pane Direct Chat */
  .direct-view {
    display: flex !important;
    width: 100% !important;
    height: 100% !important;
    position: relative !important;
    overflow: hidden !important;
    flex-direction: row !important;
  }

  .direct-user-list {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 100% !important;
    display: flex !important;
    border-right: none !important;
  }

  .direct-thread-pane {
    display: none !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 100% !important;
  }

  .direct-view.mobile-thread-open .direct-user-list {
    display: none !important;
  }

  .direct-view.mobile-thread-open .direct-thread-pane {
    display: flex !important;
  }

  .wp-mobile-back-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.1) !important;
    color: #e2e8f0 !important;
    margin-right: 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    cursor: pointer !important;
  }

  /* 9. GITHUB HEATMAP SCROLL CONTAINMENT */
  .github-heatmap-card {
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .heatmap-scroll {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    width: 100% !important;
  }

  /* 10. WEBRTC CALL OVERLAYS */
  .placeai-call-overlay {
    padding: 10px !important;
  }

  .placeai-voice-card,
  .placeai-video-card {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 20px !important;
    padding: 22px 16px !important;
  }

  .placeai-video-streams {
    height: 320px !important;
    max-height: 48vh !important;
  }

  /* 11. NATIVE BOTTOM NAVIGATION BAR */
  .mobile-app-bottom-nav {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: calc(64px + env(safe-area-inset-bottom, 0px)) !important;
    padding-bottom: env(safe-area-inset-bottom, 0px) !important;
    background: rgba(15, 23, 42, 0.96) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.6) !important;
    z-index: 99999 !important;
    justify-content: space-around !important;
    align-items: center !important;
  }

  .mob-nav-item {
    flex: 1 !important;
    background: transparent !important;
    border: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    color: #94a3b8 !important;
    padding: 6px 2px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
  }

  .mob-nav-icon {
    font-size: 18px !important;
    margin-bottom: 3px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .mob-nav-label {
    font-size: 10.5px !important;
    font-weight: 600 !important;
    letter-spacing: -0.2px !important;
  }

  .mob-nav-item.active {
    color: #a78bfa !important;
  }

  .mob-nav-item.active .mob-nav-icon {
    transform: translateY(-2px) !important;
    color: #a78bfa !important;
    filter: drop-shadow(0 0 8px rgba(167, 139, 250, 0.7)) !important;
  }

  .mob-nav-chat {
    position: relative !important;
  }

  .mob-nav-chat .mob-nav-icon-bubble {
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #7c3aed, #4f46e5) !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    margin-top: -6px !important;
    margin-bottom: 2px !important;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.45) !important;
    border: 2px solid #0f172a !important;
    position: relative !important;
    transition: transform 0.2s ease !important;
  }

  .mob-nav-chat:active .mob-nav-icon-bubble {
    transform: scale(0.92) !important;
  }

  .mob-chat-badge {
    position: absolute !important;
    top: -2px !important;
    right: -2px !important;
    background: #ef4444 !important;
    color: white !important;
    font-size: 9px !important;
    font-weight: 800 !important;
    border-radius: 10px !important;
    padding: 1px 5px !important;
    border: 1.5px solid #0a0f1d !important;
  }
}

/* ===================================================
   UNIVERSAL APP-WIDE ELEMENTS & ICONS
   =================================================== */
.app-topbar-back-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  color: #f1f5f9 !important;
  text-decoration: none !important;
  font-size: 14px !important;
  cursor: pointer !important;
  margin-right: 6px !important;
  transition: all 0.2s ease !important;
  flex-shrink: 0 !important;
}

.app-topbar-back-btn:hover,
.app-topbar-back-btn:active {
  background: rgba(124, 58, 237, 0.35) !important;
  border-color: rgba(168, 85, 247, 0.6) !important;
  color: #ffffff !important;
  transform: scale(0.94) !important;
}

.hub-icon-career {
  background: linear-gradient(135deg, #f43f5e, #be123c) !important;
  color: #ffffff !important;
}

.hub-icon-skill {
  background: linear-gradient(135deg, #6366f1, #4338ca) !important;
  color: #ffffff !important;
}

.hub-icon-learning {
  background: linear-gradient(135deg, #14b8a6, #0f766e) !important;
  color: #ffffff !important;
}

.hub-icon-job {
  background: linear-gradient(135deg, #06b6d4, #0e7490) !important;
  color: #ffffff !important;
}

.hub-card-arrow {
  margin-left: auto !important;
  color: rgba(255, 255, 255, 0.3) !important;
  font-size: 11px !important;
}

@media (max-width: 768px) {
  .header,
  .top-header {
    height: calc(54px + env(safe-area-inset-top, 0px)) !important;
    padding: env(safe-area-inset-top, 0px) 12px 0 12px !important;
    display: flex !important;
    align-items: center !important;
  }

  .header-container {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  .logo-section {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
  }

  .logo-section img,
  .logo-link img {
    height: 26px !important;
    width: auto !important;
    max-width: 100px !important;
    object-fit: contain !important;
  }

  .brand-logo-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
  }

  .brand-name-tag {
    font-size: 15px !important;
    font-weight: 800 !important;
    background: linear-gradient(135deg, #ffffff 40%, #c084fc 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
  }
}

/* ===================================================
   12. PREMIUM AI PLACEMENT ACTION HUB & DASHBOARD HERO
   =================================================== */

/* Hero Banner */
.dashboard-hero-banner {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(139, 92, 246, 0.28);
  border-radius: 20px;
  padding: 24px 28px;
  margin-bottom: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  position: relative;
  overflow: hidden;
}

.dashboard-hero-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.dashboard-hero-banner::after {
  content: '';
  position: absolute;
  bottom: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-banner-content {
  position: relative;
  z-index: 2;
  flex: 1;
}

.hero-banner-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: rgba(124, 58, 237, 0.18);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 700;
  color: #c084fc;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px #34d399;
  animation: pulseBeacon 2s infinite;
}

@keyframes pulseBeacon {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; filter: drop-shadow(0 0 4px #34d399); }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.hero-banner-title {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 6px 0;
  letter-spacing: -0.5px;
}

.hero-banner-title .gradient-text {
  background: linear-gradient(135deg, #38bdf8 0%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-banner-subtitle {
  font-size: 13.5px;
  color: #94a3b8;
  margin: 0;
  line-height: 1.5;
  max-width: 680px;
}

.hero-banner-stats {
  display: flex;
  gap: 12px;
  position: relative;
  z-index: 2;
}

.hero-stat-pill {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 110px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.hero-stat-pill:hover {
  transform: translateY(-2px);
  border-color: rgba(168, 85, 247, 0.4);
}

.hero-stat-pill i {
  font-size: 20px;
}

.hero-stat-num {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  display: block;
  line-height: 1.2;
}

.hero-stat-label {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
}

/* AI Action Command Hub */
.action-command-hub {
  margin-bottom: 22px;
}

.action-hub-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.action-hub-title {
  font-size: 15px;
  font-weight: 700;
  color: #f1f5f9;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.action-hub-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 12px;
}

.action-hub-card {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 18px 16px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.action-hub-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  opacity: 0.8;
  transition: height 0.25s ease, opacity 0.25s ease;
}

.action-hub-card.card-code::before {
  background: linear-gradient(90deg, #38bdf8, #2563eb);
}

.action-hub-card.card-resume::before {
  background: linear-gradient(90deg, #a855f7, #6366f1);
}

.action-hub-card.card-interview::before {
  background: linear-gradient(90deg, #34d399, #059669);
}

.action-hub-card.card-community::before {
  background: linear-gradient(90deg, #fbbf24, #ea580c);
}

.action-hub-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5), 0 0 20px rgba(124, 58, 237, 0.2);
}

.action-hub-card:hover::before {
  height: 4px;
  opacity: 1;
}

.action-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.action-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.card-code .action-card-icon {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
}

.card-resume .action-card-icon {
  background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
}

.card-interview .action-card-icon {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.card-community .action-card-icon {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
}

.action-card-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 10px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.card-code .action-card-badge {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.card-resume .action-card-badge {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.card-interview .action-card-badge {
  background: rgba(52, 211, 153, 0.15);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.card-community .action-card-badge {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.action-card-body h3 {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 4px 0;
}

.action-card-body p {
  font-size: 12px;
  color: #94a3b8;
  margin: 0 0 10px 0;
  line-height: 1.4;
}

.action-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 8px;
  font-size: 11px;
  font-weight: 600;
  color: #cbd5e1;
}

.action-card-footer i {
  transition: transform 0.2s ease;
}

.action-hub-card:hover .action-card-footer i {
  transform: translateX(3px);
  color: #38bdf8;
}

/* Secondary Quick Tools Ribbon */
.secondary-tools-ribbon {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.secondary-tool-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.secondary-tool-pill:hover {
  background: rgba(124, 58, 237, 0.15);
  border-color: rgba(168, 85, 247, 0.4);
  color: #ffffff;
  transform: translateY(-1px);
}

/* Responsive tweaks for Action Hub */
@media (max-width: 1024px) {
  .action-hub-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .dashboard-hero-banner {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 16px 14px !important;
    margin-bottom: 12px !important;
    border-radius: 16px !important;
  }
  .hero-banner-title {
    font-size: 18px !important;
  }
  .hero-banner-subtitle {
    font-size: 12px !important;
  }
  .hero-banner-stats {
    width: 100% !important;
    justify-content: space-between !important;
    gap: 6px !important;
    margin-top: 10px !important;
  }
  .hero-stat-pill {
    flex: 1 !important;
    padding: 6px 10px !important;
    min-width: auto !important;
  }
  .hero-stat-num {
    font-size: 14px !important;
  }
  .hero-stat-label {
    font-size: 9.5px !important;
  }
  .action-hub-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  .action-hub-card {
    padding: 12px 10px !important;
    border-radius: 14px !important;
  }
  .action-card-icon {
    width: 36px !important;
    height: 36px !important;
    font-size: 16px !important;
  }
  .action-card-body h3 {
    font-size: 13px !important;
  }
  .action-card-body p {
    font-size: 10.5px !important;
    margin-bottom: 6px !important;
  }
  .action-card-footer {
    font-size: 10px !important;
  }
}

@media (max-width: 480px) {
  .action-hub-grid {
    grid-template-columns: 1fr !important;
  }
}
