:root {
  --emerald-deep: #062619;
  --emerald: #0A3D2E;
  --gold: #C9A961;
  --cream: #F5F1E8;
  --paper: #FAF6EC;
  --ink: #0F0F0F;
  --muted: rgba(15, 15, 15, 0.62);
  --surface: rgba(250, 246, 236, 0.9);
  --surface-solid: var(--paper);
  --line: rgba(6, 38, 25, 0.13);
  --danger: #9f3d3d;
  --shadow: 0 20px 60px rgba(6, 38, 25, 0.13);
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-Medium.ttf") format("truetype");
  font-weight: 500;
}

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-Bold.ttf") format("truetype");
  font-weight: 700;
}

@font-face {
  font-family: "Bebas Neue";
  src: url("../fonts/BebasNeue-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "Anton";
  src: url("../fonts/Anton-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "Oswald";
  src: url("../fonts/Oswald-Bold.ttf") format("truetype");
  font-weight: 700;
}

@font-face {
  font-family: "Lora";
  src: url("../fonts/Lora-SemiBold.ttf") format("truetype");
  font-weight: 600;
}

@font-face {
  font-family: "Merriweather Sans";
  src: url("../fonts/MerriweatherSans-SemiBold.ttf") format("truetype");
  font-weight: 600;
}

@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/SourceSerif4-SemiBold.ttf") format("truetype");
  font-weight: 600;
}

@font-face {
  font-family: "Spectral";
  src: url("../fonts/Spectral-Medium.ttf") format("truetype");
  font-weight: 500;
}

@font-face {
  font-family: "Libre Baskerville";
  src: url("../fonts/LibreBaskerville-Bold.ttf") format("truetype");
  font-weight: 700;
}

@font-face {
  font-family: "Manrope";
  src: url("../fonts/Manrope-SemiBold.ttf") format("truetype");
  font-weight: 600;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/PlusJakartaSans-SemiBold.ttf") format("truetype");
  font-weight: 600;
}

@font-face {
  font-family: "Scheherazade";
  src: url("../fonts/Scheherazade-Regular.ttf") format("truetype");
  font-weight: 400;
}

html {
  font-size: 14px;
  min-height: 100%;
  position: relative;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  color: var(--ink);
  margin-bottom: 60px;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(201, 169, 97, 0.15) 0%, transparent 30%),
    linear-gradient(225deg, rgba(10, 61, 46, 0.11) 0%, transparent 34%),
    linear-gradient(180deg, var(--paper) 0%, var(--cream) 52%, #ece4d5 100%);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--emerald-deep);
}

.hero-section h1,
.panel-header h1,
.panel-header h2,
.panel-header h3,
.panel-header h4,
.panel-header h5,
.panel-header h6 {
  color: var(--cream);
}

.text-warning {
  color: var(--gold) !important;
}

.app-shell {
  overflow-x: hidden;
}

.app-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(6, 38, 25, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 38, 25, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 80%);
}

.app-container {
  padding-top: 1.5rem;
}

.app-navbar {
  background: rgba(6, 38, 25, 0.96);
  border-bottom: 1px solid rgba(201, 169, 97, 0.25);
  box-shadow: 0 12px 40px rgba(6, 38, 25, 0.22);
  backdrop-filter: blur(14px);
}

.app-brand {
  align-items: center;
  display: inline-flex;
  font-weight: 800;
  gap: 0.65rem;
  letter-spacing: 0;
}

.brand-logo {
  height: 2.25rem;
  width: 2.25rem;
}

.brand-mark,
.icon-disc {
  align-items: center;
  background: linear-gradient(145deg, #d8bf7b, var(--gold));
  border-radius: 999px;
  color: var(--emerald-deep);
  display: inline-flex;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(201, 169, 97, 0.32);
}

.brand-mark {
  height: 2rem;
  width: 2rem;
}

.icon-disc {
  height: 3.1rem;
  width: 3.1rem;
}

.app-navlinks {
  gap: 0.25rem;
}

.app-navlinks .nav-link {
  border-radius: 999px;
  color: rgba(245, 241, 232, 0.78);
  padding-inline: 0.95rem;
}

.app-navlinks .nav-link:hover,
.app-navlinks .nav-link:focus {
  background: rgba(201, 169, 97, 0.12);
  color: var(--cream);
}

.app-userbar {
  align-items: center;
  background: rgba(250, 246, 236, 0.08);
  border: 1px solid rgba(201, 169, 97, 0.2);
  border-radius: 999px;
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.25rem;
}

.app-userpill {
  align-items: center;
  color: rgba(245, 241, 232, 0.88);
  display: inline-flex;
  font-size: 0.82rem;
  gap: 0.4rem;
  max-width: 13rem;
  padding: 0.2rem 0.55rem;
}

.app-userpill span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-nav-logout {
  background: rgba(245, 241, 232, 0.08);
  border: 1px solid rgba(245, 241, 232, 0.12);
  color: var(--cream);
  padding: 0.18rem 0.62rem;
}

.btn-nav-logout:hover {
  background: rgba(201, 169, 97, 0.18);
  color: var(--cream);
}

.app-footer {
  color: rgba(6, 38, 25, 0.58);
}

a {
  color: var(--emerald);
}

a:hover {
  color: var(--emerald-deep);
}

.btn {
  border-radius: 999px;
  font-weight: 700;
}

.btn-warning {
  background: linear-gradient(145deg, #d8bf7b, var(--gold));
  border-color: var(--gold);
  color: var(--emerald-deep);
  box-shadow: 0 10px 24px rgba(201, 169, 97, 0.25);
}

.btn-warning:hover,
.btn-warning:focus {
  background: linear-gradient(145deg, #e0c986, #b99547);
  border-color: #b99547;
  color: var(--emerald-deep);
}

.btn-outline-secondary,
.btn-outline-warning,
.btn-outline-danger {
  background: rgba(255, 255, 255, 0.36);
}

.btn-success {
  background-color: var(--emerald);
  border-color: var(--emerald);
}

.btn-success:hover {
  background-color: var(--emerald-deep);
  border-color: var(--emerald-deep);
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  border-color: rgba(201, 169, 97, 0.75);
  box-shadow: 0 0 0 0.22rem rgba(201, 169, 97, 0.22);
}

.card,
.modern-card {
  background: var(--surface);
  border: 1px solid var(--line) !important;
  border-radius: 1.25rem;
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(16px);
}

.card-header {
  border-bottom: 1px solid var(--line);
}

.panel-header {
  background: linear-gradient(135deg, var(--emerald-deep), var(--emerald));
  color: var(--cream);
}

.form-control,
.form-select {
  background-color: rgba(250, 246, 236, 0.82);
  border: 1px solid rgba(6, 38, 25, 0.18);
  border-radius: 0.95rem;
  color: var(--ink);
  min-height: 3rem;
}

.form-control::placeholder {
  color: rgba(15, 15, 15, 0.36);
}

.form-label {
  color: var(--emerald-deep);
  font-size: 0.88rem;
}

.form-text,
.text-muted {
  color: var(--muted) !important;
}

.alert {
  border: 0;
  border-radius: 1rem;
}

.hero-section {
  background:
    linear-gradient(120deg, rgba(6, 38, 25, 0.98), rgba(10, 61, 46, 0.9)),
    repeating-linear-gradient(135deg, rgba(201, 169, 97, 0.13) 0 1px, transparent 1px 18px);
  color: var(--cream);
  min-height: 430px;
  overflow: hidden;
  position: relative;
}

.hero-section::after {
  border: 1px solid rgba(201, 169, 97, 0.28);
  border-radius: 2rem;
  content: "";
  inset: 1rem;
  position: absolute;
  pointer-events: none;
}

.hero-kicker {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.95;
}

.hero-copy {
  color: rgba(245, 241, 232, 0.78);
  max-width: 43rem;
}

.hero-logo-card {
  align-items: center;
  background: rgba(250, 246, 236, 0.08);
  border: 1px solid rgba(201, 169, 97, 0.22);
  border-radius: 1.25rem;
  display: flex;
  justify-content: center;
  padding: 1rem;
}

.hero-logo {
  display: block;
  max-width: min(100%, 360px);
  width: 100%;
}

.feature-card {
  min-height: 100%;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 70px rgba(6, 38, 25, 0.16);
}

.page-heading {
  margin-bottom: 1.25rem;
}

.page-heading h1,
.page-heading h3 {
  font-weight: 850;
  letter-spacing: 0;
}

.meta-pill {
  background: rgba(10, 61, 46, 0.1);
  border: 1px solid rgba(10, 61, 46, 0.16);
  border-radius: 999px;
  color: var(--emerald);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
}

.progress {
  background-color: rgba(6, 38, 25, 0.1);
  border-radius: 999px;
}

.progress-bar {
  border-radius: 999px;
}

.table-modern {
  border-collapse: separate;
  border-spacing: 0 0.65rem;
}

.table-modern thead th {
  border: 0;
  color: var(--muted);
  font-size: 0.78rem;
  padding-bottom: 0.25rem;
  text-transform: uppercase;
}

.table-modern tbody tr {
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(6, 38, 25, 0.08);
}

.table-modern tbody td {
  border: 0;
  padding: 1rem;
}

.table-modern tbody td:first-child {
  border-bottom-left-radius: 1rem;
  border-top-left-radius: 1rem;
}

.table-modern tbody td:last-child {
  border-bottom-right-radius: 1rem;
  border-top-right-radius: 1rem;
}

.empty-state {
  background: rgba(255, 252, 244, 0.72);
  border: 1px dashed rgba(6, 38, 25, 0.18);
  border-radius: 1.5rem;
}

.thumbnail-preview {
  background: #111;
  max-height: 360px;
  object-fit: cover;
  width: 100%;
}

.brand-link {
  color: var(--emerald);
  font-weight: 800;
  text-decoration: none;
}

.brand-link:hover {
  color: var(--emerald-deep);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 0.2rem;
}

.auth-wrap {
  padding: clamp(1rem, 4vw, 3rem) 0;
}

.auth-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.6rem;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.78fr);
  margin-inline: auto;
  max-width: 980px;
  min-height: 560px;
  overflow: hidden;
}

.auth-card-register {
  max-width: 1040px;
}

.auth-brand-panel {
  background:
    linear-gradient(135deg, rgba(6, 38, 25, 0.98), rgba(10, 61, 46, 0.9)),
    repeating-linear-gradient(135deg, rgba(201, 169, 97, 0.14) 0 1px, transparent 1px 20px);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.6rem, 4vw, 3rem);
  position: relative;
}

