/* ===================================================
   InkRadar UI Overrides — loaded last, highest priority
   Clean consolidated version
   =================================================== */


/* ================================================================
   1. HEADER / TOPBAR
   ================================================================ */

body .topbar,
body .shop-client-topbar,
body .artist-client-topbar {
  border-bottom: none !important;
}

body .topbar button,
body .menu-toggle-btn,
body #accountToggleBtn,
body #accountToggleBtn:hover,
body #accountToggleBtn:focus {
  border: none !important;
  box-shadow: none !important;
}

/* Menu icon (hamburger) — CSS-only, no image needed */
body .menu-toggle-btn::before {
  content: "\2630" !important;  /* trigram / hamburger icon */
  font-size: 1.1rem !important;
  margin-right: 6px !important;
  line-height: 1 !important;
}

body .language-switcher select,
body .language-switcher select:focus,
body .language-switcher select:hover {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}


/* ================================================================
   2. NAV MENU
   ================================================================ */

body .nav-menu-list,
body .nav-menu {
  border: 1px solid rgba(201,168,76,0.12) !important;
}

body .nav-menu-list button,
body .nav-menu-list a {
  background: #161616 !important;
  color: #f0e8d8 !important;
  border: 1px solid rgba(201,168,76,0.25) !important;
  border-radius: 2px !important;
}

body .nav-menu-list button:hover,
body .nav-menu-list a:hover {
  background: rgba(201,168,76,0.15) !important;
  color: #d4b965 !important;
  border-color: rgba(201,168,76,0.6) !important;
}


/* ================================================================
   3. BUTTONS — single consolidated rule for ALL dark-theme buttons
   ================================================================ */

/* Base dark button — covers search results, feed, admin, profile, etc. */
body .search-result-actions button,
body .search-result-card button,
body .artist-client-message-btn,
body .artist-client-icon-btn,
body .feed-post-actions button,
body .panel-empty button,
body .search-empty-actions button,
body .shop-client-topbar button,
body .artist-client-topbar-actions button,
body #adminClaimsBox button,
body .admin-action-card button,
body .admin-inline-actions button,
body .posts-section button,
body .artist-portfolio-section button,
body .create-post-box button,
body .tattoo-card button,
body #logoutBtn,
body .profile-actions button:not(.secondary-btn):not(.small-delete-btn),
body .shop-premium-banner button:not(.secondary-btn),
body .modal-actions button:not(.secondary-btn) {
  background: #161616 !important;
  color: #f0e8d8 !important;
  border: 1px solid rgba(201,168,76,0.25) !important;
  border-radius: 2px !important;
}

/* Hover state — one rule for all buttons above */
body .search-result-actions button:hover,
body .search-result-card button:hover,
body .artist-client-message-btn:hover,
body .feed-post-actions button:hover,
body .panel-empty button:hover,
body .search-empty-actions button:hover,
body #adminClaimsBox button:hover,
body .admin-action-card button:hover,
body .admin-inline-actions button:hover,
body .posts-section button:hover,
body .artist-portfolio-section button:hover,
body .create-post-box button:hover,
body .tattoo-card button:hover,
body #logoutBtn:hover,
body .profile-actions button:not(.secondary-btn):not(.small-delete-btn):hover,
body .shop-premium-banner button:not(.secondary-btn):hover,
body .modal-actions button:not(.secondary-btn):hover {
  background: rgba(201,168,76,0.15) !important;
  color: #d4b965 !important;
  border-color: rgba(201,168,76,0.6) !important;
}

/* Favorites icon stays circular */
body .artist-client-icon-btn {
  border-radius: 999px !important;
  width: 44px !important;
  height: 44px !important;
}


/* ================================================================
   4. ACTIVE / TOGGLE STATES
   ================================================================ */

body .home-intent-btn.active,
body .home-intent-btn[aria-pressed="true"],
body .home-range-btn.active,
body .home-range-btn[aria-pressed="true"],
body .auth-mode-btn.active,
body .auth-mode-btn[aria-pressed="true"],
body .auth-role-btn.active,
body .auth-role-btn[aria-pressed="true"],
body .app-feed-tab.active,
body .app-feed-tab[aria-pressed="true"],
body .artist-local-tab.active,
body .artist-local-tab[aria-pressed="true"],
body #notificationsFilterAllBtn.active,
body #notificationsFilterUnreadBtn.active,
body .discover-tabs button.active,
body .secondary-btn.active {
  background-color: rgba(201,168,76,0.15) !important;
  background-image: none !important;
  color: #d4b965 !important;
  border-color: #c9a84c !important;
  font-weight: 700 !important;
}

