.token-card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 20px;
  transition: var(--transition);
  cursor: grab;
  position: relative;
  overflow: hidden;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: element;
}

.token-card:active {
  cursor: grabbing;
}

.token-card.dragging {
  opacity: 0.4;
  border: 2px dashed var(--primary);
}

.token-card.drag-over {
  border-top: 4px solid var(--success);
  transform: translateY(4px);
}

/* Skeleton Loading */
@keyframes skeletonLoading {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

.skeleton {
  position: relative;
  overflow: hidden;
  background-color: #e5e7eb;
  border-radius: var(--radius-sm);
}

.skeleton::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.6),
      transparent);
  animation: skeletonLoading 1.5s infinite;
}

[data-theme="dark"] .skeleton {
  background-color: #21262d;
}

[data-theme="dark"] .skeleton::after {
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.08),
      transparent);
}

.token-card.is-loading .token-icon,
.token-card.is-loading .token-name,
.token-card.is-loading .token-account,
.token-card.is-loading .token-otp,
.token-card.is-loading .token-timer {
  position: relative;
  overflow: hidden;
  color: transparent !important;
  border-color: var(--border) !important;
  background-image: none !important;
}

.token-card.is-loading .token-icon {
  border-radius: var(--radius-lg);
}

.token-card.is-loading .token-name {
  height: 20px;
  width: 60%;
  margin-bottom: 8px;
  border-radius: 4px;
}

.token-card.is-loading .token-account {
  height: 14px;
  width: 40%;
  border-radius: 4px;
}

.token-card.is-loading .token-otp {
  height: 44px;
  /* Matches padding + font-size of real OTP box */
  width: 130px;
  border-radius: var(--radius);
}

.token-card.is-loading .token-timer {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
}

.token-card.is-loading .edit-btn {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .token-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
  }
}

.token-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.token-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  color: white;
  flex-shrink: 0;
}

.token-icon span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
}

.token-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.token-icon.social {
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
}

