/* ==========================================================================
   FUTURISTIC OS BENTO RESUME / PORTFOLIO STYLESHEET
   Dark Mode Aesthetic • Glassmorphism • Firebase Cloud Sync Architecture
   ========================================================================== */

/* 1. ROOT VARIABLES & DESIGN SYSTEM TOKENS */
:root {
  --bg-pure: #0A0A0A;
  --bg-card: #141414;
  --bg-card-secondary: #1A1A1A;
  --bg-card-surface: rgba(20, 20, 20, 0.85);
  --bg-pill: #1E1E1E;
  --bg-pill-hover: #282828;
  --bg-input: #121212;
  
  --border-line: rgba(255, 255, 255, 0.15);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-bright: rgba(255, 255, 255, 0.35);
  
  --text-pure: #FFFFFF;
  --text-muted: #A0A0A0;
  --text-faint: #606060;
  
  --accent-green: #4AF626;
  --accent-blue: #38BDF8;
  --accent-red: #FF5F56;
  --accent-yellow: #FFBD2E;
  
  --radius-card: 20px;
  --radius-pill: 9999px;
  --radius-inner: 14px;
  --radius-input: 10px;
  
  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --transition-smooth: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 2. BASE RESETS & GLOBAL SETUP */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-pure);
  color: var(--text-pure);
  font-family: var(--font-body);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem 1.5rem;
  position: relative;
  overflow-x: hidden;
}

/* Ambient radial glow */
.os-background-glow {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1000px;
  height: 1000px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.035) 0%, rgba(10, 10, 10, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

/* 3. OS WINDOW CONTAINER */
.os-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
}

.os-window-frame {
  background: linear-gradient(180deg, #121212 0%, #0D0D0D 100%);
  border: 1px solid var(--border-line);
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.85),
              0 0 0 1px rgba(255, 255, 255, 0.05),
              inset 0 1px 0 rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: var(--transition-smooth);
}

/* 4. OS TITLEBAR HEADER */
.os-titlebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.75rem 0.25rem 0.75rem;
  user-select: none;
}

.os-title-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Secret trigger cursor pointer on hover */
.os-indicator-dot {
  width: 7px;
  height: 7px;
  background-color: #FFFFFF;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
  animation: pulse-dot 2.5s infinite ease-in-out;
  cursor: pointer;
}

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

.os-title-text {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--text-pure);
  text-transform: uppercase;
}

.os-title-text .divider {
  color: var(--text-faint);
  margin: 0 0.25rem;
}

.os-title-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* 3-Dot Window Controls in Pill Container */
.os-controls-pill {
  background: #181818;
  border: 1px solid var(--border-line);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.os-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background-color: #707070;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.os-controls-pill:hover .dot-close {
  background-color: #FF5F56;
}
.os-controls-pill:hover .dot-minimize {
  background-color: #FFBD2E;
}
.os-controls-pill:hover .dot-maximize {
  background-color: #27C93F;
}

/* 5. BENTO CANVAS & CARDS LAYOUT */
.bento-canvas {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.bento-card {
  background: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-card-secondary) 100%);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1),
              0 10px 30px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.3s ease, 
              box-shadow 0.3s ease;
}

.bento-card:hover {
  transform: scale(1.008);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18),
              0 16px 40px rgba(0, 0, 0, 0.6);
}

/* 6. SECTION 1: HERO BENTO CARD */
.hero-card {
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.75rem;
  align-items: stretch;
}

/* Left Column: Portrait Container */
.hero-portrait-container {
  position: relative;
  background: #0E0E0E;
  border: 1px solid var(--border-line);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 290px;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
}

.portrait-image-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portrait-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.1) brightness(0.95);
  transition: transform 0.4s ease;
}

.portrait-svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.1) brightness(0.95);
  transition: transform 0.4s ease;
}

.hero-portrait-container:hover .portrait-svg,
.hero-portrait-container:hover img {
  transform: scale(1.03);
}

