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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: #0e0e1a;
  background-image: radial-gradient(ellipse at 20% 0%, rgba(102, 126, 234, 0.15) 0%, transparent 60%),
                     radial-gradient(ellipse at 80% 100%, rgba(118, 75, 162, 0.12) 0%, transparent 60%);
  color: #e2e8f0;
  min-height: 100vh;
  padding: 40px 20px;
}

.container {
  max-width: 860px;
  margin: 0 auto;
}

.header {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 32px 36px;
  margin-bottom: 24px;
}

.header-content h1 {
  font-size: 28px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 6px;
  background: linear-gradient(135deg, #a78bfa, #667eea, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.header-content h1 svg {
  stroke: #a78bfa;
}

.header-content p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
  margin-left: 0;
  margin-top: 4px;
}

.main-content {
  position: relative;
}

.save-indicator {
  position: fixed;
  top: 16px;
  right: 16px;
  background: rgba(15, 15, 25, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(72, 187, 120, 0.3);
  padding: 10px 18px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.3s;
  z-index: 1000;
}

.save-indicator.show {
  opacity: 1;
  transform: translateY(0);
}

.save-indicator svg {
  color: #48bb78;
}

.save-indicator span {
  font-size: 13px;
  font-weight: 500;
  color: #68d391;
}

.section {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 28px;
  margin-bottom: 16px;
  transition: border-color 0.3s;
}

.section:hover {
  border-color: rgba(255, 255, 255, 0.1);
}

.section h2 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: -0.3px;
}

.section h2 svg {
  stroke: #a78bfa;
  opacity: 0.7;
}

.form-group {
  margin-bottom: 22px;
}

.form-group:last-child {
  margin-bottom: 0;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.6);
}

.value-display {
  float: right;
  font-weight: 700;
  color: #a78bfa;
}

.input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s;
  background: rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
}

.input:focus {
  outline: none;
  border-color: rgba(167, 139, 250, 0.5);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.1);
}

.input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.input-with-button {
  display: flex;
  gap: 8px;
}

.input-with-button .input {
  flex: 1;
}

.btn-icon {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.btn-icon:hover {
  border-color: rgba(167, 139, 250, 0.4);
  background: rgba(167, 139, 250, 0.1);
  color: #a78bfa;
}

.slider {
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.slider::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #a78bfa;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(167, 139, 250, 0.5);
  transition: box-shadow 0.2s;
}

.slider::-webkit-slider-thumb:hover {
  box-shadow: 0 0 16px rgba(167, 139, 250, 0.7);
}

.slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #a78bfa;
  cursor: pointer;
  border: none;
  box-shadow: 0 0 10px rgba(167, 139, 250, 0.5);
}

.help-text {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 8px;
  line-height: 1.5;
}

.help-text a {
  color: #818cf8;
  text-decoration: none;
  font-weight: 500;
}

.help-text a:hover {
  text-decoration: underline;
  color: #a78bfa;
}

.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
}

.btn-secondary {
  background: rgba(167, 139, 250, 0.15);
  color: #a78bfa;
  border: 1px solid rgba(167, 139, 250, 0.25);
}

.btn-secondary:hover {
  background: rgba(167, 139, 250, 0.25);
  border-color: rgba(167, 139, 250, 0.4);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: #fc8181;
  border: 1px solid rgba(252, 129, 129, 0.3);
}

.btn-outline:hover {
  background: rgba(252, 129, 129, 0.1);
  border-color: rgba(252, 129, 129, 0.5);
}

.test-result {
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  display: none;
}

.test-result.show {
  display: block;
}

.test-result.success {
  background: rgba(72, 187, 120, 0.1);
  color: #68d391;
  border: 1px solid rgba(72, 187, 120, 0.2);
}

.test-result.error {
  background: rgba(252, 129, 129, 0.1);
  color: #fc8181;
  border: 1px solid rgba(252, 129, 129, 0.2);
}

