/* Основные стили и переменные */
:root {
    --primary: #4CAF50;      /* Основной зеленый цвет */
    --primary-dark: #388E3C; /* Темно-зеленый */
    --primary-light: #C8E6C9; /* Светло-зеленый */
    --secondary: #FF9800;    /* Оранжевый */
    --accent: #FFC107;       /* Желтый акцент */
    --text: #333333;         /* Основной текст */
    --text-light: #757575;   /* Светлый текст */
    --background: #F5F5F5;   /* Фон страницы */
    --surface: #FFFFFF;      /* Поверхности */
    --error: #F44336;        /* Красный для ошибок */
    --success: #4CAF50;      /* Зеленый для успеха */
    --warning: #FF9800;      /* Оранжевый для предупреждений */
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Тень */
    --radius: 12px;          /* Радиус скругления */
    --transition: all 0.3s ease; /* Анимация переходов */

    /* Новые цвета для более красочного интерфейса */
    --gold: #FFD700;         /* Золотой цвет */
    --gem: #00BFFF;          /* Цвет кристаллов */
    --frm: #9C27B0;          /* Фиолетовый для FRM */
    --gradient-primary: linear-gradient(135deg, #4CAF50, #66BB6A);
    --gradient-secondary: linear-gradient(135deg, #FF9800, #FFB74D);
    --gradient-accent: linear-gradient(135deg, #FFC107, #FFD54F);
    --gradient-gold: linear-gradient(135deg, #FFD700, #FFF59D);
    --gradient-gem: linear-gradient(135deg, #00BFFF, #80DEEA);
    --gradient-frm: linear-gradient(135deg, #60ff56, #c7fdd3);
}
@font-face {
    font-family: 'EE-Bellflower';
    src: url('EE-BellflowerRUSBYLYAJKA.woff2') format('woff2'),
         url('EE-BellflowerRUSBYLYAJKA.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
/* Отключаем выделение текста */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}
html {
    -ms-touch-action: manipulation;
    touch-action: manipulation;
    height: 100%;
}
body {
    color: #333;
    min-height: 100vh;
    padding: 0;
    background-image: url('bg-frm.jpg'); /* Укажите путь к вашему файлу */
    background-size: cover; /* Растягивает картинку на весь экран */
    background-repeat: no-repeat; /* Отключает повторение картинки */
    background-position: center; /* Центрирует картинку */
}
.container {
    width: 100vw;
    min-height: 100vh;
    margin: 0;
    border-radius: 0;
    border: none;
    display: flex;
    flex-direction: column;
}
/* Разрешаем выделение только для input */
input, textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}
h4{
    margin-bottom: 5px;
}
h2{
        font-family: 'EE-Bellflower', Sans-Serif;
}
/* Верхнее меню */
.top-menu {
    color: white;
    padding: 10px;
    display: flex;
    flex-direction: column;
}
.top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.user-info {
    display: flex;
}
.level-info {
    display: flex;
    align-items: center;
    position: relative;
}
.level {
    font-weight: bold;
    margin-right: 8px;
    font-size: 18px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}
.progress-bar {
    width: 120px;
    height: 16px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    overflow: hidden;
    margin-right: 10px;
    position: relative;
    border: 1px solid rgba(185, 185, 185, 0.5);
}
.progress {
    height: 100%;
    background: var(--gradient-accent);
    border-radius: 10px;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
}
/* Отображения текста прогресса */
.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10px;
    font-weight: bold;
    color: #333;
    text-shadow: 0 0 2px white;
    z-index: 1;
}
.icons {
    display: flex;
}
.icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #c8e6c9;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}
.icon:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.3);
}
.balances {
    display: flex;
    justify-content: space-around;
    width: 100%;
}
.balance {
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}
.balance:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}
.balance-icon {
    margin-right: 5px;
    font-size: 18px;
}
/* Стили для валют с градиентами */
.balance:nth-child(1) { /* Золото */
    background: var(--gradient-gold);
    color: #8B7500;
}
.balance:nth-child(2) { /* Кристаллы */
    background: var(--gradient-gem);
    color: #00688B;
}
.balance:nth-child(3) { /* FRM */
    background: var(--gradient-frm);
    color: #4A148C;
}
/* Раздел зданий */
.buildings {
    padding: 10px;
    text-align: center;
}
.buildings-title {
    margin-bottom: 10px;
    font-size: 20px;
    color: #2e7d32;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    display:none;
}
.buildings-grid {
    display: flex;
    justify-content: space-around;
    margin-bottom: 5px;
}
.building {
    width: 110px;
    height: 110px;
    background: linear-gradient(135deg, #f5f5f5, #e0e0e09c);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 3px solid #c8e6c9;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.building:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
.building.locked {
    background: linear-gradient(135deg, #e0e0e0, #bdbdbdb0);
    color: #9e9e9e;
}
.building.available {
    background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
    color: #333;
}
.lock {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 16px;
    color: #f44336;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}
.building-icon {
    font-size: 35px;
    margin-bottom: 8px;
    display: none;
}
.building-name {
    font-size: 10px;
    font-weight: bold;
    display: none;
}
/* Раздел грядок */
.garden {
    padding: 10px 80px 10px 10px;
    flex-grow: 1;
}
.garden-title {
    margin-bottom: 10px;
    font-size: 20px;
    color: #2e7d32;
    text-align: center;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    display: none;
}
.garden-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}
.plot {
    aspect-ratio: 1;
    background: linear-gradient(135deg, #8d6e63, #5d40375e);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #5d4037;
    cursor: pointer;
    position: relative;
    font-size: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}
.plot:hover {
    transform: scale(1.05);
}
.plot.locked {
    background: linear-gradient(135deg, #bdbdbd, #9e9e9ea6);
}
.plot.locked::after {
    content: "🔒";
    position: absolute;
    font-size: 14px;
}
.plot.planted {
    background: linear-gradient(135deg, #a5d6a7, #81c78482);
}
.plot.ready::after {
    content: "✅";
    position: absolute;
    font-size: 18px;
}
/* Нижнее меню */
.bottom-menu {
    display: flex;
    justify-content: space-around;
    background: #ffffffc9;
    border-radius: 20px;
    width: 95%;
    margin: 5px auto;
    padding: 2px 5px;
}
.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 5px;
    border-radius: 12px;
    transition: all 0.3s ease;
}
.menu-item.active {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}
.menu-item:hover {
    background: #e8f5e9;
    transform: translateY(-3px);
}
.menu-item.active:hover {
    background: var(--gradient-primary);
}
.menu-icon {
    font-size: 24px;
}
.menu-text {
    font-size: 12px;
    font-weight: bold;
}
/* Модальные окна */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 100;
    align-items: center;
    justify-content: center;
}
.modal-content {
    background: linear-gradient(135deg, #ffffff, #f5f5f5);
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 15px;
    position: relative;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border: 2px solid #4CAF50;
}
.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #757575;
    transition: all 0.3s ease;
    z-index: 5;
}
.close-modal:hover {
    color: #f44336;
    transform: scale(1.2);
}
.modal-title {
    margin-bottom: 10px;
    color: #2e7d32;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
    padding: 0 0 10px 0;
}
/* Стили для магазина */
.shop-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.shop-item {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    align-items: center;
    padding: 5px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #fafafa, #f5f5f5);
}
.shop-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: #4CAF50;
}
.item-info {
    display: flex;
    flex-direction: row;
    align-items: center;
}
.item-name {
    font-weight: bold;
    font-size: 13px;
    padding-right: 5px;
}
.item-name2 {
    font-weight: bold;
    font-size: 20px;
    padding-right: 15px;
    text-align: right;
}
.item-price {
    color: #f57c00;
    font-size: 14px;
    font-weight: bold;
    margin: 0 10px;
}
.buy-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}
.buy-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}
.wallet-balance {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding: 10px;
    background: linear-gradient(135deg, #f5f5f5, #eeeeee);
    border-radius: 12px;
    font-weight: bold;
    border: 2px solid #e0e0e0;
}
.wallet-address {
    background: linear-gradient(135deg, #f5f5f5, #eeeeee);
    padding: 10px;
    border-radius: 12px;
    margin-bottom: 10px;
    word-break: break-all;
    font-size: 14px;
    border: 2px solid #e0e0e0;
}
.copy-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}
.copy-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}
/* Стили для заданий */
.tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
    flex-wrap: wrap;
}
.tab {
    padding: 12px 20px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    font-weight: bold;
    font-size: 10px;
    text-transform: uppercase;
}
.tab.active {
    border-bottom: 3px solid #4caf50;
    color: #4caf50;
}
.tab:hover {
    background-color: #f5f5f5;
    border-radius: 8px 8px 0 0;
}
.quest-item {
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fafafa, #f5f5f5);
    transition: all 0.3s ease;
}
.quest-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.quest-reward {
    display: flex;
    margin-top: 15px;
    justify-content: center;
}
.reward-item {
    display: flex;
    align-items: center;
    margin-right: 5px;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.7);
}
.quest-title {
    font-weight: bold;
    color: #1B5E20;
    padding: 0 0 5px 0;
}
/* Стили для неактивных кнопок заданий */
.quest-btn-completed {
    background: #cccccc !important;
    color: #666666 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}
.quest-btn-completed:hover {
    background: #cccccc !important;
    transform: none !important;
    box-shadow: none !important;
}
.promo-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    margin-bottom: 15px;
    font-size: 16px;
    transition: all 0.3s ease;
}
.promo-input:focus {
    border-color: #4CAF50;
    outline: none;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}
.activate-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 8px;
    margin: 3px 0;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}
