@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&family=Nunito:wght@400;500;600;700;800;900&display=swap');
: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;
}

/* Navigation Links */
/* Sidebar Legal Section */
/* Main Content */
.balance-amount {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1;
}

/* Content Area */
/* Scrollbar Styling */
.content-area::-webkit-scrollbar {
    width: 8px;
}

.content-area::-webkit-scrollbar-track {
    background: transparent;
}

.content-area::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

.content-area::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Loading & Empty States */
.loading-container,
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    text-align: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 77, 166, 0.3);
    border-radius: 50%;
    border-top-color: var(--accent-primary);
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.empty-state img {
    width: 120px;
    opacity: 0.5;
    margin-bottom: 1rem;
    filter: grayscale(100%);
}

.hidden {
    display: none !important;
}

/* Grid Layout */
.data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    /* Slightly smaller for inventory items */
    gap: 1.5rem;
}

/* Cards */
.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    /* Inventory items stack vertically */
    gap: 1rem;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-lg);
}

.card-image-wrapper {
    width: 100%;
    aspect-ratio: 1/1;
    /* Square for pets */
    height: auto;
    border-radius: 0.75rem;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pet-name,
.card-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.card-time {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.card-price {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
}

.positive {
    color: var(--accent-primary);
}

.negative {
    color: var(--accent-danger);
}

/* Badges */
.pet-badges {
    display: flex;
    gap: 4px;
    margin-bottom: 0.5rem;
}

.badge {
    font-size: 0.7rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
}

.badge-n {
    background: #33d300;
}

.badge-m {
    background: #892eed;
}

.badge-f {
    background: #1a68e6;
}

.badge-r {
    background: #ff267b;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: fadeIn 0.3s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.modal-card {
    background: #1e293b;
    width: 90%;
    max-width: 600px;
    border-radius: 1.5rem;
    border: 1px solid var(--glass-border);
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.5);
    padding: 2rem;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-card.mini {
    max-width: 400px;
    text-align: center;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--text-main);
    transform: rotate(90deg);
}

.modal-header {
    margin-bottom: 2rem;
    text-align: center;
}

.modal-header h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--accent-primary);
}

.modal-header p {
    color: var(--text-muted);
}

/* Forms */
.form-group {
    margin-bottom: 1.25rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-left: 0.5rem;
}

input,
select {
    width: 100%;
    padding: 0.875rem 1rem;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 0.75rem;
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

input:focus,
select:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(255, 77, 166, 0.2);
}

