@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;
}

@keyframes fadeInUpStaggered {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes badgeGlow {
    0%, 100% { filter: brightness(1) drop-shadow(0 0 2px currentColor); }
    50% { filter: brightness(1.3) drop-shadow(0 0 8px currentColor); }
}

@keyframes cardPulseGlow {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 77, 166, 0.2); }
    50% { box-shadow: 0 0 25px rgba(255, 77, 166, 0.5); }
}

/* Navigation Links */
/* Sidebar Legal Section */
.btn-cancel {
    background: rgba(239, 68, 68, 0.08);
    color: var(--accent-danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 0.8rem 1.5rem;
    border-radius: 0.85rem;
    font-family: var(--font-heading);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    font-size: 0.9rem;
    margin-top: 10px;
    letter-spacing: 0.3px;
}

.btn-cancel:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: var(--accent-danger);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(239, 68, 68, 0.25), 0 0 15px rgba(239, 68, 68, 0.1);
}

.btn-cancel:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* 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 - Premium V2 */
.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    cursor: pointer;
    opacity: 0; /* Animated entry */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.card.animated {
    animation: fadeInUpStaggered 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
    z-index: 10;
}

.card-image-wrapper {
    width: 100%;
    aspect-ratio: 1;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 1.25rem;
    overflow: hidden;
    flex-shrink: 0;
}

.rarity-glow {
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, var(--rarity-color, rgba(255, 77, 166, 0.2)) 0%, transparent 70%);
    opacity: 0.2;
    pointer-events: none;
    transition: all 0.4s ease;
    z-index: 1;
}

.card:hover .rarity-glow {
    opacity: 0.5;
    transform: scale(1.1);
}

.card-img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    filter: drop-shadow(0 8px 15px rgba(0, 0, 0, 0.3));
    z-index: 2;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card:hover .card-img {
    transform: scale(1.15) rotate(5deg);
}

.card-content {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.pet-name,
.card-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
    color: var(--text-main);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: -0.01em;
}

.card-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-transform: capitalize;
}

.meta-dot {
    opacity: 0.3;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--glass-border);
}

.card-price {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--accent-primary);
    letter-spacing: -0.02em;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.positive {
    color: var(--accent-primary);
}

.negative {
    color: var(--accent-danger);
}

/* Badges - Premium V2 */
.pet-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    z-index: 10;
}

.badge {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.2rem 0.6rem;
    border-radius: 0.5rem;
    color: white;
    text-transform: uppercase;
    backdrop-filter: blur(6px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-n { background: linear-gradient(135deg, #10B981 0%, #059669 100%); }
.badge-m { background: linear-gradient(135deg, #A855F7 0%, #7E22CE 100%); }
.badge-f { background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%); }
.badge-r { background: linear-gradient(135deg, #EC4899 0%, #BE185D 100%); }

/* 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 {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    width: 90%;
    max-width: 600px;
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 30px rgba(255, 77, 166, 0.1);
    padding: 2.5rem;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideUp 0.5s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.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 1.25rem;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.85rem;
    color: white;
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

input:focus,
select:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(255, 77, 166, 0.2), inset 0 0 10px rgba(255, 77, 166, 0.05);
    background: rgba(15, 23, 42, 0.6);
}

.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: linear-gradient(135deg, var(--accent-primary) 0%, #059669 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent-primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(255, 77, 166, 0.4), 0 0 20px rgba(255, 77, 166, 0.2);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.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);
}

.deposit-cancel-confirm {
    position: absolute;
    inset: 0;
    background: var(--bg-primary, #0d0d1a);
    border-radius: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    z-index: 10;
}

.deposit-cancel-confirm.hidden {
    display: none;
}

.deposit-cancel-confirm-inner {
    text-align: center;
    max-width: 340px;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.full-width {
    width: 100%;
}

/* P2P Purchase Modal Styles */
.p2p-stepper {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 15px;
    margin: 30px 0;
}

.p2p-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.3;
    transition: var(--transition);
}

.p2p-step.active {
    opacity: 1;
}

.p2p-step.complete .p2p-step-circle {
    background: var(--accent-primary);
    color: white;
}

.p2p-step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 2px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-family: var(--font-heading);
}

.p2p-step.active .p2p-step-circle {
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(255, 77, 166, 0.4);
    animation: pulse-step 2s infinite;
}

@keyframes pulse-step {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.p2p-step-label {
    font-size: 0.8rem;
    font-family: var(--font-heading);
    font-weight: 500;
}

#p2p-content {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(10px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Premium Loader Styles */
.premium-loader {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: ring-spin 2s linear infinite;
}

.loader-ring:nth-child(2) {
    width: 80%;
    height: 80%;
    border-top-color: #38bdf8;
    /* Blue accent */
    animation-direction: reverse;
    animation-duration: 1.5s;
}

.loader-ring:nth-child(3) {
    width: 60%;
    height: 60%;
    border-top-color: #818cf8;
    /* Indigo accent */
    animation-duration: 1s;
}

.loader-icon {
    font-size: 2rem;
    color: var(--accent-primary);
    z-index: 1;
    filter: drop-shadow(0 0 10px rgba(255, 77, 166, 0.4));
    animation: pulse 2s ease-in-out infinite;
}

@keyframes ring-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

#loading-modal-status {
    font-weight: 400;
    transition: var(--transition);
}

/* Responsive Design */
/* Responsive Design (Moved to main block at the end) */

/* =========================================
   INVENTORY SPECIFIC STYLES
   ========================================= */

/* Inventory Toolbar */
.inventory-actions-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: center;
    justify-content: space-between;
    background: var(--glass-bg);
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid var(--glass-border);
}

/* Account Selector */
.account-selector-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    overflow-x: auto;
    padding-bottom: 0.6rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 77, 166, 0.5) rgba(255, 255, 255, 0.06);
}

.account-selector-container::-webkit-scrollbar {
    height: 4px;
}

.account-selector-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
}

.account-selector-container::-webkit-scrollbar-thumb {
    background: rgba(255, 77, 166, 0.5);
    border-radius: 999px;
}

.account-selector-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 77, 166, 0.85);
}

