:root {
    --background-bg: #100b07;
    --element-bg: #2b1735;
    --table-border-color: #412350;
    --primary-color: #842cc2;
    --primary-light: #ec64f8;
    --text-primary: rgba(255, 255, 255, 0.9);
    --text-secondary: rgba(255, 255, 255, 0.6);
    --text-muted: rgba(255, 255, 255, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--background-bg);
    font-family: "Montserrat", sans-serif;
    color: var(--text-primary);
    min-height: 100vh;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding: 3rem 1rem 2rem;
    background: linear-gradient(180deg, rgba(132, 44, 194, 0.1) 0%, transparent 100%);
    border-radius: 20px;
}

.logo-container {
    margin-bottom: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

.logo-container img {
    max-width: 400px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(132, 44, 194, 0.5));
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

.store-heading {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(to right, var(--primary-color), var(--primary-light));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: 0.08rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 40px rgba(236, 100, 248, 0.3);
}

.store-subheading {
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.05rem;
}

.controls {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 2rem 2.5rem;
    border-radius: 10px;
    background-color: var(--element-bg);
    box-shadow: 0px 0px 0px 2px rgba(255,255,255,0.03) inset, 
                0 10px 40px rgba(132, 44, 194, 0.2);
}

@media (max-width: 1200px) {
    .controls {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .controls {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }
}

.btn-admin-link {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: white;
    border: none;
    padding: 0.7rem 1.8rem;
    border-radius: 10px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 5px 20px rgba(220, 38, 38, 0.3);
    text-decoration: none;
}

.btn-admin-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(239, 68, 68, 0.5);
    color: white;
}

.btn-admin-link i {
    font-size: 1.2rem;
}

.btn-money-guide {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border: none;
    padding: 0.7rem 1.8rem;
    border-radius: 10px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 5px 20px rgba(132, 44, 194, 0.3);
}

.btn-money-guide:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(236, 100, 248, 0.5);
}

.btn-money-guide i {
    font-size: 1.2rem;
    animation: coin-spin 2s ease-in-out infinite;
}

@keyframes coin-spin {
    0%, 100% { transform: rotateY(0deg); }
    50% { transform: rotateY(180deg); }
}

.search-wrapper {
    position: relative;
}

.search-wrapper i {
    position: absolute;
    left: 1.3rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

input, select {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    color: var(--text-primary);
    border: none;
    padding: 0.7rem 1.3rem;
    padding-left: 3rem;
    font-weight: 500;
    border-radius: 10px;
    font-family: inherit;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.05) inset;
    transition: 0.3s;
}

select {
    padding-left: 1.3rem;
    cursor: pointer;
}

input:focus, select:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--primary-color) inset;
}

input::placeholder {
    color: var(--text-muted);
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.item-card {
    background-color: var(--element-bg);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0px 0px 0px 2px rgba(255,255,255,0.05) inset;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.item-card.popular {
    border: 2px solid var(--primary-light);
    box-shadow: 0px 0px 0px 2px rgba(236, 100, 248, 0.3) inset,
                0 0 20px rgba(236, 100, 248, 0.5);
}

.item-card.popular::after {
    content: "BELIEBT";
    position: absolute;
    top: 10px;
    right: -35px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 5px 40px;
    font-size: 0.7rem;
    font-weight: 700;
    transform: rotate(45deg);
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

.item-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.item-card:hover::before {
    opacity: 0.1;
}

.item-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0px 0px 0px 2px rgba(255,255,255,0.15) inset,
                0 15px 50px rgba(236, 100, 248, 0.4);
}

.item-card > * {
    position: relative;
    z-index: 1;
}

.item-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(236, 100, 248, 0.5));
    transition: all 0.3s ease;
}

.item-card:hover .item-icon {
    transform: scale(1.15) rotateY(180deg);
    filter: drop-shadow(0 0 30px rgba(236, 100, 248, 0.8));
}

.item-name {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.item-price {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.item-stack {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.item-stack-price {
    color: var(--primary-light);
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background-color: var(--element-bg);
    border-radius: 10px;
    padding: 3rem;
    max-width: 500px;
    width: 100%;
    position: relative;
    box-shadow: 0px 0px 0px 2px rgba(255,255,255,0.1) inset,
                0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 0.7rem 1rem;
    border-radius: 500rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: 0.3s;
    border: none;
}

.modal-close:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.1);
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: 0.5rem;
}

.modal-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.calculator-group {
    margin-bottom: 2rem;
}

.calculator-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.calculator-input {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    color: var(--text-primary);
    border: none;
    padding: 1rem 1.5rem;
    font-weight: 600;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1.2rem;
    text-align: center;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.05) inset;
}

.calculator-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--primary-color) inset;
}

.quick-amounts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-top: 1rem;
}