body .home-intent-btn:not(.active) {
  background-color: #161616 !important;
  background-image: none !important;
  color: #f0e8d8 !important;
}


/* ================================================================
   5. ADMIN SECTION
   ================================================================ */

body .admin-action-card label {
  color: #c8baa8 !important;
  font-size: 0.8rem !important;
}

body .admin-shop-edit-fields input {
  background: #111111 !important;
  color: #f0e8d8 !important;
  border: 1px solid rgba(201,168,76,0.25) !important;
}


/* ================================================================
   6. SPECIAL ELEMENTS
   ================================================================ */

/* Logout / Admin claims: dark text when on cream bg */
body #logoutBtn,
body #adminClaimsBtn {
  color: #f0e8d8 !important;
}

/* Save new password: gold CTA */
body #saveNewPasswordBtn {
  background-color: transparent !important;
  background-image: linear-gradient(135deg, #c9a84c, #a8893a) !important;
  color: #0d0d0d !important;
  border: none !important;
  font-weight: 700 !important;
}

/* Location icon button */
body .home-location-btn {
  background-color: #161616 !important;
  background-image: none !important;
  border: 1.5px solid rgba(201,168,76,0.3) !important;
  border-left: none !important;
}

/* Info trigger */
body .artist-info-trigger-btn {
  background: #1e1e1e !important;
  color: #f0e8d8 !important;
  border: 1px solid rgba(201,168,76,0.2) !important;
}

/* Premium button */
body .home-premium-btn {
  background: linear-gradient(180deg, #1e1e1e, #161616) !important;
  border: 1px solid rgba(201,168,76,0.2) !important;
  color: #f0e8d8 !important;
  box-shadow: 0 10px 24px rgba(0,0,0,0.3) !important;
}

body .home-premium-btn:hover {
  border-color: rgba(201,168,76,0.4) !important;
  box-shadow: 0 14px 28px rgba(0,0,0,0.4) !important;
}

body .home-premium-btn.active {
  background: linear-gradient(180deg, rgba(201,168,76,0.2), rgba(201,168,76,0.1)) !important;
  color: #d4b965 !important;
  border-color: rgba(201,168,76,0.5) !important;
}

/* File inputs */
body input[type="file"] {
  background: #1a1a1a !important;
  color: #f0e8d8 !important;
  border: 1px solid rgba(201,168,76,0.25) !important;
  border-radius: 2px !important;
}

/* Style checkboxes */
body .style-checkbox {
  background: #1a1a1a !important;
  border: 1px solid rgba(201,168,76,0.25) !important;
  accent-color: #c9a84c !important;
}

/* Search location input */
body #searchLocation {
  color: #f0e8d8 !important;
}

body #searchLocation::placeholder {
  color: rgba(138,126,106,0.6) !important;
}


/* ================================================================
   7. CARDS & CONTAINERS
   ================================================================ */

body .feed-post {
  background: #161616 !important;
  color: #f0e8d8 !important;
  border: 1px solid rgba(201,168,76,0.12) !important;
}

body .feed-post-actions,
body .feed-post-actions-overlay {
  background: rgba(22,22,22,0.92) !important;
  border: 1px solid rgba(201,168,76,0.15) !important;
}

body .feed-post-caption,
body .feed-post-actions {
  background: #161616 !important;
  color: #f0e8d8 !important;
}

body .image-style-tag {
  background: rgba(201,168,76,0.12) !important;
  color: #c9a84c !important;
}

body .image-style-tags {
  background: transparent !important;
}

body .feed-post-shop-name {
  background: transparent !important;
  color: #c9a84c !important;
}

body .panel-empty,
body .panel-status,
body .search-empty-state {
  background: #161616 !important;
  color: #f0e8d8 !important;
  border: 1px solid rgba(201,168,76,0.12) !important;
}

body .search-empty-title {
  color: #d4b965 !important;
}

body .search-empty-copy {
  color: #8a7e6a !important;
}

body .home-header-card,
body .home-explainer-card,
body .home-explainer-proof-card,
body .home-value-block,
body .home-cta-card {
  background: #161616 !important;
  border-color: rgba(201,168,76,0.12) !important;
  color: #f0e8d8 !important;
}

