/*!*****************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./src/app/globals.css ***!
  \*****************************************************************************************************************************************************************************************************************************************************************/
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;900&family=Space+Grotesk:wght@300;400;500;700&display=swap');

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --gold: #f5c518;
  --gold-light: #ffe066;
  --gold-dark: #c9a000;
  --bg: #08090d;
  --bg2: #0f1117;
  --text: #f0f0f5;
  --muted: #888;
  --radius: 16px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── BACKGROUND ── */
.bg-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(245, 197, 24, .13) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(245, 197, 24, .06) 0%, transparent 60%),
    var(--bg);
}

.bg-canvas::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245, 197, 24, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 197, 24, .04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, black 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, black 0%, transparent 80%);
}

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: -1;
  animation: drift 12s ease-in-out infinite alternate;
}

.orb-1 {
  width: 420px;
  height: 420px;
  background: rgba(245, 197, 24, .18);
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
}

.orb-2 {
  width: 300px;
  height: 300px;
  background: rgba(245, 197, 24, .08);
  bottom: 10%;
  right: -80px;
  animation-delay: -4s;
}

.orb-3 {
  width: 250px;
  height: 250px;
  background: rgba(200, 160, 0, .07);
  bottom: 20%;
  left: -60px;
  animation-delay: -8s;
}

@keyframes drift {
  from {
    transform: translateY(0) translateX(-50%) scale(1);
  }

  to {
    transform: translateY(30px) translateX(-48%) scale(1.05);
  }
}

/* ── MAIN ── */
main {
  flex: 1 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px 40px;
  position: relative;
  z-index: 1;
}

.logo-img-wrap {
  margin: 0 auto 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse-ring 3s ease infinite;
}

@keyframes pulse-ring {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: .95;
    transform: scale(1.02);
  }
}

.logo-img {
  width: clamp(260px, 45vw, 400px);
  height: auto;
  filter: drop-shadow(0 0 32px rgba(245, 197, 24, .25));
}

.headline {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: clamp(2.8rem, 8vw, 6.5rem);
  line-height: 1.05;
  letter-spacing: -.02em;
  margin-bottom: 24px;
  animation: fadeUp .9s ease both;
}

.headline .line-1 {
  display: block;
  background: linear-gradient(90deg, #fff 30%, #c8c0a0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.headline .line-2 {
  display: block;
  background: linear-gradient(90deg, var(--gold-light), var(--gold-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.subtitle {
  font-size: clamp(.95rem, 2.5vw, 1.2rem);
  color: #b0adb8;
  max-width: 540px;
  line-height: 1.7;
  margin: 0 auto 56px;
  animation: fadeUp .9s ease .18s both;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 197, 24, .08);
  border: 1px solid rgba(245, 197, 24, .2);
  border-radius: 100px;
  padding: 8px 20px;
  font-size: .82rem;
  font-weight: 500;
  color: var(--gold-light);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 32px;
  animation: fadeUp .7s ease both;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  animation: blink 1.4s ease infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: .2
  }
}

.countdown {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
  animation: fadeUp .9s ease .35s both;
}

.count-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, .025);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: var(--radius);
  padding: 20px 28px;
  min-width: 88px;
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  transition: border-color .3s, transform .3s;
}

.count-box:hover {
  border-color: rgba(245, 197, 24, .35);
  transform: translateY(-4px);
}

.count-number {
  font-family: 'Outfit', sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 6px;
}

