/* =========================================================
   vibeyourapp — main.css v1.2.9
   - Clean, mobile-first UI
   - 3-color palette + neutral whites for readability
   - Subtle, accessible animations
   - Complete results page redesign with flat vector icons
   - Lazy loading and responsive images
   ========================================================= */

/* Color system (modern marketplace palette) */
:root{
  --c-bg:#ffffff;        /* white background */
  --c-primary:#6b46c1;   /* deep purple for buttons */
  --c-accent:#8b5cf6;    /* light purple accent */
  --c-white:#ffffff;
  --c-text:#000000;      /* pure black text */
  --c-muted:#6b7280;     /* gray-500 */
  --c-line:#e5e7eb;      /* gray-200 */

  /* Card colors - purple theme */
  --c-card-primary:#6b46c1;   /* deep purple */
  --c-card-accent:#8b5cf6;    /* light purple */

  --radius:20px;
  --radius-sm:12px;
  --shadow:0 20px 40px rgba(0,0,0,.08);
  --shadow-sm:0 8px 24px rgba(0,0,0,.05);

  --container:1200px;
}

/* Reset + base */
*{box-sizing:border-box}
html{
  height:100%;
  background: linear-gradient(-45deg, #5b21b6, #6b46c1, #7c3aed, #8b5cf6, #6b46c1);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}
body{
  min-height:100%;
  margin:0;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif;
  color:var(--c-text);
  background: transparent;
  position:relative;
  overflow-x:hidden;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

a{color:inherit}
img{max-width:100%;height:auto;display:block}

/* Motion preferences */
@media (prefers-reduced-motion: reduce){
  *{animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important;}
}

/* Container */
.container{max-width:var(--container);margin:2rem auto;padding:0 1rem}

/* Header */
.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(255,255,255,.95);
  backdrop-filter: blur(16px);
  border-bottom:1px solid rgba(0,0,0,.05);
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background:rgba(255,255,255,.98);
  box-shadow: 0 4px 20px rgba(0,0,0,.1);
}

.site-header .wrap{
  display:flex; align-items:center; justify-content:space-between;
  max-width:var(--container); margin:0 auto; padding:1rem 1.5rem;
}

.site-title{
  color:var(--c-text); 
  text-decoration:none; 
  font-weight:700; 
  display:flex; 
  align-items:center; 
  gap:.5rem;
  transition: transform 0.3s ease;
}

.site-title:hover {
  transform: scale(1.05);
}

.logo-dot{
  width:12px;
  height:12px;
  border-radius:999px;
  background:var(--c-primary); 
  display:inline-block;
  animation: pulse 2s ease-in-out infinite alternate;
}

.logo-text {
  font-weight: 700;
  color: var(--c-text);
}

.logo-your {
  color: var(--c-primary);
  font-weight: 700;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(107,70,193,0.3); }
  100% { box-shadow: 0 0 0 8px rgba(107,70,193,0); }
}

.site-nav{
  display:flex; 
  gap:1.5rem; 
  align-items:center;
}

.site-nav a{
  color:var(--c-text); 
  text-decoration:none; 
  font-weight:500;
  position: relative;
  transition: all 0.3s ease;
  padding: 0.5rem 0;
}

.site-nav a:hover{
  color:var(--c-primary);
  transform: translateY(-2px);
}

.site-nav a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--c-primary);
  transition: width 0.3s ease;
}

.site-nav a:not(.btn):hover::after {
  width: 100%;
}

/* Authentication-based navigation */
.nav-state {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  color: var(--c-text);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: all 0.3s ease;
  padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--c-primary);
  transform: translateY(-2px);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--c-primary);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* User Circle with Pulsing Effect */
.user-circle {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--c-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  animation: user-pulse 2s ease-in-out infinite alternate;
  box-shadow: 0 4px 12px rgba(107,70,193,.3);
}

.user-circle:hover,
.user-circle:focus {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 20px rgba(107,70,193,.4);
  animation-play-state: paused;
  outline: 2px solid var(--c-primary);
  outline-offset: 2px;
}

/* Guest circle with user icon */
.user-circle svg {
  stroke: currentColor;
  flex-shrink: 0;
}

/* Pulsing animation similar to logo dot */
@keyframes user-pulse {
  0% { 
    box-shadow: 0 4px 12px rgba(107,70,193,.3), 0 0 0 0 rgba(107,70,193,0.3); 
  }
  100% { 
    box-shadow: 0 4px 12px rgba(107,70,193,.3), 0 0 0 8px rgba(107,70,193,0); 
  }
}

/* Legacy user avatar styles kept for compatibility */
.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(107,70,193,.3);
  position: relative;
}

.user-avatar:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 20px rgba(107,70,193,.4);
}

.user-avatar::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.user-avatar:hover::before {
  opacity: 0.3;
}

/* Buttons & Inputs */
.btn{
  display:inline-block; text-decoration:none; text-align:center;
  padding:.8rem 2rem; border-radius:25px; border:none;
  background: var(--c-primary);
  color:white; font-weight:600; font-size:.9rem;
  transition: all .25s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.btn:hover,
.btn:focus{ 
  transform: translateY(-2px); 
  box-shadow: 0 8px 20px rgba(0,0,0,.2);
  outline: 2px solid var(--c-primary);
  outline-offset: 2px;
}
.btn:active{ transform: translateY(0px) }
.btn.primary{ background: #22c55e }

/* Small button variant */
.btn.small{
  padding:.6rem 1.2rem; 
  font-size:.9rem; 
  border-radius:25px;
  background: var(--c-primary);
  color: white !important;
  border: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(107,70,193,.3);
}
.btn.small:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(107,70,193,.4);
  background: var(--c-accent);
}

/* Mobile nav */
.menu-toggle{display:none; background:none; border:0; cursor:pointer}
.menu-toggle .bar{display:block;width:22px;height:2px;background:var(--c-text);margin:4px 0;border-radius:2px}

@media (max-width: 860px){
  .menu-toggle{display:block}
  
  .site-nav{
    position:absolute; 
    top:56px; 
    right:1rem; 
    background:white; 
    border:1px solid var(--c-line); 
    border-radius:12px; 
    padding:.75rem; 
    display:none; 
    flex-direction:column; 
    min-width:200px; 
    box-shadow: var(--shadow);
  }
  
  .site-nav.open{display:flex}
  
  .nav-state {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }
  
  .nav-link {
    padding: 0.75rem 0;
    text-align: center;
  }
  
  .user-avatar, .user-circle {
    align-self: center;
    margin-top: 0.5rem;
  }
  
  .btn.small {
    width: 100%;
    text-align: center;
  }
}

/* Footer */
.site-footer{border-top:1px solid rgba(0,0,0,.05); padding:2rem 0; color:var(--c-muted); background:white}
.site-footer .wrap{max-width:var(--container); margin:0 auto; padding:0 1.5rem; display:flex; align-items:center; justify-content:space-between}
.footer-main{display:flex; flex-direction:column; gap:.25rem}
.version-info{font-size:.75rem; opacity:.7; color:var(--c-muted)}
.foot-nav a{
  color:var(--c-muted); 
  margin-left:1rem; 
  text-decoration:none;
  position: relative;
  transition: all 0.3s ease;
  padding: 0.5rem 0;
}

.foot-nav a:hover{
  color:var(--c-text);
}

.foot-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--c-primary);
  transition: width 0.3s ease;
}

.foot-nav a:hover::after {
  width: 100%;
}
.muted{opacity:.8}
@media (max-width: 640px){
  .site-footer .wrap{flex-direction:column; gap:.5rem; text-align:center}
  .foot-nav a{margin:0 .5rem}
}

/* Hero / Home */
.hero{
  color:var(--c-text);
  text-align:center;
  padding:4rem 0 6rem;
  position:relative;
  overflow:hidden;
}
.hero h1{
  font-size:clamp(2.5rem, 6vw, 4rem); 
  margin:0 0 1.5rem; 
  font-weight:700; 
  line-height:1.3;
  color:var(--c-text);
}

/* Rotating word animation */
.rotating-word {
  color: var(--c-primary);
  display: inline-block;
  min-width: 280px;
  text-align: left;
  animation: gentleFade 3s ease-in-out;
  font-size: 0.85em;
  white-space: nowrap;
}

