:root {
  --bg: #090d12;
  --card: rgba(21, 28, 38, 0.7);
  --line: rgba(42, 51, 63, 0.5);
  --text: #f0f4f8;
  --muted: #8e9cae;
  --accent: #2ea36b;
  --accent-hi: #37c07f;
  --baru: #e0a136;
  --proses: #3d8bfd;
  --selesai: #2ea36b;
  --focus-glow: rgba(46, 163, 107, 0.15);
}
* { box-sizing: border-box; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg);
  background-image: 
    radial-gradient(at 0% 0%, rgba(46, 163, 107, 0.08) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(61, 139, 253, 0.08) 0px, transparent 50%),
    linear-gradient(rgba(42, 51, 63, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 51, 63, 0.35) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 32px 32px, 32px 32px;
  background-position: 0 0, 0 0, 0 0, 0 0;
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: rgba(11, 16, 23, 0.75);
  backdrop-filter: blur(12px) saturate(180%);
  border-bottom: 1px solid rgba(42, 51, 63, 0.6);
  position: sticky;
  top: 0;
  z-index: 100;
}
.wrap { max-width: 580px; margin: 32px auto; padding: 0 16px; }
.wrap.wide { max-width: 1040px; }
.card {
  background: var(--card);
  backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.25), inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
  animation: fadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
h2 { margin-top: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.3px; }
.muted { color: var(--muted); font-size: 14px; }
label { display: block; margin: 16px 0 0; font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; }
input, select, textarea {
  width: 100%;
  margin-top: 8px;
  padding: 12px 14px;
  background: rgba(9, 13, 18, 0.6);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
input:focus, select:focus, textarea:focus { 
  outline: none; 
  border-color: var(--accent); 
  background: rgba(9, 13, 18, 0.85);
  box-shadow: 0 0 0 3px var(--focus-glow); 
}
.row { display: flex; gap: 16px; }
.row label { flex: 1; }
.req { color: var(--baru); }
.preview {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 10px;
  margin-top: 12px;
  border: 1px solid var(--line);
}
.btn {
  width: 100%;
  margin-top: 24px;
  padding: 14px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hi) 100%);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(46, 163, 107, 0.2);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.btn:hover:not(:disabled) { 
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(46, 163, 107, 0.35);
}
.btn:active:not(:disabled) {
  transform: translateY(1px);
}
.btn:disabled { 
  opacity: 0.6; 
  cursor: not-allowed; 
  box-shadow: none;
}
.error { color: #ff6b6b; font-size: 14px; margin-top: 14px; font-weight: 500; }
.success { text-align: center; padding: 40px 24px; }
.ref {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--accent-hi);
  margin: 8px 0 16px;
  text-shadow: 0 0 10px rgba(55, 192, 127, 0.2);
}

