/* ===== CARD COMPONENTS ===== */
.card {
  background: rgba(30, 41, 59, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-2xl);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-primary);
  opacity: 0.5;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2xl), 0 0 40px rgba(14, 165, 233, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card-title {
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--dark-text-primary);
  margin: 0;
}

.card-description {
  color: var(--dark-text-muted);
  font-size: var(--text-sm);
  margin: 0;
}

.card-content {
  margin-bottom: var(--space-6);
}

.card-footer {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  align-items: center;
}

/* ===== BUTTON COMPONENTS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
  position: relative;
  overflow: hidden;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left var(--transition-slow);
}

.btn:hover::before {
  left: 100%;
}

/* Button variants */
.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--gradient-secondary);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-success {
  background: var(--gradient-success);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-warning {
  background: var(--gradient-warning);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-warning:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-error {
  background: var(--gradient-error);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-error:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: var(--dark-text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--dark-text-secondary);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--dark-text-primary);
}

/* Button sizes */
.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-lg);
}

.btn-xl {
  padding: var(--space-5) var(--space-10);
  font-size: var(--text-xl);
}

/* ===== FORM COMPONENTS ===== */
.form-group {
  margin-bottom: var(--space-6);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--dark-text-secondary);
  margin-bottom: var(--space-2);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  font-family: var(--font-family-sans);
  color: var(--dark-text-primary);
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
  backdrop-filter: blur(10px);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
  background: rgba(30, 41, 59, 0.8);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--dark-text-muted);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
  font-family: var(--font-family-mono);
  line-height: var(--leading-relaxed);
}

.form-file {
  display: none;
}

/* ===== HERO SECTION ===== */
.hero-section {
  text-align: center;
  padding: var(--space-16) 0;
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}

.title-gradient {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}

.version-badge {
  background: var(--gradient-secondary);
  color: white;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-xl);
  font-size: var(--text-sm);
  font-weight: 600;
  box-shadow: var(--shadow-lg);
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: var(--dark-text-secondary);
  margin-bottom: var(--space-8);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: var(--leading-relaxed);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-8);
  margin-top: var(--space-8);
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--primary-500);
  line-height: 1;
}

.stat-label {
  display: block;
  font-size: var(--text-sm);
  color: var(--dark-text-muted);
  margin-top: var(--space-1);
}

.hero-decoration {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
}

.floating-card {
  position: absolute;
  font-size: 2rem;
  opacity: 0.1;
  animation: float 6s ease-in-out infinite;
}

.floating-card.card-1 {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.floating-card.card-2 {
  top: 60%;
  right: 15%;
  animation-delay: 2s;
}

.floating-card.card-3 {
  bottom: 30%;
  left: 20%;
  animation-delay: 4s;
}

/* ===== SECTIONS ===== */
.tools-section {
  padding: var(--space-16) 0;
}

.features-section {
  padding: var(--space-16) 0;
  background: rgba(15, 23, 42, 0.5);
  border-radius: var(--radius-3xl);
  margin: var(--space-16) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-title {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--dark-text-primary);
  margin-bottom: var(--space-4);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--dark-text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: var(--leading-relaxed);
}

/* ===== TOOL GRID ===== */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-8);
  margin-top: var(--space-12);
}

.tool-card {
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-2xl);
  padding: 0;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left var(--transition-slow);
  z-index: 1;
}

.tool-card:hover::before {
  left: 100%;
}

.tool-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: var(--shadow-2xl), 0 0 60px rgba(14, 165, 233, 0.3);
  border-color: rgba(255, 255, 255, 0.3);
}

.tool-card-header {
  padding: var(--space-6);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  z-index: 2;
}

.tool-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: all var(--transition-normal);
}

.tool-card:hover .tool-icon-wrapper {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.2);
}

.tool-icon {
  width: 28px;
  height: 28px;
  stroke-width: 2;
  color: var(--dark-text-primary);
}

.tool-badge {
  background: var(--gradient-primary);
  color: white;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-lg);
  font-size: var(--text-xs);
  font-weight: 600;
  box-shadow: var(--shadow-md);
}

.tool-content {
  padding: 0 var(--space-6) var(--space-6);
  flex: 1;
  position: relative;
  z-index: 2;
}

.tool-title {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--dark-text-primary);
  margin-bottom: var(--space-3);
  line-height: var(--leading-tight);
}

.tool-description {
  font-size: var(--text-sm);
  color: var(--dark-text-muted);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
}

.tool-features {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.feature-tag {
  background: rgba(255, 255, 255, 0.1);
  color: var(--dark-text-secondary);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.tool-footer {
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 2;
}

.tool-action {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--primary-500);
  transition: all var(--transition-fast);
}

.tool-card:hover .tool-action {
  color: var(--primary-400);
  transform: translateX(4px);
}

/* Tool card variants */
.tool-card.bin-checker {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(217, 119, 6, 0.1));
  border-color: rgba(245, 158, 11, 0.2);
}

