body {
    background: linear-gradient(135deg, #0f1419 0%, #1a202c 50%, #2d3748 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #e2e8f0;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(26, 32, 44, 0.5);
}

::-webkit-scrollbar-thumb {
    background: rgba(74, 85, 104, 0.8);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 179, 237, 0.6);
}

.nav-header {
    background: rgba(15, 20, 25, 0.95);
    border-bottom: 1px solid #4a5568;
    backdrop-filter: blur(10px);
}

.nav-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #63b3ed;
    text-shadow: 0 0 10px rgba(99, 179, 237, 0.3);
}

.nav-user {
    color: #a0aec0;
    font-size: 0.9rem;
}

.nav-back {
    color: #63b3ed;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-back:hover {
    color: #90cdf4;
}

.btn-logout {
    background: linear-gradient(135deg, #e53e3e, #c53030);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(229, 62, 62, 0.3);
}

.btn-logout:hover {
    background: linear-gradient(135deg, #c53030, #9c2626);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(197, 48, 48, 0.4);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group.has-error .form-input,
.form-group.has-error .form-select {
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #cbd5e0;
    margin-bottom: 0.5rem;
}

.form-input,
.form-select {
    width: 100%;
    padding: 0.75rem;
    background: rgba(26, 32, 44, 0.8);
    border: 1px solid #4a5568;
    border-radius: 0.5rem;
    color: #e2e8f0;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: #63b3ed;
    box-shadow: 0 0 0 3px rgba(99, 179, 237, 0.1);
    background: rgba(26, 32, 44, 0.95);
}

.file-input {
    width: 100%;
    padding: 0.75rem;
    background: rgba(26, 32, 44, 0.8);
    border: 2px dashed #4a5568;
    border-radius: 0.5rem;
    color: #e2e8f0;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-input:hover {
    border-color: #63b3ed;
    background: rgba(26, 32, 44, 0.95);
}

.form-help {
    font-size: 0.75rem;
    color: #a0aec0;
    margin-top: 0.25rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 0.875rem;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

.btn-primary {
    background: linear-gradient(135deg, #4299e1, #3182ce);
    color: white;
    border: 1px solid rgba(66, 153, 225, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #3182ce, #2b6cb0);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #38b2ac, #319795);
    color: white;
    border: 1px solid rgba(56, 178, 172, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #319795, #2c7a7b);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(56, 178, 172, 0.4);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.preset-btn {
    background: rgba(74, 85, 104, 0.3);
    color: #a0aec0;
    border: 1px solid rgba(74, 85, 104, 0.5);
    padding: 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.preset-btn:hover {
    background: rgba(99, 179, 237, 0.2);
    border-color: #63b3ed;
    color: #63b3ed;
}

.preset-btn.small {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

.preset-btn.danger {
    background: rgba(229, 62, 62, 0.2);
    border-color: rgba(229, 62, 62, 0.5);
    color: #fc8181;
}

.preset-btn.danger:hover {
    background: rgba(229, 62, 62, 0.3);
    border-color: #e53e3e;
}

.admin-panel,
.item-creation-panel,
.bonuses-panel,
.prices-panel,
.import-panel {
    background: rgba(45, 55, 72, 0.9);
    padding: 2rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(74, 85, 104, 0.5);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.form-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(26, 32, 44, 0.5);
    border-radius: 0.75rem;
    border: 1px solid rgba(74, 85, 104, 0.3);
}

.section-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #63b3ed;
    margin-bottom: 1.5rem;
    text-align: center;
    text-shadow: 0 0 10px rgba(99, 179, 237, 0.3);
}

.form-section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #a0aec0;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(74, 85, 104, 0.5);
}

.admin-subtitle {
    font-size: 1.125rem;
    font-weight: 600;
    color: #cbd5e0;
    margin-bottom: 1rem;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
}

.login-card {
    background: rgba(45, 55, 72, 0.9);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(74, 85, 104, 0.5);
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 400px;
}

.login-title {
    font-size: 1.875rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 1.5rem;
    color: #63b3ed;
    text-shadow: 0 0 15px rgba(99, 179, 237, 0.4);
}

.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.dashboard-card {
    background: rgba(45, 55, 72, 0.9);
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid rgba(74, 85, 104, 0.5);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #63b3ed;
    margin-bottom: 1rem;
}

.card-description {
    color: #cbd5e0;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.user-info-panel {
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.1), rgba(56, 178, 172, 0.1));
    border: 1px solid rgba(72, 187, 120, 0.3);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.coin-balance,
.coin-balance-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.coin-balance-nav {
    background: rgba(72, 187, 120, 0.2);
    border: 1px solid rgba(72, 187, 120, 0.3);
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
}

.coin-label {
    font-size: 1.125rem;
    font-weight: 600;
    color: #cbd5e0;
}

.coin-amount {
    font-size: 1.5rem;
    font-weight: bold;
    color: #48bb78;
    text-shadow: 0 0 10px rgba(72, 187, 120, 0.3);
}

.coin-amount-nav {
    color: #48bb78;
    font-weight: 600;
    font-size: 0.875rem;
}

.admin-stats,
.bonus-summary,
.pricing-summary,
.import-status {
    margin-top: 2rem;
    background: rgba(45, 55, 72, 0.9);
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid rgba(74, 85, 104, 0.5);
}

.stats-title,
.summary-title,
.status-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #63b3ed;
    margin-bottom: 1.5rem;
    text-align: center;
}

.stats-grid,
.summary-grid,
.summary-stats,
.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
}

.stat-item,
.summary-item,
.status-item {
    text-align: center;
    background: rgba(26, 32, 44, 0.5);
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(74, 85, 104, 0.3);
}

.stat-number,
.summary-number,
.status-number {
    font-size: 2rem;
    font-weight: bold;
    color: #48bb78;
    text-shadow: 0 0 10px rgba(72, 187, 120, 0.3);
}

.summary-number,
.status-number {
    font-size: 1.5rem;
    color: #63b3ed;
}

.stat-label,
.summary-label,
.status-label {
    color: #a0aec0;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.summary-label,
.status-label {
    margin-top: 0.25rem;
}

.admin-tabs {
    display: flex;
    border-bottom: 1px solid rgba(74, 85, 104, 0.5);
    margin-bottom: 1.5rem;
}

.tab-btn {
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    color: #a0aec0;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: #63b3ed;
    border-bottom-color: #63b3ed;
}

.tab-btn:hover {
    color: #cbd5e0;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.item-search-container {
    position: relative;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(26, 32, 44, 0.95);
    border: 1px solid #4a5568;
    border-top: none;
    border-radius: 0 0 0.5rem 0.5rem;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.search-results.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-results::-webkit-scrollbar {
    width: 6px;
}

.search-results::-webkit-scrollbar-thumb {
    background: rgba(99, 179, 237, 0.5);
    border-radius: 3px;
}

.search-result-item {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    gap: 0.75rem;
    padding: 0.75rem;
    cursor: pointer;
    border-bottom: 1px solid rgba(74, 85, 104, 0.3);
    transition: background-color 0.2s ease;
    align-items: center;
}

.search-result-item:hover {
    background: rgba(99, 179, 237, 0.1);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item.no-results {
    cursor: default;
    color: #a0aec0;
    text-align: center;
    font-style: italic;
    grid-template-columns: 1fr;
}

.item-vnum {
    font-weight: 600;
    color: #63b3ed;
    font-size: 0.875rem;
    min-width: 60px;
}

.item-name {
    color: #e2e8f0;
    font-size: 0.875rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.item-size {
    color: #a0aec0;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    background: rgba(74, 85, 104, 0.3);
    border-radius: 0.25rem;
}

.selected-item {
    margin-top: 0.5rem;
}

.selected-item-info {
    background: rgba(72, 187, 120, 0.1);
    border: 1px solid rgba(72, 187, 120, 0.3);
    border-radius: 0.5rem;
    padding: 0.75rem;
    color: #68d391;
    font-size: 0.875rem;
}

.selected-item-card {
    display: flex;
    gap: 1rem;
    background: rgba(72, 187, 120, 0.05);
    border: 1px solid rgba(72, 187, 120, 0.3);
    border-radius: 0.75rem;
    padding: 1rem;
    align-items: center;
}

.selected-item-details {
    flex: 1;
    min-width: 0;
}

.selected-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    gap: 1rem;
}

.selected-item-header strong {
    color: #68d391;
    font-size: 1.125rem;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.selected-item-price {
    font-weight: 600;
    font-size: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
}

.selected-item-price.free {
    background: rgba(72, 187, 120, 0.2);
    color: #48bb78;
}

.selected-item-price.paid {
    background: rgba(236, 201, 75, 0.2);
    color: #ecc94b;
}

.selected-item-meta {
    display: flex;
    gap: 1rem;
    color: #a0aec0;
    font-size: 0.875rem;
}

.selected-item-meta span {
    background: rgba(26, 32, 44, 0.5);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    border: 1px solid rgba(74, 85, 104, 0.3);
}

.item-icon,
.selected-item-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 0.375rem;
    border: 1px solid rgba(74, 85, 104, 0.5);
    background: rgba(26, 32, 44, 0.8);
    padding: 2px;
}

.selected-item-icon {
    width: 64px;
    height: 64px;
    border-radius: 0.5rem;
    border: 1px solid rgba(72, 187, 120, 0.5);
    padding: 4px;
}

.item-icon-placeholder,
.selected-item-icon-placeholder {
    width: 48px;
    height: 48px;
    background: rgba(74, 85, 104, 0.3);
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #a0aec0;
}

.selected-item-icon-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 0.5rem;
    font-size: 1.5rem;
}

.item-icon-placeholder::before,
.selected-item-icon-placeholder::before {
    content: "?";
}

.bonuses-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: center;
}

.bonuses-controls input {
    flex: 1;
    max-width: 300px;
}

.bulk-controls {
    display: flex;
    gap: 0.75rem;
}

.bonus-types-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: start;
}

.bonus-type-card {
    background: rgba(26, 32, 44, 0.6);
    border-radius: 0.5rem;
    border: 1px solid rgba(74, 85, 104, 0.3);
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
}

.bonus-type-card.expanded {
    grid-column: 1 / -1;
}

.bonus-type-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.bonus-type-header:hover {
    background: rgba(74, 85, 104, 0.2);
}

.type-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.bonus-type-title {
    font-size: 1rem;
    font-weight: 600;
    color: #63b3ed;
    margin: 0;
}

.configured-count {
    color: #a0aec0;
    font-size: 0.75rem;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.toggle-icon {
    font-size: 1.25rem;
    color: #63b3ed;
    font-weight: bold;
    user-select: none;
}

/* .bonus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(45, 55, 72, 0.3);
    width: 100%;
} */

.bonus-grid.collapsed {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
}

.bonus-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    background: rgba(26, 32, 44, 0.5);
    border-radius: 0.25rem;
    border: 1px solid rgba(74, 85, 104, 0.2);
}

.bonus-label {
    flex: 1;
    font-size: 0.75rem;
    color: #cbd5e0;
    font-weight: 500;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bonus-input {
    width: 60px;
    padding: 0.25rem;
    background: rgba(26, 32, 44, 0.8);
    border: 1px solid #4a5568;
    border-radius: 0.25rem;
    color: #e2e8f0;
    font-size: 0.75rem;
    text-align: center;
    max-width: 120px;
}

.bonus-input:focus {
    outline: none;
    border-color: #63b3ed;
}

.bonus-row {
    display: grid;
    grid-template-columns: 2fr 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 0.75rem;
    background: rgba(45, 55, 72, 0.3);
    border-radius: 0.5rem;
    border: 1px solid rgba(74, 85, 104, 0.2);
}

.bonus-select {
    padding: 0.5rem;
    background: rgba(26, 32, 44, 0.8);
    border: 1px solid #4a5568;
    border-radius: 0.375rem;
    color: #e2e8f0;
    font-size: 0.875rem;
}

.bonus-value-display {
    background: rgba(74, 85, 104, 0.3);
    color: #a0aec0;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(74, 85, 104, 0.5);
    min-width: 80px;
    text-align: center;
}

.bonus-value-display.configured {
    background: rgba(72, 187, 120, 0.2);
    color: #48bb78;
    border-color: rgba(72, 187, 120, 0.5);
}

.bonus-value-display.not-allowed {
    background: rgba(229, 62, 62, 0.2);
    color: #fc8181;
    border-color: rgba(229, 62, 62, 0.5);
}

.bonus-note {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(236, 201, 75, 0.1);
    border: 1px solid rgba(236, 201, 75, 0.3);
    border-radius: 0.5rem;
}

.bonus-note p {
    margin: 0;
    line-height: 1.5;
}

.stone-item {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    background: rgba(26, 32, 44, 0.5);
    border-radius: 0.25rem;
    border: 1px solid rgba(74, 85, 104, 0.2);
}

.stone-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.75rem;
    color: #cbd5e0;
    font-weight: 500;
    width: 100%;
}

.stone-checkbox {
    width: 16px;
    height: 16px;
    accent-color: #63b3ed;
}

.stone-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.price-search-container {
    margin-bottom: 2rem;
}

.prices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.price-card {
    background: rgba(26, 32, 44, 0.6);
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid rgba(74, 85, 104, 0.3);
    transition: all 0.3s ease;
}

.price-card:hover {
    border-color: #63b3ed;
    background: rgba(26, 32, 44, 0.8);
    transform: translateY(-2px);
}

.price-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.price-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #cbd5e0;
}

.price-card-status {
    font-size: 0.75rem;
    font-weight: bold;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    text-transform: uppercase;
}

.price-card-status.free {
    background: rgba(72, 187, 120, 0.2);
    color: #48bb78;
}

.price-card-status.priced {
    background: rgba(236, 201, 75, 0.2);
    color: #ecc94b;
}

.price-input-container {
    margin-bottom: 1rem;
}

.price-presets {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.price-input-group {
    display: flex;
    align-items: center;
}

.price-input {
    flex: 1;
    padding: 0.5rem;
    background: rgba(26, 32, 44, 0.8);
    border: 1px solid #4a5568;
    border-radius: 0.375rem 0 0 0.375rem;
    color: #e2e8f0;
    font-size: 0.875rem;
}

.price-currency {
    background: rgba(160, 174, 192, 0.2);
    color: #a0aec0;
    padding: 0.5rem 0.75rem;
    border: 1px solid #4a5568;
    border-left: none;
    border-radius: 0 0.375rem 0.375rem 0;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
}

.price-card-footer {
    text-align: center;
    color: #a0aec0;
    font-size: 0.875rem;
}

.item-count {
    background: rgba(74, 85, 104, 0.3);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
}

.prices-actions,
.bonuses-actions {
    background: rgba(26, 32, 44, 0.6);
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid rgba(74, 85, 104, 0.3);
}

.bulk-actions {
    margin-bottom: 1.5rem;
}

.bulk-title {
    font-size: 1rem;
    font-weight: 600;
    color: #cbd5e0;
    margin-bottom: 1rem;
    text-align: center;
}

.bulk-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
}

.import-instructions {
    background: rgba(26, 32, 44, 0.6);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(74, 85, 104, 0.3);
}

.instruction-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #cbd5e0;
    margin-bottom: 1rem;
}

.instruction-list {
    color: #a0aec0;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.instruction-list li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.instruction-note {
    color: #68d391;
    font-style: italic;
    font-size: 0.875rem;
}

.import-file-card {
    background: rgba(26, 32, 44, 0.6);
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid rgba(74, 85, 104, 0.3);
    text-align: center;
    transition: all 0.3s ease;
}

.import-file-card:hover {
    border-color: #63b3ed;
    background: rgba(26, 32, 44, 0.8);
}

.file-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.file-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #cbd5e0;
    margin-bottom: 1rem;
}

.file-upload-area {
    display: block;
    border: 2px dashed #4a5568;
    border-radius: 0.5rem;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(45, 55, 72, 0.3);
}

.file-upload-area:hover {
    border-color: #63b3ed;
    background: rgba(45, 55, 72, 0.5);
}

.file-upload-area.file-selected {
    border-color: #48bb78;
    background: rgba(72, 187, 120, 0.1);
}

.file-upload-area.drag-over {
    border-color: #63b3ed !important;
    background: rgba(99, 179, 237, 0.1) !important;
    transform: scale(1.02);
}

.file-input-hidden {
    display: none;
}

.file-upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.file-upload-text {
    color: #cbd5e0;
    font-weight: 500;
}

.file-upload-hint {
    color: #a0aec0;
    font-size: 0.875rem;
}

.file-selected .file-upload-text {
    color: #48bb78;
    font-weight: 600;
}

.import-form {
    background: rgba(26, 32, 44, 0.5);
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(74, 85, 104, 0.3);
}

.bonus-config-form {
    background: rgba(26, 32, 44, 0.5);
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(74, 85, 104, 0.3);
}

.bonus-config-container {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.bonus-config-container::-webkit-scrollbar {
    width: 8px;
}

.bonus-config-container::-webkit-scrollbar-track {
    background: rgba(26, 32, 44, 0.5);
    border-radius: 4px;
}

.bonus-config-container::-webkit-scrollbar-thumb {
    background: rgba(99, 179, 237, 0.6);
    border-radius: 4px;
}

.bonus-config-container::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 179, 237, 0.8);
}