/* Admin */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
.stat .big { display: block; font-size: 26px; font-weight: 700; color: var(--text); }
.stat.baru .big { color: var(--baru); }
.stat.proses .big { color: var(--proses); }
.stat.selesai .big { color: var(--selesai); }
.mini { width: 100%; border-collapse: collapse; font-size: 14px; }
.mini th, .mini td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.mini th { color: var(--muted); font-weight: 500; }
.mini td:not(:first-child), .mini th:not(:first-child) { text-align: center; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chip {
  padding: 7px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
}
.chip.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.report { padding: 0; display: flex; flex-direction: column; margin-bottom: 0; position: relative; }
.thumb { width: 100%; height: 170px; object-fit: cover; display: block; border-top-left-radius: 15px; border-top-right-radius: 15px; }
.thumb.noimg { display: flex; align-items: center; justify-content: center; color: var(--muted); background: var(--bg); font-size: 13px; border-top-left-radius: 15px; border-top-right-radius: 15px; }
.report-body { padding: 14px; }
.report-head { display: flex; justify-content: space-between; align-items: center; }
.ref-sm { font-size: 13px; color: var(--muted); font-weight: 600; }
.badge { font-size: 12px; padding: 3px 10px; border-radius: 12px; font-weight: 600; }
.badge.baru { background: rgba(224,161,54,.18); color: var(--baru); }
.badge.dalam_proses { background: rgba(61,139,253,.18); color: var(--proses); }
.badge.selesai { background: rgba(46,163,107,.18); color: var(--selesai); }
.loc { margin: 10px 0 4px; font-weight: 600; font-size: 15px; }
.cat { margin: 0; font-size: 13px; color: var(--proses); }
.desc { margin: 8px 0; font-size: 14px; }
.meta { margin: 8px 0 12px; font-size: 12px; color: var(--muted); }
.actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.actions select {
  margin: 0;
  width: auto;
  flex: 1;
  min-width: 120px;
}
.btn-print {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}
.btn-print:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.btn-delete-report {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #fca5a5;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}
.btn-delete-report:hover {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.45);
  color: #f87171;
}

.empty { text-align: center; grid-column: 1/-1; padding: 40px; }

@media (max-width: 560px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .row { flex-direction: column; gap: 0; }
}

/* --- Dropzone Styles --- */
.dropzone {
  border: 2px dashed var(--line);
  border-radius: 12px;
  padding: 48px 24px;
  text-align: center;
  background: rgba(26, 32, 41, 0.4);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.1s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  margin-top: 14px;
}
.dropzone:hover {
  border-color: var(--accent);
  background: rgba(46, 163, 107, 0.04);
}
.dropzone.dragover {
  border-color: var(--accent-hi);
  background: rgba(46, 163, 107, 0.1);
  transform: scale(0.99);
}
.dropzone-content .icon {
  font-size: 52px;
  display: block;
  margin-bottom: 16px;
}
.dropzone-content .main-text {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--text);
}
.dropzone-content .sub-text {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

/* --- Desktop Split Layout --- */
@media (min-width: 768px) {
  .wrap.has-image {
    max-width: 1000px;
  }
  .split-container {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 24px;
    align-items: start;
  }
}

.preview-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 10px;
}
.preview-img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.btn-secondary {
  background: var(--line);
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-secondary:hover {
  background: #343e4c;
}

/* --- Login Overlay --- */
.login-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 120px);
  padding: 20px;
}
.login-card {
  width: 100%;
  max-width: 400px;
  margin: 0;
  backdrop-filter: blur(16px);
  background: rgba(26, 32, 41, 0.85);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.password-wrapper input {
  padding-right: 44px;
}
.btn-toggle-pw {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-toggle-pw:hover {
  color: var(--text);
}

/* --- Topbar & Logout --- */
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.btn-logout {
  background: rgba(255, 107, 107, 0.05);
  border: 1px solid rgba(255, 107, 107, 0.2);
  color: #ff6b6b;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}
.btn-logout:hover {
  background: rgba(255, 107, 107, 0.15);
  border-color: #ff6b6b;
  color: #fff;
}

/* --- Brand Customizations --- */
.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
}
.app-logo {
  height: 38px;
  width: 38px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.app-icon {
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(42, 51, 63, 0.4);
  border-radius: 50%;
  border: 1px solid var(--line);
}
.brand-details {
  display: flex;
  align-items: center;
  gap: 10px;
}
.app-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.4px;
}
.admin-badge {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--baru);
  background: rgba(224, 161, 54, 0.1);
  border: 1px solid rgba(224, 161, 54, 0.2);
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 18px;
}
.lang-switcher {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg);
}
.btn-lang {
  background: transparent;
  border: none;
  color: var(--muted);
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-lang:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}
.btn-lang.active {
  background: var(--accent);
  color: #fff;
}

.link-btn {
  color: var(--muted);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(42, 51, 63, 0.2);
  transition: all 0.2s ease;
}
.link-btn:hover {
  color: #fff;
  background: rgba(42, 51, 63, 0.5);
  border-color: rgba(255, 255, 255, 0.15);
}

/* --- Admin Tabs --- */
.tabs {
  display: flex;
  gap: 28px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}
.tab-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  padding: 8px 4px 12px 4px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tab-btn:hover {
  color: var(--text);
}
.tab-btn.active {
  color: var(--accent-hi);
}
.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2.5px;
  background: var(--accent-hi);
  box-shadow: 0 0 10px rgba(55, 192, 127, 0.4);
  border-radius: 2px;
}

