:root {
  --bg: #131922;
  --text: #DBE1EB;
  --primary: #C0FC00;
  --glass: #13192280;
  --glass-strong: #131922CC;
  --stroke: #DBE1EB1A;
  --muted: #DBE1EBCC;
}

/* Explicit theme overrides so user toggle works */
/* Light/Dark share the same tokens to keep palette constrained */
[data-theme="dark"] {}

[data-theme="light"] {}

@media (prefers-color-scheme: light) {
  :root {}
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: 'Montserrat', 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* Material Symbols – use filled icons */
.material-symbols-rounded {
  font-variation-settings: 'FILL' 1, 'wght' 600, 'GRAD' 0, 'opsz' 24;
}

.auth-page {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  min-height: 100vh;
}

/* Left visual */
.visual-panel {
  position: relative;
  background: transparent;
  display: grid;
  place-items: center;
  padding: 20px;
}

.visual-card {
  position: relative;
  width: 100%;
  height: calc(100vh - 40px);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: none;
  outline: 1px solid var(--stroke);
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.visual-bg {
  position: absolute;
  inset: 0;
  background-image: url('Images/LoginBackground.png');
  background-size: cover;
  background-position: center;
  filter: saturate(1.1) brightness(0.9);
  opacity: 0.9;
}

.hash-core {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: min(52vh, 560px);
  height: auto;
  filter: none;
  animation: floatCentered 7s ease-in-out infinite;
}

.floating {
  position: absolute;
  width: 96px;
  height: 96px;
  object-fit: contain;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px)
  }

  50% {
    transform: translateY(-14px)
  }

  100% {
    transform: translateY(0px)
  }
}

@keyframes floatCentered {
  0% {
    transform: translate(-50%, -50%)
  }

  50% {
    transform: translate(-50%, calc(-50% - 14px))
  }

  100% {
    transform: translate(-50%, -50%)
  }
}

.icon-x {
  left: 18%;
  top: 62%;
  animation-delay: 0.2s;
}

.icon-yt {
  left: 20%;
  top: 18%;
  animation-delay: 0.6s;
}

.icon-tumblr {
  left: 10%;
  top: 34%;
  animation-delay: 0.9s;
}

.icon-tt {
  left: 12%;
  top: 78%;
  animation-delay: 0.4s;
}

.icon-pin {
  left: 48%;
  top: 82%;
  animation-delay: 0.7s;
}

.icon-in {
  right: 14%;
  top: 58%;
  animation-delay: 0.5s;
}

.icon-ig {
  right: 18%;
  top: 82%;
  animation-delay: 0.3s;
}

.icon-fb {
  left: 24%;
  top: 50%;
  animation-delay: 0.8s;
}

/* Right form */
.form-panel {
  display: grid;
  place-items: center;
  place-content: center;
  background: var(--bg);
  padding: 40px 20px;
  min-height: 100vh;
}

