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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #333;
  background: #f5f5f5;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Navbar */
.navbar {
  background: #1a1a2e;
  padding: 1rem 0;
}

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

.logo {
  color: #fff;
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: #ccc;
  text-decoration: none;
}

.nav-links a:hover {
  color: #fff;
}

/* Hero */
.hero {
  text-align: center;
  padding: 3rem 0;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1.2rem;
  color: #666;
}

/* Tools Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 2rem 0;
}

.tool-card {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}

.tool-card:hover {
  transform: translateY(-2px);
}

.tool-card h3 {
  margin-bottom: 0.5rem;
}

/* Ad Banner */
.ad-banner {
  text-align: center;
  padding: 0.5rem 0;
}

.ad-placeholder {
  background: #e0e0e0;
  color: #999;
  padding: 1rem;
  border: 2px dashed #ccc;
  display: inline-block;
  min-width: 728px;
  max-width: 100%;
  font-size: 0.9rem;
}

/* Tool Card Links */
.tool-card a {
  color: #1a1a2e;
  text-decoration: none;
}

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

.tool-category {
  display: inline-block;
  background: #e8f0fe;
  color: #1a73e8;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

/* Tool Page */
.tool-page {
  padding: 2rem 0;
}

.tool-page h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.tool-desc {
  color: #666;
  margin-bottom: 2rem;
}

/* Card Generator */
.card-generator {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.card-form {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 0.3rem;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  font-family: 'Courier New', monospace;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #1a73e8;
  box-shadow: 0 0 0 3px rgba(26,115,232,0.15);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.color-options {
  display: flex;
  gap: 0.5rem;
}

.color-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  transition: border-color 0.2s;
}

.color-btn.active {
  border-color: #1a73e8;
}

.color-btn:hover {
  border-color: #999;
}

.luhn-msg {
  display: block;
  font-size: 0.78rem;
  margin-top: 0.3rem;
  min-height: 1em;
}

.luhn-valid { color: #1a8a3a; }
.luhn-error { color: #c0392b; }

.input-valid { border-color: #1a8a3a !important; }
.input-error { border-color: #c0392b !important; }

.btn-primary {
  width: 100%;
  padding: 0.8rem;
  background: #1a73e8;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.5rem;
}

.btn-primary:hover {
  background: #1557b0;
}

.card-preview {
  position: sticky;
  top: 1rem;
}

.card-preview h3 {
  margin-bottom: 1rem;
  color: #555;
}

.card-preview canvas {
  width: 100%;
  max-width: 640px;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}

@media (max-width: 768px) {
  .card-generator {
    grid-template-columns: 1fr;
  }
  .card-preview {
    order: -1;
  }
}

/* Card Number Generator */
.generator-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 2rem;
}

.label-hint {
  font-weight: 400;
  color: #999;
  font-size: 0.8rem;
}

.bin-input-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.bin-input-row input {
  flex: 1;
}

.bin-network {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.bin-network.detected { color: #1a73e8; }

.bin-guide {
  background: #fff;
  border-radius: 8px;
  padding: 1.25rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.bin-guide h4 {
  margin-bottom: 0.75rem;
  color: #555;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.bin-table th {
  text-align: left;
  padding: 0.35rem 0.5rem;
  color: #888;
  font-weight: 600;
  border-bottom: 1px solid #eee;
}

.bin-table td {
  padding: 0.35rem 0.5rem;
  color: #444;
}

.bin-table tr:not(:last-child) td { border-bottom: 1px solid #f5f5f5; }

/* Results */
.results-title {
  margin-bottom: 1rem;
  color: #333;
}

.results-table-wrap {
  overflow-x: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 0.9rem;
}

.results-table th {
  background: #1a1a2e;
  color: #fff;
  padding: 0.7rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.results-table td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
}

.results-table tr:last-child td { border-bottom: none; }
.results-table tr:hover td { background: #fafafa; }

.col-num { color: #999; width: 2.5rem; }

.col-card {
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.btn-copy {
  background: none;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  padding: 2px 6px;
  font-size: 0.85rem;
  color: #888;
  margin-left: 0.5rem;
  transition: all 0.15s;
}

.btn-copy:hover { border-color: #1a73e8; color: #1a73e8; }
.btn-copy.copied { border-color: #1a8a3a; color: #1a8a3a; }

.network-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 600;
}

.network-visa     { background: #e8f0fe; color: #1a56db; }
.network-mastercard { background: #fff0e0; color: #c05621; }
.network-amex     { background: #e6f3ff; color: #0066cc; }
.network-discover { background: #fff3e0; color: #e65100; }
.network-generic  { background: #f0f0f0; color: #666; }

.btn-image-link {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  background: #1a1a2e;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s;
}

.btn-image-link:hover { background: #16213e; }

@media (max-width: 768px) {
  .generator-layout {
    grid-template-columns: 1fr;
  }
}

/* SSL Converter */
.ssl-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 0;
}

.ssl-tab {
  padding: 0.6rem 1.4rem;
  border: none;
  background: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: #888;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s, border-color 0.15s;
}

.ssl-tab.active { color: #1a73e8; border-bottom-color: #1a73e8; }
.ssl-tab:hover:not(.active) { color: #333; }

.ssl-panel { display: none; }
.ssl-panel.active { display: block; }

.ssl-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.ssl-left { display: flex; flex-direction: column; gap: 0; }
.ssl-right { position: sticky; top: 1rem; }

/* Drop zone */
.drop-zone {
  border: 2px dashed #ccc;
  border-radius: 8px;
  padding: 1.5rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  background: #fafafa;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.drop-zone.small { padding: 1rem; }
.drop-zone:hover, .drop-zone.drag-over { border-color: #1a73e8; background: #f0f4ff; }
.drop-zone.has-file { border-color: #1a8a3a; background: #f0fff4; }

.drop-icon { font-size: 1.5rem; }
.drop-text { font-size: 0.9rem; color: #666; }
.drop-label {
  color: #1a73e8;
  cursor: pointer;
  text-decoration: underline;
  font-weight: 600;
}
.drop-input { display: none; }
.drop-filename { font-size: 0.78rem; color: #999; margin-top: 0.2rem; }
.drop-zone.has-file .drop-filename { color: #1a8a3a; font-weight: 600; }

/* Format arrow */
.format-arrow {
  display: flex;
  align-items: center;
  padding-top: 1.8rem;
  color: #999;
  font-size: 1.2rem;
}

.ssl-hint-box {
  background: #fff;
  border-radius: 8px;
  padding: 1.25rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.ssl-hint-box h4 {
  margin-bottom: 0.75rem;
  color: #555;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.format-guide { margin: 0; }
.format-guide dt {
  font-weight: 700;
  color: #1a1a2e;
  margin-top: 0.75rem;
  font-size: 0.9rem;
}
.format-guide dd {
  margin: 0.2rem 0 0 0;
  color: #666;
  font-size: 0.83rem;
  line-height: 1.5;
}
.format-guide code {
  background: #f0f0f0;
  padding: 1px 4px;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  font-size: 0.78rem;
}

/* Error box */
.ssl-error {
  background: #fff0f0;
  border: 1px solid #f5c6cb;
  color: #c0392b;
  border-radius: 6px;
  padding: 0.6rem 0.9rem;
  font-size: 0.88rem;
  margin-bottom: 0.75rem;
}

/* Cert info card */
.cert-info-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-bottom: 1rem;
  overflow: hidden;
}

.cert-info-title {
  background: #1a1a2e;
  color: #fff;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}

.cert-info-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.cert-info-table th {
  width: 30%;
  text-align: left;
  padding: 0.5rem 1rem;
  color: #888;
  font-weight: 600;
  background: #fafafa;
  border-bottom: 1px solid #f0f0f0;
  white-space: nowrap;
  vertical-align: top;
}
.cert-info-table td {
  padding: 0.5rem 1rem;
  color: #333;
  border-bottom: 1px solid #f0f0f0;
  word-break: break-all;
}
.cert-info-table tr:last-child th,
.cert-info-table tr:last-child td { border-bottom: none; }

.cert-status {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 700;
}
.cert-valid   { background: #d4edda; color: #155724; }
.cert-warning { background: #fff3cd; color: #856404; }
.cert-expired { background: #f8d7da; color: #721c24; }

.san-item {
  display: inline-block;
  background: #e8f0fe;
  color: #1a56db;
  border-radius: 4px;
  padding: 1px 7px;
  margin: 2px 2px 2px 0;
  font-size: 0.78rem;
  font-family: 'Courier New', monospace;
}

@media (max-width: 768px) {
  .ssl-form-grid { grid-template-columns: 1fr; }
  .format-arrow { display: none; }
}

/* Footer */
.footer {
  background: #1a1a2e;
  color: #ccc;
  text-align: center;
  padding: 1.5rem 0;
  margin-top: 2rem;
}

/* ─── Store ──────────────────────────────────────────────────────────── */

.store-hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #fff;
  padding: 3rem 0 2rem;
  text-align: center;
}
.store-hero h1 { font-size: 2rem; margin: 0; }
.store-hero-desc { color: rgba(255,255,255,0.7); margin-top: 0.4rem; }

.store-container { padding-top: 1.5rem; padding-bottom: 2rem; }

/* Category Filter */
.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.category-btn {
  padding: 0.4rem 1rem;
  border: 1px solid #ddd;
  border-radius: 20px;
  font-size: 0.85rem;
  color: #555;
  text-decoration: none;
  transition: all 0.2s;
}
.category-btn:hover { border-color: #1a73e8; color: #1a73e8; }
.category-btn.active {
  background: #1a73e8;
  color: #fff;
  border-color: #1a73e8;
}

/* Product Grid */
.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}
.store-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  color: #888;
}

/* Product Card */
.product-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.product-card-img {
  background: #f0f4f8;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-emoji { font-size: 4rem; }
.product-card-body { padding: 1rem; flex: 1; display: flex; flex-direction: column; }
.product-category-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  color: #1a73e8;
  background: rgba(26,115,232,0.1);
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  margin-bottom: 0.4rem;
  width: fit-content;
}
.product-card-name {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0.2rem 0;
  color: #222;
  line-height: 1.3;
}
.product-card-desc {
  font-size: 0.8rem;
  color: #888;
  margin: 0.3rem 0;
  flex: 1;
}
.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.6rem;
}
.product-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: #222;
}
.product-price small { font-size: 0.8rem; font-weight: 400; color: #666; }

/* Stock Badge */
.stock-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
}
.stock-out { background: #fce4ec; color: #c0392b; }
.stock-low { background: #fff3e0; color: #e67e22; }
.stock-ok { background: #e8f5e9; color: #2e7d32; }

/* Product Detail */
.back-link {
  display: inline-block;
  color: #1a73e8;
  text-decoration: none;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}
.back-link:hover { text-decoration: underline; }
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.product-detail-img {
  background: #f0f4f8;
  border-radius: 12px;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-emoji-lg { font-size: 8rem; }
.product-detail-name { font-size: 1.5rem; margin: 0.5rem 0; color: #222; }
.product-detail-desc { color: #555; line-height: 1.6; margin: 1rem 0; }
.product-detail-price { margin: 1rem 0; }
.price-lg { font-size: 1.8rem; font-weight: 700; color: #222; }
.price-lg small { font-size: 1rem; font-weight: 400; color: #666; }
.product-detail-stock { margin-bottom: 1.5rem; }

/* Quantity Control */
.quantity-row { margin-bottom: 1rem; }
.quantity-row label { display: block; font-size: 0.85rem; font-weight: 600; color: #555; margin-bottom: 0.3rem; }
.quantity-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
}
.quantity-sm { transform: scale(0.85); transform-origin: left; }
.qty-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: #f5f5f5;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
}
.qty-btn:hover { background: #e0e0e0; }
.quantity-control input,
.qty-display {
  width: 48px;
  height: 36px;
  text-align: center;
  border: none;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qty-display { line-height: 36px; }

.btn-add-cart { margin-top: 0.5rem; font-size: 1.05rem; padding: 0.9rem; }
.btn-disabled { opacity: 0.5; cursor: not-allowed; }
.btn-inline { display: inline-block; width: auto; padding: 0.7rem 2rem; text-decoration: none; text-align: center; }

/* Cart */
.cart-empty { text-align: center; padding: 3rem 0; color: #888; }
.cart-empty p { font-size: 1.1rem; margin-bottom: 1.5rem; }
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  align-items: start;
}
.cart-table td { font-size: 0.9rem; }
.cart-item-name { font-weight: 600; max-width: 200px; }
.cart-item-subtotal { font-weight: 600; }
.btn-remove {
  background: none;
  border: none;
  font-size: 1.3rem;
  color: #c0392b;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
}
.btn-remove:hover { color: #e74c3c; }
.qty-form { display: inline; }

/* Cart Summary */
.summary-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 1.5rem;
  position: sticky;
  top: 1rem;
}
.summary-card h3 { margin: 0 0 1rem; font-size: 1.1rem; color: #222; }
.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #555;
  padding: 0.4rem 0;
}
.summary-divider { border-top: 1px solid #eee; margin: 0.6rem 0; }
.summary-total { font-weight: 700; font-size: 1.1rem; color: #222; }
.free-shipping-hint {
  font-size: 0.8rem;
  color: #1a73e8;
  margin: 0.6rem 0;
  text-align: center;
}
.btn-checkout { margin-top: 1rem; font-size: 1.05rem; }
.btn-continue {
  display: block;
  text-align: center;
  color: #1a73e8;
  text-decoration: none;
  font-size: 0.9rem;
  margin-top: 0.8rem;
}
.btn-continue:hover { text-decoration: underline; }

/* Order Complete */
.order-result {
  text-align: center;
  padding: 2.5rem 0 1.5rem;
}
.order-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #e8f5e9;
  color: #2e7d32;
  font-size: 2rem;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.order-icon-fail { background: #fce4ec; color: #c0392b; }
.order-result h1 { font-size: 1.5rem; margin: 0.5rem 0; }
.order-id { color: #666; }
.order-fail-msg { color: #c0392b; font-size: 0.9rem; margin-top: 0.5rem; }

.order-detail-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2rem;
  margin-top: 1.5rem;
}
.order-items-card,
.order-payment-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 1.5rem;
}
.order-items-card h3,
.order-payment-card h3 { margin: 0 0 1rem; font-size: 1.05rem; }
.order-total-label { text-align: right; font-weight: 700; }
.order-total-value { font-weight: 700; color: #222; }

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  border-bottom: 1px solid #f5f5f5;
}
.info-label { color: #888; }

/* Status Badges */
.status-badge {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 10px;
}
.status-paid, .status-approved { background: #e8f5e9; color: #2e7d32; }
.status-pending { background: #fff3e0; color: #e67e22; }
.status-declined, .status-cancelled { background: #fce4ec; color: #c0392b; }

.retry-form {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.5rem;
}
.form-select {
  flex: 1;
  padding: 0.6rem 0.8rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.9rem;
}
.retry-form .btn-primary { width: auto; margin-top: 0; padding: 0.6rem 1.2rem; }

.order-actions { text-align: center; margin-top: 2rem; }

/* Store Error */
.store-error { text-align: center; padding: 3rem 0; }
.store-error h1 { color: #c0392b; }
.store-error p { color: #666; margin: 1rem 0 1.5rem; }

/* Nav Cart Badge */
.nav-store { position: relative; }
.cart-badge {
  position: absolute;
  top: -8px;
  right: -12px;
  background: #e74c3c;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── MCP Guide ──────────────────────────────────────────────────────── */

.mcp-hero {
  background: linear-gradient(135deg, #0f4c75 0%, #1a73e8 100%);
  color: #fff;
  padding: 3rem 0 2rem;
  text-align: center;
}
.mcp-hero h1 { font-size: 2rem; margin: 0; }
.mcp-hero-desc {
  color: rgba(255,255,255,0.88);
  margin: 0.6rem auto 0;
  max-width: 720px;
  line-height: 1.6;
}
.mcp-hero-desc strong { color: #ffe27a; }
.mcp-hero-endpoint {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.2rem;
  padding: 0.55rem 1rem;
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 8px;
}
.mcp-hero-endpoint .endpoint-label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
.mcp-hero-endpoint code {
  color: #fff;
  font-size: 0.95rem;
  background: transparent;
  padding: 0;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0.8rem 0 0;
  display: grid;
  gap: 0.5rem;
}
.feature-list li {
  padding: 0.6rem 0.9rem;
  background: #f4f7fb;
  border-left: 3px solid #1a73e8;
  border-radius: 4px;
  color: #333;
  line-height: 1.5;
}
.feature-list li strong { color: #0f4c75; }

.mcp-guide { padding-top: 1.5rem; padding-bottom: 2rem; }

.guide-section {
  margin-bottom: 2.5rem;
}
.guide-section h2 {
  font-size: 1.4rem;
  color: #222;
  margin-bottom: 0.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e8ecf1;
}
.guide-section p { color: #444; line-height: 1.7; margin-bottom: 0.6rem; }
.guide-subsection { margin: 1.5rem 0; }
.guide-subsection h3 { font-size: 1.05rem; color: #333; margin-bottom: 0.5rem; }
.guide-note {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.5rem;
}
.guide-note code {
  background: #e8ecf1;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.85rem;
}

/* Code Blocks */
.code-block {
  background: #1e1e2e;
  border-radius: 8px;
  overflow: hidden;
  margin: 0.8rem 0;
}
.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  background: rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.code-header span { color: #888; font-size: 0.8rem; }
.btn-copy-code {
  background: rgba(255,255,255,0.1);
  border: none;
  color: #aaa;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  cursor: pointer;
}
.btn-copy-code:hover { background: rgba(255,255,255,0.2); color: #fff; }
.code-block pre {
  margin: 0;
  padding: 1rem;
  color: #d4d4d4;
  font-size: 0.85rem;
  line-height: 1.5;
  overflow-x: auto;
  font-family: 'Courier New', monospace;
}

/* Tool Info Cards */
.tools-category { margin-bottom: 2rem; }
.tools-category h3 {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 1rem;
}
.tool-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}
.tool-info-card {
  background: #fff;
  border: 1px solid #e8ecf1;
  border-radius: 8px;
  padding: 1rem 1.2rem;
  transition: box-shadow 0.2s;
}
.tool-info-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.08); }
.tool-info-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.tool-name {
  font-family: 'Courier New', monospace;
  font-weight: 700;
  font-size: 0.9rem;
  color: #222;
}
.tool-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  letter-spacing: 0.05em;
}
.tool-badge-read { background: #e8f5e9; color: #2e7d32; }
.tool-badge-write { background: #fff3e0; color: #e67e22; }
.tool-badge-util { background: #e3f2fd; color: #1565c0; }
.tool-info-card p {
  font-size: 0.85rem;
  color: #666;
  margin: 0.3rem 0 0.6rem;
  line-height: 1.4;
}
.tool-params {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.8rem;
  font-size: 0.78rem;
}
.param {
  font-family: 'Courier New', monospace;
  color: #1a73e8;
  font-weight: 600;
}
.param small { color: #aaa; font-weight: 400; }
.param-type { color: #888; }

/* Flow Steps */
.flow-steps { margin: 1rem 0; }
.flow-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 0.8rem 0;
  border-bottom: 1px solid #f0f0f0;
}
.flow-step:last-child { border-bottom: none; }
.flow-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #1a73e8;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.flow-step-body h4 { margin: 0 0 0.2rem; font-size: 0.95rem; color: #222; }
.flow-step-body code {
  background: #f0f4f8;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  color: #333;
}
.flow-arrow { color: #1a73e8; font-weight: 600; margin: 0 0.3rem; }

/* Spec Table */
.spec-label {
  font-weight: 600;
  color: #555;
  width: 120px;
}

/* Responsive */
@media (max-width: 768px) {
  .product-detail { grid-template-columns: 1fr; }
  .product-detail-img { height: 240px; }
  .cart-layout { grid-template-columns: 1fr; }
  .order-detail-grid { grid-template-columns: 1fr; }
  .store-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }
  .product-card-img { height: 140px; }
  .product-emoji { font-size: 3rem; }
  .tool-cards-grid { grid-template-columns: 1fr; }
}