/* --- Form Layout & Grid Elements --- */
.form-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  margin-bottom: 16px;
}
@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* --- Upload Containers (Logo & BG) --- */
.logo-setting-container-v2, .bg-setting-container-v2 {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
  background: rgba(9, 13, 18, 0.4);
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 16px;
  min-height: 94px;
  justify-content: center;
}
.logo-preview-box, .bg-preview-box {
  display: flex;
  align-items: center;
  gap: 16px;
}
.logo-preview-img-circular {
  height: 52px;
  width: 52px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--accent);
  box-shadow: 0 4px 12px rgba(46, 163, 107, 0.2);
}
.bg-preview-img-rect {
  height: 56px;
  width: 90px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.btn-clear-asset-sm {
  background: rgba(255, 107, 107, 0.08);
  border: 1px solid rgba(255, 107, 107, 0.15);
  color: #ff6b6b;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-clear-asset-sm:hover {
  background: #ff6b6b;
  color: #fff;
  border-color: #ff6b6b;
}
.upload-trigger-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.btn-upload-trigger {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-upload-trigger:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}
.selected-filename {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
}
.selected-filename.empty {
  color: var(--muted);
  font-style: italic;
  font-size: 12.5px;
}

/* --- Segmented Controls --- */
.segmented-control {
  display: flex;
  background: rgba(9, 13, 18, 0.6);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 4px;
  margin-top: 8px;
  gap: 4px;
}
.segmented-control button {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.segmented-control button:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}
.segmented-control button.active {
  color: #fff;
  background: rgba(46, 163, 107, 0.15);
  border: 1px solid rgba(46, 163, 107, 0.3);
  box-shadow: 0 2px 8px rgba(46, 163, 107, 0.1);
}

/* --- Segmented Checkboxes (Language selection buttons) --- */
.segmented-checkboxes {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.segmented-checkboxes button {
  background: rgba(9, 13, 18, 0.6);
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
}
.segmented-checkboxes button .indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid var(--line);
  font-size: 11px;
  color: transparent;
  transition: all 0.2s ease;
}
.segmented-checkboxes button:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.1);
}
.segmented-checkboxes button.active {
  color: #fff;
  border-color: var(--accent);
  background: rgba(46, 163, 107, 0.08);
}
.segmented-checkboxes button.active .indicator {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.settings-subgroup {
  margin-top: 14px;
  padding-left: 16px;
  border-left: 2px solid var(--accent);
}

.form-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 20px;
}
.form-footer .btn {
  width: auto;
  min-width: 160px;
  margin-top: 0;
}

.success-text {
  color: var(--accent-hi);
  font-size: 14px;
  margin-top: 12px;
  font-weight: 600;
}

/* --- WhatsApp & Email Sharing Dropdown --- */
.notify-share-block {
  position: relative;
  display: inline-block;
}
.btn-share-toggle {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}
.btn-share-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}
.share-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 280px;
  background: rgba(15, 21, 30, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  z-index: 10;
}
.share-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 6px;
  text-align: left;
}
.share-recipient-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.share-recipient-row:last-child {
  border-bottom: none;
}
.rec-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 130px;
}
.share-btns {
  display: flex;
  gap: 6px;
}
.share-btn {
  text-decoration: none;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
}
.share-btn.wa {
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid rgba(37, 211, 102, 0.2);
  color: #25d366;
}
.share-btn.wa:hover {
  background: #25d366;
  color: #fff;
}
.share-btn.mail {
  background: rgba(61, 139, 253, 0.1);
  border: 1px solid rgba(61, 139, 253, 0.2);
  color: #3d8bfd;
}
.share-btn.mail:hover {
  background: #3d8bfd;
  color: #fff;
}
.share-empty {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  padding: 8px 0;
}
.share-empty a {
  color: var(--accent-hi);
  text-decoration: none;
}

