/* =====================================================
   GrabNear — free websites: site cards + request form.
   Shared by /websites (app, inside the .ig shell) and /showcase (public).
===================================================== */
.ws-scope {
    --ws-surface: #0e1022;
    --ws-surface-2: #13152b;
    --ws-line: rgba(255, 255, 255, 0.07);
    --ws-line-2: rgba(255, 255, 255, 0.12);
    --ws-text: #f3f4ff;
    --ws-text-2: #b3b7d6;
    --ws-muted: #7c81a6;
    --ws-accent: #a5b4fc;
    --ws-good: #34d399;
    --ws-star: #fbbf24;
    --ws-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ws-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
}
.ws-scope *, .ws-scope *::before, .ws-scope *::after { box-sizing: border-box; }

/* ---------- stats strip ---------- */
.ws-stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 22px; }
.ws-stat { display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 12px; background: var(--ws-surface); border: 1px solid var(--ws-line); font-size: 13px; color: var(--ws-text-2); }
.ws-stat b { font-family: var(--ws-display); font-size: 18px; font-weight: 700; color: var(--ws-text); letter-spacing: -0.02em; }
.ws-stat svg { width: 16px; height: 16px; color: var(--ws-accent); flex: none; }

/* ---------- grid + card ---------- */
.ws-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 18px; margin-bottom: 22px; }
.ws-card {
    position: relative; display: flex; flex-direction: column; min-width: 0; border-radius: 20px; overflow: hidden;
    background: linear-gradient(170deg, #121430, var(--ws-surface) 55%);
    border: 1px solid var(--ws-line);
    box-shadow: 0 24px 50px -32px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: transform 0.5s var(--ws-ease), border-color 0.3s, box-shadow 0.4s;
    animation: wsUp 0.6s var(--ws-ease) both;
}
.ws-card:hover { transform: translateY(-4px); border-color: rgba(129, 140, 248, 0.35); box-shadow: 0 34px 60px -30px rgba(99, 102, 241, 0.55); }
@keyframes wsUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* screenshot inside a small browser frame */
.ws-shot { position: relative; display: block; margin: 12px 12px 0; border-radius: 12px; overflow: hidden; background: #070814; border: 1px solid var(--ws-line-2); text-decoration: none; }
.ws-bar { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; background: #15172e; border-bottom: 1px solid var(--ws-line); }
.ws-bar i { width: 7px; height: 7px; border-radius: 50%; background: #3a3e63; flex: none; }
.ws-bar i:first-child { background: #f87171; } .ws-bar i:nth-child(2) { background: #fbbf24; } .ws-bar i:nth-child(3) { background: #34d399; }
.ws-url { flex: 1; min-width: 0; margin-left: 6px; display: flex; align-items: center; gap: 5px; height: 18px; padding: 0 8px; border-radius: 6px; background: rgba(255, 255, 255, 0.05); font: 500 11px 'Inter', sans-serif; color: var(--ws-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-url svg { width: 10px; height: 10px; color: var(--ws-good); flex: none; }
.ws-img { position: relative; aspect-ratio: 800 / 420; overflow: hidden; }
.ws-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ws-ease); }
.ws-card:hover .ws-img img { transform: scale(1.05); }
.ws-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(5, 6, 14, 0.55)); pointer-events: none; }
.ws-open { position: absolute; right: 10px; bottom: 10px; z-index: 1; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; font: 600 12px 'Inter', sans-serif; color: #fff; background: rgba(10, 11, 26, 0.72); border: 1px solid rgba(255, 255, 255, 0.16); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; transform: translateY(6px); transition: opacity 0.3s, transform 0.4s var(--ws-ease); }
.ws-open svg { width: 12px; height: 12px; }
.ws-shot:hover .ws-open, .ws-shot:focus-visible .ws-open { opacity: 1; transform: none; }
.ws-live { position: absolute; left: 10px; top: 10px; z-index: 1; display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; font: 700 10.5px 'Inter', sans-serif; letter-spacing: 0.06em; text-transform: uppercase; color: #a7f3d0; background: rgba(6, 30, 24, 0.75); border: 1px solid rgba(52, 211, 153, 0.35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.ws-live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ws-good); box-shadow: 0 0 8px rgba(52, 211, 153, 0.9); animation: wsPulse 2.4s ease-in-out infinite; }
@keyframes wsPulse { 50% { opacity: 0.45; } }

.ws-body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.ws-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.ws-kind { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ws-accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-rating { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--ws-text); white-space: nowrap; }
.ws-rating svg { width: 13px; height: 13px; color: var(--ws-star); }
.ws-rating em { font-style: normal; font-weight: 500; color: var(--ws-muted); }
.ws-name { margin: 0; font-family: var(--ws-display); font-size: 20px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; color: var(--ws-text); }
.ws-area { display: flex; align-items: center; gap: 5px; margin: 4px 0 12px; font-size: 12.5px; color: var(--ws-muted); }
.ws-area svg { width: 12px; height: 12px; flex: none; }
.ws-hook { margin: 0 0 8px; font-size: 14.5px; font-weight: 600; line-height: 1.45; color: #dfe2ff; }
.ws-desc { margin: 0 0 14px; font-size: 13.5px; line-height: 1.6; color: var(--ws-text-2); }
.ws-feats { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; padding: 0; }
.ws-feats li { padding: 4px 9px; border-radius: 8px; font-size: 11.5px; font-weight: 500; color: var(--ws-text-2); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--ws-line); }
.ws-foot { display: flex; gap: 8px; margin-top: auto; }
.ws-foot .ws-btn-primary { flex: 1; }

/* ---------- buttons ---------- */
.ws-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 11px; font: 600 13.5px 'Inter', sans-serif; text-decoration: none; cursor: pointer; border: 1px solid transparent; white-space: nowrap; transition: transform 0.2s var(--ws-ease), box-shadow 0.2s, background 0.2s, border-color 0.2s, color 0.2s, opacity 0.2s; }
.ws-btn svg { width: 15px; height: 15px; flex: none; }
.ws-btn-primary { color: #fff; background: linear-gradient(120deg, #6366f1, #8b5cf6 60%, #a855f7); box-shadow: 0 10px 24px -8px rgba(99, 102, 241, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.ws-btn-primary:hover:not(:disabled) { color: #fff; transform: translateY(-1px); box-shadow: 0 14px 30px -8px rgba(99, 102, 241, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.ws-btn-primary:disabled { opacity: 0.6; cursor: wait; }
.ws-btn-ghost { color: var(--ws-text); background: rgba(255, 255, 255, 0.04); border-color: var(--ws-line-2); }
.ws-btn-ghost:hover { color: var(--ws-text); background: rgba(255, 255, 255, 0.08); border-color: rgba(129, 140, 248, 0.4); }
.ws-btn-ghost.done { color: #6ee7b7; border-color: rgba(52, 211, 153, 0.4); }
.ws-btn-lg { height: 48px; padding: 0 22px; font-size: 14.5px; border-radius: 13px; }

/* ---------- loading skeleton ---------- */
.ws-skel { border-radius: 20px; border: 1px solid var(--ws-line); background: var(--ws-surface); min-height: 420px; position: relative; overflow: hidden; }
.ws-skel::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04), transparent); animation: wsShimmer 1.4s infinite; }
@keyframes wsShimmer { to { transform: translateX(100%); } }

/* ---------- request form ---------- */
.ws-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 14px; }
.ws-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.ws-field.full { grid-column: 1 / -1; }
.ws-label { font-size: 13px; font-weight: 600; color: var(--ws-text); }
.ws-label em { font-style: normal; font-weight: 500; font-size: 12px; color: var(--ws-muted); margin-left: 4px; }
.ws-input { width: 100%; height: 46px; padding: 0 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--ws-line-2); color: var(--ws-text); font: 500 14px 'Inter', sans-serif; outline: none; transition: border-color 0.2s, box-shadow 0.2s, background 0.2s; -webkit-appearance: none; appearance: none; }
textarea.ws-input { height: auto; min-height: 92px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.ws-input::placeholder { color: #5d6288; }
.ws-input:focus { border-color: rgba(129, 140, 248, 0.6); background: rgba(255, 255, 255, 0.06); box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.14); }
.ws-input.bad { border-color: rgba(248, 113, 113, 0.6); }

.ws-chips { display: flex; flex-wrap: wrap; gap: 7px; border: 0; margin: 0; padding: 0; min-width: 0; }
.ws-chip { position: relative; }
.ws-chip input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.ws-chip span { display: inline-flex; align-items: center; height: 34px; padding: 0 13px; border-radius: 999px; font: 500 13px 'Inter', sans-serif; color: var(--ws-text-2); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--ws-line-2); cursor: pointer; user-select: none; transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s; }
.ws-chip span:hover { color: var(--ws-text); border-color: rgba(129, 140, 248, 0.4); }
.ws-chip input:checked + span { color: #fff; background: linear-gradient(120deg, rgba(99, 102, 241, 0.9), rgba(139, 92, 246, 0.9)); border-color: transparent; box-shadow: 0 6px 16px -6px rgba(99, 102, 241, 0.7); }
.ws-chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.45); }

.ws-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.ws-form-foot { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.ws-form-note { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--ws-muted); }
.ws-msg { padding: 10px 12px; border-radius: 10px; font-size: 13px; line-height: 1.45; }
.ws-msg[hidden] { display: none; }
.ws-msg.err { color: #fca5a5; background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.25); }

.ws-done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 34px 10px; }
.ws-done-ic { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: var(--ws-good); background: rgba(52, 211, 153, 0.12); border: 1px solid rgba(52, 211, 153, 0.3); }
.ws-done-ic svg { width: 26px; height: 26px; }
.ws-done h3 { margin: 6px 0 0; font-family: var(--ws-display); font-size: 21px; color: var(--ws-text); }
.ws-done p { margin: 0; max-width: 380px; font-size: 14px; line-height: 1.6; color: var(--ws-text-2); }

@media (max-width: 760px) {
    .ws-grid { grid-template-columns: 1fr; gap: 14px; }
    .ws-form { grid-template-columns: 1fr; }
    .ws-shot { margin: 10px 10px 0; }
    .ws-body { padding: 14px 14px 16px; }
    .ws-open { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .ws-scope *, .ws-scope *::before, .ws-scope *::after { animation: none !important; transition: none !important; }
}
