@import url("themes/emerald-ledger.css");

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
html.no-scroll {
  overflow: hidden;
}
body {
  margin: 0;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    "Apple Color Emoji",
    "Segoe UI Emoji";
  background: radial-gradient(
    1200px 700px at 20% -10%,
    rgba(58, 9, 9, 0.97),
    rgba(3, 4, 43, 0.6) 60%,
    rgb(3, 4, 43) 100%
  );
  color: var(--text);
  line-height: 1.4;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
.regusername {
  width: 80% !important;
}
select option {
  color: black !important;
  background-color: white !important;
}
.behavior-good {
  color: #2e7d32 !important;
  font-weight: 600 !important;
}
.behavior-angel {
  color: #d4af37 !important;
  font-weight: 600 !important;
}
.behavior-bad {
  color: #c62828 !important;
  font-weight: 600 !important;
}

a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
input,
button,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
.product-photo {
  border-radius: 4%;
}
.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(10px);
  background: linear-gradient(
    to bottom,
    rgba(11, 14, 17, 0.85),
    rgba(11, 14, 17, 0.5)
  );
  border-bottom: 1px solid var(--border);
}
.app-bar {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 16px;
  max-width: var(--max);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;

  display: inline-block;
  background-image: url("media/glott-small.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  background-attachment: scroll;

  border: 1px solid rgba(212, 175, 55, 0.22);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
}

.brand-name {
  font-weight: 700;
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-nav {
  display: flex;
  gap: 14px;
  align-items: center;
}
.app-nav--desktop {
  display: none;
}
.nav-link {
  padding: 8px 10px;
  border-radius: 12px;
  color: var(--muted);
  transition:
    background 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease;
}
.height-0 {
  height: 0px;
}
.display-flex {
  display: flex;
}
.display-block {
  display: block;
}
.background-theme {
  background-color: #161a25;
}
.nav-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}
.nav-link--danger {
  color: rgba(255, 180, 180, 0.95) !important;
}
.nav-link--danger:hover {
  background: rgba(123, 30, 30, 0.18) !important;
  color: var(--text);
}

.app-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logout-form {
  margin: 0;
}

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  place-items: center;
  padding: 12px;
}
.icon-btn:hover {
  background: rgba(255, 255, 255, 0.07);
}
.icon-btn__bar {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
  display: block;
}
.icon-btn > .icon-btn__bar + .icon-btn__bar {
  margin-top: 4px;
}
.icon-btn__x {
  width: 18px;
  height: 18px;
  position: relative;
  min-height: 180px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
  display: block;
}
.icon-btn__x::before,
.icon-btn__x::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
  transform-origin: center;
}
.icon-btn__x::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.icon-btn__x::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.app-drawer {
  position: fixed;
  inset: 0;
  z-index: 40;
}
.app-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}
.app-drawer__panel {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(340px, 90vw);
  width: 100%;
  background: linear-gradient(
    180deg,
    rgba(19, 24, 32, 0.98),
    rgba(19, 24, 32, 0.92)
  );
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.app-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.drawer-title {
  font-weight: 700;
}
.padding-10 {
  padding: 10px !important;
}
.padding-25 {
  padding: 25px !important;
}
.padding-left-30 {
  padding: 25px !important;
}
.padding-right-30 {
  padding: 25px !important;
}
.hidden {
  display: none !important;
}
.app-nav--mobile {
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  padding-top: 8px;
  background-color: black;
  border-radius: 4%;
  padding-bottom: 10px;
}
.app-nav--mobile .nav-link {
  padding: 15px 30px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.03);
}
.app-nav--mobile .nav-link:hover {
  border-color: rgba(212, 175, 55, 0.18);
  background: rgba(212, 175, 55, 0.06);
}
.drawer-footer {
  margin-top: auto;
  padding-top: 12px;
  padding-bottom: 12px;
  border-top: 1px solid var(--border);
  background-color: black;
}

