@layer theme {
  :root,:host {
      --font-sans: ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
      --font-mono: ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
      --color-slate-400: oklch(.704 .04 256.788);
      --color-slate-800: oklch(.279 .041 260.031);
      --color-slate-950: oklch(.129 .042 264.695);
      --color-zinc-900: oklch(.21 .006 285.885);
      --color-white: #fff;
      --spacing: .25rem;
      --container-xs: 20rem;
      --container-sm: 24rem;
      --container-md: 28rem;
      --container-2xl: 42rem;
      --text-xs: .75rem;
      --text-xs--line-height: calc(1/.75);
      --text-sm: .875rem;
      --text-sm--line-height: calc(1.25/.875);
      --text-base: 1rem;
      --text-base--line-height: 1.5 ;
      --text-lg: 1.125rem;
      --text-lg--line-height: calc(1.75/1.125);
      --text-xl: 1.25rem;
      --text-2xl: 1.5rem;
      --text-2xl--line-height: calc(2/1.5);
      --text-5xl: 3rem;
      --text-5xl--line-height: 1;
      --text-7xl: 4.5rem;
      --text-7xl--line-height: 1;
      --font-weight-medium: 500;
      --font-weight-semibold: 600;
      --font-weight-bold: 700;
      --tracking-tight: -.025em;
      --tracking-widest: .1em;
      --radius-sm: .25rem;
      --radius-md: .375rem;
      --radius-lg: .5rem;
      --default-transition-duration: .15s;
      --default-transition-timing-function: cubic-bezier(.4,0,.2,1);
      --default-font-family: var(--font-sans);
      --default-mono-font-family: var(--font-mono);
      --color-background: hsl(var(--background));
      --color-foreground: hsl(var(--foreground));
      --color-muted: hsl(var(--muted));
      --color-muted-foreground: hsl(var(--muted-foreground));
      --color-popover: hsl(var(--popover));
      --color-border: hsl(var(--border)/var(--border-alpha,1));
      --color-primary: hsl(var(--primary));
      --color-secondary-foreground: hsl(var(--secondary-foreground));
      --color-destructive: hsl(var(--destructive)/var(--destructive-alpha,1));
      --color-ring: hsl(var(--ring));
      --font-geist-sans: Geist Sans,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"
  }
}

@layer base {
  *,:after,:before,::backdrop {
      box-sizing: border-box;
      border: 0 solid;
      margin: 0;
      padding: 0
  }

  ::file-selector-button {
      box-sizing: border-box;
      border: 0 solid;
      margin: 0;
      padding: 0
  }

  html,:host {
      -webkit-text-size-adjust:100%;
      tab-size: 4;
      line-height: 1.5;
      font-family: var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");
      font-feature-settings: var(--default-font-feature-settings,normal);
      font-variation-settings: var(--default-font-variation-settings,normal);
      -webkit-tap-highlight-color: transparent
  }

  hr {
      height: 0;
      color: inherit;
      border-top-width: 1px
  }

  abbr:where([title]) {
      -webkit-text-decoration:underline dotted;
      text-decoration: underline dotted
  }

  h1,h2,h3,h4,h5,h6 {
      font-size: inherit;
      font-weight: inherit
  }

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

  b,strong {
      font-weight: bolder
  }

  code,kbd,samp,pre {
      font-family: var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);
      font-feature-settings: var(--default-mono-font-feature-settings,normal);
      font-variation-settings: var(--default-mono-font-variation-settings,normal);
      font-size: 1em
  }

  small {
      font-size: 80%
  }

  sub,sup {
      vertical-align: baseline;
      font-size: 75%;
      line-height: 0;
      position: relative
  }

  sub {
      bottom: -.25em
  }

  sup {
      top: -.5em
  }

  table {
      text-indent: 0;
      border-color: inherit;
      border-collapse: collapse
  }

  :-moz-focusring {
      outline: auto
  }

  progress {
      vertical-align: baseline
  }

  summary {
      display: list-item
  }

  ol,ul,menu {
      list-style: none
  }

  img,svg,video,canvas,audio,iframe,embed,object {
      vertical-align: middle;
      display: block
  }

  img,video {
      max-width: 100%;
      height: auto
  }

  button,input,select,optgroup,textarea {
      font: inherit;
      font-feature-settings: inherit;
      font-variation-settings: inherit;
      letter-spacing: inherit;
      color: inherit;
      opacity: 1;
      background-color: #0000;
      border-radius: 0
  }

  ::file-selector-button {
      font: inherit;
      font-feature-settings: inherit;
      font-variation-settings: inherit;
      letter-spacing: inherit;
      color: inherit;
      opacity: 1;
      background-color: #0000;
      border-radius: 0
  }

  :where(select:is([multiple],[size])) optgroup {
      font-weight:bolder
  }

  :where(select:is([multiple],[size])) optgroup option {
      padding-inline-start:20px
  }

  ::file-selector-button {
      margin-inline-end:4px}

  ::placeholder {
      opacity: 1
  }

  @supports (not ((-webkit-appearance: -apple-pay-button))) or (contain-intrinsic-size:1px) {
      ::placeholder {
          color:color-mix(in oklab,currentColor 50%,transparent)
      }
  }

  textarea {
      resize: vertical
  }

  ::-webkit-search-decoration {
      -webkit-appearance: none
  }

  ::-webkit-date-and-time-value {
      min-height: 1lh;
      text-align: inherit
  }

  ::-webkit-datetime-edit {
      display: inline-flex
  }

  ::-webkit-datetime-edit-fields-wrapper {
      padding: 0
  }

  ::-webkit-datetime-edit {
      padding-block:0}

  ::-webkit-datetime-edit-year-field {
      padding-block:0}

  ::-webkit-datetime-edit-month-field {
      padding-block:0}

  ::-webkit-datetime-edit-day-field {
      padding-block:0}

  ::-webkit-datetime-edit-hour-field {
      padding-block:0}

  ::-webkit-datetime-edit-minute-field {
      padding-block:0}

  ::-webkit-datetime-edit-second-field {
      padding-block:0}

  ::-webkit-datetime-edit-millisecond-field {
      padding-block:0}

  ::-webkit-datetime-edit-meridiem-field {
      padding-block:0}

  :-moz-ui-invalid {
      box-shadow: none
  }

  button,input:where([type=button],[type=reset],[type=submit]) {
      appearance:button
  }

  ::file-selector-button {
      appearance: button
  }

  ::-webkit-inner-spin-button {
      height: auto
  }

  ::-webkit-outer-spin-button {
      height: auto
  }

  [hidden]:where(:not([hidden=until-found])) {
      display:none!important
  }

  .fr-select li.uk-active>a {
      --uk-nav-item-bg: hsl(var(--accent));
      --uk-nav-item-color: hsl(var(--accent-foreground))
  }
}

