:root {
  --bg-color: #0f172a;
  --card-bg: rgba(255, 255, 255, 0.05);
  --card-border: rgba(255, 255, 255, 0.1);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --accent-color: #38bdf8; /* Light Blue */
  --accent-glow: rgba(56, 189, 248, 0.5);
  --gradient-start: #3b82f6;
  --gradient-end: #8b5cf6;
  --btn-gradient: linear-gradient(135deg, #3b82f6, #8b5cf6);
  --font-main: 'Outfit', sans-serif;
}

body {
  margin: 0;
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.15) 0%, transparent 20%),
    radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 20%);
  background-attachment: fixed;
}

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

/* Header */
.site-header {
  padding: 40px 0;
  text-align: center;
}

.logo {
  font-size: 3rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -1px;
  background: linear-gradient(to right, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.highlight {
  background: var(--btn-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tagline {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-top: 10px;
}

/* Hero */
.hero {
  text-align: center;
  margin-bottom: 60px;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.hero p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* Grid */
.deals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 80px;
}

/* Card */
.deal-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.deal-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-color);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.deal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--btn-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.deal-card:hover::before {
  opacity: 1;
}

.deal-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-color);
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.deal-card h3 {
  font-size: 1.8rem;
  margin: 10px 0;
  color: #fff;
}

.rebate-info {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 25px;
}

/* Button */
.btn {
  display: inline-block;
  background: var(--btn-gradient);
  color: #fff;
  text-decoration: none;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  transition: filter 0.3s ease, transform 0.2s ease;
  width: 100%;
  max-width: 200px;
}

.btn:hover {
  filter: brightness(1.1);
  transform: scale(1.02);
  box-shadow: 0 0 20px var(--accent-glow);
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 40px 0;
  border-top: 1px solid var(--card-border);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.disclaimer {
  margin-bottom: 10px;
  opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
  .logo {
    font-size: 2.5rem;
  }
  
  .hero h2 {
    font-size: 2rem;
  }
}

/* Controls */
.controls {
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
}

.sort-buttons {
  background: rgba(255, 255, 255, 0.05);
  padding: 5px;
  border-radius: 30px;
  border: 1px solid var(--card-border);
  display: inline-flex;
}

.sort-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 8px 20px;
  border-radius: 25px;
  cursor: pointer;
  font-family: var(--font-main);
  font-weight: 600;
  transition: all 0.3s ease;
}

.sort-btn.active {
  background: var(--text-primary);
  color: var(--bg-color);
}

.sort-btn:hover:not(.active) {
  color: var(--text-primary);
}

/* Language Switcher */
.lang-switch {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 10px;
  z-index: 100;
}

.lang-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.lang-btn:hover, .lang-btn.active {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
  border-color: var(--accent-color);
}

.info-msg {
  color: #fbbf24; /* Amber warning color */
  font-size: 0.95rem;
  margin-top: 15px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  background: rgba(251, 191, 36, 0.1);
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid rgba(251, 191, 36, 0.2);
}

.note-text {
  font-size: 0.8rem;
  opacity: 0.6;
  margin-top: 10px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  font-style: italic;
}

.footer-links {
  margin-top: 20px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

/* Page content styles */
.page-content {
  padding: 40px 0;
  max-width: 800px;
  margin: 0 auto;
}

.page-content h2 {
  margin-top: 40px;
  color: var(--text-primary);
}

.page-content p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}

.back-link {
  display: inline-block;
  margin-top: 40px;
  color: var(--accent-color);
  text-decoration: none;
}

.separator {
  margin: 0 10px;
  opacity: 0.3;
}

/* Exchange Details Page */
.exchange-details {
  margin: 30px 0;
  line-height: 1.8;
  color: var(--text-secondary);
}

.exchange-details h3 {
  color: var(--text-primary);
  margin-top: 25px;
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.exchange-details ul {
  list-style-type: disc;
  padding-left: 20px;
  margin-bottom: 20px;
}

.exchange-details li {
  margin-bottom: 10px;
}

.cta-container {
  margin: 40px 0;
  text-align: center;
}

.deal-card {
  cursor: pointer;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.deal-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-color);
}

/* Prevent button click from triggering card click if handled in JS, 
   but since we will wrap content or use JS logic, just ensuring z-index if needed */
.deal-card .btn {
  position: relative;
  z-index: 2;
}
