* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
}

body {
  background-color: #0f0f0f;
  color: #eee;
  line-height: 1.6;
  padding: 20px;
}

/* Header */
.top-header {
  background-color: #1a1a1a;
  padding: 15px 20px;
  border-bottom: 1px solid #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  color: #32ffe1;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Main Content */
.main-content {
  max-width: 700px;
  margin: 40px auto;
  padding: 20px;
  background: #1a1a1a;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(50, 255, 225, 0.1);
}

/* Headings */
h1, h3 {
  color: #32ffe1;
  margin-bottom: 10px;
  text-align: center;
}

/* Tagline */
.tagline {
  text-align: center;
  color: #ccc;
  margin-bottom: 20px;
}

/* Input wrapper */
.input-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

#hashInput {
  padding: 12px 40px 12px 15px;
  width: 100%;
  font-size: 1rem;
  border: 1px solid #444;
  border-radius: 8px;
  background-color: #111;
  color: #fff;
  box-sizing: border-box;
}

/* Clear X Button Inside */
.clear-btn {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: #aaa;
  cursor: pointer;
  user-select: none;
  z-index: 5;
}

.clear-btn:hover {
  color: inherit;
}

/* Buttons */
.action-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 25px;
}

.scan-btn, .crack-btn {
  padding: 12px 24px;
  font-size: 1rem;
  background-color: #32ffe1;
  color: #000;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease-in-out;
}

.scan-btn:hover, .crack-btn:hover {
  background-color: #28e5c4;
}

/* Results */
.result-box {
  padding: 20px;
  border-radius: 10px;
  background-color: #121212;
  color: #fff;
  border: 1px solid #2c2c2c;
  box-shadow: inset 0 0 10px rgba(50, 255, 225, 0.1);
}

.result-success {
  color: #32ffe1;
}

.result-error {
  color: #ff5252;
}

pre {
  background: #101010;
  padding: 15px;
  border-radius: 8px;
  overflow-x: auto;
  font-family: 'Courier New', monospace;
}

/* Status */
.scan-status {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: #bbb;
}

/* Disclaimers */
.disclaimer {
  text-align: center;
  font-size: 0.9rem;
  margin-top: 20px;
  color: #999;
}

.result-card {
  background: #1a1a1a;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(50, 255, 225, 0.1);
  overflow: hidden;
  margin: 20px 0;
  border: 1px solid #2c2c2c;
}

.card-header {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid #333;
}

.card-header i {
  font-size: 24px;
  margin-right: 12px;
  color: #32ffe1;
}

.card-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #32ffe1;
}

.status-badge {
  margin-left: auto;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  background: #121212;
  box-shadow: inset 0 0 5px rgba(50, 255, 225, 0.1);
}

