@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --bg-primary: #0D0D0D;
  --bg-secondary: #14181A;
  --bg-tertiary: #1C2224;
  --bg-glass: rgba(20, 24, 26, 0.7);
  --border-glass: rgba(129, 159, 167, 0.15);
  --accent-gradient: linear-gradient(135deg, #819FA7 0%, #5B6E74 100%);
  --accent-solid: #819FA7;
  --accent-glow: rgba(129, 159, 167, 0.35);
  --success: #10b981;
  --success-glow: rgba(16, 185, 129, 0.35);
  --gold: #f59e0b;
  --text-primary: #F3F5F9;
  --text-secondary: #819FA7;
  --text-muted: #5B6E74;
  --font-display: 'Outfit', 'Inter', sans-serif;
  --font-sans: 'Inter', sans-serif;
  --sidebar-width: 320px;
  --header-height: 70px;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-solid);
}

/* App Header */
.app-header {
  height: var(--header-height);
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  z-index: 100;
  position: relative;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-gradient);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 0 20px var(--accent-glow);
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  background: linear-gradient(to right, #ffffff, #9ca3af);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-badge {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--accent-gradient);
  color: white;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
}

/* Credits Badge/Section in Header */
.credits-banner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  padding: 0.5rem 1rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-family: var(--font-display);
  transition: var(--transition-smooth);
}

.credits-banner:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.1);
}

.credits-banner span {
  color: var(--text-secondary);
}

.credits-banner strong {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

/* App Main Container */
.app-container {
  display: flex;
  flex: 1;
  overflow: visible;
  position: relative;
}

/* Sidebar Styling */
.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  height: auto;
  transition: var(--transition-smooth);
  z-index: 90;
}

@media (min-width: 769px) {
  .sidebar {
    position: sticky;
    top: var(--header-height);
    height: calc(100vh - var(--header-height));
  }
}

.search-wrapper {
  padding: 1.25rem 1rem;
  border-bottom: 1px solid var(--border-glass);
}

.search-container {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition-smooth);
}

.search-input:focus {
  border-color: var(--accent-solid);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.2);
  background: var(--bg-primary);
}

.search-icon {
  position: absolute;
  left: 0.85rem;
  color: var(--text-secondary);
  pointer-events: none;
  width: 16px;
  height: 16px;
}

.categories-container {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.category-title {
  font-family: var(--font-display);
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  margin-top: 1.25rem;
  padding-left: 0.5rem;
}

.category-title:first-child {
  margin-top: 0;
}

.category-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.category-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
  font-size: 0.9rem;
  font-weight: 500;
}

.category-item:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
}

.category-item.active {
  background: var(--accent-gradient);
  color: white;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.category-item.special-active {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.category-icon {
  margin-right: 0.75rem;
  width: 18px;
  height: 18px;
}

.category-meta {
  display: flex;
  align-items: center;
}

.category-count {
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  color: var(--text-secondary);
}

.category-item.active .category-count,
.category-item.special-active .category-count {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

/* Main Content Area */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: visible;
}

/* Video Player Panel */
.player-panel {
  background: #000;
  border-bottom: 1px solid var(--border-glass);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  height: 480px; /* Default height */
}

.player-panel.expanded {
  height: 600px;
}

.video-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  outline: none;
}

.player-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, var(--bg-tertiary) 0%, var(--bg-primary) 100%);
  z-index: 10;
  text-align: center;
  padding: 2rem;
}

.placeholder-icon {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-solid);
  margin-bottom: 1.5rem;
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.05);
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.placeholder-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.placeholder-text {
  color: var(--text-secondary);
  max-width: 450px;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

/* Custom overlay details for playing channel */
.channel-playing-overlay {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 5;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-glass);
  padding: 0.5rem 1rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-container:hover .channel-playing-overlay {
  opacity: 1;
}

.playing-badge {
  width: 8px;
  height: 8px;
  background-color: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--success-glow);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

.playing-title {
  font-weight: 600;
  font-size: 0.85rem;
  color: white;
}

/* Channel Dashboard Section */
.dashboard-panel {
  padding: 1.5rem 2rem;
  background: var(--bg-primary);
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.dashboard-title-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dashboard-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.channels-count-badge {
  font-size: 0.8rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-glass);
  padding: 0.2rem 0.6rem;
  border-radius: 8px;
  color: var(--text-secondary);
}

/* Channel Grid */
.channels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

/* Channel Card */
.channel-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 1.25rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 120px;
  overflow: hidden;
}

.channel-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent-gradient);
  opacity: 0;
  z-index: 1;
  transition: var(--transition-smooth);
}

.channel-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 12px 24px rgba(139, 92, 246, 0.1), 0 0 0 1px rgba(139, 92, 246, 0.2);
}

.channel-card.active {
  border-color: var(--accent-solid);
  background: var(--bg-tertiary);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.15);
}

.card-top {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.channel-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.fav-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  border-radius: 50%;
}

.fav-btn:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  transform: scale(1.1);
}

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

