@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&family=Nunito:wght@400;500;600;700;800;900&display=swap');
.giveaways-banner {
    background: linear-gradient(135deg, var(--accent-primary) 0%, #3b82f6 100%);
    border-radius: 1.5rem;
    padding: 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    color: white;
    box-shadow: 0 10px 30px rgba(255, 77, 166, 0.2);
    position: relative;
    overflow: hidden;
}

.giveaways-banner::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

.banner-text h2 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.banner-text p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.banner-icon i {
    font-size: 5rem;
    opacity: 0.3;
}

.giveaways-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.giveaway-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.giveaway-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border-color: var(--accent-primary);
}

.ga-image {
    position: relative;
    height: 200px;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.ga-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.3));
}

.ga-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.4rem 0.8rem;
    border-radius: 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.ga-status.active {
    background: rgba(255, 77, 166, 0.2);
    color: #ff4da6;
    border: 1px solid rgba(255, 77, 166, 0.3);
}

.ga-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.ga-prize {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    font-weight: 600;
}

.ga-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.ga-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.ga-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.ga-meta i {
    color: var(--accent-primary);
}

.ga-timer {
    background: rgba(0, 0, 0, 0.2);
    padding: 0.8rem;
    border-radius: 0.75rem;
    text-align: center;
    margin-bottom: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
}

.timer-val {
    color: var(--accent-primary);
}

.join-ga-btn {
    width: 100%;
    padding: 1rem;
    border-radius: 1rem;
    background: var(--accent-primary);
    color: white;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: auto;
}

.join-ga-btn:hover {
    background: #0ea87e;
    transform: scale(1.02);
}

.no-giveaways {
    grid-column: 1 / -1;
    text-align: center;
    padding: 5rem 2rem;
    background: var(--card-bg);
    border-radius: 1.5rem;
    border: 1px dashed var(--border-color);
}

.no-giveaways i {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    :root {
  --bg-main:       #0d1117;
  --bg-secondary:  #161b26;
  --bg-card:       rgba(22, 30, 46, 0.85);

  --clr-pink:    #ff4da6;
  --clr-purple:  #a855f7;
  --clr-blue:    #3b82f6;
  --clr-cyan:    #06b6d4;
  --clr-green:   #22c55e;
  --clr-yellow:  #facc15;
  --clr-orange:  #fb923c;
  --clr-red:     #f87171;
  --clr-teal:    #2dd4bf;

  --accent-primary:  #ff4da6;
  --accent-hover:    #ff70b8;
  --accent-secondary: #a855f7;
  --accent-danger:   #f87171;

  --text-main:  #f0f4ff;
  --text-muted: #8b9cc8;

  --glass-bg:        rgba(255,255,255,0.06);
  --glass-border:    rgba(255,255,255,0.10);
  --glass-highlight: rgba(255,255,255,0.05);

  --sidebar-width: 280px;
  --header-height: 72px;

  --font-heading: 'Fredoka One', cursive;
  --font-body:    'Nunito', sans-serif;

  --shadow-sm:  0 2px 8px rgba(0,0,0,0.25);
  --shadow-md:  0 8px 24px rgba(0,0,0,0.35);
  --shadow-lg:  0 20px 50px rgba(0,0,0,0.5);

  --transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  --radius-lg: 1.5rem;
  --radius-md: 1rem;
}

    .sidebar.open {
        left: 0;
    }

    .giveaways-banner {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .banner-text h2 {
        font-size: 1.6rem;
    }
    
    .banner-icon {
        display: none;
    }

    .giveaways-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .balance-amount {
        font-size: 0.95rem;
    }
}

/* Toast Notification System */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-main);
    padding: 14px 20px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    min-width: 250px;
    max-width: 350px;
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
    pointer-events: auto;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.hiding {
    transform: translateX(120%);
    opacity: 0;
}

.toast-icon {
    font-size: 1.2rem;
}