.count-label {
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.notify-form {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
  animation: fadeUp .9s ease .5s both;
}

.notify-input {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 100px;
  color: var(--text);
  font-family: inherit;
  font-size: .95rem;
  padding: 14px 24px;
  width: 280px;
  max-width: 100%;
  outline: none;
  transition: border-color .3s, background .3s;
}

.notify-input::placeholder {
  color: #666;
}

.notify-input:focus {
  border-color: rgba(245, 197, 24, .5);
  background: rgba(245, 197, 24, .05);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #08090d;
  border: none;
  border-radius: 100px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  padding: 14px 32px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 0 24px rgba(245, 197, 24, .25);
}

.btn-primary:hover {
  opacity: .88;
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(245, 197, 24, .4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  opacity: 1;
  cursor: default;
  transform: none;
  box-shadow: none;
}

.form-hint {
  font-size: .78rem;
  color: #555;
  animation: fadeUp .9s ease .6s both;
}

.progress-wrap {
  width: 100%;
  max-width: 480px;
  margin: 56px auto 0;
  animation: fadeUp .9s ease .7s both;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: .78rem;
  color: #666;
  margin-bottom: 8px;
}

.progress-meta span:last-child {
  color: var(--gold);
  font-weight: 600;
}

.progress-bar {
  height: 4px;
  background: rgba(255, 255, 255, .06);
  border-radius: 100px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  border-radius: 100px;
  width: 0%;
  animation: grow 1.6s cubic-bezier(.4, 0, .2, 1) 1s forwards;
}

@keyframes grow {
  to {
    width: 73%;
  }
}

/* ── FOOTER ── */
footer {
  position: relative;
  z-index: 1;
  padding: 32px 24px;
  border-top: 1px solid rgba(255, 255, 255, .05);
  text-align: center;
}

.social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #777;
  text-decoration: none;
  font-size: .85rem;
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, .06);
  transition: color .25s, border-color .25s, background .25s, transform .25s;
}

.social-link:hover {
  color: var(--gold-light);
  border-color: rgba(245, 197, 24, .3);
  background: rgba(245, 197, 24, .05);
  transform: translateY(-2px);
}

.social-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: currentColor;
}

.footer-copy {
  font-size: .72rem;
  color: #3a3a3a;
}

@media (max-width: 480px) {
  .countdown {
    gap: 12px;
  }

  .count-box {
    padding: 12px 16px;
    min-width: 68px;
  }

  .count-number {
    font-size: 1.8rem;
  }

  .count-label {
    font-size: 0.6rem;
  }
}

/* Global Form Validation Feedback (Used by GlobalAdminFeedback) */
.input-error {
  border-color: #ff4444 !important;
  background: rgba(255, 68, 68, 0.05) !important;
}

.input-success {
  border-color: #00cc6a !important;
  background: rgba(0, 204, 106, 0.05) !important;
}

.input-neutral {
  border-color: var(--gold) !important;
  background: rgba(245, 197, 24, 0.05) !important;
}

.input-tooltip-error,
.input-tooltip-success,
.input-tooltip-neutral {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 4px;
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  z-index: 50;
  white-space: nowrap;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  animation: fadeInGlobalTooltip 0.2s ease-out;
  pointer-events: none;
}

@keyframes fadeInGlobalTooltip {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.input-tooltip-error {
  background-color: #ff4444;
}

.input-tooltip-success {
  background-color: #00cc6a;
}

.input-tooltip-neutral {
  background-color: var(--gold);
  color: #08090d; /* Melhor contraste com fundo amarelo */
}

.input-tooltip-error::before,
.input-tooltip-success::before,
.input-tooltip-neutral::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 12px;
  border-width: 6px;
  border-style: solid;
}

.input-tooltip-error::before {
  border-color: transparent transparent #ff4444 transparent;
}

.input-tooltip-success::before {
  border-color: transparent transparent #00cc6a transparent;
}

.input-tooltip-neutral::before {
  border-color: transparent transparent var(--gold) transparent;
}
@keyframes progress { 0% { transform: translateX(-100%); } 100% { transform: translateX(200%); } }

@keyframes spin { to { transform: rotate(360deg); } }
.animate-spin, .spinner { animation: spin 1s linear infinite; }

/*!*********************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./src/app/admin/admin.css ***!
  \*********************************************************************************************************************************************************************************************************************************************************************/
/* Layout System */
.admin-body {
    display: flex;
    min-height: 100vh;
    width: 100%;
    background-color: #07090c;
    color: #c9d1d9;
}

/* Sidebar */
.admin-sidebar {
    display: flex;
    flex-direction: column;
    background-color: #11151c;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    transition: width 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    height: 100vh;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    overflow: hidden;
}

.admin-body.expanded .admin-sidebar {
    width: 240px;
}

