* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    color: #fff;
    overflow-x: hidden;
}

.game-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    text-align: center;
    padding: 20px 0;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

header h1 {
    font-size: 2.5rem;
    background: linear-gradient(45deg, #00d9ff, #00ff88, #ff00d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 217, 255, 0.3);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { filter: drop-shadow(0 0 5px rgba(0, 217, 255, 0.5)); }
    to { filter: drop-shadow(0 0 20px rgba(0, 255, 136, 0.5)); }
}

.currency-bar {
    margin-top: 10px;
    font-size: 1rem;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.diamonds-header {
    color: #00d9ff;
    font-weight: bold;
}

.prestige-gems {
    color: #ffd700;
}

.soul-gems-header {
    color: #bf5fff;
}

.prestige-mult {
    color: #ff9500;
}

.prestige-info {
    margin-top: 10px;
    font-size: 1rem;
    color: #ffd700;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.soul-gems-header {
    color: #bf5fff;
}

.prestige-mult {
    color: #ff9500;
}

.player-info {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #888;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.skill-points {
    color: #00ff88;
}

.main-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px 0;
}

.stats-panel {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.gem-display {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 2rem;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 30px;
    border-radius: 15px;
    border: 2px solid rgba(0, 217, 255, 0.3);
}

.gem-icon {
    font-size: 2.5rem;
    animation: bounce 1s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.gem-count {
    color: #00d9ff;
    min-width: 150px;
}

.rate-display {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 20px;
    border-radius: 10px;
    color: #888;
}

.mine-area {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
    position: relative;
}

.mine-button {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 4px solid #00d9ff;
    background: linear-gradient(145deg, #1e3a5f, #0d2137);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: all 0.1s ease;
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.3),
                inset 0 0 30px rgba(0, 217, 255, 0.1);
}

.mine-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 50px rgba(0, 217, 255, 0.5),
                inset 0 0 50px rgba(0, 217, 255, 0.2);
}

.mine-button:active {
    transform: scale(0.95);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.3),
                inset 0 0 60px rgba(0, 217, 255, 0.3);
}

.mine-icon {
    font-size: 4rem;
}

.mine-text {
    font-size: 1.2rem;
    font-weight: bold;
    color: #00d9ff;
    letter-spacing: 3px;
}

.click-particles {
    position: absolute;
    pointer-events: none;
}

.particle {
    position: absolute;
    font-size: 1.5rem;
    animation: particleFly 1s ease-out forwards;
    pointer-events: none;
}

@keyframes particleFly {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-100px) scale(0.5);
    }
}

.tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tab {
    padding: 12px 25px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: #888;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.tab:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.tab.active {
    background: linear-gradient(145deg, #00d9ff, #0088aa);
    color: #fff;
    border-color: #00d9ff;
}

.tab-content {
    display: none;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    min-height: 300px;
}

.tab-content.active {
    display: block;
}

.tab-content h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #00d9ff;
}

.upgrade-list, .building-list {
    display: grid;
    gap: 15px;
}