.portrait-badge {
  position: absolute;
  bottom: 12px;
  background: rgba(10, 10, 10, 0.85);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.75rem;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #E0E0E0;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  backdrop-filter: blur(8px);
}

.live-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
  animation: pulse-dot 2s infinite ease-in-out;
}

/* Right Column: Hero Info */
.hero-info-column {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
}

/* Top Row: Pill Badge & Search Button */
.hero-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.role-pill {
  background: linear-gradient(180deg, #222222 0%, #161616 100%);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-pill);
  padding: 0.55rem 1.4rem;
  display: inline-flex;
  align-items: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.role-text {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--text-pure);
  text-transform: uppercase;
}

.search-pill-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(180deg, #222222 0%, #161616 100%);
  border: 1px solid var(--border-line);
  color: var(--text-pure);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: var(--transition-smooth);
}

.search-pill-btn svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.2;
}

.search-pill-btn:hover {
  background: #2C2C2C;
  border-color: var(--border-bright);
  transform: scale(1.06);
}

/* Middle Row: Name & Bio */
.hero-middle-row {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.hero-name {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.1;
  color: var(--text-pure);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.name-cursor {
  color: var(--text-muted);
  animation: blink-cursor 1.1s infinite;
  margin-left: 2px;
}

@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-bio {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
  font-weight: 400;
}

/* Bottom Row: Wide Contact Email Pill */
.hero-bottom-row {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.contact-email-pill {
  background: linear-gradient(180deg, #1C1C1C 0%, #121212 100%);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-pill);
  padding: 0.6rem 1.25rem 0.6rem 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--text-pure);
  text-decoration: none;
  font-size: 0.85rem;
  font-family: var(--font-body);
  position: relative;
  transition: var(--transition-smooth);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  max-width: 100%;
}

.contact-email-pill:hover {
  background: linear-gradient(180deg, #242424 0%, #181818 100%);
  border-color: var(--border-bright);
}

.pill-icon-box {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #252525;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-pure);
}

.pill-icon-box svg {
  width: 14px;
  height: 14px;
}

.email-text {
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pill-action-icon {
  display: flex;
  align-items: center;
  color: var(--text-muted);
  margin-left: auto;
}

.pill-action-icon svg {
  width: 14px;
  height: 14px;
}

.check-icon {
  display: none;
  color: var(--accent-green);
}

.contact-email-pill.copied .copy-icon {
  display: none;
}

.contact-email-pill.copied .check-icon {
  display: inline-block;
}

/* Tooltip on copied */
.copied-tooltip {
  position: absolute;
  top: -34px;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #FFFFFF;
  color: #000000;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.contact-email-pill.copied .copied-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.hero-socials-wrap {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.social-icon-pill {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(180deg, #1C1C1C 0%, #121212 100%);
  border: 1px solid var(--border-line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-pure);
  transition: var(--transition-smooth);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.social-icon-pill:hover {
  background: linear-gradient(180deg, #242424 0%, #181818 100%);
  border-color: var(--border-bright);
  transform: scale(1.1);
  color: var(--accent-blue);
}

.social-icon-pill svg {
  width: 18px;
  height: 18px;
}

/* 7. SECTION 2: MAIN CONTENT BENTO CARD */
.main-content-card {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Section Title Header with Line and 6-Dot Matrix */
.section-title-wrapper {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.25rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-pure);
  text-transform: uppercase;
  white-space: nowrap;
}

.title-line {
  flex-grow: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border-line) 0%, rgba(255, 255, 255, 0.03) 100%);
}

/* 6-Dot Matrix Icon */
.dot-matrix {
  display: grid;
  grid-template-columns: repeat(3, 4px);
  grid-template-rows: repeat(2, 4px);
  gap: 3px;
  align-items: center;
  opacity: 0.7;
}

.dot-matrix span {
  width: 3.5px;
  height: 3.5px;
  background-color: var(--text-pure);
  border-radius: 50%;
}

/* Top Split Grid: 2-Columns */
.main-two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.25rem;
}

.content-col {
  display: flex;
  flex-direction: column;
}

/* A. Left Column: Timeline List */
.timeline-list {
  display: flex;
  flex-direction: column;
  position: relative;
  margin-left: 0.5rem;
}

.timeline-item {
  display: flex;
  position: relative;
  padding-bottom: 1.6rem;
  gap: 1.25rem;
}

.timeline-item:last-child {
  padding-bottom: 0.25rem;
}

/* Continuous Connecting Line */
.timeline-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 11px;
  top: 24px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--border-line) 0%, rgba(255, 255, 255, 0.05) 100%);
}

.timeline-node {
  position: relative;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.node-ring {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  background: #141414;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
  transition: var(--transition-smooth);
}

.node-core {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
  transition: var(--transition-smooth);
}

.timeline-item:hover .node-ring {
  border-color: #FFFFFF;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.35);
  transform: scale(1.1);
}

.timeline-item:hover .node-core {
  transform: scale(1.15);
}

.timeline-content {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.timeline-heading-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.timeline-heading {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-pure);
  letter-spacing: 0.02em;
}

.timeline-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  opacity: 0.7;
  transition: var(--transition-smooth);
  padding: 2px;
  line-height: 1;
  text-decoration: none;
}

.timeline-link-btn:hover {
  color: var(--text-pure);
  opacity: 1;
  transform: translateY(-1px);
}

.timeline-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.timeline-tag {
  font-size: 0.72rem;
  color: #888888;
  margin-top: 0.2rem;
  font-family: var(--font-body);
}

/* B. Right Column: Technical Skills Node List */
.tech-nodes-list {
  display: flex;
  flex-direction: column;
  position: relative;
  margin-left: 0.5rem;
}

.tech-node-item {
  display: flex;
  align-items: flex-start;
  position: relative;
  padding-bottom: 1.25rem;
  gap: 1.15rem;
}

.tech-node-item:last-child {
  padding-bottom: 0.25rem;
}

.tech-node-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 10px;
  top: 20px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--border-line) 0%, rgba(255, 255, 255, 0.05) 100%);
}