.tool-card.bin-checker:hover {
  box-shadow: var(--shadow-2xl), 0 0 60px rgba(245, 158, 11, 0.4);
}

.tool-card.bin-checker .tool-icon-wrapper {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.2));
}

.tool-card.card-generator {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(225, 29, 72, 0.1));
  border-color: rgba(236, 72, 153, 0.2);
}

.tool-card.card-generator:hover {
  box-shadow: var(--shadow-2xl), 0 0 60px rgba(236, 72, 153, 0.4);
}

.tool-card.card-generator .tool-icon-wrapper {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(225, 29, 72, 0.2));
}

.tool-card.card-checker {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.1));
  border-color: rgba(16, 185, 129, 0.2);
}

.tool-card.card-checker:hover {
  box-shadow: var(--shadow-2xl), 0 0 60px rgba(16, 185, 129, 0.4);
}

.tool-card.card-checker .tool-icon-wrapper {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.2));
}

.tool-card.bin-generator {
  background: linear-gradient(135deg, rgba(255, 111, 97, 0.1), rgba(255, 61, 0, 0.1));
  border-color: rgba(255, 111, 97, 0.2);
}

.tool-card.bin-generator:hover {
  box-shadow: var(--shadow-2xl), 0 0 60px rgba(255, 111, 97, 0.4);
}

.tool-card.bin-generator .tool-icon-wrapper {
  background: linear-gradient(135deg, rgba(255, 111, 97, 0.2), rgba(255, 61, 0, 0.2));
}

.tool-card.gmail-generator {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(37, 99, 235, 0.1));
  border-color: rgba(59, 130, 246, 0.2);
}

.tool-card.gmail-generator:hover {
  box-shadow: var(--shadow-2xl), 0 0 60px rgba(59, 130, 246, 0.4);
}

.tool-card.gmail-generator .tool-icon-wrapper {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(37, 99, 235, 0.2));
}

.tool-card.remove-duplicator {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(147, 51, 234, 0.1));
  border-color: rgba(168, 85, 247, 0.2);
}

.tool-card.remove-duplicator:hover {
  box-shadow: var(--shadow-2xl), 0 0 60px rgba(168, 85, 247, 0.4);
}

.tool-card.remove-duplicator .tool-icon-wrapper {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(147, 51, 234, 0.2));
}

.tool-card.mexican-address {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(22, 163, 74, 0.1));
  border-color: rgba(34, 197, 94, 0.2);
}

.tool-card.mexican-address:hover {
  box-shadow: var(--shadow-2xl), 0 0 60px rgba(34, 197, 94, 0.4);
}

.tool-card.mexican-address .tool-icon-wrapper {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(22, 163, 74, 0.2));
}

/* ===== FEATURES GRID ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.feature-item {
  text-align: center;
  padding: var(--space-6);
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition-normal);
}

.feature-item:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-4);
  display: block;
}

.feature-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--dark-text-primary);
  margin-bottom: var(--space-2);
}

.feature-description {
  font-size: var(--text-sm);
  color: var(--dark-text-muted);
  line-height: var(--leading-relaxed);
}

/* ===== FOOTER ===== */
.main-footer {
  margin-top: var(--space-20);
  padding: var(--space-16) 0 var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-12);
  margin-bottom: var(--space-8);
}

.footer-brand h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--dark-text-primary);
  margin-bottom: var(--space-2);
}

.footer-brand p {
  color: var(--dark-text-muted);
  font-size: var(--text-sm);
}

.footer-links {
  display: flex;
  gap: var(--space-8);
}

.footer-section h4 {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--dark-text-primary);
  margin-bottom: var(--space-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section li {
  margin-bottom: var(--space-2);
}

.footer-section a {
  color: var(--dark-text-muted);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}

.footer-section a:hover {
  color: var(--primary-500);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: var(--dark-text-muted);
  font-size: var(--text-sm);
  margin: 0;
}

.footer-warning {
  color: var(--warning-500);
  font-weight: 500;
}

/* ===== LOADING COMPONENTS ===== */
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top: 4px solid var(--primary-500);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: var(--space-4) auto;
}

.loading-container {
  text-align: center;
  padding: var(--space-8);
  background: rgba(30, 41, 59, 0.6);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.loading-text {
  color: var(--dark-text-secondary);
  font-size: var(--text-sm);
  margin-top: var(--space-4);
}

/* ===== RESULT COMPONENTS ===== */
.result-section {
  margin-top: var(--space-6);
}

.result-grid {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.result-card {
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  backdrop-filter: blur(10px);
  transition: all var(--transition-fast);
}

.result-card:hover {
  background: rgba(30, 41, 59, 0.6);
  border-color: rgba(255, 255, 255, 0.2);
}

.result-card.success {
  border-color: rgba(34, 197, 94, 0.3);
  background: rgba(34, 197, 94, 0.05);
}

.result-card.error {
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.05);
}

.result-card.warning {
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.05);
}

