/* AI Tips module styles */

:root {
  --tips-surface: rgba(255, 255, 255, 0.04);
  --tips-surface-2: rgba(255, 255, 255, 0.06);
  --tips-border: rgba(255, 255, 255, 0.10);
  --tips-text: rgba(255, 255, 255, 0.92);
  --tips-muted: rgba(255, 255, 255, 0.70);
  
  /* New color scheme - Purple & Teal theme */
  --tips-primary: #8B5CF6;
  --tips-secondary: #14B8A6;
  --tips-accent: #F59E0B;
  --tips-btn-bg: linear-gradient(135deg, #8B5CF6, #14B8A6);
  --tips-btn-border: #8B5CF6;
  --tips-btn-text: rgba(255, 255, 255, 0.94);
  --tips-hero-bg: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(20, 184, 166, 0.05) 100%);
}

/* Font polish */
.tips-page,
.tip-details-page {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Tighter heading line-height for better visual balance */
.tips-page h1,
.tips-page h2,
.tips-page h3,
.tips-page h4,
.tips-page h5,
.tips-page h6,
.tip-details-page h1,
.tip-details-page h2,
.tip-details-page h3,
.tip-details-page h4,
.tip-details-page h5,
.tip-details-page h6 {
  line-height: 1.15;
}

/* Extra tight line-height for h2 */
.tips-page h2,
.tip-details-page h2 {
  line-height: 0.8;
}

/* Mobile header spacing */
@media (max-width: 900px) {
  .tips-page { padding-top: 180px; }
  .tip-details-page { padding-top: 180px; }
}

@media (max-width: 480px) {
  .tips-page { padding-top: 200px; }
  .tip-details-page { padding-top: 200px; }
}

/* Container */
.tips-container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 28px 16px;
}

.tip-details-page .tips-container {
  max-width: 1120px;
  margin: 6rem auto 0;
  padding: 28px 16px;
}

@media (max-width: 768px) {
  .tips-container,
  .tip-details-page .tips-container {
    margin-top: 0;
  }
}

/* Hero Section - Blog-style layout */
.tips-hero {
  width: 100%;
  margin: 4rem 0 0 0;
  padding: 3rem 0;
  background: rgba(255, 255, 255, 0.04);
}

.tips-hero-wrapper {
  max-width: 1280px;
  margin: 2rem auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 0.5fr 0.5fr;
  gap: 2.5rem;
  align-items: center;
}

.tips-hero-content {
  position: relative;
  z-index: 1;
}

/* Pill badge */
.tips-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.34rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(139, 92, 246, 0.7);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(20, 184, 166, 0.3));
  color: #c4b5fd;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}

.tips-hero-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #a78bfa;
  box-shadow: 0 0 0 0 rgba(167, 139, 250, 0.8);
  animation: tips-pill-ping 1.8s infinite;
  flex-shrink: 0;
}

@keyframes tips-pill-ping {
  0%, 100% { box-shadow: 0 0 0 0 rgba(167, 139, 250, 0.8); }
  50%       { box-shadow: 0 0 0 6px rgba(167, 139, 250, 0); }
}

.tips-hero-content h1 {
  margin: 0;
  margin-top: 1.5rem;
  font-size: clamp(2.4rem, 3.8vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.tips-hero-content p {
  margin: 1.2rem 0 0;
  color: rgba(255, 255, 255, 0.7);
  max-width: 100%;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* CTA buttons */
.tips-hero-ctas {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tips-hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.tips-hero-cta-primary {
  background: linear-gradient(135deg, #8B5CF6, #14B8A6);
  color: #ffffff;
  box-shadow: 0 14px 40px rgba(139, 92, 246, 0.25);
}

.tips-hero-cta-primary:hover {
  color: #ffffff;
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 20px 50px rgba(139, 92, 246, 0.35);
  filter: brightness(1.08);
}

.tips-hero-cta-secondary {
  background: rgba(139, 92, 246, 0.08);
  border-color: rgba(139, 92, 246, 0.5);
  color: #c4b5fd;
}

.tips-hero-cta-secondary:hover {
  background: rgba(139, 92, 246, 0.15);
  border-color: #a78bfa;
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 18px 40px rgba(139, 92, 246, 0.15);
  color: #c4b5fd;
}

/* Decorative preview grid */
.tips-hero-visual {
  position: relative;
}

.tips-hero-grid-mock {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  border: 1px solid rgba(139, 92, 246, 0.2);
  background:
    radial-gradient(circle at top left, rgba(139, 92, 246, 0.12), transparent 55%),
    radial-gradient(circle at bottom right, rgba(20, 184, 166, 0.1), transparent 60%),
    rgba(10, 14, 19, 0.95);
  padding: 1.4rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 1rem;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}

.tips-hero-card {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.2rem 0.8rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tips-hero-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.15);
}

.tips-hero-card--1 {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(167, 139, 250, 0.08));
}
.tips-hero-card--2 {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.18), rgba(45, 212, 191, 0.08));
}
.tips-hero-card--3 {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(251, 191, 36, 0.08));
}
.tips-hero-card--4 {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.15), rgba(251, 146, 60, 0.08));
}