.token-icon.finance {
  background: linear-gradient(135deg, #10b981, #059669);
}

.token-icon.work {
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
}

.token-icon.gaming {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.token-icon.other {
  background: linear-gradient(135deg, #6b7280, #374151);
}

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

.token-name {
  font-weight: 600;
  font-size: 16px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.token-issuer {
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.token-account {
  font-size: 13px;
  color: var(--text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.token-card-body {
  margin-top: 12px;
}

.token-otp-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.token-otp {
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
  background: var(--bg-tertiary);
  padding: 6px 16px;
  border-radius: var(--radius);
  width: fit-content;
}

.token-timer {
  position: relative;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.pizza-timer svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  /* Start from top */
  display: block;
}

.pizza-bg {
  fill: var(--bg-tertiary);
}

.pizza-slice {
  fill: none;
  stroke: var(--timer-color);
  transition: stroke 0.3s ease;
}


.edit-btn {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border-radius: var(--radius-lg);
  cursor: pointer;
  font-size: 13px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (hover: hover) and (pointer: fine) {
  .edit-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--on-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
  }
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 80px 24px;
  display: none;
}

.empty-state.active {
  display: block;
}

.empty-icon {
  width: 120px;
  height: 120px;
  background: var(--bg-tertiary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 48px;
  color: var(--text-tertiary);
}

.empty-state h3 {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.empty-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* Buttons */
.btn-primary {
  padding: 12px 24px;
  background: var(--primary);
  color: var(--on-primary);
  border: none;
  border-radius: var(--radius-lg);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
  }
}

.btn-secondary {
  padding: 12px 24px;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

@media (hover: hover) and (pointer: fine) {
  .btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--text-tertiary);
  }
}

.btn-ghost {
  padding: 12px 24px;
  background: transparent;
  color: var(--text-secondary);
  border: none;
  border-radius: var(--radius-lg);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

@media (hover: hover) and (pointer: fine) {
  .btn-ghost:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
  }
}

.btn-danger {
  padding: 12px 24px;
  background: var(--danger);
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

@media (hover: hover) and (pointer: fine) {
  .btn-danger:hover {
    background: var(--danger-hover);
  }
}

.btn-link {
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}

@media (hover: hover) and (pointer: fine) {
  .btn-link:hover {
    text-decoration: underline;
  }
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45); /* Darker overlay without blur */
}

.modal-container {
  position: relative;
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  width: 90%;
  max-width: 440px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(-20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.modal[aria-hidden="false"] .modal-container {
  opacity: 1;
  transform: translateY(0);
}

/* Side Panel Variant */
.modal.side-panel {
  justify-content: flex-end;
  align-items: stretch;
}

.modal.side-panel .modal-container {
  width: 100%;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  border-radius: 0;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
  border-left: none;
}

.modal.side-panel[aria-hidden="false"] .modal-container {
  transform: translateX(0);
  opacity: 1;
}

@media (max-width: 768px) {
  .modal.side-panel .modal-container {
    width: 100%;
  }
}

.modal-lg {
  max-width: 560px;
}

.modal-md {
  max-width: 480px;
}

.modal-sm {
  max-width: 400px;
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h2 {
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-header h2 i {
  color: var(--primary);
}

.modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

@media (hover: hover) and (pointer: fine) {
  .modal-close:hover {
    background: var(--danger);
    color: white;
  }
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  background: var(--bg-tertiary);
  padding: 4px;
  border-radius: var(--radius-lg);
}

.tab {
  flex: 1;
  padding: 10px 16px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

@media (hover: hover) and (pointer: fine) {
  .tab:hover {
    color: var(--text-primary);
  }
}

.tab.active {
  background: var(--bg-primary);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

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

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-group .required {
  color: var(--danger);
}

.form-hint {
  display: block;
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  font-size: 14px;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--bg-primary);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
  font-family: 'SF Mono', monospace;
  font-size: 13px;
}

.form-group select {
  cursor: pointer;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon input {
  padding-right: 140px;
}

.btn-generate-secret {
  position: absolute;
  right: 8px;
  padding: 8px 12px;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

@media (hover: hover) and (pointer: fine) {
  .btn-generate-secret:hover {
    background: var(--primary);
    color: var(--on-primary);
    border-color: var(--primary);
  }
}

/* QR Scanner */
.qr-scanner {
  text-align: center;
}

.qr-placeholder {
  padding: 60px 24px;
  border: 2px dashed var(--border);
  border-radius: var(--radius-xl);
  margin-bottom: 20px;
}

.qr-placeholder i {
  font-size: 64px;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}

.qr-placeholder p {
  color: var(--text-secondary);
  font-size: 14px;
}

.qr-input-wrapper label {
  display: block;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.qr-input-wrapper textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  font-size: 14px;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  transition: var(--transition);
  min-height: 250px;
  resize: vertical;
  font-family: 'SF Mono', monospace;
}

.qr-input-wrapper textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--bg-primary);
}

/* Settings */
.settings-section {
  margin-bottom: 24px;
}

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

.settings-section h3 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.setting-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.setting-item:last-child {
  border-bottom: none;
}

.setting-info label {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  display: block;
}

.setting-info p {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 1px;
}

.select-sm {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-size: 13px;
}

/* Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--border);
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

input:checked+.slider {
  background: var(--primary);
}

[data-theme="dark"] .slider {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
}

[data-theme="dark"] input:checked+.slider {
  background: var(--primary);
  border-color: var(--primary);
}

[data-theme="dark"] input:checked+.slider:before {
  background: var(--on-primary);
}

input:checked+.slider:before {
  transform: translateX(22px);
}

/* Export Options */
.export-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.export-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-tertiary);
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
}

@media (hover: hover) and (pointer: fine) {
  .export-option:hover {
    border-color: var(--primary);
    background: var(--bg-primary);
  }
}

.export-option i {
  font-size: 32px;
  color: var(--primary);
}

.export-option-info h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.export-option-info p {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Import Dropzone */
.import-dropzone {
  padding: 48px 24px;
  border: 2px dashed var(--border);
  border-radius: var(--radius-xl);
  text-align: center;
  margin-bottom: 20px;
  transition: var(--transition);
  cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {

  .import-dropzone:hover,
  .import-dropzone.dragover {
    border-color: var(--primary);
    background: var(--primary-light);
  }
}

.import-dropzone i {
  font-size: 48px;
  color: var(--text-tertiary);
  margin-bottom: 12px;
}

.import-dropzone p {
  color: var(--text-secondary);
  font-size: 14px;
}

.import-preview {
  margin-top: 16px;
  padding: 16px;
  background: var(--bg-tertiary);
  border-radius: var(--radius);
  font-size: 13px;
  display: none;
}

.import-preview.active {
  display: block;
}

/* Detail Modal */
.detail-qr {
  text-align: center;
  padding: 24px;
  background: white;
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
}

.detail-info p {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.detail-info p:last-child {
  border-bottom: none;
}

.detail-info strong {
  color: var(--text-secondary);
}

.detail-info code {
  font-family: 'SF Mono', monospace;
  background: var(--bg-tertiary);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  /* Let clicks pass through empty areas */
}

.toast {
  padding: 14px 20px;
  background: var(--text-primary);
  color: var(--bg-primary);
  border-radius: var(--radius-lg);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideIn 0.3s ease;
  pointer-events: auto;
  /* Re-enable clicks on toast */
  transform: translateX(0);
  /* Final state ensure */
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.toast.success {
  background: var(--success);
  color: white;
}

.toast.error {
  background: var(--danger);
  color: white;
}

.toast.warning {
  background: var(--warning);
  color: white;
}

/* Copy Feedback */
.copy-feedback {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  padding: 16px 32px;
  background: var(--success);
  color: white;
  border-radius: var(--radius-lg);
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 3000;
}

.copy-feedback.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

/* Responsive */
@media (max-width: 768px) {
  .header {
    padding: 12px 16px;
  }

  .header-left {
    display: flex;
    align-items: center;
  }

  .header-right {
    gap: 8px;
  }

  .btn-icon {
    width: 36px;
    height: 36px;
  }

  .categories {
    padding: 12px 16px;
  }

  .category span:not(.badge) {
    display: none;
  }

  .content {
    padding: 0; /* Edge-to-edge list as requested */
  }

  .token-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
  }

  .token-card {
    background: var(--bg-primary);
    border: none;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    padding: 12px 16px; /* Keeping internal padding so content doesn't hit the bezel */
    box-shadow: none;
    transition: background-color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
  }

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

  .token-card:hover {
    transform: none;
    box-shadow: none;
    background-color: var(--bg-primary); /* Disable grey flash on tap toggle */
  }

  .token-card-header {
    margin-bottom: 4px;
    gap: 12px;
  }

  .token-icon {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .token-name {
    font-size: 15px;
  }

  .token-account {
    font-size: 13px;
  }

  .token-otp {
    font-size: 26px;
    padding: 6px 16px; /* Matched exactly with PC */
    line-height: 1; /* Pure height: 26px */
    background: var(--bg-tertiary);
    border: none; /* Removed border to match PC */
    border-radius: var(--radius);
    width: fit-content;
    display: block; /* Simpler block for precise height */
    font-weight: 700;
  }

  .token-card-body {
    padding-left: 52px;
  }

  /* Skeleton Mobile Alignment - Pixel Perfect */
  .token-card.is-loading {
    padding: 12px 16px;
    background: var(--bg-primary);
  }
  
  .token-card.is-loading .token-icon {
    width: 40px;
    height: 40px;
  }
  
  .token-card.is-loading .token-card-header {
    margin-bottom: 4px;
  }
  
  .token-card.is-loading .token-otp {
    height: 38px; /* 26px font + 12px vertical padding = 38px exactly */
    width: 140px;
  }

  .token-timer {
    width: 28px;
    height: 28px;
  }

  .modal-container {
    width: 95%;
    margin: 16px;
  }

  .modal.side-panel .modal-container {
    width: 100%;
    margin: 0;
  }

  .status-bar {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* Copy animation */
.token-card.copied {
  animation: copyPulse 0.4s ease;
}

@keyframes copyPulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.02);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.3);
  }
}

/* Loading spinner */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-tertiary);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-tertiary);
}

/* Main App */
.main-app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Card Ripple Effect */
.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  background-color: rgba(0, 0, 0, 0.08);
  pointer-events: none;
}

[data-theme="dark"] .ripple {
  background-color: rgba(255, 255, 255, 0.12);
}

@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 0.5;
  }

  100% {
    transform: scale(1);
    opacity: 0;
  }
}