/* Admin sidebar nav: bar #4ade80, active text #0a0a0a */
.admin-sidebar-nav.uk-nav-default > li.uk-active,
.admin-sidebar-nav.uk-nav-default > li.uk-parent.uk-open {
  border-left-color: #4ade80;
}
.admin-sidebar-nav.uk-nav-default > li.uk-active > a,
.admin-sidebar-nav.uk-nav-default > li.uk-parent.uk-open > a {
  color: #0a0a0a;
}
/* Sub-menu: line via li::before – color #4ade80, etwas dicker; Text #0a0a0a */
.admin-sidebar-nav .uk-nav-sub li.uk-active::before {
  background-color: #4ade80;
  width: 5px;
}
.admin-sidebar-nav .uk-nav-sub li.uk-active > a {
  color: #0a0a0a;
}

.dark\:flex:where(.dark,.dark *) {
  display:flex
}

.dark\:block:where(.dark,.dark *) {
  display:block
}

.dark\:hidden:where(.dark,.dark *) {
    display:none
}

.dark\:inline-block:where(.dark,.dark *) {
    display:inline-block
}

/* Sortable table styles */
.sortable-ghost-custom {
    opacity: 0.4 !important;
    background: #f0f9ff !important;
    border: 2px dashed #0078ff !important;
}

.sortable-chosen-custom {
    transform: scale(1.02) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    z-index: 1000 !important;
}

.sortable-drag-custom {
    opacity: 0.9 !important;
    transform: rotate(2deg) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2) !important;
}

/* Force cleanup of any residual SortableJS classes */
tbody tr:not(.sortable-ghost-custom):not(.sortable-chosen-custom):not(.sortable-drag-custom) {
    transform: none !important;
    opacity: 1 !important;
    box-shadow: none !important;
    border: none !important;
    z-index: auto !important;
    transition: none !important;
}

/* Also clean up the old class names if they somehow get added */
tbody tr.uk-sortable-ghost,
tbody tr.uk-sortable-chosen,
tbody tr.uk-sortable-drag {
    transform: none !important;
    opacity: 1 !important;
    box-shadow: none !important;
    border: none !important;
    z-index: auto !important;
}

.drag-handle {
    transition: color 0.2s ease;
}

.drag-handle:hover {
    color: #0078ff !important;
    cursor: grab !important;
}

.drag-handle:active {
    cursor: grabbing !important;
}

/* Ensure proper table styling during drag */
.is-dragging {
    position: relative;
}

.is-dragging tr {
    transition: none !important;
}

/* Pricing Component Styles */
.pricing-card {
    transition: all 0.3s ease;
}

.pricing-card:not(.disabled-card):hover {
    transform: translateY(-8px);
}

.popular-card:not(.disabled-card) {
    transform: scale(1.05);
}

.popular-card:not(.disabled-card):hover {
    transform: scale(1.05) translateY(-8px);
}

