:root {
    --bg: #f4f5f7;
    --card: #ffffff;
    --border: #e4e7eb;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --text: #111827;
    --muted: #6b7280;
    --success: #16a34a;
    --error: #dc2626;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

a {
    color: var(--primary);
    text-decoration: none;
}

.topbar {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.topbar .brand a {
    font-weight: 600;
    color: var(--text);
    font-size: 1.1rem;
}

.topbar nav a {
    margin-left: 1rem;
    font-weight: 500;
}

.topbar .btn-sm {
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--primary);
    border-radius: 999px;
    color: var(--primary);
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-left: 1rem;
    font-size: 0.85rem;
}

.lang-switch a {
    color: var(--muted);
    font-weight: 600;
}

.lang-switch a.active {
    color: var(--primary);
}

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

.container.narrow {
    max-width: 600px;
}

.landing {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2.5rem 1.25rem 3.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hero {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
}

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

.hero p {
    color: var(--muted);
    margin-bottom: 1rem;
}

.muted {
    color: var(--muted);
}

.hero .hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-bullets {
    padding-left: 1.25rem;
    margin: 0;
    color: var(--muted);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.hero-media {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mockup {
    width: 100%;
    max-width: 360px;
    background: #0f172a;
    color: #fff;
    border-radius: 1.25rem;
    padding: 1.75rem;
    box-shadow: 0 25px 45px rgba(15, 23, 42, 0.4);
}

.mockup ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mockup .tag {
    display: inline-flex;
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.2);
    color: #bfdbfe;
}

.note {
    font-size: 0.85rem;
    color: var(--muted);
}

.trust {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
}

.trust .logos {
    margin-top: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    color: var(--muted);
    font-weight: 600;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.split {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.split-content ol {
    padding-left: 1.25rem;
    color: var(--muted);
}

.split-media {
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-card {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 20px 35px rgba(37, 99, 235, 0.2);
    width: 100%;
}

.metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}

.metrics article {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
}

.metrics h3 {
    font-size: 2rem;
    margin: 0;
}

.testimonial {
    background: #0f172a;
    color: #fff;
    border-radius: 1rem;
    padding: 2rem;
}

.testimonial .quote {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.testimonial .author {
    margin-top: 1rem;
    color: #94a3b8;
}

.faq {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.cta-banner {
    background: #1d4ed8;
    color: #fff;
    border-radius: 1rem;
    padding: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.cta-banner .btn {
    background: #fff;
    color: #1d4ed8;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
    color: var(--muted);
    margin-bottom: 0.25rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.65rem 1.5rem;
    font-weight: 600;
    background: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn:hover {
    background: var(--primary-dark);
}

.btn.secondary {
    background: rgba(37, 99, 235, 0.12);
    color: var(--primary);
}

.btn.small {
    padding: 0.35rem 0.9rem;
    font-size: 0.85rem;
}

.btn.full {
    width: 100%;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.header-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 1rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
}

.card-thumb {
    position: relative;
    overflow: hidden;
}

.card-thumb img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.card-thumb:hover img {
    transform: scale(1.04);
}

.card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

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

.form-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
}

.form-card form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

label {
    font-weight: 500;
    font-size: 0.9rem;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.checkbox a {
    color: var(--primary);
}

input[type="email"],
input[type="password"],
input[type="text"],
input[type="file"],
textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 0.65rem 0.85rem;
    font-size: 1rem;
}

input:focus,
textarea:focus {
    outline: 3px solid rgba(37, 99, 235, 0.15);
}

.status {
    border-radius: 0.75rem;
    padding: 0.85rem 1rem;
    margin: 0.5rem 0 1rem;
    font-weight: 500;
}

.status.error {
    background: rgba(220, 38, 38, 0.08);
    color: #b91c1c;
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.status.success {
    background: rgba(22, 163, 74, 0.1);
    color: #15803d;
    border: 1px solid rgba(22, 163, 74, 0.2);
}

.status.info {
    background: rgba(37, 99, 235, 0.1);
    color: #1d4ed8;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #bfdbfe;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.global-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.global-overlay.is-visible {
    display: flex;
}

.overlay-content {
    background: #fff;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 220px;
    align-items: center;
}

body.overlay-visible {
    overflow: hidden;
}

.form-footnote {
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 1rem;
}

.form-footnote a {
    font-weight: 600;
}

.site-footer {
    margin-top: 3rem;
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.site-footer nav a {
    margin-right: 1rem;
    color: var(--muted);
}

.site-footer nav a:last-child {
    margin-right: 0;
}

.legal-page ul {
    padding-left: 1.25rem;
    list-style: disc;
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.empty-state {
    background: #fff;
    border: 1px dashed var(--border);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    color: var(--muted);
}

.drawer-detail {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    margin-top: 1rem;
}

.drawer-media img {
    width: 100%;
    border-radius: 1rem;
    border: 1px solid var(--border);
    object-fit: cover;
}

.drawer-media img + img {
    margin-top: 0.75rem;
}

.drawer-info .inline-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.inline-form button {
    align-self: flex-start;
}

.link-back {
    display: inline-block;
    margin-bottom: 1rem;
    color: var(--muted);
}

.items-panel {
    margin-top: 2rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.5rem;
}

.manual-notes ul {
    list-style: disc;
    padding-left: 1.25rem;
}

.items-list {
    list-style: disc;
    padding-left: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.json-block {
    margin-top: 1.5rem;
}

.json-block pre {
    background: #0f172a;
    color: #e2e8f0;
    padding: 1rem;
    border-radius: 0.75rem;
    overflow-x: auto;
    font-size: 0.85rem;
}

.whats-new {
    margin: 2rem 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.ticker-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.ticker-head span {
    font-size: 0.85rem;
    color: var(--muted);
}

.ticker-track {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.ticker-item {
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1rem;
    background: #f8fafc;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0.5rem 0;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.admin-table th,
.admin-table td {
    border: 1px solid var(--border);
    padding: 0.75rem;
    text-align: left;
    font-size: 0.95rem;
}

.admin-table th {
    background: #f3f4f6;
    font-weight: 600;
}

.topbar.admin {
    background: #0f172a;
    color: #fff;
}

.topbar.admin a {
    color: #fff;
}

.admin-container {
    padding-top: 3rem;
}

.admin-hero {
    background: linear-gradient(135deg, #0f172a, #1d4ed8);
    color: #fff;
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.admin-hero .muted {
    color: rgba(255, 255, 255, 0.8);
}

.admin-launchpad {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.launch-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.08);
}

.search-results {
    margin-top: 2rem;
}

.search-results.is-active {
    animation: pulse 1s ease;
}

@keyframes pulse {
    from {
        box-shadow: 0 0 0 rgba(37, 99, 235, 0.35);
    }
    to {
        box-shadow: 0 0 0 rgba(37, 99, 235, 0);
    }
}

.search-card {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 1rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.search-thumb img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 0.75rem;
    border: 1px solid var(--border);
}

.search-body ul {
    margin: 0.5rem 0 1rem;
    padding-left: 1.25rem;
}

.search-body li {
    color: var(--muted);
}

.hero-actions .btn.secondary {
    background: transparent;
    border: 1px solid var(--primary);
}

@media (max-width: 640px) {
    .topbar nav a {
        margin-left: 0.5rem;
    }
    .btn {
        width: 100%;
        justify-content: center;
    }
    .card-thumb img {
        height: 200px;
    }
    .search-card {
        grid-template-columns: 1fr;
    }
    .header-actions {
        width: 100%;
    }
}