body .home-header-card-wide {
  background: linear-gradient(180deg, #1a1a1a, #161616) !important;
}

body .home-value-block-wide,
body .home-cta-card-accent {
  background: linear-gradient(180deg, rgba(201,168,76,0.08), #161616) !important;
  border-color: rgba(201,168,76,0.2) !important;
}

body .home-header-card strong,
body .home-header-card h3,
body .home-explainer-card h4,
body .home-value-block h4,
body .home-cta-card h4 {
  color: #d4b965 !important;
}

body .home-header-card p,
body .home-explainer-card p,
body .home-explainer-proof-card span,
body .home-value-block p,
body .home-cta-card p {
  color: #8a7e6a !important;
}

body .tattoo-card .image-box {
  background: #1a1a1a !important;
}

body .posts-section,
body .artist-portfolio-section,
body .create-post-box {
  background: rgba(22,22,22,0.95) !important;
  color: #f0e8d8 !important;
  border-color: rgba(201,168,76,0.12) !important;
}

body .home-discovery-count {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}


/* ================================================================
   8. FEED CARD NAMES
   ================================================================ */

body .feed-post-names {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
}

body .feed-post-names-overlay {
  position: absolute !important;
  bottom: 10px !important;
  left: 10px !important;
  right: 80px !important;
  z-index: 3 !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.7) !important;
}

body .feed-post-artist-name {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  color: #d4b965 !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  cursor: pointer !important;
  text-align: left !important;
  width: auto !important;
}

body .feed-post-artist-name:hover {
  color: #f0e8d8 !important;
  text-decoration: underline !important;
}

body .feed-post-artist-name-overlay {
  color: #f0e8d8 !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.7) !important;
}

body .feed-post-artist-name-overlay:hover {
  color: #d4b965 !important;
}

body .feed-post-names-sep {
  color: #8a7e6a !important;
  font-size: 0.85rem !important;
}

body .feed-post-shop-name-secondary {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  color: #8a7e6a !important;
  font-weight: 400 !important;
  font-size: 0.82rem !important;
  cursor: pointer !important;
  text-align: left !important;
  width: auto !important;
}

body .feed-post-shop-name-secondary:hover {
  color: #c9a84c !important;
  text-decoration: underline !important;
}

body .feed-post-names-overlay .feed-post-shop-name-overlay,
body .feed-post-names-overlay .feed-post-artist-name-overlay {
  position: static !important;
  max-width: none !important;
  text-align: left !important;
}

body .flash-post-header .feed-post-names {
  flex: 1 !important;
  min-width: 0 !important;
}


/* ================================================================
   9. MOBILE RESPONSIVE
   ================================================================ */

/* --- 9a. Header bar stays on one line --- */
@media (max-width: 640px) {
  body .topbar {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    padding: 0 10px !important;
    gap: 4px !important;
  }

  body .topbar-actions {
    flex-direction: row !important;
    align-items: center !important;
    gap: 4px !important;
    flex-shrink: 0 !important;
  }

  body .menu-toggle-btn {
    min-width: 0 !important;
    width: auto !important;
    padding: 6px 8px !important;
    font-size: 0.7rem !important;
  }

  body .topbar-brand-mini {
    gap: 4px !important;
    font-size: 0.72rem !important;
    flex-shrink: 1 !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  body .topbar-brand-mini .topbar-brand-mark-real,
  body .topbar-brand-mini .topbar-brand-mark-real img {
    width: 22px !important;
    height: 22px !important;
    flex-shrink: 0 !important;
  }

  body #topbarBrandText {
    font-size: 0.72rem !important;
    white-space: nowrap !important;
  }

  body .language-switcher select {
    font-size: 0.7rem !important;
    padding: 2px !important;
    min-width: 0 !important;
    width: auto !important;
  }

  body #accountToggleBtn {
    font-size: 0.65rem !important;
    padding: 4px 6px !important;
    white-space: nowrap !important;
  }

  /* Inline button width fix */
  body .search-result-actions button,
  body .search-result-card button,
  body .feed-post-actions button,
  body .artist-client-icon-btn,
  body .artist-client-message-btn,
  body .artist-client-follow-btn,
  body .shop-client-topbar button,
  body .artist-client-topbar-actions button,
  body .modal-close-btn,
  body #authCloseBtn,
  body #feedCloseBtn,
  body #discoverCloseBtn,
  body #flashCloseBtn,
  body #favoritesCloseBtn,
  body #messagesCloseBtn,
  body #adminClaimsCloseBtn,
  body #resetCancelBtn,
  body .app-feed-tab,
  body .app-back-btn,
  body .feed-like-btn,
  body .password-toggle-btn,
  body .footer-link-btn {
    width: auto !important;
  }
}

