/* Modern Dark Glassmorphic Theme for ApexMods */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-primary: #0a0516;
  --bg-secondary: rgba(17, 10, 36, 0.7);
  --bg-tertiary: rgba(26, 17, 53, 0.85);
  
  --accent-purple: #8b5cf6;
  --accent-purple-glow: rgba(139, 92, 246, 0.4);
  --accent-cyan: #06b6d4;
  --accent-cyan-glow: rgba(6, 182, 212, 0.4);
  
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-neon: rgba(139, 92, 246, 0.2);
  --border-neon-hover: rgba(6, 182, 212, 0.5);

  --font-main: 'Outfit', sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles & Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-main);
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(139, 92, 246, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.12) 0%, transparent 40%);
  background-attachment: fixed;
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Scrollbar customization */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--border-neon);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
}

/* Typography Helpers */
h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Top Announcement bar */
.announcement-bar {
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-cyan));
  color: #fff;
  text-align: center;
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 500;
  position: relative;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* Header & Navbar */
header {
  position: sticky;
  top: 0;
  z-index: 99;
  background: rgba(10, 5, 22, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-glass);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(45deg, #fff, var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
}

.logo span {
  background: linear-gradient(45deg, var(--accent-purple), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.search-wrapper {
  position: relative;
  flex: 1;
  max-width: 450px;
}

.search-input {
  width: 100%;
  padding: 10px 16px 10px 42px;
  border-radius: 50px;
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-smooth);
}

.search-input:focus {
  border-color: var(--accent-purple);
  box-shadow: 0 0 15px var(--accent-purple-glow);
  background: rgba(255, 255, 255, 0.08);
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.stats-counter {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.05);
  padding: 6px 14px;
  border-radius: 50px;
  border: 1px solid var(--border-glass);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10b981;
  animation: pulse 1.5s infinite;
}

/* Category Filter Tabs */
.categories-container {
  max-width: 1200px;
  margin: 20px auto 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
}

.categories-container::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.category-tab {
  padding: 8px 18px;
  border-radius: 50px;
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-smooth);
}

.category-tab:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: var(--border-neon-hover);
}

.category-tab.active {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
  color: #fff;
  border: none;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

/* Layout Main Container */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

/* Featured Hero Banner */
.hero-section {
  background: linear-gradient(135deg, var(--bg-tertiary) 0%, rgba(10, 5, 22, 0.9) 100%);
  border: 1px solid var(--border-neon);
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero-section::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: var(--accent-purple);
  filter: blur(130px);
  top: -100px;
  right: -100px;
  opacity: 0.3;
  pointer-events: none;
}

.hero-content {
  max-width: 600px;
  position: relative;
  z-index: 2;
}

.hero-tag {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-title {
  font-size: 2.8rem;
  line-height: 1.2;
  margin-bottom: 16px;
  background: linear-gradient(to right, #fff, #a7f3d0, var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 24px;
}

.hero-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
}

.hero-meta-item {
  display: flex;
  flex-direction: column;
}

.hero-meta-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.hero-meta-val {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 20px var(--accent-purple-glow);
  transition: var(--transition-smooth);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--accent-cyan-glow);
  filter: brightness(1.1);
}

.hero-image-wrapper {
  position: relative;
  z-index: 2;
}

.hero-img {
  width: 200px;
  height: 200px;
  border-radius: 36px;
  object-fit: cover;
  box-shadow: 0 15px 35px rgba(0,0,0,0.6);
  border: 2px solid var(--border-glass);
}

/* Content Sections */
.section-title {
  font-size: 1.6rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}

.section-title span {
  color: var(--accent-cyan);
}

/* Grid Layout */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

/* App Cards */
.app-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.app-card:hover {
  transform: translateY(-4px);
  background: var(--bg-tertiary);
  border-color: var(--border-neon-hover);
  box-shadow: 0 10px 25px rgba(6, 182, 212, 0.15);
}

.card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 50px;
}

.card-header {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.card-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid var(--border-glass);
}

.card-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-name {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 4px;
  color: #fff;
}

.card-category {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.02);
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.02);
}

.card-rating {
  color: #fbbf24;
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: #fff;
  padding: 10px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-align: center;
  margin-top: auto;
}

.app-card:hover .btn-card {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
  border: none;
  box-shadow: 0 4px 15px var(--accent-purple-glow);
}

/* Modals Core Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 2, 10, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-neon);
  border-radius: 24px;
  width: 100%;
  max-width: 550px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  padding: 30px;
}

.modal-overlay.active .modal-box {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.modal-close:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border-color: rgba(239,68,68,0.3);
}

/* App Detail Specific styles */
.detail-header {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  align-items: center;
}

.detail-icon {
  width: 90px;
  height: 90px;
  border-radius: 20px;
  object-fit: cover;
  border: 1px solid var(--border-glass);
}