.quick-btn {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 2px solid rgba(255, 255, 255, 0.1);
    padding: 0.7rem;
    border-radius: 8px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-light);
    color: var(--primary-light);
    transform: scale(1.05);
}

.quick-btn:active {
    transform: scale(0.95);
}

.result-box {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    margin-top: 2rem;
    box-shadow: 0 10px 40px rgba(132, 44, 194, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 10px 40px rgba(132, 44, 194, 0.4);
    }
    50% {
        box-shadow: 0 10px 50px rgba(236, 100, 248, 0.6);
    }
}

.result-label {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.result-value {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: white;
}

.result-stacks {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.95rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .controls {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }

    .store-heading {
        font-size: 2rem;
    }

    .logo-container img {
        max-width: 300px;
    }

    .items-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        padding: 2rem;
    }

    .stats-section {
        grid-template-columns: 1fr;
    }

    .quick-amounts {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .btn-money-guide span {
        display: none;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-section.about,
    .footer-section.links,
    .footer-section.contact {
        grid-column: 1 / -1;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer .credit {
        text-align: center;
    }
}

/* Money Guide Modal */
.money-modal {
    max-width: 900px;
    max-height: 85vh;
    overflow-y: auto;
}

.money-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.method-card {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.method-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(132, 44, 194, 0.3);
}

.method-header {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1rem;
}

.method-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
}

.method-icon.copper {
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.4);
}

.method-icon.trial {
    background: linear-gradient(135deg, #7209b7, #b5179e);
    box-shadow: 0 5px 20px rgba(114, 9, 183, 0.4);
}

.method-icon.resin {
    background: linear-gradient(135deg, #06ffa5, #00d9ff);
    box-shadow: 0 5px 20px rgba(6, 255, 165, 0.4);
}

.method-info {
    flex: 1;
}

.method-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.method-difficulty {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.method-difficulty i {
    color: #ffd700;
    font-size: 0.8rem;
}

.method-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.method-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.stat-item i {
    color: var(--primary-light);
}

.earning {
    font-weight: 700;
    font-size: 1.1rem;
    color: #00ff88;
}

.method-requirements {
    margin-bottom: 1rem;
    padding: 1rem;
    background-color: rgba(132, 44, 194, 0.1);
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

.method-requirements strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.5rem;
}

.method-requirements ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.method-requirements li {
    color: var(--text-secondary);
    padding: 0.3rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.method-requirements li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--primary-light);
    font-weight: bold;
}

.method-tips {
    padding: 0.8rem 1rem;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 152, 0, 0.1));
    border-radius: 8px;
    border-left: 3px solid #ffc107;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.method-tips i {
    color: #ffc107;
    margin-right: 0.5rem;
}

.method-tips strong {
    color: var(--text-primary);
}

.money-footer {
    margin-top: 2rem;
    padding: 1rem;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.money-footer i {
    color: var(--primary-light);
    font-size: 1.2rem;
}

.money-footer p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
}

/* Feedback Button */
.feedback-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 5px 25px rgba(132, 44, 194, 0.5);
    transition: all 0.3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse-feedback 2s ease-in-out infinite;
}

.feedback-button:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 8px 35px rgba(236, 100, 248, 0.7);
}

@keyframes pulse-feedback {
    0%, 100% {
        box-shadow: 0 5px 25px rgba(132, 44, 194, 0.5);
    }
    50% {
        box-shadow: 0 5px 35px rgba(236, 100, 248, 0.8);
    }
}

textarea.calculator-input {
    font-family: inherit;
    line-height: 1.5;
}

/* Suggest Method Button */
.suggest-method-section {
    margin-top: 2rem;
    text-align: center;
}

.btn-suggest-method {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 10px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 5px 25px rgba(16, 185, 129, 0.4);
}

.btn-suggest-method:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 35px rgba(5, 150, 105, 0.6);
}

.btn-suggest-method i {
    font-size: 1.3rem;
}

/* Tips Section */
.tips-section {
    background-color: var(--element-bg);
    border-radius: 10px;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    box-shadow: 0px 0px 0px 2px rgba(255,255,255,0.05) inset,
                0 5px 20px rgba(132, 44, 194, 0.15);
    border-left: 4px solid var(--primary-light);
}

.tips-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-light);
}

.tips-header i {
    font-size: 1.3rem;
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.tips-text {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Stats Section */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background-color: var(--element-bg);
    border-radius: 10px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    box-shadow: 0px 0px 0px 2px rgba(255,255,255,0.05) inset,
                0 5px 20px rgba(132, 44, 194, 0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 0px 0px 2px rgba(255,255,255,0.1) inset,
                0 10px 30px rgba(132, 44, 194, 0.3);
}

.stat-card i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(236, 100, 248, 0.4));
}

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
}

.stat-value {
    font-family: 'Poppins', sans-serif;
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
}