.item-type-bonus-config {
    background: rgba(26, 32, 44, 0.6);
    border-radius: 0.75rem;
    border: 1px solid rgba(74, 85, 104, 0.3);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.item-type-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid rgba(74, 85, 104, 0.3);
}

.item-type-header:hover {
    background: rgba(74, 85, 104, 0.2);
}

.item-type-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #63b3ed;
    margin: 0;
}

.grid-header {
    background: rgba(45, 55, 72, 0.5);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(74, 85, 104, 0.3);
}

.preset-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.bonus-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    padding: 1.5rem;
    max-height: 500px;
    overflow-y: auto;
}

.bonus-config-item {
    background: rgba(45, 55, 72, 0.5);
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(74, 85, 104, 0.2);
}

.bonus-config-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #cbd5e0;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bonus-config-input-group {
    display: flex;
    align-items: center;
}

.bonus-config-input {
    flex: 1;
    padding: 0.5rem;
    background: rgba(26, 32, 44, 0.8);
    border: 1px solid #4a5568;
    border-radius: 0.375rem 0 0 0.375rem;
    color: #e2e8f0;
    font-size: 0.875rem;
    width: 0;
}

.bonus-config-input:focus {
    outline: none;
    border-color: #63b3ed;
    box-shadow: 0 0 0 2px rgba(99, 179, 237, 0.1);
}