.detail-title {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.detail-meta-list {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.detail-meta-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 10px;
  border-radius: 50px;
}

.detail-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 16px;
}

/* Device Badges Section */
.device-badges-container {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 8px;
  margin-bottom: 24px;
}

.device-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: var(--transition-smooth);
  cursor: default;
}

.badge-apk {
  background: #22c55e;
  border: 1px solid #22c55e;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.2);
}

.badge-ios {
  background: #3b82f6;
  border: 1px solid #3b82f6;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.2);
}

.badge-mod {
  background: #ef4444;
  border: 1px solid #ef4444;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.2);
}

/* Mod Injection Config Options */
.options-section {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
}

.modal-app-desc {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 16px;
  padding: 0 4px;
}

.options-title {
  font-size: 1rem;
  margin-bottom: 12px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.option-group {
  margin-bottom: 14px;
}

.option-group:last-child {
  margin-bottom: 0;
}

.option-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.option-select, .option-text {
  width: 100%;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  color: #fff;
  outline: none;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.option-select:focus, .option-text:focus {
  border-color: var(--accent-cyan);
}

.option-toggle-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Switch styling */
.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
}

/* Resource Choice Buttons Grid */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 8px;
  margin-bottom: 14px;
}

.resource-btn-choice {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  padding: 12px 8px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.resource-btn-choice:hover {
  border-color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.05);
  color: #fff;
}

.resource-btn-choice.active {
  border-color: var(--accent-purple);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(6, 182, 212, 0.2));
  color: #fff;
  box-shadow: 0 0 10px var(--accent-purple-glow);
}


.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.1);
  transition: .4s;
  border-radius: 34px;
  border: 1px solid var(--border-glass);
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--accent-purple);
}

input:checked + .slider:before {
  transform: translateX(22px);
}

/* User Reviews Section */
.reviews-section {
  margin-bottom: 24px;
}

.reviews-title {
  font-size: 1rem;
  margin-bottom: 12px;
  color: #fff;
}

.review-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255,255,255,0.03);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
}

.review-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  margin-bottom: 6px;
}

.review-user {
  font-weight: 600;
  color: var(--accent-cyan);
}

.review-stars {
  color: #fbbf24;
}

.review-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Progress Simulation Overlay */
.progress-container {
  text-align: center;
}

.simulation-icon-wrapper {
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.loader-spinner {
  width: 70px;
  height: 70px;
  border: 4px solid rgba(255, 255, 255, 0.05);
  border-top: 4px solid var(--accent-cyan);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

.simulation-title {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.simulation-subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.progress-track {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50px;
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid var(--border-glass);
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-cyan));
  border-radius: 50px;
  transition: width 0.4s ease-out;
}

.console-box {
  background: #040209;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 14px;
  text-align: left;
  font-family: monospace;
  font-size: 0.8rem;
  color: #38bdf8;
  height: 120px;
  overflow-y: auto;
  margin-bottom: 20px;
}

.console-line {
  margin-bottom: 4px;
}

/* Verification Locker Design */
.locker-content {
  text-align: center;
}

.alert-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  animation: bounce 2s infinite;
}

.locker-title {
  font-size: 1.6rem;
  margin-bottom: 8px;
  background: linear-gradient(45deg, #ef4444, #fb923c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.locker-instructions {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.locker-offers-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.offer-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-neon);
  color: #fff;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-smooth);
  text-decoration: none;
}

.offer-btn:hover {
  background: rgba(139, 92, 246, 0.15);
  border-color: var(--accent-purple);
  box-shadow: 0 4px 15px var(--accent-purple-glow);
  transform: translateX(4px);
}

.offer-action {
  font-size: 0.8rem;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.15);
  padding: 4px 10px;
  border-radius: 50px;
}

.offer-btn:hover .offer-action {
  color: #fff;
  background: var(--accent-cyan);
}

.locker-footer {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Footer Section */
footer {
  text-align: center;
  padding: 40px 24px;
  border-top: 1px solid var(--border-glass);
  background: rgba(5, 2, 12, 0.5);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer-links a:hover {
  color: var(--accent-cyan);
}

/* Animations Keyframes */
@keyframes pulse {
  0% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
  .hero-section {
    flex-direction: column-reverse;
    padding: 30px;
    gap: 24px;
    text-align: center;
  }
  
  .hero-content {
    max-width: 100%;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-meta {
    justify-content: center;
  }
  
  .hero-img {
    width: 150px;
    height: 150px;
  }
}

@media (max-width: 600px) {
  .nav-container {
    flex-direction: column;
    padding: 16px;
    gap: 12px;
  }

  .search-wrapper {
    max-width: 100%;
  }

  .stats-counter {
    width: 100%;
    justify-content: center;
  }

  .modal-box {
    padding: 20px;
  }

  .detail-header {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .detail-meta-list {
    justify-content: center;
  }
}