.card-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 1rem;
  align-items: center;
}

/* Badges styling */
.badge {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.badge-stream {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid var(--border-glass);
}

.badge-fifa {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  box-shadow: 0 2px 8px var(--success-glow);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.badge-lang {
  background: rgba(245, 158, 11, 0.15);
  color: var(--gold);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-stream-active {
  background: rgba(139, 92, 246, 0.1);
  color: var(--accent-solid);
  border: 1px solid rgba(139, 92, 246, 0.2);
}

/* Global Footer with Credits */
.app-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-glass);
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-secondary);
  position: relative;
  z-index: 100;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-credits {
  font-family: var(--font-display);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(139, 92, 246, 0.03);
  border: 1px solid rgba(139, 92, 246, 0.1);
  padding: 0.4rem 1rem;
  border-radius: 12px;
}

.footer-credits svg {
  color: #ec4899;
  animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
  0% { transform: scale(1); }
  14% { transform: scale(1.2); }
  28% { transform: scale(1); }
  42% { transform: scale(1.2); }
  70% { transform: scale(1); }
}

.footer-credits strong {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

.player-details {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-glass);
}

.playing-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.playing-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.playing-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.player-controls-extra {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.control-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.control-btn:hover {
  background: var(--bg-primary);
  border-color: var(--accent-solid);
  color: var(--accent-solid);
}

/* Empty grid message */
.no-results {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
  color: var(--text-secondary);
  grid-column: 1 / -1;
}

.no-results-icon {
  width: 48px;
  height: 48px;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* Responsive styles */
@media (max-width: 1024px) {
  :root {
    --sidebar-width: 260px;
  }
  .player-panel {
    height: 380px;
  }
  .player-panel.expanded {
    height: 480px;
  }
}

@media (max-width: 768px) {
  body {
    overflow-y: auto;
    height: auto;
  }
  .app-container {
    flex-direction: column;
    overflow: visible;
  }
  .sidebar {
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border-glass);
  }
  .categories-container {
    max-height: 250px;
  }
  .player-panel {
    height: 280px;
    position: sticky;
    top: 0;
    z-index: 80;
  }
  .player-panel.expanded {
    height: 320px;
  }
  .dashboard-panel {
    padding: 1rem;
    overflow: visible;
  }
  .app-footer {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .footer-right {
    flex-direction: column;
    gap: 0.75rem;
  }
}

/* ==========================================================================
   Donation / Tip Option Styles (Custom Slate/Teal Theme)
   ========================================================================== */

/* Header and Footer Support Buttons */
.support-btn {
  background: rgba(129, 159, 167, 0.1);
  border: 1px solid rgba(129, 159, 167, 0.2);
  color: #819FA7;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
}

.support-btn svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s ease;
}

.support-btn:hover {
  background: var(--accent-gradient);
  border-color: transparent;
  color: #0D0D0D;
  box-shadow: 0 4px 15px rgba(129, 159, 167, 0.3);
  transform: translateY(-1px);
}

.support-btn:hover svg {
  transform: rotate(15deg) scale(1.1);
}

.support-btn:active {
  transform: translateY(0);
}

.footer-support-btn {
  background: rgba(91, 110, 116, 0.1);
  border-color: rgba(91, 110, 116, 0.2);
  color: #819FA7;
}

.footer-support-btn:hover {
  background: var(--accent-gradient);
  color: #0D0D0D;
  box-shadow: 0 4px 15px rgba(129, 159, 167, 0.3);
}

/* Modal Overlay and Window */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 13, 13, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: rgba(20, 24, 26, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), 0 0 50px rgba(129, 159, 167, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  width: 100%;
  max-width: 500px;
  padding: 2.25rem;
  position: relative;
  transform: scale(0.92);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.show .modal-card {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  z-index: 10;
}

.modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: #ef4444;
  transform: rotate(90deg);
}

/* Form Typography & Structure */
.modal-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.modal-icon-badge {
  width: 54px;
  height: 54px;
  background: var(--accent-gradient);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0D0D0D;
  margin: 0 auto 1rem;
  box-shadow: 0 0 25px var(--accent-glow);
}

.modal-icon-badge svg {
  width: 26px;
  height: 26px;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(to right, #ffffff, #819FA7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.modal-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition-smooth);
}

.form-input:focus {
  border-color: var(--accent-solid);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 12px rgba(129, 159, 167, 0.25);
}

.form-input.uppercase {
  text-transform: uppercase;
}

/* Payment Method Toggle Buttons */
.payment-methods-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.payment-method-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  padding: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: var(--font-display);
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.method-color-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-muted);
}

.method-color-indicator.bkash {
  background: #e2125d;
}

.method-color-indicator.nagad {
  background: #ea5d24;
}

.payment-method-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Selected Payment States */
.payment-method-btn.active[data-method="bKash"] {
  border-color: #e2125d;
  background: rgba(226, 18, 93, 0.08);
  color: #ff85b3;
  box-shadow: 0 0 15px rgba(226, 18, 93, 0.15);
}

.payment-method-btn.active[data-method="Nagad"] {
  border-color: #ea5d24;
  background: rgba(234, 93, 36, 0.08);
  color: #ff9e75;
  box-shadow: 0 0 15px rgba(234, 93, 36, 0.15);
}

/* Preset Amount Chips */
.amount-presets-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
}