.admin-body.compact .admin-sidebar {
    width: 80px;
}

/* Brand */
.sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    min-height: 80px;
}

.admin-body.compact .sidebar-brand {
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    padding: 24px 8px;
}

.sidebar-brand h2 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: #fff;
    white-space: nowrap;
}

.toggle-mode-btn {
    background: transparent;
    border: none;
    color: #888;
    cursor: pointer;
}

.toggle-mode-btn:hover {
    color: #fff;
}

.icon-gold {
    color: var(--gold);
}

/* Nav */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    flex: 1 1;
    padding: 24px 16px;
    gap: 20px;
    overflow-y: auto;
}

/* Vender Special Button */
.special-sales-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #FF9900 0%, #FF6600 100%);
    color: #fff;
    border: none;
    padding: 12px 16px;
    border-radius: 12px;
    cursor: pointer;
    margin-bottom: 8px;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.special-sales-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    animation: shine 4s infinite 2s;
}

@keyframes shine {
    0% {
        left: -100%;
    }

    20% {
        left: 200%;
    }

    100% {
        left: 200%;
    }
}

.special-sales-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 102, 0, 0.6);
    background: linear-gradient(135deg, #FFaa00 0%, #FF7700 100%);
}

.special-sales-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(255, 102, 0, 0.4);
}

.admin-body.compact .special-sales-btn {
    justify-content: center;
    padding: 14px 0;
}

.nav-group {
    flex-shrink: 0;
}

.nav-group-title {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #c9d1d9;
    font-weight: 600;
    padding: 10px 16px;
    font-size: 0.95rem;
    white-space: nowrap;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
}

.nav-group-title:hover,
.nav-group-title.pseudo-hover {
    background-color: rgba(245, 197, 24, 0.05);
    color: var(--gold-light);
    border-bottom: 2px solid rgba(245, 197, 24, 0.5);
}

.admin-body.compact .nav-group-title {
    justify-content: center;
    padding: 8px 0;
}

.nav-group-subs {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 4px;
    padding-left: 20px;
}



.nav-group.active .nav-group-title {
    color: var(--gold);
    background-color: rgba(245, 197, 24, 0.05);
    border-radius: 8px 8px 0 0;
    border-bottom: 2px solid var(--gold);
}

.nav-group-title.expanded-title {
    color: var(--gold);
    border-bottom: 2px solid var(--gold);
    border-radius: 8px 8px 0 0;
    background-color: rgba(245, 197, 24, 0.05);
}

.nav-group-title.expanded-title .nav-icon {
    color: var(--gold);
}

.nav-group.active .nav-group-title .nav-icon {
    color: var(--gold);
}

.admin-body.compact .nav-group-subs {
    padding-left: 0;
    align-items: center;
}

.nav-subitem {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #8b949e;
    padding: 10px 16px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 0.9rem;
    transition: all 0.2s;
    white-space: nowrap;
    overflow: hidden;
}

.nav-subitem span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-body.compact .nav-subitem {
    justify-content: center;
    padding: 12px;
}

.nav-subitem:hover,
.nav-subitem.pseudo-hover {
    background-color: rgba(245, 197, 24, 0.05);
    color: var(--gold-light);
}

.nav-icon {
    flex-shrink: 0;
}

/* Tabs */
.admin-main-area {
    flex: 1 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;

    /* Reset do conflito global da tag <main> */
    align-items: stretch;
    justify-content: flex-start;
    text-align: left;
    padding: 0;
}

.admin-tabs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0 48px;
    background: rgba(17, 21, 28, 0.5);
    min-height: 60px;
}

.admin-tabs-container {
    display: flex;
    gap: 32px;
    flex: 1 1;
    overflow-x: auto;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
}

.admin-tabs-container::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

.back-to-site-btn {
    flex-shrink: 0;
    background-color: var(--gold, #f5c518);
    color: #000;
    padding: 10px 20px;
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 0 0 0 24px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(245, 197, 24, 0.2);
}

.admin-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: #8b949e;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
}

