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

:root {
  /* Bluish Theme */
  --primary: #2563eb;
  --primary-light: #60a5fa;
  --primary-dark: #1d4ed8;
  --primary-bg: #eff6ff;
  
  /* Orangish Accent */
  --accent: #f97316;
  --accent-light: #fb923c;
  --accent-dark: #ea580c;
  --accent-bg: #fff7ed;

  /* Light Theme Neutrals (Default) */
  --bg-body: #e2e8f0;
  --app-bg: #f8fafc;
  --card-bg: #ffffff;
  
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --border-light: #f1f5f9;
  
  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow-sm: 0 4px 12px rgba(0,0,0,0.03);
  --shadow-md: 0 10px 25px rgba(37, 99, 235, 0.08);
  --bottom-nav-bg: #ffffff;
  --top-nav-bg: rgba(255, 255, 255, 0.85);
}

[data-theme="dark"] {
  --bg-body: #020617;
  --app-bg: #0f172a;
  --card-bg: #1e293b;
  
  --text-dark: #f8fafc;
  --text-muted: #94a3b8;
  --border-light: #334155;
  
  --shadow-sm: 0 4px 12px rgba(0,0,0,0.2);
  --bottom-nav-bg: #1e293b;
  --top-nav-bg: rgba(30, 41, 59, 0.85);
  
  --primary-bg: #1e3a8a;
  --accent-bg: #7c2d12;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-body);
  color: var(--text-dark);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s, color 0.3s;
  overflow-x: hidden;
}

/* Mobile App Wrapper */
.app-container {
  max-width: 480px;
  margin: 0 auto;
  background-color: var(--app-bg);
  min-height: 100vh;
  position: relative;
  box-shadow: 0 0 40px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  transition: background-color 0.3s;
}

.app-content {
  flex: 1;
  padding-bottom: 90px; 
  padding-top: 75px; 
  background: var(--app-bg);
  transition: background-color 0.3s;
}

/* Glassmorphism Top Bar */
.top-nav {
  position: fixed;
  top: 0;
  width: 100%;
  max-width: 480px;
  height: 70px;
  background: var(--top-nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 1000;
  border-bottom: 1px solid var(--border-light);
  transition: background-color 0.3s;
}

/* Premium Bottom Nav */
.bottom-nav {
  position: fixed;
  bottom: 0;
  width: 100%;
  max-width: 480px;
  min-height: 80px;
  background: var(--bottom-nav-bg);
  border-top: 1px solid var(--border-light);
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
  box-shadow: 0 -5px 20px rgba(0,0,0,0.04);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 10px calc(10px + env(safe-area-inset-bottom)) 10px;
  z-index: 1050;
  transition: background-color 0.3s;
}

.nav-item-bottom {
  text-align: center;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  padding: 10px;
  border-radius: 20px;
  cursor: pointer;
}

.nav-item-bottom i {
  font-size: 1.6rem;
  margin-bottom: 4px;
  transition: all 0.3s ease;
}

.nav-item-bottom.active {
  color: var(--primary);
}

.nav-item-bottom.active i {
  transform: translateY(-5px);
  color: var(--primary);
  text-shadow: 0 5px 15px rgba(37,99,235,0.3);
}

/* Premium Cards */
.premium-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  margin-bottom: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.3s, border-color 0.3s;
}

.premium-card:active {
  transform: scale(0.98);
}

/* Gradient Promo Card */
.promo-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.promo-banner::after {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
}

/* Category Icons */
.service-icon-wrap {
  width: 55px;
  height: 55px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.icon-insta { background: linear-gradient(45deg, #f09433, #dc2743, #bc1888); color: white; }
.icon-yt { background: #ff0000; color: white; }
.icon-fb { background: #1877f2; color: white; }
.icon-default { background: var(--primary-bg); color: var(--primary); }

/* Inputs & Buttons */
.form-control-custom {
  background: var(--border-light);
  border: 2px solid transparent;
  color: var(--text-dark);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-weight: 500;
  transition: all 0.3s;
}
.form-control-custom:focus {
  background: var(--card-bg);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-bg);
  outline: none;
  color: var(--text-dark);
}

.form-control-custom::placeholder {
  color: var(--text-muted);
}

.input-group-text-custom {
    background: var(--card-bg) !important;
    color: var(--text-dark) !important;
    border-color: transparent !important;
}

.btn-premium {
  background: linear-gradient(to right, var(--primary), var(--primary-dark));
  color: white;
  border: none;
  border-radius: var(--radius-md);
  padding: 16px;
  font-weight: 700;
  font-size: 1.1rem;
  width: 100%;
  box-shadow: var(--shadow-md);
  transition: all 0.3s;
}
.btn-premium:active {
  transform: translateY(2px);
  box-shadow: none;
}
.btn-accent {
  background: linear-gradient(to right, var(--accent), var(--accent-dark));
  color: white;
  border: none;
  border-radius: var(--radius-md);
  padding: 16px;
  font-weight: 700;
}

/* Utility Colors for Dark Mode */
.text-dark { color: var(--text-dark) !important; }
.bg-white { background-color: var(--card-bg) !important; }
.bg-light { background-color: var(--border-light) !important; color: var(--text-dark) !important; }
.text-muted { color: var(--text-muted) !important; }

[data-theme="dark"] .btn-close { filter: invert(1) grayscale(100%) brightness(200%); }

/* Final Polish Utilities */
.sticky-top-filters {
  position: sticky;
  top: 70px;
  z-index: 90;
  background: var(--bg-body);
  padding-top: 10px;
}

.btn-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}
.btn-loading::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  top: 50%;
  left: 50%;
  margin-top: -12px;
  margin-left: -12px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: white;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

/* Empty States */
.empty-state {
  text-align: center;
  padding: 40px 20px;
}
.empty-state-icon {
  font-size: 60px;
  color: var(--border-light);
  margin-bottom: 15px;
}