.app-main {
  padding: 18px 0 32px;
}
.page-title {
  font-size: 22px;
  margin: 0 0 8px;
  letter-spacing: 0.2px;
}
.page-subtitle {
  margin: 0;
  color: var(--muted);
}
.card {
  /* background: linear-gradient(
    180deg,
    rgba(19, 24, 32, 0.92),
    rgba(19, 24, 32, 0.84)
  );*/
  background: linear-gradient(180deg, rgba(7, 23, 48, 0.76), rgb(19, 24, 32));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-pad {
  padding: 16px;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn {
  border-radius: 14px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  transition:
    transform 0.12s ease,
    background 0.12s ease,
    border-color 0.12s ease;
}
.btn:hover {
  background: rgba(255, 255, 255, 0.07);
}
.btn:active {
  transform: translateY(1px);
}
.btn--primary {
  border-color: rgba(20, 90, 50, 0.45);
  background: linear-gradient(
    180deg,
    rgba(20, 90, 50, 0.95),
    rgba(20, 90, 50, 0.8)
  );
}
.btn--primary:hover {
  background: linear-gradient(
    180deg,
    rgba(30, 110, 70, 0.96),
    rgba(20, 90, 50, 0.8)
  );
}

.btn--explore-regular {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
  border-color: rgba(16, 100, 65, 0.95);
  background: linear-gradient(
    190deg,
    rgb(50, 158, 47),
    rgba(55, 205, 212, 0.12)
  );
}
.btn--explore-regular:hover {
  background: linear-gradient(
    180deg,
    rgba(30, 110, 70, 0.96),
    rgba(20, 90, 50, 0.8)
  );
}
.btn--gold {
  border-color: #d4af37;
  background: linear-gradient(190deg, #baa668d9, rgba(212, 175, 55, 0.12));
}
.btn--blue {
  border-color: rgba(55, 212, 146, 0.95);
  background: linear-gradient(
    190deg,
    rgb(32, 154, 106),
    rgba(55, 205, 212, 0.12)
  );
}
.logo-home {
  padding: 6px 10px;
  border-radius: 200px;
}
.btn--ghost {
  background: transparent;
}
.w-full {
  width: 100%;
}

.field {
  width: 100%;
  border-radius: 14px;
  padding: 11px 12px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.18);
  color: var(--text);
  outline: none;
}
.field::placeholder {
  color: rgba(154, 154, 154, 0.85);
}
.field:focus {
  border-color: rgba(212, 175, 55, 0.38);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.14);
}

.pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pill,
.active-pill {
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.active-pill {
  color: var(--text);
  border-color: rgba(212, 175, 55, 0.3);
  background: rgba(212, 175, 55, 0.08);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  background: rgba(212, 175, 55, 0.08);
  color: var(--gold);
  font-weight: 600;
  font-size: 12px;
}

hr.sep {
  border: none;
  border-top: 1px solid var(--border);
  margin: 10px 0;
}

.kv {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  color: var(--muted);
}
.kv strong {
  color: var(--text);
  font-weight: 700;
}

/* Explore feed (YouTube-mobile-like: one item per row) */
.feed {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.feed-item {
  overflow: hidden;
}
.thumb {
  aspect-ratio: 16/9;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--border);
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.feed-body {
  padding: 14px;
}
.feed-title {
  margin: 0 0 6px;
  font-size: 18px;
  letter-spacing: 0.2px;
}
.feed-desc {
  margin: 0 0 10px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.feed-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}
.meta-left {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.chip {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}
.chip--investment {
  border-color: rgba(212, 175, 55, 0.22);
  color: rgba(212, 175, 55, 0.95);
}
.chip--regular {
  border-color: rgba(20, 90, 50, 0.22);
  color: rgba(20, 90, 50, 0.95);
}
.chip--bidding {
  border-color: rgba(55, 212, 197, 0.22);
  color: rgba(55, 212, 146, 0.95);
}
.chip--red {
  border-color: rgba(20, 90, 50, 0.22);
  color: rgba(90, 20, 20, 0.95);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.full-width {
  width: 100% !important;
}

/* Tables (basic) */
table {
  width: 100%;
  border-collapse: collapse;
}
th,
td {
  padding: 10px 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
th {
  color: var(--muted);
  font-weight: 600;
}

/* Small helpers */
.text-center {
  text-align: center;
}
.display-inline {
  display: inline;
}
.product-description {
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}
.muted {
  color: var(--muted);
}
.error-msg-red {
  color: #ffb3b3;
}
.width-80 {
  width: 80% !important;
}
.li-block {
  display: block;
}
.simple-padding {
  padding: 15px !important;
}
/* Responsive */
@media (min-width: 900px) {
  .app-nav--desktop {
    display: flex;
  }
  .icon-btn[data-menu-toggle] {
    display: none;
  }
  .app-bar {
    padding: 0 18px;
  }
  .grid-2 {
    grid-template-columns: 1.25fr 0.75fr;
  }
  .page-title {
    font-size: 26px;
  }
  .feed-title {
    font-size: 19px;
  }
}

@media (min-width: 1200px) {
  .app-bar {
    max-width: 1200px;
  }
  .container {
    width: min(1200px, calc(100% - 40px));
  }
}

/* Default styling for pages that haven't been fully refactored */
input[type="text"],
input[type="password"],
input[type="number"],
input[type="email"],
textarea,
select {
  width: 100%;
  border-radius: 14px;
  padding: 11px 12px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.18);
  color: var(--text);
  outline: none;
}
textarea {
  min-height: 110px;
  resize: vertical;
}
input:focus,
textarea:focus,
select:focus {
  border-color: rgba(212, 175, 55, 0.38);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.14);
}
button {
  border-radius: 14px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}
button:hover {
  background: rgba(255, 255, 255, 0.07);
}

.lottery-ticket-card {
  background: url("/img/lottery-ticket.png") center no-repeat;
  padding: 16px 18px;
  margin-bottom: 14px;
  position: relative;
  min-height: 180px;
  overflow: hidden;
  border-radius: 6%;
}
.lottery-ticket-card .ticket-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.lottery-ticket-card .ticket-content {
  position: relative;
  flex-direction: column;
  gap: 8px;
  text-align: center;
  color: #fff;
}
.lottery-ticket-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 10px;
  padding-bottom: 10%;
}

.lottery-ticket .ticket-num {
  font-weight: 800;
  letter-spacing: 0.6px;
}
.lottery-ticket .ticket-meta {
  font-size: 0.92rem;
  opacity: 0.85;
}
.lottery-ticket .ticket-msg {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.86rem;
  background: rgba(0, 0, 0, 0.06);
}
.lottery-ticket .ticket-msg.close {
  background: rgba(255, 193, 7, 0.22);
}
.lottery-ticket .ticket-msg.recovery {
  background: rgba(46, 125, 50, 0.14);
}
@media (max-width: 520px) {
  .lottery-ticket-card {
    padding: 12px 12px;
  }
}
.change-password-section {
  display: none;
}

.change-password-section.is-visible {
  display: block;
}

.change-password-wrap {
  margin-bottom: 0.75rem;
}

.btn-change-password {
  cursor: pointer;
}

.field-row {
  margin-bottom: 0.5rem;
}

.pwd-mismatch-hidden {
  display: none;
}
.pwd-mismatch-visible {
  display: block;
}
.nav-link-sub-btn {
  border: 1px solid rgba(162, 193, 223, 0.42) !important;
  border-radius: 14px !important;
}
.home-sub-btn {
  padding: 7px;
}
.tags-container {
  margin-top: 20px;
}

.tags-container h3 {
  margin-bottom: 12px;
  font-size: 18px;
  font-weight: 600;
}

.tags-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-item {
  position: relative;
}

.tag-item input[type="checkbox"] {
  display: none;
}

.tag-item input[type="radio"] {
  display: none;
}

.tag-item span {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 20px;
  color: var(--muted);
  border: 1px solid #ddd;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

.tag-item span:hover {
  background: var(--muted);
}

.tag-item input[type="checkbox"]:checked + span {
  background: #007bff;
  color: #fff;
  border-color: #007bff;
}

.tag-item input[type="radio"]:checked + span {
  background: #007bff;
  color: #fff;
  border-color: #007bff;
}
.file-upload {
  margin-top: 20px;
}

.file-upload label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.file-upload input[type="file"] {
  display: none;
}

.file-upload .upload-btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 8px;
  background: #007bff;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s ease;
}

.file-upload .upload-btn:hover {
  background: #0056b3;
}

.file-upload .file-name {
  margin-left: 12px;
  font-size: 14px;
  color: #555;
}

.file-upload .preview {
  margin-top: 12px;
  max-width: 150px;
  border-radius: 8px;
  display: none;
}

.chat-container {
  max-width: 800px;
  margin: auto;
}

.chat-box {
  display: flex;
  flex-direction: column;
  height: 80vh;
  /*border: 1px solid #ddd;*/
  border-radius: 10px;
  overflow: hidden;
}

.messages {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  background: #08022566;
}

.msg {
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
}

.msg.user {
  align-items: flex-start;
}

.msg.admin {
  align-items: flex-end;
}

.bubble {
  padding: 10px 14px;
  border-radius: 15px;
  max-width: 70%;
}
.padding-right-6 {
  padding-right: 6px;
}
.padding-left-6 {
  padding-left: 6px;
}
.msg.user .bubble {
  background: #0084ff;
  color: white;
}

.msg.admin .bubble {
  background: #7f62c6;
}

.time {
  font-size: 11px;
  color: gray;
}

.input-box {
  display: flex;
  border-top: 1px solid #ddd;
}

.input-box input {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 0% !important;
}

.input-box button {
  padding: 10px 15px;
  background: #0084ff;
  color: white;
  border: none;
  border-radius: 0% !important;
}
.page-title {
  margin-bottom: 15px;
}

.conv-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.font-16 {
  font-size: 16px !important;
}

.conv-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #300211;
}

.conv-item-selected {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #345907;
}

.conv-link {
  flex: 1;
  text-decoration: none;
  color: inherit;
}

.conv-main {
  display: flex;
  justify-content: space-between;
}

.conv-user {
  font-weight: bold;
}

.conv-meta {
  font-size: 12px;
  color: gray;
}

.delete-btn {
  background: #ff4d4f;
  color: white;
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
}

.padding-bottom-large {
  padding-bottom: 244px;
}
.btn-danger {
  color: #fff;
  background-color: #542626;
}
.card-yello {
  background-color: #957806;
  border-radius: 2%;
  width: 250px;
  padding: 3%;
}
.card-red {
  background-color: #300505;
  border-radius: 2%;
  width: 250px;
  padding: 3%;
}
.card-green {
  background-color: #185f04;
  border-radius: 2%;
  width: 250px;
  padding: 3%;
}
.date-time-picker {
  background-color: #1e222d;
  color: white;
  border: none;
  padding: 20px;
  font-weight: bold;
}
.date-time-picker-products {
  background-color: #1e222d00;
  color: white;
  border: none;
  padding: 10px;
  font-weight: bold;
  border: 1px solid var(--border);
  border-radius: 999px;
}
.padding-top-10 {
  padding-top: 10px;
}
.admin-order-chip {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgb(221, 227, 234);
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
}
.lott-ticket {
  width: 343px;
  font-size: 12px;
  padding: 6px 10px;
  color: #fefeff;
  display: inline;
}
.font-title {
  font-size: 25px;
}
.display-list-item {
  display: list-item;
}
.bookmark,
.remove-bookmark {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 40px;
}
.chip--clear-green {
  border-color: rgba(20, 90, 50, 0.22);
  color: rgba(31, 186, 98, 0.95);
}
.bookmark::before {
  content: "♥";
  color: #770c09;
}

.remove-bookmark::before {
  content: "♡";
  color: #770c09;
}
.font-size-15 {
  font-size: 15px !important;
}
.font-size-18 {
  font-size: 18px !important;
}
.padding-5 {
  font-size: 5px !important;
}

.display-none {
  display: none;
}

.bookmark::before,
.remove-bookmark::before {
  display: inline-block;
  transition: transform 0.2s ease;
}

.bookmark:hover::before,
.remove-bookmark:hover::before {
  transform: scale(1.2);
}
.bookmark:hover::before {
  color: #c62828;
}

.remove-bookmark:hover::before {
  color: #ff5252;
}
.footer {
  color: #ffffff;
  padding: 20px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.footer a {
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.footer a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer span {
  font-size: 14px;
  opacity: 0.7;
}

@media (max-width: 600px) {
  .footer {
    flex-direction: column;
    text-align: center;
  }
}