.admin-tab:hover,
.admin-tab.pseudo-hover {
    color: var(--gold-light);
    background-color: rgba(245, 197, 24, 0.05);
    border-bottom: 2px solid rgba(245, 197, 24, 0.5);
}

.admin-tab.active {
    color: var(--gold);
    background-color: rgba(245, 197, 24, 0.05);
    border-bottom: 2px solid var(--gold);
}

.admin-content-scroll {
    flex: 1 1;
    padding: 48px;
    overflow-y: auto;
}

.content-max {
    max-width: 800px;
}

/* Footer & Logout */
.sidebar-footer {
    padding: 24px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-body.compact .sidebar-footer {
    padding: 24px 8px;
}

.logout-btn {
    background: transparent;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #8b949e;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.2s;
}

.admin-body.compact .logout-btn {
    justify-content: center;
    padding: 12px;
}

.logout-btn:hover {
    background: rgba(255, 60, 60, 0.1);
    color: #ff6b6b;
    border-color: rgba(255, 60, 60, 0.2);
}

/* Auth/Login Center */
.login-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100vh;
}

.login-glass {
    background: rgba(20, 24, 32, 0.5);
    -webkit-backdrop-filter: blur(20px);
            backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 48px 40px;
    border-radius: 24px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.login-glass h1 {
    font-family: 'Outfit', sans-serif;
    color: #fff;
    margin-bottom: 8px;
}

.login-glass p {
    color: #888;
    margin-bottom: 32px;
    font-size: 0.95rem;
}

.login-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-family: inherit;
    outline: none;
    transition: all 0.2s;
}

.login-input:focus {
    border-color: var(--gold);
    background: rgba(245, 197, 24, 0.05);
}

select.login-input option {
    background-color: #11151c;
    color: #fff;
}

select.login-input optgroup {
    background-color: #07090c;
    color: var(--gold);
    font-weight: bold;
    font-style: normal;
}

/* Forms UI */
.settings-card {
    background: #11151c;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
}

.settings-card h3 {
    font-family: 'Outfit', sans-serif;
    color: #fff;
    margin-bottom: 24px;
    font-size: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 12px;
}

/* Toggle Slider */
.form-group-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    background: rgba(245, 197, 24, 0.03);
    border: 1px solid rgba(245, 197, 24, 0.15);
    border-radius: 12px;
    margin-bottom: 32px;
}

.toggle-label h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.toggle-label p {
    color: #888;
    font-size: 0.9rem;
}

.toggle-checkbox {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.toggle-slider {
    position: relative;
    cursor: pointer;
    width: 60px;
    height: 32px;
    background-color: #2a2e37;
    border-radius: 34px;
    transition: .4s;
    display: inline-block;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    border-radius: 50%;
    transition: .4s;
}

.toggle-checkbox:checked+.toggle-slider {
    background-color: var(--gold);
    box-shadow: 0 0 16px rgba(245, 197, 24, 0.4);
}

.toggle-checkbox:checked+.toggle-slider:before {
    transform: translateX(28px);
}

/* Base Form Col */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 24px;
    gap: 24px;
}

.form-col {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.form-col label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #c9d1d9;
    margin-bottom: 8px;
}

.form-col input,
.form-col input[type="datetime-local"] {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 14px;
    border-radius: 10px;
    outline: none;
    font-family: inherit;
    width: 100%;
    transition: all 0.2s;
}

.form-col input:focus {
    border-color: var(--gold);
}

.form-col input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
}

/* Save Btn */
.save-btn {
    margin-top: 16px;
    background: var(--gold);
    color: #000;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
    width: 100%;
    max-width: 320px;
}

/* Global Form Validation Feedback */
.form-col {
    position: relative;
}


.save-btn:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(245, 197, 24, 0.2);
}

/* Mobile Adjustments */
.mobile-header {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background-color: #11151c;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
    z-index: 1000;
}

.mobile-header h2 {
    font-size: 1.2rem;
    font-weight: bold;
}