.upgrade-item, .building-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px 20px;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.upgrade-item:hover, .building-item:hover {
    border-color: rgba(0, 217, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.upgrade-item.purchased {
    opacity: 0.5;
    border-color: #00ff88;
}

.item-info {
    flex: 1;
}

.item-name {
    font-weight: bold;
    font-size: 1.1rem;
    color: #fff;
}

.item-desc {
    color: #888;
    font-size: 0.9rem;
    margin-top: 5px;
}

.item-owned {
    color: #00ff88;
    font-size: 0.9rem;
}

.buy-button {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(145deg, #00d9ff, #0088aa);
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.buy-button:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.5);
}

.buy-button:disabled {
    background: #333;
    color: #666;
    cursor: not-allowed;
}

.prestige-panel {
    text-align: center;
}

.prestige-panel p {
    margin: 10px 0;
    color: #aaa;
}

.prestige-preview {
    background: rgba(255, 215, 0, 0.1);
    padding: 20px;
    border-radius: 15px;
    margin: 20px 0;
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.prestige-preview strong {
    color: #ffd700;
    font-size: 1.5rem;
}

.prestige-formula {
    font-size: 0.8rem;
    color: #666;
}

.prestige-button {
    padding: 20px 50px;
    font-size: 1.3rem;
    border: none;
    border-radius: 15px;
    background: linear-gradient(145deg, #ffd700, #ff9500);
    color: #1a1a2e;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 20px 0;
}

.prestige-button:hover:not(:disabled) {
    transform: scale(1.1);
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.5);
}

.prestige-button:disabled {
    background: #333;
    color: #666;
    cursor: not-allowed;
}

.prestige-upgrades {
    margin-top: 30px;
    display: grid;
    gap: 15px;
}

.prestige-upgrade {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 215, 0, 0.1);
    padding: 15px 20px;
    border-radius: 10px;
    border: 2px solid rgba(255, 215, 0, 0.2);
}

.prestige-upgrade.purchased {
    border-color: #00ff88;
    opacity: 0.6;
}

.achievement-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.achievement {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.achievement.unlocked {
    border-color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
}

.achievement.locked {
    opacity: 0.5;
    filter: grayscale(100%);
}

.achievement-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.achievement-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.achievement-desc {
    font-size: 0.8rem;
    color: #888;
}

footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
}

.save-button, .reset-button {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.save-button {
    background: #00ff88;
    color: #1a1a2e;
}

.reset-button {
    background: #ff4444;
    color: #fff;
}

.save-button:hover, .reset-button:hover {
    transform: scale(1.05);
}

.auto-save {
    color: #666;
    font-size: 0.9rem;
}

.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

@keyframes slideIn {
    from { transform: translateX(100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
    to { opacity: 0; transform: translateX(100px); }
}

.achievement-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(145deg, #2a2a4e, #1a1a2e);
    border: 3px solid #ffd700;
    border-radius: 20px;
    padding: 30px 50px;
    text-align: center;
    z-index: 1001;
    display: none;
    animation: achievementPop 0.5s ease;
}

.achievement-popup.show {
    display: block;
}

@keyframes achievementPop {
    0% { transform: translate(-50%, -50%) scale(0); }
    50% { transform: translate(-50%, -50%) scale(1.2); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

.achievement-popup h3 {
    color: #ffd700;
    margin-bottom: 10px;
}

.number-format {
    font-variant-numeric: tabular-nums;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 217, 255, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 217, 255, 0.8);
}

/* Tab subtitle */
.tab-subtitle {
    text-align: center;
    color: #888;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* ================================
   SKILL TREES
   ================================ */
.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 10px;
    margin-bottom: 20px;
    border: 2px solid rgba(0, 255, 136, 0.3);
}

.skill-points {
    font-size: 1.3rem;
    color: #00ff88;
    font-weight: bold;
}

.player-level {
    color: #ffd700;
}

.skill-trees {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.skill-tree {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    border: 2px solid var(--tree-color, #fff);
}

.skill-tree h3 {
    text-align: center;
    color: var(--tree-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.skills {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skill-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 15px;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0.5;
}

.skill-item.available {
    opacity: 1;
    border-color: var(--tree-color);
}

.skill-item.available:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.3);
}

.skill-item.maxed {
    opacity: 1;
    border-color: #00ff88;
    background: rgba(0, 255, 136, 0.1);
}

.skill-item.tier-2 { margin-left: 20px; }
.skill-item.tier-3 { margin-left: 40px; }
.skill-item.tier-4 { margin-left: 60px; }

.skill-name {
    font-weight: bold;
    flex: 1;
}

.skill-level {
    color: #00ff88;
    margin: 0 10px;
}

.skill-cost {
    color: #ffd700;
    font-size: 0.9rem;
}

/* ================================
   ARTIFACTS
   ================================ */
.artifact-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(191, 95, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 20px;
    border: 2px solid rgba(191, 95, 255, 0.3);
}

.soul-gems {
    font-size: 1.3rem;
    color: #bf5fff;
    font-weight: bold;
}

.equipped-count {
    color: #ffd700;
}

.equipped-artifacts {
    margin-bottom: 30px;
}

.equipped-artifacts h3,
.artifact-shop h3 {
    color: #bf5fff;
    margin-bottom: 15px;
    text-align: center;
}

.artifact-slots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.artifact-slot {
    background: rgba(255, 255, 255, 0.05);
    border: 3px dashed rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.artifact-slot.filled {
    border-style: solid;
}

.artifact-slot:hover {
    border-color: #bf5fff;
}

.empty-slot {
    color: #666;
    font-style: italic;
}

.artifact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.artifact-item {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.artifact-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.artifact-item.owned {
    border-color: #00ff88;
}

.artifact-item.equipped {
    background: rgba(0, 255, 136, 0.15);
    border-color: #00ff88;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

/* Artifact rarities */
.rarity-common { border-color: #888; }
.rarity-common .artifact-name { color: #ccc; }

.rarity-uncommon { border-color: #00ff88; }
.rarity-uncommon .artifact-name { color: #00ff88; }

.rarity-rare { border-color: #00d9ff; }
.rarity-rare .artifact-name { color: #00d9ff; }

.rarity-legendary { 
    border-color: #ffd700; 
    background: rgba(255, 215, 0, 0.1);
}
.rarity-legendary .artifact-name { 
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.artifact-name {
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 5px;
}

.artifact-desc {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.artifact-cost {
    color: #bf5fff;
    font-weight: bold;
}

/* ================================
   TRADE-OFFS
   ================================ */
#tradeoffContainer h3 {
    text-align: center;
    color: #ff9500;
    margin-bottom: 10px;
}

.tradeoff-warning {
    text-align: center;
    color: #ff4444;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.tradeoff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.tradeoff-item {
    background: linear-gradient(145deg, rgba(255, 149, 0, 0.1), rgba(255, 68, 68, 0.1));
    border: 2px solid rgba(255, 149, 0, 0.3);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tradeoff-item:hover:not(.active) {
    transform: scale(1.02);
    border-color: #ff9500;
    box-shadow: 0 0 25px rgba(255, 149, 0, 0.3);
}

.tradeoff-item.active {
    border-color: #ff4444;
    background: linear-gradient(145deg, rgba(255, 68, 68, 0.2), rgba(255, 149, 0, 0.2));
    cursor: default;
}

.tradeoff-name {
    font-weight: bold;
    font-size: 1.1rem;
    color: #ff9500;
    margin-bottom: 8px;
}

.tradeoff-desc {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.tradeoff-cost {
    color: #ffd700;
    font-weight: bold;
}

.tradeoff-item.active .tradeoff-cost {
    color: #00ff88;
}

/* ================================
   NOTIFICATIONS
   ================================ */
.notification {
    background: rgba(0, 255, 136, 0.9);
    color: #1a1a2e;
    padding: 15px 25px;
    border-radius: 10px;
    margin-bottom: 10px;
    animation: slideIn 0.3s ease, fadeOut 0.3s ease 2.7s forwards;
    font-weight: bold;
}

.notification.warning {
    background: rgba(255, 149, 0, 0.9);
}

.notification.crit {
    background: linear-gradient(45deg, #ff4444, #ff9500);
    color: white;
    font-size: 1.1rem;
}

.notification.jackpot {
    background: linear-gradient(45deg, #ffd700, #ff9500);
    animation: slideIn 0.3s ease, shake 0.5s ease, fadeOut 0.3s ease 2.7s forwards;
}

.notification.levelup {
    background: linear-gradient(45deg, #00d9ff, #00ff88);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Special particle for crits */
.particle.special {
    font-size: 2rem !important;
    text-shadow: 0 0 10px currentColor;
}

/* ================================
   SHOP STYLES
   ================================ */
.shop-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 15px 20px;
    background: linear-gradient(145deg, rgba(0, 217, 255, 0.1), rgba(191, 95, 255, 0.1));
    border-radius: 15px;
    margin-bottom: 20px;
    border: 2px solid rgba(0, 217, 255, 0.3);
    flex-wrap: wrap;
}

.diamond-balance {
    font-size: 1.4rem;
    color: #00d9ff;
    font-weight: bold;
}

.vip-badge {
    background: linear-gradient(45deg, #ffd700, #ff9500);
    color: #1a1a2e;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    animation: pulse 2s infinite;
}

.test-badge {
    background: #ff4444;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.shop-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.shop-section h3 {
    text-align: center;
    color: #00d9ff;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.ads-removed-banner {
    background: linear-gradient(145deg, rgba(0, 255, 136, 0.2), rgba(0, 217, 255, 0.2));
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    color: #00ff88;
    font-weight: bold;
    margin-bottom: 20px;
    border: 2px solid rgba(0, 255, 136, 0.3);
}

/* Ad Grid */
.ad-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
}

.ad-item {
    background: linear-gradient(145deg, rgba(255, 149, 0, 0.1), rgba(255, 215, 0, 0.1));
    border: 2px solid rgba(255, 149, 0, 0.3);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ad-item:hover:not(.disabled) {
    transform: translateY(-3px);
    border-color: #ffd700;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.3);
}

.ad-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ad-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.ad-name {
    font-weight: bold;
    color: #ffd700;
    margin-bottom: 5px;
}

.ad-desc {
    font-size: 0.85rem;
    color: #aaa;
    margin-bottom: 8px;
}

.ad-limit {
    font-size: 0.8rem;
    color: #888;
}

/* Time Skip Grid */
.timeskip-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.timeskip-btn {
    background: linear-gradient(145deg, #00d9ff, #0088aa);
    border: none;
    border-radius: 10px;
    padding: 15px 10px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.timeskip-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.5);
}

.timeskip-btn span {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 5px;
}

/* IAP Grid */
.iap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.iap-grid.special {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.iap-item {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(0, 217, 255, 0.3);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.iap-item:hover:not(.owned) {
    transform: translateY(-3px);
    border-color: #00d9ff;
    box-shadow: 0 5px 20px rgba(0, 217, 255, 0.3);
}

.iap-item.special {
    background: linear-gradient(145deg, rgba(255, 215, 0, 0.1), rgba(255, 149, 0, 0.1));
    border-color: rgba(255, 215, 0, 0.3);
}

.iap-item.special:hover:not(.owned) {
    border-color: #ffd700;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.3);
}

.iap-item.owned {
    opacity: 0.6;
    cursor: default;
    border-color: #00ff88;
}

.iap-item.best-value {
    border-color: #ff00d4;
    background: linear-gradient(145deg, rgba(255, 0, 212, 0.1), rgba(255, 149, 0, 0.1));
}

.best-value-tag {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(45deg, #ff00d4, #ff9500);
    color: white;
    padding: 3px 12px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: bold;
}

.iap-name {
    font-weight: bold;
    color: #fff;
    margin-bottom: 5px;
}

.iap-bonus {
    color: #00ff88;
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.iap-desc {
    color: #aaa;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.iap-price {
    color: #00d9ff;
    font-weight: bold;
    font-size: 1.1rem;
}

.iap-item.owned .iap-price {
    color: #00ff88;
}

/* VIP Section */
.vip-section {
    background: linear-gradient(145deg, rgba(255, 215, 0, 0.1), rgba(255, 149, 0, 0.05));
    border-color: rgba(255, 215, 0, 0.3);
}

.vip-benefits {
    text-align: center;
}

.vip-benefits p {
    color: #ffd700;
    margin: 5px 0;
}

.vip-claim-btn {
    background: linear-gradient(145deg, #ffd700, #ff9500);
    border: none;
    padding: 12px 30px;
    border-radius: 10px;
    color: #1a1a2e;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.vip-claim-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

/* Premium Artifacts in Shop */
.premium-artifact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

/* Mythic Rarity */
.rarity-mythic {
    border-color: #ff00d4 !important;
    background: linear-gradient(145deg, rgba(255, 0, 212, 0.15), rgba(191, 95, 255, 0.1)) !important;
    position: relative;
    overflow: hidden;
}

.rarity-mythic::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 0, 212, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.rarity-mythic .artifact-name {
    color: #ff00d4 !important;
    text-shadow: 0 0 15px rgba(255, 0, 212, 0.5);
}

/* Test Mode Button */
.test-mode-button {
    padding: 10px 20px;
    border: 2px solid #ff9500;
    border-radius: 8px;
    background: transparent;
    color: #ff9500;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.test-mode-button:hover {
    background: rgba(255, 149, 0, 0.2);
}

/* Responsive */
@media (max-width: 600px) {
    header h1 {
        font-size: 1.8rem;
    }

    .gem-display {
        font-size: 1.5rem;
        padding: 10px 20px;
    }

    .mine-button {
        width: 140px;
        height: 140px;
    }

    .mine-icon {
        font-size: 3rem;
    }

    .tab {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .timeskip-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .iap-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ad-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ============================================
   AUTH MODAL STYLES
   ============================================ */

.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.auth-overlay.hidden {
    display: none;
}

.auth-modal {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid rgba(0, 217, 255, 0.3);
    border-radius: 20px;
    padding: 40px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 217, 255, 0.1);
}

.auth-modal h2 {
    font-size: 2rem;
    background: linear-gradient(45deg, #00d9ff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.auth-subtitle {
    color: #888;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.auth-tab {
    flex: 1;
    padding: 12px;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: #888;
    cursor: pointer;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.auth-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.auth-tab.active {
    background: linear-gradient(135deg, #00d9ff 0%, #00ff88 100%);
    color: #000;
    font-weight: bold;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.auth-form.hidden {
    display: none;
}

.auth-form input {
    padding: 15px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.auth-form input:focus {
    outline: none;
    border-color: #00d9ff;
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.2);
}

.auth-form input::placeholder {
    color: #666;
}

.auth-button {
    padding: 15px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #00d9ff 0%, #00ff88 100%);
    color: #000;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 217, 255, 0.3);
}

.auth-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.auth-error {
    color: #ff4444;
    font-size: 0.9rem;
    min-height: 20px;
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.auth-divider span {
    padding: 0 15px;
    color: #666;
    font-size: 0.9rem;
}

.auth-guest-button {
    width: 100%;
    padding: 12px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: transparent;
    color: #888;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-guest-button:hover {
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.auth-guest-note {
    color: #555;
    font-size: 0.8rem;
    margin-top: 10px;
}

/* User info in header */
.user-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 8px;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    display: inline-flex;
}

.username {
    color: #00d9ff;
    font-weight: bold;
}

.logout-button {
    padding: 5px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    background: transparent;
    color: #888;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logout-button:hover {
    border-color: #ff4444;
    color: #ff4444;
}

.user-info.hidden {
    display: none;
}

/* ============================================
   AD CONTAINER STYLES
   ============================================ */

/* Sidebar Display Ads */
.ad-sidebar {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 160px;
    min-height: 600px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 5px;
    z-index: 100;
}

.ad-sidebar-left {
    left: 10px;
}

.ad-sidebar-right {
    right: 10px;
}

.ad-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.ad-display-vertical {
    width: 160px;
    min-height: 600px;
}

/* Hide sidebar ads on smaller screens */
@media (max-width: 1400px) {
    .ad-sidebar {
        display: none;
    }
}

/* Rewarded Ad Modal */
.rewarded-ad-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(10px);
}

.rewarded-ad-modal.hidden {
    display: none;
}

.rewarded-ad-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid rgba(0, 217, 255, 0.3);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 500px;
    width: 90%;
}

.rewarded-ad-loading {
    padding: 40px;
}

.rewarded-ad-loading.hidden {
    display: none;
}

.rewarded-ad-loading p {
    margin-top: 20px;
    color: #888;
    font-size: 1.1rem;
}

.ad-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(0, 217, 255, 0.2);
    border-top-color: #00d9ff;
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.rewarded-ad-player {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rewarded-ad-player.hidden {
    display: none;
}

.rewarded-ad-close {
    margin-top: 20px;
    padding: 15px 30px;
    background: linear-gradient(135deg, #00d9ff, #00ff88);
    border: none;
    border-radius: 10px;
    color: #000;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rewarded-ad-close.hidden {
    display: none;
}

.rewarded-ad-close:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 217, 255, 0.4);
}

/* Ads Removed Banner in Shop */
.ads-removed-banner {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(0, 217, 255, 0.2));
    border: 2px solid rgba(0, 255, 136, 0.3);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    font-size: 1.2rem;
    color: #00ff88;
    margin-bottom: 20px;
}

/* Bottom Banner Ad */
.ad-banner-bottom {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 10px;
    margin-top: 20px;
    text-align: center;
}

.ad-display-banner {
    width: 100%;
    max-width: 728px;
    height: 90px;
    margin: 0 auto;
}

/* Hide bottom banner on very small screens if needed */
@media (max-height: 600px) {
    .ad-banner-bottom {
        display: none;
    }
}