.bonus-config-unit,
.bonus-config-help {
    background: rgba(160, 174, 192, 0.2);
    color: #a0aec0;
    padding: 0.5rem 0.75rem;
    border: 1px solid #4a5568;
    border-left: none;
    border-radius: 0 0.375rem 0.375rem 0;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
}

.preset-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.preset-modal {
    background: rgba(45, 55, 72, 0.95);
    border-radius: 1rem;
    max-width: 800px;
    width: 90%;
    max-height: 90%;
    overflow-y: auto;
    border: 1px solid rgba(74, 85, 104, 0.5);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.preset-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(74, 85, 104, 0.3);
}

.preset-modal-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #63b3ed;
    margin: 0;
}

.preset-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #a0aec0;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
}

.preset-modal-close:hover {
    color: #e2e8f0;
}

.preset-modal-content {
    padding: 1.5rem;
}

.preset-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(74, 85, 104, 0.3);
    padding-bottom: 0.5rem;
}

.preset-tab {
    background: none;
    border: none;
    padding: 0.75rem 1.5rem;
    color: #a0aec0;
    font-weight: 600;
    cursor: pointer;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.preset-tab.active {
    background: rgba(99, 179, 237, 0.2);
    color: #63b3ed;
}

.preset-tab:hover {
    background: rgba(74, 85, 104, 0.3);
    color: #cbd5e0;
}

.preset-config-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #cbd5e0;
    margin-bottom: 1rem;
}

