.ratemo-og-wrap {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Upload alanı */
.ratemo-og-upload-area {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 2px dashed #d1c4b0;
  border-radius: 16px;
  padding: 60px 24px;
  background: #faf8f5;
  transition: border-color 0.2s, background 0.2s;
}

.ratemo-og-upload-area:hover {
  border-color: #8b6f47;
  background: #f5f0e8;
}

.ratemo-og-hint {
  font-size: 13px;
  color: #9e8c78;
  margin: 0;
}

/* Canvas */
.ratemo-og-canvas-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#ratemo-canvas {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
  display: block;
  cursor: default;
}

/* Kontroller */
.ratemo-og-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  background: #faf8f5;
  border-radius: 12px;
  padding: 16px 20px;
  border: 1px solid #e8e0d4;
}

.ratemo-og-control-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 180px;
}

.ratemo-og-control-group label {
  font-size: 13px;
  font-weight: 600;
  color: #5c4a35;
  white-space: nowrap;
  min-width: 60px;
}

.ratemo-og-control-group input[type="range"] {
  flex: 1;
  accent-color: #8b6f47;
  cursor: pointer;
}

.ratemo-og-control-group span {
  font-size: 12px;
  color: #8b6f47;
  font-weight: 600;
  min-width: 36px;
  text-align: right;
}

/* Aksiyonlar */
.ratemo-og-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* Butonlar */
.ratemo-og-btn-upload,
.ratemo-og-btn-primary,
.ratemo-og-btn-secondary,
.ratemo-og-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  line-height: 1;
}

.ratemo-og-btn-upload {
  background: #8b6f47;
  color: #fff;
  padding: 14px 28px;
  font-size: 15px;
  border-radius: 10px;
}

.ratemo-og-btn-upload:hover {
  background: #6d5535;
  transform: translateY(-1px);
}

.ratemo-og-btn-primary {
  background: #8b6f47;
  color: #fff;
  margin-left: auto;
}

.ratemo-og-btn-primary:hover {
  background: #6d5535;
}

.ratemo-og-btn-secondary {
  background: #f0ebe3;
  color: #5c4a35;
  border: 1px solid #d1c4b0;
}

.ratemo-og-btn-secondary:hover {
  background: #e5ddd0;
}

.ratemo-og-btn-ghost {
  background: transparent;
  color: #9e8c78;
  border: 1px solid #d1c4b0;
}

.ratemo-og-btn-ghost:hover {
  color: #5c4a35;
  border-color: #8b6f47;
}

@media (max-width: 600px) {
  .ratemo-og-controls {
    flex-direction: column;
  }
  .ratemo-og-actions {
    flex-direction: column;
  }
  .ratemo-og-btn-primary {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }
}

/* ── WooCommerce Trigger Butonu ── */
#ratemo-wc-trigger-wrap {
  margin-top: 12px;
}

.ratemo-og-btn-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  justify-content: center;
  padding: 12px 20px;
  background: #faf8f5;
  color: #5c4a35;
  border: 1.5px solid #d1c4b0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.ratemo-og-btn-trigger:hover {
  background: #f0ebe3;
  border-color: #8b6f47;
  color: #3d2e1e;
}

/* ── Modal ── */
.ratemo-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.ratemo-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 20, 10, 0.6);
  backdrop-filter: blur(4px);
}

.ratemo-modal-inner {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px 24px;
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  animation: ratemo-modal-in 0.25s ease;
}

@keyframes ratemo-modal-in {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.ratemo-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: #3d2e1e;
  margin: 0 0 20px;
}

.ratemo-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: #9e8c78;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

.ratemo-modal-close:hover {
  color: #3d2e1e;
  background: #f0ebe3;
}

@media (max-width: 600px) {
  .ratemo-modal-inner {
    padding: 20px 16px 16px;
    border-radius: 12px;
  }
}

