/* Glow/Glass theme for Keystore workspace */

:root {
  --bg: #0b0f1a;
  --bg-elev: rgba(17, 21, 34, 0.6);
  --card: rgba(20, 26, 44, 0.55);
  --border: rgba(114, 137, 218, 0.25);
  --muted: #96a0b5;
  --text: #e8ecf8;
  --primary: #6c8cff;
  --accent: #a46cff;
  --success: #3bd671;
  --danger: #ff5171;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(108, 140, 255, 0.08);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body.bg {
  margin: 0;
  color: var(--text);
  background: radial-gradient(1200px 1200px at var(--mx, 60%) var(--my, 20%), rgba(108,140,255,0.08), transparent 60%),
              radial-gradient(900px 900px at 20% 80%, rgba(164,108,255,0.08), transparent 60%),
              linear-gradient(180deg, #0a0e18 0%, #0b1020 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  letter-spacing: 0.15px;
}

.center-wrap {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 24px;
}

.glass {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)) , var(--card);
  backdrop-filter: saturate(130%) blur(16px);
  -webkit-backdrop-filter: saturate(130%) blur(16px);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow), 0 0 30px rgba(108, 140, 255, 0.05);
}

.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(600px 600px at var(--mx, 60%) var(--my, 20%), rgba(108,140,255,0.10), transparent 50%),
              radial-gradient(500px 500px at 20% 80%, rgba(164,108,255,0.10), transparent 50%);
  pointer-events: none;
  opacity: 0.6;
}

.card { padding: 18px 18px 20px; }

.title { font-size: 20px; font-weight: 700; }
.subtitle { font-size: 12px; color: var(--muted); }

.alert {
  padding: 10px 12px;
  border-radius: 12px;
  margin: 10px 0 14px;
  color: #ffd9e0;
  background: rgba(255, 81, 113, 0.12);
  border: 1px solid rgba(255, 81, 113, 0.35);
  box-shadow: 0 0 24px rgba(255, 81, 113, 0.12) inset, 0 8px 24px rgba(255, 81, 113, 0.08);
}

.form { 
  display: grid; 
  gap: 12px; 
}

.form label { 
  display: block; 
  margin: 0 0 6px; 
  color: var(--muted); 
  font-size: 12px; 
}

.form input {
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(118, 140, 200, 0.25);
  background: rgba(12, 18, 34, 0.7);
  color: var(--text);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

@media (max-width: 768px) {
  .form {
    gap: 10px;
  }

  .form input {
    padding: 10px 12px;
    font-size: 16px; /* Prevent zoom on iOS */
  }
}

/* Login form improvements */
.center-wrap .glass.card .form {
  gap: 16px;
}

.center-wrap .glass.card .form input {
  padding: 14px 16px;
  font-size: 16px;
}

.center-wrap .glass.card .btn {
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 600;
}
.form input::placeholder { color: #7f8aa4; }

/* OTP input styling */
.form input[type="text"][maxlength="6"] {
  text-align: center;
  letter-spacing: 0.5em;
  font-weight: 600;
  font-size: 18px;
  padding: 16px 20px;
}
.form input:focus {
  border-color: rgba(108, 140, 255, 0.7);
  box-shadow: 0 0 0 4px rgba(108, 140, 255, 0.12), 0 0 0 1px rgba(108, 140, 255, 0.2) inset;
  background: rgba(12, 18, 34, 0.85);
}

/* Styled select to match inputs */
.form select {
  width: 100%;
  padding: 12px 36px 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(118, 140, 200, 0.25);
  background: rgba(12, 18, 34, 0.7);
  color: var(--text);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236c8cff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 18px 18px;
}
.form select:focus {
  border-color: rgba(108, 140, 255, 0.7);
  box-shadow: 0 0 0 4px rgba(108, 140, 255, 0.12), 0 0 0 1px rgba(108, 140, 255, 0.2) inset;
  background: rgba(12, 18, 34, 0.85);
}
.form select:hover {
  border-color: rgba(108, 140, 255, 0.5);
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(118, 140, 200, 0.28);
  color: var(--text);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02)) , rgba(16, 22, 38, 0.8);
  cursor: pointer;
  transition: transform .1s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(180px 180px at var(--px, 50%) var(--py, 50%), rgba(108, 140, 255, 0.16), transparent 60%);
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
}

.btn:hover { transform: translateY(-1px); border-color: rgba(108, 140, 255, 0.5); box-shadow: 0 8px 20px rgba(108, 140, 255, 0.12); }
.btn:hover::before { opacity: 1; }
.btn:active { transform: translateY(0); }