.redeem-input {
    text-align: center;
    font-size: 1.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn-primary {
    background: var(--accent-primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 77, 166, 0.3);
}

.btn-danger {
    background: transparent;
    color: var(--accent-danger);
    border: 1px solid var(--accent-danger);
    padding: 0.8rem 1.5rem;
    border-radius: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.1);
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.full-width {
    width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar.open {
        left: 0;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* =========================================
   LUCKY ROOM STYLES
   ========================================= */

/* Tabs */
.lucky-tabs {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.lucky-tab {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.lucky-tab:hover {
    background: var(--glass-highlight);
    color: var(--text-main);
}

.lucky-tab.active {
    background: rgba(255, 77, 166, 0.1);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* Game Sections */
.game-section {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    padding: 2rem;
    text-align: center;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.game-header {
    margin-bottom: 2rem;
}

.game-header h2 {
    font-size: 2rem;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

/* Case Roller */
.case-roller-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 2px;
    background: linear-gradient(180deg, #fbbf24, #b45309);
    /* Gold border effect */
    border-radius: 12px;
    box-shadow: 0 0 40px rgba(251, 191, 36, 0.15);
}

.case-roller-container {
    width: 100%;
    height: 200px;
    /* Taller for better view */
    background: #0f172a;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.9);
}

/* Center Line Indicator */
.case-roller-container::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #fbbf24;
    transform: translateX(-50%);
    box-shadow: 0 0 10px #fbbf24;
    z-index: 30;
    opacity: 0.8;
}

.case-pointer-top {
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 25px solid #fbbf24;
    z-index: 40;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5));
}

.case-pointer-bottom {
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 25px solid #fbbf24;
    z-index: 40;
    filter: drop-shadow(0 -4px 6px rgba(0, 0, 0, 0.5));
}

.case-strip {
    display: flex;
    height: 100%;
    align-items: center;
    will-change: transform;
}

.case-item {
    min-width: 160px;
    /* Wider cards */
    height: 140px;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.95) 100%);
    border-bottom: 6px solid #475569;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
    border-radius: 8px;
    position: relative;
    transition: transform 0.2s;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Enhancing Rarity Colors on Items */
.case-item.common {
    border-bottom-color: #94a3b8;
    box-shadow: inset 0 -20px 20px -10px rgba(148, 163, 184, 0.1);
}

.case-item.uncommon {
    border-bottom-color: #3b82f6;
    box-shadow: inset 0 -20px 20px -10px rgba(59, 130, 246, 0.15);
}

.case-item.rare {
    border-bottom-color: #ff4da6;
    box-shadow: inset 0 -20px 20px -10px rgba(255, 77, 166, 0.15);
}

.case-item.ultra_rare {
    border-bottom-color: #ef4444;
    box-shadow: inset 0 -20px 20px -10px rgba(239, 68, 68, 0.15);
}

.case-item.legendary {
    border-bottom-color: #fbbf24;
    box-shadow: inset 0 -20px 20px -10px rgba(251, 191, 36, 0.2);
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.case-item img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    margin-bottom: 8px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

.case-item p {
    font-size: 0.9rem;
    color: #e2e8f0;
    font-weight: 500;
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Win Modal Specifics */
.win-card {
    background: radial-gradient(circle at center, #1e1b4b 0%, #0f172a 100%);
    border: 2px solid #fbbf24 !important;
    box-shadow: 0 0 80px rgba(251, 191, 36, 0.4) !important;
    min-width: 400px;
}

.win-item-display {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    animation: popIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.win-item-display img {
    width: 200px;
    height: 200px;
    filter: drop-shadow(0 0 30px rgba(251, 191, 36, 0.3));
}

.win-item-display h3 {
    font-size: 1.8rem;
    font-family: var(--font-heading);
}

@keyframes popIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Wheel */
.wheel-container {
    position: relative;
    width: 300px;
    height: 300px;
}

.wheel-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(#ef4444 0deg 90deg,
            #3b82f6 90deg 180deg,
            #22c55e 180deg 270deg,
            #eab308 270deg 360deg);
    border: 5px solid var(--glass-border);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.wheel-pointer {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: white;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Coinflip */
.coinflip-container {
    display: flex;
    gap: 2rem;
}

.coin-side {
    width: 120px;
    height: 120px;
    background: var(--bg-secondary);
    border-radius: 50%;
    border: 4px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0.5;
}

.coin-side.active {
    border-color: var(--accent-primary);
    background: rgba(255, 77, 166, 0.1);
    opacity: 1;
    transform: scale(1.1);
}

.coin-side i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* Upgrader */
.upgrader-container {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.upgrade-slot {
    width: 100px;
    height: 100px;
    border: 2px dashed var(--glass-border);
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.upgrade-chance {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    color: var(--accent-primary);
}

.upgrade-arrow {
    font-size: 2rem;
    color: var(--text-muted);
}

/* Plinko */
.plinko-board-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.plinko-row {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.plinko-row span {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    opacity: 0.5;
}

.plinko-buckets {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.bucket {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: bold;
    font-size: 0.8rem;
}

.bucket.loss {
    background: var(--accent-danger);
    color: white;
}

.bucket.win {
    background: var(--accent-primary);
    color: white;
}

/* Case Selection Grid */
/* Case Selection Grid */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    width: 100%;
    margin-top: 2rem;
    padding: 0 1rem;
}

.case-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
}

.case-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.case-card:hover {
    transform: translateY(-8px);
    border-color: rgba(59, 130, 246, 0.5);
    /* Blue-ish glow by default */
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

.case-card:hover::before {
    opacity: 1;
}

.case-card img {
    width: 140px;
    height: 140px;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4));
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.case-card:hover img {
    transform: scale(1.15) rotate(5deg);
}

.case-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: #f1f5f9;
    letter-spacing: 0.5px;
    z-index: 2;
}

.case-price {
    background: #0f172a;
    color: #ff4da6;
    /* Emerald Green */
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    border: 1px solid #ff4da6;
    box-shadow: 0 4px 10px rgba(255, 77, 166, 0.2);
    z-index: 2;
}

/* Back Button */
.back-btn {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.back-btn:hover {
    color: white;
    transform: translateY(-50%) translateX(-3px);
}

/* Odds Table */
.odds-table-container {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem;
    margin: 3rem auto 0;
    width: 100%;
    max-width: 900px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.odds-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.5rem;
    /* Gap between rows */
}

.odds-table th {
    text-align: left;
    padding: 1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.05);
}

.odds-table td {
    padding: 1rem;
    background: rgba(30, 41, 59, 0.4);
    color: #e2e8f0;
}

.odds-table td:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.odds-table td:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.odds-table tr:hover td {
    background: rgba(51, 65, 85, 0.6);
}

.percent-bar {
    display: inline-block;
    height: 8px;
    border-radius: 4px;
    margin-right: 0.8rem;
    box-shadow: 0 0 10px currentColor;
    /* Glow effect */
}

/* Specific text colors */
.text-common {
    color: #94a3b8;
}

.text-uncommon {
    color: #60a5fa;
}

.text-rare {
    color: #ff70b8;
}

.text-ultra_rare {
    color: #f87171;
}

.text-legendary,
.text-mythical,
.text-shadow_dragon,
.text-mega_neon {
    color: #fbbf24;
    text-shadow: 0 0 15px rgba(251, 191, 36, 0.3);
    font-weight: 700;
}

/* =====================================================
   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; }