/* ── Admin Paneli ── */
.ratemo-admin-wrap {
  max-width: 900px;
  padding: 24px 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.ratemo-admin-wrap h1 {
  font-size: 22px;
  font-weight: 700;
  color: #3d2e1e;
  margin-bottom: 6px;
}

.ratemo-admin-desc {
  color: #888;
  margin-bottom: 24px;
  font-size: 14px;
}

.ratemo-admin-card {
  background: #fff;
  border: 1px solid #e8e0d4;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.ratemo-admin-card h2 {
  font-size: 16px;
  font-weight: 600;
  color: #3d2e1e;
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ratemo-count {
  background: #8b6f47;
  color: #fff;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 600;
}

.ratemo-admin-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ratemo-admin-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #5c4a35;
  margin-bottom: 6px;
}

.ratemo-admin-field input[type="text"] {
  width: 100%;
  max-width: 400px;
  padding: 8px 12px;
  border: 1px solid #d1c4b0;
  border-radius: 6px;
  font-size: 14px;
}

.ratemo-admin-upload-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.ratemo-admin-upload-row input {
  flex: 1;
  max-width: 340px;
}

.ratemo-admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.ratemo-admin-table th {
  text-align: left;
  padding: 8px 12px;
  background: #faf8f5;
  border-bottom: 1px solid #e8e0d4;
  font-size: 12px;
  font-weight: 600;
  color: #8b6f47;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ratemo-admin-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f0ebe3;
  vertical-align: middle;
}

.ratemo-admin-table tr:last-child td {
  border-bottom: none;
}

/* ── Login Gate ── */
.ratemo-login-gate {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 24px 24px;
  gap: 16px;
}

.ratemo-login-gate-icon {
  width: 80px;
  height: 80px;
  background: #faf8f5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #e8e0d4;
}

.ratemo-login-gate h3 {
  font-size: 22px;
  font-weight: 700;
  color: #3d2e1e;
  margin: 0;
}

.ratemo-login-gate p {
  color: #7a6a58;
  font-size: 15px;
  margin: 0;
  max-width: 320px;
}

.ratemo-login-gate-benefits {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #faf8f5;
  border-radius: 10px;
  padding: 16px 24px;
  border: 1px solid #e8e0d4;
}

.ratemo-login-gate-benefits span {
  font-size: 14px;
  color: #5c4a35;
  font-weight: 500;
}

.ratemo-login-gate-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 4px;
}

.ratemo-login-gate-actions .ratemo-og-btn-primary {
  padding: 12px 28px;
  font-size: 15px;
  text-decoration: none;
}

.ratemo-login-gate-actions .ratemo-og-btn-secondary {
  padding: 12px 24px;
  font-size: 15px;
  text-decoration: none;
}

/* ── Mod Seçimi ── */
.ratemo-mode-select {
  display: flex;
  gap: 16px;
  justify-content: center;
  padding: 40px 24px;
}

.ratemo-mode-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px 36px;
  background: #faf8f5;
  border: 2px solid #d1c4b0;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  color: #5c4a35;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  min-width: 140px;
}

.ratemo-mode-btn:hover {
  background: #f0ebe3;
  border-color: #8b6f47;
  color: #3d2e1e;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(139,111,71,0.15);
}

/* ── Kamera ── */
.ratemo-camera-wrap {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}

#ratemo-video {
  width: 100%;
  display: block;
  border-radius: 12px;
}

#ratemo-camera-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  cursor: default;
}

.ratemo-camera-error {
  padding: 40px;
  text-align: center;
  color: #c0392b;
  font-size: 14px;
  font-weight: 600;
  background: #fdf0ef;
  border-radius: 12px;
}

@media (max-width: 600px) {
  .ratemo-mode-select {
    flex-direction: column;
    align-items: center;
    padding: 24px 16px;
  }
  .ratemo-mode-btn {
    width: 100%;
    flex-direction: row;
    justify-content: center;
    padding: 16px 24px;
  }
}
