* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, Roboto, Arial, sans-serif;
}

body {
  background: #0d1b2a;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.container {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

h1 {
  color: #0d1b2a;
  font-size: 22px;
  text-align: center;
}

.subtitle {
  text-align: center;
  color: #6b7280;
  font-size: 13px;
  margin-bottom: 20px;
}

.tabs {
  display: flex;
  margin-bottom: 20px;
  border-radius: 10px;
  overflow: hidden;
  background: #f1f3f5;
}

.tab-btn {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
}

.tab-btn.active {
  background: #1d4ed8;
  color: white;
}

.tab-content {
  display: none;
  flex-direction: column;
  gap: 10px;
}

.tab-content.active {
  display: flex;
}

label {
  font-size: 13px;
  color: #374151;
  margin-top: 6px;
}

select, input {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 15px;
}

.buy-btn {
  margin-top: 12px;
  padding: 14px;
  background: #1d4ed8;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.buy-btn:active {
  background: #1e40af;
}

.result-box {
  margin-top: 16px;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
}

.result-box.success {
  background: #dcfce7;
  color: #166534;
}

.result-box.error {
  background: #fee2e2;
  color: #991b1b;
}

.hidden {
  display: none;
}

.user-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.user-bar span {
  font-size: 14px;
  font-weight: 600;
  color: #0d1b2a;
}

.logout-btn {
  background: #fee2e2;
  color: #991b1b;
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.logout-btn:active {
  background: #fecaca;
}

.secondary-btn {
  background: #e5e7eb;
  color: #374151;
  margin-top: 8px;
}

.secondary-btn:active {
  background: #d1d5db;
}

.meter-name {
  padding: 10px;
  border-radius: 8px;
  font-size: 13px;
  text-align: center;
}

.meter-name.success {
  background: #dcfce7;
  color: #166534;
}

.meter-name.error {
  background: #fee2e2;
  color: #991b1b;
}
.wallet-card {
  background: linear-gradient(135deg, #1d4ed8, #1e3a8a);
  border-radius: 12px;
  padding: 18px;
  text-align: center;
  margin-bottom: 16px;
}

.wallet-label {
  color: #bfdbfe;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.wallet-amount {
  color: white;
  font-size: 28px;
  font-weight: 800;
  margin: 6px 0 12px;
}

.fund-btn {
  background: white;
  color: #1d4ed8;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.fund-btn:active {
  background: #dbeafe;
}

.fund-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
  padding: 14px;
  background: #f1f5f9;
  border-radius: 10px;
}

.fund-btn-row {
  display: flex;
  gap: 8px;
}

.fund-btn-row .buy-btn,
.fund-btn-row .secondary-btn {
  flex: 1;
  margin-top: 0;
}

/* ==========================================================
   WALLET EYE TOGGLE (Boye/Nuna Balance)
   ========================================================== */

.wallet-balance-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 6px 0 12px;
}

.wallet-balance-row .wallet-amount {
  margin: 0;
}

.wallet-eye-btn {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wallet-eye-btn:active {
  background: rgba(255, 255, 255, 0.3);
}

/* ==========================================================
   RECENT TRANSACTIONS
   ========================================================== */

#showTransactionsBtn {
  margin-bottom: 12px;
}

.recent-transactions-section {
  margin-bottom: 16px;
}

.recent-transactions-title {
  font-size: 14px;
  color: #0d1b2a;
  margin-bottom: 8px;
}

.recent-transactions-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
}

.recent-transactions-list p {
  font-size: 13px;
  color: #6b7280;
  text-align: center;
  padding: 10px;
}

.transaction-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f7f7f7;
  border-radius: 10px;
  padding: 10px;
}

.tx-icon {
  font-size: 20px;
  width: 32px;
  text-align: center;
  flex-shrink: 0;
}

.tx-body {
  flex: 1;
  min-width: 0;
}

.tx-desc {
  font-size: 13px;
  font-weight: 600;
  color: #0d1b2a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tx-date {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 2px;
}

.tx-status {
  font-size: 11px;
  font-weight: 700;
  margin-top: 2px;
}

.tx-status.tx-success {
  color: #166534;
}

.tx-status.tx-failed {
  color: #991b1b;
}