.activate-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}
.quest-daily-btn:disabled {
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}
/* Стили для выбора семян */
.seed-selection {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}
.seed-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #fafafa, #f5f5f5);
    position: relative;
}
.seed-item:hover {
    background: linear-gradient(135deg, #f5f5f5, #eeeeee);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: #4CAF50;
}
.seed-info {
    display: flex;
    flex-direction: column;
}
.seed-name {
    font-weight: bold;
    font-size: 16px;
}
.seed-details {
    font-size: 12px;
    color: #757575;
}
.seed-count {
    font-weight: bold;
    color: #4caf50;
    font-size: 18px;
}
/* Стили для склада */
.storage-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}
.storage-tab {
    padding: 12px 20px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 12px;
}
.storage-tab.active {
    border-bottom: 3px solid #4caf50;
    color: #4caf50;
}
.storage-tab:hover {
    background-color: #f5f5f5;
    border-radius: 8px 8px 0 0;
}
.storage-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.storage-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: linear-gradient(135deg, #fafafa, #f5f5f5);
    transition: all 0.3s ease;
    flex-wrap:wrap;
    position: relative;
}
.storage-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: #4CAF50;
}
.storage-item:hover .hot-offer {
    animation: pulse 0.5s infinite;
}
.item-details {
    display: flex;
    flex-direction: column;
}
.item-quantity {
    font-size: 13px;
    color: #757575;
    margin-top: 3px;
}
.bay-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    /*width: 140px;*/
}

.bay-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 152, 0, 0.4);
}
button.bay-btn[data-seed="ton_clover"] {
    background: var(--gradient-gem);
}
button.bay-btn[data-seed="flour"] {
    background: var(--gradient-gem);
}
button.bay-btn[data-seed="fcoin_tree"] {
    background: var(--frm);
}
.sell-btn {
    background: var(--gradient-secondary);
    color: white;
    border: none;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    /*width: 140px;*/
}
.sell-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 152, 0, 0.4);
}
.sell-bakery-btn {
    background: var(--gradient-secondary);
    color: white;
    border: none;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    /*width: 140px;*/
}
.sell-bakery-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 152, 0, 0.4);
}

.use-btn, .use-flour-btn{
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

button.sell-btn[data-product="ton_clover"] {
    background: var(--error);
}
/* Адаптивность */
@media (max-width: 400px) {
    .garden-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 5px;
    }

    .menu-text {
        font-size: 10px;
    }
}
/* Стили для таймера и анимаций */
.plot-timer {
    position: absolute;
    bottom: 2px;
    font-size: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 5px;
    border-radius: 5px;
    display: none;
}
.plot.ripe {
    animation: pulse 1.5s infinite;
    box-shadow: 0 0 15px #4caf50;
}
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}
.plot.ripe::after {
    /*content: "🌟";*/
    position: absolute;
    font-size: 18px;
    animation: starPulse 1.5s infinite;
}
@keyframes starPulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}
/* Стили для уведомлений */
#notifications-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 300px;
    opacity: 0.85;
    font-size: 12px;
}
.notification {
    padding: 15px 20px;
    border-radius: var(--radius);
    color: white;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    animation: slideInRight 0.3s ease, fadeOut 0.3s ease 2.7s forwards;
    transform: translateX(100%);
    opacity: 0;
}
@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}
.notification.success {
    background: var(--success);
}
.notification.error {
    background: var(--error);
}
.notification.warning {
    background: var(--warning);
}
.notification.info {
    background: var(--gem);
}
/* Стили для истории покупок */
.history-item {
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}
.history-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.history-date {
    font-size: 12px;
    color: #000;
    margin-bottom: 5px;
}
.history-details {
    display: flex;
    align-items: baseline;
    gap: 5px;
}
.history-resources {
    font-weight: bold;
    color: #2e7d32;
    padding-right: 8px;
}
.history-cost {
    font-weight: bold;
    color: #f57c00;
}
/* Стили для админ-панели промокодов */
.admin-section {
    margin-bottom: 20px;
    padding: 5px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: linear-gradient(135deg, #fafafa, #f5f5f5);
}
.admin-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 14px;
    margin: 10px 0;
}
.admin-input:focus {
    border-color: #4CAF50;
    outline: none;
}
.admin-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-right: 10px;
    margin-bottom: 10px;
}
.admin-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}
.admin-btn.delete {
    background: var(--error);
}
.promo-list {
    margin-top: 15px;
}
.promo-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 10px;
    background: white;
}
.promo-info {
    flex: 1;
}
.promo-code {
    font-weight: bold;
    color: #2e7d32;
}
.promo-details {
    font-size: 12px;
    color: #757575;
}
.password-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 150;
    align-items: center;
    justify-content: center;
}
.password-content {
    background: linear-gradient(135deg, #ffffff, #f5f5f5);
    border-radius: 20px;
    width: 90%;
    max-width: 350px;
    padding: 25px;
    position: relative;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border: 2px solid #4CAF50;
}
.password-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    margin-bottom: 15px;
    font-size: 16px;
    transition: all 0.3s ease;
}
.password-input:focus {
    border-color: #4CAF50;
    outline: none;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}
