/* Reset и базовые стили */
:root {
  --bg-color: #ffffff;
  --text-color: #222222;
  --primary-color: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

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

body {
  padding: 100px 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: rgb(242, 242, 242);
  min-height: 100vh;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
}

li {
  list-style-type: none;
}

.container  {
  width: 100%;
  margin: 0 auto;
  padding: 0 15px;
}


/* Main content */
.main-content {
  margin: 0 auto;
  padding: 0 10px;
}

.main-content h2 {
  font-size: 18px;
  font-weight: 600;
}

/* Cards */
.card {
  background: var(--primary-color);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 25px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.key-card {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.key-info {
  flex: 1;
}

.key-name {
  display: flex;
  align-items: center;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

.key-name::before {
  content: "🔐";
  margin-right: 8px;
  font-size: 18px;
}

.key-url {
  font-size: 12px;
  color: #666;
  word-break: break-all;
  background: #f8f9fa;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  margin-top: 8px;
}

.key-url a {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
}

.key-url a:hover {
  text-decoration: underline;
}

.btn-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 15px;
}

.delete-btn {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 35px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.delete-btn:hover {
  background: linear-gradient(135deg, #f44141 0%, #e3362d 100%);
}

.delete-btn:active {
  transform: scale(0.95);
}

/* Buttons */
.primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  margin-top: 20px;
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

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

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

/* Loading state */
.loading {
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  padding: 40px 20px;
}

.loading::after {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
  margin-left: 10px;
}

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

/* Empty state */
.empty-state {
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  padding: 40px 20px;
}

.empty-state::before {
  content: "🔑";
  font-size: 48px;
  display: block;
  margin-bottom: 16px;
}

/* Bottom navigation */
.bottom-menu {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--primary-color);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  padding: 8px 0;
  z-index: 100;
}

.nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 8px;
  border: none;
  background: none;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
}

.nav-btn.active {
  color: #c8c8c8;
}

.nav-btn:hover {
  color: #e6e6e6;
}

.nav-icon {
  font-size: 20px;
  margin-bottom: 4px;
}

/* Stats */
.stats-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.stat-item {
  background: rgba(255, 255, 255, 0.9);
  padding: 16px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  color: #667eea;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12px;
  color: #666;
  font-weight: 500;
}

/* Support */
.support-card {
  text-align: center;
  padding: 32px 20px;
}

.support-card a {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
}

.support-card a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 480px) {
  
  .card {
    padding: 16px;
  }
  
  .key-card {
    flex-direction: column;
  }
  
  .key-info {
    margin-right: 0;
  }
  
  .delete-btn {
    align-self: flex-end;
  }
}

/* Dark mode support */