.tech-node-bullet {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  background: #121212;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  transition: var(--transition-smooth);
}

.bullet-inner {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #FFFFFF;
}

.tech-node-item:hover .tech-node-bullet {
  border-color: #FFFFFF;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
  transform: scale(1.1);
}

.tech-node-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.tech-node-title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-pure);
  letter-spacing: 0.02em;
}

.tech-node-detail {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* C. Middle Row: Work & Automation Box */
.work-summary-box {
  background: rgba(16, 16, 16, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-inner);
  padding: 1.15rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.work-summary-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.78rem;
  font-family: var(--font-heading);
  color: #CCCCCC;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #FFFFFF;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

/* D. Bottom Row: Core Competencies Pill Flex Row */
.competencies-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.competency-pill {
  background: linear-gradient(180deg, #1C1C1C 0%, #141414 100%);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-pill);
  padding: 0.5rem 1.15rem;
  font-size: 0.82rem;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--text-pure);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: var(--transition-smooth);
  cursor: default;
  user-select: none;
}

.pill-mini-icon {
  width: 13px;
  height: 13px;
  color: var(--text-muted);
}

.competency-pill:hover {
  background: #252525;
  border-color: var(--border-bright);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.competency-pill:hover .pill-mini-icon {
  color: var(--text-pure);
}

/* 8. OS FOOTER STATUS BAR */
.os-footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0.75rem 0.1rem 0.75rem;
  font-size: 0.72rem;
  font-family: var(--font-heading);
  letter-spacing: 0.08em;
  color: var(--text-faint);
  user-select: none;
}

.footer-status-left, .footer-status-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.code-bracket {
  color: var(--text-muted);
  font-weight: 700;
}

.cloud-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-muted);
}