/* --- 9b. Banner feature strip below banner on phones --- */
@media (max-width: 680px) {
  body #searchHeroBanner {
    max-height: 160px !important;
    aspect-ratio: 21 / 8 !important;
    overflow: hidden !important;
    margin-bottom: 16px !important;
  }

  body #searchHeroBanner > div[style*="grid-template-columns:repeat(4"] {
    display: none !important;
  }
}

/* --- 9c. Feed card names no overlap --- */
@media (max-width: 640px) {
  body .feed-post-names {
    gap: 3px !important;
    flex-wrap: wrap !important;
  }

  body .feed-post-names-overlay {
    bottom: 38px !important;
    left: 6px !important;
    right: 6px !important;
  }

  body .feed-post-artist-name {
    font-size: 0.78rem !important;
    max-width: 55% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body .feed-post-artist-name-overlay {
    font-size: 0.78rem !important;
    max-width: 55% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body .feed-post-shop-name-secondary {
    font-size: 0.7rem !important;
    max-width: 40% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body .feed-post-names-sep {
    font-size: 0.7rem !important;
    flex-shrink: 0 !important;
  }

  body .flash-post-header .feed-post-names {
    max-width: 100% !important;
  }
}


/* ================================================================
   10. BILLING PANEL
   ================================================================ */

body .billing-panel {
  max-width: 700px !important;
  margin: 0 auto !important;
  padding: 20px 16px !important;
}

body .billing-title {
  color: #d4b965 !important;
  font-size: 1.4rem !important;
  margin-bottom: 16px !important;
  text-align: center !important;
}

body .billing-company-info {
  background: #161616 !important;
  border: 1px solid rgba(201,168,76,0.12) !important;
  border-radius: 4px !important;
  padding: 12px 16px !important;
  margin-bottom: 16px !important;
  color: #8a7e6a !important;
  font-size: 0.82rem !important;
  line-height: 1.5 !important;
}

body .billing-company-info strong {
  color: #f0e8d8 !important;
}

body .billing-subscription-card,
body .billing-invoices-card {
  background: #161616 !important;
  border: 1px solid rgba(201,168,76,0.12) !important;
  border-radius: 4px !important;
  padding: 16px !important;
  margin-bottom: 16px !important;
}

body .billing-subscription-card h3,
body .billing-invoices-card h3 {
  color: #d4b965 !important;
  font-size: 1rem !important;
  margin: 0 0 12px 0 !important;
}

body .billing-status-row {
  display: flex !important;
  justify-content: space-between !important;
  padding: 6px 0 !important;
  border-bottom: 1px solid rgba(201,168,76,0.08) !important;
  color: #f0e8d8 !important;
  font-size: 0.88rem !important;
}

body .billing-label {
  color: #8a7e6a !important;
}

body .billing-status-active {
  color: #4ade80 !important;
  font-weight: 700 !important;
}

body .billing-status-inactive {
  color: #f87171 !important;
}

body .billing-cancel-notice {
  margin-top: 10px !important;
  padding: 8px 12px !important;
  background: rgba(248,113,113,0.1) !important;
  border: 1px solid rgba(248,113,113,0.3) !important;
  border-radius: 3px !important;
  color: #f87171 !important;
  font-size: 0.82rem !important;
}

body .billing-actions {
  margin-top: 14px !important;
}

body .billing-manage-btn,
body .billing-upgrade-btn {
  background: #161616 !important;
  color: #f0e8d8 !important;
  border: 1px solid rgba(201,168,76,0.25) !important;
  border-radius: 2px !important;
  padding: 10px 20px !important;
  cursor: pointer !important;
  font-size: 0.88rem !important;
  width: 100% !important;
}

body .billing-manage-btn:hover,
body .billing-upgrade-btn:hover {
  background: rgba(201,168,76,0.15) !important;
  color: #d4b965 !important;
  border-color: rgba(201,168,76,0.6) !important;
}

body .billing-upgrade-btn {
  background: linear-gradient(135deg, #c9a84c, #a8893a) !important;
  color: #0d0d0d !important;
  border: none !important;
  font-weight: 700 !important;
}

body .billing-upgrade-btn:hover {
  background: linear-gradient(135deg, #d4b965, #c9a84c) !important;
  color: #0d0d0d !important;
}

body .billing-no-sub {
  text-align: center !important;
  padding: 10px 0 !important;
  color: #8a7e6a !important;
}

body .billing-no-invoices {
  color: #8a7e6a !important;
  text-align: center !important;
  padding: 10px 0 !important;
}

body .billing-invoices-table {
  width: 100% !important;
  border-collapse: collapse !important;
  font-size: 0.82rem !important;
}

body .billing-invoices-table th {
  color: #8a7e6a !important;
  text-align: left !important;
  padding: 8px 6px !important;
  border-bottom: 1px solid rgba(201,168,76,0.15) !important;
  font-weight: 600 !important;
}

body .billing-invoices-table td {
  color: #f0e8d8 !important;
  padding: 8px 6px !important;
  border-bottom: 1px solid rgba(201,168,76,0.06) !important;
}

body .billing-inv-paid {
  color: #4ade80 !important;
  font-weight: 600 !important;
}

body .billing-inv-other {
  color: #f87171 !important;
}

body .billing-pdf-link {
  color: #c9a84c !important;
  text-decoration: none !important;
}

body .billing-pdf-link:hover {
  color: #d4b965 !important;
  text-decoration: underline !important;
}

body .billing-loading {
  text-align: center !important;
  padding: 40px 0 !important;
  color: #8a7e6a !important;
}

@media (max-width: 640px) {
  body .billing-invoices-table {
    font-size: 0.72rem !important;
  }

  body .billing-invoices-table th,
  body .billing-invoices-table td {
    padding: 6px 3px !important;
  }

  body .billing-status-row {
    font-size: 0.8rem !important;
  }
}


/* ================================================================
   11. BOTTOM NAVIGATION BAR
   ================================================================ */

body #appFeedTabs .bn-hidden,
body .bn-popup-item.bn-hidden {
  display: none !important;
}

body {
  padding-bottom: 68px !important;
}

body #appFeedTabs {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 900 !important;
  display: flex !important;
  align-items: stretch !important;
  justify-content: space-around !important;
  gap: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  padding: 0 !important;
  background: #0d0d0d !important;
  border: none !important;
  border-top: 1px solid rgba(201,168,76,0.25) !important;
  border-radius: 0 !important;
  backdrop-filter: none !important;
}

body #appFeedTabs .app-feed-tab {
  flex: 1 !important;
  min-height: 58px !important;
  max-height: 70px !important;
  gap: 4px !important;
  padding: 8px 4px 6px !important;
  color: #6b6050 !important;
  font-size: 0.62rem !important;
  letter-spacing: 0.02em !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
}

body #appFeedTabs .app-feed-tab:hover {
  background: rgba(201,168,76,0.08) !important;
  color: #f0e8d8 !important;
}

body #appFeedTabs .app-feed-tab.active {
  color: #d4b965 !important;
  background: transparent !important;
}

body #appFeedTabs .app-feed-tab-icon {
  width: 28px !important;
  height: 28px !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
}

