:root {
  --bg: #07111f;
  --panel: rgba(7, 17, 31, 0.72);
  --card: rgba(255, 255, 255, 0.14);
  --text: #f8fbff;
  --muted: #d6deea;
  --accent: #65d8ff;
  --accent-2: #7b61ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  overflow: hidden;
}

.dashboard-page {
  overflow: auto;
}

.login-page,
.dashboard-page {
  min-height: 100vh;
  position: relative;
}

.bg-video,
.dashboard-bg-video,
.dashboard-page::before {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bg-video {
  z-index: -3;
}

.dashboard-bg-video {
  z-index: -4;
}

.overlay,
.dashboard-overlay {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: transparent;
}

.login-shell {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 22px;
}

.login-card {
  width: min(100%, 720px);
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.brand-block {
  max-width: 560px;
  margin: 0 auto 16px;
  text-align: center;
}

.brand-block h1 {
  margin: 10px 0 8px;
  font-size: 2rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  text-align: center;
}

.brand-block p {
  margin: 0 auto 20px;
  color: #ffffff;
  line-height: 1.6;
  max-width: 620px;
  text-align: center;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

.badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(101, 216, 255, 0.16);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
}

.login-form,
.register-form {
  display: grid;
  gap: 14px;
  width: min(100%, 760px);
}

.register-form {
  margin-top: 12px;
}

.form-title {
  text-align: center;
  color: #ffffff;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

.status-message {
  margin-top: 12px;
  text-align: center;
  color: #ffffff;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

.hidden {
  display: none !important;
}

.login-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.login-form button,
.register-form button {
  justify-self: center;
}

.login-form label,
.register-form label {
  text-align: center;
}

.login-form label,
.register-form label {
  display: grid;
  gap: 8px;
}

.login-form span,
.register-form span {
  font-size: 0.9rem;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

.login-form input,
.register-form input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 12px 16px;
  color: var(--text);
  background: rgba(8, 13, 23, 0.72);
  outline: none;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.login-form input:focus,
.register-form input:focus {
  border-color: rgba(101, 216, 255, 0.92);
  background: rgba(6, 11, 20, 0.86);
  transform: translateY(-1px);
}

.login-form input::placeholder,
.register-form input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.login-form button,
.register-form button,
.logout-link,
.form-toggle button {
  border: 0;
  cursor: pointer;
  text-decoration: none;
  color: white;
  font-weight: 700;
  border-radius: 999px;
  padding: 11px 18px;
  background: linear-gradient(135deg, rgba(101, 216, 255, 0.9), rgba(123, 97, 255, 0.92));
  box-shadow: 0 12px 22px rgba(101, 216, 255, 0.24);
  width: fit-content;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.login-form button:hover,
.register-form button:hover,
.logout-link:hover,
.form-toggle button:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.form-toggle {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  text-align: center;
}

.form-toggle span {
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

.form-toggle button {
  padding: 8px 14px;
  font-size: 0.9rem;
}

.dashboard-page {
  background: url('images/pc2.jpg') center/cover fixed no-repeat;
}

.dashboard-page::before {
  content: '';
  z-index: -1;
  background: rgba(3, 8, 16, 0.28);
}

.dashboard-overlay {
  background: rgba(3, 8, 16, 0.34);
  z-index: -1;
}

.email-page {
  background: url('images/pc1.jpg') center/cover fixed no-repeat;
  overflow: auto;
}

.email-page .page-bg-glow {
  position: fixed;
  inset: -30%;
  background: radial-gradient(circle, rgba(122, 83, 255, 0.18) 0%, transparent 58%);
  filter: blur(40px);
  pointer-events: none;
}

.email-page::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(3, 8, 16, 0.34);
  pointer-events: none;
}

.email-page-shell {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.email-detail-card {
  width: min(100%, 940px);
  background: linear-gradient(135deg, rgba(18, 34, 61, 0.44), rgba(36, 27, 59, 0.40));
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 30px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), 0 12px 44px rgba(0, 0, 0, 0.24);
}

.email-detail-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 30px;
  pointer-events: none;
  background: radial-gradient(circle at 10% 0%, rgba(255,255,255,0.18), transparent 34%), radial-gradient(circle at 98% 100%, rgba(101,216,255,0.26), transparent 34%);
  z-index: -1;
}

.email-detail-header {
  text-align: center;
  margin-bottom: 30px;
}

.email-detail-header h1 {
  margin: 10px 0 8px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  color: #ffffff;
}

.email-subtitle {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.6;
  font-size: 1rem;
}

.email-detail-content {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(420px, 1fr);
  align-items: center;
  gap: 30px;
}

.email-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 8px;
}

.email-detail-image {
  width: 100%;
  max-width: 310px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  padding: 18px;
  object-fit: cover;
}

.email-info {
  padding: 4px 0;
}

.email-info h2 {
  margin: 0 0 12px;
  font-size: 2rem;
  color: #ffffff;
}

.email-info p {
  margin: 0 0 18px;
  line-height: 1.62;
  color: rgba(255, 255, 255, 0.86);
}

.email-description {
  font-size: 1rem;
}

.email-specs {
  margin: 0 0 24px;
  padding-left: 24px;
  color: var(--text);
  line-height: 1.9;
}

.email-specs li {
  color: rgba(255, 255, 255, 0.9);
}

.email-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 11px 22px;
  text-decoration: none;
  font-weight: 700;
  color: #ffffff;
}

.primary-button {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: none;
  color: #07111f;
}

.secondary-button {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.20);
}

.email-actions .primary-button:hover,
.email-actions .secondary-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.email-purchase-box {
  display: grid;
  place-items: center;
  padding: 40px 0;
}

.email-purchase-card {
  width: min(100%, 780px);
  background: linear-gradient(135deg, rgba(12, 24, 43, 0.42), rgba(29, 35, 58, 0.36));
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
  padding: 30px;
  backdrop-filter: blur(22px);
}

.email-purchase-card h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.email-purchase-card p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
}

.email-option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.email-option-button {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 18px 16px;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.email-option-button:hover,
.email-option-button.active {
  background: rgba(101, 216, 255, 0.16);
  border-color: rgba(101, 216, 255, 0.4);
  transform: translateY(-1px);
}

.email-order-card {
  margin-top: 24px;
}

.email-purchase-card label {
  display: grid;
  gap: 10px;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 22px;
}

.selected-email-type,
.selected-email-type-top {
  margin: 0 0 20px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.5;
}

.email-purchase-card textarea {
  width: 100%;
  min-height: 140px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
  padding: 14px 16px;
  outline: none;
  resize: vertical;
}

.email-purchase-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hidden {
  display: none !important;
}

@media (max-width: 860px) {
  .email-detail-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .email-image-wrap {
    min-height: 240px;
    padding: 12px;
  }

  .email-detail-card {
    padding: 24px;
  }

  .email-info h2 {
    font-size: clamp(1.75rem, 6vw, 2.2rem);
  }

  .email-detail-header h1 {
    font-size: clamp(1.9rem, 8vw, 2.8rem);
  }

  .email-specs {
    padding-left: 18px;
  }

  .email-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
    justify-content: center;
  }
}

.dashboard-container {
  padding: 260px 32px 32px;
  max-width: 1240px;
  margin: 0 auto;
}

.topbar {
  position: fixed;
  top: 18px;
  right: 18px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 999px;
  background: rgba(3, 8, 16, 0.82);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 40;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.topbar-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
}

.topbar-btn--profile {
  background: linear-gradient(135deg, rgba(101, 216, 255, 0.96), rgba(123, 97, 255, 0.96));
  color: #07111f;
}

.profile-overlay {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  justify-content: flex-end;
  background: rgba(3, 8, 16, 0.65);
  transition: background 0.25s ease;
  overflow: hidden;
}

.profile-overlay.hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.profile-overlay.visible {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.profile-card {
  width: min(100%, 420px);
  max-width: 420px;
  height: 100vh;
  background: rgba(10, 18, 34, 0.98);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0;
  padding: 28px 24px;
  position: relative;
  box-shadow: -24px 0 70px rgba(0, 0, 0, 0.45);
  transform: translateX(100%);
  transition: transform 0.32s ease;
  overflow-y: auto;
}

.profile-overlay.visible .profile-card {
  transform: translateX(0);
}

.profile-card::-webkit-scrollbar {
  width: 8px;
}

.profile-card::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.profile-details {
  display: grid;
  gap: 16px;
}

.profile-details h2 {
  margin: 0;
  color: #ffffff;
}

.profile-field {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.profile-field-label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.profile-field span:last-child {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
}

.profile-status {
  margin: 0;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(101, 216, 255, 0.18);
  background: rgba(101, 216, 255, 0.08);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
}

.profile-status::before {
  content: '✔';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #65d8ff;
  color: #07111f;
  font-size: 0.85rem;
}

.profile-actions {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

.deposit-form {
  margin-top: 18px;
  display: grid;
  gap: 14px;
}

.deposit-form label {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.9);
}

.deposit-form input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  outline: none;
}

.deposit-form input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.deposit-form-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.profile-action-btn {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: linear-gradient(135deg, rgba(101, 216, 255, 0.95), rgba(123, 97, 255, 0.95));
  color: #07111f;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.profile-action-btn--secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.profile-action-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.topbar-title {
  display: grid;
  gap: 4px;
}

.search-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 18px;
}

.search-heading {
  margin: 0 0 10px;
  text-align: center;
  color: #ffffff;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(100%, 520px);
  padding: 12px 14px;
  border-radius: 999px;
  background: rgba(9, 14, 28, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.26);
}

.search-empty {
  margin: 14px auto 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #ffd4d4;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 14px 18px;
  border-radius: 18px;
  font-weight: 700;
  animation: pulseGlow 1.4s ease-in-out infinite;
  width: min(100%, 360px);
}

.search-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ff7a7a;
  font-size: 1.2rem;
  animation: popIn 0.4s ease;
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255, 118, 118, 0.12);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(255, 118, 118, 0.02);
  }
}