.auth-brand-panel::after {
  border: 1px solid rgba(201, 169, 97, 0.22);
  border-radius: 1.2rem;
  content: "";
  inset: 1rem;
  pointer-events: none;
  position: absolute;
}

.auth-logo {
  max-width: 280px;
  width: 70%;
}

.auth-brand-copy {
  max-width: 28rem;
  position: relative;
  z-index: 1;
}

.auth-brand-copy h1 {
  color: var(--cream);
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  margin: 0.75rem 0 1rem;
}

.auth-brand-copy p {
  color: rgba(245, 241, 232, 0.74);
  margin: 0;
}

.auth-form-panel {
  align-self: center;
  padding: clamp(1.4rem, 4vw, 3rem);
}

.auth-form-panel h2 {
  font-size: clamp(2rem, 4vw, 2.65rem);
  font-weight: 900;
  letter-spacing: 0;
}

.auth-form .form-control {
  padding-left: 3rem;
}

.input-with-icon {
  position: relative;
}

.input-with-icon > i {
  color: rgba(6, 38, 25, 0.48);
  left: 1.05rem;
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.style-panel,
.search-panel {
  background: rgba(250, 246, 236, 0.68);
  border: 1px solid rgba(6, 38, 25, 0.12);
  border-radius: 1.15rem;
}

.soft-toggle {
  border-color: rgba(6, 38, 25, 0.18);
}

.video-card {
  background: rgba(250, 246, 236, 0.84);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.video-card:hover {
  box-shadow: 0 18px 50px rgba(6, 38, 25, 0.16);
  transform: translateY(-3px);
}

.video-frame {
  aspect-ratio: 9 / 16;
  background: var(--emerald-deep);
  cursor: pointer;
  overflow: hidden;
  position: relative;
}

.play-icon {
  align-items: center;
  background: rgba(6, 38, 25, 0.36);
  border: 1px solid rgba(245, 241, 232, 0.28);
  border-radius: 999px;
  color: var(--cream);
  display: inline-flex;
  height: 3.25rem;
  justify-content: center;
  width: 3.25rem;
}

.play-icon i {
  color: var(--cream);
  opacity: 0.9;
}

.watermark-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.watermark-card {
  background: rgba(250, 246, 236, 0.72);
  border: 1px solid rgba(6, 38, 25, 0.12);
  border-radius: 1.1rem;
  display: grid;
  gap: 0.85rem;
  padding: 0.85rem;
}

.watermark-preview {
  align-items: center;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, rgba(6, 38, 25, 0.96), rgba(10, 61, 46, 0.88)),
    repeating-linear-gradient(45deg, rgba(201, 169, 97, 0.12) 0 1px, transparent 1px 14px);
  border-radius: 0.85rem;
  display: flex;
  justify-content: center;
  overflow: hidden;
  padding: 1rem;
}

.watermark-preview img {
  display: block;
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.endscreen-preview {
  aspect-ratio: 9 / 16;
  padding: 0;
}

.endscreen-preview img {
  height: 100%;
  max-height: none;
  max-width: none;
  object-fit: cover;
  width: 100%;
}

.watermark-meta {
  min-width: 0;
}

.create-studio-grid {
  align-items: start;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1.45fr) minmax(330px, 0.78fr);
}

.studio-controls {
  min-width: 0;
}

.studio-preview {
  min-width: 0;
}

.preview-sticky {
  position: sticky;
  top: 1rem;
  z-index: 4;
}

.preview-header {
  align-items: end;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.preview-format {
  background: var(--emerald-deep);
  border-radius: 999px;
  color: var(--cream);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.4rem 0.75rem;
}

.phone-preview {
  aspect-ratio: 9 / 16;
  background: var(--emerald-deep);
  border: 1px solid rgba(245, 241, 232, 0.18);
  border-radius: 0.35rem;
  box-shadow: 0 18px 50px rgba(6, 38, 25, 0.18);
  overflow: hidden;
  position: relative;
}

.phone-preview::after {
  content: none;
}

.phone-preview video {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.preview-shade {
  background:
    radial-gradient(circle at 50% 45%, transparent 0, rgba(6, 38, 25, 0.12) 30%, rgba(6, 38, 25, 0.54) 100%),
    linear-gradient(180deg, rgba(6, 38, 25, 0.22), rgba(6, 38, 25, 0.55));
  inset: 0;
  position: absolute;
  z-index: 1;
}

.preview-copy {
  color: #fff;
  left: 10%;
  position: absolute;
  right: 10%;
  text-align: center;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.72);
  top: 50%;
  transform: translateY(-50%);
  transition: color 160ms ease, top 160ms ease, font-family 160ms ease;
  z-index: 2;
}

.preview-copy.preview-backdrop-black,
.preview-copy.preview-backdrop-white {
    padding: 28px 34px;
    border-radius: 8px;
}

.preview-copy.preview-backdrop-black {
    background: linear-gradient(180deg, rgba(0, 0, 0, .05), rgba(0, 0, 0, .42), rgba(0, 0, 0, .05));
}

.preview-copy.preview-backdrop-white {
    background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .32), rgba(255, 255, 255, .03));
}