.cloud-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #888888;
  transition: var(--transition-smooth);
}

.cloud-status-badge.connected .cloud-dot {
  background-color: var(--accent-green);
  box-shadow: 0 0 6px var(--accent-green);
}

.cloud-status-badge.connected {
  color: #D0D0D0;
}

.footer-separator {
  color: #333333;
}

.status-ok {
  color: #888888;
}

/* =========================================================================
   9. SECRET AUTHENTICATION / PIN MODAL
   ========================================================================= */
.auth-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 1rem;
}

.auth-modal[open] {
  opacity: 1;
  pointer-events: auto;
}

.auth-card {
  background: #141414;
  border: 1px solid var(--border-bright);
  border-radius: 20px;
  width: 100%;
  max-width: 380px;
  padding: 2rem 1.75rem;
  text-align: center;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.95);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.auth-icon-wrap {
  width: 48px;
  height: 48px;
  background: #222222;
  border: 1px solid var(--border-line);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  color: #FFFFFF;
}

.auth-icon-wrap svg {
  width: 24px;
  height: 24px;
}

.auth-header h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #FFFFFF;
  margin-top: 0.5rem;
}

.auth-header p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.auth-input-group {
  display: flex;
  align-items: center;
  background: #0A0A0A;
  border: 1px solid var(--border-line);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.45rem 0.35rem 1.15rem;
  transition: var(--transition-smooth);
}

.auth-input-group:focus-within {
  border-color: #FFFFFF;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
}

.auth-input-group input {
  background: transparent;
  border: none;
  outline: none;
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 0.95rem;
  width: 100%;
}

.auth-submit-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #FFFFFF;
  border: none;
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.auth-submit-btn:hover {
  background: #E0E0E0;
  transform: scale(1.05);
}

.auth-error-msg {
  font-size: 0.78rem;
  color: var(--accent-red);
  display: none;
}

.auth-error-msg.visible {
  display: block;
  animation: shake 0.3s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.btn-text {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
}

.btn-text:hover {
  color: #FFFFFF;
}

/* =========================================================================
   10. STEALTH ADMIN CONTROL CENTER DASHBOARD MODAL
   ========================================================================= */
.admin-dashboard-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 1.5rem;
}

.admin-dashboard-modal[open] {
  opacity: 1;
  pointer-events: auto;
}

.admin-panel-container {
  background: #111111;
  border: 1px solid var(--border-bright);
  border-radius: 24px;
  width: 100%;
  max-width: 920px;
  max-height: 90vh;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.95),
              0 0 0 1px rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Header */
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--border-line);
  background: #161616;
}

.admin-header-title {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.admin-logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #242424;
  border: 1px solid var(--border-line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
}

.admin-logo-icon svg {
  width: 20px;
  height: 20px;
}

.admin-header-title h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #FFFFFF;
}

.admin-header-title p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

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

.modal-close-icon-btn {
  background: #202020;
  border: 1px solid var(--border-line);
  color: var(--text-muted);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.modal-close-icon-btn:hover {
  background: #333333;
  color: #FFFFFF;
}

/* Tabs Navigation */
.admin-tabs-nav {
  display: flex;
  background: #141414;
  border-bottom: 1px solid var(--border-line);
  padding: 0 1rem;
  overflow-x: auto;
  gap: 0.5rem;
}

.tab-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.85rem 1.15rem;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-smooth);
}

.tab-btn svg {
  width: 14px;
  height: 14px;
}

.tab-btn:hover {
  color: #FFFFFF;
}

.tab-btn.active {
  color: #FFFFFF;
  border-bottom-color: #FFFFFF;
  background: rgba(255, 255, 255, 0.03);
}

