.app-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--glass-bg);
  border-bottom: 1px solid var(--glass-border);
  padding: 12px 0;
  border-radius: 0 !important;
  box-shadow: 0 4px 30px rgba(0,0,0,0.15);
}
.header-container {
  width: 90%;
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-text {
  font-size: 1.35rem;
  margin: 0;
}
.header-nav {
  display: none;
  gap: 15px;
}
.header-nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  transition: var(--transition);
}
.header-nav-link:hover {
  color: var(--gold-light);
}
.header-nav-link.active {
  background: var(--gold-dim);
  color: var(--gold-primary);
  border: 1px solid rgba(212,175,55,0.1);
}

@media (min-width: 768px) {
  .header-nav {
    display: flex;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-link-btn {
  display: none;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  gap: 4px;
}
.header-link-btn i {
  width: 14px;
  height: 14px;
}
@media (min-width: 992px) {
  .header-link-btn {
    display: inline-flex;
  }
}

/* Mobile Navigation Drawer/Bar */
.navigation-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
  border-top: 1px solid var(--glass-border);
  background: var(--glass-bg);
  z-index: 1001;
  border-radius: 0 !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 600;
  gap: 3px;
  transition: var(--transition);
}
.nav-item.active {
  color: var(--gold-primary);
  transform: translateY(-2px);
}
.nav-label {
  display: inline;
}

@media (min-width: 768px) {
  .navigation-bar {
    display: none;
  }
}

.main-content {
  flex-grow: 1;
  width: 90%;
  max-width: 1080px;
  margin: 30px auto 100px;
}

.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--glass-shadow);
  padding: 24px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.glass-panel:hover {
  border-color: rgba(212, 175, 55, 0.18);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.2);
}

.view-section {
  display: none;
  opacity: 0;
  transform: translateY(12px) scale(0.995);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.view-section.active {
  display: block;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.hero-section {
  text-align: center;
  margin: 20px 0 35px;
}
.home-main-title {
  font-size: 2.6rem;
  margin-bottom: 8px;
}
.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  font-family: 'Amiri', serif;
}

/* Modal Overlays & Cards */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.modal-card {
  width: 90%;
  max-width: 520px;
  background: var(--glass-bg);
  border: 1px solid var(--gold-primary);
  box-shadow: 0 20px 50px rgba(0,0,0,0.85);
  border-radius: var(--radius-md);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.active .modal-card {
  transform: scale(1);
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 15px;
  margin-bottom: 15px;
}
.modal-header h3 {
  font-size: 1.15rem;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  gap: 8px;
}
.close-modal-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
  transition: var(--transition);
}
.close-modal-btn:hover {
  color: var(--gold-primary);
}
.modal-body {
  max-height: 400px;
  overflow-y: auto;
  padding-right: 5px;
}

/* User Guide Steps */
.guide-steps-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.guide-step-item {
  display: flex;
  gap: 12px;
  background: rgba(0,0,0,0.15);
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
}
.step-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gold-primary);
  color: #0b0d0c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8rem;
  flex-shrink: 0;
}
.guide-step-item h4 {
  font-size: 0.9rem;
  color: var(--gold-primary);
  margin-bottom: 4px;
}
.guide-step-item p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}
