/* New Offers Web - Main Stylesheet */

/* CSS Variables */
:root {
  --primary-color: #591f40;
  --secondary-color: #fff;
  --background-color: #f5f5f5;
  --text-color: #000;
  --text-secondary: #666;
  --text-tertiary: #999;
  --text-quaternary: #ccc;
  --text-quinary: #eee;
  --text-senary: #f5f5f5;
  --text-septenary: #f5f5f5;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #17a2b8;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  --white: #ffffff;
  --border-radius: 8px;
  --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* General Styles */
body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
}

.min-vh-50 {
  min-height: 50vh;
}

/* Custom Gradients */
.bg-gradient-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

/* Blur Effect for Unauthenticated Users */
.blur-ads {
  position: relative;
  filter: blur(8px);
  pointer-events: none;
  user-select: none;
  opacity: 0.3;
}

.blur-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border-radius: var(--border-radius);
}

.blur-message {
  text-align: center;
  background: rgba(255, 255, 255, 0.95);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  max-width: 400px;
  margin: 1rem;
}

.blur-message h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.blur-message p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.blur-message .btn {
  margin: 0.25rem;
}

.ads-blur-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 300px;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border-radius: var(--border-radius);
  backdrop-filter: blur(2px);
}

.ads-blur-message {
  text-align: center;
  max-width: 400px;
  padding: 2rem;
  margin: 1rem;
}

.loading-spinner {
  text-align: center;
}

/* Navigation */
.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary-color) !important;
}

.navbar-nav .nav-link {
  font-weight: 500;
  transition: var(--transition);
  color: var(--secondary-color) !important;
}

.navbar-nav .nav-link:hover {
  color: var(--text-quinary) !important;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
}

/* App Download Button */
.btn-warning {
  background-color: #ffc107;
  border-color: #ffc107;
  color: #000;
}

