/* ============================================================
   shop.css — Withdraw dialog, shop items, withdrawals list
   ============================================================ */

/* DIALOGO DE RESGATE */
#withdraw-dialog-overlay {
    background: transparent;
}

#withdraw-dialog {
    margin: 0;
    min-width: 100px;
    max-width: 420px;
}



.withdraw-balance {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
}

.withdraw-balance-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.withdraw-balance-item:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.withdraw-label {
    color: #aaa;
    font-size: 14px;
}

.withdraw-value {
    font-size: 18px;
    font-weight: bold;
    color: #f0c040;
}

.withdraw-money {
    color: #4ade80;
}


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

.withdraw-form input,
.withdraw-amount input {
    width: 100%;
    box-sizing: border-box;
}

/* Floating label */
.float-label-wrap {
    position: relative;
    margin-bottom: 18px;
}

.float-label-wrap .float-input {
    margin: 0;
    padding-top: 18px;
    padding-bottom: 8px;
}

.float-label-wrap .float-label {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: rgba(255,255,255,0.4);
    pointer-events: none;
    transition: all 0.2s ease;
    background: transparent;
    padding: 0 4px;
}

.float-label-wrap .float-input:focus ~ .float-label,
.float-label-wrap .float-input:not(:placeholder-shown) ~ .float-label {
    top: 0;
    transform: translateY(-50%);
    font-size: 11px;
    color: #ffd700;
    background: #1a1a2e;
}

.withdraw-amount {
    margin-bottom: 20px;
}

.withdraw-amount-label {
    color: #aaa;
    font-size: 13px;
    margin-bottom: 10px;
}

.withdraw-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.withdraw-option-btn {
    padding: 12px 8px;
    border: 2px solid #333;
    border-radius: 10px;
    background: #1a1a2e;
    color: #e0e0e0;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.withdraw-option-btn:hover {
    border-color: #f59e0b;
    background: #1a1a2e;
}

.withdraw-option-btn.selected {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}


.withdraw-preview {
    color: #aaa;
    font-size: 13px;
    margin-top: 8px;
}

#withdraw-preview-value {
    color: #4ade80;
    font-weight: bold;
}

.dialog-confirm-btn {
    width: 100%;
    padding: 12px;
    background: rgba(240, 192, 64, 0.3);
    border: 1px solid rgba(240, 192, 64, 0.5);
    border-radius: 6px;
    color: #f0c040;
    font-size: 13px;
    font-weight: bold;
    font-family: 'Almendra', serif;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 12px;
}

.dialog-confirm-btn:hover:not(:disabled) {
    background: rgba(240, 192, 64, 0.4);
    border-color: rgba(240, 192, 64, 0.7);
}

.dialog-confirm-btn:disabled {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #666;
    cursor: not-allowed;
}

.withdraw-error {
    color: #f87171;
    font-size: 12px;
    text-align: center;
    margin-top: 10px;
    min-height: 16px;
}

/* LOJA */
.shop-title {
    color: #f0c040;
    font-size: 18px;
    text-align: center;
    margin-bottom: 4px;
}

.shop-subtitle {
    color: #888;
    font-size: 11px;
    text-align: center;
    margin-bottom: 15px;
}

.shop-section-title {
    color: #e0e0e0;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.shop-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.shop-item-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.shop-item-info {
    flex: 1;
}

.shop-item-name {
    color: #e0e0e0;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 2px;
}

.shop-item-desc {
    color: #888;
    font-size: 10px;
    line-height: 1.3;
}

.shop-item-price {
    background: linear-gradient(135deg, #c09030, #f0c040);
    color: #1a1a2e;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    flex-shrink: 0;
    transition: opacity 0.2s;
}

.shop-item-price:hover {
    opacity: 0.85;
}

/* Item de tecnologia já adquirida */
.shop-item-owned {
    opacity: 0.6;
    background: rgba(76, 175, 80, 0.05);
}

.shop-item-owned-badge {
    padding: 6px 12px;
    background: rgba(76, 175, 80, 0.2);
    color: #4ade80;
    border-radius: 6px;
    font-weight: 600;
    font-size: 11px;
}


/* MEUS RESGATES */
#withdrawals-dialog-overlay {
    background: transparent;
}

#withdrawals-dialog {
    min-width: 340px;
    max-width: 420px;
}

.withdrawal-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 10px;
}

.withdrawal-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
}

.withdrawal-item-row:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.withdrawal-item-label {
    color: #888;
    font-size: 12px;
}

.withdrawal-item-value {
    color: #e0e0e0;
    font-size: 12px;
    font-weight: 500;
}