.mobile-toggle-btn {
    background: transparent;
    color: var(--gold);
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-close-btn {
    display: none;
    background: transparent;
    border: none;
    color: #ff6b6b;
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: auto;
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    -webkit-backdrop-filter: blur(4px);
            backdrop-filter: blur(4px);
}

.table-responsive-wrapper {
    overflow-x: auto;
    width: 100%;
}

.mobile-floating-menu {
    display: none;
}

@media (max-width: 1024px) {
    .admin-body {
        flex-direction: column;
    }

    .mobile-header {
        display: flex;
        position: -webkit-sticky;
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    /* Override Desktop sidebar */
    .admin-sidebar {
        position: fixed;
        left: -320px;
        top: 0;
        bottom: 0;
        height: 100vh;
        width: 240px !important;
        z-index: 999;
        transition: left 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.5);
    }

    .admin-sidebar.mobile-open {
        left: 0;
    }

    .mobile-overlay {
        display: block;
    }

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

    .mobile-close-btn {
        display: block;
    }

    .admin-body.compact .sidebar-brand {
        flex-direction: row;
        justify-content: space-between;
    }

    .admin-tabs,
    .wco-desktop-top-menu {
        display: none !important;
    }

    .admin-content-scroll {
        padding: 24px 16px 120px 16px;
    }

    .mobile-floating-menu {
        display: flex;
        position: fixed;
        bottom: 24px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(30, 35, 45, 0.75);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 9999px;
        padding: 12px 24px;
        gap: 32px;
        z-index: 990;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
        align-items: center;
        justify-content: center;
        transition: opacity 0.3s, transform 0.3s;
    }

    .mobile-floating-btn {
        color: #8b949e;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: color 0.2s;
    }

    .mobile-floating-btn.active {
        color: var(--gold);
    }

    body:has(.admin-modal-overlay) .mobile-floating-menu {
        display: none !important;
    }

    .mobile-menu-open .mobile-floating-menu {
        display: none !important;
    }

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

    .form-col[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    .form-full-mobile {
        max-width: 100% !important;
    }

    .hide-on-mobile {
        display: none !important;
    }

    .pdf-container-flex {
        flex-direction: column !important;
    }

    .pdf-viewer-card {
        height: 120vh !important;
        position: relative !important;
        top: 0 !important;
        margin-top: 16px !important;
    }
}

@media (min-width: 1025px) {
    .hide-on-desktop {
        display: none !important;
    }
}

/* Tabs Form Component */
.form-tab-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    font-weight: 500;
}

.form-tab-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ccc;
}

.form-tab-btn.active {
    background: rgba(245, 197, 24, 0.1);
    border-color: rgba(245, 197, 24, 0.5);
    color: var(--gold-light);
}

/* PDF layout logic */
.pdf-container-flex {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    flex-direction: column;
}

.pdf-container-flex.pdf-showing {
    flex-direction: row;
}

.responsive-cart-table {
    width: 100%;
    text-align: left;
    border-collapse: collapse;
    background-color: rgba(0,0,0,0.3);
    border-radius: 8px;
    overflow: hidden;
}