.prompt-examples {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.prompt-examples h4 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.example-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.example-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 14px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
  color: inherit;
}

.example-card:hover {
  border-color: rgba(167, 139, 250, 0.3);
  background: rgba(167, 139, 250, 0.06);
  transform: translateY(-2px);
}

.example-card strong {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.8);
}

.example-card p {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  margin: 0;
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(167, 139, 250, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon svg {
  color: #a78bfa;
}

.stat-icon.success {
  background: rgba(72, 187, 120, 0.12);
}

.stat-icon.success svg {
  color: #68d391;
}

.stat-icon.error {
  background: rgba(252, 129, 129, 0.12);
}

.stat-icon.error svg {
  color: #fc8181;
}

.stat-content {
  flex: 1;
}

.stat-value {
  font-size: 24px;
  font-weight: 800;
  color: #e2e8f0;
  line-height: 1;
  letter-spacing: -0.5px;
}

.stat-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 4px;
}

/* ===== SCRIPTS ===== */

.scripts-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.scripts-actions-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.btn-outline-sm {
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-outline-sm:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
}

.btn-sm {
  padding: 7px 14px;
  font-size: 12px;
}

#scriptsSearchWrap {
  margin-bottom: 10px;
}

.scripts-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 490px;
  overflow-y: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scripts-list::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.script-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.script-item:hover {
  border-color: rgba(167, 139, 250, 0.3);
  background: rgba(167, 139, 250, 0.05);
  transform: translateX(3px);
}

.script-item.active {
  border-color: rgba(72, 187, 120, 0.4);
  background: rgba(72, 187, 120, 0.05);
}

.script-item-drag {
  cursor: grab;
  color: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
  padding: 4px;
}

.script-item-drag:active {
  cursor: grabbing;
}

.script-item-info {
  flex: 1;
  min-width: 0;
}

