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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f5f7fa;
  color: #333;
  line-height: 1.6;
}

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

/* Header */
header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

header h1 {
  font-size: 24px;
  font-weight: 700;
  background: rgba(255,255,255,0.2);
  padding: 8px 20px;
  border-radius: 30px;
  backdrop-filter: blur(5px);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

nav a {
  color: white;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 20px;
  transition: all 0.3s;
  font-weight: 500;
}

nav a:hover {
  background: rgba(255,255,255,0.3);
  transform: translateY(-2px);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-align: center;
  padding: 60px 20px;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.hero h2 {
  font-size: 36px;
  margin-bottom: 15px;
  font-weight: 700;
}

.hero p {
  font-size: 18px;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto 30px;
}

.hero .btn {
  background: white;
  color: #667eea;
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.hero .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Section */
.section {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h3 {
  font-size: 28px;
  color: #333;
  margin-bottom: 10px;
}

.section-title p {
  color: #777;
  max-width: 600px;
  margin: 0 auto;
}

/* Filter Bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-bottom: 30px;
  background: white;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.filter-bar select,
.filter-bar input {
  padding: 10px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 14px;
  background: white;
  transition: all 0.3s;
  min-width: 150px;
}

.filter-bar select:focus,
.filter-bar input:focus {
  border-color: #667eea;
  outline: none;
  box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
}

.filter-bar .btn-filter {
  background: #667eea;
  color: white;
  border: none;
  padding: 10px 25px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
}

.filter-bar .btn-filter:hover {
  background: #5a6fd6;
  transform: translateY(-2px);
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 25px;
}

.card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: all 0.3s;
  position: relative;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.card-header {
  padding: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-header h4 {
  font-size: 18px;
  font-weight: 600;
}

.card-header .rating {
  background: rgba(255,255,255,0.2);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 14px;
}

.card-body {
  padding: 20px;
}

.card-body .info-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
}

.card-body .info-row:last-child {
  border-bottom: none;
}

.card-body .label {
  color: #888;
  font-size: 14px;
}

.card-body .value {
  font-weight: 600;
  color: #333;
}

.card-body .value.price {
  color: #e74c3c;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s;
}

.card-body .value.price:hover {
  color: #c0392b;
}

.card-footer {
  padding: 15px 20px;
  background: #fafafa;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.card-footer .btn {
  padding: 8px 20px;
  border-radius: 25px;
  border: none;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s;
  flex: 1;
  text-align: center;
  text-decoration: none;
  font-size: 14px;
}

.btn-primary {
  background: #667eea;
  color: white;
}

.btn-primary:hover {
  background: #5a6fd6;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: #667eea;
  border: 2px solid #667eea;
}

.btn-outline:hover {
  background: #667eea;
  color: white;
}

.btn-fav {
  background: transparent;
  border: none;
  font-size: 22px;
  cursor: pointer;
  transition: all 0.3s;
  color: #ccc;
}

.btn-fav.active {
  color: #e74c3c;
}

/* Steps */
.steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.step-item {
  text-align: center;
  padding: 20px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: all 0.3s;
}

.step-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.step-number {
  width: 50px;
  height: 50px;
  line-height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-size: 20px;
  font-weight: 700;
  margin: 0 auto 15px;
}

.step-item h5 {
  font-size: 16px;
  margin-bottom: 8px;
}

.step-item p {
  font-size: 13px;
  color: #888;
}

/* Chart */
.chart-container {
  background: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  margin-top: 30px;
}

canvas {
  max-width: 100%;
  height: auto;
}

/* Reviews */
.reviews-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.review-item {
  background: white;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: all 0.3s;
}

.review-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.review-item .user {
  font-weight: 600;
  margin-bottom: 8px;
}

.review-item .stars {
  color: #f1c40f;
  margin-bottom: 8px;
}

.review-item .text {
  color: #666;
  font-size: 14px;
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(3px);
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: white;
  border-radius: 20px;
  padding: 30px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal h3 {
  margin-bottom: 20px;
  font-size: 22px;
  color: #333;
}

.modal .close-btn {
  float: right;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #999;
  transition: all 0.3s;
}

.modal .close-btn:hover {
  color: #333;
}

.modal table {
  width: 100%;
  border-collapse: collapse;
}

.modal table td {
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}

.modal table td:last-child {
  text-align: right;
  font-weight: 600;
}

.modal .total-row td {
  font-size: 18px;
  font-weight: 700;
  color: #e74c3c;
  border-bottom: none;
  padding-top: 15px;
}

/* Floating Button */
.floating-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 28px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: all 0.3s;
  z-index: 999;
  border: none;
}

.floating-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* History */
.history-section {
  background: white;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  margin-top: 30px;
}

.history-section h4 {
  margin-bottom: 15px;
  color: #333;
}

.history-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.history-item {
  background: #f0f0f0;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 13px;
  color: #666;
  cursor: pointer;
  transition: all 0.3s;
}

.history-item:hover {
  background: #667eea;
  color: white;
}

/* Footer */
footer {
  background: #2c3e50;
  color: white;
  text-align: center;
  padding: 30px 0;
  margin-top: 60px;
}

footer a {
  color: #667eea;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  header h1 {
    font-size: 18px;
  }

  nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    background: rgba(0,0,0,0.1);
    padding: 10px;
    border-radius: 10px;
    margin-top: 10px;
  }

  nav ul.active {
    display: flex;
  }

  .hamburger {
    display: block;
  }

  .hero h2 {
    font-size: 28px;
  }

  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .steps-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .floating-btn {
    width: 50px;
    height: 50px;
    font-size: 22px;
    bottom: 20px;
    right: 20px;
  }
}