@keyframes popIn {
  0% {
    transform: scale(0.88);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.search-icon {
  color: #bddfff;
  font-size: 1.1rem;
}

.search-input {
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  width: 100%;
  font-size: 0.95rem;
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.66);
}

.category-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.category-btn {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(7, 14, 26, 0.78);
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.category-btn:hover,
.category-btn.active {
  background: linear-gradient(135deg, rgba(101, 216, 255, 0.9), rgba(123, 97, 255, 0.92));
  border-color: transparent;
  transform: translateY(-1px);
}

.eyebrow {
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #9ed7ff;
  font-size: 0.78rem;
}

.topbar h1 {
  margin: 0;
  font-size: 2rem;
}

.product-rail {
  width: 100%;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px 10px;
  align-items: start;
  justify-items: center;
}

.product-card {
  width: 100%;
  max-width: 190px;
}

.product-card span {
  white-space: normal;
  line-height: 1.3;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: rgba(3, 8, 16, 0.86);
  padding: 20px;
}

.modal-overlay.hidden {
  display: none;
}

.modal-dialog {
  width: min(100%, 900px);
  max-height: 92vh;
  background: rgba(10, 18, 34, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.modal-content {
  display: grid;
  gap: 22px;
  padding: 24px;
  max-height: calc(90vh - 48px);
}

.modal-header {
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.modal-gallery {
  display: grid;
  gap: 18px;
  max-height: calc(92vh - 140px);
  overflow-y: auto;
  padding-right: 4px;
}

.modal-card {
  display: grid;
  gap: 18px;
  padding: 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-gallery::-webkit-scrollbar {
  width: 8px;
}

.modal-gallery::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
}

.modal-gallery::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  display: grid;
  gap: 14px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.modal-item-info {
  display: grid;
  gap: 10px;
}

.modal-item-info p {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.6;
}

.modal-image-frame {
  min-height: 240px;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(11, 18, 34, 0.96);
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.modal-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal-image-placeholder {
  width: 100%;
  min-height: 240px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.04);
}

.modal-info h2 {
  margin: 0 0 12px;
  font-size: 1.6rem;
}

.modal-info p {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.8;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 1.6rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.modal-close:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.16);
}

.modal-actions {
  margin-top: 18px;
}

.buy-button {
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(101, 216, 255, 0.95), rgba(123, 97, 255, 0.95));
  color: #07111f;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.buy-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.photo-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.92);
  padding: 20px;
}

.photo-overlay.hidden {
  display: none;
}

.photo-overlay img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.45);
}

.photo-close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 1.6rem;
  cursor: pointer;
  z-index: 61;
  transition: transform 0.2s ease, background 0.2s ease;
}

.photo-close:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.16);
}


.preview-card {
  width: min(100%, 900px);
  display: grid;
  grid-template-columns: minmax(180px, 220px) 1fr;
  gap: 18px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
}

.preview-image-frame {
  min-height: 200px;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(11, 18, 34, 0.88);
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.preview-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.preview-info h2 {
  margin: 0 0 10px;
  font-size: 1.4rem;
}

.preview-info p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.75;
}

.product-card {
  position: relative;
  display: grid;
  gap: 6px;
  justify-items: center;
  padding: 8px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.product-card:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.34);
  border-color: rgba(101, 216, 255, 0.55);
}

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  padding: 4px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 210, 90, 0.95), rgba(255, 105, 180, 0.95));
  color: #07111f;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.24);
}

.product-card .image-frame {
  width: 110px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.24);
  padding: 4px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.product-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
  display: block;
  background: rgba(11, 18, 34, 0.78);
}

.product-card span {
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

.product-card.hidden {
  display: none;
}

@media (max-width: 640px) {
  .dashboard-container,
  .login-card {
    padding: 18px;
  }

  .login-row {
    grid-template-columns: 1fr;
  }

  .topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .search-wrap {
    width: 100%;
  }
}