/* Стили для курятника */
.coop-slots {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}
.coop-slot {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 5px;
    text-align: center;
    background: linear-gradient(135deg, #fafafa, #f5f5f5);
    transition: all 0.3s ease;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.coop-slot:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.chicken-slot {
    border-color: #4CAF50;
}
.buy-slot {
    border-color: #FF9800;
}
.market-slot {
    border-color: #9C27B0;
    color: #757575;
    display: flex;
    align-items: center;
    justify-content: center;
}
.chicken-icon {
    font-size: 40px;
    margin-bottom: 10px;
    animation: gentleSwing 3s ease-in-out infinite;
}
.chicken-state {
    font-weight: bold;
    margin: 5px 0;
    color: #2e7d32;
    font-size: 12px;
}
.chicken-state.hungry {
    color: #F44336;
}
.chicken-state.feeding {
    color: #FF9800;
}
.chicken-state.ready {
    color: #4CAF50;
}
.feed-timer {
    font-weight: bold;
    color: var(--warning);
    background: rgba(255, 152, 0, 0.1);
    padding: 6px 16px;
    border-radius: 8px;
    border: 2px solid var(--warning);
}
.chicken-production {
    font-size: 13px;
    color: #757575;
    margin: 5px 0;
}
.chicken-level {
    font-size: 14px;
    color: #000000;
    margin-top: 5px;
    font-weight: bold;
}
/* Обновленные стили для раздела походов */
.expedition-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 15px;
}
.expedition-card {
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #fafafa, #f5f5f5);
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.expedition-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    border-color: #4CAF50;
}
.expedition-header {
    margin-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
}
.expedition-icon {
    font-size: 24px;
    margin-right: 10px;
}
.expedition-name {
    font-size: 18px;
    font-weight: bold;
    color: var(--text);
    font-family: 'EE-Bellflower', Sans-Serif;
    text-align: center;
}
.expedition-cost,
.expedition-duration,
.expedition-rewards {
    margin-bottom: 10px;
    font-size: 14px;
    /*display: flex;
    align-items: center;
    gap: 5px;*/
}
.expedition-cost strong,
.expedition-duration strong,
.expedition-rewards strong {
    color: var(--primary-dark);
}
.expedition-button-container {
    text-align: center;
}
.expedition-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}
.expedition-btn:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}
.expedition-btn:disabled {
    background: #cccccc;
    color: #666666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.expedition-btn.disabled {
    background: #cccccc;
    color: #666666;
    cursor: not-allowed;
}
.expedition-btn.collect {
    background: var(--gradient-gold);
    color: #8B7500;
}
.expedition-timer {
    font-weight: bold;
    color: var(--warning);
    background: rgba(255, 152, 0, 0.1);
    padding: 10px 16px;
    border-radius: 12px;
    border: 2px solid var(--warning);
    margin-bottom: 5px;
}
.expedition-timer-label {
    font-size: 12px;
    color: var(--text-light);
    font-weight: bold;
}
/* Стили для окна рекламы */
.ad-progress-container {
    margin: 20px 0;
    text-align: center;
}

.ad-progress-bar {
    width: 100%;
    height: 20px;
    background-color: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
    border: 2px solid #ccc;
}

.ad-progress {
    height: 100%;
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    border-radius: 10px;
    width: 0%;
    transition: width 0.1s linear;
}

.ad-timer {
    font-size: 16px;
    font-weight: bold;
    color: var(--text);
    margin-bottom: 10px;
}

.ad-content {
    background: linear-gradient(135deg, #f5f5f5, #eeeeee);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    margin: 20px 0;
    border: 2px solid #e0e0e0;
}

.ad-placeholder .ad-icon {
    font-size: 60px;
    margin-bottom: 15px;
}

.ad-placeholder h3 {
    color: var(--text);
    margin-bottom: 10px;
    font-size: 20px;
}

.ad-placeholder p {
    color: var(--text-light);
    font-size: 14px;
}

.ad-warning {
    background: linear-gradient(135deg, #FFF3E0, #FFE0B2);
    border: 2px solid #FF9800;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    margin-top: 15px;
}

.ad-warning p {
    color: #E65100;
    font-weight: bold;
    margin: 0;
    font-size: 14px;
}

/* Стили для заблокированного закрытия */
.modal-content.prevent-close {
    pointer-events: none;
}

.modal-content.prevent-close .close-modal {
    display: none;
}

/* Контейнер для имени и уровня (располагаем вертикально) */
.user-name-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 160px;
}

/* Стили для имени пользователя */
.user-name {
    font-size: 16px;
    font-weight: bold;
    color: white;
    margin-bottom: 2px;
    max-width: 120px; /* ОГРАНИЧЕНИЕ ШИРИНЫ - не даем имени растягиваться */
    white-space: nowrap; /* Запрещаем перенос строк */
    overflow: hidden; /* Скрываем выходящий за границы текст */
    text-overflow: ellipsis; /* Добавляем многоточие если имя не помещается */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3); /* Тень для лучшей читаемости */
}

/* ОБНОВЛЯЕМ СТИЛИ АВАТАРА - используем Unicode символ как в остальной игре */
.avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: var(--gradient-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: white; /* Белый цвет для иконки */
    font-weight: bold;
    border: 1px solid white;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 20px; /* Размер Unicode символа */
    position: relative;
}

/* Добавляем Unicode символ фермера через псевдоэлемент */
.avatar::before {
    content: "👨‍🌾"; /* Unicode символ фермера */
    display: block;
}

/* Анимации при наведении на аватар */
.avatar:hover {
    transform: scale(1.05);
}

.avatar:active {
    transform: scale(0.95);
}

/* АДАПТИВНОСТЬ ДЛЯ МАЛЕНЬКИХ ЭКРАНОВ */
@media (max-width: 400px) {
    .user-name {
        max-width: 100px; /* Еще меньше на маленьких экранах */
        font-size: 14px; /* Уменьшаем шрифт */
    }

    .avatar {
        width: 45px;
        height: 45px;
        margin-right: 8px;
        font-size: 18px; /* Уменьшаем иконку на маленьких экранах */
    }
}
/* ---------------------------------------------------------------------------- */

/* Стили для модального окна продажи */
.sell-animal-info {
    max-width: 400px;
    margin: 0 auto;
}

.animal-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: bold;
}

.animal-icon {
    font-size: 40px;
}