@media (max-width: 1024px) {
    .flow-card, .crud-list-container {
        background: rgba(0, 0, 0, 0.3) !important;
        border: 1px solid rgba(255, 255, 255, 0.02) !important;
        padding: 8px !important;
        margin-bottom: 24px !important;
        border-radius: 12px !important;
    }
    .flow-inner-card {
        background: rgba(0, 0, 0, 0.2) !important;
        border: none !important;
        padding: 4px !important;
        border-radius: 8px !important;
    }
    
    .responsive-cart-table thead, .mobile-table-collapse thead {
        display: none; /* Hide headers on mobile */
    }
    .responsive-cart-table, .responsive-cart-table tbody, .responsive-cart-table tr, .responsive-cart-table td,
    .mobile-table-collapse, .mobile-table-collapse tbody, .mobile-table-collapse tr, .mobile-table-collapse td {
        display: block;
        width: 100%;
    }
    .responsive-cart-table tr, .mobile-table-collapse tr {
        margin-bottom: 24px;
        background: rgba(0, 0, 0, 0.5); /* 50% opacity */
        border: 1px solid rgba(255,255,255,0.05);
        border-radius: 16px;
        padding: 16px 16px 64px 16px;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        position: relative;
    }
    
    .mobile-table-collapse td.mobile-checkbox-col {
        position: absolute;
        bottom: 16px;
        left: 16px;
        width: auto !important;
        padding: 0 !important;
    }
    
    .mobile-table-collapse td.mobile-checkbox-col input[type="checkbox"] {
        border-radius: 50% !important;
        width: 24px;
        height: 24px;
        -moz-appearance: none;
             appearance: none;
        -webkit-appearance: none;
        background-color: rgba(255,255,255,0.1);
        border: 2px solid rgba(255,255,255,0.3);
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        position: relative;
        transition: all 0.2s;
    }

    .mobile-table-collapse td.mobile-checkbox-col input[type="checkbox"]:checked {
        background-color: var(--gold);
        border-color: var(--gold);
    }

    .mobile-table-collapse td.mobile-checkbox-col input[type="checkbox"]:checked::after {
        content: "✔";
        color: #000;
        font-weight: 900;
        font-size: 14px;
        position: absolute;
    }

    .mobile-table-collapse td:last-child {
        position: absolute;
        bottom: 12px;
        right: 16px;
        width: auto !important;
        padding: 0 !important;
    }

    .mobile-table-collapse td.mobile-primary-data {
        background: linear-gradient(135deg, rgba(245, 197, 24, 0.15) 0%, rgba(245, 197, 24, 0.02) 100%);
        border: 1px solid rgba(245, 197, 24, 0.2) !important;
        border-radius: 12px;
        width: 100% !important;
        padding: 16px !important;
        margin-bottom: 12px;
    }
    .responsive-cart-table td, .mobile-table-collapse td {
        padding: 8px !important;
        border: none !important;
        box-sizing: border-box;
    }
    .responsive-cart-table td.cart-item-title {
        width: 100% !important;
        flex: 1 1 100%;
        font-weight: bold;
        border-bottom: 1px solid rgba(255,255,255,0.05) !important;
        margin-bottom: 8px;
    }
    .responsive-cart-table td.cart-item-qty {
        width: 80px !important;
        flex: 0 0 auto;
    }
    .responsive-cart-table td.cart-item-price {
        width: auto !important;
        flex: 1 1;
    }
    .responsive-cart-table td.cart-item-free {
        width: auto !important;
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .responsive-cart-table td.cart-item-delete {
        width: auto !important;
        flex: 0 0 auto;
        text-align: right !important;
    }
}

.admin-modal-overlay {
    position: fixed;
    top: 60px; /* Offset for mobile header */
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.85);
    z-index: 99999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 16px;
    -webkit-backdrop-filter: blur(4px);
            backdrop-filter: blur(4px);
    overflow-y: auto;
}

.admin-modal-dialog {
    background: #11151c;
    border: 1px solid #333;
    border-radius: 16px;
    width: 100%;
    max-height: calc(100vh - 80px); /* Discount mobile header and safe margins */
    overflow-y: auto;
    position: relative;
    box-shadow: 0 16px 64px rgba(0,0,0,0.5);
}

@media (min-width: 768px) {
    .admin-modal-overlay {
        top: 0;
        align-items: center;
        padding: 32px;
    }
    .admin-modal-dialog {
        max-height: 90vh;
    }
}
.show-on-mobile {
    display: none !important;
}

@media (max-width: 768px) {
    .show-on-mobile {
        display: flex !important;
    }
}

.admin-toast-container {
    position: fixed;
    top: 80px;
    right: 24px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (max-width: 768px) {
    .admin-toast-container {
        top: 84px;
        right: 16px;
        left: 16px;
        justify-content: center;
        align-items: center;
    }
}

/* Offline Mode Enforcements */
/* Removed enforcement: Save buttons are no longer greyed out or disabled offline by CSS */

.offline-banner {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%) rotate(180deg);
    writing-mode: vertical-rl;
    background-color: #d32f2f;
    color: white;
    font-weight: 800;
    padding: 16px 6px;
    border-radius: 0 0 8px 8px;
    z-index: 99999;
    font-size: 0.85rem;
    box-shadow: -2px 0 10px rgba(0,0,0,0.5);
    letter-spacing: 2px;
    pointer-events: none;
    text-transform: uppercase;
}