.account-selector-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    padding: 0.75rem 1.25rem;
    border-radius: 999px;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
}

.account-selector-btn.animated {
    animation: fadeInUpStaggered 0.5s ease-out forwards;
}

.account-selector-btn:hover {
    background: var(--glass-highlight);
    color: var(--text-main);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.3);
}

.account-selector-btn.active {
    background: rgba(255, 77, 166, 0.15);
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(255, 77, 166, 0.3), inset 0 0 10px rgba(255, 77, 166, 0.1);
    transform: translateY(-1px);
}

.delete-bot-btn:hover {
    color: #b91c1c !important;
    /* Darker red */
    transform: scale(1.1);
    transition: var(--transition);
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.btn-notice-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.add-account-notice {
    position: absolute;
    bottom: calc(100% + 10px);
    background: linear-gradient(135deg, var(--clr-purple) 0%, var(--clr-pink) 100%);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(255, 0, 127, 0.3);
    pointer-events: none;
    animation: bounceNotice 2s infinite ease-in-out;
    z-index: 10;
}

.add-account-notice::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--clr-pink);
}

@keyframes bounceNotice {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.action-btn {
    padding: 0.8rem 1.2rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(5px);
    color: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.action-btn:active {
    transform: translateY(-1px) scale(0.98);
}

.action-btn.primary {
    background: linear-gradient(135deg, var(--accent-primary) 0%, #059669 100%);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(255, 77, 166, 0.3);
}

.action-btn.primary:hover {
    background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent-primary) 100%);
    box-shadow: 0 8px 25px rgba(255, 77, 166, 0.5);
}

.action-btn.warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.action-btn.warning:hover {
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.5);
}

.action-btn.danger {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.action-btn.danger:hover {
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.5);
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
}

.filters {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

#find-item {
    min-width: 250px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#find-item:focus {
    min-width: 320px;
}

/* Inventory Checkbox */
/* Inventory Checkbox */
.select-pet-checkbox,
.announcement-item-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.select-pet-checkbox:hover,
.announcement-item-checkbox:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--accent-primary);
}

.select-pet-checkbox:checked,
.announcement-item-checkbox:checked {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.select-pet-checkbox:checked::after,
.announcement-item-checkbox:checked::after {
    content: '✔';
    color: var(--text-primary);
    font-size: 14px;
    font-weight: bold;
    display: block;
}

/* Announcement Detail Grid */
.announcement-listing {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;

    margin-top: 1rem;
    max-height: 400px;
    overflow-y: auto;
}

/* Auth Modal Specifics */
.auth-modal .modal-card {
    max-width: 400px;
    width: 90%;
    padding: 0;
    overflow: hidden;
}

.auth-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid var(--glass-border);
}

.auth-tab {
    flex: 1;
    padding: 1rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
}

