/* ==========================================================================
   CRIPZI - Next-Gen Repo Signer & iOS Suite Master Stylesheet
   Design Language: iOS 18 Liquid Glassmorphism & Cyber Dark OLED
   ========================================================================== */

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

:root {
  --bg-dark: #07090e;
  --bg-card: rgba(18, 22, 34, 0.72);
  --bg-card-hover: rgba(28, 34, 52, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --border-glass: rgba(255, 255, 255, 0.09);
  --border-glow: rgba(255, 42, 95, 0.3);
  
  --primary-red: #ff2a5f;
  --primary-red-glow: rgba(255, 42, 95, 0.45);
  --accent-cyan: #00f0ff;
  --accent-cyan-glow: rgba(0, 240, 255, 0.35);
  --accent-purple: #9d4edd;
  --apple-blue: #007aff;
  --apple-green: #34c759;
  --apple-orange: #ff9500;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
  
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px rgba(255, 42, 95, 0.25);
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
  background-image: 
    radial-gradient(circle at 10% 15%, rgba(255, 42, 95, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 75%, rgba(0, 240, 255, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(157, 78, 221, 0.04) 0%, transparent 60%);
  background-attachment: fixed;
}

/* App Wrapper for Mobile & Desktop */
.cripzi-app-shell {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  background: rgba(10, 12, 19, 0.88);
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 90px;
  box-shadow: 0 0 60px rgba(0,0,0,0.8);
}

@media (min-width: 900px) {
  .cripzi-app-shell {
    margin-top: 20px;
    margin-bottom: 30px;
    min-height: calc(100vh - 50px);
    border-radius: 36px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    overflow: hidden;
  }
}

/* Top Status / Announcement Bar */
.cripzi-announcement {
  background: linear-gradient(90deg, #7f1d1d, #831843);
  padding: 8px 14px;
  font-size: 11.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  letter-spacing: 0.2px;
}
.cripzi-announcement-pill {
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 7px;
  border-radius: 20px;
  font-size: 9.5px;
  text-transform: uppercase;
  margin-right: 6px;
}

/* Prominent Top Mobileconfig Banner */
.cripzi-mobileconfig-hero {
  background: linear-gradient(135deg, rgba(255, 42, 95, 0.15), rgba(0, 122, 255, 0.15));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.hero-cfg-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-cfg-icon {
  width: 38px;
  height: 38px;
  background: #1e293b;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
}
.hero-cfg-text h4 {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}
.hero-cfg-text p {
  font-size: 10.5px;
  color: var(--text-muted);
}
.btn-install-config {
  background: linear-gradient(135deg, var(--primary-red), #e11d48);
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 15px var(--primary-red-glow);
  display: flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  white-space: nowrap;
  transition: var(--transition);
}
.btn-install-config:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

/* App Header & Iconic Animated Rotating Gear Logo */
.cripzi-header {
  padding: 22px 18px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-brand {
  display: flex;
  flex-direction: column;
}
.header-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 2px;
}
.header-title-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-title {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -0.8px;
  color: #ffffff;
  line-height: 1;
}
.header-title span {
  color: var(--primary-red);
}
.header-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Gear Logo Container */
.cripzi-logo-frame {
  width: 76px;
  height: 76px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.cripzi-gear-img {
  width: 100%;
  height: 100%;
  animation: gearSpin 20s linear infinite;
  filter: drop-shadow(0 0 16px rgba(255, 42, 95, 0.4));
  transition: transform 0.4s ease;
}
.cripzi-logo-frame:hover .cripzi-gear-img {
  animation-duration: 4s;
}

@keyframes gearSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Quick Search Input */
.cripzi-search-box {
  padding: 0 16px 14px;
  position: relative;
}
.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.search-icon {
  position: absolute;
  left: 14px;
  color: var(--text-dim);
  font-size: 15px;
  pointer-events: none;
}
.search-field {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 10px 14px 10px 38px;
  color: #fff;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
}
.search-field:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary-red);
  box-shadow: 0 0 15px rgba(255, 42, 95, 0.2);
}

/* Section Title Headers */
.section-header {
  padding: 12px 18px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.section-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: #fff;
}
.section-action-btn {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #38bdf8;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
}
.section-action-btn:hover {
  background: rgba(56, 189, 248, 0.2);
}

/* Horizontal Scroll: Recently Updated (Matching Screenshot) */
.recently-updated-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 6px 18px 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.recently-updated-scroll::-webkit-scrollbar {
  display: none;
}
.recent-app-card {
  flex: 0 0 82px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}
.recent-app-card:hover {
  transform: translateY(-3px);
}
.recent-icon-wrap {
  width: 66px;
  height: 66px;
  border-radius: 17px;
  background: #111422;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}
.recent-icon-wrap img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 12px;
}
.recent-badge {
  position: absolute;
  top: 3px;
  right: 3px;
  background: var(--primary-red);
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 4px;
}
.recent-app-name {
  font-size: 11px;
  font-weight: 600;
  color: #e2e8f0;
  margin-top: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 78px;
}
.recent-app-version {
  font-size: 9.5px;
  color: var(--text-dim);
}

/* Sources / Repos Section (Matching Screenshot) */
.sources-list {
  padding: 0 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.source-item {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.source-item:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 42, 95, 0.25);
  transform: scale(1.01);
}
.source-main {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}
.source-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #0f1320;
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.source-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.source-details {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.source-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.source-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.source-vip-tag {
  background: linear-gradient(90deg, #d97706, #f59e0b);
  color: #000;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
}
.source-url {
  font-size: 11px;
  color: #60a5fa;
  font-family: 'JetBrains Mono', monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}
.source-arrow {
  color: var(--text-dim);
  font-size: 16px;
  transition: transform 0.2s ease;
  margin-left: 8px;
}
.source-item:hover .source-arrow {
  color: var(--primary-red);
  transform: translateX(3px);
}

/* In-App Interactive Tweaks Simulator Suite */
.tweaks-simulator-container {
  margin: 0 16px 20px;
  background: linear-gradient(180deg, rgba(26, 32, 53, 0.8), rgba(15, 18, 30, 0.95));
  border: 1px solid rgba(255, 42, 95, 0.2);
  border-radius: var(--radius-lg);
  padding: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.tweaks-sim-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.tweaks-sim-badge {
  background: rgba(255, 42, 95, 0.2);
  color: var(--primary-red);
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 5px;
}
.tweaks-sim-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--primary-red);
  border-radius: 50%;
  animation: pulseDot 1.5s infinite;
}
@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.4; }
  100% { transform: scale(0.9); opacity: 1; }
}

/* Virtual iPhone Display Simulation Stage */
.virtual-screen-stage {
  width: 100%;
  height: 125px;
  background: #020307;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px 12px;
  margin-bottom: 14px;
}

/* Dynamic Island Simulation */
.sim-dynamic-island {
  margin: 0 auto;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  width: 90px;
  height: 22px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  font-size: 9px;
  color: #fff;
  cursor: pointer;
}
.sim-dynamic-island.expanded {
  width: 180px;
  height: 38px;
  background: rgba(10, 10, 15, 0.95);
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.3);
}

/* Neon Top Battery Bar Simulation */
.sim-battery-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 85%;
  background: linear-gradient(90deg, #10b981, #00f0ff);
  box-shadow: 0 0 8px #00f0ff;
  display: none;
}
.sim-battery-bar.active {
  display: block;
}

/* BioProtect Scan Effect */
.sim-bioprotect-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
.sim-bioprotect-overlay.scanning {
  display: flex;
}
.scan-line {
  width: 80px;
  height: 2px;
  background: #00f0ff;
  box-shadow: 0 0 10px #00f0ff;
  animation: scanMove 1.5s ease-in-out infinite alternate;
}
@keyframes scanMove {
  from { transform: translateY(-20px); }
  to { transform: translateY(20px); }
}

/* Virtual SpringBoard Dock */
.sim-virtual-dock {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border-radius: 14px;
  padding: 5px 8px;
  display: flex;
  justify-content: space-around;
  align-items: center;
}
.sim-dock-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  background: #1e293b;
  transition: var(--transition);
}
.sim-dock-icon.cylinder-anim {
  animation: barrelRoll 4s infinite linear;
}
@keyframes barrelRoll {
  0% { transform: rotateY(0deg); }
  50% { transform: rotateY(180deg) scale(1.1); }
  100% { transform: rotateY(360deg); }
}

/* Tweak Toggles Grid */
.tweaks-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.tweak-toggle-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}
.tweak-header-mini {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tweak-title {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}
.tweak-author {
  font-size: 9.5px;
  color: var(--text-dim);
}

/* Apple iOS Toggle Switch */
.ios-switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
}
.ios-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #334155;
  transition: .3s;
  border-radius: 34px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}