/* WCO Desktop Top Menu - By default hidden entirely (only for installed app on Desktop) */
.wco-desktop-top-menu {
    display: none !important;
    background: #11151c;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-family: inherit;
    z-index: 9999;
}
@media (min-width: 1025px) and (display-mode: standalone), (min-width: 1025px) and (display-mode: window-controls-overlay) {
    .wco-desktop-top-menu {
        display: flex !important;
    }
    .admin-tabs {
        display: none !important; /* Hide old tabs when WCO is active */
    }
}

.wco-menu-item {
    background: transparent;
    border: none;
    color: #c9d1d9;
    padding: 0 10px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    height: 100%;
    min-height: 36px;
    align-items: center;
    display: inline-flex;
    transition: all 0.2s;
    font-family: inherit;
}
.wco-menu-item:hover,
.wco-menu-item.pseudo-hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}
.wco-menu-item.active {
    background: var(--gold);
    color: #000;
    font-weight: bold;
}

.wco-sub-item {
    text-decoration: none;
    color: #8b949e;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    margin: 2px 4px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
}
.wco-sub-item:hover,
.wco-sub-item.pseudo-hover {
    background: rgba(255, 255, 255, 0.05);
    color: #c9d1d9;
}
.wco-sub-item.active-sub {
    background: rgba(245, 197, 24, 0.2);
    color: var(--gold-light);
    font-weight: 600;
}

.wco-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #1c2128;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 0 0 6px 6px;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    padding: 6px 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    z-index: 10000;
}
.wco-dropdown-item {
    text-decoration: none;
    color: #c9d1d9;
    padding: 8px 12px;
    font-size: 0.8rem;
    transition: background 0.2s;
    display: flex;
    align-items: center;
}
.wco-dropdown-item:hover,
.wco-dropdown-item.pseudo-hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
}

.wco-back-to-site-btn {
    flex-shrink: 0;
    background-color: var(--gold);
    color: #000;
    padding: 6px 12px;
    display: flex;
    gap: 8px;
    align-items: center;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.8rem;
    transition: all 0.2s;
}
.wco-back-to-site-btn:hover {
    background-color: var(--gold-light);
}

/* Custom File Inputs to Replace Primitive Bottons */
input[type="file"] {
    position: relative;
    color: transparent !important; /* Hides "Nenhum arquivo escolhido" text */
    max-width: 100%;
}
input[type="file"]::-webkit-file-upload-button {
    visibility: hidden;
    width: 0;
    padding: 0;
    margin: 0;
    border: none;
}
input[type="file"]::file-selector-button {
    visibility: hidden;
    width: 0;
    padding: 0;
    margin: 0;
    border: none;
}
input[type="file"]::before {
    content: 'Escolher';
    display: inline-block;
    background: var(--gold);
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    outline: none;
    white-space: nowrap;
    cursor: pointer;
    font-weight: bold;
    font-family: inherit;
    transition: all 0.2s;
    margin-right: 16px;
}
input[type="file"]:hover::before {
    background: var(--gold-light);
}

/* Smooth Animations */
@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.settings-card, .login-glass, .pdv-cart-summary-card, .flow-card {
    animation: fadeSlideUp 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards !important;
}

.wco-dropdown {
    animation: fadeSlideUp 0.25s cubic-bezier(0.2, 0.8, 0.2, 1) forwards !important;
    transform-origin: top left;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translate(-50%, calc(-50% + 20px)) scale(0.95); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.dynamic-res-label {
    color: #aaa;
    font-size: 0.9rem;
}
.dynamic-res-val {
    color: var(--gold);
    font-size: 2rem;
    margin: 0 8px;
    background: rgba(245,197,24,0.1);
    padding: 4px 16px;
    border-radius: 8px;
    vertical-align: middle;
}
@media (max-width: 1024px) {
    .dynamic-res-label {
        font-size: 0.8rem;
    }
    .dynamic-res-val {
        font-size: 1.5rem;
        padding: 4px 12px;
        margin: 0 4px;
    }
}