@keyframes gentleFade {
  0% {
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* Mobile responsive for rotating word */
@media (max-width: 768px) {
  .rotating-word {
    min-width: 220px;
    font-size: 0.8em;
  }
}

@media (max-width: 480px) {
  .rotating-word {
    min-width: 180px;
    font-size: 0.75em;
  }
}
.hero p{opacity:.8; max-width:600px; margin:0 auto 2.5rem; font-size:1.1rem; color:var(--c-muted)}

/* Decorative elements */
.bg-blob{display:none} /* Remove old blob */

.hero::before {
  content: "";
  position: absolute;
  top: 10%;
  right: 15%;
  width: 200px;
  height: 200px;
  background: rgba(99,102,241,.1);
  border-radius: 50%;
  z-index: -1;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 20%;
  left: 10%;
  width: 150px;
  height: 150px;
  background: rgba(16,185,129,.1);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  z-index: -1;
  animation: float 8s ease-in-out infinite alternate;
}

@keyframes float{
  0%{ transform: translateY(0) rotate(0deg) }
  100%{ transform: translateY(-10px) rotate(5deg) }
}

/* Cards */
.grid{
  display:grid; gap:2rem;
  grid-template-columns: repeat(12, 1fr);
}
.grid-3{
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
@media (max-width: 960px){
  .grid-3{ grid-template-columns: repeat(2, 1fr); gap: 1.5rem }
}
@media (max-width: 640px){
  .grid-3{ grid-template-columns: 1fr; gap: 1rem }
}

.card{
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  display:flex; flex-direction:column;
  overflow:hidden;
  transition: transform .3s ease, box-shadow .3s ease;
  border: none;
  position: relative;
}

.card:hover{ 
  transform:translateY(-8px); 
  box-shadow: var(--shadow);
}

/* =========================================================
   NEW APP CARD STYLES
   ========================================================= */

/* App Card Container */
.app-card {
  background: white;
  border: 1px solid var(--c-line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.app-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* Card Header - Purple Background */
.card-header {
  background: var(--c-primary);
  color: white;
  padding: 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
  position: relative;
}

.app-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  position: relative;
}

.app-icon-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  transition: opacity 0.3s ease;
}

.app-icon-fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.app-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.app-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.category-tag {
  background: rgba(255, 255, 255, 0.25);
  color: white;
  padding: 0.25rem 0.7rem;
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 500;
  display: inline-block;
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

/* Get Button - Appears on hover */
.get-btn {
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  color: var(--c-primary);
  border: none;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  opacity: 0;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 10;
}

/* Adjust Get button position when beta badge is present */
.app-card:has(.beta-badge) .get-btn {
  top: calc(50% + 0.5rem);
  transform: translateY(-50%);
}

.app-card:hover .get-btn {
  opacity: 1;
}

.get-btn:hover {
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

/* Hover state for beta cards */
.app-card:has(.beta-badge):hover .get-btn:hover {
  transform: translateY(-50%) scale(1.05);
}

/* Card Meta - Symmetric layout for rating and clicks */
.card-meta {
  background: white;
  padding: 0.5rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 0.8rem;
  border-bottom: 1px solid var(--c-line);
  flex-shrink: 0;
}

.meta-item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.meta-divider {
  width: 2px;
  height: 20px;
  background: var(--c-primary);
  border-radius: 2px;
}

.rating {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  justify-content: center;
}

.stars {
  color: var(--c-primary) !important;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.app-card .stars {
  color: var(--c-primary) !important;
}

.card-meta .stars {
  color: var(--c-primary) !important;
}

.rating-value {
  color: var(--c-text);
  font-size: 0.85rem;
  font-weight: 600;
}

/* Stats Group - for clicks and reviews */
.stats-group {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  justify-content: center;
}

.stat-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.stat-item .number {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0.05rem;
  color: var(--c-primary);
}

.stat-item .label {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--c-muted);
  line-height: 1;
  text-transform: lowercase;
}

/* Card Body - White Background - Stretches to bottom */
.card-body {
  background: white;
  padding: 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.app-description {
  color: var(--c-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* Card Footer - Hidden by default, shown on hover */
.card-footer {
  background: transparent;
  padding: 0.3rem 1.2rem 0.4rem 1.2rem;
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.app-card:hover .card-footer {
  opacity: 1;
  transform: translateY(0);
}

.action-btn {
  background: none;
  border: none;
  border-radius: 50%;
  padding: 0.4rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-muted);
  width: 32px;
  height: 32px;
}

.action-btn:hover {
  background: var(--c-primary);
  color: white;
  transform: scale(1.1);
}

.action-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* Heart button specific styles */
.heart-btn.favorited {
  background: var(--c-primary) !important;
  color: white !important;
  border-color: var(--c-primary) !important;
}

.heart-btn.favorited svg {
  fill: white;
  stroke: white;
}

/* Action button heart-btn favorited state */
.action-btn.heart-btn.favorited {
  background: var(--c-primary) !important;
  color: white !important;
  border-color: var(--c-primary) !important;
}

.action-btn.heart-btn.favorited svg {
  fill: white;
  stroke: white;
}


/* Responsive Design */
@media (max-width: 768px) {
  .card-header {
    padding: 1rem;
  }
  
  .card-meta {
    padding: 0.45rem 1rem;
  }
  
  .card-body {
    padding: 1rem;
  }
  
  .app-icon {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
  
  .app-title {
    font-size: 1rem;
  }
  
  .app-description {
    font-size: 0.9rem;
    line-height: 1.45;
  }
  
  .rating-value {
    font-size: 0.8rem;
  }
  
  .stat-item .number {
    font-size: 0.9rem;
  }
  
  .stars {
    font-size: 0.8rem;
  }
  
  .meta-divider {
    height: 18px;
  }
}

@media (max-width: 480px) {
  .card-header {
    padding: 0.8rem;
  }
  
  .card-body {
    padding: 0.8rem;
  }
  
  .card-footer {
    padding: 0.6rem 0.8rem;
  }
  
  .app-icon {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }
  
  .app-title {
    font-size: 0.95rem;
  }
  
  .app-description {
    font-size: 0.85rem;
    line-height: 1.3;
  }
  
  .action-btn {
    padding: 0.5rem;
    font-size: 0.75rem;
    width: 32px;
    height: 32px;
  }
  
  .category-tag {
    font-size: 0.65rem;
    padding: 0.1rem 0.4rem;
  }
}

/* Lazy Loading Styles */
.lazy-image {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lazy-image.loaded {
  opacity: 1;
}

.image-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.loading-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #e0e7ff;
  border-top: 2px solid var(--c-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Card styles removed - will be rebuilt */


/* Expanded content */
.card-expanded {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.95);
  border-top: 1px solid rgba(0,0,0,0.1);
}

.expanded-content h4 {
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--c-text);
}

.expanded-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  margin: 1rem 0;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.stat-label {
  font-weight: 500;
  color: var(--c-muted);
}

.stat-value {
  font-weight: 600;
  color: var(--c-text);
}

.expanded-cta {
  margin-top: 1rem;
  text-align: center;
}

.expanded-cta .btn {
  background: var(--c-primary);
  color: white;
  padding: 0.7rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.expanded-cta .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(107,70,193,.3);
}

/* Colorful card variants */
.card.card-green { background: var(--c-card-green); }
.card.card-orange { background: var(--c-card-orange); }
.card.card-purple { background: var(--c-card-purple); }

.card.card-green,
.card.card-orange, 
.card.card-purple {
  color: white;
}

.card.card-green .title,
.card.card-orange .title,
.card.card-purple .title,
.card.card-green .desc,
.card.card-orange .desc,
.card.card-purple .desc {
  color: white;
}

.card.card-green .chip,
.card.card-orange .chip,
.card.card-purple .chip {
  background: rgba(255,255,255,.2);
  color: white;
  border: 1px solid rgba(255,255,255,.3);
}

/* Default white cards */
.card:not(.card-green):not(.card-orange):not(.card-purple) {
  background: white;
  border: 1px solid var(--c-line);
}

/* Old card styles removed - will be rebuilt */
.badges{ display:flex; gap:.5rem; margin:.25rem 0 .5rem; flex-wrap:wrap }
.badge{
  display:inline-flex; align-items:center; justify-content:center; gap:.35rem;
  padding:.25rem .6rem; border-radius:999px; font-size:.78rem; font-weight:600;
  background:#eef2ff; color:#3730a3; border:1px solid #e0e7ff;
  text-align:center;
}
.badge.mobile{ background:#ecfeff; color:#155e75; border-color:#cffafe }
.badge.whatsapp{ background:#effdf5; color:#065f46; border-color:#bbf7d0 }
.badge.featured{ background: #f5f3ff; color: #5b21b6; border-color:#ddd6fe }
.badge.editor{ background: #f0fdf4; color:#166534; border-color:#86efac }

.chip{
  display:inline-block; background:#f3f4f6; color:#374151; border:1px solid #e5e7eb;
  border-radius:999px; padding:.2rem .5rem; font-size:.75rem; margin-right:.35rem
}
.rating{ color:#6b7280; font-size:.9rem; display:flex; gap:.35rem; align-items:center; margin:.5rem 0 }
.stars{ color:white; letter-spacing:2px }
.card .cta{ padding:0 1.5rem 2rem; margin-top:auto }

.input{
  width:100%; padding:1.2rem 1.5rem; font-size:1rem;
  border-radius:50px; border:1px solid #e5e7eb; outline:0;
  transition:border-color .2s ease, box-shadow .2s ease;
  background: white;
}
.input:focus{ border-color: var(--c-primary); box-shadow:0 0 0 4px rgba(107,70,193,.1) }

.search{
  display:grid; gap:1.5rem; max-width: 700px; margin:0 auto;
}

/* Search button and icon animation */
.search-btn {
  transition: all 0.3s ease;
  min-height: 44px; /* Better touch target */
  font-size: 0.9rem; /* Slightly smaller font */
}

.search-btn:hover {
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 8px 20px rgba(107,70,193,.4);
}

.search-icon {
  transition: all 0.3s ease;
  animation: search-wiggle 3s ease-in-out infinite;
  width: 18px; /* Slightly smaller icon */
  height: 18px;
}

.search-btn:hover .search-icon {
  animation: search-pulse 1.5s ease-in-out infinite;
}

@keyframes search-wiggle {
  0%, 100% {
    transform: translateX(0px) rotate(0deg);
  }
  25% {
    transform: translateX(2px) rotate(1deg);
  }
  50% {
    transform: translateX(0px) rotate(0deg);
  }
  75% {
    transform: translateX(-2px) rotate(-1deg);
  }
}

@keyframes search-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* Additional search animation on focus */
.search-container:focus-within .search-icon {
  animation: search-glow 2s ease-in-out infinite;
}

@keyframes search-glow {
  0%, 100% {
    filter: drop-shadow(0 0 2px rgba(255,255,255,0.3));
  }
  50% {
    filter: drop-shadow(0 0 8px rgba(255,255,255,0.6));
  }
}

.search .input {
  position: relative;
  padding-right: 80px; /* More space for button */
  font-size: 1rem; /* Better mobile readability */
  min-height: 44px; /* Better touch target */
}

.search button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  padding: 0.6rem 1.2rem; /* Smaller padding */
  border-radius: 20px; /* Slightly less rounded */
  border: none;
  background: var(--c-primary);
  color: white;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.85rem; /* Smaller font */
}

/* Mobile search improvements */
@media (max-width: 768px) {
  .search .input {
    font-size: 16px; /* Prevent zoom on iOS */
    padding-right: 70px;
  }
  
  .search button {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
  
  .search-icon {
    width: 16px;
    height: 16px;
  }
}

/* Category buttons for home page */
.category-buttons {
  margin-top: 3rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.categories-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.categories-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 800px;
}

.category-btn {
  padding: 0.8rem 1.6rem;
  border: 2px solid var(--c-line);
  background: white;
  color: var(--c-text);
  border-radius: 25px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
}

.hot-sparkle {
  position: absolute;
  top: 4px;
  right: 4px;
  font-size: 0.8rem;
  animation: sparkle 2s ease-in-out infinite;
}

/* Hot category styling */
.category-btn.hot-category {
  border-color: var(--c-primary);
  background: linear-gradient(135deg, rgba(107,70,193,0.05), rgba(139,92,246,0.05));
  color: var(--c-primary);
  box-shadow: 0 4px 12px rgba(107,70,193,0.1);
  opacity: 1;
}

.category-btn.hot-category::before {
  background: linear-gradient(90deg, transparent, rgba(107,70,193,0.2), transparent);
}

.category-btn.hot-category:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(107,70,193,0.2);
  border-color: var(--c-accent);
}

/* Sparkle animation */
@keyframes sparkle {
  0%, 100% { 
    opacity: 0.6; 
    transform: scale(1) rotate(0deg); 
  }
  50% { 
    opacity: 1; 
    transform: scale(1.2) rotate(180deg); 
  }
}

/* See More button */
.see-more-btn {
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--c-line);
  background: white;
  color: var(--c-text);
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
  opacity: 0;
  visibility: hidden;
}

.categories-container:hover .see-more-btn {
  opacity: 1;
  visibility: visible;
}

.see-more-btn:hover {
  border-color: var(--c-primary);
  color: var(--c-primary);
  transform: translateY(-1px);
}

.category-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(107,70,193,0.1), transparent);
  transition: left 0.6s ease;
}

.category-btn:hover {
  opacity: 1; /* Full opacity on hover */
  transform: translateY(-2px);
  border-color: var(--c-primary);
  box-shadow: 0 8px 20px rgba(107,70,193,.15);
  color: var(--c-primary);
}

.category-btn:hover::before {
  left: 100%;
}

.category-btn:active {
  transform: translateY(0px);
  transition-duration: 0.1s;
}

@media (max-width: 768px) {
  .category-buttons {
    margin-top: 2rem;
    padding: 0 1rem; /* Add padding on mobile */
  }
  
  .categories-grid {
    gap: 0.6rem;
  }
  
  .category-btn {
    padding: 0.7rem 1.3rem; /* Better mobile sizing */
    font-size: 0.9rem; /* Readable on mobile */
    min-height: 40px; /* Slightly smaller on mobile */
  }
}

@media (max-width: 480px) {
  .category-buttons {
    margin-top: 1.5rem;
  }
  
  .categories-grid {
    gap: 0.5rem;
  }
  
  .category-btn {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    min-height: 36px;
  }
}

/* Quick filters removed - now using Featured/Popular buttons */

/* Filter buttons */
.marketplace-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
  flex-wrap: wrap; /* Allow wrapping on mobile */
}

.filter-btn {
  padding: 0.9rem 2.2rem; /* Slightly larger for better touch */
  border: 2px solid var(--c-line);
  background: white;
  color: var(--c-text);
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem; /* Slightly larger font */
  min-height: 44px; /* Better touch target */
  display: flex;
  align-items: center;
  justify-content: center;
}

.filter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,.1);
}

.filter-btn.active {
  background: var(--c-primary);
  color: white;
  border-color: var(--c-primary);
  box-shadow: 0 4px 12px rgba(107,70,193,.3);
}

/* Mobile improvements for filter buttons */
@media (max-width: 768px) {
  .marketplace-filters {
    gap: 0.8rem;
    margin: 1.5rem 0;
    padding: 0 1rem;
  }
  
  .filter-btn {
    padding: 0.8rem 1.8rem;
    font-size: 0.9rem;
    min-height: 40px;
  }
}

@media (max-width: 480px) {
  .marketplace-filters {
    gap: 0.6rem;
    margin: 1rem 0;
  }
  
  .filter-btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.85rem;
    min-height: 36px;
  }
}

/* Editor's Choice button now uses same styling as other filter buttons */

/* App icon squares - removed */

/* Page */
.page-title{ color:white; font-size: 2rem; margin-bottom: 1.5rem }
.form-title{ color:var(--c-text); font-size: 2rem; margin-bottom: 1.5rem }
.page-content{ background:#ffffff; border-radius: var(--radius); padding:2rem; border:1px solid var(--c-line); box-shadow: var(--shadow-sm) }

/* Results Page */
.results-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Results Header */
.results-header {
  text-align: center;
  margin-bottom: 2rem;
}

.results-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  margin: 0 0 0.5rem 0;
}

.search-stats {
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
}

/* Results Search Container */
.results-search-container {
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* Filters Section */
.filters-section {
  margin-bottom: 3rem;
}

/* Niche Filters */
.niche-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.niche-filter {
  padding: 0.75rem 1.5rem;
  border: 2px solid #e5e7eb;
  background: white;
  color: var(--c-text);
  border-radius: 25px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.niche-filter:hover {
  border-color: var(--c-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(107,70,193,.1);
}

.niche-filter.active {
  background: var(--c-primary);
  color: white;
  border-color: var(--c-primary);
  box-shadow: 0 4px 12px rgba(107,70,193,.3);
}

/* Category Filters */
.category-filters {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.category-filter {
  padding: 0.6rem 1.2rem;
  border: 1px solid #e5e7eb;
  background: white;
  color: var(--c-text);
  border-radius: 20px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.85rem;
  opacity: 0.7;
}

.category-filter:hover {
  opacity: 1;
  border-color: var(--c-primary);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(107,70,193,.1);
}

.category-filter.active {
  background: var(--c-primary);
  color: white;
  border-color: var(--c-primary);
  opacity: 1;
  box-shadow: 0 2px 8px rgba(107,70,193,.2);
}

/* Sort Section */
.sort-section {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.sort-section label {
  font-weight: 500;
  color: var(--c-text);
}

.sort-select {
  padding: 0.5rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: white;
  color: var(--c-text);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sort-select:hover {
  border-color: var(--c-primary);
}

.sort-select:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(107,70,193,.1);
}

/* Results Grid */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* Loading State */
.loading-state {
  text-align: center;
  padding: 3rem 0;
  color: rgba(255,255,255,0.85);
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top: 3px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

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

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: rgba(255,255,255,0.85);
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.7;
}

.empty-state h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
  margin: 0 0 0.5rem 0;
}

.empty-state p {
  font-size: 1rem;
  margin: 0;
  color: rgba(255,255,255,0.85);
}

/* Old app-square styles removed - will be rebuilt */

.app-description {
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0 0 1rem;
  opacity: 0.9;
}

.app-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
}

.detail-item .label {
  opacity: 0.8;
}

.detail-item .value {
  font-weight: 600;
}

.app-actions {
  display: flex;
  gap: 0.75rem;
}

.btn-view, .btn-open {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.3s ease;
  text-align: center;
  flex: 1;
}

.btn-view {
  background: rgba(255,255,255,0.2);
  color: white;
  border: 1px solid rgba(255,255,255,0.3);
}

.btn-view:hover {
  background: rgba(255,255,255,0.3);
  transform: translateY(-1px);
}

.btn-open {
  background: white;
  color: var(--c-primary);
  border: 1px solid white;
}

.btn-open:hover {
  background: rgba(255,255,255,0.9);
  transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 768px) {
  .results-page {
    padding: 1rem 0.5rem;
  }
  
  .results-title {
    font-size: 2rem;
  }
  
  .results-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
  }
  
  .niche-filters {
    gap: 0.5rem;
    margin-bottom: 1.5rem;
  }
  
  .niche-filter {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
  }
  
  .category-filters {
    gap: 0.5rem;
    margin-bottom: 1.5rem;
  }
  
  .category-filter {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
  
  /* Card styles removed - will be rebuilt */
  
  .app-description-v2 {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .results-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .niche-filters {
    flex-direction: column;
    align-items: center;
  }
  
  .category-filters {
    flex-direction: column;
    align-items: center;
  }
  
  .sort-section {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Animations helpers */
.hover-lift{ transition: transform .2s ease }
.hover-lift:hover{ transform: translateY(-1px) }

.reveal{ opacity:0; transform: translateY(8px); transition: opacity .5s ease, transform .5s ease }
.reveal.visible{ opacity:1; transform: translateY(0) }

/* Submit Form Styles */
.submit-form {
  max-width: 100%;
}

.form-section {
  background: white;
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.form-section:hover {
  box-shadow: var(--shadow);
}

.section-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--c-text);
  margin: 0 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-title::before {
  content: '';
  width: 4px;
  height: 24px;
  background: var(--c-primary);
  border-radius: 2px;
}

.optional {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--c-muted);
  opacity: 0.8;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.form-label {
  display: block;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.field-help {
  font-size: 0.8rem;
  color: var(--c-muted);
  margin-top: 0.5rem;
  line-height: 1.4;
}

/* Image Upload Styles */
.image-upload-container {
  position: relative;
}

.image-upload-area {
  border: 2px dashed var(--c-line);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #fafafa;
  position: relative;
  overflow: hidden;
}

.image-upload-area:hover {
  border-color: var(--c-primary);
  background: #f8f6ff;
  transform: translateY(-2px);
}

.image-upload-area.dragover {
  border-color: var(--c-primary);
  background: #f0f0ff;
  transform: scale(1.02);
}

.upload-content {
  pointer-events: none;
}

.upload-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.6;
}

.upload-content h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--c-text);
  margin: 0 0 0.5rem;
}

.upload-content p {
  color: var(--c-muted);
  margin: 0.5rem 0;
  font-size: 0.95rem;
}

.upload-description {
  color: var(--c-text) !important;
  font-weight: 500 !important;
  margin-bottom: 1rem !important;
}

.upload-recommendations {
  background: #f8fafc;
  border: 1px solid #e1e5e9;
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin: 1rem 0;
  text-align: left;
}

.recommendation-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.5rem 0;
  font-size: 0.85rem;
}

.recommendation-icon {
  font-size: 1rem;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.recommendation-text {
  color: var(--c-text);
  line-height: 1.4;
}

.upload-specs {
  font-size: 0.8rem !important;
  opacity: 0.8;
  margin-top: 1rem !important;
}

.image-preview {
  position: relative;
  text-align: center;
}

.image-preview img {
  max-width: 200px;
  max-height: 200px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  object-fit: cover;
}

.preview-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1rem;
}

.btn-remove, .btn-change {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-remove {
  background: #fee2e2;
  color: #dc2626;
}

.btn-remove:hover {
  background: #fecaca;
  transform: translateY(-1px);
}

.btn-change {
  background: var(--c-primary);
  color: white;
}

.btn-change:hover {
  background: var(--c-accent);
  transform: translateY(-1px);
}

/* Guidelines Section */
.guidelines-section {
  background: #f8f9fa;
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2rem 0;
  border-left: 4px solid var(--c-primary);
}

.guidelines-section h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--c-text);
  margin: 0 0 1rem;
}

.guidelines-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.guidelines-list li {
  padding: 0.5rem 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Form Actions */
.form-actions {
  text-align: center;
  padding: 2rem 0;
}

.action-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.preview-btn {
  background: #f3f4f6;
  color: var(--c-text);
  border: 1px solid #e1e5e9;
}

.preview-btn:hover {
  background: #e5e7eb;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,.1);
}

.submit-btn {
  position: relative;
  min-width: 200px;
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  overflow: hidden;
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}

.btn-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-loading::before {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Enhanced Input Styles for Form */
.submit-form .input {
  border-radius: var(--radius-sm);
  border: 1px solid #e1e5e9;
  padding: 0.9rem 1.2rem;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background: white;
  min-height: 44px; /* Better touch target */
}

.submit-form .input:focus {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(107,70,193,0.1);
  outline: none;
}

.submit-form textarea.input {
  resize: vertical;
  min-height: 120px; /* Better for mobile */
  line-height: 1.5; /* Better readability */
}

.submit-form select.input {
  cursor: pointer;
  min-height: 44px; /* Better touch target */
}

/* Mobile form improvements */
@media (max-width: 768px) {
  .submit-form .input {
    font-size: 16px; /* Prevent zoom on iOS */
    padding: 0.8rem 1rem;
  }
  
  .submit-form textarea.input {
    min-height: 100px;
    font-size: 16px;
  }
  
  .submit-form select.input {
    font-size: 16px;
  }
}

/* Character counter */
#char-count {
  font-weight: 600;
  color: var(--c-primary);
}

/* Error states */
.form-group.error .input {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220,38,38,0.1);
}

.form-group.error .field-help {
  color: #dc2626;
}

/* Success states */
.form-group.success .input {
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22,163,74,0.1);
}

/* Loading overlay */
.form-loading {
  position: relative;
}

.form-loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(2px);
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.form-loading.loading::after {
  opacity: 1;
  pointer-events: all;
}

/* Enhanced Submit Form Styles */

/* Checkbox group styling */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
  padding: 0.5rem;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid #e1e5e9;
  transition: all 0.3s ease;
  background: #fafbfc;
}

.checkbox-item:hover {
  border-color: var(--c-primary);
  background: rgba(107,70,193,0.02);
}

.checkbox-custom {
  width: 20px;
  height: 20px;
  border: 2px solid #e1e5e9;
  border-radius: 4px;
  position: relative;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.checkbox-item input[type="checkbox"] {
  display: none;
}

.checkbox-item input[type="checkbox"]:checked + .checkbox-custom {
  background: var(--c-primary);
  border-color: var(--c-primary);
}

.checkbox-item input[type="checkbox"]:checked + .checkbox-custom::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.checkbox-label {
  font-weight: 500;
  color: var(--c-text);
}

.help-text {
  font-size: 0.85rem;
  color: var(--c-muted);
  font-weight: normal;
}

.dev-optional {
  font-size: 0.8rem;
  color: #f59e0b;
  font-weight: 500;
  font-style: italic;
}

/* Image upload improvements */
.icon-upload-container,
.multiple-upload-container {
  margin-top: 1rem;
}

.upload-button-container {
  margin-bottom: 1rem;
}

.upload-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem 2rem;
  border: 2px dashed #d1d5db;
  border-radius: var(--radius);
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  min-height: 120px;
  justify-content: center;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}

.upload-btn:hover {
  border-color: var(--c-primary);
  background: rgba(107,70,193,0.03);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.upload-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.upload-btn-icon {
  font-size: 2rem;
  opacity: 0.7;
}

.upload-btn-text {
  font-weight: 600;
  color: var(--c-text);
  font-size: 1rem;
}

.upload-btn-specs {
  font-size: 0.8rem;
  color: var(--c-muted);
  opacity: 0.8;
}

.upload-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.upload-icon {
  font-size: 2.5rem;
  opacity: 0.7;
}

.icon-upload-area .upload-content h4,
.multiple-upload-area .upload-content h4 {
  margin: 0;
  color: var(--c-text);
  font-size: 1.2rem;
  font-weight: 600;
}

.icon-upload-area .upload-content p,
.multiple-upload-area .upload-content p {
  margin: 0;
  color: var(--c-muted);
  font-size: 0.9rem;
}

.upload-specs {
  font-size: 0.8rem !important;
  color: var(--c-muted) !important;
  opacity: 0.8;
}

.icon-preview,
.images-preview-grid {
  margin-top: 1.5rem;
}

.icon-preview {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  border: 1px solid #e1e5e9;
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow-sm);
}

.icon-preview img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid #e1e5e9;
}

.preview-actions {
  display: flex;
  gap: 0.75rem;
}

.btn-remove,
.btn-change {
  padding: 0.5rem 1rem;
  border: 1px solid #e1e5e9;
  border-radius: var(--radius-sm);
  background: white;
  color: var(--c-text);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-remove:hover {
  background: #fee2e2;
  border-color: #dc2626;
  color: #dc2626;
}

.btn-change:hover {
  background: rgba(107,70,193,0.05);
  border-color: var(--c-primary);
  color: var(--c-primary);
}

.images-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1.25rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: var(--radius);
  border: 1px solid #e1e5e9;
}

.screenshot-preview {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid #e1e5e9;
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.screenshot-preview:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.screenshot-preview img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.remove-screenshot {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.7);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.remove-screenshot:hover {
  background: rgba(220,38,38,0.9);
  transform: scale(1.1);
}

/* Textarea font fixes */
.description-textarea,
.long-description-textarea,
.notes-textarea {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  font-size: 1rem !important;
  line-height: 1.6 !important;
  font-weight: 400 !important;
}

/* Upload Progress Modal */
.upload-progress-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  animation: fadeIn 0.3s ease;
  backdrop-filter: blur(4px);
}

.upload-progress-modal {
  background: white;
  border-radius: var(--radius);
  padding: 2.5rem;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: slideUp 0.3s ease;
}

.upload-progress-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: bounce 2s ease-in-out infinite;
}

.upload-progress-modal h3 {
  color: var(--c-text);
  margin: 0 0 1rem;
  font-size: 1.3rem;
  font-weight: 600;
}

.upload-progress-text {
  color: var(--c-muted);
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
}

.upload-progress-bar {
  width: 100%;
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.upload-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--c-primary), var(--c-accent));
  border-radius: 4px;
  transition: width 0.3s ease;
  position: relative;
}

.upload-progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 2s ease-in-out infinite;
}

.upload-progress-stats {
  color: var(--c-text);
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.upload-progress-note {
  color: var(--c-muted);
  font-size: 0.8rem;
  font-style: italic;
  opacity: 0.8;
}

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

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Success Modal */
.success-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}

.success-modal {
  background: white;
  border-radius: var(--radius);
  padding: 2.5rem;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  animation: slideUp 0.3s ease;
}

.success-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.success-modal h2 {
  color: var(--c-text);
  margin: 0 0 1rem;
  font-size: 1.5rem;
}

.success-modal p {
  color: var(--c-muted);
  margin: 0 0 1.5rem;
}

.success-details {
  background: #f8fafc;
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  margin: 1.5rem 0;
  text-align: left;
}

.success-details p {
  margin: 0 0 0.75rem;
  font-weight: 600;
  color: var(--c-text);
}

.success-details ul {
  margin: 0;
  padding-left: 1rem;
  list-style: none;
}

.success-details li {
  margin: 0.5rem 0;
  color: var(--c-muted);
  font-size: 0.9rem;
}

.modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.modal-actions .btn {
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* Preview Modal */
.preview-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1002;
  animation: fadeIn 0.3s ease;
  backdrop-filter: blur(4px);
}

.preview-modal {
  background: white;
  border-radius: var(--radius);
  padding: 0;
  max-width: 800px;
  width: 95%;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: slideUp 0.3s ease;
  display: flex;
  flex-direction: column;
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #e1e5e9;
  background: #f8fafc;
}

.preview-header h3 {
  margin: 0;
  color: var(--c-text);
  font-size: 1.3rem;
  font-weight: 600;
}

.preview-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--c-muted);
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-close:hover {
  background: #e5e7eb;
  color: var(--c-text);
}

