@import url('/css/inter.css');

:root {
    --gb-black: #0D0E10;
    --gb-dark-1: #121315;
    --gb-dark-2: #161719;
    --gb-white: #FFFFFF;
    --gb-light: #F7F8F9;
    --gb-cyan: #52DDF8;
    --gb-cyan-shop: #0cc0df;
    --gb-cyan-hover: #09adc8;
    --gb-text: #111214;
    --gb-muted: #71747C;
    --gb-border: rgba(0, 0, 0, 0.08);
    --gb-radius: 14px;
}

[x-cloak] { display: none !important; }

.used-page {
    font-family: Inter, "Segoe UI", system-ui, sans-serif;
    color: var(--gb-text);
    -webkit-font-smoothing: antialiased;
}

.used-hero {
    position: relative;
    overflow: hidden;
    background: radial-gradient(1200px 500px at 80% -10%, rgba(82, 221, 248, 0.28), transparent 55%),
        linear-gradient(180deg, #0D0E10 0%, #161719 100%);
    color: #fff;
    padding: 4.5rem 0 3.5rem;
}

.used-hero::after {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    right: 8%;
    bottom: -80px;
    border: 1px solid rgba(82, 221, 248, 0.35);
    border-radius: 50%;
    animation: usedRing 6s ease-in-out infinite;
}

@keyframes usedRing {
    0%, 100% { transform: scale(1); opacity: 0.45; }
    50% { transform: scale(1.08); opacity: 0.9; }
}

.used-hero h1 {
    margin: 0 0 0.75rem;
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    animation: usedUp 0.7s ease both;
}

.used-hero p {
    max-width: 36rem;
    margin: 0;
    color: #A1A4AB;
    font-size: 1.05rem;
    animation: usedUp 0.7s ease 0.1s both;
}

@keyframes usedUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    align-items: start;
}

.used-page .product-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    overflow: hidden;
}

.used-page .product-card-image {
    aspect-ratio: 1 / 1;
    background: #f4f1ea;
    margin: 0;
}

.used-page .product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.used-page .product-card-brand,
.used-page .product-card-price,
.used-page .product-card-name,
.used-page .product-card-stock {
    padding: 0 0.85rem;
}

.used-page .product-card-name {
    padding-bottom: 0.85rem;
}

.used-empty {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--gb-muted);
}

.used-empty strong {
    display: block;
    color: var(--gb-text);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.used-app {
    min-height: 100vh;
    background: var(--gb-light);
}

.used-app-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1.25rem;
    background: #fff;
    border-bottom: 1px solid var(--gb-border);
}

.used-app-bar img {
    height: 52px;
    width: auto;
}

.used-app-bar nav {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    font-size: 0.875rem;
}

.used-scan {
    min-height: calc(100vh - 64px);
    display: grid;
    place-items: center;
    background: radial-gradient(700px 360px at 50% 40%, rgba(82, 221, 248, 0.16), transparent 60%), var(--gb-black);
    color: #fff;
    text-align: center;
    padding: 2rem 1rem;
}

.used-scan-ring {
    width: 180px;
    height: 180px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    border: 2px solid var(--gb-cyan);
    box-shadow: 0 0 0 18px rgba(82, 221, 248, 0.08);
    animation: usedPulse 1.8s ease-in-out infinite;
}

@keyframes usedPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 18px rgba(82, 221, 248, 0.08); }
    50% { transform: scale(1.04); box-shadow: 0 0 0 28px rgba(82, 221, 248, 0.16); }
}

.used-scan h1 {
    margin: 0 0 0.5rem;
    font-size: 2rem;
    font-weight: 800;
}

.used-scan p { color: #A1A4AB; }

.used-scan input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.used-card {
    background: #fff;
    border-radius: var(--gb-radius);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.05);
    padding: 1.25rem;
    animation: usedUp 0.45s ease both;
}

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

.used-form label {
    display: block;
    font-size: 0.75rem;
    color: var(--gb-muted);
    margin: 0.75rem 0 0.3rem;
}

.used-form input,
.used-form select,
.used-form textarea {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--gb-border);
    border-radius: 10px;
    font: inherit;
}

.used-form input:focus,
.used-form select:focus,
.used-form textarea:focus {
    outline: none;
    border-color: var(--gb-cyan-shop);
}

.used-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border: 0;
    border-radius: 10px;
    padding: 0.75rem 1.2rem;
    font: 600 0.95rem Inter, sans-serif;
    cursor: pointer;
    background: var(--gb-cyan-shop);
    color: #fff;
    transition: transform 0.2s, background 0.2s;
}

.used-btn:hover { background: var(--gb-cyan-hover); transform: translateY(-1px); }

.used-btn-ghost {
    background: transparent;
    color: inherit;
    border: 1px solid var(--gb-border);
}

.used-chip {
    display: inline-flex;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(12, 192, 223, 0.12);
    color: var(--gb-cyan-shop);
    font-size: 0.75rem;
    font-weight: 600;
}

.used-err { color: #b42318; font-size: 0.875rem; }

.used-progress {
    display: grid;
    gap: 0.45rem;
}

.used-progress span {
    height: 8px;
    border-radius: 99px;
    background: #e8eaed;
    overflow: hidden;
    display: block;
}

.used-progress span i {
    display: block;
    height: 100%;
    background: var(--gb-cyan-shop);
    transition: width 0.4s ease;
}

.used-login {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: radial-gradient(900px 420px at 70% 0%, rgba(82, 221, 248, 0.22), transparent 50%), var(--gb-light);
}

.used-login .used-card { width: min(100%, 400px); }

.used-upload-grid {
    display: grid;
    gap: 0.75rem;
}

.used-slot {
    border: 1px dashed #d5d8de;
    border-radius: 12px;
    padding: 1rem;
    background: #fff;
}

.used-slot.is-done {
    border-style: solid;
    border-color: var(--gb-cyan-shop);
}

@media (max-width: 720px) {
    .used-hero { padding: 3rem 0 2.25rem; }
}