.status-badge.confirmed { color: #32ffe1; }
.status-badge.unconfirmed { color: #ffcc00; }
.status-badge.pending { color: #ff5252; }

.card-body {
  padding: 20px;
}

.data-row {
  display: flex;
  margin-bottom: 12px;
  align-items: flex-start;
}

.data-label {
  flex: 0 0 140px;
  font-weight: 500;
  color: #aaa;
  min-width: 140px;
}

.data-value {
  flex: 1;
  color: #eee;
  word-break: break-all;
  overflow-wrap: break-word;
}

.monospace {
  font-family: 'Courier New', monospace;
  font-size: 14px;
  color: #32ffe1;
}

.card-footer {
  padding: 15px 20px;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid #333;
  text-align: center;
}

.explorer-link, .action-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: rgba(50, 255, 225, 0.1);
  color: #32ffe1 !important;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
  border: 1px solid rgba(50, 255, 225, 0.3);
}

.explorer-link:hover, .action-btn:hover {
  background: rgba(50, 255, 225, 0.2);
  box-shadow: 0 0 10px rgba(50, 255, 225, 0.3);
  transform: translateY(-2px);
}

.explorer-link i, .action-btn i {
  margin-right: 8px;
}

.action-btn {
  background: rgba(54, 185, 204, 0.1);
}

.action-btn:hover {
  background: rgba(54, 185, 204, 0.2);
}

/* Security indicators */
.security-high { color: #32ffe1; }
.security-medium { color: #ffcc00; }
.security-low { color: #ff5252; }

/* Blockchain specific accents */
.blockchain-card.bitcoin .card-header { 
  border-left: 4px solid #f7931a;
}
.blockchain-card.ethereum .card-header { 
  border-left: 4px solid #627eea;
}

/* Warning rows */
.data-row.warning {
  background: rgba(255, 82, 82, 0.1);
  padding: 10px;
  border-radius: 6px;
  margin-top: 15px;
}

/* 🔓 Crack Button Style */
.action-btn {
  background: rgba(255, 193, 7, 0.1);
  color: #ffc107 !important;
  border: 1px solid rgba(255, 193, 7, 0.3);
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.action-btn:hover {
  background: rgba(255, 193, 7, 0.2);
}

/* Hamburger Menu */
.hamburger-btn {
  background: none;
  border: none;
  color: #32ffe1;
  font-size: 1.5rem;
  margin-right: 15px;
  cursor: pointer;
  padding: 10px;
  transition: all 0.2s;
}

.hamburger-btn:hover {
  transform: scale(1.1);
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  left: -300px;
  width: 280px;
  height: 100vh;
  background: #0f1721;
  z-index: 1000;
  transition: 0.3s;
  box-shadow: 2px 0 10px rgba(0,0,0,0.3);
}

.sidebar.active {
  left: 0;
}

.sidebar-header {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.close-sidebar {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.2s;
}

.close-sidebar:hover {
  color: #32ffe1;
  transform: rotate(90deg);
}

.upgrade-btn {
  background: linear-gradient(to right, #32ffe1, #00a1ff);
  color: #000;
  border: none;
  padding: 12px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  margin-top: auto;
  width: 100%;
  transition: all 0.2s;
}

.upgrade-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(50, 255, 225, 0.3);
}

/* Modal */
.upgrade-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  z-index: 2000;
}

.upgrade-modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: #202123;
  width: 90%;
  max-width: 500px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.modal-header {
  padding: 20px;
  background: linear-gradient(to right, #32ffe1, #00a1ff);
  color: #000;
  text-align: center;
  position: relative;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: #000;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.2s;
}

.close-modal:hover {
  transform: scale(1.2);
}

.modal-body {
  padding: 20px;
}

.modal-body h3 {
  color: #32ffe1;
  margin-top: 0;
  font-size: 1.2rem;
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.features-list li {
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #2d2f33;
}

.features-list li:last-child {
  border-bottom: none;
}

.features-list li.checked {
  color: #32ffe1;
}

.features-list i {
  width: 20px;
  text-align: center;
}

.modal-footer {
  padding: 20px;
  text-align: center;
  background: #2d2f33;
}

.pro-upgrade-btn {
  background: linear-gradient(to right, #32ffe1, #00a1ff);
  color: #000;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
}

.pro-upgrade-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(50, 255, 225, 0.3);
}

/* Mobile Responsiveness - Enhanced */
@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  .hamburger-btn {
    display: block;
  }
  
  .sidebar {
    width: 85%;
    left: -100%;
  }
  
  .sidebar.active {
    left: 0;
  }

  .main-content {
    margin: 20px auto;
    padding: 15px;
  }

  .top-header {
    padding: 12px 15px;
  }

  .logo {
    font-size: 1.3rem;
  }

  /* Card improvements for tablets */
  .card-body {
    padding: 15px;
  }

  .data-row {
    margin-bottom: 15px;
  }

  .data-label {
    flex: 0 0 120px;
    min-width: 120px;
    font-size: 0.9rem;
  }

  .data-value {
    font-size: 0.9rem;
  }
}

@media (max-width: 600px) {
  .input-wrapper {
    max-width: 100%;
    padding: 0 5px;
  }

  .clear-btn {
    right: 13px;
  }

  .action-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .scan-btn, .crack-btn {
    padding: 12px 20px;
    font-size: 0.95rem;
  }

  /* Improved mobile card layout */
  .card-header {
    padding: 12px 15px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .card-header h3 {
    font-size: 16px;
  }

  .status-badge {
    margin-left: 0;
    margin-top: 5px;
    order: 3;
    flex-basis: 100%;
  }

  .card-body {
    padding: 12px 15px;
  }

  /* Stack data rows vertically on mobile */
  .data-row {
    flex-direction: column;
    gap: 3px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .data-row:last-child {
    border-bottom: none;
  }
  
  .data-label {
    flex: none;
    width: 100%;
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 2px;
  }

  .data-value {
    width: 100%;
    font-size: 0.9rem;
    padding-left: 0;
  }

  .monospace {
    font-size: 13px;
    line-height: 1.4;
  }

  .card-footer {
    padding: 12px 15px;
  }

  .explorer-link, .action-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
    width: 100%;
    justify-content: center;
    margin-bottom: 8px;
  }

  .explorer-link:last-child, .action-btn:last-child {
    margin-bottom: 0;
  }
}

@media (max-width: 480px) {
  body {
    padding: 8px;
  }

  .main-content {
    margin: 10px auto;
    padding: 12px;
  }

  .top-header {
    padding: 10px 12px;
  }

  .logo {
    font-size: 1.2rem;
    gap: 8px;
  }

  /* Extra small screens - even more compact */
  .card-header {
    padding: 10px 12px;
  }

  .card-header i {
    font-size: 20px;
    margin-right: 8px;
  }

  .card-header h3 {
    font-size: 15px;
  }

  .card-body {
    padding: 10px 12px;
  }

  .data-row {
    margin-bottom: 12px;
  }

  .data-label {
    font-size: 0.8rem;
  }

  .data-value {
    font-size: 0.85rem;
  }

  .monospace {
    font-size: 12px;
  }

  .card-footer {
    padding: 10px 12px;
  }

  .explorer-link, .action-btn {
    padding: 10px 14px;
    font-size: 0.85rem;
  }

  #hashInput {
    padding: 10px 35px 10px 12px;
    font-size: 0.95rem;
  }

  .clear-btn {
    right: 10px;
    font-size: 18px;
  }
}