input:checked + .slider {
  background-color: var(--apple-green);
  box-shadow: 0 0 10px rgba(52, 199, 89, 0.4);
}
input:checked + .slider:before {
  transform: translateX(16px);
}

/* Cripzi Signer (ZeeSigner Core Integration) Section */
.cripzi-signer-card {
  margin: 0 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 18px;
  position: relative;
  overflow: hidden;
}
.signer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.signer-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.signer-title {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
}
.cert-status-badge {
  background: rgba(52, 199, 89, 0.15);
  color: var(--apple-green);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 4px;
}
.cert-status-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--apple-green);
  border-radius: 50%;
}

.signer-input-group {
  margin-bottom: 12px;
}
.signer-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 5px;
}
.signer-input, .signer-select {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  color: #fff;
  font-size: 12.5px;
  font-family: inherit;
  outline: none;
}
.signer-input:focus, .signer-select:focus {
  border-color: var(--accent-cyan);
}

.btn-sign-ipa {
  width: 100%;
  background: linear-gradient(135deg, #0ea5e9, #3b82f6);
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
  margin-top: 8px;
}
.btn-sign-ipa:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

/* Signing Progress Matrix */
.signing-progress-box {
  display: none;
  margin-top: 14px;
  background: #020408;
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: var(--radius-md);
  padding: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
}
.signing-bar-wrap {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}
.signing-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #ff2a5f, #00f0ff);
  transition: width 0.3s ease;
}
.signing-log {
  color: #38bdf8;
  line-height: 1.6;
}