.preview-content {
  padding: 0;
  overflow-y: auto;
  flex: 1;
}

.preview-tabs {
  display: flex;
  border-bottom: 1px solid #e1e5e9;
  background: #f8fafc;
}

.preview-tab {
  flex: 1;
  padding: 1rem 1.5rem;
  border: none;
  background: none;
  cursor: pointer;
  font-weight: 500;
  color: var(--c-muted);
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
}

.preview-tab:hover {
  color: var(--c-text);
  background: rgba(107,70,193,0.05);
}

.preview-tab.active {
  color: var(--c-primary);
  border-bottom-color: var(--c-primary);
  background: white;
}

.preview-tab-content {
  padding: 2rem;
}

.preview-page-container {
  max-height: 60vh;
  overflow-y: auto;
  border: 1px solid #e1e5e9;
  border-radius: var(--radius-sm);
  background: white;
}

.preview-description {
  color: var(--c-muted);
  margin: 0 0 1.5rem;
  text-align: center;
  font-size: 0.95rem;
}

.preview-card-container {
  display: flex;
  justify-content: center;
  margin: 1.5rem 0;
}

/* Preview card styles removed - will be rebuilt */

.preview-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.preview-actions .btn {
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  min-width: 120px;
}

/* App Page Preview Styles */
.app-page-preview {
  padding: 1.5rem;
}

