/* ===== Economy Module Styles ===== */

/* Balance Card - Consistent with existing card styles */
.duel-balance-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: var(--tg-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    margin-bottom: 16px;
}

.balance-info {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.balance-label {
    font-size: 0.9rem;
    color: var(--tg-hint);
}

.balance-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--tg-text);
}

.balance-coin {
    font-size: 0.9rem;
    color: var(--tg-hint);
}

/* Daily Bonus Button - Small variant */
.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Coin Floater Animation */
.coin-floater {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-correct);
    opacity: 0;
    pointer-events: none;
    z-index: 100;
}

.coin-floater.animate {
    animation: coinFloat 1s ease-out forwards;
}

@keyframes coinFloat {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0.5);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -100%) scale(1.2);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -150%) scale(1);
    }
}

/* Transaction List */
.transaction-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 0.5px solid var(--tg-separator);
}

.transaction-item:last-child {
    border-bottom: none;
}

.transaction-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.transaction-type {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--tg-text);
}

.transaction-desc {
    font-size: 0.8rem;
    color: var(--tg-hint);
}

.transaction-amount {
    font-size: 1rem;
    font-weight: 600;
}

.transaction-amount.positive {
    color: var(--color-correct);
}

.transaction-amount.negative {
    color: var(--tg-destructive);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 32px 16px;
    color: var(--tg-hint);
    font-size: 0.95rem;
}

/* Coin Icon (inline) */
.coin-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

/* Ensure coin images display properly */
.coin-icon img {
    width: 100%;
    height: 100%;
    max-width: 32px;
    max-height: 32px;
    object-fit: contain;
}

/* Coin icon with text (no image) */
.coin-icon-text::before {
    content: '🪙';
    font-size: 14px;
}

/* Challenge details economy display */
.challenge-balance {
    text-align: center;
    padding: 12px;
    margin: 16px 0;
    background: var(--tg-bg-secondary);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--tg-hint);
}

.challenge-balance span {
    font-weight: 600;
    color: var(--tg-text);
}

/* ===== Shop / Buy Row Button ===== */
.buy-row-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 280px;
    margin: 8px auto 0;
    padding: 10px 16px;
    background: linear-gradient(135deg, var(--color-present) 0%, #e6a700 100%);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 8px rgba(234, 179, 8, 0.3);
}

.buy-row-btn:active {
    transform: scale(0.98);
    box-shadow: 0 1px 4px rgba(234, 179, 8, 0.2);
}

.buy-row-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.buy-row-btn.hidden {
    display: none !important;
}

.buy-row-icon {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
}

.buy-row-text {
    flex: 1;
    text-align: center;
}

.buy-row-price {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}

.buy-row-price .coin-icon {
    font-size: 14px;
}

.buy-row-price .coin-icon::before {
    content: none; /* Disable the default coin icon, we use emoji */
}

/* ===== Economy Actions ===== */
/* Fixed position above keyboard */
.economy-actions {
    position: fixed;
    bottom: calc(220px + var(--safe-area-bottom));  /* Just above keyboard */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: calc(100vw - 20px);
    max-width: 460px;
    padding: 8px 0;
    z-index: 140;  /* Below keyboard (150) but above content */
    background: var(--tg-bg);  /* Add background to cover grid if overlap */
}

.economy-actions.hidden {
    display: none !important;
}

/* Side buttons (Eliminate left, Reveal right) - attached to screen edges */
.economy-side-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 44px;
    height: 44px;
    background: var(--tg-button);
    color: var(--tg-button-text);
    border: none;
    border-radius: 50%;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.65rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.economy-side-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.economy-side-btn:active {
    transform: scale(0.95);
}

.economy-side-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.economy-side-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: currentColor;
}

.economy-side-price {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 0.65rem;
    opacity: 0.9;
}

.economy-side-price .coin-icon {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
    color: currentColor;
}

/* Center button (Buy Row) */
.economy-center-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--tg-button);
    color: var(--tg-button-text);
    border: none;
    border-radius: var(--radius-full);
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.economy-center-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.economy-center-btn:active {
    transform: scale(0.98);
}