.btn.primary {
  border-color: rgba(108, 140, 255, 0.6);
  background: linear-gradient(180deg, rgba(108,140,255,0.28), rgba(108,140,255,0.16)) , rgba(16, 22, 38, 0.85);
  box-shadow: 0 10px 24px rgba(108, 140, 255, 0.18), inset 0 0 0 1px rgba(255,255,255,0.04);
}
.btn.danger { border-color: rgba(255, 81, 113, 0.5); background: linear-gradient(180deg, rgba(255,81,113,0.22), rgba(255,81,113,0.12)) , rgba(16,22,38,0.85); }
.btn.ghost { background: transparent; }
.btn.sm { padding: 6px 10px; border-radius: 10px; font-size: 12px; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  margin: 14px;
  position: sticky;
  top: 10px;
  z-index: 20;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  
  .nav > div:first-child {
    justify-content: center;
  }
  
  .nav > div:last-child {
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
  }
}

.container { 
  padding: 12px 14px; 
}

@media (max-width: 768px) {
  .container {
    padding: 8px 8px;
  }
}

.two-col { 
  display: grid; 
  grid-template-columns: 1fr; 
  gap: 14px; 
}

@media (min-width: 960px) { 
  .two-col { 
    grid-template-columns: 360px 1fr; 
  } 
}

@media (max-width: 768px) {
  .two-col {
    gap: 12px;
  }
}

/* Responsive design for title section */
@media (max-width: 768px) {
  .title-section {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  
  .title-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  
  .search-container {
    min-width: auto;
  }
  
  .delete-expired-btn {
    justify-content: center;
    padding: 10px 16px;
    font-size: 14px;
  }
}

/* Mobile Cards */
.mobile-cards {
  display: none;
  gap: 12px;
}

.mobile-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(118, 140, 200, 0.18);
  border-radius: 12px;
  padding: 16px;
  transition: all 0.2s ease;
}

.mobile-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(118, 140, 200, 0.25);
}

.mobile-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  gap: 12px;
}

.mobile-key-info {
  flex: 1;
  min-width: 0;
}

.mobile-key {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.mobile-uuid {
  font-size: 12px;
  color: var(--muted);
  word-break: break-all;
}

.mobile-card-body {
  margin-bottom: 16px;
}

.mobile-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid rgba(118, 140, 200, 0.1);
}

.mobile-row:last-child {
  border-bottom: none;
}

.mobile-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  min-width: 80px;
}

.mobile-value {
  font-size: 13px;
  text-align: right;
  word-break: break-all;
  max-width: 60%;
}

.mobile-card-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.mobile-empty {
  text-align: center;
  padding: 32px 16px;
  color: var(--muted);
  font-size: 14px;
}

/* Responsive Table */
.desktop-table {
  display: table;
}

@media (max-width: 1024px) {
  .desktop-table {
    display: none;
  }
  
  .mobile-cards {
    display: flex;
    flex-direction: column;
  }
  
  .table-wrap {
    overflow: visible;
  }
}

.card-title { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  gap: 12px; 
  margin-bottom: 10px; 
}

.title-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.title-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.delete-expired-form {
  margin: 0;
}

.delete-expired-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.2s ease;
  background: linear-gradient(135deg, #ff5171, #ff6b8a);
  border: 1px solid rgba(255, 81, 113, 0.3);
  box-shadow: 0 2px 8px rgba(255, 81, 113, 0.2);
}

.delete-expired-btn:hover {
  background: linear-gradient(135deg, #ff3d5f, #ff5171);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 81, 113, 0.3);
}

.delete-expired-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(255, 81, 113, 0.4);
}

.delete-expired-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 81, 113, 0.3), 0 2px 8px rgba(255, 81, 113, 0.2);
}

.btn-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.search-container {
  position: relative;
  min-width: 280px;
}

.search-container .search {
  width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(118, 140, 200, 0.25);
  background: rgba(12, 18, 34, 0.7);
  color: var(--text);
  font-size: 13px;
  transition: all 0.2s ease;
}