.app-page-header {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e1e5e9;
}

.app-page-icon {
  flex-shrink: 0;
}

.app-page-icon img {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.app-icon-placeholder {
  width: 80px;
  height: 80px;
  background: var(--c-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
}

.app-page-info {
  flex: 1;
}

.app-page-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: var(--c-text);
}

.app-page-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.app-category {
  background: #f3f4f6;
  color: #374151;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.app-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.app-rating .stars {
  color: #f59e0b;
}

.app-rating .rating-number {
  font-weight: 600;
  color: var(--c-text);
}

.app-rating .users-count {
  color: var(--c-muted);
  font-size: 0.8rem;
}

.app-page-description {
  color: var(--c-muted);
  margin: 0 0 1.5rem 0;
  line-height: 1.5;
}

.app-page-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.app-page-actions .btn {
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
}

.app-page-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.app-details-section h3,
.app-screenshots-section h3,
.app-info-section h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
  color: var(--c-text);
}

.app-details-section p {
  color: var(--c-muted);
  line-height: 1.6;
  margin: 0;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.app-screenshot {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid #e1e5e9;
}

.no-screenshots {
  text-align: center;
  color: var(--c-muted);
  font-style: italic;
  padding: 2rem;
  background: #f8fafc;
  border-radius: var(--radius-sm);
  border: 1px dashed #e1e5e9;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: #f8fafc;
  border-radius: var(--radius-sm);
  border: 1px solid #e1e5e9;
}

.info-label {
  font-weight: 500;
  color: var(--c-muted);
}

.info-value {
  font-weight: 600;
  color: var(--c-text);
}

/* Mobile responsiveness for preview modal */
@media (max-width: 768px) {
  .preview-modal {
    width: 95%;
    max-height: 95vh;
  }
  
  .preview-header {
    padding: 1rem 1.5rem;
  }
  
  .preview-content {
    padding: 1.5rem;
  }
  
  /* Preview card styles removed - will be rebuilt */
  
  .action-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .preview-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .app-page-header {
    flex-direction: column;
    text-align: center;
  }
  
  .app-page-actions {
    justify-content: center;
  }
  
  .screenshots-grid {
    grid-template-columns: 1fr;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
  }
}

/* Guidelines section improvements */
.guidelines-section {
  background: #f8fafc;
  border-radius: var(--radius);
  padding: 2rem;
  margin: 2rem 0;
  border: 1px solid #e1e5e9;
}

.guidelines-section h4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
  color: var(--c-text);
  font-size: 1.2rem;
}

