/* ==========================================================================
   TsByin ISO Hub — Stylesheet (Dark-Tech Modern & Ultra-Responsive)
   Optimized for Desktop, Tablet, and Mobile Viewports
   ========================================================================== */

:root {
  --bg-primary: #0a0d14;
  --bg-secondary: #0f1523;
  --bg-card: rgba(18, 26, 43, 0.75);
  --bg-card-hover: rgba(24, 35, 58, 0.9);
  --bg-glass: rgba(15, 21, 35, 0.85);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(56, 189, 248, 0.4);
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --accent-cyan: #38bdf8;
  --accent-cyan-glow: rgba(56, 189, 248, 0.2);
  --accent-blue: #3b82f6;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  --accent-purple: #a855f7;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 25px rgba(56, 189, 248, 0.15);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Background Gradients & Grid */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(circle at 15% 15%, rgba(56, 189, 248, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 85% 30%, rgba(59, 130, 246, 0.07) 0%, transparent 50%),
    radial-gradient(circle at 50% 85%, rgba(168, 85, 247, 0.05) 0%, transparent 55%);
  pointer-events: none;
  z-index: -2;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(10, 13, 20, 0.85);
  border-bottom: 1px solid var(--border-color);
  padding: 0.85rem 0;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  min-width: 0;
}

.brand-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand-fallback-icon {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0284c7, #2563eb);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.brand-title {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-sub {
  font-size: 0.725rem;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  min-height: 38px;
}

.btn-nav:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-cyan);
  color: #fff;
}

@media (max-width: 640px) {
  .site-header {
    padding: 0.65rem 0;
  }
  .brand-icon-wrap {
    width: 34px;
    height: 34px;
  }
  .brand-name {
    font-size: 1rem;
  }
  .brand-sub {
    font-size: 0.675rem;
  }
  .nav-btn-text {
    display: none;
  }
  .btn-nav {
    padding: 0.45rem 0.65rem;
    gap: 0;
    min-height: 36px;
  }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  padding: 3.5rem 0 2.25rem;
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--accent-cyan);
  font-size: 0.825rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  max-width: 100%;
}

.hero-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
  flex-shrink: 0;
}