.brand {
  display: grid;
  place-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.brand img {
  width: 300px;
  max-width: 92vw;
  height: auto;
  image-rendering: -webkit-optimize-contrast;
}

.brand-text {
  font-weight: 700;
  letter-spacing: 0.5px;
}

.brand-text .hash {
  color: var(--primary);
  margin-right: 3px;
}

.brand-text .shade {
  color: var(--primary);
}

.card {
  width: 100%;
  max-width: 1400px;
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 22px;
  box-shadow: none;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.form-panel .card {
  max-width: 560px;
}


.form {
  display: none;
}

.form.active {
  display: block;
}

.form label {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin: 10px 0 6px;
}

.form input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: var(--glass);
  color: var(--text);
}

.row.between {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.muted {
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
}

.muted:hover {
  color: var(--text);
}

.primary {
  width: 100%;
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 10px;
  border: none;
  background: var(--primary);
  color: #131922;
  font-weight: 600;
  cursor: pointer;
}

.primary:hover {
  opacity: .95;
}

.primary:active {
  opacity: .9;
}

.divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  margin: 18px 0;
}

.divider::before,
.divider::after {
  content: "";
  height: 1px;
  background: var(--stroke);
}

.social-btn {
  width: 100%;
  background: var(--glass);
  border: 1px solid var(--stroke);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  margin-bottom: 10px;
}

.social-btn:hover {
  border-color: var(--stroke);
  opacity: .95;
}

.social-label {
  font-weight: 500;
}

.social-btn img {
  width: 18px;
  height: 18px;
  display: block;
}

.switch {
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  margin-top: 8px;
}

.switch a {
  color: var(--primary);
  text-decoration: none;
}

.switch a:hover {
  text-decoration: underline;
}

.error {
  color: var(--text);
  min-height: 18px;
  margin: 6px 0 0;
  font-size: 13px;
}

@media (max-width: 1024px) {
  .auth-page {
    grid-template-columns: 1fr;
  }

  .visual-panel {
    display: none;
  }

  .form-panel {
    padding-top: 36px;
  }

  .brand img {
    width: min(90vw, 300px);
    height: auto;
  }
}


/* =================== APP SHELL =================== */
.app-shell {
  display: grid;
  grid-template-columns: 264px 1fr;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  transition: grid-template-columns .2s ease;
}

.sidebar {
  background: var(--glass-strong);
  border-right: 1px solid var(--stroke);
  display: flex;
  flex-direction: column;
  padding: 16px;
  gap: 12px;
  transition: width .2s ease;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.side-header {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  margin-bottom: 16px;
}

.side-logo {
  width: 180px;
  height: auto;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
}

.collapse-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  order: -1;
  align-self: flex-end;
}

.side-logo {
  align-self: flex-start;
}

.collapse-btn .material-symbols-rounded {
  font-size: 20px;
  color: var(--text);
}

.nav {
  display: grid;
  gap: 24px;
  align-content: start;
}

.nav-group {
  display: grid;
  gap: 8px;
}

.subnav {
  display: grid;
  gap: 8px;
  padding-left: 8px;
}

.nav-item {
  text-align: left;
  background: transparent;
  color: var(--text);
  border: none;
  border-radius: 0;
  padding: 0;
  cursor: pointer;
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  gap: 12px;
}

.nav-item .icon {
  font-size: 20px;
  line-height: 1;
  color: var(--text);
  width: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-item.active .icon {
  color: var(--primary);
}

.nav-item.active .label {
  color: var(--primary);
}

.nav-item .label {
  font-size: 16px;
  font-weight: 700;
}

.nav-item:hover {
  opacity: .95;
}

.nav-item.active {
  opacity: 1;
}

.nav-item.cta {
  background: var(--primary);
  color: #131922;
  border-radius: 12px;
  padding: 10px 12px;
  text-align: center;
  display: grid;
  grid-template-columns: auto auto;
  justify-content: center;
  justify-items: center;
  column-gap: 10px;
}

.nav-item.cta .icon {
  color: #131922;
}

.nav-item.cta .label {
  justify-self: center;
}

.nav-item.cta.active .icon,
.nav-item.cta.active .label {
  color: #131922;
}

.nav-item.cta:hover {
  opacity: .95;
}

.nav-item.cta:active {
  opacity: .9;
}

.side-footer {
  display: grid;
  gap: 8px;
  margin-top: auto;
}

.secondary {
  background: rgba(192, 252, 0, 0.05);
  color: var(--text);
  border: 1px solid var(--primary);
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.secondary:hover {
  background: rgba(192, 252, 0, 0.1);
  border-color: var(--primary);
}

.secondary:active {
  background: rgba(192, 252, 0, 0.15);
}

.small {
  padding: 8px 10px;
  font-size: 13px;
}

/* Custom select/dropdown styles */
.custom-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23DBE1EB' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px !important;
  transition: all 0.2s ease;
}

.custom-select:hover {
  border-color: var(--primary);
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23C0FC00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.custom-select:focus {
  outline: none;
  border-color: var(--primary);
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 6.5L6 1.5L1 6.5' stroke='%23C0FC00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.icon-ghost {
  width: 44px;
  height: 44px;
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--text);
  cursor: pointer;
  justify-self: start;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.icon-ghost .material-symbols-rounded {
  font-size: 22px;
}

.icon-ghost:hover {
  opacity: .95;
}

.content {
  padding: 24px;
  width: 100%;
}

.view {
  width: 100%;
  margin: 0 auto;
}

.center {
  text-align: center;
}

/* Create view */
.create-title {
  font-size: 22px;
  font-weight: 800;
  margin: 4px 0 14px;
}

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

.create-card {
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 26px;
  cursor: pointer;
  color: var(--text);
  text-align: center;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.create-card:hover {
  opacity: .95;
}

.create-card:focus {
  outline: none;
  border-color: var(--primary);
}

.create-card-body {
  display: grid;
  place-items: center;
  gap: 8px;
  height: 120px;
}

.create-icon {
  font-size: 38px;
  color: var(--primary);
}

.create-label {
  font-weight: 700;
}

.connect-bar {
  margin-top: 16px;
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.connect-left {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

/* Collapsed state */
.collapsed .app-shell {
  grid-template-columns: 112px 1fr;
}

.collapsed .sidebar {
  padding: 16px 10px;
}

/* Center header content and keep collapse control visible in collapsed mode */
.collapsed .side-header {
  justify-content: flex-start;
  align-items: stretch;
}

.collapsed .collapse-btn {
  display: grid;
  margin-left: 0;
  margin-right: 0;
}

/* Keep logo size consistent in collapsed state */
.collapsed .side-logo {
  width: 50px;
  height: 50px;
}

.collapsed .collapse-btn {
  margin-left: auto;
  margin-right: 6px;
}

.collapsed .nav-item {
  grid-template-columns: 1fr;
  justify-items: center;
}

.collapsed .nav-item .label {
  display: none;
}

/* Arrow icon text changes via JS; keep orientation fixed */
.collapsed .collapse-btn .material-symbols-rounded {
  transform: none;
}

/* Center footer icons in collapsed mode */
.collapsed .side-footer .icon-ghost {
  justify-self: start;
}

/* Chat */
.chat-hero {
  display: grid;
  gap: 16px;
  place-items: center;
  margin-top: 120px;
}

.chat-hero h1 {
  font-size: 28px;
  text-align: center;
  font-weight: 700;
}

.chat-input {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  width: min(900px, 92vw);
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 10px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.chat-input input[type="text"] {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  padding: 10px 6px;
  font-size: 15px;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--glass);
  color: var(--text);
  border: 1px solid var(--stroke);
  cursor: pointer;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.go-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--primary);
  color: #131922;
  border: none;
  font-weight: 700;
  cursor: pointer;
  display: grid;
  place-items: center;
  line-height: 1;
}

.chat-hero .muted {
  font-size: 13px;
}

/* Chat actions dropdown */
.go-wrap {
  position: relative;
}

.dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 260px;
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 6px;
  display: none;
  box-shadow: 0 8px 28px #13192280;
  z-index: 10;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.dropdown.open {
  display: grid;
  gap: 4px;
}

.dropdown-item {
  text-align: left;
  background: transparent;
  border: none;
  color: var(--text);
  padding: 10px 10px;
  border-radius: 10px;
  cursor: pointer;
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.dropdown-item .material-symbols-rounded {
  font-size: 20px;
}

.dropdown-item .text {
  display: inline-block;
}

.dropdown-item:hover {
  background: var(--glass-strong);
}

.dropdown-item[disabled] {
  opacity: .6;
  cursor: not-allowed;
}

.dropdown-item .soon {
  color: var(--muted);
  font-size: 12px;
  margin-left: 6px;
}

/* Canvas */
.canvas-wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
}

.canvas-left {
  display: grid;
  gap: 12px;
}

.stage-outer {
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 10px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.stage {
  position: relative;
  width: 100%;
  background: var(--glass-strong);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--stroke);
}

.stage.ratio-1-1 {
  padding-top: 100%;
}

.stage.ratio-4-5 {
  padding-top: calc(100% * 1.25);
}

.stage.ratio-9-16 {
  padding-top: calc(100% * (16/9));
}

.stage img,
.stage video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 6px;
  padding: 16px;
}

.ov {
  pointer-events: auto;
}

.ov-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  text-shadow: 0 2px 8px #13192280;
}

.ov-sub {
  font-size: 16px;
  color: var(--muted);
}

.ov-cta {
  align-self: end;
  justify-self: start;
  background: var(--primary);
  color: #131922;
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
}

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

.canvas-right {
  display: grid;
  gap: 12px;
}

.panel-group {
  display: grid;
  gap: 12px;
}

.panel {
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 12px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.panel-title {
  font-weight: 700;
  margin-bottom: 8px;
}

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

.chip {
  background: var(--glass);
  color: var(--text);
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 6px 10px;
  cursor: pointer;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.chip:hover {
  opacity: .95;
}

.suggestions {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
}

.suggestions .chip {
  white-space: normal;
  text-align: left;
}

.asset-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px;
}

.asset-list .thumb {
  position: relative;
  background: var(--glass-strong);
  border: 1px solid var(--stroke);
  border-radius: 10px;
  overflow: hidden;
  height: 84px;
  cursor: pointer;
}

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

/* Projects (styles kept for canvas cards usage) */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.card-item {
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  display: grid;
  grid-template-rows: 160px auto;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.card-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 10px;
  display: grid;
  gap: 6px;
}

.card-title {
  font-weight: 700;
}

.card-meta {
  color: var(--muted);
  font-size: 12px;
}

/* Analytics removed (dashboard-only visuals) */

/* Settings */
.accounts {
  display: grid;
  gap: 12px;
}

.accounts-list {
  display: grid;
  gap: 8px;
}

.account-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 10px;
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: 10px;
  padding: 10px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.account-row img {
  width: 24px;
  height: 24px;
}

.badge {
  font-size: 12px;
  color: var(--muted);
}

.connect {
  background: var(--primary);
  border: none;
  color: #131922;
  border-radius: 8px;
  padding: 8px 10px;
  font-weight: 700;
  cursor: pointer;
}

/* Simple numbered steps for tutorials */
.steps {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 8px;
}

.steps li {
  position: relative;
  padding-left: 36px;
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: 10px;
  padding: 10px 12px 10px 42px;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--primary);
  color: #131922;
  font-weight: 800;
  display: grid;
  place-items: center;
}

/* Dashboard & Calendar removed */

/* ===== Ad Generator Styles ===== */
.scene-card {
  transition: all 0.2s ease;
}

.scene-card:hover {
  border-color: var(--primary);
  opacity: 0.98;
}

.scene-card input[type="radio"] {
  accent-color: var(--primary);
  cursor: pointer;
  width: 16px;
  height: 16px;
}

.scene-card select,
.scene-card textarea,
.scene-card input[type="text"] {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.scene-card select:focus,
.scene-card textarea:focus,
.scene-card input[type="text"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(192, 252, 0, 0.1);
}

.scene-card .spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--stroke);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Image source selection */
.scene-card label[class*="flex items-center"] {
  transition: opacity 0.2s ease;
}

.scene-card label[class*="flex items-center"]:hover {
  opacity: 0.9;
}

/* Custom Select Styling */
.custom-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C0FC00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 36px;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  background-color: var(--glass);
  color: var(--text);
  transition: all 0.2s ease;
}

.custom-select:hover {
  border-color: var(--primary);
}

.custom-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(192, 252, 0, 0.1);
}

/* Dropdown Button Style (Special themed select) */
.dropdown-button {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.dropdown-button select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(192, 252, 0, 0.05) !important;
  border: 1px solid var(--primary) !important;
  border-radius: 10px;
  color: var(--text);
  padding: 10px 40px 10px 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
}

.dropdown-button select:hover {
  background: rgba(192, 252, 0, 0.1) !important;
}

.dropdown-button select:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 2px rgba(192, 252, 0, 0.15) !important;
}

.dropdown-button .arrow-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--primary);
  font-size: 20px;
  transition: all 0.2s ease;
  line-height: 1;
}