.preview-copy.preview-size-small .preview-arabic {
  font-size: clamp(0.82rem, 1.55vw, 1.08rem);
}

.preview-copy.preview-size-small .preview-translation {
  font-size: clamp(0.88rem, 1.7vw, 1.14rem);
}

.preview-copy.preview-size-large .preview-arabic {
  font-size: clamp(1.08rem, 2.05vw, 1.42rem);
}

.preview-copy.preview-size-large .preview-translation {
  font-size: clamp(1.12rem, 2.18vw, 1.48rem);
}

.preview-arabic {
  color: rgba(178, 196, 190, 0.96);
  font-family: "Scheherazade", "Amiri", Georgia, serif;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  font-weight: 400;
  line-height: 1.85;
  margin-bottom: 0.85rem;
}

.preview-divider {
  background: rgba(201, 169, 97, 0.78);
  border-radius: 999px;
  height: 4px;
  margin: 0 auto 1.05rem;
  width: 30%;
}

.preview-translation {
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 900;
  line-height: 1.28;
}

.preview-ref {
  color: rgba(201, 169, 97, 0.86);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.34em;
  margin-top: 1.1rem;
}

.preview-watermark {
  max-width: 25%;
  opacity: 0.78;
  position: absolute;
  z-index: 3;
}

.wm-preview-pos-0 {
  left: 8%;
  top: 6%;
}

.wm-preview-pos-1 {
  left: 50%;
  top: 6%;
  transform: translateX(-50%);
}

.wm-preview-pos-2 {
  right: 8%;
  top: 6%;
}

.wm-preview-pos-3 {
  left: 8%;
  top: 50%;
  transform: translateY(-50%);
}

.wm-preview-pos-4 {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.wm-preview-pos-5 {
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
}

.wm-preview-pos-6 {
  bottom: 8%;
  left: 8%;
}

.wm-preview-pos-7 {
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%);
}

.wm-preview-pos-8 {
  bottom: 8%;
  right: 8%;
}

.preview-meta {
  background: rgba(250, 246, 236, 0.76);
  border: 1px solid rgba(6, 38, 25, 0.12);
  border-radius: 1rem;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr 1fr;
  padding: 1rem;
}