.tips-hero-card-icon {
  font-size: 2rem;
  line-height: 1;
  animation: tips-icon-float 3s ease-in-out infinite;
}

.tips-hero-card--2 .tips-hero-card-icon { animation-delay: 0.5s; }
.tips-hero-card--3 .tips-hero-card-icon { animation-delay: 1s; }
.tips-hero-card--4 .tips-hero-card-icon { animation-delay: 1.5s; }

@keyframes tips-icon-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-4px) scale(1.1); }
}

.tips-hero-card-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
}
.tip-details-content {
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
}

.tip-details-content .tip-step-box {
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid rgba(139, 92, 246, 0.35);
  background: rgba(139, 92, 246, 0.06);
  box-shadow: 0 12px 35px rgba(139, 92, 246, 0.15);
  transition: all 0.25s ease;
}

.tip-details-content .tip-step-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(139, 92, 246, 0.3);
}

.tip-details-content .tip-step-heading {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.tip-details-content .tip-note-box {
  padding: 1.6rem;
  border-left: 4px solid var(--tips-secondary);
  border-radius: 16px;
  background: rgba(20, 184, 166, 0.08);
}

.tip-details-content .tip-code-box {
  margin-top: 1rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(139, 92, 246, 0.3);
  padding: 1.2rem;
  overflow-x: auto;
}

.tip-details-content .tip-btn {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  border-radius: 12px;
  background: var(--tips-btn-bg);
  color: var(--tips-btn-text);
  font-weight: 700;
  text-decoration: none;
  margin-top: 1rem;
  transition: all 0.2s ease;
}

.tip-details-content .tip-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}


/* Hero responsive */
@media (max-width: 900px) {
  .tips-hero {
    padding: 0;
    margin: 0;
    margin-bottom: 1.5rem;
  }

  .tips-hero-wrapper {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
    margin: 0;
  }

  .tips-hero-content {
    order: 2;
    padding: 2rem 1.75rem;
  }

  .tips-hero-visual {
    order: 1;
  }

  .tips-hero-grid-mock {
    border-radius: 0;
    border: none;
    box-shadow: none;
    aspect-ratio: auto;
  }
}

@media (max-width: 768px) {
  .tips-hero-content h1 {
    font-size: clamp(2rem, 5vw, 2.5rem);
    margin-top: 1rem;
  }

  .tips-hero-content p {
    font-size: 0.95rem;
    margin-top: 1rem;
  }

  .tips-hero-content {
    padding: 1.75rem 1.25rem;
  }

  .tips-hero-card-icon {
    font-size: 1.6rem;
  }

  .tips-hero-card-label {
    font-size: 0.72rem;
  }
}

/* Filters Section */
.tips-filters {
  margin: 2rem 0 2.5rem;
  padding: 1.5rem;
  border-radius: 16px;
  background: var(--tips-surface);
  border: 1px solid var(--tips-border);
}

.tips-filters-form {
  width: 100%;
}

.tips-filters-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 1rem;
  align-items: end;
}

.tips-search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.tips-search-input {
  width: 100%;
  padding: 12px 44px 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(20, 184, 166, 0.25);
  background: rgba(20, 184, 166, 0.08);
  color: var(--tips-text);
  font-size: 14px;
  transition: all 0.3s ease;
}

.tips-search-input:focus,
.tips-search-input:focus-visible {
  outline: none !important;
  border-color: rgba(20, 184, 166, 0.6);
  background: rgba(20, 184, 166, 0.12);
  box-shadow: none;
}

.tips-search-input:hover {
  border-color: rgba(20, 184, 166, 0.4);
  background: rgba(20, 184, 166, 0.1);
}

.tips-search-input::placeholder {
  color: rgba(255,255,255,0.45);
}

.tips-search-icon {
  position: absolute;
  right: 16px;
  font-size: 16px;
  pointer-events: none;
  opacity: 0.6;
}

.tips-filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.tips-filter-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--tips-muted);
  letter-spacing: 0.02em;
}