/* Nav icons — using inline SVGs from styles.css */

/* "+" Create button — hidden */
body #createTabBtn {
  display: none !important;
}


/* ================================================================
   12. BOTTOM NAV POPUP MENUS
   ================================================================ */

.bn-menu-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 1000 !important;
  background: transparent !important;
}

.bn-popup-menu {
  position: fixed !important;
  bottom: 62px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 1001 !important;
  background: #1a1a1a !important;
  border: 1px solid rgba(201,168,76,0.35) !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  min-width: 180px !important;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.6) !important;
}

.bn-popup-item {
  display: block !important;
  width: 100% !important;
  padding: 13px 20px !important;
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid rgba(201,168,76,0.12) !important;
  color: #f0e8d8 !important;
  font-size: 0.88rem !important;
  letter-spacing: 0.04em !important;
  text-align: center !important;
  cursor: pointer !important;
}

.bn-popup-item:last-child {
  border-bottom: none !important;
}

.bn-popup-item:hover {
  background: rgba(201,168,76,0.1) !important;
  color: #d4b965 !important;
}

/* ================================================================
   13. CHROME AUTOFILL — must be LAST rule
   ================================================================ */

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #111111 inset !important;
  -webkit-text-fill-color: #f0e8d8 !important;
  caret-color: #c9a84c !important;
  transition: background-color 5000s ease-in-out 0s !important;
}