.economy-center-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.economy-center-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: currentColor;
}

.economy-center-text {
    margin: 0 4px;
}

.economy-center-price {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
}

.economy-center-price .coin-icon {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    color: currentColor;
}

/* ===== Hint Buttons (Legacy - kept for compatibility) ===== */
.hint-buttons {
    display: flex;
    gap: 8px;
    margin: 0 8px;
}

.hint-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 10px;
    background: var(--tg-bg);
    border: 1px solid var(--tg-separator);
    border-radius: var(--radius-sm);
    color: var(--tg-text);
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.hint-btn:hover {
    background: var(--tg-bg-secondary);
}

.hint-btn:active {
    transform: scale(0.95);
}

.hint-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.hint-btn.hidden {
    display: none !important;
}

.hint-btn-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: currentColor;
}

.hint-btn-price {
    display: flex;
    align-items: center;
    gap: 2px;
    color: var(--tg-hint);
}

.hint-btn-price .coin-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: currentColor;
}

.hint-btn.free .hint-btn-price {
    color: var(--color-correct);
}

/* ===== Wheel of Fortune ===== */
.wheel-container {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 0 auto;
}

.wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
    /* Default gradient - will be overridden by JS */
    background: conic-gradient(
        from 0deg,
        #f59e0b 0deg 51.4deg,
        #10b981 51.4deg 102.8deg,
        #3b82f6 102.8deg 154.3deg,
        #8b5cf6 154.3deg 205.7deg,
        #f59e0b 205.7deg 257.1deg,
        #10b981 257.1deg 308.6deg,
        #3b82f6 308.6deg 360deg
    );
    border: 4px solid var(--tg-separator);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
}

.wheel-segment {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 110px;
    height: 0;
    transform-origin: 0 0;
    transform: rotate(var(--rotation, 0deg));
    z-index: 2;
    pointer-events: none;
}

.wheel-segment-label {
    position: absolute;
    left: 70px;
    top: 0;
    /* transform set dynamically in JS for counter-rotation */
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 4px 7px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 6px;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.wheel-prize-text {
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    font-family: 'Vazirmatn', sans-serif;
}

.wheel-prize-icon {
    width: 16px;
    height: 16px;
}

.wheel-prize-svg {
    width: 18px;
    height: 18px;
    color: white;
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.5));
}

.wheel-pointer {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 25px solid var(--tg-text);
    z-index: 10;
}

.wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--tg-bg);
    border: 3px solid var(--tg-separator);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 5;
}

.spin-btn {
    width: 100%;
    max-width: 200px;
    margin: 24px auto 0;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--color-correct) 0%, #059669 100%);
    border: none;
    border-radius: var(--radius-lg);
    color: white;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.spin-btn:active {
    transform: scale(0.98);
}

.spin-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--tg-hint);
    box-shadow: none;
}

.wheel-result {
    text-align: center;
    margin-top: 16px;
    padding: 12px;
    background: var(--tg-bg-secondary);
    border-radius: var(--radius-md);
}

.wheel-result-title {
    font-size: 0.9rem;
    color: var(--tg-hint);
    margin-bottom: 4px;
}

.wheel-result-prize {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-correct);
}

.wheel-cooldown {
    text-align: center;
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--tg-hint);
}

/* ===== Hint Effects ===== */

/* Hint position indicator - green outline on tile showing where letter goes */
.tile.hint-position {
    border: 3px solid var(--color-correct) !important;
    background: rgba(34, 197, 94, 0.1);
    animation: hintPositionPulse 0.6s ease-out;
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.4);
}

@keyframes hintPositionPulse {
    0% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 20px rgba(34, 197, 94, 0.5);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 12px rgba(34, 197, 94, 0.4);
    }
}

/* Hint key indicator - green highlight on keyboard showing which letter */
.key.hint-key {
    background: var(--color-correct) !important;
    color: white !important;
    animation: hintKeyPulse 0.6s ease-out;
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.5);
}

