/* ===== Toast Notification ===== */
.toast-notification {
  position: fixed; bottom: 32px; right: 32px; z-index: 9999;
  display: flex; align-items: center; gap: 10px;
  padding: 14px 24px; background: #065f46; color: #fff;
  border-radius: 10px; font-size: 0.95rem; font-weight: 500;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  opacity: 0; transform: translateY(20px); transition: all 0.35s ease;
  max-width: 420px;
}
.toast-notification.toast-show { opacity: 1; transform: translateY(0); }
.toast-notification.toast-hide { opacity: 0; transform: translateY(10px); transition: all 0.3s ease; }
.toast-icon { font-size: 1.3rem; flex-shrink: 0; }
.toast-msg { line-height: 1.4; }
@media (max-width: 480px) {
  .toast-notification { left: 16px; right: 16px; bottom: 16px; max-width: none; }
}

/* ========================================
   China Trademark Search - Main Stylesheet
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary: #1a56db;
    --primary-hover: #1e40af;
    --primary-light: #dbeafe;
    --accent: #e67e22;
    --accent-hover: #d35400;
    --success: #059669;
    --danger: #dc2626;
    --warning: #f59e0b;
    --text: #1f2937;
    --text-light: #6b7280;
    --text-lighter: #9ca3af;
    --border: #e5e7eb;
    --bg: #ffffff;
    --bg-light: #f9fafb;
    --bg-alt: #f3f4f6;
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    --radius: 8px;
    --radius-lg: 12px;
}

html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--text); background: var(--bg-light); line-height: 1.6; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* --- Header --- */
.header { background: var(--bg); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { display: flex; align-items: center; gap: 8px; font-size: 1.2rem; font-weight: 700; color: var(--text); }
.logo:hover { text-decoration: none; }
.logo-icon { font-size: 1.5rem; }
.logo-text { background: linear-gradient(135deg, var(--primary), #7c3aed); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.nav { display: flex; align-items: center; gap: 16px; }
.nav-link { color: var(--text-light); font-size: 0.9rem; font-weight: 500; padding: 6px 12px; border-radius: var(--radius); transition: all 0.2s; }
.nav-link:hover { color: var(--primary); background: var(--primary-light); text-decoration: none; }
.nav-link.active { color: var(--primary); background: var(--primary-light); font-weight: 600; }
.nav-link-accent { background: var(--primary); color: #fff !important; }
.nav-link-accent:hover { background: var(--primary-hover); }
.lang-select { padding: 6px 10px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 0.85rem; background: var(--bg); cursor: pointer; }

/* --- Search Section --- */
.search-section { padding: 60px 0 40px; }
.search-title { font-size: 2rem; text-align: center; margin-bottom: 8px; color: var(--text); }
.search-subtitle { text-align: center; color: var(--text-light); margin-bottom: 32px; font-size: 1.1rem; }

/* Search Type Tabs */
.search-type-tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.search-type-tab { padding: 8px 20px; border: 1px solid var(--border); background: var(--bg); border-radius: 20px; cursor: pointer; font-size: 0.9rem; transition: all 0.2s; color: var(--text-light); }
.search-type-tab:hover { border-color: var(--primary); color: var(--primary); }
.search-type-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Search Bar */
.search-bar { display: flex; max-width: 720px; margin: 0 auto 16px; box-shadow: var(--shadow-md); border-radius: var(--radius-lg); overflow: hidden; }
.search-input { flex: 1; padding: 16px 20px; font-size: 1.1rem; border: 2px solid var(--border); border-right: none; border-radius: var(--radius-lg) 0 0 var(--radius-lg); outline: none; transition: border-color 0.2s; }
.search-input:focus { border-color: var(--primary); }
.search-btn { padding: 16px 32px; font-size: 1.1rem; font-weight: 600; background: var(--primary); color: #fff; border: none; cursor: pointer; border-radius: 0 var(--radius-lg) var(--radius-lg) 0; transition: background 0.2s; white-space: nowrap; }
.search-btn:hover { background: var(--primary-hover); }
.search-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* Class Selector */
.class-selector-wrapper { max-width: 720px; margin: 0 auto 16px; }
.class-toggle-btn { width: 100%; padding: 10px 16px; border: 1px solid var(--border); background: var(--bg); border-radius: var(--radius); cursor: pointer; font-size: 0.9rem; text-align: left; color: var(--text-light); transition: border-color 0.2s; }
.class-toggle-btn:hover { border-color: var(--primary); }
.class-panel { border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); padding: 16px; margin-top: 8px; box-shadow: var(--shadow-md); }
.class-panel-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-weight: 600; }
.class-clear-btn { background: none; border: none; color: var(--danger); cursor: pointer; font-size: 0.85rem; }
.class-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px; max-height: 360px; overflow-y: auto; }
.class-item { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 4px; cursor: pointer; font-size: 0.85rem; transition: background 0.15s; }
.class-item:hover { background: var(--primary-light); }
.class-item input[type=checkbox] { margin: 0; }
.class-item small { color: var(--text-lighter); font-size: 0.75rem; display: block; }

/* Quota Bar */
.quota-bar { max-width: 720px; margin: 0 auto 20px; text-align: center; display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.quota-text { font-size: 0.95rem; color: var(--text-light); }
.quota-register-link { color: var(--accent); font-weight: 600; font-size: 0.95rem; }
.quota-register-link:hover { color: var(--accent-hover); }

/* Results */
.search-results { max-width: 1100px; margin: 0 auto; }
.results-layout { display: flex; gap: 24px; }
.results-facets { width: 200px; flex-shrink: 0; }
.results-main { flex: 1; min-width: 0; }
.results-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 8px; }
.results-count { font-size: 0.95rem; color: var(--text-light); font-weight: 500; }
.results-filters { display: flex; gap: 8px; }
.filter-select { padding: 6px 12px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 0.85rem; background: var(--bg); }

/* Facet List */
.facet-list { list-style: none; }
.facet-item { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; font-size: 0.85rem; border-bottom: 1px solid var(--border); cursor: pointer; transition: color 0.15s; }
.facet-item:hover { color: var(--primary); }

/* Result Items */
.results-list { display: flex; flex-direction: column; gap: 12px; }
.result-item { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; display: flex; gap: 16px; align-items: flex-start; transition: box-shadow 0.2s; cursor: pointer; }
.result-item:hover { box-shadow: var(--shadow-md); }
.result-img { width: 80px; height: 80px; border-radius: var(--radius); object-fit: contain; border: 1px solid var(--border); flex-shrink: 0; background: var(--bg-light); }
.result-info { flex: 1; min-width: 0; }
.result-tm-name { font-size: 1.05rem; font-weight: 600; margin-bottom: 4px; }
.result-meta { font-size: 0.85rem; color: var(--text-light); display: flex; flex-wrap: wrap; gap: 12px; }
.result-meta-item { display: flex; align-items: center; gap: 4px; }
.result-status { display: inline-block; padding: 2px 10px; border-radius: 10px; font-size: 0.8rem; font-weight: 500; }
.status-registered { background: #d1fae5; color: #065f46; }
.status-pending { background: #fef3c7; color: #92400e; }
.status-invalid { background: #fee2e2; color: #991b1b; }
.result-arrow { color: var(--text-lighter); font-size: 1.2rem; align-self: center; }

/* Pagination */
.results-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 24px; flex-wrap: wrap; }
.page-btn { padding: 8px 16px; border: 1px solid var(--border); background: var(--bg); border-radius: var(--radius); cursor: pointer; font-size: 0.9rem; transition: all 0.2s; }
.page-btn:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ===== Forms ===== */
.form-section { padding: 60px 0; }
.form-section-alt { background: var(--bg); border-top: 1px solid var(--border); }
.section-title { font-size: 1.5rem; text-align: center; margin-bottom: 8px; }
.section-subtitle { text-align: center; color: var(--text-light); margin-bottom: 32px; }
.tm-form { max-width: 720px; margin: 0 auto; }
.form-row { display: flex; gap: 16px; }
.form-row-2col .form-group { flex: 1; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.9rem; }
.form-group input[type=text],
.form-group input[type=email],
.form-group input[type=password],
.form-group select,
.form-group textarea {
    width: 100%; padding: 12px 14px; border: 2px solid var(--border); border-radius: var(--radius);
    font-size: 0.95rem; font-family: inherit; transition: border-color 0.2s; outline: none; background: var(--bg);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-hint { font-size: 0.8rem; color: var(--text-lighter); margin-top: 6px; }
.char-count { font-size: 0.8rem; color: var(--text-lighter); text-align: right; display: block; }

/* Radio Cards */
.radio-cards { display: flex; flex-direction: column; gap: 10px; }
.radio-card { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 2px solid var(--border); border-radius: var(--radius-lg); cursor: pointer; transition: all 0.2s; }
.radio-card:hover { border-color: var(--primary); }
.radio-card input[type=radio] { margin-top: 3px; }
.radio-card:has(input:checked) { border-color: var(--primary); background: var(--primary-light); }
.radio-card-content strong { font-size: 0.95rem; display: block; margin-bottom: 4px; }
.radio-card-content p { font-size: 0.85rem; color: var(--text-light); line-height: 1.5; }

/* Upload Zone */
.upload-zone { border: 2px dashed var(--border); border-radius: var(--radius-lg); padding: 32px; text-align: center; cursor: pointer; transition: all 0.2s; }
.upload-zone:hover { border-color: var(--primary); background: var(--primary-light); }
.upload-zone-content { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--text-light); }
.upload-icon { font-size: 2rem; }
.upload-zone.has-file { border-color: var(--success); background: #d1fae5; color: var(--success); }

/* Captcha */
.captcha-box { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--bg-alt); border-radius: var(--radius); border: 1px solid var(--border); }
.captcha-label { font-weight: 600; font-size: 1.1rem; color: var(--primary); white-space: nowrap; }
.captcha-input { width: 120px !important; text-align: center; }

/* Submit Button */
.form-submit-btn { display: block; width: 100%; padding: 14px; font-size: 1.05rem; font-weight: 600; background: var(--primary); color: #fff; border: none; border-radius: var(--radius-lg); cursor: pointer; transition: background 0.2s; text-align: center; }
.form-submit-btn:hover { background: var(--primary-hover); }
.form-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.form-message { text-align: center; margin-top: 12px; font-size: 0.95rem; min-height: 24px; }
.form-message.success { color: var(--success); }
.form-message.error { color: var(--danger); }

/* ===== Footer ===== */
.footer { background: var(--text); color: #cbd5e1; padding: 24px 0; margin-top: 60px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-copy { font-size: 0.85rem; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: #cbd5e1; font-size: 0.85rem; }
.footer-links a:hover { color: #fff; text-decoration: underline; }

/* ===== Modal ===== */
.modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; }
.modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
.modal-content { position: relative; background: var(--bg); border-radius: var(--radius-lg); padding: 32px; max-width: 440px; width: 90%; box-shadow: var(--shadow-lg); text-align: center; }
.modal-close { position: absolute; top: 12px; right: 16px; font-size: 1.5rem; cursor: pointer; color: var(--text-light); }
.modal-content h3 { font-size: 1.3rem; margin-bottom: 12px; }
.modal-content p { color: var(--text-light); margin-bottom: 24px; }
.modal-actions { display: flex; flex-direction: column; gap: 10px; }
.modal-btn-primary { display: block; padding: 12px; background: var(--accent); color: #fff; border-radius: var(--radius); font-weight: 600; transition: background 0.2s; }
.modal-btn-primary:hover { background: var(--accent-hover); text-decoration: none; }
.modal-btn-secondary { padding: 10px; background: none; border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; font-size: 0.9rem; color: var(--text-light); }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .search-title { font-size: 1.5rem; }
    .search-input { padding: 12px 14px; font-size: 1rem; }
    .search-btn { padding: 12px 20px; font-size: 1rem; }
    .results-layout { flex-direction: column; }
    .results-facets { width: 100%; }
    .result-item { flex-direction: column; }
    .result-img { width: 60px; height: 60px; }
    .form-row { flex-direction: column; }
    .class-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
    .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .header-inner { flex-wrap: wrap; height: auto; padding: 10px 0; }
    .class-grid { grid-template-columns: repeat(3, 1fr); font-size: 0.8rem; }
    .results-header { flex-direction: column; align-items: flex-start; }
}

/* ===== Search UX Improvements ===== */
.search-header-fixed { position: sticky; top: 60px; z-index: 50; background: var(--bg-light); padding: 20px 0 16px; margin: -40px 0 20px; }
.search-header-fixed .search-title { font-size: 1.3rem; }
.search-header-fixed .search-subtitle { font-size: 0.95rem; margin-bottom: 16px; }
.search-header-fixed .search-bar { max-width: 600px; }
.search-header-fixed .search-input { padding: 12px 16px; font-size: 1rem; }

/* Input clear button */
.search-input-wrap { position: relative; flex: 1; display: flex; }
.search-input { flex: 1; }
.search-clear-btn { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--text-lighter); cursor: pointer; font-size: 1.2rem; padding: 4px 8px; display: none; line-height: 1; }
.search-clear-btn:hover { color: var(--text-light); }
.search-input:not(:placeholder-shown) ~ .search-clear-btn { display: block; }

/* Loading animation */
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.results-loading { padding: 40px; text-align: center; color: var(--text-light); }
.results-loading .bar { height: 14px; background: var(--border); border-radius: 4px; margin: 8px 0; animation: pulse 1.5s ease-in-out infinite; }
.results-loading .bar:nth-child(2) { width: 80%; animation-delay: 0.1s; }
.results-loading .bar:nth-child(3) { width: 60%; animation-delay: 0.2s; }
.results-loading .bar:nth-child(4) { width: 70%; animation-delay: 0.3s; }

/* Better result cards */
.result-item { transition: all 0.2s; }
.result-item:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.result-img { width: 60px; height: 60px; border-radius: 6px; }

/* Mobile adjustments */
@media (max-width: 768px) {
  .search-header-fixed { position: static; padding: 0; margin: 0; }
  .result-img { width: 48px; height: 48px; }
  .result-tm-name { font-size: 0.95rem; }
  .result-meta { font-size: 0.8rem; gap: 8px; }
}

/* Facet active state */
.facet-active { background: var(--primary-light) !important; color: var(--primary) !important; font-weight: 600; border-radius: 4px; }

/* ===== UI/UX 打磨 ===== */

/* Sticky search on scroll */

/* Smooth result appearance */
@keyframes fadeSlideIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.result-item { animation: fadeSlideIn .3s ease both; }
.result-item:nth-child(1) { animation-delay: 0s; }
.result-item:nth-child(2) { animation-delay: .05s; }
.result-item:nth-child(3) { animation-delay: .1s; }
.result-item:nth-child(4) { animation-delay: .15s; }
.result-item:nth-child(5) { animation-delay: .2s; }
.result-item:nth-child(6) { animation-delay: .25s; }
.result-item:nth-child(7) { animation-delay: .3s; }
.result-item:nth-child(8) { animation-delay: .35s; }
.result-item:nth-child(9) { animation-delay: .4s; }
.result-item:nth-child(10) { animation-delay: .45s; }

/* Better result cards */
.result-item { border-radius: 10px; transition: all .25s ease; }
.result-item:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); transform: translateY(-2px); }
.result-tm-name { color: var(--text); font-size: 1.05rem; }
.result-img { width: 56px; height: 56px; border-radius: 8px; transition: transform .2s; }
.result-item:hover .result-img { transform: scale(1.05); }

/* Status badge polish */
.result-status { font-size: .75rem; padding: 3px 10px; border-radius: 12px; letter-spacing: .02em; }

/* Back to top */
.back-to-top { position: fixed; bottom: 24px; right: 24px; width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: #fff; border: none; cursor: pointer; font-size: 1.3rem; box-shadow: 0 4px 12px rgba(0,0,0,.2); opacity: 0; transform: translateY(20px); transition: all .3s ease; z-index: 999; display: flex; align-items: center; justify-content: center; }
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--primary-hover); transform: translateY(-2px); }

/* Pagination polish */
.page-btn { border-radius: 6px; padding: 7px 14px; font-size: .85rem; transition: all .2s; }
.page-btn:hover:not(:disabled):not(.active) { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 2px 6px rgba(26,86,219,.3); }

/* Facet list polish */
.facet-item { cursor: pointer; padding: 7px 8px; border-radius: 6px; margin-bottom: 2px; transition: all .15s; font-size: .82rem; }
.facet-item:hover { background: var(--primary-light); color: var(--primary); }
.facet-active { background: var(--primary-light) !important; color: var(--primary) !important; font-weight: 600; }

/* Filter dropdowns */
.filter-select { cursor: pointer; transition: border-color .15s; }
.filter-select:hover { border-color: var(--primary); }

/* Loading bar */
@keyframes shimmer { 0% { background-position: -200px 0; } 100% { background-position: calc(200px + 100%) 0; } }
.results-loading .bar { height: 16px; background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%); background-size: 200px 100%; animation: shimmer 1.5s infinite; border-radius: 6px; margin: 10px 0; }

/* Responsive */
@media (max-width: 768px) {
  .result-item { padding: 12px; gap: 10px; }
  .result-img { width: 44px; height: 44px; }
  .result-tm-name { font-size: .9rem; }
  .result-meta { font-size: .78rem; gap: 6px; flex-wrap: wrap; }
  .back-to-top { bottom: 16px; right: 16px; width: 38px; height: 38px; font-size: 1.1rem; }
  .results-facets { width: 100%; margin-bottom: 16px; }
  .results-layout { flex-direction: column; }
  .facet-list { display: flex; flex-wrap: wrap; gap: 4px; }
  .facet-item { flex: 0 0 auto; border-bottom: none; }
  .facet-item span { white-space: nowrap; }
  .results-header { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ===== Conversion Popups ===== */
.tm-popup { position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center; padding: 20px; }
.tm-popup-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.tm-popup-card { position: relative; background: #fff; border-radius: 16px; box-shadow: 0 24px 60px rgba(0,0,0,.25); width: 100%; max-width: 440px; overflow: hidden; transform: translateY(20px); opacity: 0; transition: all .35s ease; }
.tm-popup.show .tm-popup-card { transform: translateY(0); opacity: 1; }
.tm-popup-close { position: absolute; top: 10px; right: 16px; background: none; border: none; color: rgba(255,255,255,.8); font-size: 1.6rem; cursor: pointer; z-index: 5; line-height: 1; }
.tm-popup-top { padding: 28px 28px 22px; text-align: center; color: #fff; }
.tm-popup-blue .tm-popup-top { background: linear-gradient(135deg, #1a56db, #3b82f6); }
.tm-popup-green .tm-popup-top { background: linear-gradient(135deg, #065f46, #059669); }
.tm-popup-badge { display: inline-block; background: rgba(255,255,255,.2); padding: 4px 14px; border-radius: 20px; font-size: .72rem; font-weight: 600; letter-spacing: .03em; margin-bottom: 10px; }
.tm-popup-top h3 { font-size: 1.3rem; margin-bottom: 8px; line-height: 1.3; }
.tm-popup-top p { font-size: .88rem; opacity: .92; line-height: 1.5; }
.tm-popup-price { font-size: 1.7rem; font-weight: 700; margin-top: 14px; }
.tm-popup-price span { font-size: .8rem; font-weight: 400; opacity: .85; }
.tm-popup-form { padding: 22px 28px 26px; }
.tm-popup-input { width: 100%; padding: 12px 14px; border: 2px solid #d1d5db; border-radius: 8px; font-size: .95rem; outline: none; transition: border-color .2s; box-sizing: border-box; }
.tm-popup-input:focus { border-color: var(--primary, #1a56db); }
.tm-popup-cta { width: 100%; margin-top: 12px; padding: 13px; background: #e67e22; color: #fff; border: none; border-radius: 8px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: background .2s; }
.tm-popup-cta:hover { background: #d35400; }
.tm-popup-cta:disabled { opacity: .6; cursor: not-allowed; }
.tm-popup-privacy { text-align: center; font-size: .72rem; color: #9ca3af; margin-top: 12px; }
.popup-msg { min-height: 20px; margin-top: 10px; font-size: .85rem; text-align: center; }
.popup-msg.success { color: #059669; }
.popup-msg.error { color: #dc2626; }
.tm-popup-features { margin-bottom: 4px; }
.tm-popup-feature { display: flex; gap: 8px; align-items: flex-start; padding: 7px 0; font-size: .88rem; color: #374151; border-bottom: 1px solid #f3f4f6; line-height: 1.4; }
.tm-popup-feature:last-child { border-bottom: none; }
.tm-popup-feature span { color: #059669; font-weight: 700; flex-shrink: 0; }
.tm-popup-email-row { display: flex; gap: 8px; margin-top: 12px; }
.tm-popup-email-row .tm-popup-input { flex: 1; }
.tm-popup-email-row .tm-popup-cta { width: auto; margin-top: 0; padding: 12px 18px; white-space: nowrap; }
@media (max-width: 480px) {
  .tm-popup-card { max-width: 100%; }
  .tm-popup-top { padding: 22px 18px 18px; }
  .tm-popup-top h3 { font-size: 1.1rem; }
  .tm-popup-form { padding: 16px 18px 20px; }
  .tm-popup-email-row { flex-direction: column; }
  .tm-popup-email-row .tm-popup-cta { width: 100%; }
}