/* Tab Panels Container */
.admin-tab-content-wrap {
  padding: 1.75rem;
  overflow-y: auto;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.tab-pane {
  display: none;
  flex-direction: column;
  gap: 1.25rem;
}

.tab-pane.active {
  display: flex;
  animation: fadeIn 0.2s ease-out;
}

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

/* Form Controls */
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-group label {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #D0D0D0;
}

.form-group input,
.form-group textarea {
  background: var(--bg-input);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-input);
  padding: 0.75rem 1rem;
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 0.88rem;
  transition: var(--transition-smooth);
  outline: none;
}

.form-group textarea {
  resize: vertical;
  line-height: 1.5;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #FFFFFF;
  box-shadow: 0 0 0 1px #FFFFFF, 0 0 15px rgba(255, 255, 255, 0.1);
  background: #181818;
}

.field-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.form-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 0.75rem 0;
}

.form-divider::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border-line);
}

.form-divider span {
  position: relative;
  background: #111111;
  padding: 0 1rem;
  font-size: 0.72rem;
  font-family: var(--font-heading);
  color: var(--text-faint);
}

/* Photo / Portrait Editor */
.portrait-editor-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.75rem;
  align-items: start;
}

.portrait-preview-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.portrait-preview-frame {
  width: 180px;
  height: 230px;
  background: #181818;
  border: 1px solid var(--border-bright);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portrait-preview-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
}

.preview-caption {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.file-dropzone {
  border: 2px dashed var(--border-line);
  border-radius: 14px;
  padding: 1.5rem;
  text-align: center;
  background: #161616;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition-smooth);
}

.file-dropzone:hover {
  border-color: #FFFFFF;
  background: #1E1E1E;
}

.file-dropzone svg {
  width: 32px;
  height: 32px;
  color: var(--text-muted);
}

.file-dropzone p {
  font-size: 0.85rem;
  color: #FFFFFF;
}

.file-dropzone span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.file-dropzone input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.portrait-action-btns {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

/* Item Lists & Pane Headers */
.pane-header-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.pane-header-action h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: #FFFFFF;
}

.pane-header-action p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.items-list-container {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

/* Project / Item Edit Card */
.item-edit-card {
  background: #171717;
  border: 1px solid var(--border-line);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  transition: var(--transition-smooth);
}

.item-edit-card:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: #1B1B1B;
}

.item-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.item-badge-order {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  background: #242424;
  border: 1px solid var(--border-line);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  color: var(--text-muted);
}

.btn-icon-danger {
  background: transparent;
  border: none;
  color: #888888;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 4px;
  border-radius: 6px;
  transition: var(--transition-smooth);
}

.btn-icon-danger:hover {
  color: var(--accent-red);
  background: rgba(255, 95, 86, 0.15);
}

/* =========================================================================
   11. FIREBASE CLOUD CONFIG BOX
   ========================================================================= */
.cloud-config-box {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.cloud-status-card {
  background: #161616;
  border: 1px solid var(--border-line);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cloud-status-card.connected {
  border-color: rgba(74, 246, 38, 0.35);
  background: rgba(74, 246, 38, 0.03);
}

.cloud-card-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cloud-icon {
  width: 28px;
  height: 28px;
  color: var(--text-muted);
}

.cloud-status-card.connected .cloud-icon {
  color: var(--accent-green);
}

.cloud-card-left h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: #FFFFFF;
}

.cloud-card-left p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.firebase-quick-guide {
  background: #151515;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.firebase-quick-guide h5 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: #FFFFFF;
}

.firebase-quick-guide ol {
  padding-left: 1.25rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.firebase-quick-guide a {
  color: var(--accent-blue);
  text-decoration: none;
}

.firebase-quick-guide a:hover {
  text-decoration: underline;
}

.firebase-quick-guide code {
  background: #222222;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  color: #FFFFFF;
}

/* Security Triggers Info */
.secret-triggers-info {
  background: #161616;
  border: 1px solid var(--border-line);
  border-radius: 14px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.secret-triggers-info h5 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: #FFFFFF;
}

.secret-triggers-info ul {
  padding-left: 1.25rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.secret-triggers-info code {
  background: #242424;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  color: #FFFFFF;
  font-family: monospace;
}

/* Dashboard Buttons */
.btn-primary {
  background: #FFFFFF;
  color: #000000;
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.55rem 1.25rem;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
  transition: var(--transition-smooth);
}

.btn-primary:hover {
  background: #E5E5E5;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255, 255, 255, 0.35);
}

.btn-secondary {
  background: #202020;
  color: #FFFFFF;
  border: 1px solid var(--border-line);
  border-radius: var(--radius-pill);
  padding: 0.55rem 1.15rem;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  background: #2C2C2C;
  border-color: var(--border-bright);
}

.btn-danger-outline {
  background: transparent;
  color: var(--accent-red);
  border: 1px solid rgba(255, 95, 86, 0.35);
  border-radius: var(--radius-pill);
  padding: 0.55rem 1.15rem;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: var(--transition-smooth);
}

.btn-danger-outline:hover {
  background: rgba(255, 95, 86, 0.15);
  border-color: var(--accent-red);
}

/* Dashboard Footer */
.admin-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.15rem 1.75rem;
  border-top: 1px solid var(--border-line);
  background: #161616;
}

.auto-save-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.auto-save-hint svg {
  width: 14px;
  height: 14px;
}

.admin-footer-buttons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* 12. TOAST NOTIFICATION */
.os-toast {
  position: fixed;
  top: 24px;
  right: 24px;
  background: #181818;
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-pill);
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8),
              0 0 20px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  z-index: 3000;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: var(--transition-smooth);
}

.os-toast.active {
  opacity: 1;
  transform: translateY(0);
}

.toast-icon {
  width: 16px;
  height: 16px;
  color: var(--accent-green);
}

/* 13. COMMAND / SEARCH MODAL */
.command-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.command-modal[open] {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: #141414;
  border: 1px solid var(--border-bright);
  border-radius: 18px;
  width: 90%;
  max-width: 480px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--border-line);
}