.production-stats {
    margin-bottom: 20px;
    padding: 15px;
    background: var(--card-bg);
    border-radius: 10px;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.stat-item {
    padding: 5px;
    font-size: 14px;
}

.currency-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.currency-tab {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 5px;
    background: var(--card-bg);
    cursor: pointer;
    transition: all 0.3s;
}

.currency-tab.active {
    background: var(--gradient-primary);
    color: white;
}

.price-input-container {
    position: relative;
    margin-bottom: 15px;
}

.price-input {
    width: 100%;
    padding: 12px 60px 12px 15px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
}

.currency-symbol {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
    color: var(--text-light);
}

.sell-actions {
    text-align: center;
}

/* Стили для карточек маркетплейса */
.market-listing {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border: 2px solid #8e3884;
    border-radius: 12px;
    padding: 10px;
    transition: all 0.3s ease;
    margin: 10px 0;
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.market-listing.my-listing {
    border-color: var(--success);
}

.listing-header {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-direction: column;
    align-items: center;
}

.animal-level {
    background: var(--frm);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
}

.my-listing-badge {
    background: var(--success);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
    margin-left: auto;
}

.production-info {
    font-size: 12px;
}

.seller-info{
    font-size: 10px;
    margin-bottom: 5px;
    display: none;
}

.price-info {
    font-weight: bold;
    color: var(--frm);
    font-size: 12px;
}

.listing-actions {
    text-align: center;
}

.no-listings {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
    font-style: italic;
}

/* Фильтры маркетплейса */
.market-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.market-filters select {
    flex: 1;
    min-width: 120px;
    padding: 8px;
    border: 2px solid var(--border);
    border-radius: 5px;
    background: var(--card-bg);
}

.sort-order-btn {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 5px;
    background: var(--card-bg);
    cursor: pointer;
    font-weight: bold;
}

.market-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border);
}

.market-tab {
    padding: 10px 20px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.market-tab.active {
    border-bottom-color: var(--primary);
    color: var(--primary);
    font-weight: bold;
}

.buy-listing-btn {
    background: var(--gradient-frm);
    color: #3d3d3d;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    flex: 1;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.buy-listing-btn:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(156, 39, 176, 0.4);
}

.buy-listing-btn:disabled {
    background: #cccccc;
    color: #666666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.cancel-listing-btn {
    background: var(--gradient-secondary);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    flex: 1;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.cancel-listing-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 152, 0, 0.4);
}
.listing-details{
    max-width: 180px;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column-reverse;
}
.quest-btn-pending {
    background: var(--gradient-secondary) !important;
}

/* Стили для контента правил */
#rules-content h3 {
    color: var(--primary);
    margin-bottom: 15px;
    text-align: center;
}

#rules-content p {
    margin-bottom: 10px;
}

#rules-content ul {
    margin-bottom: 15px;
    padding-left: 20px;
}

#rules-content li {
    margin-bottom: 5px;
    line-height: 1.4;
}

#rules-content strong {
    color: var(--primary-dark);
}
.slot-badge{
    display: none;
}
/* Стили для формы вывода TON */
.withdraw-form {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--text);
}

.withdraw-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.withdraw-input:focus {
    border-color: #4CAF50;
    outline: none;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

.commission-info {
    background: linear-gradient(135deg, #FFF3E0, #FFE0B2);
    border: 2px solid #FF9800;
    border-radius: 10px;
    padding: 5px 15px;
    margin: 15px 0;
}

.commission-info div {
    margin-bottom: 5px;
    font-weight: bold;
}

.frm-option {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px solid #9C27B0;
    border-radius: 10px;
    padding: 5px 15px;
    margin: 15px 0;
}

.frm-option label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: bold;
}

.frm-option input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
}

.frm-cost {
    font-size: 14px;
    color: var(--frm);
    font-weight: bold;
    margin-top: 5px;
}

/* Стили для истории выводов */
.withdraw-history-item {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #fafafa, #f5f5f5);
}

.withdraw-history-date {
    font-size: 12px;
    color: #757575;
    margin-bottom: 5px;
}

.withdraw-history-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.withdraw-history-amount {
    font-weight: bold;
    color: #2e7d32;
}

.withdraw-history-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.status-pending {
    background: #FFF3E0;
    color: #F57C00;
}

.status-completed {
    background: #E8F5E8;
    color: #4CAF50;
}

.status-rejected {
    background: #FFEBEE;
    color: #F44336;
}
.ton-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Ctitle%3ETon SVG Icon%3C/title%3E%3Cpath fill='currentColor' d='M19.012 9.201L12.66 19.316a.857.857 0 0 1-1.453-.005L4.98 9.197a1.8 1.8 0 0 1-.266-.943a1.856 1.856 0 0 1 1.882-1.826h10.817c1.033 0 1.873.815 1.873 1.822a1.8 1.8 0 0 1-.274.951M6.51 8.863l4.633 7.144V8.143H6.994c-.48 0-.694.317-.484.72m6.347 7.144l4.633-7.144c.214-.403-.004-.72-.484-.72h-4.149z'/%3E%3C/svg%3E");
    width: 1rem;
    height: 1rem;
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: bottom;
    background-color: #00ffef;
    border-radius: 1rem;
}
.ton-icon2 {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Ctitle%3ETon SVG Icon%3C/title%3E%3Cpath fill='currentColor' d='M19.012 9.201L12.66 19.316a.857.857 0 0 1-1.453-.005L4.98 9.197a1.8 1.8 0 0 1-.266-.943a1.856 1.856 0 0 1 1.882-1.826h10.817c1.033 0 1.873.815 1.873 1.822a1.8 1.8 0 0 1-.274.951M6.51 8.863l4.633 7.144V8.143H6.994c-.48 0-.694.317-.484.72m6.347 7.144l4.633-7.144c.214-.403-.004-.72-.484-.72h-4.149z'/%3E%3C/svg%3E");
    width: 20px;
    height: 20px;
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    background-color: #00ffef;
    border-radius: 1rem;
}
.icon-with-ton::before {
    content: '';
    display: inline-block;
    width: 1.3em;  /* Используем em для масштабирования */
    height: 1.3em;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='currentColor' d='M19.012 9.201L12.66 19.316a.857.857 0 0 1-1.453-.005L4.98 9.197a1.8 1.8 0 0 1-.266-.943a1.856 1.856 0 0 1 1.882-1.826h10.817c1.033 0 1.873.815 1.873 1.822a1.8 1.8 0 0 1-.274.951M6.51 8.863l4.633 7.144V8.143H6.994c-.48 0-.694.317-.484.72m6.347 7.144l4.633-7.144c.214-.403-.004-.72-.484-.72h-4.149z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: bottom;
    margin-right: 0.1em; /* Отступ справа */
    background-color: #00ffef;
    border-radius: 1.3rem;
}
#ostrich-building{
    background: url(kur2.jpg);
    background-size: contain;
}
#cow-building{
    background: url(kor2.jpg);
    background-size: contain;
}
#camel-building{
    background: url(verb2.jpg);
    background-size: contain;
}

/* Статистика в админ-панели */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.stat-item {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    border: 1px solid #dee2e6;
}

.stat-label {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary);
}

/* Форма отправки сообщений */
.admin-textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    background: white;
}

.admin-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 14px;
    background: white;
}

.recipients-count {
    padding: 10px;
    background: #e8f4fd;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    color: #0d6efd;
    border: 1px solid #b6d4fe;
}

#send-message-result {
    padding: 10px;
    border-radius: 8px;
    font-weight: bold;
}

#specific-player-group {
    margin-top: 10px;
}
/* Стили для админ-вкладок */
.admin-tabs {
    display: flex;
    border-bottom: 2px solid var(--border);
    margin-bottom: 20px;
    flex-wrap:wrap;
}

