/**
 * Okka Ninja Heroes - Global Search & Storage Backup Modal Styles
 * Compact, modern, refined proportions matching redesign design system.
 */

/* Search Overlay */
.ogt-global-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 50px 16px 24px;
  background: rgba(5, 7, 14, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.18s;
}

.ogt-global-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Global Panel Container */
.ogt-global-panel {
  position: relative;
  width: 100%;
  max-width: 620px;
  max-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  background: #0b0e18;
  border: 1px solid rgba(139, 92, 246, 0.22);
  border-radius: 16px;
  padding: 18px 22px;
  box-shadow: 0 20px 50px -8px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.04);
  overflow: hidden;
  transform: translateY(-8px) scale(0.988);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.ogt-global-overlay.open .ogt-global-panel {
  transform: translateY(0) scale(1);
}

html[data-mode="light"] .ogt-global-panel {
  background: #ffffff;
  border-color: rgba(124, 58, 237, 0.2);
  box-shadow: 0 20px 50px -8px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.05);
}

/* Panel Header */
.ogt-global-panel>header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 0;
  border: none;
  flex-shrink: 0;
}

.ogt-global-panel>header small {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2.5px 10px;
  border-radius: 999px;
  background: rgba(168, 85, 247, 0.14);
  border: 1px solid rgba(168, 85, 247, 0.32);
  color: #c084fc;
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
  width: fit-content;
}

html[data-mode="light"] .ogt-global-panel>header small {
  background: rgba(124, 58, 237, 0.1);
  border-color: rgba(124, 58, 237, 0.25);
  color: #7c3aed;
}

.ogt-global-panel h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.015em;
}

html[data-mode="light"] .ogt-global-panel h2 {
  color: #0f172a;
}

/* Search Input Wrap */
.ogt-global-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: #080a13;
  border: 1.5px solid rgba(139, 92, 246, 0.25);
  border-radius: 10px;
  margin-bottom: 12px;
  flex-shrink: 0;
  transition: border-color 0.15s, box-shadow 0.15s;
}

html[data-mode="light"] .ogt-global-input-wrap {
  background: #f8fafc;
  border-color: rgba(139, 92, 246, 0.3);
}

.ogt-global-input-wrap:focus-within {
  border-color: #a855f7;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
}

.ogt-global-input-icon {
  flex-shrink: 0;
  color: #94a3b8;
  width: 15px;
  height: 15px;
}

.ogt-global-input-wrap input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 0.88rem;
  font-family: inherit;
  color: #f8fafc;
  min-width: 0;
}

html[data-mode="light"] .ogt-global-input-wrap input {
  color: #0f172a;
}

.ogt-global-input-wrap input::placeholder {
  color: #64748b;
  font-size: 0.85rem;
}

.ogt-global-input-wrap kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 6px;
  font-size: 0.65rem;
  font-weight: 700;
  font-family: inherit;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  letter-spacing: 0.04em;
}

html[data-mode="light"] .ogt-global-input-wrap kbd {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.08);
  color: #64748b;
}

/* Filter Navigation Tabs */
.ogt-global-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 0 12px 0;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 12px;
  flex-shrink: 0;
}

html[data-mode="light"] .ogt-global-tabs {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

.ogt-global-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  height: 32px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #cbd5e1;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1;
  flex-shrink: 0;
  transition: all 0.14s ease;
}

html[data-mode="light"] .ogt-global-tabs button {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
  color: #475569;
}

.ogt-global-tabs button:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

html[data-mode="light"] .ogt-global-tabs button:hover {
  color: #0f172a;
  background: rgba(0, 0, 0, 0.06);
}

.ogt-global-tabs button.active {
  color: #ffffff;
  background: #7c3aed;
  border-color: #9333ea;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.35);
}

/* Results Container */
.ogt-global-results {
  flex: 1 1 auto;
  overflow-y: auto;
  max-height: 380px;
  min-height: 0;
  padding: 0 4px 4px 0;
  display: flex;
  flex-direction: column;
  overscroll-behavior: contain;
}

.ogt-global-results[hidden] {
  display: none !important;
}

