:root {
  color-scheme: light;
  --bg: #eef3f1;
  --panel: #ffffff;
  --ink: #12201c;
  --muted: #65756f;
  --line: #d9e2de;
  --green: #167a57;
  --yellow: #f2c84b;
  --red: #d3483f;
  --blue: #245f9f;
  --shadow: 0 16px 36px rgba(18, 32, 28, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(22, 122, 87, 0.14), transparent 34rem),
    linear-gradient(135deg, #eef3f1 0%, #f8faf7 52%, #eaf1f4 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

input {
  min-width: 0;
}

button {
  cursor: pointer;
}

body.login-open {
  overflow: hidden;
}

body.ai-busy {
  overflow: hidden;
}

.ai-loading-overlay {
  align-items: center;
  backdrop-filter: blur(5px);
  background: rgba(5, 18, 15, 0.62);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 22px;
  position: fixed;
  z-index: 300;
}

.ai-loading-overlay.open {
  display: flex;
}

.ai-loading-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.28);
  color: var(--ink);
  display: grid;
  gap: 12px;
  justify-items: center;
  max-width: 390px;
  padding: 28px;
  text-align: center;
  width: min(100%, 390px);
}

.ai-loading-card > span {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ai-loading-card strong {
  font-size: 18px;
}

.ai-loading-card p,
.ai-loading-card small {
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

.ai-spinner {
  animation: aiSpin 0.9s linear infinite;
  border: 4px solid #e5ece9;
  border-top-color: var(--green);
  border-radius: 50%;
  height: 44px;
  width: 44px;
}

.ai-progress {
  background: #e5ece9;
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
  width: 100%;
}

.ai-progress i {
  animation: aiProgress 2.1s ease-in-out infinite;
  background: linear-gradient(90deg, var(--green), var(--yellow), var(--blue));
  border-radius: inherit;
  display: block;
  height: 100%;
  width: 42%;
}

@keyframes aiSpin {
  to { transform: rotate(360deg); }
}

@keyframes aiProgress {
  0% { transform: translateX(-110%); }
  55% { transform: translateX(90%); }
  100% { transform: translateX(210%); }
}

.login-screen {
  align-items: center;
  background:
    radial-gradient(circle at 18% 20%, rgba(242, 200, 75, 0.18), transparent 22rem),
    radial-gradient(circle at 88% 78%, rgba(36, 95, 159, 0.24), transparent 24rem),
    linear-gradient(120deg, #09281f 0%, #0d4938 52%, #063326 100%),
    #10241e;
  display: none;
  inset: 0;
  justify-content: center;
  min-height: 100vh;
  overflow: hidden;
  padding: 28px;
  position: fixed;
  z-index: 100;
}

.login-screen::before {
  background:
    linear-gradient(90deg, #0b7f58 0 25%, #f0c84b 25% 50%, #d9433f 50% 75%, #245f9f 75% 100%);
  content: "";
  height: 6px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.login-screen.visible {
  display: flex;
}

.worldcup-ribbon {
  align-items: center;
  color: #f7fbf9;
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr auto 1fr 1fr;
  left: 50%;
  max-width: 720px;
  position: absolute;
  text-align: center;
  top: 28px;
  transform: translateX(-50%);
  width: min(calc(100% - 48px), 720px);
  z-index: 2;
}

.worldcup-ribbon span,
.worldcup-ribbon strong {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  min-height: 34px;
  padding: 9px 14px;
  text-transform: uppercase;
}

.worldcup-ribbon strong {
  background: #f2c84b;
  color: #10241e;
}

.login-art {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(130px, 210px));
  opacity: 0.82;
  position: absolute;
  right: clamp(18px, 7vw, 110px);
  transform: rotate(-4deg);
}

.login-art img {
  aspect-ratio: 3 / 4;
  border: 5px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  box-shadow: 0 24px 46px rgba(0, 0, 0, 0.32);
  object-fit: cover;
  width: 100%;
}

.login-title-lockup {
  color: #f7fbf9;
  left: clamp(32px, 6vw, 110px);
  max-width: 520px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
}

.login-title-lockup span {
  color: #f2c84b;
  display: block;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.login-title-lockup h2 {
  color: #ffffff;
  font-size: clamp(52px, 5.8vw, 88px);
  line-height: 0.94;
  margin: 0 0 18px;
}

.login-title-lockup p {
  color: #cfe0da;
  font-size: 18px;
  line-height: 1.45;
  margin: 0;
  max-width: 390px;
}

.login-card {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
  display: grid;
  gap: 12px;
  margin-left: min(34vw, 540px);
  margin-right: min(18vw, 260px);
  max-width: 430px;
  padding: 28px;
  position: relative;
  width: 100%;
  z-index: 1;
}

.auth-tabs {
  background: #e5ece9;
  border-radius: 8px;
  display: grid;
  gap: 4px;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
}

.auth-tabs button {
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: #465750;
  min-height: 38px;
}

.auth-tabs button.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 5px 12px rgba(18, 32, 28, 0.09);
}

.auth-panel {
  display: none;
  gap: 12px;
}

.auth-panel.active {
  display: grid;
}

.forgot-panel {
  display: none;
  gap: 10px;
  margin-top: -2px;
}

.forgot-panel.active {
  display: grid;
}

.forgot-toggle {
  background: transparent;
  border: 0;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  justify-self: start;
  min-height: 0;
  padding: 0;
}

.forgot-fields {
  display: none;
  gap: 8px;
}

.forgot-fields.open {
  display: grid;
}

.forgot-row {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.forgot-row button {
  background: #10241e;
  border: 0;
  border-radius: 8px;
  color: #fff;
  font-weight: 900;
  min-height: 42px;
  padding: 0 16px;
}

.login-brand {
  color: var(--ink);
  padding: 0;
}

.login-card h2 {
  font-size: 34px;
  line-height: 1.08;
  margin: 8px 0 0;
}

.login-copy {
  color: var(--muted);
  line-height: 1.45;
  margin: 0 0 8px;
}

.login-card label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.auth-panel button,
.secondary-button {
  border: 0;
  border-radius: 8px;
  min-height: 44px;
}

.auth-panel button {
  background: var(--green);
  color: #fff;
}

.secondary-button {
  background: #e5ece9;
  color: var(--ink);
}

.login-message {
  color: var(--red);
  font-size: 13px;
  min-height: 18px;
}

.app-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  background: #10241e;
  color: #f7fbf9;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 28px 18px;
}

.brand {
  align-items: center;
  display: flex;
  gap: 14px;
  padding: 0 8px 10px;
}

.brand-mark {
  align-items: center;
  background: conic-gradient(from 20deg, var(--green), var(--yellow), var(--blue), var(--red), var(--green));
  border: 3px solid rgba(255, 255, 255, 0.88);
  border-radius: 50%;
  color: #fff;
  display: grid;
  font-size: 20px;
  font-weight: 900;
  height: 58px;
  place-items: center;
  width: 58px;
}

.brand p,
.eyebrow {
  color: #7a8a84;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 4px;
  text-transform: uppercase;
}

.brand h1,
.topbar h2 {
  margin: 0;
}

.sync-status {
  color: var(--muted);
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  margin-top: 8px;
}

.status-line {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.app-version {
  background: #102c24;
  border-radius: 6px;
  color: #ffd84c;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  margin-top: 8px;
  padding: 3px 7px;
}

.sync-status.online {
  color: var(--green);
}

.sync-status.offline {
  color: var(--red);
}

.section-list {
  display: grid;
  gap: 6px;
  max-height: calc(100vh - 260px);
  overflow: auto;
  padding-right: 4px;
}

.mobile-country-field {
  display: none;
}

.section-button {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #dce8e3;
  display: flex;
  justify-content: space-between;
  min-height: 42px;
  padding: 9px 10px;
  text-align: left;
  width: 100%;
}

.section-button.active,
.section-button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.section-button span {
  color: #aebbb6;
  font-size: 12px;
}

.section-form {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding: 18px 8px 0;
}

.section-form label,
.search-field label,
.batch-form label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.section-form label {
  color: #c7d5d0;
}

.compact-row {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) 74px;
}

input {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  min-height: 42px;
  outline: none;
  padding: 0 12px;
  width: 100%;
}

input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(22, 122, 87, 0.14);
}

.section-form button,
.actions button,
.file-button,
.batch-form button {
  background: var(--green);
  border: 0;
  border-radius: 8px;
  color: #fff;
  min-height: 42px;
  padding: 0 14px;
}

.workspace {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.topbar,
.toolbar,
.editor-panel,
.content-grid {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.topbar h2 {
  font-size: 30px;
  line-height: 1.1;
}

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

body:not(.is-authenticated) .actions,
body.login-open .actions {
  display: none;
}

.admin-only {
  display: none !important;
}

body:not(.is-admin) [data-admin-feature] {
  display: none !important;
}

body.is-admin button.admin-only {
  display: inline-flex !important;
}

.more-actions {
  background: #ffffff;
  border: 1px solid #d6e2de;
  border-radius: 8px;
  box-shadow: 0 18px 36px rgba(18, 32, 28, 0.16);
  display: none;
  gap: 8px;
  padding: 10px;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(260px, calc(100vw - 32px));
  z-index: 30;
}

.notification-panel {
  background: #ffffff;
  border: 1px solid #d6e2de;
  border-radius: 8px;
  box-shadow: 0 18px 36px rgba(18, 32, 28, 0.16);
  display: none;
  gap: 10px;
  padding: 12px;
  position: absolute;
  right: 58px;
  top: calc(100% + 8px);
  width: min(340px, calc(100vw - 32px));
  z-index: 31;
}

.notification-panel.open {
  display: grid;
}

.notification-head {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.notification-head button {
  background: #e5ece9;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  min-height: 32px;
  padding: 0 10px;
}

.notification-list {
  display: grid;
  gap: 8px;
  max-height: 320px;
  overflow: auto;
}

.notification-item {
  background: #f9fcfb;
  border: 1px solid #d6e2de;
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 10px;
}

.notification-item strong {
  font-size: 14px;
}

.notification-item span,
.notification-item small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.notification-item.unread {
  border-color: rgba(22, 122, 87, 0.48);
  box-shadow: inset 3px 0 0 var(--green);
}

.more-actions.open {
  display: grid;
}

.more-actions > * {
  justify-content: center;
  width: 100%;
}

.more-actions .user-badge {
  justify-content: center;
  order: -1;
}

.top-action {
  align-items: center;
  background: #e5ece9;
  border: 1px solid #cddbd6;
  border-radius: 8px;
  color: var(--ink);
  display: inline-flex;
  font-weight: 900;
  gap: 8px;
  min-height: 42px;
  padding: 0 12px;
}

.menu-action {
  align-items: center;
  justify-content: center;
  font-size: 0;
  min-width: 48px;
  padding: 0;
}

.menu-action::before {
  background:
    linear-gradient(#12201c, #12201c) 0 0 / 22px 3px no-repeat,
    linear-gradient(#12201c, #12201c) 0 8px / 22px 3px no-repeat,
    linear-gradient(#12201c, #12201c) 0 16px / 22px 3px no-repeat;
  content: "";
  height: 19px;
  width: 22px;
}

.top-action.accent {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.top-action.active {
  background: #10241e;
  border-color: #10241e;
  color: #fff;
}

.top-action span {
  background: rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  min-width: 24px;
  padding: 2px 7px;
  text-align: center;
}

.icon-action {
  min-width: 48px;
  padding: 0;
}

.notification-action::before {
  content: "";
  background:
    radial-gradient(circle at 50% 86%, #12201c 0 3px, transparent 3.5px),
    linear-gradient(#12201c, #12201c) 8px 18px / 14px 3px no-repeat,
    radial-gradient(circle at 50% 56%, transparent 0 10px, #12201c 10.5px 12px, transparent 12.5px);
  height: 26px;
  width: 30px;
}

.notification-action span {
  background: var(--red);
  color: #fff;
  font-size: 11px;
  min-width: 20px;
  padding: 1px 5px;
  position: absolute;
  right: 3px;
  top: 3px;
}

.notification-action.empty span {
  display: none;
}

.toast-container {
  display: grid;
  gap: 8px;
  max-width: min(420px, calc(100vw - 28px));
  position: fixed;
  right: 16px;
  top: 16px;
  z-index: 200;
}

.toast {
  background: #10241e;
  border-left: 5px solid var(--green);
  border-radius: 8px;
  box-shadow: 0 18px 36px rgba(18, 32, 28, 0.22);
  color: #fff;
  display: grid;
  gap: 3px;
  padding: 12px 14px;
}

.toast strong {
  color: var(--yellow);
}

.toast span {
  color: #dce8e3;
  font-size: 13px;
  line-height: 1.35;
}

.toast.error {
  border-left-color: var(--red);
}

#importFile {
  display: none;
}

.file-button {
  align-items: center;
  display: flex;
}

.user-badge {
  align-items: center;
  background: #e5ece9;
  border-radius: 8px;
  color: var(--ink);
  display: flex;
  font-size: 13px;
  font-weight: 800;
  min-height: 42px;
  padding: 0 12px;
}

.stats-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-card,
.progress-panel,
.shop-panel,
.admin-panel,
.users-panel,
.editor-panel,
.stickers-panel,
.exchange-panel {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(217, 226, 222, 0.86);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.shop-panel {
  display: grid;
  gap: 12px;
  overflow: hidden;
  padding: 14px;
  position: relative;
}

.album-screen .shop-panel,
.album-screen .admin-panel,
.album-screen .users-panel {
  display: none;
}

.shop-screen .album-only,
.shop-screen .admin-panel,
.shop-screen .users-panel {
  display: none;
}

.shop-screen .shop-panel {
  min-height: calc(100vh - 150px);
}

.admin-screen .album-only,
.admin-screen .shop-panel,
.admin-screen .users-panel {
  display: none;
}

.admin-screen .admin-panel {
  display: grid !important;
  min-height: calc(100vh - 150px);
}

.users-screen .album-only,
.users-screen .shop-panel,
.users-screen .admin-panel {
  display: none;
}

.users-screen .users-panel {
  display: grid !important;
  min-height: calc(100vh - 150px);
}

.shop-panel::before,
.admin-panel::before,
.users-panel::before {
  background: linear-gradient(90deg, var(--green), var(--yellow), var(--red), var(--blue));
  content: "";
  height: 5px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.admin-panel,
.users-panel {
  display: none;
  gap: 14px;
  overflow: hidden;
  padding: 14px;
  position: relative;
}

.admin-hero {
  align-items: center;
  background:
    radial-gradient(circle at 8% 10%, rgba(242, 200, 75, 0.18), transparent 18rem),
    linear-gradient(135deg, #10241e, #0d4938);
  border-radius: 8px;
  color: #f7fbf9;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 20px;
}

.admin-hero span {
  color: var(--yellow);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-hero h3 {
  color: #fff;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1;
  margin: 6px 0 8px;
}

.admin-hero p {
  color: #dce8e3;
  line-height: 1.45;
  margin: 0;
  max-width: 620px;
}

.admin-hero button {
  background: var(--yellow);
  border: 0;
  border-radius: 8px;
  color: #10241e;
  font-weight: 900;
  min-height: 42px;
  padding: 0 16px;
}

.users-list {
  display: grid;
  gap: 10px;
}

.user-row {
  align-items: end;
  background: #f9fcfb;
  border: 1px solid #d6e2de;
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.1fr) auto auto;
  padding: 12px;
}

.user-row strong,
.user-row span,
.user-row small,
.user-row input {
  min-width: 0;
  overflow-wrap: anywhere;
}

.user-row strong {
  display: block;
  font-size: 16px;
}

.user-row span,
.user-row small {
  color: var(--muted);
  font-size: 13px;
}

.user-row b {
  color: var(--green);
  font-size: 12px;
  text-transform: uppercase;
}

.user-row label {
  display: grid;
  gap: 6px;
}

.user-row label span {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.user-row input {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  min-height: 40px;
  padding: 0 10px;
  width: 100%;
}

.user-meta {
  display: grid;
  gap: 4px;
}

.user-actions {
  display: flex;
  gap: 8px;
}

.user-actions button {
  background: var(--green);
  border: 0;
  border-radius: 8px;
  color: #fff;
  font-weight: 900;
  min-height: 40px;
  padding: 0 12px;
  white-space: nowrap;
}

.user-actions .danger {
  background: #10241e;
}

.shop-hero {
  align-items: end;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.shop-copy {
  align-items: start;
  display: grid;
  gap: 6px;
}

.shop-copy > span,
.product-tag {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.shop-copy h3 {
  font-size: clamp(22px, 2.1vw, 30px);
  line-height: 1.05;
  margin: 0;
}

.shop-copy p,
.shop-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
}

.queue-note {
  align-items: center;
  background: #10241e;
  border-radius: 8px;
  color: #f7fbf9;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 4px;
  padding: 8px 10px;
  width: fit-content;
}

.queue-note strong {
  color: var(--yellow);
}

.queue-note span {
  color: #dce8e3;
}

.shop-products {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.shop-tabs {
  background: #e5ece9;
  border: 1px solid #d6e2de;
  border-radius: 8px;
  display: flex;
  gap: 4px;
  overflow: auto;
  padding: 4px;
}

.shop-tabs button {
  background: transparent;
  border: 0;
  border-radius: 7px;
  color: #31443d;
  flex: 0 0 auto;
  font-weight: 900;
  min-height: 38px;
  padding: 0 14px;
}

.shop-tabs button.active {
  background: #fff;
  box-shadow: 0 2px 8px rgba(18, 32, 28, 0.08);
  color: var(--ink);
}

.shop-notice {
  color: var(--green);
  display: block;
  font-weight: 900;
  min-height: 18px;
}

.shop-view {
  display: none;
}

.shop-view.active {
  display: block;
}

.shop-card {
  background: #f9fcfb;
  border: 1px solid #cddbd6;
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-template-rows: auto 1fr auto auto;
  min-height: 280px;
  padding: 10px;
}

.shop-card.featured {
  border-color: rgba(22, 122, 87, 0.48);
  box-shadow: inset 0 0 0 2px rgba(242, 200, 75, 0.55);
}

.shop-card h4 {
  font-size: 18px;
  margin: 3px 0 4px;
}

.box-preview {
  align-items: center;
  aspect-ratio: 16 / 8;
  background: #0f261f;
  border-radius: 8px;
  display: grid;
  justify-items: center;
  overflow: hidden;
  position: relative;
}

.box-preview img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
  z-index: 2;
}

.box-preview.has-photo::after {
  opacity: 0;
}

.box-preview::after {
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.18), transparent 38%);
  content: "";
  inset: 0;
  position: absolute;
}

.suitcase-box {
  background: linear-gradient(145deg, #15a98a, #08785f);
  border-bottom: 14px solid #0f5b4c;
}

.album-box {
  background:
    linear-gradient(90deg, #13a385 0 24%, transparent 24%),
    linear-gradient(145deg, #30a6c4, #2267a8);
}

.premium-box {
  background:
    linear-gradient(90deg, #f2c84b 0 28%, transparent 28%),
    linear-gradient(145deg, #111c19, #2b3430);
}

.sticker-product-box {
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.34), transparent 22%),
    linear-gradient(145deg, #44c5ca, #0d856d);
  color: #fff;
}

.sticker-product-26 {
  color: rgba(255, 255, 255, 0.92);
  font-size: 86px;
  font-weight: 950;
  line-height: 1;
}

.sticker-product-name {
  background: rgba(0, 67, 58, 0.9);
  border-radius: 999px;
  bottom: 18px;
  color: #fff;
  font-size: 13px;
  font-weight: 950;
  left: 18px;
  padding: 8px 14px;
  position: absolute;
  right: 18px;
  text-align: center;
  z-index: 3;
}

.box-handle {
  border: 7px solid rgba(0, 0, 0, 0.24);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  height: 26px;
  position: absolute;
  top: 12px;
  width: 68px;
}

.box-side {
  background: rgba(0, 0, 0, 0.16);
  bottom: 0;
  left: 0;
  position: absolute;
  top: 0;
  width: 25%;
}

.box-emblem {
  color: rgba(255, 255, 255, 0.92);
  font-size: 54px;
  font-weight: 900;
  line-height: 1;
  position: absolute;
}

.box-trophy {
  background: var(--yellow);
  border-radius: 48% 48% 42% 42%;
  box-shadow:
    0 34px 0 -18px #c4931e,
    0 52px 0 -24px #e2b338;
  height: 46px;
  position: relative;
  width: 28px;
  z-index: 1;
}

.box-trophy::before,
.box-trophy::after {
  border: 6px solid var(--yellow);
  border-bottom: 0;
  border-radius: 20px 20px 0 0;
  content: "";
  height: 18px;
  position: absolute;
  top: 7px;
  width: 20px;
}

.box-trophy::before {
  right: 24px;
  transform: rotate(-22deg);
}

.box-trophy::after {
  left: 24px;
  transform: rotate(22deg);
}

.suitcase-box strong,
.premium-box strong {
  bottom: 12px;
  color: #10241e;
  font-size: 15px;
  font-weight: 900;
  position: absolute;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.22);
}

.premium-box strong {
  color: #f7fbf9;
  left: 18px;
}

.price {
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
}

.product-buy {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: auto 1fr;
}

.product-buy button,
.checkout-card button,
.payment-card button,
.profile-form button,
.orders-head button,
.order-downloads a,
.order-downloads button,
.admin-order-actions a {
  align-items: center;
  background: var(--green);
  border: 0;
  border-radius: 8px;
  color: #fff;
  display: flex;
  font-weight: 900;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  text-decoration: none;
}

.order-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.order-downloads a,
.order-downloads button {
  font: inherit;
  min-height: 42px;
}

.order-downloads button {
  background: #10241e;
}

.custom-builder {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(320px, 0.85fr) minmax(280px, 0.55fr);
}

.custom-form,
.custom-preview {
  background: #f9fcfb;
  border: 1px solid #cddbd6;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 14px;
}

.custom-form h4 {
  font-size: 24px;
  margin: 4px 0;
}

.custom-form p {
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

.custom-form label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.custom-form select {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  min-height: 42px;
  padding: 0 12px;
  width: 100%;
}

.custom-form-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.custom-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.custom-actions button {
  align-items: center;
  background: var(--green);
  border: 0;
  border-radius: 8px;
  color: #fff;
  display: flex;
  font-weight: 900;
  justify-content: center;
  min-height: 42px;
  padding: 0 10px;
}

.custom-actions .secondary-button {
  background: #e5ece9;
  color: var(--ink);
}

.custom-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.custom-preview {
  align-content: start;
  justify-items: center;
}

.custom-preview canvas {
  aspect-ratio: 5 / 7;
  background: #dce8e3;
  border-radius: 8px;
  box-shadow: 0 18px 36px rgba(18, 32, 28, 0.16);
  max-height: 76vh;
  max-width: 100%;
  width: min(100%, 360px);
}

.cart-layout,
.payment-layout {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) 320px;
}

.cart-layout h4,
.payment-card h4,
.orders-head h4,
.profile-form h4 {
  font-size: 22px;
  margin: 0 0 6px;
}

.cart-items,
.orders-list {
  display: grid;
  gap: 10px;
}

.cart-item,
.order-card,
.checkout-card,
.payment-card,
.profile-form {
  background: #f9fcfb;
  border: 1px solid #d6e2de;
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 12px;
}

.cart-item {
  align-items: center;
  grid-template-columns: 92px minmax(0, 1fr) auto;
}

.cart-thumb {
  aspect-ratio: 4 / 3;
  background: #10241e;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.cart-thumb img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.cart-item strong,
.order-top strong {
  display: block;
  font-size: 17px;
}

.cart-item span,
.checkout-card p,
.orders-head p,
.profile-form p,
.order-top span,
.order-top em {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  margin: 0;
}

.order-top em {
  display: block;
  font-style: normal;
  margin-top: 4px;
}

.cart-controls {
  align-items: center;
  display: flex;
  gap: 6px;
}

.cart-controls button {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  min-height: 34px;
  min-width: 34px;
  padding: 0 10px;
}

.cart-controls button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.cart-locked {
  align-items: center;
  background: #10241e;
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  min-height: 36px;
  padding: 0 10px;
  text-align: center;
}

.checkout-card {
  align-content: start;
  position: sticky;
  top: 16px;
}

.checkout-card > span,
.payment-card > span,
.profile-form label,
.payment-profile label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.checkout-card > strong {
  font-size: 34px;
  line-height: 1;
}

.payment-card {
  align-content: start;
}

.payment-card p {
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.pix-box {
  background: #10241e;
  border-radius: 8px;
  color: #fff;
  display: grid;
  gap: 6px;
  padding: 16px;
}

.pix-box strong {
  color: var(--yellow);
}

.pix-box span,
.payment-items span {
  color: #dce8e3;
  font-size: 13px;
}

.payment-items {
  display: grid;
  gap: 6px;
}

.payment-items span {
  background: #eef5f2;
  border-radius: 7px;
  color: var(--ink);
  font-weight: 800;
  padding: 8px 10px;
}

.checkout-card button:disabled,
.payment-card button:disabled {
  background: #b8c8c2;
  cursor: not-allowed;
}

.checkout-card small {
  color: var(--green);
  font-weight: 800;
  min-height: 18px;
}

.payment-message {
  color: var(--green);
  font-weight: 800;
  min-height: 18px;
}

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

.order-top {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.order-top b {
  font-size: 20px;
  white-space: nowrap;
}

.order-steps {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.order-steps span {
  background: #e5ece9;
  border-radius: 999px;
  color: #52635d;
  font-size: 11px;
  font-weight: 900;
  min-height: 28px;
  padding: 7px 8px;
  text-align: center;
  text-transform: uppercase;
}

.order-steps span.done {
  background: #167a57;
  color: #fff;
}

.admin-order-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.admin-order-actions select,
.profile-form input,
.payment-profile input {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  min-height: 42px;
  padding: 0 12px;
  width: 100%;
}

.payment-profile {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.payment-profile label {
  align-self: end;
}

.payment-profile label:nth-of-type(3),
.payment-profile label:nth-of-type(4),
.payment-profile input:nth-of-type(3),
.payment-profile input:nth-of-type(4) {
  grid-column: auto;
}

.profile-form {
  max-width: 620px;
}

.shop-empty {
  background: #f9fcfb;
  border: 1px dashed #cddbd6;
  border-radius: 8px;
  color: var(--muted);
  margin: 0;
  padding: 22px;
  text-align: center;
}

.stat-card {
  display: grid;
  gap: 5px;
  min-height: 80px;
  padding: 14px;
}

.stat-card span,
.exchange-block span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

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

.progress-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.progress-copy {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.progress-copy span {
  color: var(--green);
  font-weight: 900;
}

.progress-track {
  background: #dfe8e4;
  border-radius: 999px;
  height: 13px;
  overflow: hidden;
}

#progressFill {
  background: linear-gradient(90deg, var(--green), var(--yellow));
  height: 100%;
  transition: width 180ms ease;
  width: 0;
}

.toolbar {
  align-items: end;
}

.search-field {
  display: grid;
  gap: 7px;
  max-width: 420px;
  width: 100%;
}

.segmented {
  background: #dfe8e4;
  border-radius: 8px;
  display: flex;
  padding: 4px;
}

.segmented button {
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: #465750;
  min-height: 36px;
  padding: 0 13px;
}

.segmented button.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 5px 12px rgba(18, 32, 28, 0.09);
}

.editor-panel {
  padding: 10px;
}

.batch-form {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  width: 100%;
}

.ghost-button {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--red);
  min-height: 42px;
  padding: 0 13px;
  white-space: nowrap;
}

.content-grid {
  align-items: start;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.stickers-panel {
  padding: 14px;
}

.stickers-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
}

.sticker-card {
  background: #f9fcfb;
  border: 1px solid #cddbd6;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  min-height: 342px;
  padding: 10px;
}

.sticker-card.owned {
  border-color: rgba(22, 122, 87, 0.45);
}

.sticker-card.duplicate {
  box-shadow: inset 0 0 0 2px rgba(242, 200, 75, 0.65);
}

.sticker-main {
  background: #ffffff;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 258px;
  padding: 10px;
  place-items: initial;
  width: 100%;
}

.sticker-image {
  aspect-ratio: 760 / 1015;
  background: #f3f7f5;
  border-radius: 4px;
  display: block;
  height: 192px;
  object-fit: contain;
  width: 100%;
}

.sticker-image[src=""] {
  display: none;
}

.sticker-code {
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.sticker-player {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.15;
  max-width: 100%;
  min-height: 16px;
  overflow-wrap: anywhere;
  text-align: center;
}

.sticker-section {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.sticker-tools {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.mini-button,
.stepper button {
  border: 0;
  border-radius: 7px;
  min-height: 36px;
}

.mini-button {
  background: #e5ece9;
  color: #31443d;
  flex: 1;
  padding: 0 10px;
}

.owned .mini-button {
  background: var(--green);
  color: #fff;
}

.stepper {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  flex: 0 0 96px;
  grid-template-columns: 32px 32px 32px;
  overflow: hidden;
}

.stepper button {
  background: transparent;
}

.duplicate-value {
  color: var(--ink);
  font-weight: 800;
  text-align: center;
}

.exchange-panel {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 20px;
}

.exchange-panel h3 {
  font-size: 22px;
  margin: 0;
}

.exchange-block {
  display: grid;
  gap: 8px;
}

.exchange-block p {
  color: #31443d;
  line-height: 1.5;
  margin: 0;
  word-break: break-word;
}

.pdf-list {
  display: grid;
  gap: 8px;
  max-height: 260px;
  overflow: auto;
  padding-right: 4px;
}

.pdf-link {
  align-items: center;
  background: #eef5f2;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--green);
  display: flex;
  font-weight: 800;
  justify-content: space-between;
  min-height: 38px;
  padding: 8px 10px;
  text-decoration: none;
}

.pdf-link:hover {
  background: #fff;
}

.pdf-link small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.empty-state {
  color: var(--muted);
  grid-column: 1 / -1;
  padding: 36px 12px;
  text-align: center;
}

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

  .sidebar {
    gap: 14px;
    min-height: auto;
    padding: 16px;
    position: sticky;
    top: 0;
    z-index: 6;
  }

  .brand {
    padding: 0;
  }

  .brand-mark {
    font-size: 16px;
    height: 46px;
    width: 46px;
  }

  .brand h1 {
    font-size: 22px;
  }

  .section-list {
    display: none;
  }

  .section-form {
    display: none;
  }

  .mobile-country-field {
    color: #c7d5d0;
    display: grid;
    font-size: 12px;
    font-weight: 800;
    gap: 7px;
    text-transform: uppercase;
  }

  .mobile-country-field select {
    appearance: auto;
    background: #f7fbf9;
    border: 0;
    border-radius: 8px;
    color: #10241e;
    font-weight: 900;
    min-height: 44px;
    padding: 0 14px;
    width: 100%;
  }

  .content-grid,
  .stats-grid,
  .shop-products,
  .custom-builder,
  .cart-layout,
  .payment-layout {
    grid-template-columns: 1fr 1fr;
  }

  .shop-hero {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .checkout-card {
    position: static;
  }

  .exchange-panel {
    position: static;
  }
}

@media (max-width: 680px) {
  .workspace {
    gap: 14px;
    padding: 14px 14px 88px;
  }

  .topbar h2 {
    font-size: 26px;
  }

  .topbar {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(217, 226, 222, 0.9);
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(18, 32, 28, 0.08);
    padding: 12px;
  }

  .topbar,
  .toolbar,
  .editor-panel,
  .progress-copy {
    align-items: stretch;
    flex-direction: column;
  }

  .actions,
  .segmented {
    width: 100%;
  }

  .actions {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #d6e2de;
    border-radius: 8px;
    bottom: 10px;
    box-shadow: 0 18px 36px rgba(18, 32, 28, 0.18);
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.08fr) 44px 44px;
    left: 10px;
    padding: 8px;
    position: fixed;
    right: 10px;
    z-index: 80;
  }

  #shopButton,
  #cartButton {
    touch-action: manipulation;
  }

  .actions > *,
  .segmented button {
    flex: 1;
    justify-content: center;
    min-width: 0;
  }

  .top-action {
    border-radius: 8px;
    font-size: 13px;
    min-height: 44px;
    padding: 0 6px;
    white-space: nowrap;
  }

  .more-actions {
    bottom: 62px;
    grid-column: 1 / -1;
    left: 0;
    right: 0;
    top: auto;
    width: auto;
  }

  .notification-panel {
    bottom: 62px;
    left: 0;
    right: 0;
    top: auto;
    width: auto;
  }

  .toast-container {
    bottom: 88px;
    left: 14px;
    right: 14px;
    top: auto;
  }

  .more-actions.open {
    display: grid;
  }

  .more-actions > * {
    justify-content: center;
    width: 100%;
  }

  .more-actions .user-badge {
    justify-content: center;
    min-height: 36px;
    order: -1;
  }

  .more-actions #logoutButton {
    background: #fff;
    border: 1px solid #d3483f;
    color: #d3483f;
  }

  .stats-grid,
  .content-grid,
  .shop-products,
  .custom-builder,
  .custom-form-grid,
  .custom-actions,
  .cart-layout,
  .payment-layout,
  .payment-profile,
  .cart-item,
  .admin-order-actions,
  .user-row {
    grid-template-columns: 1fr;
  }

  .user-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .payment-card,
  .checkout-card {
    gap: 12px;
    padding: 14px;
  }

  .payment-card button,
  .checkout-card button {
    min-height: 46px;
  }

  .payment-profile label,
  .payment-profile input {
    grid-column: 1;
  }

  .shop-tabs {
    padding-bottom: 6px;
  }

  .order-top,
  .orders-head {
    align-items: stretch;
    flex-direction: column;
  }

  .order-steps {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-card {
    min-height: 82px;
    padding: 14px;
  }

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

  .stickers-grid {
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sticker-card {
    min-height: 218px;
    padding: 8px;
  }

  .sticker-main {
    min-height: 210px;
    padding: 8px;
  }

  .sticker-image {
    max-height: 164px;
  }

  .sticker-tools {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .mini-button,
  .stepper button {
    min-height: 34px;
  }

  .mini-button {
    flex: 0 0 auto;
  }

  .stepper {
    flex: 0 0 auto;
    grid-template-columns: 1fr 34px 1fr;
    min-height: 38px;
    width: 100%;
  }

  .batch-form {
    grid-template-columns: 1fr;
  }

  .login-card {
    margin-right: 0;
    margin-left: 0;
  }

  .login-art {
    inset: auto -54px -120px auto;
    max-width: 240px;
    opacity: 0.26;
  }

  .login-title-lockup {
    display: none;
  }

  .worldcup-ribbon {
    grid-template-columns: 1fr;
    top: 12px;
    width: calc(100% - 28px);
  }

  .worldcup-ribbon span {
    display: none;
  }
}