.admin-tab {
    padding: 12px 24px;
    cursor: pointer;
    font-weight: bold;
    color: var(--text-light);
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.admin-tab:hover {
    color: var(--primary);
    background-color: rgba(52, 152, 219, 0.1);
}

.admin-tab.active {
    color: var(--primary);
    border-bottom: 3px solid var(--primary);
    background-color: rgba(52, 152, 219, 0.05);
}

.admin-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.admin-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
/* Стили для статистики животных в админ-панели */
.animal-stats {
    font-size: 14px;
    line-height: 1.4;
}

.animal-stats div {
    margin-bottom: 3px;
    display: flex;
    justify-content: space-between;
}

.animal-stat-value {
    font-weight: bold;
    color: var(--primary);
}

/* Улучшаем внешний вид квадратиков с животными */
#animals-by-type .stat-item {
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 15px;
}

.tournament-stats-container{
    font-size: 12px;
    overflow-x: auto;
}
.tournament-table{
    table-layout: fixed;
}
#tournaments-history{
    margin-top: 15px;
}
.statfeel {
    display: grid;
    gap: 10px;
    align-items: center;
    grid-template-columns: repeat(2, 1fr);
    justify-items: center;
}
.statfeelinfo {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid var(--primary-light);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    margin-bottom: 10px;
}
/* Стили для отображения цен со скидкой */
.price-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    align-items: center;
}

.price-old {
    text-decoration: line-through;
    color: #999;
    font-size: 12px;
    opacity: 0.8;
}

.price-new {
    color: #e65100;
    font-weight: bold;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-line {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    flex-direction: column-reverse;
}
/* Эффект "горячего предложения" */
.hot-offer {
    position: absolute;
    top: -8px;
    color: white;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 8px;
    font-weight: bold;
    z-index: 1;
    box-shadow: 0 3px 6px rgba(255, 87, 34, 0.3);
    animation: pulse 2s infinite;
    white-space: nowrap;
}

#seed-selection .hot-offer {
  right: 1px;
  background: linear-gradient(135deg, #ff005c, #ff22d5);
}
#shop-items .hot-offer {
  left: 1px;
  background: linear-gradient(135deg, #ff9800, #ff5722);
}
#storage-modal .hot-offer {
  left: 1px;
  background: linear-gradient(135deg, #ff005c, #ff22d5);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Улучшенный бейдж скидки */
.discount-badge {
    background: linear-gradient(135deg, #ff4444, #ff6b6b);
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(255, 68, 68, 0.3);
}

/* Позиционирование для элементов с горячим предложением */
.shop-item {
    position: relative;
    overflow: visible;
}

.shop-item:hover .hot-offer {
    animation: pulse 0.5s infinite;
}

.shop-item:hover .discount-badge {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}
/* Дополнительные эффекты для горячих предложений */
.hot-offer::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -5px;
    width: 10px;
    height: 10px;
    background: #ff5722;
    transform: translateY(-50%) rotate(45deg);
    z-index: 0;
}

/* Подсветка всей карточки горячего предложения */
.shop-item:nth-child(1),
.shop-item:nth-child(4),
.shop-item:nth-child(7) {
    border: 2px solid rgba(255, 152, 0, 0.2);
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.05), rgba(255, 87, 34, 0.05));*/
    border-radius: 12px;
}

/* Более заметная кнопка для горячих предложений */
.shop-item:nth-child(1) .buy-btn,
.shop-item:nth-child(4) .buy-btn,
.shop-item:nth-child(7) .buy-btn{
   /*  background: linear-gradient(135deg, #ff9800, #ff5722);*/
   /*  font-weight: bold;*/
   /*  box-shadow: 0 3px 8px rgba(255, 152, 0, 0.4);*/
}

.shop-item:nth-child(1) .buy-btn:hover,
.shop-item:nth-child(4) .buy-btn:hover,
.shop-item:nth-child(7) .buy-btn:hover{
  /*  background: linear-gradient(135deg, #ff5722, #ff9800);*/
  /*  transform: translateY(-2px);*/
  /*  box-shadow: 0 5px 12px rgba(255, 152, 0, 0.5);*/
}
/* Колонка 1: Игрок (макс ширина 60px) */
#top-players-list td:nth-child(1) {
    max-width: 120px;
    overflow: hidden;
    white-space: nowrap;
}
/* Бегущая строка с выигрышами */
.marquee-container {
    width: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 140, 0, 0.1));
    border-radius: 8px;
    padding: 10px 0;
    margin: 15px 0;
    border: 1px solid rgba(255, 193, 7, 0.3);
    position: relative;
}

.marquee-track {
    display: flex;
    width: fit-content;
    animation: marquee 60s linear infinite;
    white-space: nowrap;
}

.marquee-item {
    display: inline-block;
    padding: 5px 20px;
    margin: 0 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.marquee-item .ton-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: linear-gradient(45deg, #0088cc, #00aaff);
    border-radius: 50%;
    margin: 0 2px;
    vertical-align: middle;
}

@keyframes marquee {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Останавливаем анимацию при наведении */
.marquee-container:hover .marquee-track {
    animation-play-state: paused;
}
.visible{
    display: none;
}
/* Кнопка мастерской (аналогично колесу) */
#gifts-btn {
    position: fixed;
    top: 46%;
    right: 10px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #9C27B0, #7B1FA2);
    color: white;
    border: none;
    font-size: 28px;
    cursor: pointer;
    z-index: 99;
    box-shadow: 0 4px 15px rgba(156, 39, 176, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: gentleSwing 3s ease-in-out infinite;
    box-shadow: 1px 5px 5px #000;
    overflow: hidden; /* Важно для бликов */
}

#gifts-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(156, 39, 176, 0.6);
}

#gifts-btn:active {
    transform: scale(0.95);
}
/* Кнопка пекарня в главном меню */
#bakery-btn {
    position: fixed;
    top: 66%;
    right: 10px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f32121, #a10d0d);
    color: white;
    border: none;
    font-size: 28px;
    cursor: pointer;
    z-index: 99;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: gentleSwing 4.5s ease-in-out infinite;
    box-shadow: 1px 5px 5px #000;
    overflow: hidden;
}

#bakery-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(156, 39, 176, 0.6);
}

#bakery-btn:active {
    transform: scale(0.95);
}
/* Кнопка в главном меню */
#wheel-btn {
    background: linear-gradient(135deg, #FFD700, #FF8C00);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(255, 165, 0, 0.3);
    transition: all 0.3s;
    position: fixed;
    top: 37%;
    right: 10px;
    animation: gentleSwing 5s ease-in-out infinite;
    overflow: hidden;
    box-shadow: 1px 5px 5px #000;
}

#wheel-btn:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 6px 15px rgba(255, 165, 0, 0.5);
}

/* Контейнер подарков в модалке */
.gifts-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    max-height: 70vh;
    overflow-y: auto;
}

/* Карточка подарка */
.gift-card {
    background: linear-gradient(135deg, #fafafa, #f5f5f5);
    border-radius: 15px;
    border: 2px solid #e0e0e0;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    min-height: 350px; /* Увеличенная высота */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.gift-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: #9C27B0;
}

#lab-btn {
    position: fixed;
    top: 56%;
    right: 10px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: white;
    border: none;
    font-size: 28px;
    cursor: pointer;
    z-index: 99;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: gentleSwing 4s ease-in-out infinite;
    box-shadow: 1px 5px 5px #000;
    overflow: hidden;
}