.hero-title {
  font-size: clamp(1.85rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  background: linear-gradient(180deg, #ffffff 30%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title span {
  background: linear-gradient(135deg, #38bdf8 0%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  max-width: 780px;
  margin: 0 auto 1.75rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.hero-meta-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 1.75rem;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.825rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  line-height: 1.4;
}

.meta-chip svg {
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.hero-cloud-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.btn-cloud {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  min-height: 44px;
}

.btn-cloud-gdrive {
  background: #1e293b;
  border: 1px solid #334155;
  color: #fff;
}
.btn-cloud-gdrive:hover {
  background: #334155;
  border-color: #38bdf8;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}

.btn-cloud-onedrive {
  background: #1e293b;
  border: 1px solid #334155;
  color: #fff;
}
.btn-cloud-onedrive:hover {
  background: #334155;
  border-color: #3b82f6;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

.btn-cloud-mega {
  background: #1e293b;
  border: 1px solid #334155;
  color: #fff;
}
.btn-cloud-mega:hover {
  background: #334155;
  border-color: #f43f5e;
  box-shadow: 0 0 15px rgba(244, 63, 94, 0.2);
}

@media (max-width: 640px) {
  .hero {
    padding: 2.25rem 0 1.5rem;
  }
  .hero-pill {
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
    line-height: 1.35;
    text-align: left;
  }
  .hero-title {
    font-size: clamp(1.6rem, 6.5vw, 2.25rem);
    margin-bottom: 0.85rem;
  }
  .hero-desc {
    font-size: 0.925rem;
    margin-bottom: 1.25rem;
  }
  .hero-meta-badges {
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    margin-bottom: 1.5rem;
  }
  .meta-chip {
    justify-content: center;
    font-size: 0.775rem;
    padding: 0.4rem 0.65rem;
  }
  .hero-cloud-links {
    flex-direction: column;
    gap: 0.65rem;
  }
  .btn-cloud {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1rem;
    min-height: 46px;
  }
}

/* ==========================================================================
   Filter & Search Toolbar
   ========================================================================== */
.toolbar-wrap {
  margin: 2rem 0 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 820px) {
  .toolbar-wrap {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.search-box {
  position: relative;
  flex: 1;
  max-width: 420px;
}

.search-box svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.6rem;
  background: rgba(10, 13, 20, 0.75);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
  min-height: 42px;
}

.search-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px var(--accent-cyan-glow);
}

.filter-pills-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.filter-pills-wrap::-webkit-scrollbar {
  display: none;
}

.filter-pills {
  display: flex;
  gap: 0.5rem;
  white-space: nowrap;
}

.filter-btn {
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  transition: var(--transition);
  flex-shrink: 0;
  min-height: 38px;
}

.filter-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.filter-btn.active {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
  color: #0a0d14;
  font-weight: 600;
  box-shadow: 0 0 12px var(--accent-cyan-glow);
}

@media (max-width: 768px) {
  .toolbar-wrap {
    padding: 0.85rem;
    gap: 0.75rem;
    margin: 1.5rem 0 1.25rem;
  }
  .search-box {
    max-width: 100%;
  }
}

/* ==========================================================================
   ISO Cards Grid
   ========================================================================== */
.iso-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

@media (min-width: 768px) {
  .iso-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.iso-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  min-width: 0; /* Anti flex-overflow on mobile */
}

.iso-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-subtle), var(--shadow-glow);
  transform: translateY(-2px);
}

.iso-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  min-width: 0;
}

.iso-title-group {
  min-width: 0;
  flex: 1;
}

.iso-title-group h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.2rem;
  line-height: 1.3;
}

.iso-subtitle {
  font-size: 0.825rem;
  color: var(--accent-cyan);
  font-weight: 500;
  line-height: 1.4;
}

.badge {
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.725rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
}

.badge-primary { background: rgba(56, 189, 248, 0.15); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.3); }
.badge-success { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-warning { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-info    { background: rgba(139, 92, 246, 0.15); color: #a78bfa; border: 1px solid rgba(139, 92, 246, 0.3); }

.iso-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  flex: 1;
  line-height: 1.55;
}

.iso-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  background: rgba(10, 13, 20, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  margin-bottom: 1.25rem;
  min-width: 0;
}

.spec-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.spec-label {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.spec-val {
  font-size: 0.85rem;
  font-weight: 600;
  color: #e2e8f0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.iso-hashes-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.iso-hashes-group .iso-hash-row {
  margin-bottom: 0;
}

.iso-hash-row {
  background: rgba(10, 13, 20, 0.8);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.55rem 0.85rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 0;
}

.hash-label {
  font-size: 0.725rem;
  font-weight: 600;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  flex-shrink: 0;
}

.hash-label-md5 {
  color: var(--accent-amber);
}

.hash-code {
  font-family: var(--font-mono);
  font-size: 0.775rem;
  color: #cbd5e1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex: 1;
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  transition: var(--transition);
  flex-shrink: 0;
  min-height: 32px;
}

.btn-copy:hover {
  background: var(--accent-cyan);
  color: #0a0d14;
}

.iso-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.btn-action-primary {
  flex: 1;
  min-width: 120px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 0.9rem;
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: #fff;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.85rem;
  transition: var(--transition);
  min-height: 44px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: keep-all;
}

.btn-action-primary:hover {
  box-shadow: 0 0 15px rgba(37, 99, 235, 0.4);
  transform: translateY(-1px);
}

.btn-action-sec {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 0.9rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 0.85rem;
  transition: var(--transition);
  min-height: 44px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: keep-all;
}

.btn-action-sec:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--text-muted);
}

@media (max-width: 640px) {
  .iso-card {
    padding: 1.15rem 1rem;
  }
  .iso-title-group h3 {
    font-size: 1.15rem;
  }
  .iso-subtitle {
    font-size: 0.775rem;
  }
  .iso-specs {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    padding: 0.75rem;
  }
  .iso-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
  .btn-action-primary,
  .btn-action-sec {
    width: 100%;
    min-width: 0;
    padding: 0.65rem 0.4rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 380px) {
  .iso-actions {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Toolkits & Scripts Section
   ========================================================================== */
.section-title-wrap {
  text-align: center;
  margin-bottom: 2rem;
  padding: 0 0.5rem;
}

.section-tag {
  font-size: 0.775rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--accent-cyan);
  letter-spacing: 0.1em;
  margin-bottom: 0.35rem;
}

.section-heading {
  font-size: clamp(1.4rem, 3.5vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.25;
}

.toolkits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

@media (min-width: 768px) {
  .toolkits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.toolkit-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  min-width: 0;
}

.toolkit-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.toolkit-features {
  list-style: none;
  margin: 1rem 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toolkit-features li {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.5;
}

.toolkit-features li svg {
  color: var(--accent-emerald);
  flex-shrink: 0;
  margin-top: 3px;
}

@media (max-width: 640px) {
  .toolkit-card {
    padding: 1.15rem 1rem;
  }
}

/* ==========================================================================
   Guide Section
   ========================================================================== */
.guide-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 3.5rem;
}

.guide-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

@media (min-width: 768px) {
  .guide-steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.guide-step-card {
  background: rgba(10, 13, 20, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  position: relative;
}

.step-num {
  font-size: 1.75rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  opacity: 0.4;
  position: absolute;
  top: 0.75rem;
  right: 1rem;
}

.guide-step-card h4 {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.guide-step-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

@media (max-width: 640px) {
  .guide-box {
    padding: 1.25rem 1rem;
  }
}

/* ==========================================================================
   Modal Dialog
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  transform: scale(0.95);
  transition: transform 0.25s ease;
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-header {
  padding: 1.15rem 1.4rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: var(--bg-secondary);
  z-index: 10;
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
  flex-shrink: 0;
}

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

.modal-body {
  padding: 1.4rem;
}

@media (max-width: 640px) {
  .modal-overlay {
    padding: 0.5rem;
    align-items: flex-end; /* Bottom sheet style on mobile */
  }
  .modal-card {
    max-height: 88vh;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }
  .modal-header {
    padding: 1rem 1.15rem;
  }
  .modal-body {
    padding: 1.15rem;
  }
  .modal-body .iso-hash-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
  .modal-body .hash-code {
    word-break: break-all;
    white-space: normal;
    font-size: 0.75rem;
  }
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */
.toast-wrap {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 200;
  pointer-events: none;
}

.toast {
  background: #1e293b;
  border: 1px solid var(--accent-cyan);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.25s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 640px) {
  .toast-wrap {
    bottom: 1.25rem;
    right: 1rem;
    left: 1rem;
    display: flex;
    justify-content: center;
  }
  .toast {
    max-width: 100%;
    text-align: center;
    font-size: 0.825rem;
    padding: 0.65rem 1rem;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-color);
  padding: 2.25rem 0;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 0.85rem;
}

.footer-links a {
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent-cyan);
}