.guidelines-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.guidelines-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.75rem 0;
  font-size: 0.95rem;
  color: var(--c-text);
}

.guideline-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  flex-shrink: 0;
}

.guideline-icon.success {
  background: var(--c-primary);
  color: white;
}

.guideline-icon.error {
  background: #dc2626;
  color: white;
}

/* Form error states for new fields */
.form-group.error .checkbox-item {
  border-color: #dc2626;
  background: rgba(220,38,38,0.02);
}

.form-group.error .icon-upload-area,
.form-group.error .multiple-upload-area {
  border-color: #dc2626;
  background: rgba(220,38,38,0.02);
}

/* Pricing Input Group */
.pricing-input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.currency-symbol {
  position: absolute;
  left: 12px;
  color: var(--c-muted);
  font-weight: 500;
  z-index: 1;
  pointer-events: none;
}

.pricing-amount {
  padding-left: 30px !important;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .submit-form {
    padding: 0 1rem; /* Add padding on mobile */
  }
  
  .form-section {
    padding: 1.5rem; /* Slightly smaller padding */
    margin-bottom: 1.5rem;
  }
  
  .section-title {
    font-size: 1.2rem; /* Better mobile sizing */
  }
  
  .form-label {
    font-size: 0.9rem; /* Better mobile readability */
  }
  
  .input {
    font-size: 16px; /* Prevent zoom on iOS */
    padding: 0.8rem 1rem; /* Better touch target */
    min-height: 44px;
  }
  
  .field-help {
    font-size: 0.8rem; /* Better mobile readability */
  }
  
  .checkbox-group {
    gap: 0.75rem;
    padding: 0.25rem;
  }
  
  .checkbox-item {
    padding: 0.75rem 1rem;
  }
  
  .checkbox-label {
    font-size: 0.9rem; /* Better mobile readability */
  }
  
  .icon-upload-area,
  .multiple-upload-area {
    padding: 1.5rem;
    min-height: 150px;
  }
  
  .upload-icon {
    font-size: 2rem;
  }
  
  .images-preview-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    padding: 0.75rem;
  }
  
  .screenshot-preview img {
    height: 100px;
  }
  
  .icon-preview {
    padding: 1rem;
    gap: 1rem;
  }
  
  .icon-preview img {
    width: 60px;
    height: 60px;
  }
  
  .success-modal {
    padding: 2rem;
    margin: 1rem;
  }
  
  .modal-actions {
    flex-direction: column;
  }
  
  .btn {
    padding: 0.8rem 1.5rem; /* Better touch target */
    font-size: 0.9rem;
    min-height: 44px;
  }
  
  .submit-btn {
    padding: 1rem 2rem; /* Better touch target */
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .submit-form {
    padding: 0 0.5rem;
  }
  
  .form-section {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  .section-title {
    font-size: 1.1rem;
  }
  
  .form-label {
    font-size: 0.85rem;
  }
  
  .input {
    font-size: 16px;
    padding: 0.7rem 0.8rem;
    min-height: 40px;
  }
  
  .field-help {
    font-size: 0.75rem;
  }
  
  .checkbox-item {
    padding: 0.6rem 0.8rem;
  }
  
  .checkbox-label {
    font-size: 0.85rem;
  }
  
  .icon-upload-area,
  .multiple-upload-area {
    padding: 1rem;
    min-height: 120px;
  }
  
  .upload-icon {
    font-size: 1.5rem;
  }
  
  .images-preview-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.75rem;
    padding: 0.5rem;
  }
  
  .screenshot-preview img {
    height: 80px;
  }
  
  .icon-preview {
    padding: 0.8rem;
    gap: 0.8rem;
  }
  
  .icon-preview img {
    width: 50px;
    height: 50px;
  }
  
  .btn {
    padding: 0.7rem 1.2rem;
    font-size: 0.85rem;
    min-height: 40px;
  }
  
  .submit-btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* Favorites Button */
.favorite-btn {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  z-index: 10;
  opacity: 0.5;
  transform: scale(0.9);
  color: #666;
}

.card:hover .favorite-btn {
  opacity: 1;
  transform: scale(1);
  background: rgba(255, 255, 255, 0.9);
}

.favorite-btn:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.favorite-btn.favorited {
  opacity: 1;
  transform: scale(1);
  background: rgba(255, 255, 255, 0.95);
  color: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.favorite-btn.favorited:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Ensure cards have relative positioning for absolute favorite button */
.card {
  position: relative;
}

/* Admin Notification Badge */
.admin-notification-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #ef4444; /* red-500 */
  color: white;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 16px;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  animation: adminNotificationPulse 2s infinite;
}

.admin-notification-badge:hover {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
}

.admin-notification-badge:active {
  transform: translate(-50%, -50%) scale(0.95);
}

@keyframes adminNotificationPulse {
  0% { 
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
  }
  50% { 
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.5);
  }
  100% { 
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
  }
}

