@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800;900&display=swap');

* { 
  font-family: 'Inter', sans-serif; 
  letter-spacing: -0.02em; 
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent; /* Removes blue tap box on mobile */
}

body {
  background-color: #030305;
  background-image: radial-gradient(circle at 50% 0%, rgba(34, 211, 238, 0.05) 0%, transparent 50%),
                    radial-gradient(circle at 50% 100%, rgba(255, 79, 216, 0.05) 0%, transparent 50%);
  color: #ffffff;
  min-height: 100vh;
  overflow-x: hidden;
}

:root {
  --neon-cyan: #22d3ee;
  --neon-magenta: #ff4fd8;
  --neon-purple: #a855f7;
  
  --card: rgba(15, 15, 20, 0.6);
  --card-hover: rgba(25, 25, 35, 0.8);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-glow: rgba(255, 255, 255, 0.15);
  --textDim: rgba(255, 255, 255, 0.65);
}

.theme-cyber-glam { 
  --c1: var(--neon-cyan); 
  --c2: var(--neon-magenta); 
}

/* App Header */
.app-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 15px 20px;
  border-bottom: 0.5px solid var(--glass-border);
  border-radius: 0 0 20px 20px;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
}

.kicker {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--textDim);
  font-weight: 600;
  display: block;
}

.header-title h1 {
  font-size: 24px;
  font-weight: 900;
  line-height: 1.1;
}

.header-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  display: flex; justify-content: center; align-items: center;
  font-weight: 800; font-size: 18px;
  box-shadow: 0 0 15px rgba(255, 79, 216, 0.3);
}

/* Main Layout */
.app-container {
  padding: 100px 20px 100px; /* Space for header and footer */
  max-width: 800px;
  margin: 0 auto;
}

.grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Glassmorphism Framework */
.glass {
  background: var(--card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 0.5px solid var(--glass-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.glass-hover {
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
}

/* The Mobile Physics active state */
.glass-hover:active {
  transform: scale(0.96);
}

.bento-card {
  border-radius: 20px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 160px;
}

.tag {
  background: rgba(255, 255, 255, 0.05);
  border: 0.5px solid var(--glass-border);
  border-radius: 12px;
  padding: 6px 12px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  color: white;
  align-self: flex-start;
}

.cyan-glow { color: var(--neon-cyan); border-color: rgba(34, 211, 238, 0.3); }
.magenta-glow { color: var(--neon-magenta); border-color: rgba(255, 79, 216, 0.3); }
.purple-glow { color: var(--neon-purple); border-color: rgba(168, 85, 247, 0.3); }

/* Placeholder Graphics */
.img-placeholder {
  width: 100%;
  height: 70px;
  border-radius: 12px;
  margin-top: auto;
}

.pattern-lux {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.1), rgba(255, 79, 216, 0.1));
  border: 0.5px solid rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.5);
}

/* Gradient Utilities */
.gradient-text {
  background: linear-gradient(135deg, #fff 0%, var(--c1) 50%, var(--c2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Bottom App Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 10px 15px; /* Extra padding for iPhone home bar */
  border-top: 0.5px solid var(--glass-border);
  border-radius: 24px 24px 0 0;
  z-index: 100;
}

.nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: var(--textDim); cursor: pointer; transition: 0.3s;
}

.nav-item.active {
  color: var(--neon-cyan);
  text-shadow: 0 0 10px rgba(34, 211, 238, 0.5);
}

.nav-item span { font-size: 10px; font-weight: 600; }
.nav-icon { font-size: 20px; }

/* Modals */
.modal-backdrop { 
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.8); 
  backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); 
  display: flex; justify-content: center; align-items: flex-end; /* Slides up from bottom like a real app */
  z-index: 1000;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.modal-backdrop.hidden { opacity: 0; pointer-events: none; }

.modal-content {
  width: 100%;
  padding: 30px 20px 50px;
  border-radius: 30px 30px 0 0;
  border-bottom: none;
  transform: translateY(0);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
}

.modal-backdrop.hidden .modal-content {
  transform: translateY(100%);
}

.close-btn {
  position: absolute; top: 15px; right: 20px;
  background: none; border: none;
  color: var(--textDim); font-size: 28px;
  cursor: pointer;
}

.product-list { display: flex; flex-direction: column; gap: 12px; }
.product-link { display: block; padding: 18px; border-radius: 16px; text-decoration: none; color: white; font-weight: 600; font-size: 15px;}

/* Inputs & Forms */
.input {
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
  outline: none;
  color: white;
  font-size: 15px;
  transition: border-color 0.3s;
}
.input:focus { border-color: var(--neon-magenta); }

.btn-primary {
  width: 100%;
  padding: 18px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-magenta));
  color: white;
  font-weight: 800;
  font-size: 16px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(255, 79, 216, 0.3);
}

.checkbox-container {
  display: flex; align-items: flex-start; text-align: left; gap: 10px; margin-top: 10px;
}
.legal-text { font-size: 10px; color: var(--textDim); line-height: 1.5; }
