.bff-wallets-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  font-family: var(--font-family, 'Arial, sans-serif');
}

.bff-wallets-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color, #0066cc);
  text-align: center;
}

.bff-wallets-description {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.1rem;
  color: var(--text-color, #333);
}

.bff-wallets-loading,
.bff-wallets-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top-color: var(--primary-color, #0066cc);
  animation: spin 1s ease-in-out infinite;
  margin-bottom: 1rem;
}

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

.bff-wallets-error {
  color: var(--error-color, #e74c3c);
  font-weight: bold;
}

.bff-wallets-grid {
  border: 1px solid var(--border-color, #ddd);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.bff-wallets-header {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  background-color: var(--primary-color, #0066cc);
  color: white;
  font-weight: bold;
  padding: 1rem;
}

.bff-wallet-row {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  padding: 1rem;
  border-bottom: 1px solid var(--border-color, #ddd);
  transition: background-color 0.2s;
}

.bff-wallet-row:last-child {
  border-bottom: none;
}

.bff-wallet-row:hover {
  background-color: var(--hover-bg-color, #f5f5f5);
}

.wallet-name {
  font-weight: bold;
}

.wallet-address {
  font-family: monospace;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wallet-actions {
  display: flex;
  justify-content: center;
}

.wallet-action-button {
  background-color: var(--secondary-color, #4CAF50);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background-color 0.2s;
}

.wallet-action-button:hover {
  background-color: var(--secondary-hover-color, #45a049);
}

.bff-wallets-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.pagination-button {
  background-color: var(--primary-color, #0066cc);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background-color 0.2s;
}

.pagination-button:hover:not(:disabled) {
  background-color: var(--primary-hover-color, #0055aa);
}

.pagination-button:disabled {
  background-color: var(--disabled-color, #cccccc);
  cursor: not-allowed;
}

.pagination-info {
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .bff-wallets-header,
  .bff-wallet-row {
    grid-template-columns: 1fr 1.5fr 1fr;
    font-size: 0.9rem;
  }
  
  .wallet-action-button {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .bff-wallets-container {
    padding: 1rem;
  }
  
  .bff-wallets-header,
  .bff-wallet-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .bff-wallets-header {
    display: none;
  }
  
  .wallet-name::before {
    content: "Name: ";
    font-weight: normal;
  }
  
  .wallet-address::before {
    content: "Address: ";
    font-weight: bold;
  }
}

.updates-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
}

.updates-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 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="0.5" fill="%23000" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

.updates-header {
  text-align: center;
  margin-bottom: 60px;
}

.updates-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.updates-subtitle {
  font-size: 1.2rem;
  color: #6c757d;
  max-width: 600px;
  margin: 0 auto;
}

.updates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.update-card {
  --update-type-color: #667eea;
  --update-type-bg: rgba(102, 126, 234, 0.1);
  background: white;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.update-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--update-type-color);
}

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

.update-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.update-type {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--update-type-bg);
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--update-type-color);
}

.update-icon {
  font-size: 1rem;
}

.update-date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: #6c757d;
}

.clock-icon {
  font-size: 0.875rem;
}

.update-title-text {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 16px;
  line-height: 1.4;
}

.update-content {
  position: relative;
}

.update-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #495057;
  margin-bottom: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.update-text:not(.expanded) {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  max-height: 4.8em;
}

.update-text.expanded {
  -webkit-line-clamp: unset;
  max-height: none;
}

.update-toggle {
  background: none;
  border: none;
  color: #667eea;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.update-toggle:hover {
  color: #5a6fd8;
}

.updates-loading,
.updates-error {
  text-align: center;
  padding: 60px 20px;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.updates-loading p,
.updates-error p {
  font-size: 1.1rem;
  color: #6c757d;
  margin: 0;
}

.updates-error p {
  color: #dc3545;
}

/* Responsive Design */
@media (max-width: 768px) {
  .updates-section {
    padding: 60px 0;
  }
  
  .updates-title {
    font-size: 2rem;
  }
  
  .updates-subtitle {
    font-size: 1.1rem;
  }
  
  .updates-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .update-card {
    padding: 24px;
  }
  
  .update-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .update-type {
    font-size: 0.8rem;
  }
  
  .update-date {
    font-size: 0.8rem;
  }
  
  .update-title-text {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .updates-header {
    margin-bottom: 40px;
  }
  
  .updates-title {
    font-size: 1.8rem;
  }
  
  .updates-subtitle {
    font-size: 1rem;
  }
  
  .update-card {
    padding: 20px;
  }
}

.promoted-campaigns-section {
  padding: 84px 0 96px;
  background: #ffffff;
  position: relative;
  overflow: hidden;
}

.promoted-campaigns-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(15, 23, 42, 0.015) 48%, transparent 100%);
  pointer-events: none;
}

.promoted-campaigns-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 48px;
  position: relative;
  z-index: 1;
}

.header-content {
  flex: 1;
}

.header-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(46, 167, 255, 0.32);
  padding: 8px 14px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}

.badge-icon {
  font-size: 1rem;
  color: #2ea7ff;
}

.promoted-campaigns-title {
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 14px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.promoted-campaigns-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: #0f172a;
  max-width: 640px;
  line-height: 1.6;
  opacity: 0.86;
}

.view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0f172a;
  color: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.16);
}

.view-all-btn:hover {
  background: #2ea7ff;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(46, 167, 255, 0.28);
}

.btn-icon {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.view-all-btn:hover .btn-icon,
.view-campaign-btn:hover .btn-icon {
  transform: translateX(4px);
}

.promoted-campaigns-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  position: relative;
  z-index: 1;
}

.campaign-card {
  background: #ffffff;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(46, 167, 255, 0.4);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
  transition: all 0.32s ease;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
}

.campaign-card:hover {
  box-shadow: 0 24px 44px rgba(15, 23, 42, 0.15);
  border-color: rgba(46, 167, 255, 0.4);
}

.campaign-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #ffffff;
}

.campaign-image-backdrop {
  position: absolute;
  inset: -8%;
  background-size: cover;
  background-position: center;
  filter: blur(18px) saturate(1);
  opacity: 0.12;
  transform: scale(1.08);
  z-index: 1;
}

.campaign-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: transparent;
  z-index: 3;
}

.campaign-image img.campaign-image-main {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 12px;
  transition: transform 0.35s ease;
  display: block;
  z-index: 2;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.3));
}

