:root {
    --bg-base: #050507; --bg-panel: rgba(15, 15, 20, 0.4); --primary: #7c5cff;
    --primary-glow: rgba(124, 92, 255, 0.25); --text-main: #ffffff; --text-muted: #8b8b9e;
    --border-color: rgba(255, 255, 255, 0.08); --card-hover: rgba(255, 255, 255, 0.05);
    --trend-up: #00e676; --trend-down: #ff1744; --trend-stable: #8b8b9e;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --gold: #d4af37; --gold-glow: rgba(212, 175, 55, 0.2);
    --mm2-accent: #ff4757; --mm2-glow: rgba(255, 71, 87, 0.25);
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; border: 3px solid var(--bg-base); }
::selection { background: var(--primary); color: #fff; }

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Outfit', sans-serif; touch-action: manipulation; }
body { background-color: var(--bg-base); color: var(--text-main); overflow-x: hidden; min-height: 100vh; }
.mono { font-family: 'Space Mono', monospace; text-transform: uppercase; }

.ambient-glow { position: fixed; top: -15%; left: 50%; transform: translateX(-50%); width: 70vw; height: 60vh; background: radial-gradient(ellipse, var(--primary-glow) 0%, transparent 60%); filter: blur(80px); z-index: -1; pointer-events: none; will-change: transform; }

/* HEADER */
header { display: flex; justify-content: space-between; align-items: center; padding: 20px 40px; background: rgba(5, 5, 7, 0.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 100; }
.logo-area { display: flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 800; letter-spacing: 1px; width: 250px; }
.logo-area i { color: var(--primary); text-shadow: 0 0 15px var(--primary-glow); }
.search-container { position: absolute; left: 50%; transform: translateX(-50%); width: 100%; max-width: 550px; display: flex; align-items: center; gap: 10px; }
.search-input-wrapper { position: relative; flex: 1; }
.search-input-wrapper i { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: var(--text-muted); z-index: 1; }
.search-input { width: 100%; background: var(--bg-panel); border: 1px solid var(--border-color); border-radius: 12px; padding: 12px 20px 12px 50px; color: var(--text-main); font-size: 16px; outline: none; transition: var(--transition); height: 46px; }
.search-input:focus { border-color: var(--primary); box-shadow: 0 0 20px rgba(124, 92, 255, 0.2); background: rgba(255, 255, 255, 0.05); }
.calc-search-btn { height: 46px; width: 46px; border-radius: 12px; background: var(--bg-panel); border: 1px solid var(--border-color); color: var(--text-muted); display: flex; justify-content: center; align-items: center; font-size: 18px; transition: 0.2s; text-decoration: none; flex-shrink: 0; }
.calc-search-btn:hover { border-color: var(--primary); color: var(--primary); box-shadow: 0 0 15px var(--primary-glow); }
.header-controls { display: flex; gap: 15px; align-items: center; width: 250px; justify-content: flex-end; }
.header-avatar { width: 45px; height: 45px; border-radius: 12px; border: 2px solid var(--primary); object-fit: cover; cursor: pointer; transition: 0.2s; }
.header-avatar:hover { box-shadow: 0 0 15px var(--primary-glow); transform: scale(1.05); }
.vip-btn { background: rgba(124, 92, 255, 0.1); border: 1px solid rgba(124, 92, 255, 0.3); color: #b09cff; padding: 10px 16px; border-radius: 10px; font-weight: 600; cursor: pointer; transition: var(--transition); white-space: nowrap; display: flex; align-items: center; gap: 8px; }
.vip-btn:hover { background: var(--primary); color: #fff; box-shadow: 0 0 15px var(--primary-glow); }

/* CUSTOM SELECT */
.nova-select-container { position: relative; width: 110px; user-select: none; }
.nova-select-trigger { background: var(--bg-panel); border: 1px solid var(--border-color); border-radius: 10px; padding: 12px 15px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; color: #fff; font-weight: 600; font-size: 15px; transition: 0.2s; height: 46px; }
.nova-select-trigger:hover { border-color: var(--primary); }
.nova-select-trigger i { font-size: 12px; color: var(--text-muted); transition: 0.3s; }
.nova-select-container.active .nova-select-trigger i { transform: rotate(180deg); color: var(--primary); }
.nova-select-dropdown { position: absolute; top: 115%; left: 0; width: 100%; background: #121218; border: 1px solid var(--primary); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.8); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: 0.2s; z-index: 1000; overflow: hidden; }
.nova-select-container.active .nova-select-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nova-option { padding: 12px 15px; cursor: pointer; font-weight: 600; font-size: 14px; border-bottom: 1px solid rgba(255,255,255,0.05); transition: 0.2s; }
.nova-option:last-child { border-bottom: none; }
.nova-option:hover, .nova-option.selected { background: var(--primary-glow); color: #fff; border-left: 3px solid var(--primary); }
select.hidden-native { display: none !important; }

/* HERO */
.hero { text-align: center; padding: 50px 20px 30px; }
.hero-badge { display: inline-block; padding: 6px 15px; background: rgba(124, 92, 255, 0.1); border: 1px solid rgba(124, 92, 255, 0.3); color: var(--primary); border-radius: 20px; font-size: 12px; font-weight: 600; margin-bottom: 15px; text-shadow: 0 0 10px var(--primary-glow); }
.hero-title { font-size: clamp(32px, 5vw, 48px); font-weight: 800; letter-spacing: -1px; line-height: 1.2; }
.hero-title span { color: var(--text-muted); }
.last-update { color: var(--text-muted); font-size: 12px; margin-top: 10px; }

/* GAME SWITCHER */
.game-switcher { display: flex; justify-content: center; gap: 10px; margin-top: 25px; flex-wrap: wrap; }
.game-tab { background: var(--bg-panel); border: 1px solid var(--border-color); color: var(--text-muted); padding: 10px 28px; border-radius: 30px; cursor: pointer; font-weight: 700; font-size: 15px; transition: var(--transition); display: flex; align-items: center; gap: 8px; }
.game-tab:hover { border-color: rgba(255,255,255,0.2); color: #fff; }
.game-tab.active[data-game="adoptme"], .game-tab.active[data-calcgame="adoptme"] { background: rgba(124, 92, 255, 0.15); color: #b09cff; border-color: var(--primary); box-shadow: 0 0 20px var(--primary-glow); }
.game-tab.active[data-game="mm2"], .game-tab.active[data-calcgame="mm2"] { background: rgba(255, 71, 87, 0.15); color: #ff6b7a; border-color: var(--mm2-accent); box-shadow: 0 0 20px var(--mm2-glow); }
.game-tab.active[data-calcgame="all"] { background: rgba(124, 92, 255, 0.15); color: #b09cff; border-color: var(--primary); box-shadow: 0 0 20px var(--primary-glow); }

/* FILTERS */
.filters { display: flex; justify-content: center; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.filter-chip { background: var(--bg-panel); border: 1px solid var(--border-color); color: var(--text-muted); padding: 8px 20px; border-radius: 30px; cursor: pointer; font-weight: 600; transition: var(--transition); }
.filter-chip.active, .filter-chip:hover { background: var(--primary-glow); color: #fff; border-color: var(--primary); }

/* GRID */
.container { max-width: 1400px; margin: 0 auto; padding: 0 40px 80px 40px; }
.pet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }

/* CARDS */
.pet-card { background: var(--bg-panel); border: 1px solid var(--border-color); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; min-height: 150px; transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease; position: relative; overflow: hidden; will-change: transform; }
.pet-card:hover { transform: translateY(-4px); border-color: rgba(124, 92, 255, 0.5); box-shadow: 0 8px 25px rgba(0,0,0,0.4); }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.card-actions { display: flex; gap: 10px; }
.fav-btn, .info-btn { color: var(--text-muted); font-size: 16px; cursor: pointer; background: none; border: none; transition: 0.2s; }
.fav-btn:hover { color: #ffd700; transform: scale(1.1); }
.fav-btn.active { color: #ffd700; text-shadow: 0 0 10px rgba(255,215,0,0.5); }
.info-btn:hover { color: #fff; transform: scale(1.1); }
.pet-badge { padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 800; letter-spacing: 1px; }
.pet-name { font-size: 17px; font-weight: 600; line-height: 1.2; color: #fff; margin-bottom: 18px; word-wrap: break-word; }
.card-bottom { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; }
.price-area { display: flex; align-items: baseline; gap: 5px; }
.price-symbol { color: var(--text-muted); font-size: 15px; font-weight: 600; }
.price-value { font-size: 22px; font-weight: 800; font-family: 'Space Mono', monospace; color: #fff; }

/* TREND */
.trend { font-size: 14px; font-weight: 800; }
.trend.up { color: var(--trend-up); }
.trend.down { color: var(--trend-down); }
.trend.stable { color: var(--trend-stable); }

/* CARD ANIMATION */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
.pet-card { animation: fadeInUp 0.35s ease forwards; opacity: 0; }

/* MM2 CARD */
.pet-card.mm2-card { min-height: 210px; }
.pet-card.mm2-card:hover { border-color: rgba(255, 71, 87, 0.5); box-shadow: 0 8px 25px rgba(255, 71, 87, 0.12); }
.mm2-img-wrapper { display: flex; justify-content: center; align-items: center; height: 90px; margin: 8px 0; }
.mm2-item-img { max-height: 80px; max-width: 100%; object-fit: contain; filter: drop-shadow(0 3px 10px rgba(255, 71, 87, 0.15)); transition: 0.3s; }
.pet-card.mm2-card:hover .mm2-item-img { transform: scale(1.06); filter: drop-shadow(0 5px 18px rgba(255, 71, 87, 0.3)); }
.mm2-placeholder-icon { font-size: 36px; color: rgba(255, 71, 87, 0.25); }

/* BADGES - Adopt Me */
.badge-mfr { background: rgba(255, 71, 161, 0.15); color: #ff47a1; border: 1px solid rgba(255, 71, 161, 0.3); }
.badge-nfr { background: rgba(0, 240, 255, 0.15); color: #00f0ff; border: 1px solid rgba(0, 240, 255, 0.3); }
.badge-fr { background: rgba(124, 92, 255, 0.15); color: var(--primary); border: 1px solid rgba(124, 92, 255, 0.3); }
.badge-np { background: rgba(139, 139, 158, 0.15); color: #8b8b9e; border: 1px solid rgba(139, 139, 158, 0.3); }
.badge-egg { background: rgba(255, 215, 0, 0.15); color: #ffd700; border: 1px solid rgba(255, 215, 0, 0.3); }

/* BADGES - MM2 */
.badge-godly { background: rgba(255, 215, 0, 0.15); color: #ffd700; border: 1px solid rgba(255, 215, 0, 0.4); text-shadow: 0 0 8px rgba(255, 215, 0, 0.3); }
.badge-ancient { background: rgba(0, 240, 255, 0.15); color: #00f0ff; border: 1px solid rgba(0, 240, 255, 0.3); }
.badge-vintage { background: rgba(212, 175, 55, 0.15); color: #d4af37; border: 1px solid rgba(212, 175, 55, 0.3); }
.badge-legendary { background: rgba(255, 71, 87, 0.15); color: #ff4757; border: 1px solid rgba(255, 71, 87, 0.3); }
.badge-rare { background: rgba(124, 92, 255, 0.15); color: var(--primary); border: 1px solid rgba(124, 92, 255, 0.3); }
.badge-uncommon { background: rgba(0, 230, 118, 0.15); color: #00e676; border: 1px solid rgba(0, 230, 118, 0.3); }
.badge-common { background: rgba(139, 139, 158, 0.15); color: #8b8b9e; border: 1px solid rgba(139, 139, 158, 0.3); }

/* CALCULATOR GAME TAG */
.calc-game-tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 6px; font-size: 10px; font-weight: 800; letter-spacing: 0.5px; margin-right: 6px; vertical-align: middle; }
.calc-game-tag.am-tag { background: rgba(124, 92, 255, 0.15); color: #b09cff; border: 1px solid rgba(124, 92, 255, 0.3); }
.calc-game-tag.mm2-tag { background: rgba(255, 71, 87, 0.15); color: #ff6b7a; border: 1px solid rgba(255, 71, 87, 0.3); }

/* LOAD MORE */
.load-more-area { display: flex; justify-content: center; padding: 30px 0 10px; }
.load-more-btn { background: var(--bg-panel); border: 1px solid var(--border-color); color: var(--text-muted); padding: 14px 40px; border-radius: 30px; cursor: pointer; font-weight: 700; font-size: 15px; transition: var(--transition); display: flex; align-items: center; gap: 10px; }
.load-more-btn:hover { border-color: var(--primary); color: #fff; background: var(--primary-glow); box-shadow: 0 0 20px var(--primary-glow); }

/* CHART MODAL - REDESIGNED */
.chart-modal-content { max-width: 550px; }
.chart-modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; gap: 15px; }
.chart-modal-badge { display: inline-block; margin-bottom: 6px; }
.chart-modal-name { font-size: 22px; font-weight: 800; color: #fff; }
.chart-modal-price { font-size: 28px; font-weight: 800; font-family: 'Space Mono', monospace; color: var(--primary); text-shadow: 0 0 15px var(--primary-glow); white-space: nowrap; }
.chart-modal-trend { font-size: 13px; font-weight: 600; margin-bottom: 15px; display: flex; align-items: center; gap: 6px; }
.chart-modal-trend.trend-up { color: var(--trend-up); }
.chart-modal-trend.trend-down { color: var(--trend-down); }
.chart-modal-trend.trend-stable { color: var(--trend-stable); }

/* MODALS */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.88); backdrop-filter: blur(4px); display: flex; justify-content: center; align-items: center; z-index: 2000; opacity: 0; pointer-events: none; transition: 0.3s; }
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal-content { background: rgba(15, 15, 20, 0.95); border: 1px solid var(--border-color); box-shadow: 0 0 40px rgba(124, 92, 255, 0.15); border-radius: 20px; width: 90%; max-width: 700px; padding: 30px; position: relative; transform: translateY(20px); transition: 0.3s; max-height: 90vh; overflow-y: auto; }
.modal-overlay.active .modal-content { transform: translateY(0); }
.modal-close { position: absolute; top: 20px; right: 20px; background: none; border: none; color: var(--text-muted); font-size: 20px; cursor: pointer; transition: 0.2s; z-index: 10; }
.modal-close:hover { color: #fff; transform: rotate(90deg); }

#receiptPreviewModal .modal-content { background: transparent !important; border: none !important; box-shadow: none !important; padding: 0 !important; overflow: visible; display: flex; align-items: center; justify-content: center; }
#receiptPreviewModal .modal-close { top: -40px; right: 0; color: #fff; font-size: 24px; }
#fullReceiptImg { max-height: 85vh; width: auto; max-width: 100%; border-radius: 12px; }

.chart-container { width: 100%; height: 260px; margin-top: 10px; }
.vip-content { text-align: center; max-width: 450px; }
.vip-perks { margin: 25px 0; text-align: left; background: rgba(0,0,0,0.3); padding: 20px; border-radius: 12px; border: 1px solid var(--border-color); }
.perk { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; font-size: 16px; font-weight: 500; }
.perk i { color: #00e676; font-size: 20px; width: 25px; text-align: center; }
.perk:last-child { margin-bottom: 0; }
.contact-buttons { display: flex; gap: 15px; }
.discord-btn, .telegram-btn { flex: 1; border: none; padding: 14px; border-radius: 10px; color: white; font-weight: 700; font-size: 16px; cursor: pointer; display: flex; justify-content: center; align-items: center; gap: 8px; transition: 0.2s; }
.discord-btn { background: #5865F2; } .discord-btn:hover { background: #4752C4; transform: translateY(-3px); }
.telegram-btn { background: #229ED9; } .telegram-btn:hover { background: #1C88BA; transform: translateY(-3px); }

/* PROFILE */
.profile-header { display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,0.02); border: 1px solid var(--border-color); padding: 30px; border-radius: 24px; margin-bottom: 40px; }
.avatar-wrapper { position: relative; width: 100px; height: 100px; }
.profile-big-avatar { width: 100%; height: 100%; border-radius: 20px; object-fit: cover; border: 3px solid var(--primary); box-shadow: 0 0 25px var(--primary-glow); }
.edit-avatar-badge { position: absolute; bottom: -10px; right: -10px; background: var(--bg-base); border: 1px solid var(--primary); color: var(--primary); width: 35px; height: 35px; border-radius: 50%; cursor: pointer; transition: 0.2s; }
.edit-avatar-badge:hover { background: var(--primary); color: #fff; }
.profile-info { flex: 1; margin-left: 30px; }
.profile-username { font-size: 28px; color: #fff; margin-bottom: 5px; }
.vip-badge-pro { display: inline-block; background: rgba(255, 215, 0, 0.15); color: #ffd700; padding: 6px 12px; border-radius: 8px; font-size: 13px; font-weight: 800; border: 1px solid rgba(255, 215, 0, 0.4); }
.change-pw-btn { background: rgba(255,255,255,0.05); border: 1px solid var(--border-color); color: #fff; padding: 12px 20px; border-radius: 12px; font-weight: 600; cursor: pointer; transition: 0.2s; }
.change-pw-btn:hover { background: var(--primary-glow); border-color: var(--primary); }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.stat-card { background: var(--bg-panel); border: 1px solid var(--border-color); padding: 25px; border-radius: 20px; transition: 0.3s; }
.stat-card:hover { transform: translateY(-5px); border-color: rgba(124,92,255,0.3); }
.full-width-card { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 10px; }
.stat-title { color: var(--text-muted); font-size: 14px; margin-bottom: 10px; font-weight: 600; text-transform: uppercase; }
.stat-value { font-size: 28px; color: #fff; font-weight: 800; margin-bottom: 10px; }

/* LEDGER */
.ledger-container { background: var(--bg-panel); border: 1px solid var(--border-color); border-radius: 20px; padding: 25px; margin-top: 30px; }
.ledger-header { display: flex; justify-content: space-between; border-bottom: 1px solid var(--border-color); padding-bottom: 15px; margin-bottom: 15px; font-weight: 800; color: var(--text-muted); font-size: 12px; letter-spacing: 1px; }
.ledger-item { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.ledger-item:last-child { border-bottom: none; }
.ledger-date { font-size: 13px; color: var(--text-muted); width: 120px; }
.ledger-user { font-size: 14px; font-weight: 800; color: var(--primary); width: 100px; text-shadow: 0 0 10px var(--primary-glow); }
.ledger-details { flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 15px; }
.ledger-receipts { display: flex; gap: 5px; width: 100px; justify-content: center; }
.ledger-total { font-family: 'Space Mono', monospace; font-size: 16px; font-weight: bold; color: var(--trend-up); width: 100px; text-align: right; }
.copy-btn { background: rgba(124, 92, 255, 0.1); border: 1px solid rgba(124, 92, 255, 0.3); color: var(--primary); padding: 6px 12px; border-radius: 8px; cursor: pointer; font-size: 12px; font-weight: 800; display: flex; align-items: center; gap: 5px; transition: 0.2s; white-space: nowrap; }
.copy-btn:hover { background: var(--primary); color: #fff; }
.receipt-gallery { display: flex; gap: 8px; cursor: pointer; }
.receipt-thumb-wrap { position: relative; width: 40px; height: 50px; border-radius: 6px; overflow: hidden; border: 1px solid var(--border-color); transition: 0.2s; }
.receipt-thumb-wrap:hover { border-color: var(--primary); transform: translateY(-2px); }
.receipt-thumb { width: 100%; height: 100%; object-fit: cover; }
.receipt-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); display: flex; justify-content: center; align-items: center; font-weight: 800; font-size: 14px; color: #fff; }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(15,15,20,0.8); border: 1px solid var(--border-color); color: #fff; width: 40px; height: 40px; border-radius: 50%; font-size: 18px; cursor: pointer; transition: 0.2s; display: none; z-index: 10; align-items: center; justify-content: center; }
.carousel-btn:hover { background: var(--primary); border-color: var(--primary); }
.carousel-btn.prev { left: -50px; } .carousel-btn.next { right: -50px; }

/* ADMIN */
.admin-table { width: 100%; border-collapse: collapse; margin-top: 15px; }
.admin-table th, .admin-table td { padding: 15px 10px; text-align: left; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 14px; }
.admin-table th { color: var(--gold); font-weight: 800; text-transform: uppercase; font-size: 12px; }

/* FORMS */
.form-group { margin-bottom: 15px; text-align: left; }
.form-input { width: 100%; background: rgba(0,0,0,0.5); border: 1px solid var(--border-color); padding: 14px; border-radius: 10px; color: #fff; font-size: 16px; outline: none; transition: 0.2s; }
.form-input:focus { border-color: var(--primary); box-shadow: 0 0 10px rgba(124,92,255,0.1); }
.save-btn { width: 100%; background: var(--primary); color: #fff; border: none; padding: 16px; border-radius: 10px; font-weight: 800; font-size: 16px; cursor: pointer; transition: 0.2s; letter-spacing: 1px; }
.save-btn:hover { box-shadow: 0 0 20px var(--primary-glow); }
.avatar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-top: 20px; }
.avatar-option { width: 100%; border-radius: 15px; cursor: pointer; border: 3px solid transparent; opacity: 0.5; transition: 0.2s; }
.avatar-option:hover { opacity: 1; }
.avatar-option.selected { border-color: var(--primary); opacity: 1; box-shadow: 0 0 15px var(--primary-glow); }
.error-msg { background: rgba(255, 23, 68, 0.1); color: #ff1744; padding: 15px; border-radius: 10px; margin-bottom: 20px; text-align: center; font-weight: 600; border: 1px solid rgba(255, 23, 68, 0.3); }
.success-msg { background: rgba(0, 230, 118, 0.1); color: #00e676; padding: 15px; border-radius: 10px; margin-bottom: 20px; text-align: center; font-weight: 600; border: 1px solid rgba(0, 230, 118, 0.3); }

/* CALCULATOR */
.calc-list { display: flex; flex-direction: column; gap: 10px; }
.calc-item { display: flex; justify-content: space-between; align-items: center; background: var(--bg-panel); border: 1px solid var(--border-color); padding: 15px 20px; border-radius: 12px; transition: 0.2s; }
.calc-item.active { border-color: var(--primary); background: var(--primary-glow); }
.calc-item-info { min-width: 0; flex: 1; }
.calc-item-name { font-weight: 600; font-size: 15px; color: #fff; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calc-item-price { color: var(--text-muted); font-size: 13px; font-weight: 600; }
.calc-controls { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.qty-btn { width: 35px; height: 35px; border-radius: 8px; border: 1px solid transparent; background: rgba(255,255,255,0.05); color: #fff; font-size: 18px; font-weight: bold; cursor: pointer; transition: 0.2s; display: flex; align-items: center; justify-content: center; }
.qty-btn:hover { background: var(--primary-glow); border-color: var(--primary); }
.qty-input { width: 50px; height: 35px; background: rgba(0,0,0,0.5); border: 1px solid var(--border-color); border-radius: 8px; color: #fff; text-align: center; font-size: 16px; font-weight: bold; outline: none; }
.qty-input::-webkit-outer-spin-button, .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc-bottom-bar { position: fixed; bottom: 0; left: 0; width: 100%; background: rgba(10, 10, 14, 0.95); backdrop-filter: blur(12px); border-top: 1px solid var(--primary); padding: 20px 40px; display: flex; justify-content: space-between; align-items: center; z-index: 100; box-shadow: 0 -10px 40px var(--primary-glow); }
.calc-total-text { font-size: 16px; font-weight: 600; color: var(--text-muted); letter-spacing: 1px; }
.calc-total-value { font-size: 32px; font-weight: 800; color: var(--primary); text-shadow: 0 0 20px var(--primary-glow); }

.pet-card { 
    /* ... diğer kuralların ... */
    cursor: pointer; 
}

/* RESPONSIVE */
@media (max-width: 900px) {
    header { flex-direction: column; gap: 15px; padding: 15px 20px; }
    .search-container { position: relative; left: 0; transform: none; max-width: 100%; order: 3; margin: 0; width: 100%; }
    .header-controls { width: 100%; justify-content: space-between; order: 2; }
    .logo-area { order: 1; width: auto; }
    .container { padding: 0 15px 40px 15px; }
    .contact-buttons { flex-direction: column; }
    .profile-header { flex-direction: column; text-align: center; gap: 20px; padding: 20px; }
    .profile-info { margin-left: 0; }
    .change-pw-btn { width: 100%; }
    .calc-bottom-bar { padding: 15px 20px; flex-direction: column; gap: 5px; }
    .calc-total-value { font-size: 28px; }
    .ledger-header, .ledger-item { flex-wrap: wrap; gap: 10px; }
    .ledger-user { width: auto; order: 1; }
    .ledger-details { width: 100%; order: 3; justify-content: center; margin: 10px 0; padding: 0; }
    .ledger-receipts { width: 100%; order: 4; margin-bottom: 10px; }
    .ledger-total { width: auto; order: 2; }
    .admin-table th, .admin-table td { padding: 10px 5px; font-size: 12px; }
    .admin-table .form-input { padding: 5px; width: 60px !important; }
    .carousel-btn.prev { left: -10px; } .carousel-btn.next { right: -10px; }
    .game-switcher { gap: 8px; }
    .game-tab { padding: 8px 18px; font-size: 14px; }
    .pet-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
    .chart-modal-header { flex-direction: column; align-items: flex-start; }
    .chart-modal-price { font-size: 24px; }
}

@media (max-width: 480px) {
    .pet-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .pet-card { padding: 16px; min-height: 130px; }
    .pet-name { font-size: 14px; margin-bottom: 12px; }
    .price-value { font-size: 18px; }
    .mm2-img-wrapper { height: 65px; }
    .mm2-item-img { max-height: 60px; }
    .hero-title { font-size: 28px; }
}