/* ★★★ НОВАЯ КНОПКА: ЗАГАДКА ДНЯ ★★★ */
#puzzle-btn {
    position: fixed;
    top: 76%;
    right: 10px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2196F3, #0D47A1);
    color: white;
    border: none;
    font-size: 28px;
    cursor: pointer;
    z-index: 99;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: gentleSwing 4.5s ease-in-out infinite;
    box-shadow: 1px 5px 5px #000;
    overflow: hidden;
}

#puzzle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Контейнер для картинки с прогрессом */
.gift-image-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 10px;
}

/* Изображение подарка */
.gift-image {
    width: 100%;
    height: 200px; /* Фиксированная высота */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 10px;
}

/* Затемнение несобранной части (работает как прогресс-бар) */
.gift-progress-overlay {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(to left, 
        rgba(0, 0, 0, 0.8) 0%, 
        rgba(0, 0, 0, 0.7) 20%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.1) 80%,
        transparent 100%);
    transition: width 0.5s ease;
    pointer-events: none;
    border-radius: 10px;
}

/* Если подарок собран полностью - убираем затемнение */
.gift-card.completed .gift-progress-overlay {
    display: none;
}

/* Индикаторы фрагментов */
.fragment-indicators {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin: 8px 0;
}

.fragment-indicator {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e0e0e0;
    border: 2px solid #9C27B0;
}

.fragment-indicator.collected {
    background: #9C27B0;
}

.fragment-indicator.active {
    background: #FF9800;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Прогресс-бар под картинкой */
.gift-progress-bar {
    width: 100%;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 5px;
}

.gift-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #9C27B0, #7B1FA2);
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 3px;
}

/* Название подарка */
.gift-name {
    font-weight: bold;
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
}

/* Прогресс фрагментов */
.gift-progress {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.gift-progress .fragments {
    font-weight: bold;
    color: #9C27B0;
}

/* Кнопка вывода */
.gift-action-btn {
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    transition: all 0.3s ease;
}

.gift-action-btn:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 3px 10px rgba(76, 175, 80, 0.4);
}

.gift-action-btn:disabled {
    background: #cccccc;
    color: #666666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Бейдж "Новый" */
.new-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #FF9800, #FF5722);
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: bold;
    z-index: 3;
}

/* Сообщение о загрузке */
.loading-message {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
    grid-column: 1 / -1;
}

/* Пустой список */
.empty-message {
    text-align: center;
    padding: 40px;
    color: #666;
    grid-column: 1 / -1;
}

.empty-message h3 {
    color: #9C27B0;
    margin-bottom: 10px;
}

#upgrade-modal h3 {
    margin-bottom: 10px;
    color: #2e7d32;
}

/* Панель информации о фрагментах */
.fragments-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: linear-gradient(135deg, #F3E5F5, #E1BEE7);
    border-radius: 10px;
    border: 1px solid #CE93D8;
    flex-direction: column;
}

.total-fragments {
    font-weight: bold;
    color: #7B1FA2;
}

.how-to-get {
    font-size: 12px;
    color: #666;
    text-align: center;
}
/* ДОБАВЛЯЕМ В КОНЕЦ ФАЙЛА CSS */

/* 1. Эффект пульсации для собранного подарка */
.gift-card.completed {
    animation: subtle-pulse 3s infinite;
    border: 2px solid #4CAF50;
}

@keyframes subtle-pulse {
    0%, 100% {
        box-shadow: 0 0 15px rgba(76, 175, 80, 0.4);
    }
    50% {
        box-shadow: 0 0 25px rgba(76, 175, 80, 0.8);
    }
}

/* 2. Блик, пробегающий по картинке */
.glow-effect {
    position: absolute;
    top: 0;
    left: -150%;
    width: 150%;
    height: 50%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.2) 30%,
        rgba(255, 255, 255, 0.6) 50%,
        rgba(255, 255, 255, 0.2) 70%,
        transparent 100%
    );
    animation: shine 3s infinite;
    z-index: 5;
    transform: skewX(-20deg);
    pointer-events: none;
}

@keyframes shine {
    0% {
        left: -150%;
    }
    100% {
        left: 150%;
    }
}

/* 3. Бейдж "СОБРАНО!" */
.completed-badge {
    position: absolute;
    top: 10px;
    right: -30px;
    background: linear-gradient(135deg, #4CAF50, #8BC34A);
    color: white;
    padding: 10px 25px;
    font-size: 12px;
    font-weight: bold;
    transform: rotate(45deg);
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* 4. Специальный стиль для кнопки "Собрать" */
.assemble-btn {
    background: linear-gradient(135deg, #FF9800, #FF5722);
    font-weight: bold;
}

.assemble-btn:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 3px 10px rgba(255, 152, 0, 0.4);
}

/* 5. Статус информация */
.status-info {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
    text-align: center;
    font-style: italic;
}

/* 6. Чтобы свечение было поверх картинки */
.gift-image-container {
    position: relative;
    z-index: 2;
}

/* 7. Для правильного позиционирования эффектов в карточке */
.gift-card {
    position: relative;
    overflow: hidden;
}
/* Анимация иконок животных в здании и кнопок */
@keyframes gentleSwing {
  0%, 100% { transform: rotate(-2deg); }
  50% { transform: rotate(2deg); }
}
/* Общая анимация для всех зданий */
@keyframes farmBuildingSway {
    0%, 100% { 
        transform: 
            perspective(500px) 
            rotateX(5deg) 
            rotateY(-2deg) 
            translateZ(10px); 
    }
    50% { 
        transform: 
            perspective(500px) 
            rotateX(5deg) 
            rotateY(2deg) 
            translateZ(15px) 
            translateY(-3px); 
    }
}

/* Применяем к зданиям */
.building {
    animation: farmBuildingSway 6s ease-in-out infinite;
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
}

/* Тень, которая движется отдельно */
.building::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 10%;
    width: 80%;
    height: 20px;
    background: radial-gradient(ellipse at center, 
        rgba(0,0,0,0.4) 0%, 
        rgba(0,0,0,0) 70%);
    animation: shadowSway 6s ease-in-out infinite;
    filter: blur(5px);
    z-index: -1;
}

@keyframes shadowSway {
    0%, 100% { 
        transform: translateX(0) scale(1);
        opacity: 0.4;
    }
    50% { 
        transform: translateX(10px) scale(0.9);
        opacity: 0.6;
    }
}
/* Линия с анимацией появления */
.modal-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25%;
    width: 50%;
    height: 3px;
    border-radius: 3px;
    animation: lineDraw 0.8s ease-out;
    transform-origin: center;
}
/* Золотая линия кошель и лидерборд и бонус*/
#tournaments-modal .modal-title::after {
    background: linear-gradient(90deg, 
        transparent 0%,
        #FFD700 30%,
        #FF9800 50%,
        #FFD700 70%,
        transparent 100%);
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}
#wallet-modal .modal-title::after {
    background: linear-gradient(90deg, 
        transparent 0%,
        #FFD700 30%,
        #FF9800 50%,
        #FFD700 70%,
        transparent 100%);
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