/* High Converting VIP Upsell Banner */
.vip-upsell-banner {
  margin: 0 16px 20px;
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.25), rgba(147, 51, 234, 0.25));
  border: 1px solid rgba(255, 42, 95, 0.35);
  border-radius: var(--radius-lg);
  padding: 18px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(255, 42, 95, 0.15);
}
.vip-header-pill {
  display: inline-block;
  background: #ff2a5f;
  color: #fff;
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  margin-bottom: 8px;
}
.vip-title {
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
}
.vip-desc {
  font-size: 12px;
  color: #cbd5e1;
  margin: 6px 0 14px;
}
.vip-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.vip-features-list li {
  font-size: 11.5px;
  color: #f1f5f9;
  display: flex;
  align-items: center;
  gap: 8px;
}
.vip-features-list li span {
  color: var(--apple-green);
  font-weight: bold;
}
.btn-buy-vip-primary {
  width: 100%;
  background: linear-gradient(135deg, #ff2a5f, #d946ef);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 6px 25px rgba(255, 42, 95, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  transition: var(--transition);
}
.btn-buy-vip-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

/* Live Buyer Toast Notification */
.live-buyer-toast {
  position: fixed;
  bottom: 85px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(18, 22, 34, 0.95);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 42, 95, 0.4);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.7);
  z-index: 100;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
  font-size: 11.5px;
  color: #fff;
  white-space: nowrap;
}
.live-buyer-toast.active {
  transform: translateX(-50%) translateY(0);
}
.toast-dot {
  width: 8px;
  height: 8px;
  background: #34c759;
  border-radius: 50%;
  box-shadow: 0 0 8px #34c759;
}

/* Floating AI Assistant Chat Button & Drawer */
.chat-fab-btn {
  position: fixed;
  bottom: 85px;
  right: 18px;
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--primary-red), #9333ea);
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(255, 42, 95, 0.5);
  z-index: 90;
  transition: var(--transition);
}
.chat-fab-btn:hover {
  transform: scale(1.08);
}

.chat-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.chat-drawer-overlay.active {
  display: flex;
}
.chat-drawer {
  width: 100%;
  max-width: 480px;
  height: 520px;
  background: #0f121d;
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.8);
  animation: slideUp 0.35s ease;
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.chat-header {
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chat-title-info h3 {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
}
.chat-title-info p {
  font-size: 10.5px;
  color: var(--apple-green);
}
.chat-close-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 20px;
  cursor: pointer;
}
.chat-messages-area {
  flex: 1;
  padding: 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chat-msg {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 12.5px;
  line-height: 1.4;
}
.chat-msg.bot {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-bottom-left-radius: 4px;
}
.chat-msg.user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--primary-red), #e11d48);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.chat-chips {
  padding: 6px 14px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
}
.chat-chips::-webkit-scrollbar { display: none; }
.chip-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #38bdf8;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  white-space: nowrap;
  cursor: pointer;
}
.chat-input-bar {
  padding: 10px 14px 14px;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  gap: 8px;
}
.chat-input-field {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
  padding: 9px 16px;
  color: #fff;
  font-size: 13px;
  outline: none;
}
.chat-send-btn {
  background: var(--primary-red);
  color: #fff;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

/* Modal Windows (Add Repo & Install Profile) */
.cripzi-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.cripzi-modal-overlay.active {
  display: flex;
}
.cripzi-modal {
  width: 100%;
  max-width: 420px;
  background: #0f121d;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,0.8);
  animation: zoomIn 0.25s ease;
}
@keyframes zoomIn {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.modal-close-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 20px;
  cursor: pointer;
}

/* Bottom iOS Tab Bar */
.cripzi-tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: rgba(12, 14, 22, 0.92);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 80;
  max-width: 480px;
  margin: 0 auto;
}
.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 10px;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  padding: 6px 12px;
}
.tab-item i, .tab-item svg {
  font-size: 20px;
  margin-bottom: 3px;
}
.tab-item.active {
  color: var(--primary-red);
}
.tab-item.vip-tab {
  color: #f59e0b;
}

/* Section visibility */
.app-section {
  display: none;
}
.app-section.active {
  display: block;
}
