/* Wallet & Gifts Styles */
.wallet-container {
  padding: 20px;
  max-width: 600px;
  margin: 0 auto;
}

.wallet-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 20px;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
}

.wallet-balance {
  text-align: center;
  color: white;
}

.wallet-balance h2 {
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: 5px;
  font-family: var(--font-tajawal);
}

.wallet-balance .amount {
  font-size: 42px;
  font-weight: 800;
  font-family: var(--font-cairo);
}

.wallet-balance .currency {
  font-size: 18px;
  opacity: 0.8;
}

.wallet-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.wallet-btn {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all 0.3s;
  font-family: var(--font-tajawal);
}

.wallet-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.wallet-section {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid var(--border-subtle);
}

.wallet-section h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-primary);
  font-family: var(--font-cairo);
}

.transaction-item {
  display: flex;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.3s;
}

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

.transaction-item:hover {
  background: var(--hover-bg);
}

.transaction-icon {
  width: 45px;
  height: 45px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 15px;
  font-size: 20px;
}

.transaction-icon.deposit {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.transaction-icon.withdraw {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.transaction-icon.gift_sent {
  background: rgba(236, 72, 153, 0.15);
  color: #ec4899;
}

.transaction-icon.gift_received {
  background: rgba(168, 85, 247, 0.15);
  color: #a855f7;
}

.transaction-icon.bonus {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
}

.transaction-info {
  flex: 1;
}

.transaction-info h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 3px;
  color: var(--text-primary);
  font-family: var(--font-tajawal);
}

.transaction-info p {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-tajawal);
}

.transaction-amount {
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-cairo);
}

.transaction-amount.positive {
  color: #22c55e;
}

.transaction-amount.negative {
  color: #ef4444;
}

/* Gifts Grid */
.gifts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
  padding: 10px;
}

.gift-item {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 15px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
}

.gift-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  border-color: var(--primary);
}

.gift-item.free {
  border-color: #22c55e;
}

.gift-image {
  width: 60px;
  height: 60px;
  margin: 0 auto 10px;
  object-fit: contain;
}

.gift-name {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--text-primary);
  font-family: var(--font-tajawal);
}

.gift-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-cairo);
}

.gift-price.free {
  color: #22c55e;
}

.gift-rarity {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.gift-rarity.common {
  background: #9ca3af;
}

.gift-rarity.rare {
  background: #3b82f6;
}

.gift-rarity.epic {
  background: #a855f7;
}

.gift-rarity.legendary {
  background: #f59e0b;
  box-shadow: 0 0 10px #f59e0b;
}

/* Gift Modal */
.gift-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
}

.gift-modal-content {
  background: var(--card-bg);
  border-radius: 24px;
  padding: 30px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  border: 1px solid var(--border-subtle);
}

.gift-modal-image {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  object-fit: contain;
}

.gift-modal h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
  font-family: var(--font-cairo);
}

.gift-modal-price {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 20px;
  font-family: var(--font-cairo);
}

.gift-modal-quantity {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

.gift-modal-quantity button {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: var(--hover-bg);
  color: var(--text-primary);
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
}

.gift-modal-quantity button:hover {
  background: var(--primary);
  color: white;
}

.gift-modal-quantity span {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-cairo);
}

.gift-modal-message {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: var(--hover-bg);
  color: var(--text-primary);
  font-family: var(--font-tajawal);
  margin-bottom: 20px;
  outline: none;
}

.gift-modal-actions {
  display: flex;
  gap: 10px;
}

.gift-modal-actions button {
  flex: 1;
  padding: 14px;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  font-family: var(--font-tajawal);
}

.gift-modal-actions .btn-cancel {
  background: var(--hover-bg);
  color: var(--text-primary);
}

.gift-modal-actions .btn-send {
  background: var(--primary);
  color: white;
}

.gift-modal-actions .btn-send:hover {
  background: var(--accent);
}

/* Received/Sent Gifts */
.gift-history-item {
  display: flex;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid var(--border-subtle);
  gap: 15px;
}

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

.gift-history-image {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.gift-history-info {
  flex: 1;
}

.gift-history-info h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 3px;
  color: var(--text-primary);
  font-family: var(--font-tajawal);
}

.gift-history-info p {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-tajawal);
}

.gift-history-user {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gift-history-user img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.gift-history-user span {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--font-tajawal);
}

.gift-history-quantity {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-cairo);
}

/* Tabs */
.wallet-tabs {
  display: flex;
  background: var(--hover-bg);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 20px;
}

.wallet-tab {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-family: var(--font-tajawal);
}

.wallet-tab.active {
  background: var(--card-bg);
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 40px 20px;
}

.empty-state svg {
  width: 60px;
  height: 60px;
  margin-bottom: 15px;
  opacity: 0.5;
}

.empty-state h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--text-primary);
  font-family: var(--font-cairo);
}

.empty-state p {
  font-size: 13px;
  color: var(--text-muted);
  font-family: var(--font-tajawal);
}