.script-item-name {
  font-weight: 600;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.script-item-meta {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 2px;
}

.script-item-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.btn-icon-sm {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  color: rgba(255, 255, 255, 0.4);
  position: relative;
}

.btn-icon-sm:hover {
  border-color: rgba(167, 139, 250, 0.3);
  background: rgba(167, 139, 250, 0.1);
  color: #a78bfa;
}

/* Tooltip CSS via title */
.btn-icon-sm[title]:hover::after {
  content: attr(title);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #1e1e2e;
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  pointer-events: none;
  z-index: 9999;
  animation: tooltipIn 0.12s ease;
}

@keyframes tooltipIn {
  from { opacity: 0; transform: translateX(-50%) translateY(3px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.btn-danger {
  color: #fc8181 !important;
  border-color: rgba(252, 129, 129, 0.2) !important;
}

.btn-danger:hover {
  background: rgba(252, 129, 129, 0.15) !important;
  color: #feb2b2 !important;
}

.script-editor {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.script-editor-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.script-name-input {
  flex: 1;
  font-weight: 600;
  font-size: 15px;
}

.messages-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.message-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 14px;
  transition: all 0.2s;
}

.message-item:hover {
  border-color: rgba(255, 255, 255, 0.1);
}

.message-item.dragging {
  opacity: 0.5;
  border-color: rgba(167, 139, 250, 0.4);
}

.message-item-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.message-item-drag {
  cursor: grab;
  color: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.message-item-drag:active {
  cursor: grabbing;
}

.message-item-label {
  font-weight: 600;
  font-size: 12px;
  color: #818cf8;
  flex: 1;
}

.message-name-input {
  font-weight: 600;
  font-size: 12px;
  color: #818cf8;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 2px 6px;
  flex: 1;
  min-width: 0;
  outline: none;
  transition: all 0.2s ease;
}
.message-name-input::placeholder {
  color: #818cf8;
  opacity: 0.6;
}
.message-name-input:hover {
  border-color: rgba(129, 140, 248, 0.25);
  background: rgba(129, 140, 248, 0.05);
}
.message-name-input:focus {
  border-color: rgba(129, 140, 248, 0.5);
  background: rgba(129, 140, 248, 0.08);
  color: #a5b4fc;
}

.media-section {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.media-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.media-section-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.media-upload-status {
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 4px;
}

.media-upload-status.uploading {
  color: #60a5fa;
  background: rgba(96, 165, 250, 0.1);
}

.media-upload-status.done {
  color: #34d399;
  background: rgba(52, 211, 153, 0.1);
}

.media-upload-status.error {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.media-row-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  font-weight: 500;
  display: block;
}

.media-entry {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 4px;
}

.media-input {
  flex: 1;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  font-size: 12px;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.03);
  color: #e2e8f0;
  transition: border-color 0.2s;
}

.media-input::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.media-input:focus {
  outline: none;
  border-color: rgba(167, 139, 250, 0.4);
  background: rgba(255, 255, 255, 0.05);
}

.media-price-input {
  max-width: 100px;
}

.media-add-btn {
  color: #818cf8 !important;
}

.media-cloud-pick-btn {
  flex-shrink: 0;
  color: #818cf8 !important;
  transition: all 0.2s;
}

.media-cloud-pick-btn:hover {
  color: #a78bfa !important;
  transform: scale(1.1);
}

.media-remove-btn {
  flex-shrink: 0;
}

.media-price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 8px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 6px;
}

.media-price-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
  white-space: nowrap;
}

.media-price-row .media-price-input {
  max-width: 80px;
  padding: 4px 8px;
  font-size: 12px;
  height: auto;
  line-height: 1.4;
}

.media-price-unit {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 700;
}

.message-item--launch {
  border-color: rgba(129, 140, 248, 0.25);
  background: rgba(129, 140, 248, 0.04);
}

.message-item--launch .message-item-label {
  color: #a78bfa;
}

.launch-optional {
  font-weight: 400;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.3);
  font-style: italic;
}

.launch-info-icon {
  display: inline-flex;
  align-items: center;
  cursor: help;
  opacity: 0.4;
  transition: opacity 0.2s;
  position: relative;
  vertical-align: middle;
  margin-left: 2px;
}

.launch-info-icon:hover {
  opacity: 0.8;
}

.launch-info-tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #1e1e2e;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 400;
  font-style: normal;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  width: 280px;
  white-space: normal;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  z-index: 100;
  pointer-events: none;
}

.launch-info-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(255, 255, 255, 0.12);
}

.launch-info-icon:hover .launch-info-tooltip {
  display: block;
}

.message-item-actions {
  display: flex;
  gap: 4px;
}

.variant-block {
  margin-bottom: 6px;
}

.variant-alt {
  margin-left: 20px;
  padding-left: 12px;
  border-left: 2px solid rgba(102, 126, 234, 0.25);
  border-radius: 0 8px 8px 0;
  background: rgba(102, 126, 234, 0.03);
  padding-top: 8px;
  padding-bottom: 4px;
  padding-right: 4px;
}

.variant-row {
  display: flex;
  gap: 8px;
  margin-bottom: 0;
  align-items: flex-start;
}

.variant-char-counter {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.3);
  text-align: right;
  padding: 2px 4px 6px;
  font-weight: 500;
  transition: color 0.2s;
}

.variant-char-counter.over-limit {
  color: #ef4444;
  font-weight: 600;
}

.variant-label {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.25);
  padding-top: 10px;
  min-width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.variant-name-input {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 4px 6px;
  min-width: 28px;
  max-width: 80px;
  width: auto;
  text-align: center;
  flex-shrink: 0;
  align-self: center;
  transition: all 0.2s ease;
  outline: none;
}

.variant-name-input:hover {
  border-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.6);
}

.variant-name-input:focus {
  border-color: rgba(102, 126, 234, 0.5);
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.06);
}

