/* ClawMaster AI - Cyberpunk Theme */
:root {
  --cyber-bg: #0f172a;
  --cyber-cyan: #00f5ff;
  --cyber-magenta: #ff00aa;
  --cyber-green: #39ff14;
  --iphone-width: 390px;
  --iphone-height: 844px;
}

* { box-sizing: border-box; }

body {
  font-family: 'Noto Sans TC', sans-serif;
  background: var(--cyber-bg);
}

.grid-overlay {
  background-image:
    linear-gradient(rgba(0,245,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,245,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  width: 100%;
  height: 100%;
}

/* iPhone Frame */
.iphone-frame {
  width: var(--iphone-width);
  height: var(--iphone-height);
  background: linear-gradient(145deg, #1a1a2e 0%, #0d0d1a 100%);
  border-radius: 50px;
  padding: 12px;
  box-shadow:
    0 0 0 2px rgba(255,255,255,0.1),
    0 0 60px rgba(0,245,255,0.15),
    0 0 120px rgba(255,0,170,0.08),
    inset 0 0 30px rgba(0,0,0,0.5);
  position: relative;
  flex-shrink: 0;
}

.iphone-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 44px;
  position: relative;
  z-index: 20;
}

.dynamic-island {
  width: 120px;
  height: 34px;
  background: #000;
  border-radius: 20px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 10px;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
}

.iphone-screen {
  background: var(--cyber-bg);
  border-radius: 38px;
  overflow: hidden;
  height: calc(var(--iphone-height) - 12px - 12px - 44px - 20px);
  display: flex;
  flex-direction: column;
  position: relative;
}

.iphone-home-bar {
  width: 134px;
  height: 5px;
  background: rgba(255,255,255,0.3);
  border-radius: 3px;
  margin: 8px auto 4px;
}

/* Mobile: full screen */
@media (max-width: 430px) {
  #app-wrapper { padding: 0; }
  .iphone-frame {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
  }
  .iphone-screen {
    border-radius: 0;
    height: calc(100vh - 44px - 20px);
  }
  .dynamic-island { top: 8px; }
}

.screen {
  display: none;
  flex-direction: column;
  height: 100%;
}
.screen.active { display: flex; }
.screen.hidden { display: none !important; }

/* Cyber inputs & buttons */
.cyber-input {
  background: rgba(0,245,255,0.05);
  border: 1px solid rgba(0,245,255,0.3);
  border-radius: 8px;
  padding: 10px 14px;
  color: white;
  outline: none;
  transition: all 0.2s;
}
.cyber-input:focus {
  border-color: var(--cyber-cyan);
  box-shadow: 0 0 15px rgba(0,245,255,0.2);
}

.country-select {
  width: 108px;
  padding-right: 28px;
  cursor: pointer;
}

.country-select-arrow {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--cyber-cyan);
  font-size: 10px;
  opacity: 0.7;
}

.cyber-btn {
  background: linear-gradient(135deg, rgba(0,245,255,0.2), rgba(255,0,170,0.2));
  border: 1px solid var(--cyber-cyan);
  border-radius: 8px;
  padding: 12px;
  color: var(--cyber-cyan);
  font-family: 'Orbitron', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
}
.cyber-btn:hover {
  background: linear-gradient(135deg, rgba(0,245,255,0.4), rgba(255,0,170,0.3));
  box-shadow: 0 0 20px rgba(0,245,255,0.3);
}

.cyber-btn-sm {
  background: rgba(0,245,255,0.1);
  border: 1px solid var(--cyber-cyan);
  border-radius: 6px;
  padding: 6px 8px;
  color: var(--cyber-cyan);
  font-size: 10px;
  cursor: pointer;
  transition: all 0.2s;
}
.cyber-btn-sm:hover { background: rgba(0,245,255,0.25); }

.logo-glow {
  text-align: center;
  filter: drop-shadow(0 0 20px rgba(0,245,255,0.5));
}

/* Camera & AR */
.camera-feed {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.ar-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hud-top {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(15,23,42,0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0,245,255,0.2);
  border-radius: 8px;
  padding: 6px 10px;
  z-index: 10;
}

.hud-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyber-green);
  box-shadow: 0 0 8px var(--cyber-green);
}

.crosshair-legend {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(15,23,42,0.8);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 4px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 10;
}

.tactical-panel {
  background: linear-gradient(180deg, rgba(15,23,42,0.95), rgba(15,23,42,1));
  border-top: 1px solid rgba(0,245,255,0.3);
  padding: 12px 14px 16px;
  box-shadow: 0 -10px 30px rgba(0,245,255,0.05);
}

/* Admin styles */
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(0,245,255,0.1);
  font-size: 13px;
}
.admin-table th {
  color: var(--cyber-cyan);
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  letter-spacing: 0.05em;
}
.status-active { color: var(--cyber-green); }
.status-banned { color: #ff4444; }

.stat-card {
  background: rgba(0,245,255,0.05);
  border: 1px solid rgba(0,245,255,0.2);
  border-radius: 12px;
  padding: 16px;
}
