/*!*****************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./src/app/globals.css ***!
  \*****************************************************************************************************************************************************************************************************************************************************************/
:root {
  --bg: #f6f8fc;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --panel: #ffffff;
  --primary: #2563eb;
  --cyan: #52b6d8;
  --green: #22c55e;
  --amber: #f5b942;
  --danger: #ef4444;
  --nav: #111827;
  --shadow: 0 18px 44px rgba(25, 33, 58, 0.1);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video {
  max-width: 100%;
  display: block;
}

/* Public landing */
.public-page {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  overflow-x: hidden;
  color: #243044;
  background: transparent;
}

.public-background {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: #ffffff;
}

.public-background.white {
  background: #ffffff;
}

.public-background img,
.public-background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.background-overlay {
  position: absolute;
  inset: 0;
}

.link-canvas {
  width: min(676px, calc(100% - 36px));
  margin: 34px auto 72px;
  padding: clamp(12px, 3vw, 24px);
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 126px;
  margin-bottom: 28px;
  padding: 24px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 24px 54px rgba(30, 41, 59, 0.12),
    inset 0 0 0 1px rgba(226, 232, 240, 0.45);
}

.profile-card h1,
.profile-card p {
  margin: 0;
}

.profile-card h1 {
  color: #22324c;
  font-size: clamp(18px, 4vw, 26px);
  font-weight: 950;
  line-height: 1.15;
}

.profile-card p {
  margin-top: 7px;
  color: #8fc3d5;
  font-size: clamp(13px, 2.7vw, 16px);
  font-weight: 850;
  line-height: 1.35;
}

.hero-card {
  position: relative;
  padding: 22px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 26px 64px rgba(21, 34, 55, 0.14),
    inset 0 0 0 1px rgba(226, 232, 240, 0.56);
}

.hero-art {
  display: block;
  width: 100%;
  aspect-ratio: 1.95 / 1;
  padding: 0;
  border: 0;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(135deg, #f8c43b, #b62945 55%, #181232);
  box-shadow: 0 18px 40px rgba(19, 36, 68, 0.16);
  cursor: default;
}

.hero-art.clickable {
  cursor: pointer;
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jackpot-art {
  position: relative;
  height: 100%;
  padding: 46px 38px;
}

.jackpot-art b {
  position: absolute;
  top: 18%;
  right: 40px;
  color: #ffe069;
  font-size: clamp(58px, 15vw, 92px);
  line-height: 1;
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.24);
}

.jackpot-art span {
  position: absolute;
  right: 34px;
  bottom: 24%;
  color: white;
  font-size: clamp(18px, 4.4vw, 27px);
  font-weight: 900;
}

.floating-actions {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: -34px 0 18px;
}

.floating-actions button {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 0;
  border-radius: 18px;
  color: white;
  background: linear-gradient(180deg, #78d7ee, #49aecf);
  box-shadow:
    0 14px 24px rgba(31, 96, 133, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.floating-actions svg,
.card-share svg,
.share-action svg,
.copy-row svg,
.modal-close svg {
  width: 21px;
  height: 21px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: -2px 0 18px;
}

.carousel-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #d7e3eb;
}

.carousel-dots button.active {
  width: 20px;
  background: #52b6d8;
}

.profile-title,
.profile-subtitle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 66px;
  padding: 0 18px;
  border: 0;
  border-radius: 20px;
  color: white;
  font-weight: 900;
  text-align: center;
}

.profile-title {
  background: #688fb0;
  box-shadow: 0 12px 24px rgba(104, 143, 176, 0.24);
  font-size: clamp(18px, 4.8vw, 25px);
}

.profile-subtitle {
  margin-top: 16px;
  background: #374b69;
  box-shadow: 0 12px 24px rgba(55, 75, 105, 0.2);
  font-size: clamp(14px, 3.2vw, 18px);
}

.content-stream {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 28px;
}

.trust-button {
  width: 100%;
  min-height: 78px;
  border: 0;
  border-radius: 32px;
  color: #8ee4bd;
  background: #05060a;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
  font-size: clamp(18px, 4vw, 25px);
  font-weight: 900;
}

.promo-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.promo-card {
  position: relative;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow:
    0 22px 48px rgba(21, 34, 55, 0.14),
    inset 0 0 0 1px rgba(255, 255, 255, 0.66);
  -webkit-backdrop-filter: blur(18px);
          backdrop-filter: blur(18px);
  overflow: hidden;
}

.promo-main {
  width: 100%;
  padding: 0;
  text-align: left;
  border: 0;
  color: #243044;
  background: transparent;
}

.promo-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 13px 62px 13px 18px;
  background: rgba(82, 182, 216, 0.92);
  color: white;
}

.promo-head strong {
  font-size: 17px;
  font-weight: 900;
}

.promo-head span {
  margin-left: auto;
  padding: 7px 12px;
  border-radius: 999px;
  color: #06251b;
  background: #2de1a6;
  font-size: 12px;
  font-weight: 900;
}

.promo-body {
  padding: 24px 24px 26px;
  background: rgba(255, 255, 255, 0.76);
}

.promo-body p {
  margin: 0;
  color: #4b5d73;
  font-size: 14px;
  font-weight: 780;
  line-height: 1.75;
}

.card-share {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 14px;
  color: white;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}

.vip-card {
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow:
    0 22px 48px rgba(21, 34, 55, 0.12),
    inset 0 0 0 1px rgba(226, 232, 240, 0.54);
}

.vip-header {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 68px;
  padding: 12px 22px;
  border: 0;
  color: white;
  background: #52b6d8;
}

.vip-header strong {
  flex: 1 1;
  text-align: left;
  font-weight: 900;
}

.vip-header span {
  font-size: 24px;
  font-weight: 900;
}

.vip-body {
  padding: 22px 26px 26px;
}

.vip-body p {
  margin: 0 0 20px;
  color: #4b5d73;
  font-weight: 650;
  line-height: 1.55;
}

.vip-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 14px;
  gap: 14px;
}

.vip-buttons button {
  min-height: 44px;
  border: 0;
  border-radius: 14px;
  color: white;
  background: var(--amber);
  font-size: 13px;
  font-weight: 900;
}

.public-footer {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.public-footer button {
  min-height: 58px;
  border: 0;
  border-radius: 18px;
  color: white;
  background: linear-gradient(135deg, #315dff, #2241c9);
  font-weight: 850;
  box-shadow: 0 14px 28px rgba(49, 93, 255, 0.2);
}

.logo {
  width: 62px;
  height: 62px;
  object-fit: cover;
  border-radius: 50%;
}

.logo.square {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.logo.large {
  width: 132px;
  height: 132px;
}

.logo.fallback {
  display: grid;
  place-items: center;
  color: #f8d95c;
  background: linear-gradient(135deg, #0d8a49, #0b5b3a);
  font-size: 14px;
  font-weight: 1000;
}

.profile-card .logo.fallback {
  font-size: 20px;
}

.logo.fallback.large {
  font-size: 38px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  padding: 28px;
  background:
    radial-gradient(circle at 20% 12%, rgba(120, 122, 188, 0.72), transparent 34%),
    radial-gradient(circle at 82% 72%, rgba(59, 130, 246, 0.42), transparent 32%),
    rgba(17, 24, 64, 0.78);
  -webkit-backdrop-filter: blur(18px);
          backdrop-filter: blur(18px);
}

.share-backdrop {
  align-items: flex-end;
  justify-content: center;
  padding: 0 24px;
}

.qr-backdrop {
  align-items: center;
  justify-content: center;
}

.share-modal,
.qr-modal {
  position: relative;
  width: min(720px, 100%);
  padding: clamp(24px, 4vw, 42px);
  border-radius: 30px;
  color: #263349;
  background: white;
  box-shadow:
    0 36px 90px rgba(8, 13, 45, 0.34),
    inset 0 0 0 1px rgba(226, 232, 240, 0.72);
}

.share-modal {
  width: min(640px, 100%);
  padding: 28px 28px 88px;
  border-radius: 12px 12px 0 0;
  animation: sheetIn 0.22s ease-out;
}

.share-modal h2,
.qr-modal h2 {
  margin: 0 0 18px;
  color: #1e293b;
}

.share-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.share-header h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 950;
}

.copy-row,
.share-action,
.download-qr {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 58px;
  margin-top: 12px;
  border: 1px solid #dfe5eb;
  border-radius: 15px;
  color: #263349;
  background: #ffffff;
  font-weight: 850;
}

.copy-row {
  gap: 16px;
  padding: 0 10px 0 22px;
  background: #ffffff;
}

.copy-row span {
  flex: 1 1;
  overflow: hidden;
  color: #263349;
  font-size: clamp(17px, 3vw, 23px);
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-row button {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 0;
  border-radius: 13px;
  color: #263349;
  background: #eef4f8;
}

.share-action {
  justify-content: flex-start;
  gap: 16px;
  min-height: 62px;
  padding: 0 18px;
  text-align: left;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.share-action:hover {
  transform: translateY(-1px);
  border-color: #cdd8e3;
  box-shadow: 0 14px 26px rgba(21, 34, 55, 0.08);
}

.share-action strong {
  flex: 1 1;
  font-size: clamp(16px, 2.8vw, 21px);
}

.share-action > svg {
  color: #91a2b7;
}

.share-action-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  color: white;
}

.share-action-icon.qr {
  color: #334155;
  background: #eef4f8;
}

.share-action-icon.facebook {
  background: #1877f2;
}

.share-action-icon.telegram {
  background: #2aabee;
}

.share-action-icon.x {
  background: #111827;
}

.share-action-icon.linkedin {
  background: #0a66c2;
}

.share-action-icon.email {
  background: #64748b;
}

.modal-close {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: white;
  background: #5aa8da;
}

.qr-modal .modal-close {
  position: absolute;
  top: 22px;
  left: auto;
  right: 22px;
  color: #263349;
  background: #eef4f8;
}

.qr-modal img {
  width: 260px;
  height: 260px;
  margin: 28px auto;
}

@media (max-width: 720px) {
  .link-canvas {
    width: min(100% - 20px, 640px);
    margin-top: 18px;
    padding: 8px;
  }

  .profile-card {
    min-height: 118px;
    margin-bottom: 22px;
    padding: 20px;
    border-radius: 28px;
  }

  .hero-card {
    padding: 14px;
    border-radius: 26px;
  }

  .hero-art {
    border-radius: 24px;
  }

  .floating-actions button {
    width: 54px;
    height: 54px;
  }

  .trust-button {
    min-height: 68px;
  }

  .share-modal,
  .qr-modal {
    width: 100%;
    max-height: calc(100vh - 36px);
    overflow: auto;
  }

  .share-modal {
    max-height: 82vh;
    border-radius: 10px 10px 0 0;
    padding: 24px 24px 78px;
  }

  .qr-modal {
    border-radius: 26px;
  }
}

@keyframes sheetIn {
  from {
    transform: translateY(32px);
    opacity: 0.5;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Admin */
.login-page,
.admin-loading,
.runtime-error-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 15% 15%, rgba(37, 99, 235, 0.24), transparent 30%),
    linear-gradient(135deg, #111827, #0f172a 50%, #172554);
}

.runtime-error-page section {
  width: min(520px, 100%);
  padding: 36px;
  border-radius: 28px;
  color: white;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.28);
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
}

.runtime-error-page h1 {
  margin: 22px 0 12px;
  font-size: 30px;
}

.runtime-error-page p {
  color: #cbd5e1;
  line-height: 1.8;
}

.runtime-error-page code {
  display: block;
  margin: 18px 0;
  color: #f8d95c;
}

.runtime-error-page button,
.runtime-error-page a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-right: 10px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  color: white;
  background: var(--primary);
  font-weight: 900;
}

.runtime-error-page a {
  background: rgba(255, 255, 255, 0.14);
}

.login-card {
  width: min(430px, 100%);
  padding: 36px;
  border-radius: 28px;
  color: white;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.28);
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
}

.login-card h1 {
  margin: 0 0 28px;
  font-size: 30px;
}

.login-card p {
  margin: 0 0 26px;
  color: #cbd5e1;
  line-height: 1.6;
}

.login-card form,
.password-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.login-card label,
.password-form label,
.field,
.visual-form label {
  display: flex;
  flex-direction: column;
  gap: 9px;
  color: #475569;
  font-size: 13px;
  font-weight: 850;
}

.login-card label {
  color: #e2e8f0;
}

.login-card input,
.field input,
.field textarea,
.field select,
.password-form input,
.visual-form input,
.visual-form textarea,
.visual-form select,
.search-input {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 12px;
  outline: none;
  background: #f8fafc;
  color: #0f172a;
  font-size: 14px;
  font-weight: 650;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.login-card input {
  height: 48px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.12);
  color: white;
}

.field input,
.field select,
.password-form input,
.visual-form input,
.visual-form select,
.search-input {
  height: 44px;
  padding: 0 14px;
}

.field textarea,
.visual-form textarea {
  min-height: 96px;
  padding: 12px 14px;
  resize: vertical;
}

.login-card input:focus,
.field input:focus,
.field textarea:focus,
.password-form input:focus,
.visual-form input:focus,
.visual-form textarea:focus,
.search-input:focus {
  border-color: rgba(37, 99, 235, 0.7);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.primary,
.save-button {
  min-height: 46px;
  border: 0;
  border-radius: 14px;
  color: white;
  background: var(--primary);
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.24);
}

.admin-logo {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  color: #f8d95c;
  background: linear-gradient(135deg, #0d8a49, #0b5b3a);
  font-weight: 1000;
}

.admin-logo.large {
  width: 62px;
  height: 62px;
  font-size: 20px;
}

.admin-app {
  display: grid;
  grid-template-columns: 264px 1fr;
  min-height: 100vh;
  background: var(--bg);
}

.admin-sidebar {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 18px;
  color: white;
  background: var(--nav);
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 42px;
}

.admin-brand strong,
.admin-brand span {
  display: block;
}

.admin-brand strong {
  font-size: 18px;
}

.admin-brand span {
  margin-top: 3px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
}

.admin-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-sidebar nav a {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 850;
}

.admin-sidebar nav a.active {
  color: white;
  background: var(--primary);
}

.admin-main {
  min-width: 0;
}

.admin-topbar {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 86px;
  padding: 0 40px;
  background: white;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.admin-topbar h1 {
  margin: 0;
  font-size: 28px;
}

.admin-topbar span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.admin-user {
  display: flex;
  align-items: center;
  gap: 14px;
}

.admin-user button {
  height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  color: #334155;
  background: #f1f5f9;
  font-weight: 850;
}

.admin-content {
  padding: 40px;
}

.panel {
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.panel-heading h2 {
  margin: 0;
  font-size: 22px;
}

.panel-heading p {
  max-width: 620px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.6;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 344px;
  grid-gap: 28px;
  gap: 28px;
}

.stat-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 24px;
  gap: 24px;
}

.stat-card {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  min-height: 136px;
  padding: 20px;
  border-radius: 20px;
  background: white;
  box-shadow: var(--shadow);
}

.stat-card span {
  color: var(--primary);
}

.stat-card.cyan span {
  color: #06b6d4;
}

.stat-card.amber span {
  color: #f59e0b;
}

.stat-card.green span {
  color: #22c55e;
}

.stat-card small {
  color: var(--muted);
  font-weight: 800;
}

.stat-card strong {
  font-size: 30px;
}

.stat-card em {
  color: #16a34a;
  font-size: 13px;
  font-style: normal;
  font-weight: 850;
}

.chart-panel,
.recent-panel,
.quick-panel,
.system-panel {
  padding: 28px;
}

.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 40px;
  height: 230px;
  padding: 20px 28px 0;
  border-bottom: 1px solid var(--line);
}

.bar-chart span {
  width: 42px;
  border-radius: 12px 12px 0 0;
  background: #cfe2ff;
}

.bar-chart span.active {
  background: var(--primary);
}

.quick-panel {
  color: white;
  background: #111827;
}

.quick-panel .panel-heading h2,
.quick-panel .panel-heading p {
  color: white;
}

.quick-panel a {
  display: flex;
  align-items: center;
  height: 48px;
  margin-top: 14px;
  padding: 0 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  font-weight: 850;
}

.recent-panel {
  grid-column: 1 / -1;
}

.recent-list {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
}

.recent-list div {
  display: grid;
  grid-template-columns: 220px 1fr 88px;
  align-items: center;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 14px;
  background: #f8fafc;
}

.recent-list span {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-list em,
.resource-rows em {
  justify-self: end;
  padding: 6px 12px;
  border-radius: 999px;
  background: #eaf7ff;
  color: #334155;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.resource-layout {
  display: grid;
  grid-template-columns: minmax(540px, 1fr) 390px;
  grid-gap: 28px;
  gap: 28px;
}

.resource-list,
.resource-editor {
  min-height: 754px;
  padding: 28px;
}

.search-input {
  margin-bottom: 22px;
}

.resource-rows {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
}

.resource-rows button {
  display: grid;
  grid-template-columns: 44px 1fr 78px;
  grid-gap: 16px;
  gap: 16px;
  align-items: center;
  min-height: 74px;
  padding: 14px 18px;
  text-align: left;
  border: 0;
  border-radius: 16px;
  background: white;
}

.resource-rows button.selected {
  background: #eff6ff;
}

.resource-rows strong,
.resource-rows small {
  display: block;
}

.resource-rows small {
  overflow: hidden;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-thumb {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 12px;
  background: #e2e8f0;
}

.row-thumb.fallback {
  display: grid;
  place-items: center;
  color: white;
  background: var(--primary);
  font-weight: 900;
}

.resource-rows em.off {
  background: #f1f5f9;
  color: #64748b;
}

.danger {
  border: 0;
  border-radius: 12px;
  color: white;
  background: var(--danger);
  font-weight: 900;
}

.editor-fields {
  display: grid;
  grid-gap: 18px;
  gap: 18px;
  max-height: 650px;
  overflow: auto;
  padding-right: 4px;
}

.resource-editor .save-button,
.settings-layout .save-button,
.system-panel .save-button {
  width: 100%;
  margin-top: 24px;
}

.switch {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 14px;
  color: #64748b;
  background: #f1f5f9;
  font-size: 13px;
  font-weight: 900;
}

.switch i {
  position: relative;
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: #cbd5e1;
}

.switch i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: white;
  transition: transform 0.2s;
}

.switch.on {
  color: #155e75;
  background: #eaf7ff;
}

.switch.on i {
  background: var(--primary);
}

.switch.on i::after {
  transform: translateX(14px);
}

.upload-control {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
}

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

.upload-control img,
.upload-control video,
.upload-placeholder {
  width: 100%;
  height: 144px;
  object-fit: cover;
  border-radius: 18px;
  background: #f8fafc;
}

.upload-control.icon {
  grid-template-columns: 74px 1fr;
  align-items: center;
}

.upload-control.icon img,
.upload-control.icon video,
.upload-control.icon .upload-placeholder {
  width: 74px;
  height: 74px;
  border-radius: 16px;
}

.upload-control.icon button,
.upload-control.icon code {
  grid-column: 2;
}

.upload-placeholder {
  display: grid;
  place-items: center;
  color: #94a3b8;
  font-size: 46px;
}

.upload-control button {
  min-height: 40px;
  border: 0;
  border-radius: 12px;
  color: white;
  background: var(--primary);
  font-weight: 900;
}

.upload-control .ghost,
.button-editor .ghost {
  color: #334155;
  background: #f1f5f9;
}

.upload-control code,
.media-card code {
  overflow: hidden;
  color: #64748b;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.button-editor {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
}

.button-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr 60px 42px;
  grid-gap: 8px;
  gap: 8px;
}

.button-row button,
.button-editor .ghost {
  min-height: 38px;
  border: 0;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 900;
}

.settings-layout {
  display: grid;
  grid-template-columns: minmax(520px, 1fr) minmax(420px, 0.72fr);
  grid-gap: 28px;
  gap: 28px;
}

.settings-form,
.visual-form {
  padding: 28px;
}

.settings-form,
.visual-form,
.password-form {
  display: grid;
  grid-gap: 18px;
  gap: 18px;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 18px;
  gap: 18px;
}

.background-options,
.switch-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 14px;
  gap: 14px;
}

.media-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  grid-gap: 28px;
  gap: 28px;
}

.media-layout > .panel {
  padding: 28px;
}

.media-grid-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  grid-gap: 20px;
  gap: 20px;
}

.media-card {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  background: white;
  box-shadow: var(--shadow);
}

.media-card img,
.media-card video {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 14px;
  background: #f1f5f9;
}

.media-card strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-card button {
  min-height: 36px;
  border: 0;
  border-radius: 10px;
  color: #334155;
  background: #f1f5f9;
  font-weight: 900;
}

.media-card button.icon-copy {
  display: grid;
  place-items: center;
}

.media-card button.danger {
  color: white;
  background: var(--danger);
}

.empty-state {
  display: grid;
  min-height: 460px;
  place-items: center;
  text-align: center;
}

.empty-state p {
  color: var(--muted);
}

@media (max-width: 1100px) {
  .admin-app {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: relative;
    height: auto;
  }

  .dashboard-grid,
  .resource-layout,
  .settings-layout,
  .media-layout {
    grid-template-columns: 1fr;
  }

  .stat-grid,
  .media-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .jackpot-art b {
    top: 36px;
    right: 28px;
    font-size: 58px;
  }

  .logo.large {
    width: 92px;
    height: 92px;
  }

  .vip-buttons {
    grid-template-columns: 1fr;
  }

  .modal-backdrop {
    padding: 14px;
  }

  .admin-content,
  .admin-topbar {
    padding-left: 18px;
    padding-right: 18px;
  }

  .admin-topbar {
    height: auto;
    min-height: 86px;
    gap: 14px;
  }

  .stat-grid,
  .media-grid,
  .background-options,
  .switch-row {
    grid-template-columns: 1fr;
  }

  .recent-list div,
  .resource-rows button,
  .button-row {
    grid-template-columns: 1fr;
  }
}