.dropdown-button option {
  background: var(--bg);
  color: var(--text);
  padding: 10px;
}

/* Ad Generator - Centered Editor Layout */
.editor-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
}

/* Scene container with scene block and image block side-by-side */
.scene-container {
  display: grid;
  grid-template-columns: 2fr 1.2fr;
  gap: 24px;
  align-items: start;
}

/* Scene Card Styling */
.scene-card {
  max-width: none !important;
  padding: 32px !important;
  border-radius: 16px !important;
  background: var(--glass-strong) !important;
  margin-bottom: 0 !important;
}

.scene-starting-image-card {
  border-radius: 16px !important;
  height: min-content;
  background: var(--glass-strong) !important;
}

/* Scene Two-Column Layout - now only for scene block content */
.scene-two-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Video and Image Section Headers */
.section-headline {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Button with Icon Alignment */
.btn-with-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-with-icon .material-symbols-rounded {
  font-size: 18px;
  line-height: 1;
  vertical-align: middle;
}

/* Upload Button States */
.upload-btn {
  position: relative;
  transition: all 0.2s ease;
}

.upload-btn.uploading {
  opacity: 0.7;
  cursor: not-allowed;
  pointer-events: none;
}

/* Last Frame Preview */
.last-frame-preview {
  width: 100%;
  max-width: 100%;
  border-radius: 8px;
  border: 1px solid var(--stroke);
  margin-top: 12px;
}

.last-frame-container {
  width: 100%;
}

/* Full width info blocks */
.info-block-full {
  width: 100%;
  padding: 18px;
  background: var(--glass-strong);
  border-radius: 8px;
  line-height: 1.6;
}

/* Merge Button Container */
.merge-button-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (max-width: 1100px) {
  .scene-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ===== Desktop layout for Proxy Accounts ===== */
@media (min-width: 1200px) {

  /* Single wide column to make each block wider */
  #view-proxy .accounts {
    grid-template-columns: 1fr;
    max-width: 1200px;
    margin: 0 auto;
    justify-items: stretch;
  }

  #view-proxy .accounts>.card {
    width: 100%;
  }

  #view-proxy .accounts>.card:first-child .row {
    justify-content: center;
    text-align: center;
  }

  /* Heading aligned left within centered container */
  #view-proxy .toolbar {
    justify-content: flex-start;
  }

  #view-proxy .toolbar h2 {
    text-align: left;
    width: auto;
    margin: 0 auto 0 0;
  }
}

/* Shorts Extractor Premium Styles */
.editor-container {
  animation: fadeIn 0.5s ease-out;
}

.results-container {
  animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.shorts-results-grid {
  margin-top: 20px;
}

.clip-card {
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: 20px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.clip-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.clip-card:hover .play-overlay {
  background: rgba(0, 0, 0, 0.4);
}

.clip-card:hover .play-overlay .material-symbols-rounded {
  transform: scale(1.1);
  color: var(--primary);
}

.play-overlay .material-symbols-rounded {
  transition: all 0.3s ease;
}

.preset-radio-label:hover {
  border-color: var(--primary);
  background: rgba(192, 252, 0, 0.08);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

/* Spinner refinement */
.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(192, 252, 0, 0.1);
  border-left-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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