.variant-textarea {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  resize: vertical;
  min-height: 44px;
  line-height: 1.5;
  transition: all 0.2s;
  background: rgba(255, 255, 255, 0.03);
  color: #e2e8f0;
}

.variant-textarea::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.variant-textarea:focus {
  outline: none;
  border-color: rgba(167, 139, 250, 0.4);
  background: rgba(255, 255, 255, 0.05);
}

.variant-delete {
  flex-shrink: 0;
  margin-top: 6px;
}

.add-variant-btn {
  background: none;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 4px;
}

.add-variant-btn:hover {
  border-color: rgba(167, 139, 250, 0.3);
  color: #a78bfa;
  background: rgba(167, 139, 250, 0.05);
}

.empty-state {
  text-align: center;
  padding: 30px 20px;
  color: rgba(255, 255, 255, 0.3);
  font-size: 13px;
}

.empty-state svg {
  margin-bottom: 10px;
  opacity: 0.3;
}

.drag-over {
  border-color: rgba(167, 139, 250, 0.4) !important;
  background: rgba(167, 139, 250, 0.06) !important;
}

/* ===== NOTES ===== */

.notes-toolbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}

.notes-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s;
}

.notes-search-wrap:focus-within {
  border-color: rgba(139, 92, 246, 0.4);
  background: rgba(255, 255, 255, 0.05);
}

.notes-search-wrap svg {
  color: rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

.notes-search-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #e2e8f0;
  font-size: 13px;
  font-family: inherit;
  outline: none;
}

.notes-search-input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.notes-actions-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-danger-text {
  color: #fc8181 !important;
  border-color: rgba(252, 129, 129, 0.3) !important;
}

.btn-danger-text:hover {
  background: rgba(252, 129, 129, 0.1) !important;
  border-color: rgba(252, 129, 129, 0.5) !important;
}

.notes-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 400px;
  overflow-y: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.notes-list::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.note-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 12px 14px;
  transition: all 0.2s;
}

.note-item:hover {
  border-color: rgba(139, 92, 246, 0.25);
  background: rgba(139, 92, 246, 0.04);
}

.note-item-checkbox {
  margin-top: 4px;
  flex-shrink: 0;
  accent-color: #8b5cf6;
  cursor: pointer;
}

.note-item-info {
  flex: 1;
  min-width: 0;
}

.note-item-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.note-item-chatid {
  font-weight: 700;
  font-size: 13px;
  color: #c4b5fd;
}

.note-item-date {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}

.note-item-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 5px;
}