/* Mobile responsiveness for admin notification */
@media (max-width: 768px) {
  .admin-notification-badge {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }
}

/* Utility */
.section{ margin: 2rem 0 }
.center{ text-align:center }
.help{ color:#6b7280; font-size:.9rem }
.hidden{ display:none !important }

/* Promotion System Styles */
.featured-section {
  margin: 3rem 0;
  padding: 2rem;
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  border-radius: 16px;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.featured-app-card {
  background: white;
  border: 2px solid var(--c-line);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.featured-app-card:hover {
  border-color: var(--c-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(107,70,193,.1);
}

.featured-app-card .app-icon {
  font-size: 2rem;
  text-align: center;
}

.featured-app-card .app-title {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--c-text);
}

.featured-app-card .app-description {
  margin: 0 0 1rem;
  color: var(--c-muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.featured-app-card .app-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.featured-app-card .app-category {
  background: var(--c-bg);
  color: var(--c-muted);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
}

.featured-app-card .app-rating {
  font-size: 0.9rem;
  color: var(--c-muted);
}

.featured-app-card .btn-view-app {
  background: var(--c-primary);
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  transition: all 0.3s ease;
}

.featured-app-card .btn-view-app:hover {
  background: var(--c-accent);
  transform: translateY(-1px);
}

.campaigns-container {
  margin: 2rem 0;
  padding: 1.5rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.campaign-card {
  background: white;
  border: 2px solid var(--c-line);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1rem 0;
  transition: all 0.3s ease;
}

.campaign-card:hover {
  border-color: var(--c-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(107,70,193,.1);
}

.campaign-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.campaign-header h5 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--c-text);
}

.campaign-status {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.campaign-status.active {
  background: #34d399;
  color: #065f46;
}

.campaign-status.paused {
  background: #fbbf24;
  color: #92400e;
}

.campaign-status.completed {
  background: #6b7280;
  color: #ffffff;
}

.campaign-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.stat-item {
  text-align: center;
  padding: 0.75rem;
}

.stat-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--c-primary);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--c-muted);
  margin-top: 0.25rem;
}

.campaign-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.btn-edit, .btn-view {
  padding: 0.5rem 1rem;
  border: 1px solid var(--c-line);
  background: white;
  color: var(--c-text);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-edit:hover, .btn-view:hover {
  border-color: var(--c-primary);
  color: var(--c-primary);
  transform: translateY(-1px);
}

.promotion-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background: var(--c-primary);
  color: white;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  margin-left: 0.5rem;
}

.sponsored-badge {
  background: #f59e0b;
  color: white;
}

/* Featured App Card Styles */
.featured-app-card {
  background: white;
  border: 2px solid var(--c-line);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.featured-app-card:hover {
  border-color: var(--c-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(107,70,193,.1);
}

.featured-app-card .app-icon {
  font-size: 2rem;
  text-align: center;
}

.featured-app-card .app-info {
  flex: 1;
}

.featured-app-card .app-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  color: var(--c-text);
}

.featured-app-card .app-description {
  font-size: 0.9rem;
  color: var(--c-muted);
  margin: 0 0 1rem 0;
  line-height: 1.4;
}

.featured-app-card .app-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--c-muted);
}

.featured-app-card .app-category {
  background: var(--c-bg);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.featured-app-card .app-rating {
  font-weight: 600;
}

.featured-app-card .app-actions {
  margin-top: auto;
}

.featured-app-card .btn-view-app {
  display: block;
  width: 100%;
  padding: 0.75rem;
  background: var(--c-primary);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  transition: all 0.3s ease;
}

.featured-app-card .btn-view-app:hover {
  background: var(--c-primary-dark);
  transform: translateY(-1px);
}

/* Campaign Card Styles */
.campaign-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.campaign-header h5 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--c-text);
}

.campaign-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.btn-edit, .btn-view {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-edit {
  background: var(--c-primary);
  color: white;
}

.btn-edit:hover {
  background: var(--c-primary-dark);
}

.btn-view {
  background: var(--c-bg);
  color: var(--c-text);
  border: 1px solid var(--c-line);
}

.btn-view:hover {
  background: var(--c-line);
}

.empty-state {
  text-align: center;
  color: var(--c-muted);
  font-style: italic;
  padding: 2rem;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal {
  background: white;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

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

.modal-header h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--c-muted);
}

.modal-body {
  padding: 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--c-text);
}

.form-group select,
.form-group input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--c-line);
  border-radius: 6px;
  font-size: 1rem;
}