.preview-meta strong {
  color: var(--emerald-deep);
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.choice-section {
  border-top: 1px solid rgba(6, 38, 25, 0.1);
  padding-top: 1rem;
}

.visual-choice-grid {
  display: grid;
  gap: 0.55rem;
}

.background-choice-grid {
  grid-auto-flow: column;
  grid-auto-columns: minmax(82px, 96px);
  grid-template-columns: none;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scroll-snap-type: x proximity;
}

.watermark-choice-grid {
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
}

.endscreen-choice-grid {
  grid-auto-flow: column;
  grid-auto-columns: minmax(92px, 110px);
  grid-template-columns: none;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scroll-snap-type: x proximity;
}

.visual-choice {
  background: rgba(250, 246, 236, 0.74);
  border: 1px solid rgba(6, 38, 25, 0.12);
  border-radius: 0.7rem;
  color: var(--emerald-deep);
  display: grid;
  gap: 0.4rem;
  padding: 0.35rem;
  scroll-snap-align: start;
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.visual-choice:hover,
.visual-choice:focus {
  border-color: rgba(201, 169, 97, 0.72);
  box-shadow: 0 8px 22px rgba(6, 38, 25, 0.1);
  outline: 0;
  transform: translateY(-2px);
}

.visual-choice.is-selected {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(201, 169, 97, 0.24);
}

.choice-media {
  align-items: center;
  background: var(--emerald-deep);
  border-radius: 0.5rem;
  display: flex;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.choice-video {
  aspect-ratio: 9 / 16;
}

.choice-video video {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.choice-video::after {
  background: linear-gradient(180deg, transparent, rgba(6, 38, 25, 0.52));
  content: "";
  inset: 0;
  position: absolute;
}

.watermark-swatch,
.watermark-none,
.endscreen-swatch {
  aspect-ratio: 1 / 1;
  background:
    linear-gradient(135deg, rgba(6, 38, 25, 0.96), rgba(10, 61, 46, 0.88)),
    repeating-linear-gradient(45deg, rgba(201, 169, 97, 0.12) 0 1px, transparent 1px 14px);
  color: var(--cream);
  padding: 0.45rem;
}

.endscreen-swatch img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.watermark-swatch img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.watermark-none {
  flex-direction: column;
  font-size: 0.78rem;
  font-weight: 800;
  gap: 0.35rem;
}

.watermark-none i {
  color: var(--gold);
}

.choice-check {
  align-items: center;
  background: var(--gold);
  border-radius: 999px;
  color: var(--emerald-deep);
  display: none;
  height: 1.35rem;
  justify-content: center;
  position: absolute;
  right: 0.35rem;
  top: 0.35rem;
  width: 1.35rem;
  z-index: 3;
}

.visual-choice.is-selected .choice-check {
  display: inline-flex;
}

.choice-title {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  overflow: hidden;
  padding-inline: 0.15rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.studio-card .form-label {
  font-size: 0.82rem;
  margin-bottom: 0.25rem;
}

.studio-card .form-control,
.studio-card .form-select {
  min-height: 2.55rem;
}

.compact-section {
  background: rgba(6, 38, 25, 0.035);
  border: 1px solid rgba(6, 38, 25, 0.09);
  border-radius: 0.85rem;
  padding: 0.85rem;
}

.section-mini-title {
  align-items: center;
  color: var(--emerald);
  display: flex;
  font-size: 0.82rem;
  font-weight: 900;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}

.font-select {
  font-size: 1.05rem;
  font-weight: 600;
}

.text-size-segment {
  background: rgba(6, 38, 25, 0.06);
  border: 1px solid rgba(6, 38, 25, 0.12);
  border-radius: 999px;
  display: grid;
  gap: 0.25rem;
  grid-template-columns: repeat(3, 1fr);
  padding: 0.25rem;
}

.text-size-option {
  border-radius: 999px;
  color: var(--emerald);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 900;
  padding: 0.65rem 0.45rem;
  text-align: center;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.text-size-input:checked + .text-size-option {
  background: var(--emerald-deep);
  box-shadow: 0 8px 20px rgba(6, 38, 25, 0.18);
  color: var(--cream);
}

.status-page {
  padding-bottom: 2rem;
}

.status-shell {
  display: grid;
  gap: 1.25rem;
}

.status-hero {
  background:
    linear-gradient(135deg, rgba(6, 38, 25, 0.98), rgba(10, 61, 46, 0.92)),
    repeating-linear-gradient(135deg, rgba(201, 169, 97, 0.12) 0 1px, transparent 1px 18px);
  border: 1px solid rgba(201, 169, 97, 0.24);
  border-radius: 1.35rem;
  box-shadow: 0 24px 70px rgba(6, 38, 25, 0.22);
  color: var(--cream);
  overflow: hidden;
  padding: clamp(1.2rem, 3vw, 2rem);
  position: relative;
}

.status-hero::after {
  border: 1px solid rgba(201, 169, 97, 0.18);
  border-radius: 1rem;
  content: "";
  inset: 0.75rem;
  pointer-events: none;
  position: absolute;
}

.status-hero > * {
  position: relative;
  z-index: 1;
}

.status-kicker {
  align-items: center;
  color: var(--gold);
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 900;
  gap: 0.45rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.status-hero h1 {
  color: var(--cream);
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  margin: 0.6rem 0 0.7rem;
}

.status-hero p {
  color: rgba(245, 241, 232, 0.72) !important;
}

.status-badge {
  background: rgba(250, 246, 236, 0.1) !important;
  border: 1px solid rgba(201, 169, 97, 0.28);
  color: var(--cream);
  min-width: 9.5rem;
}

.status-badge.bg-success {
  background: rgba(10, 61, 46, 0.92) !important;
  border-color: rgba(201, 169, 97, 0.44);
}

.status-badge.bg-primary,
.status-badge.bg-secondary {
  background: rgba(201, 169, 97, 0.17) !important;
  color: var(--cream);
}

.status-badge.bg-danger {
  background: rgba(159, 61, 61, 0.9) !important;
}

.status-progress-card {
  background: rgba(250, 246, 236, 0.76);
  border: 1px solid rgba(6, 38, 25, 0.1);
  border-radius: 1rem;
  box-shadow: 0 14px 40px rgba(6, 38, 25, 0.1);
  padding: 1rem;
}

.status-progress-card .progress {
  background: rgba(6, 38, 25, 0.1);
  height: 0.7rem !important;
}

.status-progress-card .progress-bar {
  background: linear-gradient(90deg, var(--emerald), var(--gold)) !important;
}

.status-workbench {
  background: rgba(250, 246, 236, 0.86);
  border: 1px solid rgba(6, 38, 25, 0.12);
  border-radius: 1.35rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.status-player-wrap {
  background:
    radial-gradient(circle at 50% 42%, rgba(201, 169, 97, 0.15), transparent 38%),
    linear-gradient(135deg, var(--emerald-deep), #09120e);
  display: flex;
  justify-content: center;
  padding: clamp(1rem, 3vw, 1.5rem);
}

.status-player-frame {
  aspect-ratio: 9 / 16;
  background: #050806;
  border: 1px solid rgba(201, 169, 97, 0.22);
  border-radius: 1.35rem;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
  max-height: 620px;
  overflow: hidden;
  width: min(100%, 360px);
}

.status-player-frame video {
  background: #050806;
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.status-body {
  padding: clamp(1.1rem, 3vw, 2rem);
}

.status-detail-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.status-detail {
  background: rgba(6, 38, 25, 0.04);
  border: 1px solid rgba(6, 38, 25, 0.08);
  border-radius: 0.9rem;
  padding: 0.8rem 0.9rem;
}

.status-detail span {
  color: var(--muted);
  display: block;
  font-size: 0.74rem;
  font-weight: 800;
  margin-bottom: 0.24rem;
  text-transform: uppercase;
}

.status-detail strong {
  color: var(--emerald-deep);
  display: block;
  font-size: 0.96rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-action-row {
  align-items: center;
  border-top: 1px solid rgba(6, 38, 25, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.2rem;
  padding-top: 1.2rem;
}

.status-edit-panel {
  background: rgba(6, 38, 25, 0.04);
  border: 1px solid rgba(6, 38, 25, 0.1);
  border-radius: 1rem;
  margin-top: 1rem;
  padding: 1rem;
}

.review-page {
  display: grid;
  gap: 1.25rem;
}

.review-hero {
  align-items: end;
  background:
    linear-gradient(135deg, rgba(6, 38, 25, 0.98), rgba(10, 61, 46, 0.92)),
    repeating-linear-gradient(135deg, rgba(201, 169, 97, 0.12) 0 1px, transparent 1px 18px);
  border: 1px solid rgba(201, 169, 97, 0.24);
  border-radius: 1.35rem;
  box-shadow: 0 24px 70px rgba(6, 38, 25, 0.22);
  color: var(--cream);
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(1.2rem, 3vw, 2rem);
  position: relative;
}

.review-hero::after {
  border: 1px solid rgba(201, 169, 97, 0.18);
  border-radius: 1rem;
  content: "";
  inset: 0.75rem;
  pointer-events: none;
  position: absolute;
}

.review-hero > * {
  position: relative;
  z-index: 1;
}

.review-hero h1 {
  color: var(--cream);
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  margin: 0.6rem 0 0.75rem;
}

.review-hero p {
  color: rgba(245, 241, 232, 0.72);
  max-width: 46rem;
}

.review-summary {
  background: rgba(250, 246, 236, 0.1);
  border: 1px solid rgba(201, 169, 97, 0.26);
  border-radius: 1rem;
  min-width: 13rem;
  padding: 0.9rem 1rem;
}

.review-summary span,
.review-side-label {
  color: rgba(245, 241, 232, 0.66);
  display: block;
  font-size: 0.76rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}

.review-summary strong {
  color: var(--cream);
  display: block;
  font-size: 1.2rem;
}

.review-layout {
  align-items: start;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(220px, 0.32fr) minmax(0, 1fr);
}

.review-side {
  display: grid;
  gap: 0.8rem;
  position: sticky;
  top: 5.5rem;
}

.review-side-card {
  background: rgba(250, 246, 236, 0.82);
  border: 1px solid rgba(6, 38, 25, 0.11);
  border-radius: 1rem;
  box-shadow: 0 12px 34px rgba(6, 38, 25, 0.09);
  padding: 0.95rem 1rem;
}

.review-side-card .review-side-label {
  color: var(--muted);
}

.review-side-card strong {
  color: var(--emerald-deep);
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-form {
  display: grid;
  gap: 1rem;
}

.review-list {
  display: grid;
  gap: 1rem;
}

.review-ayah {
  background: rgba(250, 246, 236, 0.86);
  border: 1px solid rgba(6, 38, 25, 0.11);
  border-radius: 1.15rem;
  box-shadow: 0 14px 42px rgba(6, 38, 25, 0.1);
  padding: clamp(1rem, 2.5vw, 1.35rem);
}

.review-ayah header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.7rem;
}

.review-ayah header span {
  background: rgba(10, 61, 46, 0.1);
  border: 1px solid rgba(10, 61, 46, 0.14);
  border-radius: 999px;
  color: var(--emerald);
  font-size: 0.78rem;
  font-weight: 900;
  padding: 0.35rem 0.7rem;
}

.review-arabic {
  color: #445e57;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 3vw, 1.75rem);
  line-height: 1.8;
  margin: 0 0 1rem;
  text-align: right;
}

.review-translation {
  font-family: "Montserrat", "Poppins", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.55;
  min-height: 6.5rem;
}

.timing-editor {
  background: rgba(6, 38, 25, 0.045);
  border: 1px solid rgba(10, 61, 46, 0.12);
  border-radius: 0.7rem;
  margin: 0 0 1rem;
  padding: 0.75rem;
}

.timing-editor-head,
.timing-grid {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
}

.timing-editor-head {
  color: var(--emerald);
  font-size: 0.8rem;
  font-weight: 900;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
}

.timing-editor-head output {
  color: #4b625b;
  font-family: "Manrope", "Poppins", sans-serif;
  font-size: 0.78rem;
  text-transform: none;
}

.timing-grid label {
  color: #506861;
  flex: 1;
  font-size: 0.76rem;
  font-weight: 800;
}

.simple-timing {
  margin-top: 0.75rem;
}

.simple-timing summary {
  color: var(--emerald);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 900;
}

.simple-timing-help {
  color: #61736d;
  font-size: 0.82rem;
  margin: 0.6rem 0 0.55rem;
}

.simple-timing-controls {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.simple-timing-btn,
.simple-timing-reset {
  align-items: center;
  background: rgba(10, 61, 46, 0.07);
  border: 1px solid rgba(10, 61, 46, 0.13);
  border-radius: 0.55rem;
  color: var(--emerald);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 850;
  gap: 0.35rem;
  min-height: 2rem;
  padding: 0.35rem 0.6rem;
}

.simple-timing-btn:hover,
.simple-timing-reset:hover {
  background: rgba(201, 169, 97, 0.18);
  border-color: rgba(201, 169, 97, 0.4);
}

.simple-timing-state {
  color: #64766f;
  font-size: 0.78rem;
  font-weight: 750;
  margin-left: 0.25rem;
}

.waveform-card {
  background: rgba(6, 38, 25, 0.96);
  border: 1px solid rgba(201, 169, 97, 0.26);
  border-radius: 1.15rem;
  box-shadow: 0 18px 48px rgba(6, 38, 25, 0.18);
  padding: 1rem 1.1rem 1.15rem;
}

.waveform-toolbar {
  align-items: center;
  color: rgba(245, 241, 232, 0.82);
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 0.75rem;
}

.waveform-time {
  font-family: "Manrope", "Poppins", sans-serif;
  font-size: 0.84rem;
  font-weight: 800;
}

.waveform-hint {
  color: rgba(245, 241, 232, 0.55);
  font-size: 0.78rem;
  margin-left: auto;
}

.waveform-canvas {
  background: rgba(5, 8, 6, 0.55);
  border-radius: 0.75rem;
  min-height: 96px;
  padding: 0.35rem 0.4rem;
}

.waveform-missing {
  color: #fbbf24;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.75rem 0.25rem 0.25rem;
}

.waveform-timeline {
  margin-top: 0.2rem;
  min-height: 18px;
}

/* Clearer draggable region boundaries on the waveform. */
#waveform::part(region) {
  border-left: 2px solid rgba(251, 191, 36, 0.85);
  border-right: 2px solid rgba(251, 191, 36, 0.85);
}

#waveform::part(region-handle) {
  background: rgba(251, 191, 36, 0.9);
  width: 7px;
}

#waveform::part(region-handle-left) {
  border-radius: 4px 0 0 4px;
}

#waveform::part(region-handle-right) {
  border-radius: 0 4px 4px 0;
}

#waveform::part(region) {
  color: #f5f1e8;
  font-size: 0.72rem;
  font-weight: 800;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.review-style-card {
  background: rgba(250, 246, 236, 0.9);
  border: 1px solid rgba(6, 38, 25, 0.11);
  border-radius: 1.1rem;
  box-shadow: 0 12px 36px rgba(6, 38, 25, 0.09);
  padding: 0.85rem 1.1rem;
}

.review-style-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--emerald);
  display: flex;
  font-weight: 850;
  justify-content: space-between;
  padding: 0.2rem 0;
  width: 100%;
}

.review-style-toggle[aria-expanded="true"] .fa-chevron-down {
  transform: rotate(180deg);
}

.review-style-toggle .fa-chevron-down {
  transition: transform 0.2s ease;
}

.chunk-list {
  display: grid;
  gap: 0.85rem;
}

.chunk-card {
  background: rgba(250, 246, 236, 0.9);
  border: 1px solid rgba(6, 38, 25, 0.11);
  border-radius: 1.1rem;
  box-shadow: 0 12px 36px rgba(6, 38, 25, 0.09);
  padding: clamp(0.85rem, 2vw, 1.15rem);
}

.chunk-card-head {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.chunk-card-title {
  align-items: center;
  color: var(--emerald);
  display: flex;
  font-weight: 900;
  gap: 0.5rem;
}

.chunk-color-dot {
  border-radius: 999px;
  display: inline-block;
  height: 0.9rem;
  width: 0.9rem;
}

.chunk-timing {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chunk-timing label {
  color: #506861;
  font-size: 0.72rem;
  font-weight: 800;
}

.chunk-timing input.chunk-ayah { width: 4.5rem; }
.chunk-timing input.chunk-start,
.chunk-timing input.chunk-duration { width: 6rem; }

.chunk-label {
  color: var(--emerald);
  display: block;
  font-size: 0.74rem;
  font-weight: 850;
  margin: 0.55rem 0 0.3rem;
  text-transform: uppercase;
}

.chunk-arabic {
  font-family: "Scheherazade", "Amiri", Georgia, serif;
  font-size: 1.95rem;
  line-height: 2.05;
  font-weight: 400;
}

.chunk-albanian {
  font-family: "Montserrat", "Poppins", sans-serif;
  font-weight: 600;
}

.chunk-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.chunk-btn {
  align-items: center;
  background: rgba(10, 61, 46, 0.07);
  border: 1px solid rgba(10, 61, 46, 0.13);
  border-radius: 0.55rem;
  color: var(--emerald);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 850;
  gap: 0.35rem;
  min-height: 2rem;
  padding: 0.35rem 0.65rem;
}

.chunk-btn:hover:not(:disabled) {
  background: rgba(201, 169, 97, 0.18);
  border-color: rgba(201, 169, 97, 0.4);
}

.chunk-btn:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.chunk-add-row {
  display: flex;
  justify-content: center;
}

.review-actions {
  align-items: center;
  background: rgba(250, 246, 236, 0.78);
  border: 1px solid rgba(6, 38, 25, 0.1);
  border-radius: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  padding: 1rem;
  position: sticky;
  bottom: 1rem;
  z-index: 3;
}

@media (max-width: 767.98px) {
  .status-detail-grid {
    grid-template-columns: 1fr;
  }

  .status-player-frame {
    max-height: 560px;
    width: min(100%, 320px);
  }

  .review-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .review-layout {
    grid-template-columns: 1fr;
  }

  .review-side {
    position: static;
  }

  .review-actions .btn {
    width: 100%;
  }
}

@media (max-width: 575.98px) {
  .app-container {
    padding-top: 1rem;
  }

  .hero-section {
    min-height: auto;
  }

  .hero-section::after {
    inset: 0.6rem;
    border-radius: 1.3rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .table-modern tbody td {
    padding: 0.8rem;
  }
}

@media (max-width: 767.98px) {
  .app-userbar {
    align-self: flex-start;
    margin-top: 0.4rem;
  }

  .auth-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .auth-brand-panel {
    min-height: 270px;
  }

  .auth-logo {
    max-width: 230px;
  }
}

/* Watermark position picker */
.wm-position-panel {
  background: rgba(6, 38, 25, 0.04);
  border: 1px solid rgba(6, 38, 25, 0.1);
  border-radius: 0.7rem;
  padding: 0.55rem 0.7rem;
}

.wm-pos-grid {
  display: grid;
  grid-template-columns: repeat(9, 1.75rem);
  grid-template-rows: 1.75rem;
  gap: 0.25rem;
  overflow-x: auto;
}

.wm-pos-cell {
  align-items: center;
  background: var(--paper);
  border: 1px solid rgba(6, 38, 25, 0.16);
  border-radius: 0.45rem;
  color: var(--emerald);
  cursor: pointer;
  display: flex;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.wm-pos-cell:hover {
  border-color: rgba(201, 169, 97, 0.75);
  transform: translateY(-1px);
}

.wm-pos-cell.is-active {
  background: var(--emerald-deep);
  border-color: var(--gold);
}

.wm-pos-dot {
  background: rgba(10, 61, 46, 0.45);
  border-radius: 999px;
  display: block;
  height: 0.42rem;
  width: 0.42rem;
}

.wm-pos-cell.is-active .wm-pos-dot {
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 169, 97, 0.18);
}

@media (max-width: 991.98px) {
  .create-studio-grid {
    grid-template-columns: 1fr;
  }

  .preview-sticky {
    position: sticky;
    top: 0.5rem;
  }

  .studio-preview {
    order: -1;
  }

  .phone-preview {
    margin-inline: auto;
    max-width: 360px;
  }
}

/* Audio source toggle */
.audio-source-toggle .btn-group .btn {
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

#everyAyahPanel,
#uploadAudioPanel {
  animation: fadeIn 0.15s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Verse text preview */
.verse-preview-section {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  background: rgba(6, 38, 25, 0.03);
  animation: fadeIn 0.15s ease;
}

.verse-preview-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.verse-preview-item {
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  background: rgba(6, 38, 25, 0.04);
}

.verse-preview-arabic {
  font-family: 'Scheherazade', 'Amiri', 'Traditional Arabic', serif;
  font-size: 1.5rem;
  direction: rtl;
  text-align: right;
  margin-bottom: 0.25rem;
  color: var(--ink);
  line-height: 2;
}

.verse-preview-albanian {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.2rem;
  line-height: 1.5;
}

.verse-preview-ref {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── Pexels Browse ────────────────────────────────────────────────────────── */

.pexels-layout {
  min-height: 100vh;
}

.pexels-hero {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1208 50%, #0a0a0a 100%);
  padding: 2.5rem 1rem 2rem;
  text-align: center;
}

.pexels-hero-inner {
  max-width: 680px;
  margin: 0 auto;
}

.pexels-hero-title {
  color: #fff;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.pexels-hero-sub {
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  margin-bottom: 1.4rem;
}

.pexels-search-bar {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.35);
  height: 48px;
}

.pexels-type-btns {
  display: flex;
  flex-shrink: 0;
  border-right: 1px solid rgba(0,0,0,0.1);
  height: 100%;
}

.pexels-type-btn {
  background: transparent;
  border: none;
  padding: 0 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  white-space: nowrap;
  height: 100%;
  transition: color 0.15s, background 0.15s;
}

.pexels-type-btn:hover { color: #C9A961; }
.pexels-type-btn.active { color: #C9A961; background: rgba(201,169,97,0.08); }

.pexels-search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0 1rem;
  font-size: 0.9rem;
  background: transparent;
  min-width: 0;
}

.pexels-search-btn {
  background: #C9A961;
  border: none;
  width: 48px;
  height: 100%;
  flex-shrink: 0;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s;
}

.pexels-search-btn:hover { background: #b8954d; }

/* chips */
.pexels-chips-row {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.85rem 1rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.pexels-chips-row::-webkit-scrollbar { display: none; }

.pexels-chip {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 0.28rem 0.75rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(6,38,25,0.18);
  color: var(--ink);
  text-decoration: none;
  background: #fff;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.pexels-chip:hover { background: var(--cream); border-color: var(--gold); color: var(--emerald-deep); }
.pexels-chip.active { background: var(--gold); border-color: var(--gold); color: #fff; }

/* results bar */
.pexels-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--line);
}

/* grid */
.pexels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.75rem;
  padding: 1rem;
}
@media (min-width: 576px) {
  .pexels-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
}
@media (min-width: 992px) {
  .pexels-grid { grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); }
}
@media (min-width: 1400px) {
  .pexels-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}

.pexels-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  transition: transform 0.15s, box-shadow 0.15s;
}
.pexels-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.pexels-media {
  position: relative;
  aspect-ratio: 9/16;
  overflow: hidden;
  cursor: pointer;
  background: #111;
}

.pexels-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pexels-video-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pexels-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.88);
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  transition: color 0.15s;
}
.pexels-media:hover .pexels-play-btn { color: var(--gold); }

.pexels-duration {
  position: absolute;
  bottom: 6px;
  right: 7px;
  background: rgba(0,0,0,0.62);
  color: #fff;
  font-size: 0.7rem;
  padding: 1px 5px;
  border-radius: 3px;
}

.pexels-photo-badge {
  position: absolute;
  top: 6px;
  right: 7px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 3px;
}

.pexels-card-foot {
  padding: 0.5rem 0.6rem;
}

.pexels-author {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink);
}

.pexels-duration-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.55rem 1rem 0.55rem;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.pexels-duration-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-right: 0.15rem;
  white-space: nowrap;
}

.pexels-dur-btn {
  background: #fff;
  border: 1px solid rgba(6,38,25,0.18);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.22rem 0.7rem;
  transition: background 150ms, border-color 150ms, color 150ms;
  text-decoration: none;
  white-space: nowrap;
}

.pexels-dur-btn:hover {
  background: var(--cream);
  border-color: var(--gold);
  color: var(--emerald-deep);
}

.pexels-dur-btn.active {
  background: linear-gradient(145deg, #d8bf7b, var(--gold));
  border-color: var(--gold);
  color: var(--emerald-deep);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(201,169,97,0.25);
}

.pexels-pagination {
  display: flex;
  justify-content: space-between;
  padding: 1rem;
}

.btn-xs {
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
  line-height: 1.4;
}

/* ══════════════════════════════════════════════════════════════════
   Step pill
══════════════════════════════════════════════════════════════════ */
.step-pill {
  align-items: center;
  background: linear-gradient(145deg, var(--emerald-deep), var(--emerald));
  border-radius: 999px;
  color: var(--cream);
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 800;
  gap: 0.2rem;
  letter-spacing: 0.02em;
  padding: 0.4rem 0.9rem;
}

.step-pill-num {
  background: var(--gold);
  border-radius: 999px;
  color: var(--emerald-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 900;
  height: 1.35rem;
  width: 1.35rem;
}

.step-pill-sep {
  color: rgba(245, 241, 232, 0.5);
  font-weight: 700;
}

.step-pill-label {
  margin-left: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.step-pill-light {
  background: rgba(250, 246, 236, 0.14);
  border: 1px solid rgba(201, 169, 97, 0.28);
}

/* ══════════════════════════════════════════════════════════════════
   Create v2 layout
══════════════════════════════════════════════════════════════════ */
.create-v2-grid {
  align-items: start;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
}

.create-v2-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  padding: 1.5rem 1.75rem;
}

.create-v2-aside {
  min-width: 0;
}

/* Audio source pill group */
.audio-src-group {
  background: rgba(6, 38, 25, 0.06);
  border: 1px solid rgba(6, 38, 25, 0.12);
  border-radius: 999px;
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.25rem;
  width: 100%;
}

.audio-src-btn {
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--emerald);
  cursor: pointer;
  flex: 1;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 0.55rem 0.85rem;
  text-align: center;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.audio-src-btn:hover,
.audio-src-btn:focus {
  background: rgba(201, 169, 97, 0.12);
  outline: 0;
}

.audio-src-btn:focus-visible,
.pexels-type-btn:focus-visible,
.pexels-search-btn:focus-visible,
.pexels-dur-btn:focus-visible,
.rp-style-toggle:focus-visible,
.rp-item:focus-visible,
.wm-pos-cell:focus-visible {
  box-shadow: 0 0 0 0.22rem rgba(201, 169, 97, 0.22);
  outline: 0;
}

.audio-src-btn.active {
  background: var(--emerald-deep);
  box-shadow: 0 6px 18px rgba(6, 38, 25, 0.22);
  color: var(--cream);
}

/* Create audio sub-panels */
.create-audio-panel {
  animation: fadeIn 0.18s ease;
  background: rgba(6, 38, 25, 0.035);
  border: 1px solid rgba(6, 38, 25, 0.09);
  border-radius: 0.9rem;
  margin-top: 0.6rem;
  padding: 0.9rem 1rem;
}

/* ══════════════════════════════════════════════════════════════════
   Surah searchable dropdown
══════════════════════════════════════════════════════════════════ */
.surah-box {
  position: relative;
}

.surah-face {
  align-items: center;
  background: rgba(250, 246, 236, 0.82);
  border: 1px solid rgba(6, 38, 25, 0.18);
  border-radius: 0.95rem;
  cursor: pointer;
  display: flex;
  gap: 0.65rem;
  justify-content: space-between;
  min-height: 3rem;
  padding: 0.65rem 0.95rem;
  transition: border-color 160ms ease, box-shadow 160ms ease;
  user-select: none;
}

.surah-face:hover,
.surah-face:focus {
  border-color: rgba(201, 169, 97, 0.75);
  box-shadow: 0 0 0 0.22rem rgba(201, 169, 97, 0.22);
  outline: 0;
}

.surah-face[aria-expanded="true"] {
  border-color: var(--gold);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  box-shadow: 0 0 0 0.22rem rgba(201, 169, 97, 0.22);
}

.surah-face-inner {
  align-items: center;
  display: flex;
  gap: 0.55rem;
  min-width: 0;
  overflow: hidden;
}

.surah-face-placeholder {
  color: rgba(15, 15, 15, 0.36);
  font-size: 0.95rem;
}

.surah-chevron {
  color: rgba(6, 38, 25, 0.45);
  flex-shrink: 0;
  font-size: 0.78rem;
  transition: transform 200ms ease;
}

.surah-face[aria-expanded="true"] .surah-chevron {
  transform: rotate(180deg);
}

.surah-dropdown {
  background: var(--surface-solid);
  border: 1px solid var(--gold);
  border-top: 0;
  border-bottom-left-radius: 0.95rem;
  border-bottom-right-radius: 0.95rem;
  box-shadow: 0 18px 50px rgba(6, 38, 25, 0.16);
  left: 0;
  overflow: hidden;
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 120;
}

.surah-search-wrap {
  align-items: center;
  border-bottom: 1px solid rgba(6, 38, 25, 0.09);
  display: flex;
  gap: 0.6rem;
  padding: 0.55rem 0.85rem;
}

.surah-search-wrap > i {
  color: rgba(6, 38, 25, 0.38);
  flex-shrink: 0;
}

.surah-search {
  background: transparent;
  border: 0;
  color: var(--ink);
  flex: 1;
  font-size: 0.9rem;
  outline: 0;
  padding: 0;
}

.surah-search::placeholder {
  color: rgba(15, 15, 15, 0.32);
}

.surah-options {
  list-style: none;
  margin: 0;
  max-height: 260px;
  overflow-y: auto;
  padding: 0.35rem 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(6, 38, 25, 0.18) transparent;
}

.surah-option {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 0.6rem;
  padding: 0.52rem 0.85rem;
  transition: background 120ms ease;
}

.surah-option:hover,
.surah-option.is-focused {
  background: rgba(201, 169, 97, 0.12);
}

.so-num {
  background: rgba(6, 38, 25, 0.07);
  border-radius: 0.35rem;
  color: var(--emerald-deep);
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 900;
  min-width: 1.8rem;
  padding: 0.1rem 0.35rem;
  text-align: center;
}

.so-name {
  color: var(--ink);
  flex: 1;
  font-size: 0.9rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.so-ar {
  color: rgba(15, 15, 15, 0.48);
  direction: rtl;
  flex-shrink: 0;
  font-family: "Scheherazade", "Amiri", serif;
  font-size: 1rem;
}

/* selected face display */
.surah-face-inner .so-num {
  font-size: 0.76rem;
  min-width: 1.7rem;
}

.surah-face-inner .so-name {
  font-size: 0.95rem;
  font-weight: 800;
}

.surah-face-inner .so-ar {
  font-size: 1rem;
  margin-left: auto;
}

/* ══════════════════════════════════════════════════════════════════
   Verse showcase (Create right panel)
══════════════════════════════════════════════════════════════════ */
.verse-showcase {
  background:
    linear-gradient(160deg, rgba(6, 38, 25, 0.97), rgba(9, 18, 14, 0.98)),
    repeating-linear-gradient(135deg, rgba(201, 169, 97, 0.08) 0 1px, transparent 1px 18px);
  border: 1px solid rgba(201, 169, 97, 0.22);
  border-radius: 1.25rem;
  box-shadow: 0 18px 50px rgba(6, 38, 25, 0.18);
  color: var(--cream);
  min-height: 360px;
  overflow: hidden;
  padding: 1.25rem;
  position: sticky;
  top: 1rem;
}

.verse-showcase-hdr {
  align-items: center;
  color: rgba(245, 241, 232, 0.62);
  display: flex;
  font-size: 0.76rem;
  font-weight: 800;
  gap: 0.5rem;
  justify-content: space-between;
  letter-spacing: 0.1em;
  margin-bottom: 1.1rem;
  text-transform: uppercase;
}

.verse-showcase-empty {
  align-items: center;
  color: rgba(245, 241, 232, 0.38);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  justify-content: center;
  min-height: 260px;
  text-align: center;
}

.verse-showcase-empty i {
  font-size: 2.5rem;
  color: rgba(201, 169, 97, 0.35);
}

.verse-showcase-empty p {
  font-size: 0.88rem;
  line-height: 1.65;
  margin: 0;
}

.verse-showcase-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.vs-item {
  border-bottom: 1px solid rgba(201, 169, 97, 0.15);
  padding-bottom: 1rem;
}

.vs-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.vs-arabic {
  color: rgba(245, 241, 232, 0.96);
  direction: rtl;
  font-family: "Scheherazade", "Amiri", serif;
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 400;
  line-height: 2;
  margin-bottom: 0.5rem;
  text-align: right;
}

.vs-divider {
  background: linear-gradient(90deg, transparent, rgba(201, 169, 97, 0.55), transparent);
  height: 1px;
  margin: 0.5rem auto 0.65rem;
  width: 45%;
}

.vs-albanian {
  color: rgba(245, 241, 232, 0.74);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.55;
  margin-bottom: 0.4rem;
}

.vs-ref {
  color: rgba(201, 169, 97, 0.72);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

@media (max-width: 991.98px) {
  .create-v2-grid {
    grid-template-columns: 1fr;
  }
  .create-v2-aside {
    order: -1;
  }
  .verse-showcase {
    min-height: 200px;
    position: static;
  }
}

/* ══════════════════════════════════════════════════════════════════
   Review personalization card
══════════════════════════════════════════════════════════════════ */
.review-page {
  display: grid;
  gap: 1.25rem;
}

.review-form {
  display: grid;
  gap: 1rem;
}

.rp-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.rp-card-hdr {
  align-items: center;
  background: linear-gradient(135deg, var(--emerald-deep), var(--emerald));
  color: var(--cream);
  display: flex;
  font-size: 0.92rem;
  font-weight: 800;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
}

.rp-section {
  border-top: 1px solid var(--line);
  padding: 0.9rem 1.25rem 1rem;
}

.rp-section:first-of-type {
  border-top: 0;
}

.rp-section-label {
  align-items: center;
  color: var(--emerald);
  display: flex;
  font-size: 0.78rem;
  font-weight: 900;
  gap: 0.4rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.7rem;
  text-transform: uppercase;
}

.rp-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.6rem;
  overflow-x: auto;
  padding-bottom: 0.45rem;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(6, 38, 25, 0.18) transparent;
}

.rp-item {
  background: rgba(250, 246, 236, 0.72);
  border: 2px solid rgba(6, 38, 25, 0.12);
  border-radius: 0.75rem;
  color: var(--emerald-deep);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: 0.35rem;
  padding: 0.3rem;
  position: relative;
  scroll-snap-align: start;
  text-align: center;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
  width: 80px;
}

.rp-item:hover {
  border-color: rgba(201, 169, 97, 0.6);
  box-shadow: 0 6px 18px rgba(6, 38, 25, 0.12);
  outline: 0;
  transform: translateY(-2px);
}

.rp-item.is-selected {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.22);
}

.rp-media {
  aspect-ratio: 9 / 16;
  background: var(--emerald-deep);
  border-radius: 0.45rem;
  display: flex;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.rp-media video,
.rp-media img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.rp-media::after {
  background: linear-gradient(180deg, transparent, rgba(6, 38, 25, 0.42));
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.rp-check {
  align-items: center;
  background: var(--gold);
  border-radius: 999px;
  color: var(--emerald-deep);
  display: none;
  font-size: 0.62rem;
  font-weight: 900;
  height: 1.25rem;
  justify-content: center;
  position: absolute;
  right: 0.3rem;
  top: 0.3rem;
  width: 1.25rem;
  z-index: 4;
}

.rp-item.is-selected .rp-check {
  display: inline-flex;
}

.rp-label {
  display: block;
  font-size: 0.66rem;
  font-weight: 800;
  overflow: hidden;
  padding: 0 0.15rem 0.1rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Watermark item (square) */
.rp-wm-item {
  width: 68px;
}

.rp-wm-item .rp-media {
  aspect-ratio: 1 / 1;
}

.rp-wm-none {
  align-items: center;
  color: var(--cream);
  font-size: 1.1rem;
  justify-content: center;
}

.rp-wm-none i {
  color: rgba(201, 169, 97, 0.65);
}

.rp-wm-swatch {
  background:
    linear-gradient(135deg, rgba(6, 38, 25, 0.94), rgba(10, 61, 46, 0.88)),
    repeating-linear-gradient(45deg, rgba(201, 169, 97, 0.1) 0 1px, transparent 1px 12px);
  padding: 0.3rem;
}

.rp-wm-swatch img {
  object-fit: contain;
}

/* Empty state */
.rp-empty-state {
  align-items: center;
  background: rgba(6, 38, 25, 0.04);
  border: 1px dashed rgba(6, 38, 25, 0.16);
  border-radius: 0.75rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.85rem;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
}

.rp-empty-state i {
  color: rgba(6, 38, 25, 0.32);
  font-size: 1.1rem;
}

/* Style section toggle */
.rp-style-section {
  padding-bottom: 0.5rem;
}

.rp-style-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--emerald);
  display: flex;
  font-size: 0.88rem;
  font-weight: 850;
  justify-content: space-between;
  padding: 0.2rem 0;
  width: 100%;
}

.rp-style-toggle[aria-expanded="true"] .fa-chevron-down {
  transform: rotate(180deg);
}

.rp-style-toggle .fa-chevron-down {
  transition: transform 0.2s ease;
}

@media (max-width: 767.98px) {
  .rp-card-hdr {
    flex-wrap: wrap;
  }
}

/* ── Reciter timing badge ───────────────────────────────────────── */
.reciter-timed-badge {
  align-items: center;
  background: linear-gradient(145deg, #d8bf7b, var(--gold));
  border-radius: 999px;
  color: var(--emerald-deep);
  display: inline-flex;
  font-size: 0.6rem;
  font-weight: 900;
  height: 1.1rem;
  justify-content: center;
  width: 1.1rem;
  flex-shrink: 0;
}

.timing-badge-legend {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
}

/* ── Preset cards ───────────────────────────────────────────────── */
.preset-cards-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0.15rem 0 0.35rem;
}

.preset-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.38rem;
  background: none;
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 0.3rem;
  cursor: pointer;
  transition: border-color 140ms, transform 100ms, box-shadow 140ms;
}
.preset-card:hover {
  border-color: rgba(201,169,97,0.42);
  transform: translateY(-2px);
}
.preset-card.is-active {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,169,97,0.14);
}

.preset-card-preview {
  width: 64px;
  height: 103px;
  border-radius: 8px;
  background: linear-gradient(160deg, #0c2218 0%, #071710 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  position: relative;
  overflow: hidden;
}
.preset-card-preview--custom {
  background: rgba(6,38,25,0.06);
  border: 2px dashed rgba(6,38,25,0.2);
}

.pc-backdrop-band {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.pc-arabic, .pc-albanian, .pc-ref, .pc-divider {
  position: relative;
  z-index: 1;
  border-radius: 3px;
}
.pc-arabic   { width: 50px; height: 13px; }
.pc-albanian { width: 42px; height: 7px;  }
.pc-ref      { width: 34px; height: 5px;  border-radius: 5px; }
.pc-divider  { width: 20px; height: 1.5px; background: #C9A961; opacity: 0.65; border-radius: 1px; }

.preset-card-name {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.preset-card.is-active .preset-card-name { color: var(--gold); }

.preset-custom-panel {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

/* ── Preset card wrap + overlay actions ─────────────────────────── */
.preset-card-wrap {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.preset-card-actions {
  position: absolute;
  top: 3px;
  right: 0px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  transition: opacity 130ms;
  z-index: 3;
  pointer-events: none;
}
.preset-card-wrap:hover .preset-card-actions {
  opacity: 1;
  pointer-events: auto;
}

.pca-btn {
  width: 18px;
  height: 18px;
  border: none;
  border-radius: 4px;
  background: rgba(0,0,0,0.62);
  color: #fff;
  font-size: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: background 100ms;
}
.pca-btn:hover { background: rgba(0,0,0,0.88); }
.pca-del:hover { background: #dc3545; }

.preset-card--add {
  border-style: dashed !important;
  border-color: rgba(6,38,25,0.2) !important;
}
.preset-card--add:hover {
  border-color: var(--gold) !important;
}

.rp-section--inline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ── Trim auto notice ───────────────────────────────────────────── */
.trim-auto-notice {
  background: rgba(251,191,36,0.12);
  border-radius: 0.45rem;
  color: #fbbf24;
  font-size: 0.76rem;
  font-weight: 700;
  margin-bottom: 0.55rem;
  padding: 0.3rem 0.6rem;
}

/* ── Chunk number badge ─────────────────────────────────────────── */
.chunk-color-dot {
  align-items: center;
  display: inline-flex;
  font-size: 0.65rem;
  font-weight: 900;
  justify-content: center;
  color: rgba(6,38,25,0.9);
}

/* ── Reciter name edit (Review hero) ────────────────────────────── */
.reciter-edit-wrap {
  border-top: 1px solid rgba(201,169,97,0.2);
  padding-top: 0.55rem;
}

.reciter-name-input {
  background: rgba(250,246,236,0.1);
  border: 1px solid rgba(201,169,97,0.3);
  border-radius: 0.55rem;
  color: var(--cream);
  font-size: 0.88rem;
  font-weight: 700;
  outline: 0;
  padding: 0.35rem 0.65rem;
  width: 100%;
  transition: border-color 150ms ease;
}

.reciter-name-input::placeholder { color: rgba(245,241,232,0.35); }
.reciter-name-input:focus { border-color: rgba(201,169,97,0.7); }

/* ── Trim bar ───────────────────────────────────────────────────── */
.trim-toggle-btn {
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.38);
  border-radius: 999px;
  color: #fca5a5;
  font-size: 0.78rem;
  font-weight: 800;
  margin-left: auto;
  padding: 0.28rem 0.75rem;
  transition: background 150ms ease, border-color 150ms ease;
}

.trim-toggle-btn:hover {
  background: rgba(239, 68, 68, 0.26);
  border-color: rgba(239, 68, 68, 0.65);
  color: #fca5a5;
}

.trim-bar {
  animation: fadeIn 0.15s ease;
  background: rgba(239, 68, 68, 0.07);
  border-top: 1px solid rgba(239, 68, 68, 0.2);
  padding: 0.6rem 0.75rem 0.55rem;
}

.trim-bar-inner {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.trim-field {
  align-items: center;
  display: flex;
  gap: 0.45rem;
}

.trim-lbl {
  color: rgba(245, 241, 232, 0.72);
  font-size: 0.76rem;
  font-weight: 800;
  gap: 0.3rem;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.trim-lbl i {
  color: #f87171;
  font-size: 0.7rem;
}

.trim-input-wrap {
  align-items: center;
  background: rgba(250, 246, 236, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.32);
  border-radius: 0.5rem;
  display: flex;
  padding: 0.18rem 0.45rem;
}

.trim-input {
  background: transparent;
  border: 0;
  color: var(--cream);
  font-size: 0.85rem;
  font-weight: 800;
  outline: 0;
  text-align: right;
  width: 4.5rem;
}

.trim-input::-webkit-inner-spin-button,
.trim-input::-webkit-outer-spin-button {
  opacity: 0.4;
}

.trim-unit {
  color: rgba(245, 241, 232, 0.5);
  font-size: 0.75rem;
  font-weight: 700;
  margin-left: 0.2rem;
}

.trim-status {
  color: rgba(245, 241, 232, 0.6);
  font-size: 0.76rem;
  font-weight: 700;
}