.pricing-card-content {
    display: flex;
    flex-direction: column;
    min-height: 600px;
}

.disabled-card {
    pointer-events: none;
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(251, 146, 60, 0.3); }
    50% { box-shadow: 0 0 30px rgba(251, 146, 60, 0.5), 0 0 40px rgba(251, 146, 60, 0.3); }
}

.popular-card:not(.disabled-card) .pricing-card-content {
    animation: glow 3s ease-in-out infinite;
}

.aspect-square {
      aspect-ratio: 1
}

.object-cover {
      object-fit: cover
}

/* Media Browser Modal Styles */
.media-browser-overlay {
    background-color: rgba(0, 0, 0, 0.75);
}

.media-browser-modal {
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.media-browser-body {
    flex: 1;
    overflow-y: auto;
    max-height: calc(90vh - 120px); /* Subtract header and footer height */
}

/* Coin Package Card Hover Effect */
.coin-package-card {
    transition: transform 250ms ease-in-out;
}

.coin-package-card:hover {
    transform: scale(1.05);
}

/* Admin sidebar: Super-Admin-only menu links (Twig cannot rely on Tailwind arbitrary values — app.css is not JIT-scanned for templates) */
.admin-sidebar-nav a.admin-nav-link-super-admin {
    color: #f44e1e;
    transition: color 0.2s ease;
}

.admin-sidebar-nav a.admin-nav-link-super-admin:hover {
    color: #d9461a;
}

.uk-nav.uk-nav-secondary a.admin-nav-link-super-admin {
    color: #f44e1e;
    transition: color 0.2s ease;
}

.uk-nav.uk-nav-secondary a.admin-nav-link-super-admin:hover {
    color: #d9461a;
}

/* ═══════════════════════════════════════════════════════════════════════
   Vimeo Upload Widget (custom classes because app.css is not JIT-built
   and FrankenUI utilities do not include animate-spin, z-50, bg-black/60,
   text-white, border-white, border-t-transparent, text-red-600, text-green-600).
   ═══════════════════════════════════════════════════════════════════════ */
.vimeo-upload-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147482000;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.vimeo-upload-overlay.hidden {
    display: none;
}

.vimeo-upload-overlay-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.vimeo-upload-overlay-text {
    margin: 0;
    color: #ffffff;
    font-size: 1.125rem;
    line-height: 1.5;
}

.vimeo-upload-spinner {
    width: 3rem;
    height: 3rem;
    border: 4px solid #ffffff;
    border-top-color: transparent;
    border-radius: 9999px;
    animation: vimeo-upload-spin 0.8s linear infinite;
}

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

.vimeo-upload-status {
    font-size: 0.875rem;
    line-height: 1.4;
    color: #4b5563;
}

.vimeo-upload-status.vimeo-upload-status--ready {
    color: #16a34a;
}

.vimeo-upload-status.vimeo-upload-status--failed {
    color: #dc2626;
}

@media (prefers-reduced-motion: reduce) {
    .vimeo-upload-spinner { animation: none; }
}

/* Vimeo preview: fixed aspect box so the play layer stays ON the thumbnail (not below). */
.vimeo-preview {
    position: relative;
    width: 100%;
    max-width: 20rem;
    aspect-ratio: 16 / 9;
    border-radius: 0.25rem;
    overflow: hidden;
    background-color: #f3f4f6;
    min-height: 0;
}

html.dark .vimeo-preview,
.dark .vimeo-preview {
    background-color: #374151;
}

.vimeo-preview-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    text-align: center;
}

.vimeo-preview-thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vimeo-preview-play {
    position: absolute;
    cursor: pointer;
}

.vimeo-preview-play:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.vimeo-preview-play-icon {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    background-color: rgba(0, 0, 0, 0.22);
    transition: background-color 0.2s ease;
}

.vimeo-preview-play:hover .vimeo-preview-play-icon {
    background-color: rgba(0, 0, 0, 0.38);
}

.vimeo-preview-play-icon-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 5.85rem;
    height: 5.85rem;
    border-radius: 9999px;
    background-color: rgba(34, 197, 94, 0.92);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.vimeo-preview-play-ukicon {
    margin-left: 4px;
    color: #ffffff;
}

.vimeo-preview-play:hover .vimeo-preview-play-icon-inner {
    background-color: rgba(22, 163, 74, 0.95);
}

.vimeo-player-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147481990;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
}

.vimeo-player-overlay.hidden {
    display: none;
}

.vimeo-player-overlay-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
}

.vimeo-player-overlay-panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: min(96vw, 56rem);
    max-height: min(90vh, 48rem);
    min-width: 0;
}

.vimeo-player-overlay-toolbar {
    display: flex;
    justify-content: flex-end;
}

.vimeo-player-iframe-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 0;
    overflow: hidden;
    border-radius: 0.375rem;
    background-color: #000000;
}

.vimeo-player-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