.auth-tab:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.02);
}

.auth-tab.active {
    color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
    background: rgba(255, 77, 166, 0.05);
}

.auth-content {
    padding: 2rem;
}

.auth-form {
    display: none;
    flex-direction: column;
    gap: 1rem;
    animation: fadeIn 0.3s ease;
}

.auth-form.active {
    display: flex;
}

/* Ensure helper classes are correct if not already present */
.btn-primary.full-width {
    width: 100%;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.announcement-item {
    background: var(--bg-secondary);
    padding: 0.75rem;
    border-radius: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid var(--glass-border);
}

.announcement-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.announcement-age {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

.announcement-age::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

.announcement-age div {
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    font-size: 0.8rem;
}

.announcement-age div:hover {
    background: var(--glass-highlight);
}

/* Premium Button Styles for Announcement Items */
.announcement-item-button,
.announcement-item-changeprice-button,
.announcement-item-add-button {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    font-size: 0.75rem !important;
    letter-spacing: 0.5px;
    margin-top: 0.5rem;
    width: 100%;
}

.announcement-item-button:hover,
.announcement-item-changeprice-button:hover,
.announcement-item-add-button.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-primary);
}

.card.pending-p2p {
    opacity: 0.7;
    cursor: not-allowed !important;
    border-color: #f59e0b !important;
    background: rgba(245, 158, 11, 0.05);
}

.card.pending-p2p .pet-name,
.card.pending-p2p .card-price {
    color: #f59e0b;
}

.card.pending-p2p:hover {
    transform: none !important;
    box-shadow: var(--shadow-md) !important;
}

.card.pending-p2p .card-image-wrapper::after {
    content: "\f023";
    /* lock icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: rgba(245, 158, 11, 0.3);
    pointer-events: none;
}

.card.pending-p2p {
    opacity: 0.7;
    cursor: not-allowed;
    border-color: #f59e0b !important;
    background: rgba(245, 158, 11, 0.05);
}

.card.pending-p2p:hover {
    transform: none;
    box-shadow: var(--shadow-md);
}

.card.pending-p2p .card-image-wrapper::after {
    content: "\f023";
    /* lock icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: rgba(245, 158, 11, 0.3);
    pointer-events: none;
}

.announcement-item-button:active,
.announcement-item-changeprice-button:active,
.announcement-item-add-button:active {
    transform: translateY(0);
}

/* Specific Style for Remove Button (Dynamically set via JS, but good to have a class if needed later) */
/* Note: JS currently sets backgroundColor manually for 'REMOVE', so we'll let that override or we can add a danger class in JS if we want consistently better danger buttons. For now, the gradient above handles the shape/font. */

/* Redeem Modal Styles */
.modal-card.mini {
    max-width: 350px;
    text-align: center;
}

.modal-card.mini h2 {
    margin-bottom: 1.5rem;
    color: var(--text-main);
    font-size: 1.5rem;
}

.redeem-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 0.75rem;
    padding: 1rem;
    color: white;
    font-family: var(--font-body);
    font-size: 1.1rem;
    text-align: center;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.redeem-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(255, 77, 166, 0.2);
}

.full-width {
    width: 100%;
}

/* 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;
}

/* Custom Confirm Modal specific tweaks */
#modal-confirm {
    z-index: 99999 !important;
}

.confirm-card {
    border-top: 4px solid var(--accent-primary);
}
.confirm-card.danger {
    border-top-color: #ef4444;
}
.confirm-card.danger .btn-primary {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}
.confirm-card.danger .btn-primary:hover {
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
    transform: translateY(-2px);
}

/* =========================================
   PREMIUM MODAL COMPONENTS
   ========================================= */

/* Step Indicators */
.modal-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    padding: 0 1rem;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 2;
}

.step-dot {
    width: 32px;
    height: 32px;
    background: #1e293b;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.step-item.active .step-dot {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
    box-shadow: 0 0 15px rgba(255, 77, 166, 0.4);
}