.ogt-global-results::-webkit-scrollbar {
  width: 5px;
}

.ogt-global-results::-webkit-scrollbar-thumb {
  background: #7c3aed;
  border-radius: 999px;
}

.ogt-global-results::-webkit-scrollbar-track {
  background: transparent;
}

/* Section Header (NINJA, SKILL, etc.) */
.ogt-search-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 6px 4px 6px;
  font-size: 0.66rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

/* Individual Search Result Item */
.ogt-search-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: #f8fafc;
  text-decoration: none;
  transition: background-color 0.12s ease;
  margin-bottom: 2px;
  flex-shrink: 0;
}

.ogt-search-item:hover,
.ogt-search-item.is-selected {
  background: rgba(255, 255, 255, 0.04);
}

html[data-mode="light"] .ogt-search-item {
  color: #0f172a;
}

html[data-mode="light"] .ogt-search-item:hover,
html[data-mode="light"] .ogt-search-item.is-selected {
  background: rgba(0, 0, 0, 0.04);
}

.ogt-search-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

/* Thumbnail with Grade Border */
.ogt-search-thumb {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  padding: 1.5px;
  border: 1.5px solid var(--grade-color, rgba(168, 85, 247, 0.3));
  background: #090e17;
  box-shadow: 0 0 6px color-mix(in srgb, var(--grade-color, var(--accent)) 30%, transparent);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ogt-search-thumb[data-grade="UR"] {
  --grade-color: #00e5ff;
}

.ogt-search-thumb[data-grade="SSS"] {
  --grade-color: #ff00d4;
}

.ogt-search-thumb[data-grade="SS"] {
  --grade-color: #ffd000;
}

.ogt-search-thumb[data-grade="S"] {
  --grade-color: #ff4757;
}

.ogt-search-thumb[data-grade="A"] {
  --grade-color: #a855f7;
}

.ogt-search-thumb[data-grade="B"] {
  --grade-color: #3b82f6;
}

.ogt-search-thumb[data-grade="C"] {
  --grade-color: #22c55e;
}

.ogt-search-thumb[data-grade="D"] {
  --grade-color: #94a3b8;
}

.ogt-search-item:hover .ogt-search-thumb {
  box-shadow: 0 0 10px color-mix(in srgb, var(--grade-color, var(--accent)) 50%, transparent);
}

.ogt-search-avatar {
  width: 100%;
  height: 100%;
  border-radius: 6.5px;
  object-fit: cover;
  display: block;
}

.ogt-search-avatar-icon {
  width: 100%;
  height: 100%;
  border-radius: 6.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(124, 58, 237, 0.18);
  color: #c084fc;
  font-size: 1.1rem;
}

.ogt-search-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ogt-search-kicker {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a855f7;
}

.ogt-search-name {
  font-weight: 700;
  font-size: 0.86rem;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html[data-mode="light"] .ogt-search-name {
  color: #0f172a;
}

/* Chakra Display */
.ogt-search-chakra-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  line-height: 1;
}

.ogt-search-chakra-icons {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.ogt-search-chakra-icon {
  width: 12px;
  height: 12px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
  vertical-align: middle;
}

.ogt-search-chakra-gradient-text {
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.01em;
  display: inline-block;
  vertical-align: middle;
}

.ogt-search-desc-text {
  font-size: 0.72rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ogt-search-item-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.ogt-search-fav-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.15rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: transform 0.14s ease, color 0.14s ease;
}

.ogt-search-fav-btn:hover {
  transform: scale(1.15);
  color: #ffffff;
}

.ogt-search-fav-btn.active {
  color: #94a3b8;
}

/* Empty Search State */
.ogt-search-empty {
  padding: 36px 16px;
  text-align: center;
  color: #94a3b8;
}

.ogt-search-empty-icon {
  font-size: 2rem;
  margin-bottom: 8px;
  opacity: 0.6;
}

.ogt-search-empty h3 {
  margin: 0 0 3px;
  font-size: 0.95rem;
  color: #ffffff;
}

html[data-mode="light"] .ogt-search-empty h3 {
  color: #0f172a;
}

.ogt-search-empty p {
  margin: 0;
  font-size: 0.78rem;
}

/* ============================================================
   Backup & Restore Data Panel (Compact)
   ============================================================ */
.ogt-data-panel {
  display: flex;
  flex-direction: column;
  padding: 2px 0 0 0;
  overflow-y: auto;
  max-height: 380px;
}

.ogt-data-panel[hidden] {
  display: none !important;
}

.ogt-data-heading {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ogt-data-heading h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

html[data-mode="light"] .ogt-data-heading h3 {
  color: #0f172a;
}

.ogt-data-help {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #c084fc;
  border: none;
  color: #0f172a;
  font-weight: 800;
  font-size: 0.75rem;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.ogt-data-help:hover {
  background: #a855f7;
  transform: scale(1.08);
}

.ogt-data-panel-intro {
  margin: 4px 0 16px 0;
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.4;
}

/* Action Buttons (Download & Restore) */
.ogt-data-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.ogt-data-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border-radius: 9px;
  font-weight: 800;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.14s ease;
  text-align: center;
  text-decoration: none;
  border: none;
  background: #c084fc;
  color: #0f172a;
  box-shadow: 0 3px 10px rgba(192, 132, 252, 0.25);
  position: relative;
}

.ogt-data-btn:hover {
  background: #d8b4fe;
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(192, 132, 252, 0.35);
}

.ogt-data-btn input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

/* Status Banner */
.ogt-data-status {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 12px;
  display: none;
}

.ogt-data-status.show {
  display: block;
}

.ogt-data-status.success {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #4ade80;
}

.ogt-data-status.error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
}

/* Danger Zone */
.ogt-data-danger-zone {
  background: rgba(239, 68, 68, 0.04);
  border: 1px solid rgba(239, 68, 68, 0.22);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

html[data-mode="light"] .ogt-data-danger-zone {
  background: rgba(239, 68, 68, 0.05);
  border-color: rgba(239, 68, 68, 0.25);
}

.ogt-data-danger-info strong {
  display: block;
  font-size: 0.85rem;
  color: #f87171;
  margin-bottom: 2px;
}

html[data-mode="light"] .ogt-data-danger-info strong {
  color: #dc2626;
}

.ogt-data-danger-info span {
  font-size: 0.74rem;
  color: #94a3b8;
}

html[data-mode="light"] .ogt-data-danger-info span {
  color: #64748b;
}

.ogt-data-danger-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.ogt-data-btn-danger-outline {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 7px;
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.14s ease;
}

.ogt-data-btn-danger-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}

html[data-mode="light"] .ogt-data-btn-danger-outline {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

html[data-mode="light"] .ogt-data-btn-danger-outline:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}

.ogt-data-btn-danger-solid {
  padding: 6px 12px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 7px;
  color: #f87171;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.14s ease;
}

.ogt-data-btn-danger-solid:hover {
  background: rgba(239, 68, 68, 0.22);
  border-color: #ef4444;
}

html[data-mode="light"] .ogt-data-btn-danger-solid {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #dc2626;
}

html[data-mode="light"] .ogt-data-btn-danger-solid:hover {
  background: #dc2626;
  border-color: #dc2626;
  color: #ffffff;
}

.ogt-data-panel>small {
  display: block;
  font-size: 0.74rem;
  color: #64748b;
  line-height: 1.35;
}

/* ============================================================
   Backup Tutorial Modal
   ============================================================ */
.ogt-data-tutorial-overlay {
  position: fixed;
  inset: 0;
  z-index: 10100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(5, 7, 14, 0.85);
  backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.ogt-data-tutorial-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.ogt-data-tutorial-modal {
  width: 100%;
  max-width: 480px;
  background: #0b0e18;
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

html[data-mode="light"] .ogt-data-tutorial-modal {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
}

.ogt-data-tutorial-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ogt-data-tutorial-header span {
  display: inline-flex;
  align-items: center;
  padding: 2.5px 10px;
  border-radius: 999px;
  background: rgba(168, 85, 247, 0.14);
  border: 1px solid rgba(168, 85, 247, 0.32);
  color: #c084fc;
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 3px;
  width: fit-content;
}

html[data-mode="light"] .ogt-data-tutorial-header span {
  background: rgba(124, 58, 237, 0.1);
  border-color: rgba(124, 58, 237, 0.25);
  color: #7c3aed;
}

.ogt-data-tutorial-header h3 {
  margin: 2px 0 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}

html[data-mode="light"] .ogt-data-tutorial-header h3 {
  color: #0f172a;
}

.ogt-data-tutorial-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ogt-data-tutorial-intro {
  margin: 0;
  font-size: 0.8rem;
  color: #94a3b8;
}

.ogt-data-tutorial-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ogt-data-tutorial-steps li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.ogt-data-tutorial-steps li>span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.2);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #c084fc;
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ogt-data-tutorial-steps li strong {
  display: block;
  font-size: 0.82rem;
  color: #ffffff;
  margin-bottom: 2px;
}

html[data-mode="light"] .ogt-data-tutorial-steps li strong {
  color: #0f172a;
}

.ogt-data-tutorial-steps li p {
  margin: 0;
  font-size: 0.75rem;
  color: #94a3b8;
  line-height: 1.35;
}

.ogt-data-tutorial-note {
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid rgba(234, 179, 8, 0.25);
  color: #facc15;
  font-size: 0.74rem;
  line-height: 1.35;
}

.ogt-data-tutorial-start {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  background: #c084fc;
  border: none;
  color: #0f172a;
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-top: 2px;
}

.ogt-data-tutorial-start:hover {
  background: #d8b4fe;
}

/* Clear Data Dialog Confirm */
.ogt-clear-data-overlay {
  position: fixed;
  inset: 0;
  z-index: 10200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(5, 7, 14, 0.85);
  backdrop-filter: blur(12px);
}

.ogt-clear-data-dialog {
  width: 100%;
  max-width: 400px;
  background: #0b0e18;
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75);
  text-align: center;
}

.ogt-clear-data-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.15);
  border: 2px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
  font-size: 1.3rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.ogt-clear-data-dialog h3 {
  margin: 2px 0 0;
  font-size: 1.05rem;
  color: #ffffff;
}

.ogt-clear-data-dialog p {
  margin: 0;
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.4;
}

.ogt-clear-data-warning {
  padding: 6px 10px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 7px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #f87171;
}

.ogt-clear-data-actions {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.ogt-clear-data-actions button {
  flex: 1;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ogt-clear-data-actions button[data-clear-cancel] {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.ogt-clear-data-actions button[data-clear-cancel]:hover {
  background: rgba(255, 255, 255, 0.12);
}

.ogt-clear-data-actions button[data-clear-confirm] {
  background: #dc2626;
  border: 1px solid #ef4444;
  color: #ffffff;
}

.ogt-clear-data-actions button[data-clear-confirm]:hover {
  background: #b91c1c;
}

html[data-mode="light"] .ogt-clear-data-dialog {
  background: #ffffff;
  border-color: rgba(239, 68, 68, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
}

html[data-mode="light"] .ogt-clear-data-dialog h3 {
  color: #0f172a;
}

html[data-mode="light"] .ogt-clear-data-dialog p {
  color: #64748b;
}

html[data-mode="light"] .ogt-clear-data-actions button[data-clear-cancel] {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #1e293b;
}

html[data-mode="light"] .ogt-clear-data-actions button[data-clear-cancel]:hover {
  background: #e2e8f0;
}

/* Mobile Responsiveness */
@media (max-width: 640px) {
  .ogt-global-overlay {
    padding: 16px 10px;
    align-items: center;
  }

  .ogt-global-panel {
    max-height: calc(100vh - 32px);
    border-radius: 14px;
    padding: 16px 14px;
  }

  .ogt-data-danger-zone {
    flex-direction: column;
    align-items: flex-start;
  }

  .ogt-data-danger-actions {
    width: 100%;
  }

  .ogt-data-danger-actions button {
    flex: 1;
  }
}