@keyframes hintKeyPulse {
    0% {
        transform: scale(0.9);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Revealed letter tile (legacy - kept for compatibility) */
.tile.hint-revealed {
    border-color: var(--color-correct) !important;
    background: rgba(34, 197, 94, 0.15);
    animation: hintPulse 0.5s ease-out;
}

@keyframes hintPulse {
    0% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
    }
    100% {
        transform: scale(1);
    }
}

/* Eliminated key (from hint) */
.key.eliminated {
    opacity: 0.3 !important;
    background: var(--color-absent) !important;
    color: rgba(255, 255, 255, 0.5) !important;
    pointer-events: none;
    text-decoration: line-through;
}

/* Used hint button - permanently disabled */
.economy-side-btn.used {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
    filter: grayscale(0.5);
}

/* ===== Wheel Modal ===== */
.wheel-content {
    max-width: 380px;
}

.wheel-body {
    text-align: center;
    padding: 16px;
}

.wheel-subtitle {
    font-size: 0.9rem;
    color: var(--tg-hint);
    margin-bottom: 20px;
}

/* ===== Wheel FAB Button ===== */
.wheel-fab-container {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    z-index: 10;
}

.wheel-fab {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.2);
    background: var(--tg-bg-secondary);
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s, filter 0.2s;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
}

.wheel-fab:hover:not(:disabled) {
    transform: scale(1.08);
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.4);
}

.wheel-fab:active:not(:disabled) {
    transform: scale(0.95);
}

.wheel-fab:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    filter: grayscale(0.5);
}

.wheel-fab-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        #f59e0b 0deg 45deg,
        #10b981 45deg 90deg,
        #3b82f6 90deg 135deg,
        #8b5cf6 135deg 180deg,
        #f59e0b 180deg 225deg,
        #10b981 225deg 270deg,
        #3b82f6 270deg 315deg,
        #8b5cf6 315deg 360deg
    );
    border: 2px solid var(--tg-separator);
    position: relative;
}

.wheel-fab-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: var(--tg-bg);
    border-radius: 50%;
    border: 2px solid var(--tg-separator);
}

.wheel-fab-timer {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--tg-hint);
    background: var(--tg-bg-secondary);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Vazirmatn', sans-serif;
}

/* ===== Shop Modal ===== */
.shop-content {
    max-width: 400px;
}

.shop-body {
    padding: 16px;
}

.shop-balance-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--tg-bg-secondary);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

.shop-balance-label {
    font-size: 0.9rem;
    color: var(--tg-hint);
}

.shop-balance-value {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--tg-text);
}

.shop-coin-icon {
    width: 18px;
    height: 18px;
    color: #f59e0b;
}

/* Shop Items List */
.shop-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.shop-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--tg-bg);
    border: 1px solid var(--tg-separator);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.shop-item:hover {
    border-color: var(--tg-button);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.shop-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--tg-bg-secondary);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.shop-item-icon svg {
    width: 24px;
    height: 24px;
    color: var(--tg-button);
}

.shop-item-info {
    flex: 1;
    min-width: 0;
}

.shop-item-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--tg-text);
    margin-bottom: 2px;
}

.shop-item-desc {
    font-size: 0.8rem;
    color: var(--tg-hint);
    margin-bottom: 4px;
    line-height: 1.3;
}

.shop-item-owned {
    font-size: 0.75rem;
    color: var(--tg-hint);
}

.shop-item-owned .owned-count {
    font-weight: 600;
    color: var(--color-correct);
}