.preset-bonuses {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.preset-bonus-item {
    display: grid;
    grid-template-columns: 2fr 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    background: rgba(26, 32, 44, 0.6);
    border-radius: 0.5rem;
    border: 1px solid rgba(74, 85, 104, 0.3);
}

.preset-bonus-select {
    padding: 0.5rem;
    background: rgba(45, 55, 72, 0.8);
    border: 1px solid #4a5568;
    border-radius: 0.375rem;
    color: #e2e8f0;
    font-size: 0.875rem;
}

.preset-value-input {
    padding: 0.5rem;
    background: rgba(45, 55, 72, 0.8);
    border: 1px solid #4a5568;
    border-radius: 0.375rem;
    color: #e2e8f0;
    font-size: 0.875rem;
}

.preset-remove-btn {
    background: rgba(229, 62, 62, 0.2);
    border: 1px solid rgba(229, 62, 62, 0.5);
    color: #fc8181;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preset-remove-btn:hover {
    background: rgba(229, 62, 62, 0.3);
    border-color: #e53e3e;
}

.preset-add-btn {
    background: rgba(72, 187, 120, 0.2);
    border: 1px solid rgba(72, 187, 120, 0.5);
    color: #48bb78;
    padding: 0.75rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.preset-add-btn:hover {
    background: rgba(72, 187, 120, 0.3);
    border-color: #38a169;
}

.preset-modal-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(74, 85, 104, 0.3);
}

.bonus-select option:disabled {
    background: rgba(74, 85, 104, 0.5);
    color: #4a5568;
}

.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid;
}