.step-item.completed .step-dot {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

.step-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.step-item.active .step-label {
    color: var(--accent-primary);
}

.steps-line {
    position: absolute;
    top: 16px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

/* Premium Bot Cards */
.bot-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.bot-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    border-color: var(--accent-primary, #ff4da6);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.5);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: background 0.3s;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* For Firefox */
.bot-avatar {
    width: 60px;
    height: 60px;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.bot-avatar i {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.4);
}

.bot-details {
    flex: 1;
}

.bot-details h4 {
    font-family: var(--font-heading, "Inter");
    font-size: 1rem;
    margin: 0 0 0.25rem 0;
}

.bot-status {
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.5);
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #94a3b8;
}

.status-indicator.ready { background: #ff4da6; box-shadow: 0 0 8px #ff4da6; }
.status-indicator.waiting { background: #eab308; box-shadow: 0 0 8px #eab308; }

/* Premium Action Buttons inside bot cards */
.bot-actions {
    display: flex;
    gap: 10px;
}

.bot-action-btn {
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.bot-action-btn.primary { background: var(--accent-primary, #ff4da6); color: white; }
.bot-action-btn.success { background: #059669; color: white; }
.bot-action-btn:hover { filter: brightness(1.2); transform: scale(1.05); }

/* Withdrawal Quantity Controls */
.withdraw-items-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.withdraw-item-row-premium {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.withdraw-item-row-premium:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
}

.withdraw-item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.withdraw-item-info strong {
    font-family: var(--font-heading, "Inter");
    font-size: 1rem;
}

.withdraw-item-info .bot-name-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

.qty-control-premium {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 8px;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.qty-btn {
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.qty-btn:hover {
    background: var(--accent-primary, #ff4da6);
    border-color: var(--accent-primary, #ff4da6);
}

.qty-input-premium {
    width: 45px;
    background: transparent;
    border: none;
    padding: 0 !important;
    color: #ffffff !important;
    text-align: center;
    font-family: var(--font-heading, "Inter");
    font-weight: 700;
    font-size: 1.1rem;
    outline: none;
    -moz-appearance: textfield;
    min-width: 0;
}

.qty-input-premium::-webkit-outer-spin-button,
.qty-input-premium::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Sell Group Modal & Cards */
.sell-group-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.25rem;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0; /* Animated entry */
}

.sell-group-card.animated {
    animation: fadeInUpStaggered 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.sell-group-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.sell-card-main {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sell-card-image {
    position: relative;
    width: 60px;
    height: 60px;
    background: var(--bg-secondary);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--glass-border);
}

.sell-card-image img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.sell-card-count {
    position: absolute;
    bottom: -5px;
    right: -5px;
    background: var(--accent-primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 999px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.2);
}

.sell-card-info {
    flex: 1;
}

.sell-card-info h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.sell-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.sell-card-meta span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.sell-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--glass-border);
}

.price-input-wrapper {
    position: relative;
    flex: 1;
    max-width: 150px;
}

.currency-symbol {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-primary);
    font-weight: 700;
    font-size: 1rem;
    pointer-events: none;
}

.putonsale-pet-price-input {
    padding-left: 25px !important;
    font-weight: 700;
    color: white;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
}

.fee-badge {
    position: absolute;
    right: -80px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.65rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.btn-sell-action {
    background: linear-gradient(135deg, var(--accent-primary), #059669);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(255, 77, 166, 0.2);
}

.btn-sell-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 77, 166, 0.3);
    filter: brightness(1.1);
}

.btn-sell-action i {
    font-size: 0.8rem;
}

/* Layout adjustment for multi-sell scroll */
.putonsale-div .modal-card {
    max-height: 85vh;
    overflow-y: auto;
}

/* Custom Scrollbar for the modal */
.putonsale-div .modal-card::-webkit-scrollbar {
    width: 6px;
}
.putonsale-div .modal-card::-webkit-scrollbar-track {
    background: transparent;
}
.putonsale-div .modal-card::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

/* Sell Stats Styling */
.sell-stats-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 12px;
    margin: 15px 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.stat-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
}

.stat-item.recommended .stat-value {
    color: var(--accent-primary);
    text-shadow: 0 0 10px rgba(255, 77, 166, 0.3);
}

.stat-divider {
    width: 1px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
}

.sell-daily-trends {
    padding: 0 12px 15px 12px;
}

.trend-title {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 10px;
    text-align: center;
}

.trend-bars-container {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 60px; /* Increased height */
    gap: 6px;
    margin-top: 30px; /* Space for tooltips */
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    padding: 10px 5px 5px 5px;
}

.trend-bar-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    position: relative;
    height: 100%;
}

.trend-bar-tooltip {
    position: absolute;
    bottom: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    padding: 8px 12px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.trend-bar-wrapper:hover .trend-bar-tooltip {
    opacity: 1;
    bottom: calc(100% + 10px);
}

.tooltip-count {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--accent-primary);
}

.tooltip-price {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.trend-bar {
    width: 100%;
    background: rgba(255, 77, 166, 0.4); /* More visible base opacity */
    border-radius: 4px 4px 2px 2px;
    min-height: 4px;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
}

.trend-bar-wrapper:hover .trend-bar {
    background: var(--accent-primary);
    box-shadow: 0 0 15px rgba(255, 77, 166, 0.5), inset 0 1px 0 rgba(255,255,255,0.2);
    transform: scaleX(1.1);
}

.trend-day {
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
    margin-top: 2px;
}

/* =========================================
   PREMIUM PAGE LOADER
   ========================================= */
#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease-out, visibility 0.5s;
}

#page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.premium-spinner {
    position: relative;
    width: 80px;
    height: 80px;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.spinner-ring:nth-child(2) {
    width: 70%;
    height: 70%;
    top: 15%;
    left: 15%;
    border-top-color: #38bdf8;
    animation-duration: 0.8s;
    animation-direction: reverse;
}

.loader-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: loaderPulse 1.5s ease-in-out infinite;
    text-shadow: 0 0 15px rgba(255, 77, 166, 0.4);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes loaderPulse {
    0%, 100% { opacity: 0.6; transform: scale(0.98); }
    50% { opacity: 1; transform: scale(1); }
}

/* Shop Link Banner */
.shop-link-banner {
    background: linear-gradient(135deg, rgba(255, 77, 166, 0.1), rgba(30, 41, 59, 0.5));
    border: 1px solid rgba(255, 77, 166, 0.2);
    border-radius: 1.25rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-lg);
    animation: fadeInDown 0.5s ease;
}

.shop-banner-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.shop-icon-circle {
    width: 60px;
    height: 60px;
    background: rgba(255, 77, 166, 0.15);
    border: 1px solid rgba(255, 77, 166, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(255, 77, 166, 0.2);
}

.shop-text-info {
    flex: 1;
}

.shop-text-info h3 {
    font-size: 1.25rem;
    font-family: var(--font-heading);
    margin-bottom: 4px;
    color: white;
}

.shop-text-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.link-display {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0.75rem;
    padding: 4px 4px 4px 12px;
    gap: 10px;
}

#public-shop-link {
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--accent-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.copy-link-btn {
    background: var(--accent-primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.copy-link-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1024px) {
    .data-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 1.25rem;
    }
}

@media (max-width: 768px) {
    :root {
        --sidebar-width: 260px;
        --header-height: 70px;
    }

    .sidebar.open {
        left: 0;
    }

    .inventory-actions-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 1.25rem;
        padding: 1.25rem;
    }

    .action-buttons {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
        width: 100%;
    }

    .action-btn {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
        justify-content: center;
        width: 100%;
    }

    .action-btn i {
        font-size: 1rem;
    }

    .filters {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        width: 100%;
    }

    #find-item {
        min-width: 0 !important;
        width: 100%;
    }

    .custom-select {
        width: 100% !important;
    }

    .account-selector-container {
        padding: 0.5rem;
        background: rgba(255, 255, 255, 0.02);
        border-radius: 1rem;
    }

    .shop-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .link-display {
        flex-direction: column;
        padding: 12px;
        gap: 0.75rem;
        width: 100%;
    }

    #public-shop-link {
        width: 100%;
        text-align: center;
    }

    .copy-link-btn {
        width: 100%;
        justify-content: center;
    }

    .withdraw-bar {
        flex-direction: column;
        height: auto;
        padding: 1rem;
        gap: 1rem;
        border-radius: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .withdraw-stats {
        width: 100%;
        justify-content: space-around;
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
        padding-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .data-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .card {
        padding: 0.75rem;
        border-radius: 1rem;
    }

    .pet-name {
        font-size: 0.95rem;
    }

    .card-price {
        font-size: 1rem;
    }

    .balance-amount {
        font-size: 0.95rem;
    }
}

/* Add Account Modal Redesign */
#modal-addaccount .hidden {
    display: none !important;
}

.login-methods-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.method-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem 1rem;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.method-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-3px);
    border-color: var(--accent-primary);
}

.method-card.active {
    background: rgba(255, 77, 166, 0.1);
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(255, 77, 166, 0.2);
}

.method-card.active .method-icon i {
    color: var(--accent-primary);
    text-shadow: 0 0 10px rgba(255, 77, 166, 0.5);
}

.method-icon {
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.method-icon i {
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.method-info h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.method-info p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Modal UI Refinements */
.modal-msg {
    min-height: 1.2em;
    font-size: 0.85rem;
    text-align: center;
    margin-top: 1rem;
}

.modal-msg.error { color: #ef4444; }
.modal-msg.success { color: var(--accent-primary); }

#modal-addaccount .btn-primary, 
#modal-addaccount .btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 45px;
}

/* =====================================================
   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);
}

/* Card image area — replace dark overlay with light lavender */
[data-theme="light"] .card {
  background: rgba(255,255,255,0.92);
  border-color: rgba(100,110,180,0.15);
}
[data-theme="light"] .card:hover {
  box-shadow: 0 12px 30px rgba(100,110,180,0.2);
  border-color: var(--accent-primary);
}
[data-theme="light"] .card-image-wrapper {
  background: linear-gradient(145deg, #eef2ff, #f0f4ff);
}
[data-theme="light"] .card-footer {
  border-top-color: rgba(100,110,180,0.12);
}
[data-theme="light"] .card-time,
[data-theme="light"] .meta-dot {
  color: var(--text-muted);
  opacity: 1;
}
/* Bot section — dark background containers */
[data-theme="light"] .bot-card,
[data-theme="light"] .bot-item,
[data-theme="light"] .withdraw-item {
  background: rgba(235,240,255,0.8);
  border-color: rgba(100,110,180,0.15);
  color: var(--text-main);
}
[data-theme="light"] .bot-details h4,
[data-theme="light"] .withdraw-item-info h4 {
  color: var(--text-main);
}
[data-theme="light"] .bot-avatar {
  background: rgba(220,228,248,0.9);
  border-color: rgba(100,110,180,0.2);
}
/* Sort / search controls */
[data-theme="light"] .sort-select,
[data-theme="light"] .search-input-inv {
  background: rgba(230,236,255,0.9);
  border-color: rgba(100,110,180,0.2);
  color: var(--text-main);
}

[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; }

/* Fix white text on dark-bg elements that become transparent in light mode */
[data-theme="light"] input,
[data-theme="light"] select {
  color: var(--text-main);
  background: rgba(200,210,240,0.5);
  border-color: rgba(100,110,180,0.2);
}
[data-theme="light"] input::placeholder { color: var(--text-muted); opacity: 0.7; }
[data-theme="light"] .redeem-input {
  color: var(--text-main);
  background: rgba(200,210,240,0.35);
}
[data-theme="light"] .qty-btn {
  color: var(--text-main);
  background: rgba(200,210,240,0.35);
  border-color: rgba(100,110,180,0.2);
}
[data-theme="light"] .putonsale-pet-price-input {
  color: var(--text-main);
  background: rgba(200,210,240,0.4);
}
[data-theme="light"] .action-btn {
  color: var(--text-main);
  background: rgba(200,210,240,0.4);
  border-color: rgba(100,110,180,0.2);
}
[data-theme="light"] .shop-text-info h3 {
  color: var(--text-main);
}

/* Fix invisible semi-transparent white text in light mode */
[data-theme="light"] .step-dot {
  background: var(--bg-secondary);
  border-color: var(--glass-border);
  color: var(--text-muted);
}
[data-theme="light"] .step-label {
  color: var(--text-muted);
}
[data-theme="light"] .bot-avatar {
  background: var(--bg-secondary);
  border-color: var(--glass-border);
}
[data-theme="light"] .bot-avatar i {
  color: var(--text-muted);
}
[data-theme="light"] .bot-status {
  color: var(--text-muted);
}
[data-theme="light"] .withdraw-item-info .bot-name-label {
  color: var(--text-muted);
}
[data-theme="light"] .trend-title,
[data-theme="light"] .trend-day {
  color: var(--text-muted);
}
[data-theme="light"] .step-dot { background: var(--glass-highlight); }

/* =====================================================
   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; }

/* Withdraw blocked banner */
.withdraw-blocked-banner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.35);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
    animation: fadeInUp 0.3s ease;
}

.withdraw-blocked-icon {
    color: #ef4444;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.withdraw-blocked-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.withdraw-blocked-text strong {
    font-size: 0.88rem;
    color: var(--text-main);
}

.withdraw-blocked-text span {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.withdraw-blocked-cancel-btn {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #ef4444;
    border-radius: 8px;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, transform 0.15s;
    flex-shrink: 0;
}

.withdraw-blocked-cancel-btn:hover:not(:disabled) {
    background: rgba(239, 68, 68, 0.3);
    transform: translateY(-1px);
}

.withdraw-blocked-cancel-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