.btn-warning:hover {
  background-color: #e0a800;
  border-color: #d39e00;
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

/* Hero Section */
.hero-section {
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" preserveAspectRatio="none"><polygon fill="rgba(255,255,255,0.1)" points="1000,100 1000,0 0,100"/></svg>') no-repeat;
  background-size: cover;
}

.hero-image {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

/* Stats Section */
.stats-section .stat-item {
  padding: 1rem;
  transition: var(--transition);
}

.stats-section .stat-item:hover {
  transform: translateY(-5px);
}

.stats-section h3 {
  font-size: 2.5rem;
}

/* Category Tabs */
.category-tabs {
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.category-tabs .nav-link {
  border-radius: 25px;
  margin-right: 0.5rem;
  padding: 0.75rem 1.5rem;
  color: var(--secondary-color);
  background-color: var(--white);
  border: 2px solid #e9ecef;
  transition: var(--transition);
  white-space: nowrap;
}

.category-tabs .nav-link:hover,
.category-tabs .nav-link.active {
  color: var(--white);
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

/* Filters */
.filters-section .form-select,
.filters-section .form-control {
  border-radius: var(--border-radius);
  border: 2px solid #e9ecef;
  transition: var(--transition);
}

.filters-section .form-select:focus,
.filters-section .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Ad Cards */
.ad-card {
  border: none;
  border-radius: var(--border-radius);
  transition: var(--transition);
  overflow: hidden;
}

.ad-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.ad-media-container {
  position: relative;
  height: 200px;
  overflow: hidden;
  background-color: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-media-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.ad-card:hover .ad-media-container img {
  transform: scale(1.05);
}

.ad-media-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ad-media-container .swiper {
  width: 100%;
  height: 100%;
}

.ad-media-container .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
}

.ad-badges .badge {
  margin-right: 0.25rem;
  margin-bottom: 0.25rem;
  font-size: 0.75rem;
  padding: 0.5rem 0.75rem;
}

.favorite-btn {
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.favorite-btn:hover {
  transform: scale(1.1);
}

.favorite-btn.active {
  background-color: var(--danger-color);
  border-color: var(--danger-color);
  color: var(--white);
}

.ad-title {
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.ad-caption {
  font-size: 0.9rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ad-seller-info {
  font-size: 0.85rem;
}

.seller-verified {
  color: var(--success-color);
}

.ad-countdown {
  background-color: #fff3cd;
  border-radius: var(--border-radius);
  padding: 0.5rem;
  margin-bottom: 0.75rem;
}

.countdown-text {
  font-weight: 600;
}

/* Feature Cards */
.feature-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  border: 1px solid #e9ecef;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background-color: rgba(0, 123, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

/* Buttons */
.btn {
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: var(--transition);
  border-width: 2px;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: #0056b3;
  border-color: #0056b3;
}

/* Forms */
.form-control,
.form-select {
  border-radius: var(--border-radius);
  border-width: 2px;
  transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Cards */
.card {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.card-header {
  background-color: var(--white);
  border-bottom: 2px solid #e9ecef;
  font-weight: 600;
}

/* Modals */
.modal-content {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
  border-bottom: 2px solid #e9ecef;
}

.modal-footer {
  border-top: 2px solid #e9ecef;
}

/* Alerts */
.alert {
  border: none;
  border-radius: var(--border-radius);
  border-left: 4px solid;
}

.alert-success {
  border-left-color: var(--success-color);
}

.alert-danger {
  border-left-color: var(--danger-color);
}

.alert-warning {
  border-left-color: var(--warning-color);
}

.alert-info {
  border-left-color: var(--info-color);
}

/* Footer */
footer {
  background-color: var(--dark-color) !important;
}

/* Ensure readable text colors on dark footer */
footer, footer p, footer h5, footer h6, footer li, footer .text-muted {
  color: rgba(255, 255, 255, 0.75) !important;
}

footer a {
  color: rgba(255, 255, 255, 0.85) !important;
  text-decoration: none;
}

footer a:hover {
  color: #ffffff !important;
}

footer hr {
  border-color: rgba(255, 255, 255, 0.15);
}

footer .social-links a {
  transition: var(--transition);
}

footer .social-links a:hover {
  color: var(--primary-color) !important;
  transform: translateY(-3px);
}

/* Back to Top Button */
#back-to-top {
  transition: var(--transition);
}

#back-to-top:hover {
  transform: translateY(-3px);
}

/* View Toggle */
.view-toggle .btn {
  border-radius: 0;
}

.view-toggle .btn:first-child {
  border-top-left-radius: var(--border-radius);
  border-bottom-left-radius: var(--border-radius);
}

.view-toggle .btn:last-child {
  border-top-right-radius: var(--border-radius);
  border-bottom-right-radius: var(--border-radius);
}

/* List View */
.list-view .ad-item {
  width: 100%;
}

.list-view .ad-card {
  flex-direction: row;
}

.list-view .ad-media-container {
  width: 200px;
  height: 150px;
  flex-shrink: 0;
}

.list-view .card-body {
  flex: 1;
}

.list-view .card-footer {
  width: auto;
  flex-shrink: 0;
}

/* Dashboard Styles */
.dashboard-card {
  background: linear-gradient(135deg, var(--white) 0%, #f8f9fa 100%);
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.dashboard-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.dashboard-stat {
  text-align: center;
  padding: 2rem 1rem;
}

.dashboard-stat h3 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.dashboard-stat p {
  font-size: 1.1rem;
  margin-bottom: 0;
}

/* Form Validation */
.is-invalid {
  border-color: var(--danger-color);
}

.invalid-feedback {
  display: block;
  color: var(--danger-color);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* Image Upload */
.image-upload-area {
  border: 2px dashed #ced4da;
  border-radius: var(--border-radius);
  padding: 3rem 1rem;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
}

.image-upload-area:hover {
  border-color: var(--primary-color);
  background-color: rgba(0, 123, 255, 0.05);
}

.image-upload-area.dragover {
  border-color: var(--primary-color);
  background-color: rgba(0, 123, 255, 0.1);
}

.image-preview {
  max-width: 100%;
  max-height: 200px;
  border-radius: var(--border-radius);
  margin-top: 1rem;
}

/* Payment */
.payment-method {
  border: 2px solid #e9ecef;
  border-radius: var(--border-radius);
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.payment-method:hover,
.payment-method.selected {
  border-color: var(--primary-color);
  background-color: rgba(0, 123, 255, 0.05);
}

.payment-method .payment-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

/* Google Maps */
.map-container {
  height: 400px;
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 2px solid #e9ecef;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section {
    text-align: center;
  }
  
  .hero-section .display-4 {
    font-size: 2rem;
  }
  
  .category-tabs {
    flex-wrap: nowrap;
  }
  
  .filters-section .col-md-3,
  .filters-section .col-md-4 {
    margin-bottom: 1rem;
  }
  
  .ad-media-container {
    height: 180px;
  }
  
  .feature-card {
    margin-bottom: 2rem;
  }
  
  .list-view .ad-card {
    flex-direction: column;
  }
  
  .list-view .ad-media-container {
    width: 100%;
    height: 200px;
  }
}

@media (max-width: 576px) {
  .hero-section .display-4 {
    font-size: 1.75rem;
  }
  
  .stats-section h3 {
    font-size: 2rem;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.slide-in-left {
  animation: slideInLeft 0.5s ease-out;
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

.slide-in-right {
  animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Utility Classes */
.text-gradient {
  background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.shadow-soft {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.border-soft {
  border: 2px solid #e9ecef;
}

/* ==========================================================================
   Home Page Specific Styles
   ========================================================================== */

/* Hero Section */
.hero-section {
  position: relative;
  overflow: hidden;
}

.hero-bg-elements {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.floating-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
  animation: float-slow 6s ease-in-out infinite;
}

.shape-1 {
  width: 200px;
  height: 200px;
  background: linear-gradient(45deg, #ffc107, #ff8c00);
  top: 10%;
  right: 10%;
  animation-delay: 0s;
}

.shape-2 {
  width: 150px;
  height: 150px;
  background: linear-gradient(45deg, #591f40, #7a2a52);
  top: 60%;
  left: 5%;
  animation-delay: 2s;
}

.shape-3 {
  width: 100px;
  height: 100px;
  background: linear-gradient(45deg, #28a745, #20c997);
  bottom: 20%;
  right: 20%;
  animation-delay: 4s;
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-badge .badge-modern {
  background: rgba(255, 193, 7, 0.1);
  color: #ffc107;
  border: 1px solid rgba(255, 193, 7, 0.3);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
}

.hero-title .text-gradient {
  background: linear-gradient(135deg, #ffc107, #ff8c00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-actions .btn-modern {
  background: linear-gradient(135deg, #ffc107 0%, #ff8c00 100%);
  border: 2px solid #fff;
  color: #000;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.hero-actions .btn-modern:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
  background: linear-gradient(135deg, #ff8c00 0%, #e67e22 100%);
}

.hero-actions .btn-outline-modern {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: #fff;
  border-radius: 50px;
  font-weight: 600;
}

.hero-actions .btn-outline-modern:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  transform: translateY(-3px);
}

.hero-phone-mockup {
  position: relative;
  margin: 0 auto;
  max-width: 300px;
}

.phone-frame {
  position: relative;
  width: 250px;
  height: 500px;
  background: linear-gradient(145deg, #1a1a1a, #2d2d2d);
  border-radius: 30px;
  padding: 15px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #000;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}

.app-screenshot {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #591f40, #7a2a52);
  display: flex;
  flex-direction: column;
}

.screenshot-header {
  height: 60px;
  background: rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.status-bar {
  width: 60px;
  height: 4px;
  background: #fff;
  border-radius: 2px;
}

.app-header {
  color: #fff;
  font-weight: 600;
}

.screenshot-content {
  flex: 1;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.deal-card-modern {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.deal-image-placeholder {
  height: 120px;
  background: linear-gradient(45deg, #f0f0f0, #e0e0e0);
  border-radius: 10px;
  margin-bottom: 10px;
}

.deal-title, .deal-price {
  height: 8px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  margin-bottom: 5px;
}

.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.floating-card {
  position: absolute;
  padding: 0.75rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: float-card 4s ease-in-out infinite;
}

.card-1 {
  top: 15%;
  right: -20px;
  background: rgba(255, 193, 7, 0.9);
  color: #000;
  animation-delay: 0s;
}

.card-2 {
  top: 40%;
  left: -20px;
  background: rgba(220, 53, 69, 0.9);
  color: #fff;
  animation-delay: 1s;
}

.card-3 {
  bottom: 20%;
  right: 10px;
  background: rgba(255, 193, 7, 0.9);
  color: #000;
  animation-delay: 2s;
}

@keyframes float-card {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-10px) scale(1.05); }
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.scroll-mouse {
  width: 24px;
  height: 36px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  margin: 0 auto 10px;
  position: relative;
}

.scroll-wheel {
  width: 4px;
  height: 8px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll-wheel 2s ease-in-out infinite;
}

@keyframes scroll-wheel {
  0% { opacity: 0; transform: translateX(-50%) translateY(0); }
  50% { opacity: 1; transform: translateX(-50%) translateY(8px); }
  100% { opacity: 0; transform: translateX(-50%) translateY(16px); }
}

/* Stats Section */
.stats-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
}

.pattern-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.05;
}

.circle-1 {
  width: 300px;
  height: 300px;
  background: var(--primary-color);
  top: -150px;
  right: -150px;
}

.circle-2 {
  width: 200px;
  height: 200px;
  background: #ffc107;
  bottom: -100px;
  left: -100px;
}

.circle-3 {
  width: 150px;
  height: 150px;
  background: #28a745;
  top: 50%;
  left: 10%;
}

.stat-card-modern {
  background: #fff;
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stat-card-modern:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.stat-icon-wrapper {
  display: flex;
  justify-content: center;
  position: relative;
}

.stat-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stat-icon.bg-primary-modern { background: linear-gradient(135deg, #591f40, #7a2a52); }
.stat-icon.bg-success-modern { background: linear-gradient(135deg, #28a745, #20c997); }
.stat-icon.bg-info-modern { background: linear-gradient(135deg, #17a2b8, #138496); }
.stat-icon.bg-warning-modern { background: linear-gradient(135deg, #ffc107, #e0a800); }

.stat-counter {
  text-align: center;
  margin-top: 1.5rem;
}

.stat-number {
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--text-color), var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-glow {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  border-radius: 2px;
  opacity: 0.6;
}

.achievement-badges {
  justify-content: center;
}

.achievement-badge {
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 25px;
  font-size: 0.875rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Deals Section */
.quick-filters-container {
  margin-bottom: 2rem;
}

.filter-btn-modern {
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  color: var(--text-secondary);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 500;
  transition: all 0.3s ease;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.filter-btn-modern:hover,
.filter-btn-modern.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(89, 31, 64, 0.3);
}

.view-controls {
  gap: 0.5rem;
}

.view-btn-modern {
  width: 45px;
  height: 45px;
  border-radius: 12px;
  border: 2px solid #e9ecef;
  background: #f8f9fa;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.view-btn-modern:hover,
.view-btn-modern.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
  transform: translateY(-2px);
}

.advanced-filters-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.filter-group {
  margin-bottom: 1.5rem;
}

.filter-label {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.form-select-modern,
.form-control-modern {
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.form-select-modern:focus,
.form-control-modern:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(89, 31, 64, 0.1);
}

.input-group-modern {
  display: flex;
  gap: 0.5rem;
}

.input-group-text-modern {
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
}

.range-slider-container {
  position: relative;
}

.form-range-modern {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #e9ecef;
  outline: none;
}

.form-range-modern::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary-color);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.search-input-group {
  position: relative;
}

.search-input {
  padding-right: 50px;
}

.btn-search-modern {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  border: none;
  background: var(--primary-color);
  color: #fff;
  border-radius: 0 10px 10px 0;
  width: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.filter-actions {
  gap: 1rem;
}

.btn-primary-modern {
  background: linear-gradient(135deg, #591f40, #7a2a52);
  border: none;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary-modern:hover {
  background: linear-gradient(135deg, #7a2a52, #591f40);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(89, 31, 64, 0.3);
}

.btn-outline-modern {
  border: 2px solid #e9ecef;
  background: transparent;
  color: var(--text-secondary);
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline-modern:hover {
  background: #f8f9fa;
  border-color: var(--text-tertiary);
  transform: translateY(-2px);
}

.spinner-border-modern {
  width: 3rem;
  height: 3rem;
  border: 4px solid #f8f9fa;
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.btn-load-more-modern {
  background: linear-gradient(135deg, #ffc107, #ff8c00);
  border: none;
  color: #000;
  border-radius: 50px;
  font-weight: 600;
  padding: 1rem 2rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.btn-load-more-modern:hover {
  background: linear-gradient(135deg, #ff8c00, #e67e22);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
}

/* Features Section */
.features-bg-decoration {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.decoration-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.05;
}

.decoration-circle.circle-1 {
  width: 250px;
  height: 250px;
  background: var(--primary-color);
  top: -125px;
  left: -125px;
}

.decoration-circle.circle-2 {
  width: 180px;
  height: 180px;
  background: #ffc107;
  top: 40%;
  right: -90px;
}

.decoration-circle.circle-3 {
  width: 120px;
  height: 120px;
  background: #28a745;
  bottom: -60px;
  left: 20%;
}

.feature-card-modern {
  background: #fff;
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card-modern:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-card-inner {
  position: relative;
  z-index: 2;
}

.feature-icon-modern {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #fff;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature-icon-glow {
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 50%;
  opacity: 0.3;
  filter: blur(10px);
}

.bg-location { background: linear-gradient(135deg, #17a2b8, #138496); }
.bg-security { background: linear-gradient(135deg, #28a745, #20c997); }
.bg-mobile { background: linear-gradient(135deg, #6f42c1, #5a32a3); }
.bg-personal { background: linear-gradient(135deg, #fd7e14, #e8680f); }
.bg-time { background: linear-gradient(135deg, #dc3545, #c82333); }
.bg-language { background: linear-gradient(135deg, #20c997, #17a2b8); }

.feature-accent-line {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  width: 60px;
  border-radius: 2px 2px 0 0;
}

.section-badge .badge-modern-secondary {
  background: rgba(89, 31, 64, 0.1);
  color: var(--primary-color);
  border: 1px solid rgba(89, 31, 64, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
}

/* CTA Section */
.cta-bg-elements {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.cta-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
  animation: float-cta 8s ease-in-out infinite;
}

.cta-shape.shape-1 {
  width: 200px;
  height: 200px;
  background: #ffc107;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.cta-shape.shape-2 {
  width: 150px;
  height: 150px;
  background: rgba(255, 255, 255, 0.2);
  bottom: 20%;
  right: 15%;
  animation-delay: 3s;
}

.cta-shape.shape-3 {
  width: 100px;
  height: 100px;
  background: #28a745;
  top: 50%;
  left: 20%;
  animation-delay: 6s;
}

@keyframes float-cta {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-30px) scale(1.1); }
}

.cta-badge .badge-modern-light {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
}

.cta-benefits .benefit-item {
  margin-bottom: 0.75rem;
}

.cta-benefits .benefit-icon {
  flex-shrink: 0;
}

.cta-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 2rem;
}

.cta-card-secondary {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 1.5rem;
}

.btn-modern-cta {
  background: linear-gradient(135deg, #ffc107 0%, #ff8c00 100%);
  border: 2px solid #fff;
  color: #000;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.btn-modern-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
  background: linear-gradient(135deg, #ff8c00 0%, #e67e22 100%);
}

.btn-outline-modern-cta {
  border: 2px solid rgba(255, 255, 255, 0.8);
  background: transparent;
  color: #fff;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline-modern-cta:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  transform: translateY(-2px);
}

.cta-trust .trust-stat {
  padding: 0.5rem;
}

.cta-trust .trust-number {
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.cta-trust .trust-label {
  font-size: 0.75rem;
}

/* Responsive Design Updates */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }

  .floating-card {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
  }

  .stat-card-modern {
    padding: 1.5rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .feature-card-modern {
    padding: 1.5rem;
  }

  .cta-benefits .col-md-6 {
    margin-bottom: 0.5rem;
  }

  .cta-actions .col-lg-4 {
    margin-top: 2rem;
  }
}

/* Print Styles */
@media print {
  .navbar, .footer, #back-to-top {
    display: none !important;
  }

  .container {
    max-width: none !important;
  }
}
