:root {
    --bg: #f4f6f9;
    --surface: #ffffff;
    --surface-2: #eef3fb;
    --ink: #152033;
    --muted: #617086;
    --line: #d9e0ea;
    --nav: #071227;
    --brand: #2857e8;
    --brand-dark: #1e43b5;
    --success: #159447;
    --success-dark: #0f7a39;
    --warning: #f4b844;
    --danger-bg: #fff1f1;
    --danger: #9b1c1c;
}

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

html {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    max-width: 100%;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--ink);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    line-height: 1.5;
}

img,
svg,
video {
    max-width: 100%;
}

.navbar {
    background: var(--nav);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-inner {
    width: min(1280px, calc(100% - 32px));
    min-height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.logo {
    color: #ffffff;
    font-size: 26px;
    font-weight: 800;
    white-space: nowrap;
}

.navbar ul {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex: 1;
    flex-wrap: nowrap;
}

.navbar li {
    min-width: 0;
}

.navbar a {
    color: rgba(255, 255, 255, 0.86);
    text-decoration: none;
    padding: 9px 10px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease;
}

.navbar a:hover,
.navbar a.active {
    background: var(--brand);
    color: #ffffff;
}

.hero {
    background: #2b4fd0;
    color: #ffffff;
    padding: 64px 20px 56px;
}

.hero-inner {
    width: min(1040px, 100%);
    margin: 0 auto;
    text-align: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 12px;
    margin-bottom: 18px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

.hero h1 {
    max-width: 900px;
    margin: 0 auto 16px;
    font-size: clamp(34px, 6vw, 58px);
    line-height: 1.06;
}

.hero p {
    max-width: 760px;
    margin: 0 auto 30px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
}

.search-box {
    max-width: 900px;
    margin: 0 auto;
}

.search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.45fr) auto;
    gap: 12px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
}

.search-row input,
.search-row select {
    width: 100%;
    min-height: 52px;
    padding: 0 18px;
    border: 0;
    border-radius: 6px;
    color: var(--ink);
    font-size: 16px;
    outline: none;
    background: #ffffff;
}

.search-row select {
    cursor: pointer;
}

.search-row input:focus,
.search-row select:focus {
    box-shadow: 0 0 0 3px rgba(244, 184, 68, 0.45);
}

.search-row button {
    min-width: 128px;
    min-height: 52px;
    border: 0;
    border-radius: 6px;
    background: var(--success);
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.search-row button:hover {
    background: var(--success-dark);
    transform: translateY(-1px);
}

.copy-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.copy-field input {
    min-width: 0;
}

.copy-btn {
    min-height: 44px;
    white-space: nowrap;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.hero-stats span {
    padding: 7px 12px;
    border-radius: 8px;
    background: rgba(7, 18, 39, 0.22);
    color: rgba(255, 255, 255, 0.88);
    font-size: 13px;
    font-weight: 700;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 42px auto 64px;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.sub-section-head {
    margin-top: 34px;
}

.section-kicker {
    color: var(--brand-dark);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.section-head h2 {
    margin-top: 4px;
    font-size: 28px;
}

.section-head p {
    color: var(--muted);
    font-weight: 700;
}

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

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.stat-card {
    min-height: 126px;
    background: var(--surface);
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(21, 32, 51, 0.07);
}

.stat-card span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.stat-card h2 {
    margin-top: 10px;
    color: var(--ink);
    font-size: 30px;
}

.stat-link {
    text-decoration: none;
    color: inherit;
}

.stat-link:hover {
    border-color: var(--brand);
    box-shadow: 0 14px 30px rgba(40, 87, 232, 0.14);
}

.card {
    position: relative;
    overflow: hidden;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    background: #ffffff;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(21, 32, 51, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: #2857e8;
}

.service-card:hover {
    transform: translateY(-3px);
    border-color: rgba(40, 87, 232, 0.24);
    box-shadow: 0 18px 38px rgba(21, 32, 51, 0.13);
}

.service-card.category-imei::before {
    background: linear-gradient(90deg, #2857e8, #16a3b8);
}

.service-card.category-server::before {
    background: linear-gradient(90deg, #7c3aed, #f59e0b);
}

.service-card.category-remote::before {
    background: linear-gradient(90deg, #0f9f6e, #14b8a6);
}

.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.service-avatar {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    object-fit: contain;
    padding: 8px;
    background: #eef4ff;
    border: 1px solid #cfddff;
    border-radius: 8px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.service-avatar.fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8f1ff;
    color: #1e43b5;
    font-size: 24px;
    font-weight: 900;
}

.category-server .service-avatar,
.category-server .service-avatar.fallback {
    background: #fff5df;
    border-color: #f8d68b;
    color: #8a4b05;
}

.category-remote .service-avatar,
.category-remote .service-avatar.fallback {
    background: #defaf1;
    border-color: #a6ecd4;
    color: #047857;
}

.service-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.service-meta span:not(.badge) {
    padding: 6px 8px;
    border-radius: 6px;
    background: #eef3fb;
    color: #526173;
    font-size: 11px;
    font-weight: 900;
}

.badge {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 6px 8px;
    border-radius: 6px;
    background: #eaf0ff;
    color: #2145b5;
    font-size: 11px;
    font-weight: 900;
}

.category-server .badge {
    background: #fff2d2;
    color: #865600;
}

.category-remote .badge {
    background: #dcfce7;
    color: #047857;
}

.card h2 {
    flex: 1;
    color: var(--ink);
    font-size: 19px;
    line-height: 1.28;
    overflow-wrap: anywhere;
}

.card-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
    border: 1px solid #dce5f3;
    border-radius: 8px;
    background: #f7faff;
}

.category-server .card-footer {
    border-color: #f6dfad;
    background: #fffaf0;
}

.category-remote .card-footer {
    border-color: #bfeedd;
    background: #f0fdf8;
}

.muted {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
}

.price {
    color: #0d7a3a;
    font-size: 26px;
    font-weight: 900;
    line-height: 1.2;
}

.category-server .price {
    color: #9a5a00;
}

.category-remote .price {
    color: #047857;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    background: var(--brand);
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 900;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.2s ease;
}

.btn:hover {
    background: var(--brand-dark);
    transform: translateY(-1px);
}

.service-card .btn {
    width: 100%;
}

button.btn {
    border: 0;
    cursor: pointer;
    font: inherit;
}

.btn.success {
    background: var(--success);
}

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

.btn.warning {
    background: #b77905;
}

.btn.warning:hover {
    background: #8a5a00;
}

.btn.danger {
    background: var(--danger);
}

.btn.danger:hover {
    background: #7f1515;
}

.action-form {
    margin-bottom: 8px;
}

.action-form:last-child {
    margin-bottom: 0;
}

.action-form .btn {
    min-height: 36px;
    padding: 0 12px;
    font-size: 12px;
}

.action-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.code-block {
    max-height: 460px;
    overflow: auto;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #071227;
    color: #e7eefc;
    font: 13px/1.5 Consolas, "Courier New", monospace;
    white-space: pre-wrap;
    word-break: break-word;
}

.panel.result-card,
.result-card {
    margin-top: 20px;
    background: #0f172a;
    color: #e5e7eb;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.22);
}

.panel.result-card h3,
.result-card h3 {
    color: #ffffff;
}

.result-card .muted-block {
    color: #cbd5e1;
}

.result-card .btn {
    box-shadow: none;
}

.compatibility-box,
.refund-policy-box {
    padding: 18px;
    border: 1px solid #f0d58f;
    border-radius: 10px;
    background: #fff8e7;
    color: #4f3800;
    margin: 22px 0;
}

.compatibility-box h3,
.refund-policy-box h3 {
    margin-bottom: 8px;
    color: #3d2a00;
}

.checkbox-line {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 14px;
    font-weight: 800;
    line-height: 1.4;
}

.checkbox-line input {
    width: auto;
    min-width: 18px;
    height: 18px;
    margin-top: 2px;
}

.whatsapp-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 50;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    background: #16a34a;
    color: #ffffff;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 16px 32px rgba(22, 163, 74, 0.28);
}

.whatsapp-float:hover {
    background: #11823b;
}

.whatsapp-float span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    font-size: 11px;
}

.compact-form {
    min-width: 240px;
}

.result-block {
    overflow: auto;
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: #111827;
    color: #e5e7eb;
    font: 14px/1.55 Consolas, "Courier New", monospace;
    word-break: break-word;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.result-line {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 9px 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
}

.result-line-empty {
    min-height: 8px;
    padding: 0;
    border: 0;
    background: transparent;
}

.result-line-full {
    display: block;
}

.result-label {
    flex: 0 0 190px;
    color: #cbd5e1;
    font-weight: 800;
}

.result-value {
    flex: 1;
    min-width: 0;
    color: #e5e7eb;
    font-weight: 700;
    white-space: pre-wrap;
}

.result-value-success {
    color: #22c55e;
}

.result-value-danger {
    color: #ef4444;
}

.result-value-warning {
    color: #f59e0b;
}

.result-value-info {
    color: #38bdf8;
}

.result-message {
    margin-top: 18px;
}

.service-time {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.empty {
    max-width: 760px;
    margin: 0 auto;
    padding: 30px;
    border: 1px solid #f4c7c7;
    border-radius: 8px;
    background: var(--danger-bg);
    color: var(--danger);
}

.empty h2 {
    margin-bottom: 8px;
    font-size: 24px;
}

.empty p {
    margin-bottom: 18px;
    color: #743030;
}

.empty a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 6px;
    background: var(--danger);
    color: #ffffff;
    text-decoration: none;
    font-weight: 800;
}

.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(21, 32, 51, 0.07);
    overflow: hidden;
}

.panel-pad {
    padding: 24px;
}

.panel h3 {
    margin-bottom: 16px;
    font-size: 20px;
}

.checkout-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1.2fr);
    gap: 20px;
    align-items: start;
}

.checkout-grid > .notice {
    grid-column: 1 / -1;
}

.summary-list {
    display: grid;
    gap: 14px;
}

.summary-list div {
    display: grid;
    gap: 4px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.summary-list div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.summary-list dt,
.form-field span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.summary-list dd {
    font-weight: 800;
    overflow-wrap: anywhere;
}

.receipt-panel {
    max-width: 760px;
}

.receipt-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.receipt-head h3 {
    margin-bottom: 0;
}

.muted-block {
    margin-bottom: 18px;
    color: var(--muted);
    font-weight: 700;
}

.payment-box {
    margin-bottom: 20px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-2);
}

.form-stack {
    display: grid;
    gap: 16px;
}

.filter-row {
    display: grid;
    grid-template-columns: minmax(160px, 0.4fr) minmax(260px, 1fr) auto auto;
    gap: 14px;
    align-items: end;
}

.form-field {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    min-height: 46px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--ink);
    font: inherit;
    outline: none;
}

.form-field textarea {
    min-height: 108px;
    padding: 12px;
    resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(40, 87, 232, 0.15);
}

.payment-options {
    display: grid;
    gap: 18px;
}

.permissions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 10px;
}

.permissions-grid label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #f8fbff;
    color: var(--ink);
    font-weight: 800;
}