.preset-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  padding: 0.6rem 0.25rem;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-sans);
  color: var(--text-secondary);
  text-align: center;
  transition: var(--transition-smooth);
}

.preset-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}

.preset-btn.active {
  background: var(--accent-gradient);
  border-color: transparent;
  color: #0D0D0D;
  box-shadow: 0 4px 12px rgba(129, 159, 167, 0.35);
}

.custom-amount-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 0.75rem;
}

.currency-symbol {
  position: absolute;
  left: 1rem;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 1.1rem;
}

.custom-amount-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.25rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(129, 159, 167, 0.3);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  outline: none;
  transition: var(--transition-smooth);
}

.custom-amount-input:focus {
  border-color: var(--accent-solid);
  box-shadow: 0 0 15px rgba(129, 159, 167, 0.3);
  background: rgba(255, 255, 255, 0.06);
}

/* Instruction Details Box */
.donation-instructions-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 1.25rem;
  margin: 1.5rem 0;
}

.instructions-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.instruction-icon {
  width: 16px;
  height: 16px;
}

.instructions-content {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.copyable-details {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 0.75rem;
  margin: 0.75rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.detail-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.detail-label {
  color: var(--text-muted);
  width: 85px;
}

.detail-value {
  font-family: monospace;
  font-size: 0.95rem;
  font-weight: 700;
  color: white;
}

.detail-value.highlight {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.detail-badge {
  font-size: 0.65rem;
  background: rgba(245, 158, 11, 0.15);
  color: var(--gold);
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.select-all {
  user-select: all;
  -webkit-user-select: all;
}

.instruction-note {
  font-weight: 500;
  color: var(--text-muted);
}

/* Submit Action Button */
.submit-donation-btn {
  width: 100%;
  background: var(--accent-gradient);
  border: none;
  color: #0D0D0D;
  padding: 0.85rem;
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 20px rgba(129, 159, 167, 0.3);
  transition: var(--transition-smooth);
  margin-top: 1.5rem;
}

.submit-donation-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(129, 159, 167, 0.45), 0 0 20px rgba(91, 110, 116, 0.2);
}

.submit-donation-btn:active {
  transform: translateY(0);
}

.submit-donation-btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.submit-donation-btn:hover svg {
  transform: translateX(4px);
}

/* Loading / Verification Screen */
.loading-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  text-align: center;
}

.custom-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(129, 159, 167, 0.1);
  border-top-color: var(--accent-solid);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 20px rgba(129, 159, 167, 0.2);
  position: relative;
}

.custom-spinner::after {
  content: '';
  position: absolute;
  inset: -8px;
  border: 2px solid transparent;
  border-bottom-color: rgba(91, 110, 116, 0.5);
  border-radius: 50%;
  animation: spin 2s linear infinite reverse;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.loading-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  max-width: 300px;
  line-height: 1.5;
}

/* Success Celebration Screen */
.success-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 0.5rem;
  text-align: center;
}

.success-icon-container {
  width: 80px;
  height: 80px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.success-heart-halo {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(129, 159, 167, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulseSuccess 2s infinite;
}

.success-heart-icon {
  width: 44px;
  height: 44px;
  color: #819FA7;
  fill: #819FA7;
  position: relative;
  z-index: 2;
  animation: popHeart 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popHeart {
  0% { transform: scale(0); }
  70% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

@keyframes pulseSuccess {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.3); opacity: 1; }
}

.success-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #ffffff 0%, #819FA7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.success-text {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.success-amount {
  font-weight: 800;
  color: white;
  border-bottom: 2px dashed #819FA7;
  padding: 0 0.2rem;
}

.success-method {
  font-weight: 700;
  color: white;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
}

.success-subtext {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 400px;
  margin-bottom: 2rem;
}

.success-close-btn {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  color: #34d399;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.15);
}

.success-close-btn:hover {
  background: #10b981;
  border-color: transparent;
  color: white;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* Emoji Confetti Overlay & Particle Styling */
.confetti-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1100;
  overflow: hidden;
}

.confetti-particle {
  position: absolute;
  font-size: 24px;
  bottom: -50px;
  user-select: none;
  animation: floatUp 3s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

@keyframes floatUp {
  0% {
    transform: translateY(0) rotate(0deg) scale(0.5);
    opacity: 0;
  }
  15% {
    opacity: 1;
    transform: translateY(-100px) rotate(45deg) scale(1.1);
  }
  80% {
    opacity: 1;
  }
  100% {
    transform: translateY(-105vh) rotate(270deg) scale(0.8);
    opacity: 0;
  }
}


