/* ================================
   MarketWise24 - Advanced SMM Platform
   Gold & Black Premium Theme
   ================================ */

:root {
  --primary-gold: #D4AF37;
  --dark-bg: #0a0a0a;
  --card-bg: #1a1a1a;
  --border-gold: #B8961E;
  --text-light: #ffffff;
  --text-muted: #a0a0a0;
  --success: #28a745;
  --danger: #dc3545;
  --warning: #ffc107;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, var(--dark-bg) 0%, #1a1a1a 100%);
  color: var(--text-light);
  min-height: 100vh;
  line-height: 1.6;
}

/* ============ Navigation ============ */
.navbar {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--primary-gold);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.1);
}

.navbar-brand {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-gold) !important;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-brand .logo-icon {
  font-size: 2rem;
}

.nav-link {
  color: var(--text-light) !important;
  margin: 0 1rem;
  font-weight: 500;
  transition: all 0.3s;
  position: relative;
}

.nav-link:hover {
  color: var(--primary-gold) !important;
}

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

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

/* ============ Buttons ============ */
.btn {
  border-radius: 8px;
  padding: 12px 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}

.btn-gold {
  background: linear-gradient(135deg, var(--primary-gold) 0%, var(--border-gold) 100%);
  color: var(--dark-bg);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

.btn-outline-gold {
  background: transparent;
  border: 2px solid var(--primary-gold);
  color: var(--primary-gold);
}

.btn-outline-gold:hover {
  background: var(--primary-gold);
  color: var(--dark-bg);
}

.btn-dark {
  background: var(--card-bg);
  color: var(--text-light);
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.btn-dark:hover {
  border-color: var(--primary-gold);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

/* ============ Cards ============ */
.card {
  background: var(--card-bg);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-gold);
  box-shadow: 0 12px 40px rgba(212, 175, 55, 0.2);
}

.card-title {
  color: var(--primary-gold);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.service-card {
  text-align: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
  transition: left 0.5s;
}

.service-card:hover::before {
  left: 100%;
}

.service-icon {
  font-size: 3rem;
  color: var(--primary-gold);
  margin-bottom: 1rem;
}

/* ============ Forms ============ */
.form-control {
  background: rgba(26, 26, 26, 0.8);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 8px;
  color: var(--text-light);
  padding: 12px 15px;
  transition: all 0.3s;
}

.form-control:focus {
  background: rgba(26, 26, 26, 0.95);
  border-color: var(--primary-gold);
  box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
  color: var(--text-light);
}

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

.form-label {
  color: var(--primary-gold);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.form-select {
  background: rgba(26, 26, 26, 0.8);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 8px;
  color: var(--text-light);
  padding: 12px 15px;
}

.form-select:focus {
  border-color: var(--primary-gold);
  box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

.form-select option {
  background: var(--card-bg);
  color: var(--text-light);
}

/* ============ Hero Section ============ */
.hero {
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
  animation: pulse 15s infinite;
}

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

.hero h1 {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--primary-gold);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  position: relative;
  z-index: 1;
}

.hero .tagline {
  font-size: 1.5rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.hero .tech-badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--primary-gold);
  border-radius: 50px;
  margin: 0 10px;
  font-size: 0.9rem;
  color: var(--primary-gold);
}

/* ============ Stats ============ */
.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.stat-card {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, transparent 100%);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 15px;
}

.stat-number {
  font-size: 3rem;
  font-weight: 900;
  color: var(--primary-gold);
}

.stat-label {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

/* ============ Services Grid ============ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

/* ============ Tables ============ */
.table {
  color: var(--text-light);
  background: transparent;
}

.table thead {
  background: rgba(212, 175, 55, 0.1);
  border-bottom: 2px solid var(--primary-gold);
}

.table thead th {
  color: var(--primary-gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 1rem;
  border: none;
}

.table tbody tr {
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  transition: all 0.3s;
}

.table tbody tr:hover {
  background: rgba(212, 175, 55, 0.05);
}

.table tbody td {
  padding: 1rem;
  vertical-align: middle;
  border: none;
}

/* ============ Badges ============ */
.badge {
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
}

.badge-pending {
  background: rgba(255, 193, 7, 0.2);
  color: var(--warning);
  border: 1px solid var(--warning);
}

.badge-approved, .badge-completed {
  background: rgba(40, 167, 69, 0.2);
  color: var(--success);
  border: 1px solid var(--success);
}

.badge-rejected, .badge-cancelled {
  background: rgba(220, 53, 69, 0.2);
  color: var(--danger);
  border: 1px solid var(--danger);
}

.badge-processing {
  background: rgba(0, 123, 255, 0.2);
  color: #007bff;
  border: 1px solid #007bff;
}

/* ============ Alerts ============ */
.alert {
  border-radius: 10px;
  padding: 1rem 1.5rem;
  border: 1px solid;
  margin-bottom: 1rem;
}

.alert-success {
  background: rgba(40, 167, 69, 0.1);
  border-color: var(--success);
  color: var(--success);
}

.alert-danger {
  background: rgba(220, 53, 69, 0.1);
  border-color: var(--danger);
  color: var(--danger);
}

.alert-warning {
  background: rgba(255, 193, 7, 0.1);
  border-color: var(--warning);
  color: var(--warning);
}

/* ============ Modal ============ */
.modal-content {
  background: var(--card-bg);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 15px;
}

.modal-header {
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  padding: 1.5rem;
}

.modal-title {
  color: var(--primary-gold);
  font-weight: 700;
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  border-top: 1px solid rgba(212, 175, 55, 0.3);
  padding: 1.5rem;
}

.btn-close {
  filter: invert(1);
}

/* ============ Footer ============ */
.footer {
  background: rgba(10, 10, 10, 0.95);
  border-top: 2px solid var(--primary-gold);
  padding: 3rem 0 1rem;
  margin-top: 5rem;
}

.footer-brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-gold);
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  margin: 0 1rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--primary-gold);
}

/* ============ Sidebar ============ */
.sidebar {
  background: var(--card-bg);
  border-right: 2px solid rgba(212, 175, 55, 0.3);
  min-height: 100vh;
  padding: 2rem 0;
}

.sidebar-item {
  padding: 1rem 2rem;
  color: var(--text-light);
  text-decoration: none;
  display: block;
  transition: all 0.3s;
  border-left: 4px solid transparent;
  font-size: 1rem;
  font-weight: 500;
}

.sidebar-item:hover,
.sidebar-item.active {
  color: var(--primary-gold);
  background: rgba(212, 175, 55, 0.15);
  border-left-color: var(--primary-gold);
  transform: translateX(5px);
}

.sidebar-icon {
  margin-right: 12px;
  width: 24px;
  display: inline-block;
  font-size: 1.2rem;
}

/* ============ Loading Spinner ============ */
.spinner {
  border: 3px solid rgba(212, 175, 55, 0.1);
  border-top: 3px solid var(--primary-gold);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 2rem auto;
}

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

/* ============ Mobile Menu Toggle ============ */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1001;
  background: linear-gradient(135deg, var(--primary-gold) 0%, var(--border-gold) 100%);
  color: var(--dark-bg);
  border: 3px solid var(--primary-gold);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  font-size: 2rem;
  font-weight: bold;
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.8), 0 0 30px rgba(212, 175, 55, 0.4);
  cursor: pointer;
  transition: all 0.3s;
  animation: pulse 2s infinite;
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle:active {
  transform: scale(1.15);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 1), 0 0 40px rgba(212, 175, 55, 0.6);
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.8), 0 0 30px rgba(212, 175, 55, 0.4);
  }
  50% {
    box-shadow: 0 8px 25px rgba(212, 175, 55, 1), 0 0 40px rgba(212, 175, 55, 0.7);
  }
}