.modal-footer {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  padding: 1.5rem;
  border-top: 1px solid var(--c-line);
}

.btn-secondary {
  padding: 0.75rem 1.5rem;
  background: var(--c-bg);
  color: var(--c-text);
  border: 1px solid var(--c-line);
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

.btn-secondary:hover {
  background: var(--c-line);
}

.btn-primary {
  padding: 0.75rem 1.5rem;
  background: var(--c-primary);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

.btn-primary:hover {
  background: var(--c-primary-dark);
}

/* Campaign Info Styles */
.campaign-info {
  background: var(--c-bg);
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
}

.campaign-info h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-text);
}

.campaign-info ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--c-muted);
}

.campaign-info li {
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Large Modal Styles */
.modal-large {
  max-width: 95vw;
  max-height: 95vh;
  width: 1100px;
  background: white;
  border-radius: 24px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  animation: modalSlideIn 0.3s ease-out;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(107, 70, 193, 0.1);
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-step {
  padding: 2rem;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex: 1;
}

.step-header {
  margin-bottom: 2rem;
  flex-shrink: 0;
}

.step-content {
  flex: 1;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.step-content::-webkit-scrollbar {
  width: 6px;
}

.step-content::-webkit-scrollbar-track {
  background: var(--c-bg);
  border-radius: 3px;
}

.step-content::-webkit-scrollbar-thumb {
  background: var(--c-line);
  border-radius: 3px;
}

.step-content::-webkit-scrollbar-thumb:hover {
  background: var(--c-muted);
}

.step-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  border-bottom: 1px solid var(--c-line);
}

.step-title-info {
  flex: 1;
}

.step-title-info h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--c-text);
}

.step-title-info p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--c-muted);
  line-height: 1.4;
}

.step-actions {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.step-title-info h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--c-text);
}

.step-title-info p {
  margin: 0;
  color: var(--c-muted);
  font-size: 1rem;
}

.step-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-shrink: 0;
}

.step-actions button {
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  min-width: 100px;
  display: inline-block;
  text-align: center;
  line-height: 1;
}

.step-actions .btn-primary {
  background: var(--c-primary);
  color: white;
  border: none;
}

.step-actions .btn-secondary {
  background: var(--c-bg);
  color: var(--c-text);
  border: 1px solid var(--c-line);
}

.step-actions button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--c-muted);
  color: white;
  border: 1px solid var(--c-line);
}

.step-actions button:not(:disabled) {
  opacity: 1;
  cursor: pointer;
}

.step-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--c-line);
}

.step-footer button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  background: var(--c-muted);
  color: white;
  border: 1px solid var(--c-line);
}

.step-footer button:not(:disabled) {
  opacity: 1;
  cursor: pointer;
}

.step-footer button {
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  min-width: 100px;
  display: inline-block;
  text-align: center;
  line-height: 1;
}

.step-footer .btn-primary {
  background: var(--c-primary);
  color: white;
  border: none;
}

.step-footer .btn-secondary {
  background: var(--c-bg);
  color: var(--c-text);
  border: 1px solid var(--c-line);
}

/* App Selection Grid Styles - Large */
.apps-selection-grid-large {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
  max-height: 400px;
  overflow-y: auto;
  padding: 1rem;
  border: 1px solid var(--c-line);
  border-radius: 12px;
  background: var(--c-bg);
}

.app-selection-card-large {
  background: white;
  border: 2px solid var(--c-line);
  border-radius: 16px;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  position: relative;
}

.app-selection-card-large:hover {
  border-color: var(--c-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(107, 70, 193, 0.15);
}

.app-selection-card-large.selected {
  border-color: var(--c-primary);
  background: rgba(107, 70, 193, 0.05);
  box-shadow: 0 8px 20px rgba(107, 70, 193, 0.2);
}

.app-selection-card-large .app-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--c-primary), #8B5CF6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: white;
  flex-shrink: 0;
}

.app-selection-card-large .app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}

.app-selection-card-large .app-info {
  flex: 1;
  min-width: 0;
}