.modal-search-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-grow: 1;
  color: var(--text-muted);
}

.modal-search-input-wrap input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-pure);
  font-family: var(--font-body);
  font-size: 0.9rem;
  width: 100%;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close-btn:hover {
  color: var(--text-pure);
}

.modal-results {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-height: 320px;
  overflow-y: auto;
}

.result-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.result-item:hover {
  background: #202020;
}

.result-item svg {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
}

.result-item div {
  display: flex;
  flex-direction: column;
}

.result-item strong {
  font-size: 0.85rem;
  color: var(--text-pure);
}

.result-item span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* 14. RESPONSIVE BREAKPOINTS */
@media (max-width: 768px) {
  body {
    padding: 1rem 0.75rem;
  }

  .os-window-frame {
    border-radius: 20px;
    padding: 1rem;
    gap: 1rem;
  }

  .hero-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.25rem;
  }

  .hero-portrait-container {
    min-height: 240px;
    max-height: 280px;
  }

  .hero-name {
    font-size: 1.9rem;
  }

  .main-two-col-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .main-content-card {
    padding: 1.25rem;
    gap: 1.75rem;
  }

  .competencies-pills-wrap {
    gap: 0.5rem;
  }

  .competency-pill {
    font-size: 0.78rem;
    padding: 0.45rem 0.9rem;
  }

  .admin-panel-container {
    max-height: 95vh;
  }

  .admin-header {
    padding: 1rem;
  }

  .admin-tab-content-wrap {
    padding: 1rem;
  }

  .form-grid-2,
  .portrait-editor-layout,
  .cloud-status-card {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .portrait-preview-box {
    align-items: flex-start;
  }

  .os-footer-bar {
    flex-direction: column;
    gap: 0.35rem;
    text-align: center;
  }
}