.toast.success .toast-icon { color: var(--accent-primary); }
.toast.error .toast-icon { color: #ef4444; }
.toast.info .toast-icon { color: #38bdf8; }
.toast.warning .toast-icon { color: #f59e0b; }

.toast-content {
    flex: 1;
    word-break: break-word;
    line-height: 1.4;
}

/* =====================================================
   MODO CLARO
   ===================================================== */
[data-theme="light"] {
  /* Fondo más rico — lavanda medio, no blanco */
  --bg-main:       #dde3f5;
  --bg-secondary:  #c8d0ea;
  --bg-card:       rgba(240, 244, 255, 0.95);

  --clr-pink:    #d6147a;
  --clr-purple:  #6d28d9;
  --clr-blue:    #1d4ed8;
  --clr-cyan:    #0369a1;
  --clr-green:   #15803d;
  --clr-yellow:  #b45309;
  --clr-orange:  #c2410c;
  --clr-red:     #b91c1c;
  --clr-teal:    #0f766e;

  --accent-primary:   #d6147a;
  --accent-hover:     #b0105f;
  --accent-secondary: #6d28d9;
  --accent-danger:    #b91c1c;

  /* Texto oscuro con buen contraste sobre el lavanda */
  --text-main:  #12103a;
  --text-muted: #3b3d6b;

  /* Glass más opaco para que los cards destaquen del fondo */
  --glass-bg:        rgba(220, 228, 248, 0.85);
  --glass-border:    rgba(100, 110, 180, 0.20);
  --glass-highlight: rgba(100, 110, 180, 0.10);
  --glass-strong:    rgba(100, 110, 180, 0.22);
}

[data-theme="light"] .balance-card {
  background: rgba(210, 220, 245, 0.85);
}

[data-theme="light"] .card,
[data-theme="light"] .glass-card {
  background: rgba(235, 240, 255, 0.95);
  border-color: rgba(100, 110, 180, 0.20);
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group select,
[data-theme="light"] .form-group textarea {
  background: rgba(230, 236, 255, 0.90);
  border-color: rgba(100, 110, 180, 0.25);
  color: var(--text-main);
}
[data-theme="light"] .form-group input::placeholder,
[data-theme="light"] .form-group select::placeholder,
[data-theme="light"] .form-group textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}
[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group select:focus,
[data-theme="light"] .form-group textarea:focus {
  background: rgba(220, 228, 252, 1);
  border-color: var(--accent-primary);
}

[data-theme="light"] #searchInput,
[data-theme="light"] .chat-input {
  background: rgba(220, 228, 252, 0.9);
  color: var(--text-main);
}
[data-theme="light"] #searchInput::placeholder,
[data-theme="light"] .chat-input::placeholder { color: var(--text-muted); }

[data-theme="light"] .pet-card,
[data-theme="light"] .popup-card,
[data-theme="light"] .modal-card,
[data-theme="light"] .auth-modal .modal-card {
  background: rgba(235, 240, 255, 0.98);
  border-color: rgba(100, 110, 180, 0.20);
}

[data-theme="light"] .toast {
  background: rgba(230, 236, 255, 0.97);
  border-color: rgba(100, 110, 180, 0.25);
}

[data-theme="light"] .auth-tabs {
  background: rgba(210, 220, 245, 0.6);
}

[data-theme="light"] .page-title {
  background: linear-gradient(135deg, #d6147a, #6d28d9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =====================================================
   MEJORAS SIDEBAR — sin romper nada existente
   ===================================================== */
/* =====================================================
   BOTÓN TEMA CLARO/OSCURO
   ===================================================== */
[data-theme="light"] .theme-toggle-btn .icon-moon { display: none;   }
[data-theme="light"] .theme-toggle-btn .icon-sun  { display: inline; }

/* =====================================================
   FILTER TOGGLES — badges de propiedad
   ===================================================== */
.filter-toggle.active { border-color: transparent; color: white; }
.filter-toggle[data-prop="neon"].active  { background: linear-gradient(135deg,#a855f7,#ec4899); box-shadow: 0 0 14px rgba(168,85,247,0.5); }
.filter-toggle[data-prop="mega"].active  { background: linear-gradient(135deg,#facc15,#fb923c); color:#1a0700; box-shadow: 0 0 14px rgba(250,204,21,0.5); }
.filter-toggle[data-prop="fly"].active   { background: linear-gradient(135deg,#3b82f6,#06b6d4); box-shadow: 0 0 14px rgba(59,130,246,0.5); }
.filter-toggle[data-prop="ride"].active  { background: linear-gradient(135deg,#22c55e,#2dd4bf); color:#011a06; box-shadow: 0 0 14px rgba(34,197,94,0.5); }

/* =====================================================
   PET CARDS — mejoras visuales
   ===================================================== */
.card:hover {
  border-color: rgba(255,77,166,0.35);
  box-shadow: 0 12px 30px rgba(0,0,0,0.3), 0 0 20px rgba(255,77,166,0.15);
}
.card:hover .card-img { transform: scale(1.10) rotate(-2deg); }

/* =====================================================
   SEARCH INPUT FIX
   ===================================================== */
.search-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
  min-width: 200px;
  transition: all 0.3s ease;
}
.search-bar:focus-within {
  border-color: var(--accent-primary) !important;
  box-shadow: 0 0 0 3px rgba(255,77,166,0.15) !important;
}
#searchInput {
  background: none;
  border: none;
  outline: none;
  color: var(--text-main);
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  width: 100%;
}
#searchInput::placeholder { color: var(--text-muted); }

/* Toasts */
.toast-container { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9000; display: flex; flex-direction: column; gap: 0.5rem; }
.toast { display: flex; align-items: center; gap: 0.75rem; background: var(--glass-bg); border: 1.5px solid var(--glass-border); border-radius: 1rem; padding: 0.85rem 1.1rem; min-width: 260px; max-width: 360px; backdrop-filter: blur(12px); box-shadow: 0 8px 24px rgba(0,0,0,0.35); }
.toast.success { border-color: rgba(34,197,94,0.35); }
.toast.success .toast-icon { color: #22c55e; }
.toast.error { border-color: rgba(248,113,113,0.35); }
.toast.error .toast-icon { color: #f87171; }
.toast.info { border-color: rgba(59,130,246,0.35); }
.toast.info .toast-icon { color: #3b82f6; }
.toast.warning { border-color: rgba(250,204,21,0.35); }
.toast.warning .toast-icon { color: #facc15; }
.toast-content { flex: 1; font-size: 0.88rem; font-weight: 600; line-height: 1.4; }