.tx-amount {
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
}

.tx-amount.tx-credit {
  color: #166534;
}

.tx-amount.tx-debit {
  color: #991b1b;
}
/* ==========================================================
   SAKA WANNAN A KARSHEN style.css
   ========================================================== */

.hidden {
  display: none !important;
}

.market-nav {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 100;
}

.market-nav-btn {
  background: #0d1b2a;
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
}

.market-container {
  max-width: 480px;
}

.market-search {
  width: 100%;
  padding: 10px;
  margin-bottom: 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
}
.market-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}


.market-card {
  border: 1px solid #eee;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.market-card-img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  background: #f0f0f0;
}

.market-card-noimg {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 12px;
}

.market-card-body {
  padding: 8px;
}

.market-card-body h4 {
  font-size: 14px;
  margin-bottom: 4px;
}

.market-card-price {
  font-weight: bold;
  color: #0d1b2a;
  font-size: 14px;
}

.market-price-ask {
  color: #6b7280;
  font-style: italic;
  font-weight: 600;
}

.market-card-desc {
  font-size: 12px;
  color: #666;
  margin: 4px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.market-contact-btn {
  width: 100%;
  padding: 6px;
  background: #0d1b2a;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  margin-top: 4px;
}

.market-delete-btn {
  width: 100%;
  padding: 6px;
  background: #fee2e2;
  color: #991b1b;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  margin-top: 4px;
}

.market-delete-btn:active {
  background: #fecaca;
}

.market-chat {
  display: flex;
  flex-direction: column;
  height: 400px;
}

.market-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
  background: #f7f7f7;
  border-radius: 8px;
  margin: 8px 0;
}

.chat-bubble {
  max-width: 75%;
  padding: 6px 10px;
  border-radius: 10px;
  margin-bottom: 6px;
  font-size: 13px;
}

.chat-bubble.mine {
  background: #0d1b2a;
  color: #fff;
  margin-left: auto;
}

.chat-bubble.theirs {
  background: #e5e5e5;
  color: #000;
}

.market-chat-form {
  display: flex;
  gap: 8px;
}

.market-chat-form input {
  flex: 1;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid #ddd;
}
.market-tab-content {
  display: none;
  flex-direction: column;
  gap: 10px;
}

.market-tab-content.active {
  display: flex;
}

/* ==========================================================
   MEDIA (HOTO/VIDEO) - MAKALLI DON ZOOM
   ========================================================== */

.market-media {
  cursor: pointer;
  position: relative;
}

.market-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.market-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  pointer-events: none;
}

/* ==========================================================
   LIGHTBOX / ZOOM VIEWER (Hoto ko Video girma) + COMMENTS
   ========================================================== */

.market-lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
  overflow-y: auto;
}

.market-lightbox-inner {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.market-lightbox-content {
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.market-lightbox-media {
  max-width: 100%;
  max-height: 60vh;
  border-radius: 8px;
  object-fit: contain;
}

.market-lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  z-index: 1001;
}

.market-lightbox-close:active {
  background: rgba(255, 255, 255, 0.3);
}

/* ==========================================================
   COMMENTS PANEL (a cikin Lightbox)
   ========================================================== */

.market-comments-panel {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 40vh;
}

.market-comments-list {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 26vh;
}

.market-comments-list p {
  font-size: 13px;
  color: #6b7280;
  text-align: center;
}

.market-comment-item {
  background: #f7f7f7;
  border-radius: 8px;
  padding: 8px 10px;
}

.market-comment-head strong {
  font-size: 12px;
  color: #0d1b2a;
}

.market-comment-text {
  font-size: 13px;
  color: #111;
  margin-top: 2px;
}

.market-comment-actions {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.react-btn {
  background: #e5e7eb;
  border: none;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
  color: #374151;
}

.react-btn.active-like {
  background: #dcfce7;
  color: #166534;
  font-weight: 700;
}

.react-btn.active-dislike {
  background: #fee2e2;
  color: #991b1b;
  font-weight: 700;
}

.market-comment-form {
  display: flex;
  gap: 8px;
}

.market-comment-form input {
  flex: 1;
  padding: 10px;
}

.market-comment-form .buy-btn {
  margin-top: 0;
  padding: 10px 16px;
}