/* Shop Buy Button */
.shop-buy-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    background: var(--tg-button);
    color: var(--tg-button-text);
    border: none;
    border-radius: var(--radius-full);
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.shop-buy-btn:hover:not(:disabled) {
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.shop-buy-btn:active:not(:disabled) {
    transform: scale(0.98);
}

.shop-buy-btn.disabled,
.shop-buy-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.shop-buy-btn .shop-price {
    font-weight: 600;
}

.shop-buy-btn .shop-btn-coin {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.shop-buy-btn .coin-icon {
    width: 14px;
    height: 14px;
}

.shop-buy-btn .coin-icon::before {
    content: none;
}

.shop-buy-btn .coin-icon::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    background: currentColor;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.5'%3E%3Cpath d='M13.73 3.51L15.49 7.03C15.73 7.52 16.37 7.99 16.91 8.08L20.1 8.61C22.14 8.95 22.62 10.43 21.15 11.89L18.67 14.37C18.25 14.79 18.02 15.6 18.15 16.18L18.86 19.25C19.42 21.68 18.13 22.62 15.98 21.35L12.99 19.58C12.45 19.26 11.56 19.26 11.01 19.58L8.02 21.35C5.88 22.62 4.58 21.67 5.14 19.25L5.85 16.18C5.98 15.6 5.75 14.79 5.33 14.37L2.85 11.89C1.39 10.43 1.86 8.95 3.9 8.61L7.09 8.08C7.62 7.99 8.26 7.52 8.5 7.03L10.26 3.51C11.22 1.6 12.78 1.6 13.73 3.51Z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.5'%3E%3Cpath d='M13.73 3.51L15.49 7.03C15.73 7.52 16.37 7.99 16.91 8.08L20.1 8.61C22.14 8.95 22.62 10.43 21.15 11.89L18.67 14.37C18.25 14.79 18.02 15.6 18.15 16.18L18.86 19.25C19.42 21.68 18.13 22.62 15.98 21.35L12.99 19.58C12.45 19.26 11.56 19.26 11.01 19.58L8.02 21.35C5.88 22.62 4.58 21.67 5.14 19.25L5.85 16.18C5.98 15.6 5.75 14.79 5.33 14.37L2.85 11.89C1.39 10.43 1.86 8.95 3.9 8.61L7.09 8.08C7.62 7.99 8.26 7.52 8.5 7.03L10.26 3.51C11.22 1.6 12.78 1.6 13.73 3.51Z'/%3E%3C/svg%3E");
    mask-size: contain;
    -webkit-mask-size: contain;
}

/* Shop Toast Notifications */
.shop-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    padding: 12px 20px;
    background: var(--tg-text);
    color: var(--tg-bg);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
    max-width: 90%;
    text-align: center;
}

.shop-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.shop-toast-success {
    background: var(--color-correct);
    color: white;
}

.shop-toast-error {
    background: var(--tg-destructive);
    color: white;
}

/* Inventory Badge on Buttons */
.inventory-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--color-correct);
    color: white;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.inventory-badge.empty {
    background: var(--tg-hint);
}

/* Clickable coin display */
.coin-display {
    cursor: pointer;
    transition: all var(--transition-fast);
}

.coin-display:hover {
    transform: scale(1.05);
}

.coin-display:active {
    transform: scale(0.95);
}

/* ==================== Shop Tabs ==================== */

.shop-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    padding: 4px;
    background: var(--tg-bg);
    border-radius: var(--radius-md);
}

.shop-tab {
    flex: 1;
    padding: 10px 16px;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--tg-hint);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.shop-tab:hover {
    color: var(--tg-text);
    background: var(--tg-bg-secondary);
}

.shop-tab.active {
    background: var(--tg-button);
    color: var(--tg-button-text);
}

/* ==================== Coin Packages ==================== */

.coin-package {
    position: relative;
}

.coin-package.popular {
    border-color: var(--color-present);
    background: linear-gradient(135deg, var(--tg-bg) 0%, rgba(234, 179, 8, 0.1) 100%);
}

.coin-package .coin-icon {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 50%;
}

.coin-package .coin-icon img {
    filter: brightness(0) invert(1);
}

.package-badge {
    position: absolute;
    top: -8px;
    right: 12px;
    padding: 4px 10px;
    background: var(--color-present);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    box-shadow: 0 2px 6px rgba(234, 179, 8, 0.4);
}

.package-bonus {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-correct);
    margin-top: 2px;
}

/* Star button style */
.star-btn {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
}

.star-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.star-btn .star-icon {
    font-size: 1rem;
}

/* Shop Notice */
.shop-notice {
    padding: 24px;
    text-align: center;
    color: var(--tg-hint);
}

.shop-notice p {
    margin: 0;
    font-size: 0.9rem;
}