.campaign-card:hover .campaign-image img.campaign-image-main {
  transform: scale(1.02);
}

.campaign-rank,
.campaign-progress-chip {
  position: absolute;
  top: 14px;
  z-index: 5;
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.campaign-rank {
  left: 14px;
  background: rgba(15, 23, 42, 0.88);
  color: #ffffff;
}

.campaign-progress-chip {
  right: 14px;
  background: rgba(46, 167, 255, 0.92);
  color: #ffffff;
}

.campaign-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.28s ease;
  z-index: 6;
}

.campaign-card:hover .campaign-overlay {
  opacity: 1;
}

.view-campaign-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: #0f172a;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  transform: translateY(8px);
  transition: all 0.28s ease;
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.22);
}

.campaign-card:hover .view-campaign-btn {
  transform: translateY(0);
}

.campaign-content {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.campaign-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.creator-info,
.end-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: rgba(15, 23, 42, 0.82);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(46, 167, 255, 0.08);
  border: 1px solid rgba(46, 167, 255, 0.18);
}

.meta-icon {
  font-size: 0.82rem;
}

.campaign-title {
  font-size: 1.38rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.28;
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.campaign-description {
  color: rgba(15, 23, 42, 0.8);
  line-height: 1.58;
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.campaign-progress {
  margin-top: 2px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.raised-amount {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.amount-icon {
  font-size: 1.05rem;
  color: #2ea7ff;
}

.amount {
  font-size: 1.06rem;
  font-weight: 800;
  color: #0f172a;
}

.label {
  font-size: 0.78rem;
  color: rgba(15, 23, 42, 0.65);
}

.goal-amount {
  font-size: 0.8rem;
  color: rgba(15, 23, 42, 0.7);
}

.goal-label {
  font-weight: 600;
}

.progress-bar {
  width: 100%;
  height: 10px;
  background: rgba(15, 23, 42, 0.1);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #0f172a 0%, #2ea7ff 100%);
  border-radius: 999px;
  transition: width 0.45s ease;
}

.progress-percentage {
  font-size: 0.82rem;
  color: rgba(15, 23, 42, 0.78);
  font-weight: 600;
}

.promoted-campaigns-loading {
  text-align: center;
  padding: 60px 20px;
  color: #0f172a;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(15, 23, 42, 0.18);
  border-top: 4px solid #2ea7ff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.promoted-campaigns-loading p {
  font-size: 1.05rem;
  margin: 0;
}

[dir="rtl"] .view-all-btn:hover .btn-icon,
[dir="rtl"] .view-campaign-btn:hover .btn-icon {
  transform: translateX(-4px) rotate(180deg);
}

[dir="rtl"] .btn-icon {
  transform: rotate(180deg);
}

@media (max-width: 1024px) {
  .promoted-campaigns-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .promoted-campaigns-section {
    padding: 64px 0 72px;
  }

  .promoted-campaigns-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .campaign-card {
    border-radius: 18px;
  }

  .campaign-image img.campaign-image-main {
    padding: 10px;
  }

  .campaign-content {
    padding: 20px;
  }

  .campaign-title {
    font-size: 1.24rem;
  }
}

@media (max-width: 480px) {
  .promoted-campaigns-title {
    font-size: 1.76rem;
  }

  .promoted-campaigns-subtitle {
    font-size: 0.95rem;
  }

  .view-all-btn {
    padding: 10px 18px;
    font-size: 0.8rem;
  }
}