.tips-filter-select {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(20, 184, 166, 0.25);
  background: rgba(20, 184, 166, 0.08);
  color: var(--tips-text);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tips-filter-select:focus,
.tips-filter-select:focus-visible {
  outline: none !important;
  border-color: rgba(20, 184, 166, 0.25);
  background: rgba(20, 184, 166, 0.08);
  box-shadow: none;
}

.tips-filter-select:hover {
  border-color: rgba(20, 184, 166, 0.4);
  background: rgba(20, 184, 166, 0.1);
}

/* Fix dropdown option visibility */
.tips-filter-select option {
  background: #1a1d2e;
  color: #e5e7eb;
  padding: 8px 12px;
}

.tips-filter-select option:hover,
.tips-filter-select option:checked,
.tips-filter-select option:focus {
  background: #14B8A6;
  color: #ffffff;
}

@media (max-width: 900px) {
  .tips-filters-row {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* Grid */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
  transition: opacity 0.3s ease;
  position: relative;
  min-height: 400px;
}

@media (max-width: 1024px) {
  .tips-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .tips-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* Tip Card */
.tip-card {
  border: 1px solid var(--tips-border);
  border-radius: 20px;
  background: var(--tips-surface);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  display: flex;
  flex-direction: column;
}

.tip-card:hover {
  transform: translateY(-3px);
  border-color: rgba(139, 92, 246, 0.35);
  background: var(--tips-surface-2);
  box-shadow: 0 14px 34px rgba(139, 92, 246, 0.15);
}

.tip-card-media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(0,0,0,0.20);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: relative;
}

.tip-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.tip-card:hover .tip-card-media img {
  transform: scale(1.05);
}

.tip-card-category-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 0.35rem 0.85rem;
  border-radius: 8px;
  background: linear-gradient(135deg, #8B5CF6, #14B8A6);
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.tip-card-tool-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 0.35rem 0.85rem;
  border-radius: 8px;
  background: linear-gradient(135deg, #8B5CF6, #14B8A6);
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.tip-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.tip-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.tip-card-title {
  margin: 0;
  flex: 1;
}

.tip-card-title a {
  color: var(--tips-text);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 0.4;
  transition: color 0.2s ease;
}

.tip-card-title a:hover {
  color: var(--tips-primary);
}

.tip-bookmark-btn {
  padding: 0.4rem;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
  transition: transform 0.2s ease;
  color: rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
}

.tip-bookmark-btn:hover {
  transform: scale(1.15);
}

.tip-bookmark-btn[aria-pressed="true"] {
  color: #ef4444;
}

.tip-bookmark-icon {
  display: block;
}

.tip-card-excerpt {
  margin: 0 0 1rem 0;
  color: var(--tips-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tip-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tip-tag {
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.15), rgba(234, 88, 12, 0.2));
  border: 1px solid rgba(249, 115, 22, 0.3);
  color: rgba(251, 146, 60, 1);
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}

.tip-card:hover .tip-tag {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.25), rgba(234, 88, 12, 0.3));
  border-color: rgba(249, 115, 22, 0.5);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
}

.tip-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tip-card-date {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

.tip-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(20, 184, 166, 0.1));
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: var(--tips-primary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.tip-read-more::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.2), transparent);
  transition: left 0.5s ease;
}

.tip-read-more:hover::before {
  left: 100%;
}

.tip-read-more:hover {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(20, 184, 166, 0.2));
  border-color: rgba(139, 92, 246, 0.5);
  color: #ffffff;
  transform: translateX(3px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

/* Empty State */
.tips-empty {
  text-align: center;
  padding: 4rem 2rem;
  border: 1px solid var(--tips-border);
  border-radius: 16px;
  background: var(--tips-surface);
}

.tips-empty h3 {
  margin: 0 0 0.75rem 0;
  font-size: 1.5rem;
  color: var(--tips-text);
}

.tips-empty p {
  margin: 0 0 1.5rem 0;
  color: var(--tips-muted);
  font-size: 1rem;
}

.tips-reset-btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 12px;
  border: 1px solid var(--tips-btn-border);
  background: var(--tips-btn-bg);
  color: var(--tips-btn-text);
  text-decoration: none;
  font-weight: 700;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.tips-reset-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

/* Pagination - Custom styling to match Read More buttons */
.tips-page .pagination-btn,
.tips-page .pagination-number {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(20, 184, 166, 0.1));
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: var(--tips-primary);
  position: relative;
  overflow: hidden;
}

.tips-page .pagination-btn::before,
.tips-page .pagination-number::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.2), transparent);
  transition: left 0.5s ease;
}

.tips-page .pagination-btn:hover::before,
.tips-page .pagination-number:hover::before {
  left: 100%;
}

.tips-page .pagination-btn:hover,
.tips-page .pagination-number:hover {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(20, 184, 166, 0.2));
  border-color: rgba(139, 92, 246, 0.5);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.tips-page .pagination-number.active {
  background: linear-gradient(135deg, #8B5CF6, #14B8A6);
  border-color: rgba(139, 92, 246, 0.5);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
  font-weight: 600;
}

.tips-page .pagination-number.active:hover {
  background: linear-gradient(135deg, #8B5CF6, #14B8A6);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #00d4ff, #00ff88);
  border: none;
  border-radius: 12px;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  z-index: 9999;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  animation: fadeInUp 0.4s ease-out;
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 255, 136, 0.5);
  background: linear-gradient(135deg, #00ff88, #00d4ff);
}

.back-to-top:active {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
}

.back-to-top:focus {
  outline: none;
}

.back-to-top:focus-visible {
  outline: 2px solid #00d4ff;
  outline-offset: 3px;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .back-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}

/* Toast Notifications */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10000;
  max-width: 300px;
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.toast-success {
  background: linear-gradient(135deg, #14B8A6, #10b981);
}

.toast-info {
  background: linear-gradient(135deg, #8B5CF6, #a78bfa);
}

.toast-error {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

@media (max-width: 768px) {
  .toast {
    bottom: 1.5rem;
    right: 1.5rem;
    left: 1.5rem;
    max-width: none;
  }
}