.note-stat-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.note-stat-money {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.note-stat-media {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.note-item-preview {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.note-item-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

/* ── Note Detail Modal ── */
.note-detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.note-detail-box {
  background: #131525;
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 16px;
  width: 520px;
  max-width: 92vw;
  max-height: 85vh;
  overflow-y: auto;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.note-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.note-detail-name {
  font-size: 18px;
  font-weight: 700;
  color: #e2e8f0;
}

.note-detail-subname {
  font-size: 13px;
  color: #8b5cf6;
  margin-top: 2px;
}

.note-detail-close {
  background: none;
  border: none;
  color: #64748b;
  font-size: 24px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}
.note-detail-close:hover { color: #e2e8f0; }

.note-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: #64748b;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.note-detail-meta strong { color: #94a3b8; }

.note-detail-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8b5cf6;
  margin: 16px 0 8px;
}

.note-detail-text {
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.6;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 12px;
  max-height: 120px;
  overflow-y: auto;
  white-space: pre-wrap;
}

.note-detail-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.note-detail-stat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 12px;
  text-align: center;
}

.note-detail-stat-num {
  font-size: 18px;
  font-weight: 700;
  color: #e2e8f0;
}

.note-detail-stat-card .note-detail-stat-label {
  font-size: 10px;
  color: #64748b;
  margin-top: 2px;
}

.note-detail-dates {
  margin-top: 12px;
}

.note-detail-stat-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.note-detail-stat-row .note-detail-stat-label { color: #64748b; }
.note-detail-stat-row .note-detail-stat-value { color: #cbd5e1; font-weight: 600; }

.note-detail-by-type {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  padding: 4px 12px;
}

.note-detail-empty {
  font-size: 13px;
  color: #475569;
  text-align: center;
  padding: 20px;
}

.note-detail-footer {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
}

/* ── Push (admin) ── */
.push-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.push-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.push-settings-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 6px;
  color: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
}
.push-settings-btn:hover,
.push-settings-btn.active {
  color: #818cf8;
  border-color: rgba(129,140,248,0.3);
  background: rgba(129,140,248,0.08);
}
.push-settings-panel {
  margin-bottom: 16px;
  border: 1px solid rgba(129,140,248,0.2);
  border-radius: 10px;
  background: rgba(129,140,248,0.04);
  overflow: hidden;
  transition: all 0.2s;
}
.push-settings-inner {
  padding: 14px 16px;
}
.push-settings-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #818cf8;
  margin-bottom: 4px;
}
.input.input-error {
  border-color: #f87171 !important;
  box-shadow: 0 0 0 2px rgba(248,113,113,0.2);
}
.help-text.help-error {
  color: #f87171 !important;
}
.push-teaser-remove {
  background: none;
  border: none;
  color: rgba(255,255,255,0.3);
  cursor: pointer;
  padding: 2px;
  display: flex;
  align-items: center;
  transition: color 0.15s;
}
.push-teaser-remove:hover { color: #f87171; }
.push-playlist-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}
.push-playlist-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
}
.push-playlist-name {
  font-size: 13px;
  font-weight: 500;
  color: #e0e7ff;
  flex: 1;
  min-width: 0;
}
.push-playlist-id {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  font-family: monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 200px;
}
.push-playlist-remove {
  background: none;
  border: none;
  color: rgba(255,255,255,0.3);
  cursor: pointer;
  padding: 2px;
  display: flex;
  align-items: center;
  transition: color 0.15s;
}
.push-playlist-remove:hover { color: #f87171; }
.push-schedule-toggle {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.push-radio-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  cursor: pointer;
}
.push-audience-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.push-checkbox-label input[type="checkbox"],
.push-checkbox-label input[type="radio"] {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.35);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
  flex-shrink: 0;
}
.push-checkbox-label input[type="checkbox"]:checked,
.push-checkbox-label input[type="radio"]:checked {
  border-color: #818cf8;
  background: #818cf8;
}
.push-checkbox-label input[type="checkbox"]:checked::after,
.push-checkbox-label input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: white;
  transform: translate(-50%, -50%);
}
.push-checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #e2e8f0;
  cursor: pointer;
}
.push-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: flex-start;
}
.push-media-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}
.push-media-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}
.push-media-item .push-media-uuid {
  flex: 1;
  font-size: 12px;
  font-family: monospace;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.push-media-item .push-media-remove {
  background: none;
  border: none;
  color: rgba(255,255,255,0.3);
  cursor: pointer;
  padding: 2px;
  border-radius: 4px;
}
.push-media-item .push-media-remove:hover {
  color: #ef4444;
}
.push-media-actions {
  display: flex;
  gap: 8px;
}
.push-teaser-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.push-teaser-row .input {
  flex: 1;
}
.push-status {
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
}
.push-status.success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
}
.push-status.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}
.push-status.info {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #60a5fa;
}
.push-caption-counter {
  text-align: right;
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  margin-top: 4px;
}
.push-caption-counter.near-limit { color: #fbbf24; }
.push-caption-counter.at-limit { color: #f87171; }

/* ── Upload Cloud MYM ── */
.upload-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  border: 2px dashed rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.upload-dropzone:hover,
.upload-dropzone.dragover {
  border-color: rgba(102, 126, 234, 0.5);
  background: rgba(102, 126, 234, 0.06);
}

.upload-file-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
  max-height: 300px;
  overflow-y: auto;
}

.upload-file-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
}