#puzzle-modal .modal-title::after {
    background: linear-gradient(90deg, 
        transparent 0%,
        #FFD700 30%,
        #FF9800 50%,
        #FFD700 70%,
        transparent 100%);
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

/* Синяя линия походы и мастерская */
#expedition-modal .modal-title::after {
    background: linear-gradient(90deg, 
        transparent 0%,
        #2196F3 30%,
        #03A9F4 50%,
        #2196F3 70%,
        transparent 100%);
    box-shadow: 0 2px 10px rgba(33, 150, 243, 0.3);
}

#gifts-modal .modal-title::after {
    background: linear-gradient(90deg, 
        transparent 0%,
        #2196F3 30%,
        #03A9F4 50%,
        #2196F3 70%,
        transparent 100%);
    box-shadow: 0 2px 10px rgba(33, 150, 243, 0.3);
}

/* Зеленая линия склад*/
#storage-modal .modal-title::after {
    background: linear-gradient(90deg, 
        transparent 0%,
        #4CAF50 30%,
        #8BC34A 50%,
        #4CAF50 70%,
        transparent 100%);
    box-shadow: 0 2px 10px rgba(76, 175, 80, 0.3);
}

/* Красная линия задания и кондитерка*/
#quests-modal .modal-title::after {
    background: linear-gradient(90deg, 
        transparent 0%,
        #F44336 30%,      /* Красный */
        #E53935 50%,      /* Темно-красный */
        #F44336 70%,      /* Красный */
        transparent 100%);
    box-shadow: 0 2px 10px rgba(76, 175, 80, 0.3);
}

#bakery-modal .modal-title::after {
    background: linear-gradient(90deg, 
        transparent 0%,
        #F44336 30%,      /* Красный */
        #E53935 50%,      /* Темно-красный */
        #F44336 70%,      /* Красный */
        transparent 100%);
    box-shadow: 0 2px 10px rgba(76, 175, 80, 0.3);
}

/* Маркет - фиолетовая линия */
#market-modal .modal-title::after {
    background: linear-gradient(90deg, 
        transparent 0%,
        #9C27B0 30%,      /* Фиолетовый */
        #7B1FA2 50%,      /* Темно-фиолетовый */
        #9C27B0 70%,      /* Фиолетовый */
        transparent 100%);
    box-shadow: 0 2px 10px rgba(76, 175, 80, 0.3);
}

/* Серая линия друзья и магазин */
#shop-modal .modal-title::after {
    background: linear-gradient(90deg, 
        transparent 0%,
        #757575 30%,      /* Серый */
        #616161 50%,      /* Темно-серый */
        #757575 70%,      /* Серый */
        transparent 100%);
    box-shadow: 0 2px 10px rgba(76, 175, 80, 0.3);
}
/* Серая линия друзья и магазин */
#friends-modal .modal-title::after {
    background: linear-gradient(90deg, 
        transparent 0%,
        #757575 30%,      /* Серый */
        #616161 50%,      /* Темно-серый */
        #757575 70%,      /* Серый */
        transparent 100%);
    box-shadow: 0 2px 10px rgba(76, 175, 80, 0.3);
}

@keyframes lineDraw {
    0% {
        transform: scaleX(0);
        opacity: 0;
    }
    100% {
        transform: scaleX(1);
        opacity: 1;
    }
}
/* РАЗРЕШАЕМ ВЫДЕЛЕНИЕ ТОЛЬКО ДЛЯ АДРЕСА КОШЕЛЬКА И MEMO */
#wallet-address,
#meme-id,
.wallet-address span {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
    cursor: text !important;
}
/* ===== ЛИЦЕНЗИИ ===== */
.licenses-container {
    max-height: 60vh;
    overflow-y: auto;
    padding: 10px;
}

.license-card {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 2px solid #dee2e6;
    transition: all 0.3s ease;
}

.license-card:hover {
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.license-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.license-icon {
    font-size: 32px;
    margin-right: 15px;
    background: var(--primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.license-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--text);
    flex: 1;
}

.license-description {
    color: var(--text-light);
    margin-bottom: 10px;
    line-height: 1.5;
    font-size: 14px;
    padding: 10px;
    background: rgba(255,255,255,0.5);
    border-radius: 8px;
}

.license-status {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 10px;
    width: 100%;
    text-align: center;
}

.license-status.active {
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: white;
}

.license-status.inactive {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
}

.license-expires {
    font-size: 14px;
    color: var(--text);
    margin-bottom: 10px;
    padding: 8px;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.license-timer {
    font-size: 16px;
    font-weight: bold;
    color: var(--primary);
    margin-top: 10px;
    padding: 10px;
    background: rgba(33, 150, 243, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(33, 150, 243, 0.3);
    text-align: center;
}

.buy-license-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.buy-license-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(33, 150, 243, 0.4);
}

.buy-license-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.license-coming-soon {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #fff3e0, #ffecb3);
    border-radius: 12px;
    border: 2px dashed #ff9800;
    margin-top: 20px;
}

.coming-soon-text {
    font-size: 16px;
    color: #e65100;
    font-weight: bold;
}

.license-info {
    margin-top: 20px;
    padding: 15px;
    background: rgba(33, 150, 243, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(33, 150, 243, 0.1);
    font-size: 13px;
    color: var(--text-light);
}

.license-info p {
    margin: 5px 0;
}

.license-info a {
    color: var(--primary);
    text-decoration: none;
}

.license-info a:hover {
    text-decoration: underline;
}
/* Горизонтальный блик */
#gifts-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: horizontalShine 3s ease-in-out infinite;
    border-radius: 50%;
}
@keyframes horizontalShine {
    0% {
        left: -100%;
    }
    20% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}
/* Горизонтальный блик */
#puzzle-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: horizontalShine2 3s ease-in-out infinite;
    border-radius: 50%;
}
@keyframes horizontalShine2 {
    0% {
        left: 100%; /* Стартуем справа */
    }
    20% {
        left: -100%; /* Двигаемся влево */
    }
    100% {
        left: -100%;
    }
}
/* Блик по кругу */
#wheel-btn::after {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 50%;
    background: conic-gradient(
        transparent,
        rgba(255, 255, 255, 0.8),
        transparent
    );
    animation: circleShine 3s linear infinite;
    opacity: 0;
    z-index: -1;
}

@keyframes circleShine {
    0% {
        transform: rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    40% {
        opacity: 1;
    }
    50% {
        transform: rotate(180deg);
        opacity: 0;
    }
    100% {
        transform: rotate(360deg);
        opacity: 0;
    }
}
/* Колесо улучшения животных - АБСОЛЮТНО ПРОЗРАЧНОЕ */
#upgrade-wheel-modal {
    background: transparent !important;
    backdrop-filter: none !important;
    pointer-events: none !important;
}

#upgrade-wheel-modal .simple-wheel {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0 0 4px #333, 0 15px 30px rgba(0,0,0,0.4);
    border: 2px solid #fff;
    background: #F44336;
}

/* Для более плавного перехода */
#upgrade-wheel-modal .simple-wheel.with-success {
    background: conic-gradient(
        from 0deg,
        #00FF00 0deg,
        #00FF00 calc(var(--success-deg) - 3deg),
        #FF9900 calc(var(--success-deg) - 2deg),
        #FF3300 var(--success-deg),
        #FF3300 360deg
    ) !important;
    
    /* Мягкое свечение по краям */
    box-shadow: 0 0 30px rgba(255, 51, 0, 0.8), 
                0 0 50px rgba(0, 255, 0, 0.6),
                inset 0 0 20px rgba(255, 255, 255, 0.3);
}