/* ===== BACK BUTTON ===== */
.back-button {
  position: absolute;
  top: var(--space-6);
  left: var(--space-6);
  width: 48px;
  height: 48px;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark-text-secondary);
  font-size: var(--text-xl);
  cursor: pointer;
  transition: all var(--transition-fast);
  backdrop-filter: blur(10px);
  z-index: 10;
}

.back-button:hover {
  background: rgba(30, 41, 59, 1);
  color: var(--primary-500);
  transform: translateX(-4px);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ===== FILTER COMPONENTS ===== */
.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.filter-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--dark-text-secondary);
  margin-bottom: var(--space-1);
}

.filter-select,
.filter-input {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  color: var(--dark-text-primary);
  font-size: var(--text-sm);
  transition: all var(--transition-fast);
  outline: none;
}

.filter-select:focus,
.filter-input:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
  background: rgba(30, 41, 59, 0.9);
}

.filter-select:hover,
.filter-input:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.filter-summary {
  background: rgba(15, 23, 42, 0.5);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: var(--space-4);
}

.active-filters {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  flex-wrap: wrap;
}

.filter-summary-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--dark-text-secondary);
  white-space: nowrap;
}

.active-filters-list {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.active-filter-tag {
  background: var(--gradient-primary);
  color: white;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-lg);
  font-size: var(--text-xs);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: var(--space-1);
  animation: slideInFromLeft 0.3s ease;
}

.active-filter-tag .remove-filter {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.active-filter-tag .remove-filter:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.filter-results-count {
  font-size: var(--text-sm);
  color: var(--dark-text-muted);
  text-align: right;
}

.filter-results-count span {
  font-weight: 600;
  color: var(--primary-500);
}

.filtered-out {
  opacity: 0.3;
  transform: scale(0.95);
  pointer-events: none;
  transition: all var(--transition-normal);
}

.filter-highlight {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.3);
  animation: filterPulse 2s infinite;
}

/* ===== ANIMATIONS ===== */
@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes filterPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(99, 102, 241, 0);
  }
}

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

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

/* ===== SIMPLIFIED RESULT CARDS ===== */
.simplified-card {
  padding: var(--space-4);
}

.simplified-result-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bin-number {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--primary-500);
  font-family: var(--font-family-mono);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.bin-number:hover {
  color: var(--primary-400);
  transform: scale(1.05);
}

.input-count {
  background: rgba(99, 102, 241, 0.2);
  color: var(--primary-400);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  font-weight: 600;
}

.status-badge {
  margin-left: auto;
  font-size: var(--text-lg);
}

.status-badge.found {
  color: var(--success-500);
}

.status-badge.not-found {
  color: var(--warning-500);
}

.simplified-result-content {
  display: grid;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.result-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: var(--space-3);
  align-items: center;
  font-size: var(--text-sm);
}

.result-label {
  color: var(--dark-text-muted);
  font-weight: 500;
  white-space: nowrap;
}

.result-value {
  color: var(--dark-text-primary);
  font-weight: 500;
}

.result-value.clickable {
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-md);
  margin: calc(-1 * var(--space-1)) calc(-1 * var(--space-2));
}

.result-value.clickable:hover {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-500);
  transform: translateX(4px);
}

.bank-name {
  color: var(--secondary-500);
}

.bank-name:hover {
  color: var(--secondary-400);
}

.simplified-result-actions {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.simplified-result-actions .btn {
  flex: 1;
  min-width: 80px;
}

/* ===== DETAIL MODAL ===== */
.detail-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity var(--transition-normal);
  padding: var(--space-4);
  box-sizing: border-box;
}

.detail-modal.show {
  opacity: 1;
}

.detail-modal-content {
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  animation: slideInFromBottom 0.3s ease;
}

.detail-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-modal-title {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--dark-text-primary);
  margin: 0;
}