.permissions-grid input {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.payment-option {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.payment-option.crypto {
    border-color: #bfdbfe;
    background: #f8fbff;
}

.wallet-box {
    display: grid;
    gap: 8px;
    margin: 14px 0;
    padding: 14px;
    border: 1px solid #cfe1ff;
    border-radius: 8px;
    background: #eef6ff;
}

.wallet-address {
    overflow-wrap: anywhere;
    color: #173b83;
    font-weight: 900;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 860px;
}

.data-table th,
.data-table td {
    padding: 15px 16px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
    font-size: 14px;
}

.data-table th {
    background: var(--surface-2);
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.data-table tr:last-child td {
    border-bottom: 0;
}

.tiny {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.status.success,
.notice.success {
    background: #e8f7ee;
    color: var(--success-dark);
}

.status.pending {
    background: #fff6dd;
    color: #835600;
}

.status.danger {
    background: var(--danger-bg);
    color: var(--danger);
}

.notice.danger {
    background: var(--danger-bg);
    color: var(--danger);
}

.notice.pending {
    background: #fff6dd;
    color: #835600;
}

.table-link {
    color: var(--brand-dark);
    font-weight: 900;
    text-decoration: none;
}

.notice {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 8px;
    font-weight: 800;
}

@media (max-width: 820px) {
    .nav-inner {
        min-height: auto;
        padding: 18px 0;
        align-items: flex-start;
        flex-direction: column;
    }

    .navbar ul {
        width: 100%;
        gap: 8px;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .navbar a {
        padding: 10px 14px;
    }

    .hero {
        padding: 46px 20px;
    }

    .search-row {
        grid-template-columns: 1fr;
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .checkout-grid {
        grid-template-columns: 1fr;
    }

    .filter-row {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1100px) {
    .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    .nav-inner,
    .container {
        width: calc(100vw - 28px);
        max-width: 1180px;
    }

    .nav-inner {
        gap: 14px;
    }

    .logo {
        width: 100%;
        font-size: 24px;
        line-height: 1.2;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .navbar ul {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        gap: 8px;
    }

    .navbar a {
        justify-content: center;
        width: 100%;
        min-height: 44px;
        padding: 10px 12px;
        text-align: center;
        white-space: normal;
        line-height: 1.2;
    }

    .hero {
        padding: 38px 16px 34px;
    }

    .hero-inner,
    .search-box {
        width: calc(100vw - 32px);
        max-width: calc(100vw - 32px);
        min-width: 0;
    }

    .hero h1 {
        font-size: 34px;
        max-width: 20ch;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .hero p {
        font-size: 16px;
        max-width: 44ch;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .hero-stats {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-stats span {
        width: 100%;
    }

    .container {
        margin: 28px auto 44px;
    }

    .section-head {
        gap: 12px;
    }

    .section-head h2 {
        font-size: 24px;
        line-height: 1.2;
    }

    .grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .card,
    .panel-pad,
    .payment-option,
    .empty {
        padding: 18px;
    }

    .card-top {
        align-items: flex-start;
    }

    .service-meta {
        justify-content: flex-start;
    }

    .badge {
        max-width: 100%;
        white-space: normal;
    }

    .price {
        font-size: 24px;
        overflow-wrap: anywhere;
    }

    .receipt-panel {
        max-width: none;
    }

    .result-block {
        padding: 10px;
        gap: 7px;
    }

    .result-line {
        flex-direction: column;
        gap: 4px;
        padding: 9px;
    }

    .result-label {
        flex: 0 0 auto;
        width: 100%;
    }

    .receipt-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .checkout-grid,
    .filter-row,
    .search-row,
    .copy-field {
        grid-template-columns: 1fr;
    }

    .search-row,
    .filter-row {
        gap: 10px;
    }

    .form-field input,
    .form-field select,
    .form-field textarea,
    .search-row input,
    .search-row select {
        min-width: 0;
        font-size: 16px;
    }

    .btn,
    .search-row button,
    .empty a {
        width: 100%;
        min-height: 46px;
    }

    .action-row {
        align-items: stretch;
        flex-direction: column;
    }

    .action-form {
        width: 100%;
    }

    .action-form .btn {
        width: 100%;
        min-height: 40px;
    }

    .whatsapp-float {
        right: 14px;
        bottom: 14px;
        max-width: calc(100vw - 28px);
        min-height: 44px;
        padding: 0 14px;
        font-size: 13px;
    }

    .data-table {
        min-width: 760px;
    }

    .data-table th,
    .data-table td {
        padding: 12px;
        font-size: 13px;
    }

    body .auth-box {
        width: min(100% - 28px, 460px);
        margin: 34px auto;
        padding: 24px;
    }
}

@media (max-width: 520px) {
    .nav-inner,
    .container {
        width: calc(100vw - 24px);
        max-width: 1180px;
    }

    .logo {
        font-size: 23px;
    }

    .navbar ul {
        display: grid;
        grid-template-columns: 1fr;
    }

    .navbar a {
        justify-content: center;
        font-size: 14px;
    }

    .hero h1 {
        font-size: 28px;
        max-width: 16ch;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .hero p {
        font-size: 16px;
        max-width: 32ch;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .card-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .copy-field {
        grid-template-columns: 1fr;
    }
}