.alert-success {
    background: rgba(72, 187, 120, 0.1);
    border-color: rgba(72, 187, 120, 0.3);
    color: #68d391;
}

.alert-error {
    background: rgba(229, 62, 62, 0.1);
    border-color: rgba(229, 62, 62, 0.3);
    color: #fc8181;
}

.footer {
    margin-top: 4rem;
    padding: 2rem 0;
    background: rgba(15, 20, 25, 0.8);
    border-top: 1px solid #4a5568;
    color: #a0aec0;
    font-size: 0.875rem;
}

.footer-link {
    color: #63b3ed;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #90cdf4;
}

@media (max-width: 1200px) {
    .bonus-types-container {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .login-card,
    .admin-panel,
    .item-creation-panel,
    .bonuses-panel,
    .prices-panel,
    .import-panel {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .dashboard-card {
        padding: 1.5rem;
    }
    
    .card-icon {
        font-size: 2.5rem;
    }
    
    .form-section {
        padding: 1rem;
    }
    
    .nav-header .flex {
        flex-direction: column;
        gap: 0.5rem;
        height: auto;
        padding: 1rem 0;
    }
    
    .nav-title {
        font-size: 1.25rem;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .form-section-title {
        font-size: 1rem;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .coin-balance {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .coin-amount {
        font-size: 1.25rem;
    }
    
    .bonuses-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .bonus-types-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .bonus-grid {
        grid-template-columns: 1fr;
    }

    .bonus-item {
        gap: 0.5rem;
    }
    
    .bonus-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        text-align: left;
    }
    
    .bonus-label {
        font-size: 0.7rem;
    }
    
    .bonus-input {
        width: 50px;
    }

    .bulk-controls {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .type-info {
        align-items: flex-start;
    }
    
    .header-controls {
        flex-direction: column;
        align-items: flex-end;
        gap: 0.5rem;
    }
    
    .preset-actions {
        justify-content: center;
    }
    
    .bonus-items-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    .prices-grid {
        grid-template-columns: 1fr;
    }
    
    .bulk-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .summary-grid,
    .summary-stats,
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .status-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .import-file-card {
        padding: 1rem;
    }
    
    .file-upload-area {
        padding: 1rem;
    }
    
    .selected-item-card {
        flex-direction: column;
        text-align: center;
    }
    
    .selected-item-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .selected-item-meta {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .admin-tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        border-bottom: none;
        border-left: 2px solid transparent;
    }
    
    .tab-btn.active {
        border-left-color: #63b3ed;
        border-bottom-color: transparent;
    }
    
    .item-icon,
    .selected-item-icon {
        width: 40px;
        height: 40px;
    }
    
    .selected-item-icon {
        width: 56px;
        height: 56px;
    }
    
    .stone-label {
        font-size: 0.7rem;
    }
    
    .preset-modal {
        width: 95%;
        margin: 1rem;
    }
    
    .preset-modal-header {
        padding: 1rem;
    }
    
    .preset-modal-content {
        padding: 1rem;
    }
    
    .preset-tabs {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .preset-tab {
        padding: 0.5rem 1rem;
    }
    
    .preset-bonus-item {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .preset-modal-actions {
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .section-title {
        font-size: 1.25rem;
    }
    
    .form-section-title {
        font-size: 1rem;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

.bonus-tabs {
    display: flex;
    border-bottom: 1px solid rgba(74, 85, 104, 0.5);
    margin-bottom: 1rem;
    background: rgba(26, 32, 44, 0.5);
    border-radius: 0.5rem 0.5rem 0 0;
}

.bonus-tab {
    background: none;
    border: none;
    padding: 0.75rem 1.5rem;
    color: #a0aec0;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
}

.bonus-tab.active {
    color: #63b3ed;
    border-bottom-color: #63b3ed;
    background: rgba(99, 179, 237, 0.1);
}

.bonus-tab:hover {
    color: #cbd5e0;
    background: rgba(74, 85, 104, 0.2);
}

.bonus-grid-container {
    background: rgba(45, 55, 72, 0.3);
    border-radius: 0 0 0.5rem 0.5rem;
}

.bonus-item.configured {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 0.75rem;
    padding: 0.3rem;
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.08), rgba(72, 187, 120, 0.12));
    border: 1px solid rgba(72, 187, 120, 0.3);
    border-radius: 0.75rem;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.bonus-item.configured:hover {
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.12), rgba(72, 187, 120, 0.16));
    border-color: rgba(72, 187, 120, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.bonus-item.configured .bonus-label {
    font-weight: 600;
    color: #68d391;
    font-size: 0.875rem;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.bonus-item.configured .bonus-input {
    width: 80px;
    padding: 0.5rem;
    background: rgba(26, 32, 44, 0.9);
    border: 1px solid rgba(72, 187, 120, 0.4);
    border-radius: 0.5rem;
    color: #e2e8f0;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s ease;
}

.bonus-item.configured .bonus-input:focus {
    outline: none;
    border-color: #48bb78;
    background: rgba(26, 32, 44, 1);
    box-shadow: 0 0 0 2px rgba(72, 187, 120, 0.2);
}

.delete-bonus-btn {
    background: linear-gradient(135deg, rgba(229, 62, 62, 0.15), rgba(229, 62, 62, 0.25));
    border: 1px solid rgba(229, 62, 62, 0.4);
    color: #fc8181;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.125rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(229, 62, 62, 0.2);
}

.delete-bonus-btn:hover {
    background: linear-gradient(135deg, rgba(229, 62, 62, 0.25), rgba(229, 62, 62, 0.35));
    border-color: #e53e3e;
    color: #fed7d7;
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(229, 62, 62, 0.3);
}

.delete-bonus-btn:active {
    transform: scale(0.95);
}

.add-bonus-section {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 2fr 1fr auto;
    gap: 0.75rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(26, 32, 44, 0.4), rgba(26, 32, 44, 0.6));
    border: 2px dashed rgba(74, 85, 104, 0.4);
    border-radius: 0.75rem;
    align-items: center;
    transition: all 0.3s ease;
    margin-top: 0.75rem;
}

.add-bonus-section:hover {
    border-color: rgba(99, 179, 237, 0.4);
    background: linear-gradient(135deg, rgba(26, 32, 44, 0.5), rgba(26, 32, 44, 0.7));
}

.add-bonus-select,
.add-bonus-value {
    padding: 0.625rem;
    background: rgba(26, 32, 44, 0.9);
    border: 1px solid #4a5568;
    border-radius: 0.5rem;
    color: #e2e8f0;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.add-bonus-select:focus,
.add-bonus-value:focus {
    outline: none;
    border-color: #63b3ed;
    background: rgba(26, 32, 44, 1);
    box-shadow: 0 0 0 2px rgba(99, 179, 237, 0.2);
}

.add-bonus-select {
    font-weight: 500;
}

.add-bonus-value {
    text-align: center;
    font-weight: 600;
}

.add-bonus-value::placeholder {
    color: #a0aec0;
    font-weight: normal;
}

.add-bonus-btn {
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.2), rgba(72, 187, 120, 0.3));
    border: 1px solid rgba(72, 187, 120, 0.5);
    color: #48bb78;
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(72, 187, 120, 0.1);
}

.add-bonus-btn:hover {
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.3), rgba(72, 187, 120, 0.4));
    border-color: #38a169;
    color: #68d391;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(72, 187, 120, 0.2);
}

.add-bonus-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    background: rgba(74, 85, 104, 0.3);
    border-color: rgba(74, 85, 104, 0.5);
    color: #a0aec0;
}

.add-bonus-btn:active:not(:disabled) {
    transform: translateY(0);
}

.bonus-tabs {
    display: flex;
    border-bottom: 1px solid rgba(74, 85, 104, 0.4);
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, rgba(26, 32, 44, 0.6), rgba(26, 32, 44, 0.8));
    border-radius: 0.75rem 0.75rem 0 0;
    overflow: hidden;
}

.bonus-tab {
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    color: #a0aec0;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
    font-size: 0.9rem;
    position: relative;
}

.bonus-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(99, 179, 237, 0.05);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bonus-tab:hover::before {
    opacity: 1;
}

.bonus-tab.active {
    color: #63b3ed;
    border-bottom-color: #63b3ed;
    background: linear-gradient(135deg, rgba(99, 179, 237, 0.08), rgba(99, 179, 237, 0.12));
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.bonus-tab:hover:not(.active) {
    color: #cbd5e0;
    background: rgba(74, 85, 104, 0.2);
}

.bonus-grid-container {
    background: linear-gradient(135deg, rgba(45, 55, 72, 0.2), rgba(45, 55, 72, 0.4));
    border-radius: 0 0 0.75rem 0.75rem;
    border: 1px solid rgba(74, 85, 104, 0.3);
    padding: 0;
    overflow: hidden;
}

.bonus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 0.75rem;
    padding: 1.25rem;
    min-height: 120px;
}

.bonus-grid:empty::before {
    content: 'No bonuses configured yet';
    grid-column: 1 / -1;
    text-align: center;
    color: #a0aec0;
    font-style: italic;
    padding: 2rem;
    background: rgba(26, 32, 44, 0.3);
    border-radius: 0.5rem;
    border: 1px dashed rgba(74, 85, 104, 0.3);
}

#dynamic-message {
    margin-bottom: 1.5rem;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .bonus-item.configured {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        text-align: center;
        padding: 0.75rem;
    }
    
    .bonus-item.configured .bonus-input {
        width: 100%;
        max-width: 120px;
        margin: 0 auto;
    }
    
    .add-bonus-section {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        text-align: center;
    }
    
    .add-bonus-btn {
        justify-self: center;
    }
    
    .bonus-tabs {
        flex-direction: column;
    }
    
    .bonus-tab {
        border-bottom: none;
        border-left: 3px solid transparent;
    }
    
    .bonus-tab.active {
        border-left-color: #63b3ed;
        border-bottom-color: transparent;
    }
    
    .bonus-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 1rem;
    }
}