.app-selection-card-large .app-title {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--c-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-selection-card-large .app-description {
  margin: 0 0 0.75rem 0;
  font-size: 0.9rem;
  color: var(--c-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.app-selection-card-large .app-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.app-selection-card-large .app-category {
  font-size: 0.8rem;
  padding: 0.3rem 0.7rem;
  background: rgba(107, 70, 193, 0.1);
  color: var(--c-primary);
  border-radius: 10px;
  font-weight: 500;
}

.app-selection-card-large .app-rating {
  font-size: 0.8rem;
  color: var(--c-muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.app-selection-card-large .selection-indicator {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.app-selection-card-large .checkbox {
  width: 20px;
  height: 20px;
  border: 2px solid var(--c-line);
  border-radius: 4px;
  background: white;
  transition: all 0.3s ease;
}

.app-selection-card-large.selected .checkbox {
  background: var(--c-primary);
  border-color: var(--c-primary);
}

.app-selection-card-large.selected .checkbox::after {
  content: '✓';
  color: white;
  font-size: 12px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.app-selection-card:hover {
  border-color: var(--c-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(107, 70, 193, 0.15);
}

.app-selection-card.selected {
  border-color: var(--c-primary);
  background: rgba(107, 70, 193, 0.05);
  box-shadow: 0 4px 12px rgba(107, 70, 193, 0.2);
}

.app-selection-card .app-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--c-primary), #8B5CF6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  flex-shrink: 0;
}

.app-selection-card .app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.app-selection-card .app-info {
  flex: 1;
  min-width: 0;
}

.app-selection-card .app-title {
  margin: 0 0 0.25rem 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--c-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-selection-card .app-description {
  margin: 0 0 0.5rem 0;
  font-size: 0.8rem;
  color: var(--c-muted);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.app-selection-card .app-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.app-selection-card .app-category {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  background: rgba(107, 70, 193, 0.1);
  color: var(--c-primary);
  border-radius: 8px;
  font-weight: 500;
}

.app-selection-card .app-rating {
  font-size: 0.7rem;
  color: var(--c-muted);
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

/* Campaign Types Grid */
.campaign-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
  max-height: 400px;
  overflow-y: auto;
  padding: 1rem;
  border: 1px solid var(--c-line);
  border-radius: 12px;
  background: var(--c-bg);
}

.campaign-type-card {
  background: white;
  border: 2px solid var(--c-line);
  border-radius: 12px;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.campaign-type-card:hover {
  border-color: var(--c-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(107, 70, 193, 0.15);
}

.campaign-type-card.selected {
  border-color: var(--c-primary);
  background: rgba(107, 70, 193, 0.05);
  box-shadow: 0 8px 16px rgba(107, 70, 193, 0.2);
}

.campaign-type-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  text-align: center;
}

.campaign-type-info h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c-text);
  text-align: center;
}

.beta-badge {
  font-size: 0.8rem;
  font-weight: 500;
  color: #ff6b35;
  background: rgba(255, 107, 53, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  margin-left: 0.5rem;
}

/* Beta Badge for App Cards - positioned absolute on cards */
.app-card .badge.beta-badge {
  background: linear-gradient(135deg, var(--c-primary), #8b5cf6);
  color: white;
  font-weight: 700;
  padding: 0.4rem 0.8rem;
  border-radius: 12px;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(107, 70, 193, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.3);
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 10;
  margin-left: 0;
}

/* Beta Badge for Profile Cards */
.badge.beta-badge-profile {
  background: linear-gradient(135deg, var(--c-primary), #8b5cf6);
  color: white;
  font-weight: 700;
  padding: 0.4rem 0.8rem;
  border-radius: 12px;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(107, 70, 193, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.3);
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.campaign-type-info .price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--c-primary);
  text-align: center;
  margin-bottom: 1rem;
}

.campaign-features ul {
  margin: 0;
  padding-left: 1rem;
  color: var(--c-muted);
}

.campaign-features li {
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  line-height: 1.3;
}

.campaign-type-card .selection-indicator {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
}

.campaign-type-card .checkbox {
  width: 24px;
  height: 24px;
  border: 2px solid var(--c-line);
  border-radius: 6px;
  background: white;
  transition: all 0.3s ease;
}

.campaign-type-card.selected .checkbox {
  background: var(--c-primary);
  border-color: var(--c-primary);
}

.campaign-type-card.selected .checkbox::after {
  content: '✓';
  color: white;
  font-size: 14px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

/* Campaign Summary Styles */
.campaign-summary {
  margin-top: 1rem;
}

.summary-section {
  background: white;
  border: 1px solid var(--c-line);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.summary-section h4 {
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--c-text);
}

.selected-apps-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.selected-app-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(107, 70, 193, 0.1);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
}

.app-icon-small {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--c-primary), #8B5CF6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: white;
}

.app-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--c-text);
}

.campaign-type-summary {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.campaign-type-icon-small {
  font-size: 2rem;
}

.campaign-type-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.campaign-type-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-text);
}

.campaign-type-price {
  font-size: 0.9rem;
  color: var(--c-primary);
  font-weight: 500;
}

.total-section {
  background: linear-gradient(135deg, var(--c-primary), #8B5CF6);
  color: white;
  border: none;
}

.total-section h4 {
  color: white;
}

.total-price {
  font-size: 2rem;
  font-weight: 700;
  margin: 0.5rem 0;
}

.payment-note {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .modal-large {
    max-width: 95vw;
    width: 95vw;
    max-height: 95vh;
  }
  
  .modal-step {
    padding: 1rem;
    min-height: 400px;
  }
  
  .apps-selection-grid-large {
    grid-template-columns: 1fr;
    max-height: 300px;
    gap: 1rem;
  }
  
  .app-selection-card-large {
    padding: 1rem;
    gap: 1rem;
  }
  
  .app-selection-card-large .app-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
  
  .app-selection-card-large .app-title {
    font-size: 1rem;
  }
  
  .app-selection-card-large .app-description {
    font-size: 0.8rem;
  }
  
  .campaign-types-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    max-height: 300px;
  }
  
  .campaign-type-card {
    padding: 1rem;
  }
  
  .campaign-type-icon {
    font-size: 1.5rem;
  }
  
  .step-content {
    padding-right: 0;
  }
  
  .step-footer {
    flex-direction: column;
    gap: 1rem;
  }
  
  .step-footer button {
    width: 100%;
  }
  
  .step-title-row {
    flex-direction: column;
    gap: 1rem;
  }
  
  .step-actions {
    width: 100%;
    justify-content: space-between;
  }
}

.empty-state {
  text-align: center;
  padding: 2rem;
  color: var(--c-muted);
  font-style: italic;
}

/* Admin Campaign Stats */
.campaigns-stats {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.campaigns-stats h3 {
  margin: 0 0 1rem;
  color: var(--c-text);
  font-size: 1.3rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.campaigns-list {
  margin-top: 1rem;
}

/* Mobile Responsive for Promotion System */
@media (max-width: 768px) {
  .featured-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .featured-app-card {
    padding: 1rem;
  }
  
  .campaign-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .campaign-actions {
    flex-direction: column;
  }
  
  .btn-edit, .btn-view {
    width: 100%;
  }
}



/* Enhanced Modal Styling */
.step-actions button {
  padding: 0.8rem 1.5rem !important;
  border-radius: 12px !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  transition: all 0.3s ease !important;
  border: 2px solid transparent !important;
  cursor: pointer !important;
}

.step-actions .btn-primary {
  background: var(--c-primary) !important;
  color: white !important;
  border-color: var(--c-primary) !important;
}

.step-actions .btn-primary:hover:not(:disabled) {
  background: var(--c-primary-dark) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px rgba(107, 70, 193, 0.3) !important;
}

.step-actions .btn-secondary {
  background: transparent !important;
  color: var(--c-text) !important;
  border-color: var(--c-line) !important;
}

.step-actions .btn-secondary:hover:not(:disabled) {
  background: var(--c-bg) !important;
  border-color: var(--c-primary) !important;
  transform: translateY(-2px) !important;
}


/* Enhanced Step Content */
.step-content {
  padding: 2rem !important;
  background: white !important;
}

.campaign-types-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)) !important;
  gap: 2rem !important;
  max-height: none !important;
  overflow: visible !important;
}

.campaign-type-card-promo {
  background: white !important;
  border: 2px solid var(--c-line) !important;
  border-radius: 20px !important;
  padding: 2rem !important;
  position: relative !important;
  transition: all 0.3s ease !important;
  height: fit-content !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05) !important;
}

.campaign-type-card-promo:hover {
  border-color: var(--c-primary) !important;
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 24px rgba(107, 70, 193, 0.15) !important;
}


/* Enhanced App Selection */
.apps-selection-grid-large {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
  gap: 1.5rem !important;
  padding: 1rem 0 !important;
}

.app-selection-card-large {
  background: white !important;
  border: 2px solid var(--c-line) !important;
  border-radius: 16px !important;
  padding: 1.5rem !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  position: relative !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
}

.app-selection-card-large:hover {
  border-color: var(--c-primary) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 16px rgba(107, 70, 193, 0.1) !important;
}

.app-selection-card-large.selected {
  border-color: var(--c-primary) !important;
  background: rgba(107, 70, 193, 0.05) !important;
  box-shadow: 0 8px 16px rgba(107, 70, 193, 0.2) !important;
}


/* Enhanced Mobile Responsive */
@media (max-width: 768px) {
  .step-title-row {
    flex-direction: column !important;
    gap: 1rem !important;
    padding: 1rem !important;
  }
  
  .step-actions {
    width: 100% !important;
    justify-content: space-between !important;
  }
  
  .step-actions button {
    flex: 1 !important;
    margin: 0 0.25rem !important;
  }
  
  .campaign-types-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  
  .apps-selection-grid-large {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  
  .step-content {
    padding: 1rem !important;
  }
}

/* =========================================================
   USER ANALYTICS DASHBOARD STYLES
   ========================================================= */

/* Admin Stats Grid */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.stat-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,.05);
  transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,.1);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #6366f1;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  color: #6b7280;
  font-weight: 500;
}

/* User Analytics Sub-Tabs */
.user-analytics-sub-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 8px;
}

.user-analytics-sub-tab {
  padding: 0.75rem 1.5rem;
  border: none;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
  color: #374151;
}

.user-analytics-sub-tab:hover {
  background: rgba(255, 255, 255, 0.5);
}

.user-analytics-sub-tab.active {
  background: white;
  color: #6366f1;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

/* Management Tabs */
.management-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.management-tab {
  padding: 0.75rem 1.5rem;
  border: 2px solid #e5e7eb;
  background: white;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
  color: #374151;
}

.management-tab:hover {
  border-color: #6366f1;
  color: #6366f1;
}

.management-tab.active {
  background: #6366f1;
  color: white;
  border-color: #6366f1;
}

.management-content {
  display: none;
}

/* Buttons */
.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn.primary {
  background: #6366f1;
  color: white;
}

.btn.primary:hover {
  background: #4f46e5;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn.secondary {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #e5e7eb;
}

.btn.secondary:hover {
  background: #e5e7eb;
}

/* Spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f4f6;
  border-top-color: #6366f1;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Charts and Visualizations */
.timeline-container,
.analytics-list-container {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,.05);
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
}

table thead tr {
  background: #f9fafb;
  border-bottom: 2px solid #e5e7eb;
}

table th {
  padding: 0.75rem;
  text-align: left;
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
}

table td {
  padding: 0.75rem;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.85rem;
}

table tbody tr:hover {
  background: #f9fafb;
}

/* Responsive */
@media (max-width: 768px) {
  .admin-stats {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .management-tabs {
    flex-direction: column;
  }
  
  .management-tab {
    width: 100%;
  }
  
  .user-analytics-sub-tabs {
    flex-direction: column;
  }
  
  .user-analytics-sub-tab {
    width: 100%;
    text-align: left;
  }
  
  table {
    font-size: 0.75rem;
  }
  
  table th,
  table td {
    padding: 0.5rem;
  }
}