/* --- Recipients Config Panel --- */
.recipient-form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}
@media (max-width: 768px) {
  .recipient-form-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
.btn-add-recipient {
  width: auto;
  display: inline-block;
  margin-top: 0;
  padding: 10px 20px;
}
.recipients-list-wrapper {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(9, 13, 18, 0.4);
}
.recipients-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
}
.recipients-table th {
  background: rgba(15, 21, 30, 0.8);
  color: var(--muted);
  font-weight: 600;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.recipients-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  color: var(--text);
}
.recipients-table tr:last-child td {
  border-bottom: none;
}
.btn-delete-rec {
  background: rgba(255, 107, 107, 0.08);
  border: 1px solid rgba(255, 107, 107, 0.15);
  color: #ff6b6b;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-delete-rec:hover {
  background: #ff6b6b;
  color: #fff;
}
.empty-recipients {
  text-align: center;
  padding: 32px;
  background: rgba(9, 13, 18, 0.2);
  border: 1px dashed var(--line);
  border-radius: 12px;
  margin-top: 24px;
}

/* --- Modal Dialog Custom Styles --- */
.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  margin-bottom: 24px;
}
.section-header-row h2 {
  margin: 0;
}
@media (max-width: 560px) {
  .section-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .section-header-row button {
    width: 100%;
  }
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease-out;
}
.modal-card {
  width: 100%;
  max-width: 480px;
  background: rgba(21, 28, 38, 0.95);
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  margin-bottom: 0;
  padding: 24px;
  border-radius: 16px;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 12px;
  margin-bottom: 12px;
}
.modal-header h2 {
  margin: 0;
  font-size: 20px;
}
.btn-close-modal {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--muted);
  transition: color 0.2s ease;
}
.btn-close-modal:hover {
  color: #fff;
}
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 16px;
}
.modal-footer .btn {
  width: auto;
  margin-top: 0;
  padding: 10px 20px;
}
.modal-footer .btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--text);
}
.modal-footer .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}
.recipient-form-modal label {
  margin-bottom: 14px;
  display: block;
}
.recipient-form-modal input {
  margin-top: 6px;
}

/* --- Hero Section & Bold Typography --- */
.hero-section {
  text-align: center;
  margin: 0 auto 28px auto;
  max-width: 580px;
  animation: fadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-title {
  font-size: 38px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 8px 0;
  letter-spacing: -1px;
  text-shadow: 
    -1px -1px 0 rgba(0, 0, 0, 0.6),  
     1px -1px 0 rgba(0, 0, 0, 0.6),
    -1px  1px 0 rgba(0, 0, 0, 0.6),
     1px  1px 0 rgba(0, 0, 0, 0.6),
     0 3px 12px rgba(0, 0, 0, 0.5);
}
.hero-subtitle {
  font-size: 14.5px;
  color: #fff;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.5;
  font-weight: 600;
  text-shadow: 
    -1px -1px 0 rgba(0, 0, 0, 0.7),  
     1px -1px 0 rgba(0, 0, 0, 0.7),
    -1px  1px 0 rgba(0, 0, 0, 0.7),
     1px  1px 0 rgba(0, 0, 0, 0.7),
     0 2px 8px rgba(0, 0, 0, 0.8);
}
.hero-divider {
  width: 48px;
  height: 3px;
  background: var(--accent);
  margin: 16px auto 0 auto;
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(55, 192, 127, 0.4);
}

/* --- Banner Carousel --- */
.carousel-container {
  position: relative;
  width: 100%;
  max-width: 580px;
  margin: 0 auto 28px auto;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  aspect-ratio: 21 / 9;
  background: rgba(255, 255, 255, 0.02);
  animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.carousel-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
}
.carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.carousel-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}
.carousel-dots .dot:hover {
  background: rgba(255, 255, 255, 0.7);
}
.carousel-dots .dot.active {
  background: #fff;
  width: 18px;
  border-radius: 4px;
}

/* --- Step 1 Layout (Side-by-side on desktop) --- */
.step1-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
}
.step1-container .carousel-container {
  margin: 0;
}
.step1-container .dropzone-card {
  margin: 0;
}

@media (min-width: 900px) {
  .step1-container {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 28px;
    max-width: 1100px;
    align-items: stretch;
  }
  .step1-container .carousel-container {
    height: 100%;
    aspect-ratio: auto;
  }
  .step1-container .dropzone-card {
    display: flex;
    flex-direction: column;
    height: auto;
    justify-content: space-between;
  }
  .step1-container .dropzone-card .dropzone {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 220px;
    padding: 32px 16px;
    margin-top: 12px;
  }
}