.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 999;
}

.sidebar-overlay.active {
  display: block;
}

/* ============ Responsive ============ */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero .tagline {
    font-size: 1rem;
  }
  
  .navbar-brand {
    font-size: 1.2rem;
    letter-spacing: 1px;
  }
  
  .navbar-brand .logo-icon {
    font-size: 1.5rem;
  }
  
  .navbar .container-fluid {
    flex-wrap: wrap;
  }
  
  .navbar .d-flex {
    flex-direction: column;
    align-items: flex-end !important;
    gap: 5px;
    font-size: 0.85rem;
  }
  
  .navbar .d-flex span {
    font-size: 0.85rem;
  }
  
  .navbar .btn-sm {
    padding: 5px 15px;
    font-size: 0.8rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .sidebar {
    position: fixed;
    left: -100%;
    top: 0;
    width: 280px;
    max-width: 80%;
    z-index: 1000;
    transition: left 0.3s ease;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
  }
  
  .sidebar.active {
    left: 0;
  }
  
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    font-size: 2rem;
    bottom: 25px;
    right: 25px;
  }
  
  /* Make sidebar more visible on mobile */
  .sidebar {
    border-right: 3px solid var(--primary-gold);
  }
  
  .sidebar-item {
    padding: 1.2rem 1.5rem;
    font-size: 1.1rem;
    border-left: 5px solid transparent;
  }
  
  .sidebar-item:hover,
  .sidebar-item.active {
    border-left: 5px solid var(--primary-gold);
  }
  
  .sidebar-icon {
    font-size: 1.4rem;
    margin-right: 15px;
  }
  
  .stats-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .btn-lg {
    padding: 12px 24px;
    font-size: 1rem;
  }
  
  .card {
    padding: 1.5rem;
  }
  
  .hero {
    padding: 3rem 0;
  }
  
  .tech-badge {
    font-size: 0.8rem;
    padding: 6px 12px;
    margin: 3px;
  }
  
  .service-card {
    margin-bottom: 1rem;
  }
  
  .col-md-9.col-lg-10 {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.3rem;
  }
  
  h4 {
    font-size: 1.1rem;
  }
}

@media (max-width: 576px) {
  .navbar-brand {
    font-size: 1rem;
  }
  
  .card {
    padding: 1rem;
  }
  
  .stat-card {
    padding: 1rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
}

/* ============ Scrollbar ============ */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-gold);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-gold);
}

/* ============ Utilities ============ */
.text-gold {
  color: var(--primary-gold) !important;
}

.text-muted {
  color: var(--text-muted) !important;
}

.bg-dark-card {
  background: var(--card-bg);
}

.border-gold {
  border-color: var(--primary-gold) !important;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.mt-5 { margin-top: 3rem; }
.mb-5 { margin-bottom: 3rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }
.text-center { text-align: center; }