#upgrade-wheel-modal .simple-wheel::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    background: radial-gradient(circle at 30% 30%, #FFD700, #FF8C00);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid white;
    z-index: 10;
}

@keyframes spinWheel {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(var(--target-rotation)); }
}

#upgrade-wheel-modal .simple-wheel.spinning {
    animation: spinWheel 2s linear forwards;
}

.price-per-unit {
    background: rgba(255, 215, 0, 0.15);
    padding: 7px 3px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    color: #B8860B;
    white-space: nowrap;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.quantity-input {
    width: 45px;
    padding: 7px 3px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    text-align: center;
    font-size: 12px;
    background: white;
}
.buy-controls, .sell-controls {
    display: flex;
    align-items: center;
    gap: 5px;
}
#upgrade-rewards div{
    display: inline-block;
    width: 49%;
    margin-bottom: 5px;
}
#upgrade-cost div{
    margin-bottom: 5px;
    display: inline-block;
    width: 30%;
    font-size: 20px;
    font-weight: bold;
}
.chance-hint2{
    color: #4CAF50;
    font-size: 12px;
    margin-top: 5px;
    animation: indicatorPulse 2s infinite;
    text-align: center;
    font-style: italic;
}
/* ===== Амбассадорская программа ===== */

/* Общие стили для бейджей статуса */
.ambassador-status-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 15px;
    width: 100%;
}

/* Статусы */
.ambassador-status-pending {
    background: linear-gradient(135deg, #FF9800, #F57C00);
    color: white;
}

.ambassador-status-approved {
    color: white;
}

.ambassador-status-rejected {
    background: linear-gradient(135deg, #F44336, #D32F2F);
    color: white;
}

.ambassador-status-none {
    background: linear-gradient(135deg, #9E9E9E, #757575);
    color: white;
}

/* Бейдж уровня */
.ambassador-level-badge {
    display: inline-block;
    background: linear-gradient(135deg, #FFD700, #FFB347);
    color: #5D3A1A;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
    margin-left: 10px;
}

/* Карточка статуса */
.ambassador-status-card {
    background: linear-gradient(135deg, #fff, #f8f9fa);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.ambassador-status-card h3 {
    color: var(--text);
    margin: 10px 0;
}

/* Статистика */
.ambassador-stats {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
    flex-wrap: wrap;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 12px;
}

.ambassador-stat {
    text-align: center;
    padding: 10px;
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    border-radius: 12px;
    min-width: 80px;
}

.ambassador-stat-value {
    font-size: 24px;
    font-weight: bold;
    color: var(--frm, var(--primary));
}

.ambassador-stat-label {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 5px;
}

/* Информационный блок */
.ambassador-info-block {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    padding: 12px;
    margin-top: 15px;
    font-size: 13px;
    text-align: center;
}

.ambassador-info-block code {
    background: rgba(0, 0, 0, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    word-break: break-all;
}

/* Секция каналов */
.ambassador-channels-section {
    margin: 15px 0;
    padding: 15px;
    background: rgb(0 227 255 / 22%);
    border-radius: 12px;
    text-align: left;
}

/* Секция прогресса */
.ambassador-progress-section {
    margin: 15px 0;
    padding: 15px;
    background: rgba(255, 152, 0, 0.1);
    border-radius: 12px;
    text-align: left;
}

.ambassador-next-rewards {
    font-size: 13px;
    margin-top: 15px; 
    padding: 10px; 
    background: rgba(255, 152, 0, 0.1); 
    border-radius: 8px;
    line-height: 1.1rem;
}

.ambassador-next-rewards strong {
    color: var(--primary-dark);
}

/* Кнопка отправки */
#submit-ambassador-request:disabled {
    background: #ccc !important;
    cursor: not-allowed;
    transform: none;
}

/* Описание программы */
.ambassador-description {
    padding: 10px;
}

.ambassador-description ul {
    padding: 10px 0 0 20px;
    list-style: circle;
}

.ambassador-description ul li {
    padding: 5px;
}

.ambassador-description h4 {
    font-weight: bold;
    color: var(--primary);
    padding-top: 10px;
    font-size: 1.1rem;
}

.ambassador-description h3 {
    text-align: center;
}
.ambassador-referral-stats{
    margin: 10px 0;
    padding: 10px;
    background: rgb(0 160 158 / 17%);
    border-radius: 8px;
}
/* Базовый стиль для approved */
.ambassador-status-approved {
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
}

.buy-stars-btn{
    background: var(--gradient-accent);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

/* Стили по уровням */
.level-1 { background: linear-gradient(135deg, #D3D3D3, #696969); box-shadow: 0 0 8px rgba(105,105,105,0.5); animation: pulse 2s infinite;}
.level-2 { background: linear-gradient(135deg, #FFA500, #FF4500); box-shadow: 0 0 10px rgba(255,69,0,0.5); animation: pulse 2s infinite;}
.level-3 { background: linear-gradient(135deg, #F5F5F5, #A9A9A9); box-shadow: 0 0 10px rgba(169,169,169,0.5); animation: pulse 2s infinite;}
.level-4 { background: linear-gradient(135deg, #FFD700, #FFA000); box-shadow: 0 0 12px rgba(255,160,0,0.6); animation: pulse 2s infinite;}
.level-5 { background: linear-gradient(135deg, #FFFFFF, #CFD8DC); box-shadow: 0 0 12px rgba(207,216,220,0.6); animation: pulse 2s infinite;}
.level-6 { background: linear-gradient(135deg, #18FFFF, #00B0FF); box-shadow: 0 0 15px rgba(0,176,255,0.7); animation: pulse 2s infinite;}
.level-7 { background: linear-gradient(135deg, #EA80FC, #AA00FF); box-shadow: 0 0 20px rgba(170,0,255,0.8); animation: pulse 2s infinite; }

/* ===== ПАРТНЕРСКИЕ ЗАДАНИЯ ===== */

/* Кнопка партнерского задания (синий градиент для "Выполнить") */
.partner-quest-btn {
    transition: all 0.3s ease;
    font-weight: bold;
}

.partner-quest-btn:hover:not(:disabled) {
    transform: scale(1.02);
    filter: brightness(1.1);
}

/* Статус ожидания */
.partner-quest-status {
    font-size: 12px;
    margin-top: 8px;
    padding: 5px;
    border-radius: 8px;
    text-align: center;
}

.partner-quest-status.pending {
    background: rgba(255, 152, 0, 0.1);
    color: #F57C00;
    border: 1px solid rgba(255, 152, 0, 0.3);
}

.partner-quest-status.completed {
    background: rgba(76, 175, 80, 0.1);
    color: #2E7D32;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

/* Иконка партнера */
.partner-quest-icon {
    font-size: 20px;
    margin-right: 8px;
}

/* Анимация для новых заданий */
@keyframes partnerPulse {
    0%, 100% { border-color: #2196F3; }
    50% { border-color: #64B5F6; }
}

.quest-item[data-partner="new"] {
    animation: partnerPulse 2s infinite;
}