/*!*****************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../Aegis Gateway/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[15].oneOf[10].use[2]!../../Aegis Gateway/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[15].oneOf[10].use[3]!./src/app/globals.css ***!
  \*****************************************************************************************************************************************************************************************************************************************************************************************************/
:root {
  --bg-primary: #050711;
  --bg-surface: #0a0e1c;
  --bg-card: rgba(14, 19, 36, 0.75);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(168, 85, 247, 0.45);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-purple: #a855f7;
  --accent-cyan: #06b6d4;
  --accent-amber: #f59e0b;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(168, 85, 247, 0.15), transparent),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(6, 182, 212, 0.1), transparent),
    linear-gradient(to bottom, transparent, rgba(5, 7, 17, 0.8));
  background-attachment: fixed;
}

.gallery-container {
  max-width: 1480px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Header */
.gallery-header {
  border-bottom: 1px solid var(--border-color);
  background: rgba(10, 14, 28, 0.75);
  backdrop-filter: blur(12px);
  padding: 0.85rem 2rem;
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #a855f7, #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.35);
  color: white;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
}

.badge-tag {
  font-family: ui-monospace, monospace;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
  margin-left: 0.5rem;
}

.brand-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-purple {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 1rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  background: linear-gradient(135deg, #a855f7, #6366f1);
  color: white;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.35);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-purple:hover {
  filter: brightness(1.15);
}

/* Wing Navigation */
.wings-bar {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
}

.wing-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(14, 19, 36, 0.6);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.wing-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

.wing-btn.active {
  background: linear-gradient(135deg, #a855f7, #6366f1);
  color: white;
  border-color: var(--accent-purple);
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.35);
}

/* 3D Spatial Viewport Stage */
.spatial-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 20px;
  background: linear-gradient(to bottom, #090e1c, #02040a);
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
}

.stage-ambient-glow {
  position: absolute;
  inset: 0;
  opacity: 0.75;
  pointer-events: none;
  transition: all 0.6s ease;
}

.stage-radial-shadow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 0%, #03050c 85%);
  pointer-events: none;
}

.stage-floor-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(30, 41, 59, 0.2) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(30, 41, 59, 0.2) 1px, transparent 1px);
  background-size: 4rem 4rem;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, #000 70%, transparent 100%);
  pointer-events: none;
}

.stage-top-bar {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stage-tag {
  font-family: ui-monospace, monospace;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  background: rgba(5, 7, 17, 0.85);
  border: 1px solid var(--border-color);
  color: #cbd5e1;
}

.artwork-center {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: auto 0;
}

.artwork-frame {
  max-width: 540px;
  width: 100%;
  background: linear-gradient(to bottom, rgba(30, 41, 59, 0.8), rgba(5, 7, 17, 0.95));
  padding: 1rem;
  border-radius: 18px;
  border: 4px solid rgba(120, 53, 15, 0.5);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  transition: transform 0.3s ease, border-color 0.3s;
}

.artwork-frame:hover {
  border-color: rgba(245, 158, 11, 0.7);
}

.canvas-mock {
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  background: linear-gradient(135deg, #1e1b4b, #0f172a, #3b0764);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.stage-bottom-bar {
  position: relative;
  z-index: 10;
  background: rgba(5, 7, 17, 0.85);
  backdrop-filter: blur(12px);
  border-radius: 14px;
  border: 1px solid var(--border-color);
  padding: 0.85rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Companion Links */
.companions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .companions-grid {
    grid-template-columns: 1fr;
  }
}

.companion-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.2rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s;
}

.companion-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

