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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 20px;
}

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

.admin-header {
  text-align: center;
  color: white;
  margin-bottom: 40px;
}

.admin-header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
}

.search-section {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.search-box {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

#phone-search {
  flex: 1;
  padding: 14px 20px;
  font-size: 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  outline: none;
  transition: all 0.3s;
}

#phone-search:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-primary {
  padding: 14px 28px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.search-hint {
  color: #666;
  font-size: 14px;
  text-align: center;
}

.loading {
  background: white;
  padding: 60px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.spinner {
  display: inline-block;
  width: 50px;
  height: 50px;
  border: 4px solid rgba(102, 126, 234, 0.2);
  border-radius: 50%;
  border-top-color: #667eea;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

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

.loading p {
  color: #666;
  font-size: 16px;
}

.error-message {
  background: #fee;
  color: #c33;
  padding: 16px 20px;
  border-radius: 8px;
  border-left: 4px solid #c33;
  margin-bottom: 20px;
}

.results-section {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.results-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f0f0f0;
}

.results-header h2 {
  color: #333;
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.result-info {
  color: #666;
  font-size: 14px;
}

.customer-info {
  margin-bottom: 40px;
}

.customer-info h3,
.images-container h3 {
  color: #333;
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.info-item {
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 3px solid #667eea;
}

.info-label {
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  font-weight: 600;
}

.info-value {
  font-size: 16px;
  color: #333;
  font-weight: 500;
}

.images-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Upload Session Card */
.upload-session-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 2px solid transparent;
  transition: all 0.3s;
}

.upload-session-card.newest {
  border-color: #fbbf24;
  box-shadow: 0 4px 20px rgba(251, 191, 36, 0.3);
}

.session-badge {
  display: inline-block;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
}

/* Session Info */
.session-info {
  margin-bottom: 20px;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
}

.info-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.session-info .info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.session-info .info-label {
  font-size: 11px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.session-info .info-value {
  font-size: 15px;
  color: #333;
  font-weight: 500;
}

/* Images Row (Horizontal) */
.session-images-row {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 8px 0;
}

/* Image Wrapper */
.session-image-wrapper {
  flex: 0 0 auto;
}

.session-image {
  width: 250px;
  height: 250px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s;
}

.session-image:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

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

/* ===== Per-product rows (v2) ===== */
.product-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.product-row-card {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 12px;
  background: #f8f9fa;
  border: 1px solid #eceff4;
  border-radius: 10px;
  transition: box-shadow 0.2s;
}
.product-row-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.product-row-thumb {
  flex: 0 0 auto;
}
.product-row-thumb a {
  display: block;
  width: 96px;
  height: 96px;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e5e5e5;
}
.product-row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-row-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.product-row-index {
  font-size: 11px;
  color: #888;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.product-row-sku {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 12px;
  color: #444;
  background: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid #e5e5e5;
  align-self: flex-start;
}
.product-row-name {
  font-size: 15px;
  font-weight: 600;
  color: #222;
  line-height: 1.3;
}
.product-row-link {
  font-size: 12px;
  color: #667eea;
  text-decoration: none;
}
.product-row-link:hover {
  text-decoration: underline;
}

/* ===== Copy Messenger button ===== */
.copy-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  padding-top: 12px;
  border-top: 1px dashed #e5e5e5;
}
.btn-copy-messenger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: linear-gradient(135deg, #0084ff 0%, #0078e7 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 2px 8px rgba(0, 132, 255, 0.25);
}
.btn-copy-messenger:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 132, 255, 0.35);
}
.btn-copy-messenger:active {
  transform: translateY(0);
}
.btn-copy-messenger[disabled],
.btn-copy-messenger.is-loading {
  opacity: 0.7;
  cursor: wait;
  transform: none;
  box-shadow: 0 2px 8px rgba(0, 132, 255, 0.15);
}
.btn-copy-messenger .btn-spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btn-spin 0.8s linear infinite;
}
.btn-copy-messenger.is-loading .btn-spinner { display: inline-block; }
.btn-copy-messenger.is-loading .btn-icon { display: none; }
@keyframes btn-spin { to { transform: rotate(360deg); } }
/* Text-copy button: green so CS can pick it apart from the blue image button at a glance. */
.btn-copy-messenger.btn-copy-text {
  background: linear-gradient(135deg, #00b76e 0%, #009859 100%);
  box-shadow: 0 2px 8px rgba(0, 183, 110, 0.25);
}
.btn-copy-messenger.btn-copy-text:hover {
  box-shadow: 0 4px 14px rgba(0, 183, 110, 0.35);
}
.copy-legacy-tag {
  font-size: 12px;
  color: #b85c00;
  background: #fff5e5;
  padding: 4px 8px;
  border-radius: 4px;
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #222;
  color: #fff;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 9999;
  max-width: 90vw;
}
.toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast--error {
  background: #c0392b;
}

.no-results {
  background: white;
  padding: 80px 40px;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.empty-state {
  text-align: center;
  max-width: 400px;
  margin: 0 auto;
}

.empty-icon {
  font-size: 5rem;
  margin-bottom: 20px;
}

.empty-state h3 {
  color: #333;
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.empty-state p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 8px;
}

.empty-state .hint {
  color: #999;
  font-size: 14px;
}

/* ============================================================
   BROWSE BY DATE (Preview Table)
   ============================================================ */
.browse-section {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  margin-top: 30px;
  margin-bottom: 24px;
}

.browse-header {
  margin-bottom: 20px;
}

.browse-header h2 {
  color: #333;
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.browse-hint {
  color: #666;
  font-size: 14px;
}

.date-range-box {
  display: flex;
  gap: 14px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.date-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 160px;
}

.date-input-group label {
  font-size: 12px;
  font-weight: 600;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.date-input-group input[type="date"] {
  padding: 12px 14px;
  font-size: 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  outline: none;
  transition: all 0.2s;
}

.date-input-group input[type="date"]:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#load-list-btn {
  flex-shrink: 0;
}

.browse-empty {
  background: white;
  padding: 60px 24px;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.list-results-section {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.list-results-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid #f0f0f0;
}

.list-results-header h2 {
  color: #333;
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.day-section {
  margin-bottom: 32px;
}

.day-section:last-child {
  margin-bottom: 0;
}

.day-section-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 8px;
  margin-bottom: 12px;
}

.day-section-header h3 {
  color: white;
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0;
}

.day-count {
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  margin-left: auto;
}

.upload-table-wrap {
  overflow-x: auto;
  border: 1px solid #ececec;
  border-radius: 8px;
}

.upload-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: #fff;
}

.upload-table thead th {
  text-align: left;
  padding: 12px 14px;
  background: #f8f9fa;
  color: #555;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border-bottom: 1px solid #ececec;
}

.upload-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid #f3f3f3;
  vertical-align: middle;
  color: #333;
}

.upload-table tbody tr:last-child td {
  border-bottom: none;
}

.upload-table tbody tr:hover {
  background: #fafbff;
}

.upload-table .col-time {
  width: 70px;
  white-space: nowrap;
  color: #666;
  font-variant-numeric: tabular-nums;
}

.upload-table .col-phone {
  width: 140px;
  white-space: nowrap;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.upload-table .col-type {
  width: 100px;
  white-space: nowrap;
  color: #555;
}

.upload-table .col-note {
  max-width: 280px;
  color: #555;
  line-height: 1.4;
  word-break: break-word;
}

.upload-table .col-images {
  width: 150px;
}

.upload-table .col-note .muted,
.upload-table .no-img {
  color: #bbb;
}

.thumb-row {
  display: flex;
  gap: 6px;
  align-items: center;
}

.table-thumb {
  display: block;
  width: 60px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #e5e5e5;
  transition: transform 0.15s, box-shadow 0.15s;
  flex-shrink: 0;
}

.table-thumb:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

/* Mobile Optimization */
@media (max-width: 768px) {
  body {
    padding: 12px;
  }

  .admin-container {
    max-width: 100%;
  }

  .admin-header {
    margin-bottom: 24px;
  }

  .admin-header h1 {
    font-size: 1.75rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .search-section {
    padding: 20px 16px;
    margin-bottom: 20px;
  }

  .search-box {
    flex-direction: column;
    gap: 10px;
  }

  #phone-search {
    padding: 12px 16px;
    font-size: 16px;
  }

  .btn-primary {
    justify-content: center;
    padding: 12px 20px;
  }

  .results-section {
    padding: 20px 16px;
  }

  .results-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
  }

  .results-header h2 {
    font-size: 1.4rem;
  }

  .upload-session-card {
    padding: 16px;
  }

  .session-badge {
    font-size: 13px;
    padding: 6px 14px;
  }

  .session-info {
    padding: 12px;
    margin-bottom: 16px;
  }

  .info-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .session-info .info-label {
    font-size: 10px;
  }

  .session-info .info-value {
    font-size: 14px;
  }

  .session-images-row {
    gap: 12px;
    padding: 4px 0;
  }

  .session-image {
    width: 160px;
    height: 160px;
  }

  .no-results {
    padding: 60px 24px;
  }

  .empty-icon {
    font-size: 4rem;
  }

  .empty-state h3 {
    font-size: 1.25rem;
  }

  .empty-state p {
    font-size: 14px;
  }

  /* Browse by date - mobile */
  .browse-section {
    padding: 20px 16px;
    margin-top: 20px;
  }

  .browse-header h2 {
    font-size: 1.25rem;
  }

  .date-range-box {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .date-input-group {
    min-width: 0;
  }

  .list-results-section {
    padding: 20px 14px;
  }

  .list-results-header h2 {
    font-size: 1.25rem;
  }

  .day-section-header {
    padding: 8px 12px;
  }

  .day-section-header h3 {
    font-size: 0.95rem;
  }

  .day-count {
    font-size: 12px;
  }

  .upload-table {
    font-size: 13px;
  }

  .upload-table thead th,
  .upload-table tbody td {
    padding: 10px 10px;
  }

  .table-thumb {
    width: 50px;
    height: 50px;
  }

  /* Per-product rows on mobile */
  .product-row-card {
    padding: 10px;
    gap: 10px;
  }
  .product-row-thumb a {
    width: 72px;
    height: 72px;
  }
  .product-row-name {
    font-size: 14px;
  }
  .btn-copy-messenger {
    width: 100%;
    justify-content: center;
  }
  .copy-bar {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ============================================================
   ADMIN TABS
   ============================================================ */
.admin-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  border-bottom: 2px solid rgba(255,255,255,0.25);
  padding-bottom: 0;
}

.admin-tab-btn {
  padding: 10px 24px;
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.8);
  border: none;
  border-radius: 8px 8px 0 0;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  position: relative;
  bottom: -2px;
}

.admin-tab-btn:hover {
  background: rgba(255,255,255,0.25);
  color: #fff;
}

.admin-tab-btn.active {
  background: #fff;
  color: #764ba2;
  border-bottom: 2px solid #fff;
}

.admin-tab-panel {
  display: none;
}

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

/* ============================================================
   VOICE TAB
   ============================================================ */
.voice-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.voice-filter-bar {
  display: flex;
  gap: 6px;
  background: rgba(255,255,255,0.12);
  padding: 4px;
  border-radius: 8px;
}

.voice-filter-btn {
  padding: 7px 16px;
  background: transparent;
  color: rgba(255,255,255,0.75);
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.voice-filter-btn:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

.voice-filter-btn.active {
  background: #fff;
  color: #764ba2;
}

.btn-voice-refresh {
  padding: 8px 16px;
  background: rgba(255,255,255,0.2);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 7px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-voice-refresh:hover {
  background: rgba(255,255,255,0.3);
}

.voice-inline-error {
  background: #fee;
  color: #c33;
  padding: 14px 18px;
  border-radius: 8px;
  border-left: 4px solid #c33;
  margin-bottom: 16px;
  font-size: 14px;
  cursor: pointer;
}

.voice-empty-state {
  text-align: center;
  color: rgba(255,255,255,0.7);
  padding: 60px 20px;
  font-size: 15px;
}

.voice-empty-state .empty-icon {
  font-size: 3.5rem;
  margin-bottom: 12px;
}

/* Voice list */
.voice-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Order group */
.voice-order-group {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}

.voice-order-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-size: 13px;
  font-weight: 600;
}

.voice-order-badge {
  background: rgba(255,255,255,0.25);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 12px;
}

/* Voice card */
.voice-card {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.15s;
}

.voice-card:last-child {
  border-bottom: none;
}

.voice-card:hover {
  background: #fafbff;
}

.voice-card-thumb {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #e5e5e5;
  display: block;
  background: #f5f5f5;
}

.voice-card-thumb-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  background: #f0f0f5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}

.voice-card-body {
  min-width: 0;
  flex: 1;
}

.voice-card-meta {
  font-size: 12px;
  color: #888;
  margin-bottom: 4px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.voice-status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.voice-status-badge.pending  { background: #fff3cd; color: #856404; }
.voice-status-badge.published { background: #d1fae5; color: #065f46; }
.voice-status-badge.archived  { background: #f3f4f6; color: #6b7280; }

.voice-card-text-preview {
  font-size: 14px;
  color: #444;
  line-height: 1.45;
  margin-bottom: 6px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.voice-card-audio {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #667eea;
}

.voice-card-audio audio {
  height: 32px;
  max-width: 220px;
}

.voice-card-published-url {
  font-size: 12px;
  color: #667eea;
  word-break: break-all;
  margin-top: 4px;
}

.voice-card-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
  flex-shrink: 0;
}

/* Voice action buttons */
.btn-voice-action {
  padding: 7px 14px;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
  white-space: nowrap;
}

.btn-voice-action:hover { opacity: 0.85; transform: translateY(-1px); }
.btn-voice-action:active { transform: translateY(0); }
.btn-voice-action:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-voice-publish  { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; }
.btn-voice-archive  { background: #f3f4f6; color: #374151; }
.btn-voice-restore  { background: #d1fae5; color: #065f46; }
.btn-voice-copy-url { background: linear-gradient(135deg, #0084ff 0%, #0078e7 100%); color: #fff; }
.btn-voice-show-qr  { background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%); color: #fff; }
.btn-voice-secondary { background: #f3f4f6; color: #374151; }
.btn-voice-download-qr { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; }

/* QR Modal */
.voice-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
}

.voice-modal-box {
  background: #fff;
  border-radius: 16px;
  padding: 28px 28px 24px;
  max-width: 340px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.voice-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: #222;
  margin-bottom: 20px;
}

.voice-qr-frame {
  display: inline-block;
  padding: 12px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  margin-bottom: 14px;
}

.voice-qr-frame canvas,
.voice-qr-frame img {
  display: block;
}

.voice-modal-slug {
  font-family: ui-monospace, monospace;
  font-size: 13px;
  color: #555;
  margin-bottom: 4px;
}

.voice-modal-url {
  font-size: 12px;
  color: #667eea;
  word-break: break-all;
  margin-bottom: 18px;
}

.voice-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}


/* Mobile voice tab */
@media (max-width: 768px) {
  .admin-tabs {
    margin-bottom: 18px;
  }

  .admin-tab-btn {
    padding: 9px 16px;
    font-size: 14px;
  }

  .voice-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .voice-filter-bar {
    justify-content: center;
  }

  .btn-voice-refresh {
    text-align: center;
  }

  .voice-card {
    grid-template-columns: 64px 1fr;
    grid-template-rows: auto auto;
  }

  .voice-card-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .voice-card-thumb,
  .voice-card-thumb-placeholder {
    width: 64px;
    height: 64px;
  }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
  body {
    padding: 8px;
  }

  .admin-header h1 {
    font-size: 1.5rem;
  }

  .subtitle {
    font-size: 0.9rem;
  }

  .search-section {
    padding: 16px 12px;
  }

  #phone-search {
    padding: 10px 14px;
    font-size: 16px;
  }

  .btn-primary {
    padding: 10px 16px;
    font-size: 15px;
  }

  .results-section {
    padding: 16px 12px;
  }

  .results-header h2 {
    font-size: 1.25rem;
  }

  .result-info {
    font-size: 13px;
  }

  .upload-session-card {
    padding: 12px;
  }

  .session-badge {
    font-size: 12px;
    padding: 5px 12px;
  }

  .session-info {
    padding: 10px;
  }

  .session-images-row {
    gap: 10px;
  }

  .session-image {
    width: 140px;
    height: 140px;
  }

  .no-results {
    padding: 40px 16px;
  }

  .empty-icon {
    font-size: 3.5rem;
  }

  .empty-state h3 {
    font-size: 1.1rem;
  }
}
