/* Light modern UI */
:root{
  --bg:#f7f8fa;
  --card:#ffffff;
  --ink:#0f172a;
  --muted:#64748b;
  --brand:#2563eb;
  --accent:#10b981;
  --ring:#dbeafe;
  --border:#e5e7eb;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
  color:var(--ink);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

.container{max-width:1100px; margin: 0 auto; padding: 16px;}

.site-header{
  background:#fff;
  border-bottom:1px solid var(--border);
}
.brand{display:flex; align-items:center; gap:12px; max-width:1100px; margin:0 auto; padding:14px 16px;}
.logo{font-size:28px}
.brand-text h1{font-size:18px; margin:0 0 4px}
.brand-text .muted{margin:0; color:var(--muted); font-size:13px}

.search-wrap{margin-top:14px;}
.searchbar{
  background:#fff;
  display:flex; align-items:center; gap:10px;
  border:1px solid var(--border);
  border-radius:999px;
  padding:10px 14px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 2px 12px rgba(0,0,0,.04);
}
.search-icon{font-size:18px}
.searchbar input{
  flex:1;
  border:0; outline:0;
  font-size:16px; padding:8px 2px; background:transparent; color:var(--ink);
}
.clear-btn{
  border:0; outline:0; background:#eef2ff; color:#4f46e5;
  padding:6px 10px; border-radius:999px; cursor:pointer;
}
.clear-btn:hover{background:#e0e7ff}
.search-tips{display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-top:10px; color:var(--muted); font-size:12px}
.search-tips code{background:#eef2ff; color:#4f46e5; padding:4px 8px; border-radius:999px}

.actions{display:flex; align-items:center; gap:10px; margin:14px 2px}
.btn{
  border:1px solid var(--border); background:#fff; color:var(--ink);
  padding:10px 14px; border-radius:12px; cursor:pointer;
  font-weight:600;
  box-shadow: 0 1px 2px rgba(0,0,0,.03);
}
.btn:hover{border-color:var(--ring); box-shadow:0 0 0 4px var(--ring)}
.count{margin-left:auto; color:var(--muted); font-size:14px}

.grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap:14px;
  margin-top:8px;
}

.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:16px;
  padding:14px;
  display:flex; flex-direction:column; gap:12px;
  box-shadow:0 1px 2px rgba(0,0,0,.04);
}
.card-top{display:flex; align-items:center; justify-content:space-between; gap:8px}
.badge{
  display:inline-flex; align-items:center; gap:8px;
  background:#ecfeff; color:#0e7490; padding:6px 10px; border-radius:999px; font-weight:600; font-size:12px
}
.tags{
  color:var(--muted); font-size:12px;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:60%;
}
.msg-text{white-space:pre-wrap; line-height:1.5; font-size:15px}
.card-actions{display:flex; gap:8px; margin-top:auto}
.btn-copy{background:#f1f5f9}
.btn-whatsapp{background:#eafff3; color:#047857}
.btn-share{background:#eef2ff; color:#4f46e5}

.toast{
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: #111827; color: #fff; padding: 10px 14px; border-radius: 999px;
  font-size: 14px; opacity: 0; pointer-events:none; transition: opacity .25s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
}
.toast.show{opacity:1}

.site-footer{color:var(--muted); text-align:center; padding:24px 12px}

.highlight{ background: #fff0c2; border-radius:6px; padding:0 2px}
@media (max-width:480px){
  .searchbar input{font-size:16px}
  .btn{padding:10px 12px}
}