.detail-modal-close {
  background: rgba(239, 68, 68, 0.2);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: var(--text-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.detail-modal-close:hover {
  background: rgba(239, 68, 68, 0.4);
  transform: scale(1.1);
}

.detail-modal-body {
  color: var(--dark-text-secondary);
  line-height: var(--leading-relaxed);
}

.input-lines-list {
  background: rgba(15, 23, 42, 0.5);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  margin: var(--space-4) 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.input-line-item {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  margin-bottom: var(--space-2);
  font-family: var(--font-family-mono);
  font-size: var(--text-sm);
  color: var(--dark-text-primary);
  word-break: break-all;
  transition: all var(--transition-fast);
}

.input-line-item:hover {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateX(4px);
}

.input-line-item:last-child {
  margin-bottom: 0;
}

@keyframes slideInFromBottom {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ===== RESULTS TABLE ===== */
.result-section-group {
  margin-bottom: var(--space-6);
}

.result-section-group h4 {
  margin-bottom: var(--space-4);
  color: var(--dark-text-primary);
  font-size: var(--text-lg);
  font-weight: 600;
}

.table-container {
  overflow-x: auto;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(10px);
  scrollbar-width: thin;
  scrollbar-color: rgba(99, 102, 241, 0.5) rgba(15, 23, 42, 0.5);
  margin-bottom: var(--space-4);
}

.table-container::-webkit-scrollbar {
  height: 8px;
}

.table-container::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.5);
  border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.5);
  border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb:hover {
  background: rgba(99, 102, 241, 0.7);
}

.results-table {
  width: 100%;
  min-width: 800px; /* Minimum width for horizontal scroll */
  border-collapse: collapse;
  margin-bottom: 0;
  table-layout: fixed; /* Fixed table layout for consistent column widths */
}

.table-header {
  background: rgba(15, 23, 42, 0.8);
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.table-header th {
  padding: var(--space-4);
  text-align: left;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--dark-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.table-header th:last-child {
  border-right: none;
}

.result-row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all var(--transition-fast);
}

.result-row:hover {
  background: rgba(99, 102, 241, 0.05);
}

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

.result-row td {
  padding: var(--space-3) var(--space-4);
  vertical-align: middle;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

.result-row td:last-child {
  border-right: none;
}

/* Table columns with fixed widths */
.bin-column,
.bin-header {
  width: 15%;
  min-width: 140px;
}

.type-column,
.type-header {
  width: 12%;
  min-width: 100px;
}

.category-column,
.category-header {
  width: 15%;
  min-width: 120px;
}

.issuer-column,
.issuer-header {
  width: 30%;
  min-width: 200px;
}

.country-column,
.country-header {
  width: 15%;
  min-width: 120px;
}

.actions-column,
.actions-header {
  width: 13%;
  min-width: 120px;
  text-align: center;
}

/* Bin cell */
.bin-cell {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: nowrap;
  width: 100%;
}

.bin-number {
  font-family: var(--font-family-mono);
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--primary-500);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.bin-number:hover {
  color: var(--primary-400);
  transform: scale(1.05);
}

.input-count {
  background: rgba(99, 102, 241, 0.2);
  color: var(--primary-400);
  padding: 2px var(--space-1);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 600;
  white-space: nowrap;
}

.status-icon {
  font-size: var(--text-sm);
}

.status-found {
  color: var(--success-500);
}

.status-not-found {
  color: var(--warning-500);
}

/* Table values */
.table-value {
  font-size: var(--text-sm);
  color: var(--dark-text-primary);
  font-weight: 500;
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-value.clickable {
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-md);
  margin: calc(-1 * var(--space-1)) calc(-1 * var(--space-2));
}

.table-value.clickable:hover {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-500);
  transform: translateX(2px);
}

.table-value.bank-name {
  color: var(--secondary-500);
}

.table-value.bank-name:hover {
  color: var(--secondary-400);
}

/* Table actions */
.table-actions {
  display: flex;
  gap: var(--space-1);
  justify-content: center;
  align-items: center;
}

.btn-icon {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--dark-text-secondary);
  width: 28px;
  height: 28px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: var(--text-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.btn-icon:hover {
  background: rgba(99, 102, 241, 0.2);
  color: var(--primary-500);
  transform: scale(1.1);
}

/* Table variants */
.results-table.success {
  border-color: rgba(34, 197, 94, 0.3);
}

.results-table.success .table-header {
  background: rgba(34, 197, 94, 0.1);
}

.results-table.warning {
  border-color: rgba(251, 191, 36, 0.3);
}

.results-table.warning .table-header {
  background: rgba(251, 191, 36, 0.1);
}

.results-table.error {
  border-color: rgba(239, 68, 68, 0.3);
}

.results-table.error .table-header {
  background: rgba(239, 68, 68, 0.1);
}

/* Filter effects for table */
.result-row.filtered-out {
  opacity: 0.3;
  pointer-events: none;
  transform: scale(0.98);
}

.result-row.filter-highlight {
  background: rgba(99, 102, 241, 0.1);
  animation: tableRowPulse 2s infinite;
}

@keyframes tableRowPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0);
  }
}

/* Debug styles - temporary */
.results-table * {
  box-sizing: border-box;
}

.results-table thead,
.results-table tbody,
.results-table tr,
.results-table td,
.results-table th {
  display: table-row-group;
}

.results-table thead {
  display: table-header-group;
}

.results-table tbody {
  display: table-row-group;
}

.results-table tr {
  display: table-row;
}

.results-table td,
.results-table th {
  display: table-cell;
}