.search-container .search:focus {
  border-color: rgba(108, 140, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(108, 140, 255, 0.12);
  background: rgba(12, 18, 34, 0.85);
}

.search-container .search::placeholder {
  color: #7f8aa4;
  font-size: 12px;
}

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat { padding: 12px; border-radius: 12px; text-align: center; }
.stat .label { color: var(--muted); font-size: 12px; }
.stat .value { font-size: 22px; font-weight: 800; letter-spacing: 0.4px; }

.table-wrap { overflow: auto; border-radius: 12px; border: 1px solid rgba(118,140,200,0.18); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 720px; }
.table th, .table td { padding: 10px 12px; text-align: left; }
.table thead th { color: var(--muted); font-weight: 600; background: rgba(255,255,255,0.02); }
.table tbody tr { border-top: 1px solid rgba(118,140,200,0.14); transition: background .15s ease; }
.table tbody tr:hover { background: rgba(108,140,255,0.06); }

.badge { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 999px; font-size: 12px; border: 1px solid transparent; white-space: nowrap; }
.badge.success { color: #d6ffea; background: rgba(59,214,113,0.12); border-color: rgba(59,214,113,0.45); box-shadow: 0 0 20px rgba(59,214,113,0.15) inset; }
.badge.danger { color: #ffe1e7; background: rgba(255,81,113,0.12); border-color: rgba(255,81,113,0.45); box-shadow: 0 0 20px rgba(255,81,113,0.15) inset; }

.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }
.truncate { max-width: 280px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.full-key { white-space: normal; word-break: break-all; }

/* Key blur effect */
.key-blur {
  filter: blur(4px);
  transition: filter 0.3s ease;
  user-select: none;
}
.key-blur.revealed {
  filter: blur(0);
  user-select: text;
}

.actions { display: flex; gap: 8px; align-items: center; flex-wrap: nowrap; }
.inline { display: inline-flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
.table td.actions { white-space: nowrap; }
.actions .inline input[type="date"],
.actions .inline input[type="datetime-local"] { width: 150px; min-width: 140px; }

.search {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(118, 140, 200, 0.28);
  background: rgba(12, 18, 34, 0.7);
  color: var(--text);
  outline: none;
}
.search::placeholder { color: #7f8aa4; }
.search:focus { border-color: rgba(108, 140, 255, 0.6); box-shadow: 0 0 0 4px rgba(108, 140, 255, 0.12); }

/* Override for search container */
.search-container .search {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%) translateY(20px);
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--text);
  background: rgba(16, 22, 38, 0.9);
  border: 1px solid rgba(108, 140, 255, 0.4);
  box-shadow: 0 10px 30px rgba(108, 140, 255, 0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Subtle floating glow blobs (decorative) */
.bg::after, .bg::before {
  content: "";
  position: fixed;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.12;
  z-index: 0;
  pointer-events: none;
}
.bg::before { background: radial-gradient(circle at 30% 30%, var(--primary), transparent 60%); top: -80px; left: -40px; animation: floatA 12s ease-in-out infinite; }
.bg::after { background: radial-gradient(circle at 70% 70%, var(--accent), transparent 60%); bottom: -80px; right: -40px; animation: floatB 14s ease-in-out infinite; }

@keyframes floatA { 0%, 100% { transform: translate(0,0) scale(1); } 50% { transform: translate(20px, 10px) scale(1.06); } }
@keyframes floatB { 0%, 100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-16px, -12px) scale(1.05); } }

/* Modal */
.modal-overlay { 
  position: fixed; 
  inset: 0; 
  display: none; 
  align-items: center; 
  justify-content: center; 
  background: rgba(5, 8, 16, 0.8); 
  backdrop-filter: blur(8px);
  z-index: 50; 
  padding: 16px;
}

.modal-overlay.show { 
  display: flex; 
  animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal {
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal { 
  width: 100%; 
  max-width: 480px; 
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(118, 140, 200, 0.2);
  background: rgba(255, 255, 255, 0.02);
}

.modal-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-title h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.modal-icon {
  width: 20px;
  height: 20px;
  color: var(--primary);
  flex-shrink: 0;
}

.modal-close {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.modal-close svg {
  width: 18px;
  height: 18px;
}

.modal-body {
  padding: 24px;
}

.modal-form {
  margin-bottom: 24px;
}

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

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

.form-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.label-icon {
  width: 16px;
  height: 16px;
  color: var(--primary);
  flex-shrink: 0;
}

.form-input,
.form-select {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(118, 140, 200, 0.25);
  background: rgba(12, 18, 34, 0.7);
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease;
}

.form-input:focus,
.form-select:focus {
  border-color: rgba(108, 140, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(108, 140, 255, 0.12);
  background: rgba(12, 18, 34, 0.85);
}

.form-input::placeholder {
  color: #7f8aa4;
}

.modal-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.action-left {
  flex: 1;
}

.action-right {
  display: flex;
  gap: 12px;
}

.btn-reset {
  background: linear-gradient(135deg, #ff5171, #ff6b8a);
  border: 1px solid rgba(255, 81, 113, 0.3);
  color: white;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-reset:hover {
  background: linear-gradient(135deg, #ff3d5f, #ff5171);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 81, 113, 0.3);
}

.btn-reset:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(255, 81, 113, 0.4);
}

.btn-reset:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 81, 113, 0.3), 0 4px 12px rgba(255, 81, 113, 0.2);
}

.btn-cancel {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(118, 140, 200, 0.25);
  color: var(--text);
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-cancel:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(118, 140, 200, 0.35);
}

.btn-confirm {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: 1px solid rgba(108, 140, 255, 0.3);
  color: white;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-confirm:hover {
  background: linear-gradient(135deg, #5a7cff, #8f5cff);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(108, 140, 255, 0.3);
}

.btn-confirm:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(108, 140, 255, 0.4);
}

.btn-confirm:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(108, 140, 255, 0.3), 0 4px 12px rgba(108, 140, 255, 0.2);
}

@media (max-width: 768px) {
  .modal-overlay {
    padding: 8px;
  }
  
  .modal {
    max-width: 100%;
    margin: 8px;
  }
  
  .modal-header {
    padding: 16px 20px;
  }
  
  .modal-body {
    padding: 20px;
  }
  
  .modal-actions {
    flex-direction: column;
    gap: 12px;
  }
  
  .action-left,
  .action-right {
    width: 100%;
  }
  
  .action-right {
    justify-content: stretch;
  }
  
  .btn-cancel,
  .btn-confirm {
    flex: 1;
    text-align: center;
  }
}

/* Delete Modal Styles */
.delete-modal .modal-icon.danger-icon {
  color: var(--danger);
}

.delete-warning {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  padding: 20px;
  background: rgba(255, 81, 113, 0.08);
  border: 1px solid rgba(255, 81, 113, 0.2);
  border-radius: 12px;
}

.warning-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: rgba(255, 81, 113, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.warning-icon svg {
  width: 24px;
  height: 24px;
  color: var(--danger);
}

.warning-content {
  flex: 1;
}

.warning-content h4 {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.warning-text {
  margin: 0 0 16px 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.key-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: rgba(12, 18, 34, 0.5);
  border-radius: 8px;
  border: 1px solid rgba(118, 140, 200, 0.2);
}

.key-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  min-width: 40px;
}

.key-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 13px;
  color: var(--text);
  word-break: break-all;
}

.btn-delete {
  background: linear-gradient(135deg, var(--danger), #ff6b8a);
  border: 1px solid rgba(255, 81, 113, 0.3);
  color: white;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-delete:hover {
  background: linear-gradient(135deg, #ff3d5f, var(--danger));
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 81, 113, 0.3);
}

.btn-delete:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(255, 81, 113, 0.4);
}

.btn-delete:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 81, 113, 0.3), 0 4px 12px rgba(255, 81, 113, 0.2);
}

@media (max-width: 768px) {
  .delete-warning {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .warning-content h4 {
    font-size: 15px;
  }

  .warning-text {
    font-size: 13px;
  }

  .key-preview {
    justify-content: center;
  }
}

/* Session Timer Styles */
.session-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.session-label {
  font-weight: 500;
  white-space: nowrap;
}

.session-timer {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  min-width: 50px;
  text-align: center;
  transition: all 0.3s ease;
}

.session-timer.normal {
  color: var(--success);
  background: rgba(59, 214, 113, 0.12);
  border: 1px solid rgba(59, 214, 113, 0.3);
}

.session-timer.caution {
  color: #ffb347;
  background: rgba(255, 179, 71, 0.12);
  border: 1px solid rgba(255, 179, 71, 0.3);
}

.session-timer.warning {
  color: var(--danger);
  background: rgba(255, 81, 113, 0.12);
  border: 1px solid rgba(255, 81, 113, 0.3);
  animation: pulse 1s ease-in-out infinite;
}

.session-timer.expired {
  color: var(--danger);
  background: rgba(255, 81, 113, 0.2);
  border: 1px solid rgba(255, 81, 113, 0.5);
  animation: pulse 0.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

@media (max-width: 768px) {
  .session-info {
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
  }

  .session-label {
    font-size: 11px;
  }

  .session-timer {
    font-size: 11px;
    padding: 2px 6px;
    min-width: 45px;
  }
}

/* Login/OTP responsive styles */
@media (max-width: 768px) {
  .center-wrap .glass.card {
    max-width: 100% !important;
    margin: 0 16px;
    padding: 20px !important;
  }

  .center-wrap {
    padding: 16px;
  }
}