.upload-file-thumb {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.upload-file-info {
  flex: 1;
  min-width: 0;
}

.upload-file-name {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.upload-file-size {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
}

.upload-file-remove {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.15s;
  flex-shrink: 0;
}
.upload-file-remove:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.upload-file-status {
  font-size: 11px;
  flex-shrink: 0;
}
.upload-file-status.pending { color: rgba(255,255,255,0.3); }
.upload-file-status.uploading { color: #60a5fa; }
.upload-file-status.done { color: #22c55e; }
.upload-file-status.error { color: #ef4444; }

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

/* ===== NEWS SECTION ===== */
.news-section h2 { display: flex; align-items: center; gap: 8px; }

.news-update-banner {
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(135deg, rgba(139,92,246,0.18), rgba(99,102,241,0.12));
  border: 1px solid rgba(139,92,246,0.4);
  border-radius: 10px; padding: 14px 16px; margin-bottom: 16px;
}
.news-update-icon { font-size: 24px; flex-shrink: 0; }
.news-update-body { flex: 1; min-width: 0; }
.news-update-title { font-size: 14px; font-weight: 700; color: #c4b5fd; margin-bottom: 3px; }
.news-update-text { font-size: 12px; color: #94a3b8; }
.news-update-btn {
  flex-shrink: 0; background: #7c3aed; color: #fff; border: none;
  border-radius: 7px; padding: 8px 16px; font-size: 13px; font-weight: 600;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background 0.15s;
}
.news-update-btn:hover { background: #6d28d9; }

.news-items-list { display: flex; flex-direction: column; gap: 10px; }
.news-loading { color: #475569; font-size: 13px; text-align: center; padding: 20px 0; }
.news-empty { color: #475569; font-size: 13px; text-align: center; padding: 20px 0; }

.news-item {
  display: flex; gap: 12px; align-items: flex-start;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 9px; padding: 13px 15px;
}
.news-item-icon { font-size: 20px; flex-shrink: 0; margin-top: 1px; }
.news-item-body { flex: 1; min-width: 0; }
.news-item-title { font-size: 13px; font-weight: 700; color: #e2e8f0; margin-bottom: 4px; }
.news-item-text { font-size: 12px; color: #94a3b8; line-height: 1.5; }
.news-item-date { font-size: 11px; color: #475569; margin-top: 5px; }

.news-item.type-warning { border-color: rgba(251,191,36,0.3); background: rgba(251,191,36,0.05); }
.news-item.type-update  { border-color: rgba(139,92,246,0.3); background: rgba(139,92,246,0.05); }
.news-item.type-info    { border-color: rgba(96,165,250,0.3);  background: rgba(96,165,250,0.05); }

.footer {
  text-align: center;
  padding: 20px;
  color: rgba(255, 255, 255, 0.2);
  font-size: 12px;
}

/* ===== CUSTOM CONFIRM MODAL ===== */

.ca-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 99999;
  align-items: center;
  justify-content: center;
}

.ca-modal-overlay.active {
  display: flex;
}

.ca-modal {
  background: #1a1a2e;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 28px 32px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
  animation: modalIn 0.18s ease;
}

@keyframes modalIn {
  from { transform: scale(0.92); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.ca-modal-msg {
  font-size: 15px;
  color: #e2e8f0;
  line-height: 1.6;
  margin-bottom: 24px;
  white-space: pre-line;
}

.ca-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.ca-modal-btn {
  padding: 9px 20px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: all 0.15s;
}

.ca-modal-cancel {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.1);
}

.ca-modal-cancel:hover {
  background: rgba(255,255,255,0.1);
  color: #e2e8f0;
}

.ca-modal-ok {
  background: rgba(239,68,68,0.15);
  color: #fc8181;
  border: 1px solid rgba(239,68,68,0.3);
}

.ca-modal-ok:hover {
  background: rgba(239,68,68,0.25);
  border-color: rgba(239,68,68,0.5);
}

/* ===== INFO SECTION ===== */

.info-section {
  padding: 0 !important;
  overflow: hidden;
}

.info-toggle {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  color: #e2e8f0;
  font-family: inherit;
  transition: background 0.2s;
}

.info-toggle:hover {
  background: rgba(255, 255, 255, 0.03);
}

.info-toggle-left {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 700;
}

.info-toggle-left svg {
  stroke: #a78bfa;
  flex-shrink: 0;
}

.info-chevron {
  flex-shrink: 0;
  color: rgba(255,255,255,0.35);
  transition: transform 0.25s ease;
}

.info-section.open .info-chevron {
  transform: rotate(180deg);
}

.info-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.25s;
  padding: 0 20px;
  border-top: 0px solid rgba(255,255,255,0.06);
}

.info-section.open .info-body {
  max-height: 2400px;
  padding: 16px 20px 20px;
  border-top-width: 1px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.info-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 12px 16px;
}

.info-card-icon {
  display: none;
}

.info-card h3 {
  font-size: 14px;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 6px;
}

.info-card p,
.info-card li {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  line-height: 1.55;
}

.info-card ol,
.info-card ul {
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.info-card a {
  color: #a78bfa;
  text-decoration: none;
}

.info-card a:hover {
  text-decoration: underline;
}

.info-card strong {
  color: rgba(255,255,255,0.75);
  font-weight: 600;
}

/* sub-accordion */
.info-sub-acc {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 6px;
}

.info-sub-acc:last-child {
  margin-bottom: 0;
}

.info-sub-toggle {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: none;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  color: #e2e8f0;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.15s;
  text-align: left;
}

.info-sub-toggle:hover {
  background: rgba(255,255,255,0.06);
}

.info-sub-chevron {
  flex-shrink: 0;
  color: rgba(255,255,255,0.3);
  transition: transform 0.2s ease;
  margin-left: 8px;
}

.info-sub-acc.open .info-sub-chevron {
  transform: rotate(180deg);
}

.info-sub-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.info-sub-acc.open .info-sub-body {
  max-height: 1600px;
}

.info-sub-body .info-grid {
  padding: 10px 12px 12px;
}

.info-card-wide {
  grid-column: 1 / -1;
}

.info-card-wide ol,
.info-card-wide ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 6px 24px;
}

/* ── Tab navigation ── */
.options-tab-nav {
  display: flex;
  gap: 2px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 3px;
  margin-bottom: 20px;
  position: sticky;
  top: 12px;
  z-index: 200;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow-x: auto;
  overflow-y: hidden;
  flex-wrap: nowrap;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.options-tab-nav::-webkit-scrollbar { display: none; }

.tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 10px;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.45);
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s;
  white-space: nowrap;
  font-family: inherit;
  min-width: 0;
}

.tab-btn svg {
  flex-shrink: 0;
  opacity: 0.7;
}

.tab-btn:hover {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.8);
}

.tab-btn:hover svg { opacity: 1; }

.tab-btn.active {
  background: linear-gradient(135deg, rgba(139,92,246,0.85), rgba(99,58,210,0.9));
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(139,92,246,0.35);
}

.tab-btn.active svg { opacity: 1; }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

@media (max-width: 768px) {
  .tab-btn {
    padding: 8px 10px;
    font-size: 12px;
    gap: 4px;
  }
  .tab-btn svg { width: 14px; height: 14px; }
}

@media (max-width: 480px) {
  .options-tab-nav {
    padding: 2px;
    gap: 1px;
  }
  .tab-btn {
    padding: 7px 9px;
    font-size: 11.5px;
  }
  .tab-btn svg { width: 13px; height: 13px; }
}

/* ── Subscription card ── */
.sub-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 16px;
}

.sub-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.sub-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 600;
}

.sub-status-badge--active {
  background: rgba(74,222,128,0.12);
  border: 1px solid rgba(74,222,128,0.25);
  color: #4ade80;
}

.sub-status-badge--admin {
  background: rgba(139,92,246,0.15);
  border: 1px solid rgba(139,92,246,0.3);
  color: #a78bfa;
}

.sub-status-badge--past-due {
  background: rgba(251,191,36,0.12);
  border: 1px solid rgba(251,191,36,0.3);
  color: #fbbf24;
}

.sub-email {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

.sub-card-body {
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sub-info-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sub-info-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.45);
}

.sub-info-value {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
}

.sub-card-actions {
  padding: 12px 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ── Push compact toolbar ── */
.push-toolbar {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  margin-bottom: 14px;
  overflow: hidden;
}

.push-toolbar-group {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  flex: 1;
  min-height: 42px;
}

.push-toolbar-group > * {
  display: flex;
  align-items: center;
}

.push-toolbar-sep {
  width: 1px;
  align-self: stretch;
  background: rgba(255,255,255,0.07);
  flex-shrink: 0;
}

.push-toolbar-label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  white-space: nowrap;
}

.push-field-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.push-field-header label { margin: 0; }

.push-send-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.push-schedule-compact {
  margin-bottom: 14px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
}

.push-schedule-compact label {
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  margin-bottom: 6px;
}

.push-field {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 11px 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  box-sizing: border-box;
  width: 100%;
}

.push-row-2col { margin-bottom: 22px; }

#pushPromoGroup,
#pushModGroup,
#pushPlaylistGroup { margin-bottom: 22px; }

.push-field-label {
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  margin: 0;
  line-height: 1;
}

.push-field-label small {
  font-weight: 400;
  opacity: 0.75;
}

.push-field-input {
  width: 100%;
  background: transparent;
  border: none;
  padding: 4px 0 0;
  color: #e2e8f0;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.push-field-input:focus { color: #fff; }

.push-field-input option { background: #1e1b2e; }

.push-field-hint {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  margin: 0;
}

.push-field .push-media-list:empty { display: none; }

.push-field-input.input-error {
  color: #f87171;
}

.push-message-field { gap: 6px; margin-bottom: 22px; }

.push-message-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.push-message-textarea {
  width: 100%;
  background: transparent;
  border: none;
  padding: 4px 0 0;
  color: #e2e8f0;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  outline: none;
  line-height: 1.6;
  box-sizing: border-box;
}

.push-message-textarea::placeholder { color: rgba(255,255,255,0.25); }
.push-message-textarea:focus { color: #fff; }

.push-promo-divider {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 8px 0;
}

.push-promo-inner {
  margin-bottom: 0 !important;
}

.push-promo-inner > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.push-teaser-compact {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.push-teaser-compact .push-media-list { flex: 1; min-width: 0; }

@media (max-width: 540px) {
  .push-toolbar { flex-direction: column; align-items: stretch; }
  .push-toolbar-sep { width: auto; height: 1px; }
}

/* ── Support section ── */
.support-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 540px) {
  .support-cards { grid-template-columns: 1fr; }
}

.support-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.03);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, background 0.2s;
}

.support-card:hover {
  border-color: rgba(167,139,250,0.35);
  background: rgba(167,139,250,0.06);
}

.support-card-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(59,130,246,0.15);
  border: 1px solid rgba(59,130,246,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60a5fa;
}

.support-card-icon--purple {
  background: rgba(167,139,250,0.15);
  border-color: rgba(167,139,250,0.25);
  color: #a78bfa;
}

.support-card-body {
  min-width: 0;
}

.support-card-title {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,0.88);
  margin-bottom: 4px;
}

.support-card-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  line-height: 1.55;
  margin-bottom: 8px;
}

.support-card-action {
  font-size: 12px;
  font-weight: 600;
  color: #a78bfa;
}
