@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');
:root {
    --bg: #06101a;
    --bg-2: #081522;
    --panel: rgba(10, 23, 37, 0.9);
    --panel-strong: #0b1928;
    --panel-soft: rgba(18, 39, 58, 0.58);
    --line: rgba(128, 206, 255, 0.14);
    --line-strong: rgba(105, 201, 255, 0.28);
    --text: #f4f8fc;
    --muted: #8ba1b5;
    --muted-2: #6f8599;
    --blue: #70d1ff;
    --blue-2: #459eff;
    --blue-soft: rgba(98, 204, 255, 0.1);
    --danger: #ff7272;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
    --radius: 20px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 15% -10%, rgba(65, 179, 255, 0.12), transparent 28%),
        radial-gradient(circle at 88% 8%, rgba(85, 145, 255, 0.08), transparent 24%),
        linear-gradient(180deg, #07111c 0%, var(--bg) 55%, #050d15 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.38), transparent 72%);
}

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    border: 0;
}

.cursor-glow {
    position: fixed;
    z-index: 0;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(94, 205, 255, 0.11) 0%, rgba(94, 205, 255, 0.055) 26%, transparent 72%);
    filter: blur(6px);
    opacity: 1;
    transition: opacity .2s ease;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px clamp(18px, 4vw, 54px);
    background: rgba(5, 14, 23, 0.76);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(127, 212, 255, 0.08);
}

.brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.brand img {
    display: block;
    width: 132px;
    max-width: 32vw;
    height: auto;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    flex-wrap: wrap;
}

.nav > a,
.nav-dropdown-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 12px;
    border-radius: 11px;
    color: #b6c5d2;
    background: transparent;
    text-decoration: none;
    font-size: 13px;
    font-weight: 650;
    transition: .2s ease;
}

.nav > a:hover,
.nav > a.active,
.nav-dropdown:hover .nav-dropdown-button {
    color: #fff;
    background: rgba(94, 197, 255, 0.08);
}

.nav > a.active::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 4px;
    height: 2px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--blue), var(--blue-2));
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-button {
    cursor: pointer;
}

.nav-dropdown-button span {
    margin-left: 5px;
    color: #7ea5bc;
    transition: transform .2s ease;
}

.nav-dropdown:hover .nav-dropdown-button span {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 304px;
    padding: 8px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(8, 18, 29, .97);
    box-shadow: 0 22px 60px rgba(0,0,0,.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-7px) scale(.985);
    transform-origin: top right;
    transition: .18s ease;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.nav-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px;
    border-radius: 12px;
    text-decoration: none;
    transition: .15s ease;
}

.nav-dropdown-menu a:hover {
    background: rgba(102, 204, 255, .08);
}

.nav-dropdown-menu a > span {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: var(--blue);
    background: rgba(96, 204, 255, .09);
    border: 1px solid rgba(96, 204, 255, .1);
    font-size: 16px;
}

.nav-dropdown-menu a div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.nav-dropdown-menu strong {
    font-size: 13px;
    font-weight: 700;
}

.nav-dropdown-menu small {
    color: var(--muted-2);
    font-size: 11px;
}

.dropdown-divider {
    height: 1px;
    margin: 7px 6px;
    background: rgba(255,255,255,.06);
}

.user-pill {
    gap: 8px;
    border: 1px solid rgba(102, 204, 255, .12) !important;
    background: rgba(102, 204, 255, .045) !important;
    max-width: 190px;
}

.user-pill img {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
}

.user-pill span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.discord-login {
    color: #dff6ff !important;
    background: linear-gradient(135deg, rgba(89, 197, 255, .16), rgba(70, 139, 255, .12)) !important;
    border: 1px solid rgba(102, 204, 255, .18);
}

.discord-login:hover {
    border-color: rgba(102, 204, 255, .32);
    box-shadow: 0 8px 28px rgba(65, 167, 255, .09);
}

.discord-login.big {
    min-height: 46px;
    padding-inline: 16px;
}

.discord-icon {
    margin-right: 6px;
}

.logout {
    color: #95a9b8 !important;
}

.page {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 42px 0 84px;
}

.hero-card {
    position: relative;
    min-height: 410px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
    align-items: center;
    gap: 20px;
    overflow: hidden;
    padding: clamp(30px, 5vw, 58px);
    border-radius: 28px;
    border: 1px solid rgba(115, 206, 255, .14);
    background:
        radial-gradient(circle at 78% 25%, rgba(86, 190, 255, .17), transparent 28%),
        linear-gradient(135deg, rgba(17, 38, 58, .95), rgba(7, 17, 29, .96));
    box-shadow: var(--shadow);
}

.hero-card::after {
    content: "";
    position: absolute;
    inset: auto -120px -150px auto;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    border: 1px solid rgba(100, 205, 255, .09);
    box-shadow: 0 0 0 55px rgba(100, 205, 255, .02), 0 0 0 110px rgba(100, 205, 255, .015);
}

.hero-copy {
    max-width: 640px;
}

.eyebrow,
.section-label {
    display: inline-block;
    color: var(--blue);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.hero-copy h1 {
    margin: 10px 0 16px;
    font-size: clamp(46px, 6vw, 74px);
    line-height: .98;
    letter-spacing: -.055em;
}

.hero-copy h1 span {
    color: var(--blue);
}

.hero-copy p {
    max-width: 590px;
    margin: 0;
    color: #9cb0bf;
    font-size: 17px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 11px;
    flex-wrap: wrap;
    margin-top: 27px;
}

.primary-btn,
.secondary-btn,
.buy-btn,
.danger-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 17px;
    border-radius: 11px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
    transition: .18s ease;
}

.primary-btn {
    color: #fff;
    background: linear-gradient(135deg, #65d0ff, #4a9fff);
    box-shadow: 0 10px 28px rgba(67, 163, 255, .18);
}

.primary-btn:hover,
.buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(67, 163, 255, .24);
}

.secondary-btn {
    color: #d7e8f2;
    background: rgba(104, 180, 227, .06);
    border: 1px solid rgba(104, 180, 227, .14);
}

.secondary-btn:hover {
    background: rgba(104, 180, 227, .1);
    border-color: rgba(104, 180, 227, .26);
}

.full {
    width: 100%;
}

.hero-art {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 270px;
}

.hero-art::before {
    content: "";
    position: absolute;
    width: 290px;
    height: 290px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(68, 185, 255, .18), transparent 66%);
    filter: blur(10px);
}

.hero-art img {
    position: relative;
    width: min(100%, 470px);
    max-height: 320px;
    object-fit: contain;
    filter: drop-shadow(0 25px 60px rgba(0, 0, 0, .35));
}

.section {
    margin-top: 74px;
}

.section-heading,
.page-title {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 23px;
}

.section-heading h2,
.page-title h1 {
    margin: 7px 0 0;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.04;
    letter-spacing: -.035em;
}

.section-heading p,
.page-title p {
    max-width: 470px;
    margin: 0 0 2px;
    color: var(--muted);
    line-height: 1.6;
    font-size: 14px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.category-card {
    position: relative;
    min-height: 118px;
    display: grid;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: 17px;
    border: 1px solid var(--line);
    background: rgba(11, 25, 40, .8);
    text-decoration: none;
    transition: .2s ease;
    overflow: hidden;
}

.category-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 18% 0%, rgba(95, 204, 255, .09), transparent 45%);
    opacity: 0;
    transition: .2s ease;
}

.category-card > * {
    position: relative;
    z-index: 1;
}

.category-card:hover {
    transform: translateY(-3px);
    border-color: var(--line-strong);
    box-shadow: 0 14px 34px rgba(0,0,0,.2);
}

.category-card:hover::before {
    opacity: 1;
}

.category-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    color: var(--blue);
    background: rgba(94, 204, 255, .08);
    border: 1px solid rgba(94, 204, 255, .11);
    font-size: 18px;
    font-weight: 800;
}

.category-card strong {
    display: block;
    font-size: 14px;
}

.category-card small {
    display: block;
    margin-top: 4px;
    color: var(--muted-2);
    font-size: 11px;
}

.category-card b {
    color: #7aa9c2;
    font-size: 17px;
    font-weight: 500;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}

.product-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(9, 21, 34, .86);
    box-shadow: 0 12px 35px rgba(0,0,0,.12);
    transition: .2s ease;
    text-decoration: none;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 199, 255, .24);
    box-shadow: 0 18px 44px rgba(0,0,0,.22);
}

.product-card > img,
.product-placeholder {
    width: 100%;
    height: 205px;
    object-fit: cover;
    background: linear-gradient(135deg, #0c2030, #08131f);
}

.product-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5e9fc0;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .16em;
}

.product-info {
    display: flex;
    flex-direction: column;
    padding: 17px;
}

.product-category {
    color: var(--blue);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.product-info h3 {
    margin: 8px 0 7px;
    font-size: 18px;
}

.product-info p {
    min-height: 44px;
    margin: 0;
    color: #8197a9;
    font-size: 13px;
    line-height: 1.55;
}

.product-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 16px;
}

.product-bottom strong,
.price {
    color: #85d9ff;
    font-weight: 800;
}

.buy-btn {
    min-height: 37px;
    padding: 8px 13px;
    color: #fff !important;
    background: linear-gradient(135deg, #63caff, #438ffb);
}

.empty-state,
.proposal-login-box,
.proposal-form,
.proposal-card,
.product-detail,
.admin-box,
.auth-card,
.tool-shell {
    border: 1px solid var(--line);
    background: rgba(10, 23, 37, .86);
    box-shadow: 0 16px 42px rgba(0,0,0,.16);
}

.empty-state {
    padding: 42px 24px;
    border-radius: 18px;
    text-align: center;
}

.empty-state > div {
    color: var(--blue);
    font-size: 26px;
}

.empty-state h3 {
    margin: 13px 0 6px;
}

.empty-state p,
.muted {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.page-title {
    align-items: flex-end;
}

.back-link {
    display: inline-flex;
    margin-bottom: 18px;
    color: #8ccff0;
    text-decoration: none;
    font-size: 13px;
}

.back-link:hover {
    color: #fff;
}

.product-detail {
    display: grid;
    grid-template-columns: minmax(320px, .95fr) minmax(0, 1.05fr);
    gap: 28px;
    padding: 20px;
    border-radius: 22px;
}

.product-detail-image {
    min-height: 390px;
    border-radius: 16px;
    overflow: hidden;
    background: #081522;
}

.product-detail-image img,
.product-detail-image .product-placeholder {
    width: 100%;
    height: 100%;
    min-height: 390px;
    object-fit: cover;
}

.product-detail-copy {
    padding: 18px 14px;
    align-self: center;
}

.product-detail-copy h1 {
    margin: 10px 0 12px;
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.02;
    letter-spacing: -.04em;
}

.product-detail-copy p {
    margin: 0;
    color: #8fa5b7;
    line-height: 1.7;
}

.product-detail-copy .price {
    margin-top: 22px;
    font-size: 27px;
}

.proposal-login-box,
.proposal-form {
    border-radius: 19px;
    padding: 20px;
}

.proposal-login-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.proposal-login-box h2 {
    margin: 7px 0;
    font-size: 19px;
}

.proposal-login-box p {
    margin: 0;
    max-width: 680px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.proposal-form-head,
.proposal-user {
    display: flex;
    align-items: center;
    gap: 11px;
}

.proposal-form-head img,
.proposal-user img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}

.proposal-form-head div,
.proposal-user div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.proposal-form-head span,
.proposal-user span {
    color: var(--muted-2);
    font-size: 11px;
}

.proposal-form input,
.auth-card input,
.admin-box input,
.admin-box select,
.admin-box textarea,
.tool-shell input,
.tool-shell select,
.tool-shell textarea,
.purchase-form input,
.purchase-form select {
    width: 100%;
    margin-top: 16px;
    padding: 13px 14px;
    outline: none;
    border-radius: 12px;
    border: 1px solid #1b3a52;
    color: #f4f8fc;
    background: #07131f;
}

.proposal-form input:focus,
.auth-card input:focus,
.admin-box input:focus,
.admin-box select:focus,
.admin-box textarea:focus,
.tool-shell input:focus,
.tool-shell select:focus,
.tool-shell textarea:focus,
.purchase-form input:focus,
.purchase-form select:focus {
    border-color: rgba(103, 207, 255, .5);
    box-shadow: 0 0 0 3px rgba(89, 197, 255, .06);
}

.proposal-form-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 11px;
}

.proposal-form-bottom small {
    color: var(--muted-2);
}

.proposals-list {
    display: grid;
    gap: 13px;
    margin-top: 18px;
}

.proposal-card {
    border-radius: 18px;
    padding: 18px;
}

.proposal-content {
    margin: 16px 0 14px;
    padding: 14px 15px;
    border-radius: 13px;
    background: rgba(8, 17, 27, .7);
    color: #dce6ed;
    line-height: 1.55;
}

.proposal-rating {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.proposal-rating > span {
    color: var(--muted-2);
    font-size: 12px;
}

.stars {
    display: flex;
    gap: 2px;
}

.stars form {
    margin: 0;
}

.stars button {
    padding: 0 2px;
    color: #35506a;
    background: transparent;
    cursor: pointer;
    font-size: 19px;
    line-height: 1;
    transition: .15s ease;
}

.stars button.selected,
.stars button:hover {
    color: #67ceff;
}

.admin-page .page-title {
    margin-bottom: 26px;
}

.admin-grid {
    display: grid;
    grid-template-columns: minmax(300px, .85fr) minmax(0, 1.15fr);
    gap: 15px;
}

.admin-box {
    padding: 20px;
    border-radius: 18px;
}

.admin-box + .admin-box,
.admin-page > .admin-box {
    margin-top: 15px;
}

.admin-grid .admin-box + .admin-box {
    margin-top: 0;
}

.admin-box h2 {
    margin: 0 0 17px;
    font-size: 18px;
}

.admin-box label {
    display: block;
    margin: 13px 0 -8px;
    color: #bbcad5;
    font-size: 12px;
    font-weight: 700;
}

.admin-box textarea {
    min-height: 130px;
    resize: vertical;
}

.admin-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 0;
    border-top: 1px solid rgba(255,255,255,.055);
}

.admin-row:first-of-type {
    border-top: 0;
}

.admin-row > div:first-child {
    min-width: 0;
}

.admin-row strong,
.admin-row span {
    display: block;
}

.admin-row span {
    margin-top: 4px;
    color: var(--muted-2);
    font-size: 11px;
}

.danger-btn {
    color: #fff;
    background: rgba(255, 104, 104, .11);
    border: 1px solid rgba(255, 104, 104, .16);
}

.danger-btn:hover {
    background: rgba(255, 104, 104, .18);
    border-color: rgba(255, 104, 104, .28);
}

.proposal-admin-row {
    align-items: flex-start;
}

.admin-proposal-content {
    flex: 1;
}

.proposal-user.mini img {
    width: 30px;
    height: 30px;
}

.proposal-user.mini {
    margin-bottom: 8px;
}

.admin-proposal-content p {
    margin: 0 0 6px;
    color: #dae4eb;
}

.auth-page {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px 18px;
}

.auth-card {
    width: min(440px, 100%);
    padding: 28px;
    border-radius: 22px;
}

.auth-logo {
    width: 138px;
    display: block;
    margin-bottom: 22px;
}

.auth-card h1 {
    margin: 8px 0 18px;
    font-size: 30px;
}

.auth-card label {
    display: block;
    margin: 14px 0 -7px;
    color: #b4c5d2;
    font-size: 12px;
    font-weight: 700;
}

.error-box,
.error {
    margin-bottom: 16px;
    padding: 12px 13px;
    border-radius: 11px;
    color: #ff9c9c;
    background: rgba(255, 90, 90, .07);
    border: 1px solid rgba(255, 90, 90, .14);
    font-size: 13px;
    line-height: 1.5;
}

.back-link.center {
    justify-content: center;
    width: 100%;
    margin: 16px 0 0;
}

.tool-page {
    max-width: 980px;
}

.tool-shell {
    border-radius: 20px;
    padding: 20px;
}

.tool-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(250px, .34fr);
    gap: 14px;
}

.tool-main,
.tool-side {
    border-radius: 16px;
    padding: 16px;
    background: rgba(5, 15, 25, .54);
    border: 1px solid rgba(255,255,255,.05);
}

.tool-main textarea,
.tool-main input,
.tool-main select,
.tool-side input,
.tool-side select {
    margin-top: 0;
}

.tool-main textarea {
    min-height: 220px;
    resize: vertical;
}

.tool-result {
    margin-top: 13px;
    min-height: 92px;
    padding: 16px;
    border-radius: 13px;
    border: 1px solid #17364d;
    background: #06111c;
    color: #e7f4fa;
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.6;
}

.tool-preview {
    min-height: 92px;
    margin-top: 13px;
    padding: 16px;
    display: flex;
    align-items: center;
    border-radius: 13px;
    border: 1px solid #17364d;
    background: #06111c;
    font-size: 18px;
    line-height: 1.55;
    word-break: break-word;
}

.tool-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 12px;
}

.tool-note {
    margin: 0 0 12px;
    color: var(--muted-2);
    font-size: 11px;
    line-height: 1.55;
}

.tool-label {
    display: block;
    margin: 0 0 7px;
    color: #b7c7d3;
    font-size: 12px;
    font-weight: 700;
}

.tool-side .field + .field {
    margin-top: 14px;
}

.tool-color-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}

.tool-color {
    width: 100%;
    height: 44px;
    padding: 3px !important;
    cursor: pointer;
}

.tool-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
    margin-top: 19px;
}

.tool-card {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 17px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(10, 24, 38, .8);
    text-decoration: none;
    transition: .18s ease;
}

.tool-card:hover {
    transform: translateY(-3px);
    border-color: var(--line-strong);
    background: rgba(12, 29, 45, .9);
}

.tool-card-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--blue);
    background: rgba(94, 204, 255, .08);
    border: 1px solid rgba(94, 204, 255, .11);
    font-weight: 800;
}

.tool-card strong {
    display: block;
    font-size: 14px;
}

.tool-card p {
    margin: 5px 0 0;
    color: var(--muted-2);
    font-size: 12px;
    line-height: 1.5;
}

.tool-header {
    margin-bottom: 19px;
}

.tool-header h1 {
    margin: 7px 0 8px;
    font-size: clamp(30px, 5vw, 42px);
    letter-spacing: -.04em;
}

.tool-header p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.about-card {
    max-width: 980px;
    padding: clamp(24px, 5vw, 42px);
    border: 1px solid var(--line);
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(99, 205, 255, .1), transparent 32%),
        rgba(10, 23, 37, .86);
    box-shadow: var(--shadow);
}

.about-card h1 {
    margin: 8px 0 14px;
    font-size: clamp(38px, 6vw, 54px);
    letter-spacing: -.05em;
}

.about-card .blue {
    color: var(--blue);
}

.about-card p {
    color: #95aaba;
    line-height: 1.75;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 25px;
}

.about-stat {
    padding: 17px;
    border-radius: 15px;
    border: 1px solid rgba(101, 205, 255, .09);
    background: rgba(7, 17, 29, .54);
}

.about-stat strong {
    display: block;
    color: var(--blue);
    font-size: 23px;
    margin-bottom: 4px;
}

.about-stat span {
    color: var(--muted-2);
    font-size: 12px;
}

.footer-links {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    margin-top: 25px;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 9px 14px;
    border-radius: 10px;
    text-decoration: none;
    border: 1px solid rgba(104, 203, 255, .1);
    background: rgba(104, 203, 255, .06);
}

.footer-links a:hover {
    border-color: rgba(104, 203, 255, .22);
    background: rgba(104, 203, 255, .1);
}

.purchase-wrap {
    max-width: 720px;
}

.purchase-card {
    border-radius: 22px;
    border: 1px solid var(--line);
    background: rgba(10, 23, 37, .89);
    padding: 28px;
    box-shadow: var(--shadow);
}

.purchase-card h1 {
    margin: 7px 0 10px;
    font-size: 32px;
}

.purchase-description {
    color: #90a5b5;
    line-height: 1.65;
}

.purchase-price {
    margin: 20px 0 22px;
    color: var(--blue);
    font-size: 28px;
    font-weight: 850;
}

.purchase-info {
    margin-bottom: 20px;
    padding: 13px 14px;
    border-radius: 12px;
    color: #94aabb;
    background: rgba(88, 194, 255, .05);
    border: 1px solid rgba(88, 194, 255, .1);
    font-size: 12px;
    line-height: 1.55;
}

.purchase-form label {
    display: block;
    margin: 14px 0 -7px;
    color: #bfd0db;
    font-size: 12px;
    font-weight: 700;
}

.purchase-form input,
.purchase-form select {
    margin-top: 12px;
}

.purchase-form input[type="file"] {
    padding: 10px 11px;
}

.purchase-form button {
    width: 100%;
    margin-top: 8px;
}

.success-card {
    width: min(600px, 100%);
    padding: 34px;
    border-radius: 23px;
    border: 1px solid var(--line);
    background: rgba(10, 23, 37, .9);
    box-shadow: var(--shadow);
    text-align: center;
}

.success-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--blue);
    background: rgba(94, 204, 255, .08);
    border: 1px solid rgba(94, 204, 255, .12);
    font-size: 28px;
}

.success-card h1 {
    margin: 0 0 10px;
    font-size: 30px;
}

.success-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.order-number {
    margin: 21px 0;
    padding: 14px;
    border-radius: 12px;
    background: rgba(6, 17, 29, .78);
    color: var(--blue);
    font-weight: 800;
}

@media (max-width: 1000px) {
    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .hero-card {
        grid-template-columns: 1fr;
    }
    .hero-art {
        min-height: 210px;
        order: -1;
    }
    .hero-art img {
        width: min(80%, 420px);
    }
}

@media (max-width: 760px) {
    .topbar {
        position: relative;
        align-items: flex-start;
        flex-direction: column;
    }
    .nav {
        width: 100%;
        justify-content: flex-start;
    }
    .page {
        width: min(100% - 26px, 720px);
        padding-top: 28px;
    }
    .section-heading,
    .page-title {
        flex-direction: column;
        align-items: flex-start;
    }
    .category-grid,
    .product-grid,
    .tool-cards,
    .about-stats,
    .admin-grid,
    .tool-grid {
        grid-template-columns: 1fr;
    }
    .product-detail {
        grid-template-columns: 1fr;
    }
    .product-detail-image,
    .product-detail-image img,
    .product-detail-image .product-placeholder {
        min-height: 280px;
    }
    .proposal-login-box,
    .proposal-rating,
    .proposal-form-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
    .nav-dropdown-menu {
        left: 0;
        right: auto;
        width: min(304px, calc(100vw - 26px));
    }
}

@media (max-width: 520px) {
    .brand img {
        width: 112px;
    }
    .hero-card {
        padding: 27px 21px;
        border-radius: 21px;
    }
    .hero-copy h1 {
        font-size: 44px;
    }
    .category-card {
        grid-template-columns: 42px 1fr auto;
    }
    .product-card > img,
    .product-placeholder {
        height: 190px;
    }
    .auth-card,
    .purchase-card,
    .success-card {
        padding: 22px;
    }
}

/* ===== BlurCode modern layer ===== */
:root {
    --bg: #050d16;
    --bg-2: #08131f;
    --panel: rgba(8, 22, 36, .78);
    --panel-strong: #0a1827;
    --line: rgba(116, 208, 255, .12);
    --line-strong: rgba(116, 208, 255, .3);
    --text: #f5f9fc;
    --muted: #8ea7ba;
    --muted-2: #6e899e;
    --blue: #73d5ff;
    --blue-2: #4b9cff;
    --blue-soft: rgba(100, 205, 255, .09);
    --shadow: 0 28px 80px rgba(0, 0, 0, .34);
    --radius: 22px;
}

body {
    background:
        radial-gradient(900px 500px at 7% -8%, rgba(67, 178, 255, .11), transparent 70%),
        radial-gradient(650px 420px at 96% 10%, rgba(89, 110, 255, .08), transparent 72%),
        linear-gradient(180deg, #06111b 0%, #050d16 55%, #040910 100%);
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(circle at 50% 0%, rgba(112, 209, 255, .04), transparent 42%);
}

.cursor-glow {
    z-index: 4;
    width: 290px;
    height: 290px;
    background: radial-gradient(circle, rgba(92, 207, 255, .18) 0%, rgba(92, 207, 255, .085) 24%, rgba(92, 207, 255, .03) 46%, transparent 72%);
    filter: blur(5px);
    mix-blend-mode: screen;
}

.topbar {
    background: rgba(4, 12, 20, .64);
    border-bottom-color: rgba(121, 210, 255, .08);
    box-shadow: 0 10px 35px rgba(0, 0, 0, .12);
}

.topbar::after {
    content: "";
    position: absolute;
    left: 5%;
    right: 5%;
    bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(115, 213, 255, .22), transparent);
    pointer-events: none;
}

.nav > a,
.nav-dropdown-button {
    border: 1px solid transparent;
}

.nav > a:hover,
.nav > a.active,
.nav-dropdown:hover .nav-dropdown-button {
    border-color: rgba(115, 213, 255, .1);
    background: rgba(94, 197, 255, .065);
}

.nav-dropdown-menu {
    background: rgba(5, 15, 25, .92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-color: rgba(121, 210, 255, .12);
    box-shadow: 0 28px 80px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255,255,255,.03);
}

.page {
    padding-top: 38px;
}

.hero-card {
    isolation: isolate;
    min-height: 440px;
    border-radius: 30px;
    border-color: rgba(116, 208, 255, .16);
    background:
        radial-gradient(700px 400px at 82% 42%, rgba(76, 176, 255, .12), transparent 70%),
        linear-gradient(135deg, rgba(13, 32, 49, .96), rgba(5, 15, 25, .96));
    box-shadow: 0 38px 100px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.025);
    animation: heroIn .85s cubic-bezier(.2,.75,.15,1) both;
}

.hero-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(430px circle at var(--mouse-x, 78%) var(--mouse-y, 44%), rgba(101, 211, 255, .11), transparent 66%);
    pointer-events: none;
    opacity: .95;
}

.hero-card-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(240px 180px at 80% 55%, rgba(73, 181, 255, .09), transparent 72%);
}

.hero-copy,
.hero-art {
    position: relative;
    z-index: 2;
}

.eyebrow {
    position: relative;
    padding-left: 10px;
}

.eyebrow::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--blue);
    box-shadow: 0 0 14px rgba(115, 213, 255, .7);
    transform: translateY(-50%);
}

.hero-copy h1 {
    font-size: clamp(50px, 6vw, 78px);
    text-wrap: balance;
}

.hero-copy p {
    max-width: 640px;
    font-size: 17px;
    color: #9db5c6;
}

.typewriter-text {
    color: #dff7ff;
    text-shadow: 0 0 20px rgba(104, 211, 255, .17);
}

.typewriter-caret {
    display: inline-block;
    width: 7px;
    height: 1.05em;
    margin-left: 4px;
    vertical-align: -0.14em;
    border-radius: 99px;
    background: var(--blue);
    box-shadow: 0 0 14px rgba(112, 209, 255, .42);
    animation: caretBlink .8s steps(1) infinite;
}

.hero-art img {
    width: min(100%, 500px);
    max-height: 345px;
    filter: drop-shadow(0 28px 75px rgba(0,0,0,.4));
    animation: floatHero 5.4s ease-in-out infinite;
}

.hero-art::before {
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(71, 191, 255, .2), rgba(71, 191, 255, .05) 38%, transparent 69%);
    filter: blur(12px);
}

.hero-orbit {
    position: absolute;
    width: 360px;
    height: 170px;
    border: 1px solid rgba(96, 203, 255, .07);
    border-radius: 50%;
    transform: rotate(-18deg);
}

.orbit-one { animation: orbitPulse 4.8s ease-in-out infinite; }
.orbit-two { width: 430px; height: 210px; opacity: .6; transform: rotate(17deg); animation: orbitPulse 5.4s 1.1s ease-in-out infinite; }

.hero-mini-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 23px;
    color: #6e899d;
    font-size: 11px;
}

.hero-mini-stats span { display: inline-flex; align-items: center; gap: 5px; }
.hero-mini-stats b { color: #bfefff; font-weight: 800; }

.hero-corner {
    position: absolute;
    width: 46px;
    height: 46px;
    pointer-events: none;
    opacity: .5;
}
.hero-corner-a { left: 18px; top: 18px; border-left: 1px solid rgba(115,213,255,.24); border-top: 1px solid rgba(115,213,255,.24); border-top-left-radius: 10px; }
.hero-corner-b { right: 18px; bottom: 18px; border-right: 1px solid rgba(115,213,255,.18); border-bottom: 1px solid rgba(115,213,255,.18); border-bottom-right-radius: 10px; }

.primary-btn,
.secondary-btn,
.buy-btn {
    position: relative;
    overflow: hidden;
}

.primary-btn::after,
.buy-btn::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 -120%;
    width: 70%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.22), transparent);
    transform: skewX(-20deg);
    transition: left .55s ease;
}

.primary-btn:hover::after,
.buy-btn:hover::after { left: 160%; }

.category-card,
.product-card,
.tool-card,
.about-card,
.product-detail,
.proposal-login-box,
.proposal-form,
.proposal-card,
.admin-box,
.auth-card,
.tool-shell,
.purchase-card,
.empty-state {
    box-shadow: 0 18px 50px rgba(0,0,0,.17), inset 0 1px 0 rgba(255,255,255,.018);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.category-card,
.product-card,
.tool-card {
    border-color: rgba(116, 208, 255, .1);
}

.category-card:hover,
.product-card:hover,
.tool-card:hover {
    border-color: rgba(116, 208, 255, .27);
    box-shadow: 0 22px 60px rgba(0,0,0,.23), 0 0 0 1px rgba(116,208,255,.025);
}

.category-card::after,
.tool-card::after,
.product-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(114, 211, 255, .07), transparent 68%);
    opacity: 0;
    transition: opacity .25s ease;
}

.category-card:hover::after,
.tool-card:hover::after,
.product-card:hover::after { opacity: 1; }

.product-card,
.category-card,
.tool-card { position: relative; }

.section-heading h2,
.page-title h1,
.tool-header h1 {
    text-wrap: balance;
}

.product-info p {
    color: #839db0;
}

.product-bottom {
    align-items: end;
}

.product-actions {
    display: inline-flex;
    gap: 8px;
}

.tool-page { max-width: 1080px; }
.tool-shell { padding: 18px; border-radius: 24px; background: rgba(7, 18, 30, .72); }
.tool-main,
.tool-side { background: rgba(5, 14, 24, .52); border-color: rgba(116,208,255,.075); }
.tool-main textarea { min-height: 250px; }
.tool-preview,
.tool-result { background: linear-gradient(145deg, rgba(4,12,20,.9), rgba(6,17,28,.75)); border-color: rgba(116,208,255,.09); }
.tool-preview { font-size: 20px; }
.tool-label { color: #cad9e3; margin: 0 0 7px; }
.tool-panel-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.tool-panel-head .tool-label { margin: 2px 0 0; }
.tool-kicker { display: inline-block; color: var(--blue); font-size: 9px; font-weight: 850; letter-spacing: .18em; text-transform: uppercase; }
.tool-counter { color: #69889e; font-size: 11px; }
.mini-btn { min-height: 33px; padding: 7px 10px; border-radius: 9px; color: #dff7ff; border: 1px solid rgba(109,205,255,.14); background: rgba(109,205,255,.06); cursor: pointer; transition: .18s ease; }
.mini-btn:hover { background: rgba(109,205,255,.1); border-color: rgba(109,205,255,.25); transform: translateY(-1px); }
.color-list { display: grid; gap: 8px; max-height: 370px; overflow: auto; padding-right: 3px; }
.color-stop { display: grid; grid-template-columns: 28px 48px minmax(0,1fr) 28px; align-items: center; gap: 8px; padding: 7px; border: 1px solid rgba(115,213,255,.07); border-radius: 12px; background: rgba(6,17,28,.6); }
.color-stop-index { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; color: #89a8bc; background: rgba(115,213,255,.06); font-size: 10px; font-weight: 800; }
.color-stop .tool-color { width: 44px; height: 30px; margin: 0 !important; padding: 2px !important; border-radius: 8px; }
.hex-value { color: #bcd0dc; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; }
.remove-color { width: 27px; height: 27px; border-radius: 8px; color: #7190a4; background: transparent; cursor: pointer; font-size: 17px; transition: .15s ease; }
.remove-color:hover { color: #fff; background: rgba(255,100,100,.1); }
.tool-option-row { margin-top: 16px; }
.format-chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 15px 0 12px; }
.format-chips span { padding: 7px 9px; border: 1px solid rgba(116,208,255,.1); border-radius: 9px; color: #a9d6ea; background: rgba(116,208,255,.05); font: 700 11px/1 ui-monospace, SFMono-Regular, Consolas, monospace; }
.tool-card { min-height: 120px; padding: 18px; align-items: center; overflow: hidden; }
.tool-card-arrow { margin-left: auto; color: #77a9c2; font-size: 18px; transition: transform .2s ease, color .2s ease; }
.tool-card:hover .tool-card-arrow { color: var(--blue); transform: translateX(3px); }

.reveal-enabled .reveal-target { opacity: 0; transform: translateY(18px); }
.reveal-enabled .reveal-target.is-visible { opacity: 1; transform: translateY(0); transition: opacity .65s ease var(--reveal-delay), transform .65s cubic-bezier(.2,.75,.15,1) var(--reveal-delay); }

.intro-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    overflow: hidden;
    cursor: pointer;
    background:
        radial-gradient(circle at 50% 42%, rgba(75, 174, 255, .11), transparent 26%),
        radial-gradient(circle at 50% 100%, rgba(67, 113, 255, .06), transparent 35%),
        #030911;
}

.intro-overlay::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, transparent 0 26%, rgba(0,0,0,.22) 72%, rgba(0,0,0,.65));
    pointer-events: none;
}

.intro-grid { position: absolute; inset: 0; opacity: .35; background-image: linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent); }
.intro-center { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; transform: translateY(-10px); }
.intro-logo { width: min(340px, 62vw); filter: drop-shadow(0 0 44px rgba(100,205,255,.16)); animation: introLogo 2.8s ease-in-out infinite; }
.intro-subtitle { color: #61849a; font-size: 10px; font-weight: 800; letter-spacing: .2em; }
.intro-start { margin-top: 10px; padding: 10px 15px; border-radius: 10px; color: #cceeff; border: 1px solid rgba(115,213,255,.14); background: rgba(115,213,255,.05); font-size: 12px; font-weight: 700; cursor: pointer; transition: .18s ease; }
.intro-start:hover { border-color: rgba(115,213,255,.3); background: rgba(115,213,255,.1); transform: translateY(-2px); }
.intro-wither { position: absolute; z-index: 2; width: 78px; height: 78px; left: 50%; top: 50%; opacity: .0; filter: drop-shadow(0 0 20px rgba(120,150,170,.2)); }
.intro-wither img { width: 100%; height: 100%; image-rendering: pixelated; }
.intro-particles { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.intro-particle { position: absolute; width: var(--size); height: var(--size); border-radius: 1px; opacity: 0; box-shadow: 0 0 10px currentColor; }
.intro-started .intro-center { animation: introCenterOut .65s .82s ease forwards; }
.intro-started .intro-wither { opacity: 1; animation: witherLaunch 1.02s cubic-bezier(.15,.75,.2,1) forwards; }
.intro-started .intro-particle { animation: particleBurst .78s cubic-bezier(.15,.75,.2,1) var(--delay) forwards; }
.intro-started::before { content: ""; position: absolute; z-index: 5; width: 60px; height: 60px; left: 50%; top: 50%; border-radius: 50%; background: rgba(190, 235, 255, .5); filter: blur(14px); transform: translate(-50%, -50%) scale(.1); animation: explosionFlash .85s .9s ease forwards; }
.intro-finished { animation: introFadeOut .82s ease forwards; pointer-events: none; }

@keyframes heroIn { from { opacity: 0; transform: translateY(20px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes floatHero { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-7px) rotate(.45deg); } }
@keyframes orbitPulse { 0%,100% { opacity: .35; transform: scale(1) rotate(-18deg); } 50% { opacity: .7; transform: scale(1.025) rotate(-16deg); } }
@keyframes caretBlink { 50% { opacity: .18; } }
@keyframes introLogo { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes introCenterOut { to { opacity: 0; transform: translateY(-14px) scale(.96); } }
@keyframes witherLaunch { 0% { opacity: 0; transform: translate(46vw, -3vh) scale(.65) rotate(-7deg); } 16% { opacity: 1; } 76% { opacity: 1; transform: translate(0, 0) scale(2.4) rotate(2deg); } 100% { opacity: 0; transform: translate(0, 0) scale(15); } }
@keyframes particleBurst { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.4); } 22% { opacity: 1; } 100% { opacity: 0; transform: translate(calc(-50% + var(--px)), calc(-50% + var(--py))) scale(.15) rotate(120deg); } }
@keyframes explosionFlash { 0% { opacity: 0; transform: translate(-50%,-50%) scale(.1); } 30% { opacity: .95; transform: translate(-50%,-50%) scale(5); } 100% { opacity: 0; transform: translate(-50%,-50%) scale(9); } }
@keyframes introFadeOut { to { opacity: 0; visibility: hidden; } }

@media (max-width: 980px) {
    .hero-card { grid-template-columns: 1fr; min-height: 0; }
    .hero-art { min-height: 240px; order: -1; }
    .hero-art img { width: min(78%, 440px); }
    .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
    .topbar { align-items: flex-start; flex-direction: column; }
    .nav { width: 100%; justify-content: flex-start; }
    .hero-card { padding: 28px 22px; }
    .hero-mini-stats { gap: 10px 16px; }
    .section-heading, .page-title { align-items: flex-start; flex-direction: column; }
    .tool-grid { grid-template-columns: 1fr; }
    .tool-cards { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: 1fr; }
    .category-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

/* Admin product management */
.admin-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.admin-edit-btn {
    min-height: 42px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.admin-actions form {
    margin: 0;
}

.admin-edit-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
    gap: 22px;
    align-items: start;
}

.admin-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 22px;
}

.admin-form-actions .primary-btn,
.admin-form-actions .secondary-btn {
    min-height: 46px;
}

.product-edit-preview img {
    width: 100%;
    max-height: 320px;
    object-fit: contain;
    border-radius: 18px;
    margin: 14px 0 18px;
    background: rgba(5, 15, 27, .55);
    border: 1px solid rgba(111, 203, 255, .15);
}

.product-edit-preview .product-placeholder {
    min-height: 220px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    margin: 14px 0 18px;
}

@media (max-width: 850px) {
    .admin-edit-layout {
        grid-template-columns: 1fr;
    }

    .admin-actions {
        flex-wrap: wrap;
    }
}

/* =========================
   BLURCODE MINECRAFT UI 2.0
   ========================= */

:root {
    --mc-font: "Press Start 2P", "Minecraftia", "Courier New", monospace;
    --pixel-radius: 4px;
    --mc-blue: #67d2ff;
    --mc-blue-deep: #338fd6;
}

body {
    background:
        radial-gradient(circle at 50% -14%, rgba(80, 191, 255, .14), transparent 31%),
        radial-gradient(circle at 8% 30%, rgba(42, 112, 174, .08), transparent 28%),
        radial-gradient(circle at 92% 72%, rgba(70, 97, 180, .07), transparent 28%),
        linear-gradient(180deg, #050d15 0%, #06121d 48%, #040a11 100%);
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .12;
    background-image: radial-gradient(rgba(255,255,255,.18) .7px, transparent .7px);
    background-size: 4px 4px;
    mix-blend-mode: screen;
    z-index: 0;
}

.cursor-glow {
    z-index: 120;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(97, 210, 255, .17) 0%, rgba(76, 174, 255, .095) 24%, rgba(76, 174, 255, .035) 45%, transparent 72%);
    mix-blend-mode: screen;
    filter: blur(8px);
}

.topbar {
    z-index: 100;
    border-bottom-color: rgba(112, 210, 255, .13);
    box-shadow: 0 8px 40px rgba(0,0,0,.16);
}

.nav > a,
.nav-dropdown-button,
.cart-link {
    border-radius: var(--pixel-radius);
    font-family: var(--mc-font);
    font-size: 9px;
    letter-spacing: .02em;
    min-height: 38px;
    padding: 9px 11px;
}

.nav > a.active::after {
    height: 3px;
    border-radius: 0;
    box-shadow: 0 0 12px rgba(103, 210, 255, .42);
}

.brand img {
    image-rendering: auto;
    filter: drop-shadow(0 0 16px rgba(103,210,255,.11));
}

.primary-btn,
.secondary-btn,
.buy-btn,
.danger-btn,
.mini-btn,
.intro-start {
    border-radius: var(--pixel-radius);
    font-family: var(--mc-font);
    font-size: 9px;
    letter-spacing: .01em;
    border-width: 1px;
    border-style: solid;
    position: relative;
    overflow: hidden;
}

.primary-btn::before,
.buy-btn::before,
.secondary-btn::before,
.danger-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-110%);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
    transition: transform .42s ease;
}

.primary-btn:hover::before,
.buy-btn:hover::before,
.secondary-btn:hover::before,
.danger-btn:hover::before {
    transform: translateX(110%);
}

.primary-btn {
    border-color: rgba(128, 224, 255, .38);
    box-shadow: 0 8px 24px rgba(61, 166, 238, .2), inset 0 1px rgba(255,255,255,.14);
}

.secondary-btn {
    border-color: rgba(121, 207, 255, .2);
}

.buy-btn {
    border-color: rgba(123, 214, 255, .3);
    color: #e8fbff;
    background: linear-gradient(135deg, #1875aa, #2d9cdf);
    box-shadow: 0 7px 20px rgba(42, 146, 214, .18);
}

.danger-btn {
    color: #ffdede;
    background: rgba(151, 42, 52, .18);
    border-color: rgba(255, 108, 117, .24);
}

.hero-card {
    border-radius: 10px;
    border-color: rgba(108, 207, 255, .19);
    box-shadow: 0 32px 100px rgba(0,0,0,.34), 0 0 0 1px rgba(255,255,255,.015) inset;
    animation: heroIn .8s cubic-bezier(.18,.8,.2,1) both;
}

.hero-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(115,214,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(115,214,255,.025) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: linear-gradient(to right, black, transparent 82%);
    pointer-events: none;
}

.hero-card-glow {
    position: absolute;
    width: 360px;
    height: 360px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(85,200,255,.16), rgba(85,200,255,.06) 34%, transparent 71%);
    filter: blur(18px);
    opacity: .9;
    transition: left .08s linear, top .08s linear;
}

.hero-art img {
    animation: floatHero 4.8s ease-in-out infinite;
    filter: drop-shadow(0 28px 65px rgba(0,0,0,.42)) drop-shadow(0 0 28px rgba(81,184,255,.12));
}

.hero-mini-stats span,
.about-stat,
.admin-stat-card {
    border-radius: var(--pixel-radius) !important;
}

.section,
.page-title,
.tool-header {
    animation: sectionLift .7s cubic-bezier(.2,.75,.15,1) both;
}

.category-card,
.product-card,
.tool-card,
.admin-box,
.proposal-card,
.purchase-card,
.about-card,
.auth-card,
.success-card,
.cart-summary,
.cart-list,
.checkout-form-box,
.checkout-summary,
.admin-stat-card {
    border-radius: 7px;
    border-color: rgba(117, 207, 255, .13);
    box-shadow: 0 16px 48px rgba(0,0,0,.2), inset 0 1px rgba(255,255,255,.02);
}

.category-card:hover,
.product-card:hover,
.tool-card:hover,
.proposal-card:hover,
.admin-box:hover,
.admin-stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(111, 210, 255, .26);
    box-shadow: 0 24px 62px rgba(0,0,0,.25), 0 0 30px rgba(61, 166, 238, .05);
}

.product-card {
    overflow: hidden;
}

.product-card > .product-image-link,
.product-image-link {
    display: block;
    text-decoration: none;
}

.product-card > .product-image-link img,
.product-image-link .product-placeholder {
    transition: transform .35s cubic-bezier(.2,.8,.2,1), filter .35s ease;
}

.product-card:hover .product-image-link img,
.product-card:hover .product-image-link .product-placeholder {
    transform: scale(1.035);
    filter: brightness(1.05);
}

.product-actions form,
.product-detail-actions form {
    margin: 0;
}

.product-actions {
    align-items: center;
    flex-wrap: wrap;
}

.cart-link {
    gap: 7px;
    color: #d9f6ff !important;
    background: rgba(83, 181, 235, .08) !important;
    border: 1px solid rgba(107, 207, 255, .15) !important;
}

.cart-link b {
    min-width: 19px;
    min-height: 19px;
    display: inline-grid;
    place-items: center;
    padding: 2px 4px;
    background: rgba(104, 208, 255, .18);
    border: 1px solid rgba(104, 208, 255, .22);
    font-size: 8px;
}

.cart-fab {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 105;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 46px;
    padding: 9px 12px;
    border-radius: 5px;
    border: 1px solid rgba(104, 208, 255, .28);
    color: #e9faff;
    background: rgba(7,20,32,.9);
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 40px rgba(0,0,0,.35), 0 0 28px rgba(55,164,228,.08);
    text-decoration: none;
    font: 9px var(--mc-font);
    transition: .2s ease;
}

.cart-fab:hover,
.cart-fab.active {
    transform: translateY(-3px);
    border-color: rgba(107, 214, 255, .5);
    box-shadow: 0 20px 46px rgba(0,0,0,.38), 0 0 32px rgba(55,164,228,.14);
}

.cart-fab b {
    min-width: 21px;
    height: 21px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(107,214,255,.23);
    background: rgba(107,214,255,.12);
    font: 8px var(--mc-font);
}

/* Cart */
.cart-layout,
.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 20px;
    align-items: start;
}

.cart-list,
.cart-summary,
.checkout-form-box,
.checkout-summary {
    padding: 18px;
    background: linear-gradient(145deg, rgba(12,29,46,.92), rgba(5,14,23,.92));
}

.cart-list {
    padding: 10px;
}

.cart-item {
    display: grid;
    grid-template-columns: 72px minmax(0,1fr) auto auto auto;
    align-items: center;
    gap: 14px;
    padding: 11px;
    border-bottom: 1px solid rgba(116,207,255,.07);
}

.cart-item:last-child { border-bottom: 0; }

.cart-item-image {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(111,207,255,.1);
    background: #071522;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-image span {
    color: var(--mc-blue);
    font: 16px var(--mc-font);
}

.cart-item-main { min-width: 0; }
.cart-item-name { display: block; margin: 5px 0 5px; color: #eaf8ff; text-decoration: none; font-weight: 750; }
.cart-item-main small { color: #718b9d; }
.cart-line-total { min-width: 80px; text-align: right; color: #d8f5ff; }

.quantity-form {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(113,206,255,.14);
    background: rgba(8,20,32,.72);
}
.quantity-form button { width: 29px; height: 31px; color: #b7d7e6; background: transparent; cursor: pointer; font: 12px var(--mc-font); }
.quantity-form button:hover { background: rgba(102,206,255,.08); color: #fff; }
.quantity-form span { min-width: 28px; text-align: center; color: #d7eef9; font: 9px var(--mc-font); }
.remove-cart { width: 31px; height: 31px; color: #829dac; background: transparent; cursor: pointer; font-size: 23px; }
.remove-cart:hover { color: #fff; background: rgba(255,85,85,.1); }

.cart-summary { position: sticky; top: 92px; }
.cart-summary-row,
.cart-summary-total { display: flex; align-items: center; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid rgba(116,207,255,.07); }
.cart-summary-row { color: #879dad; }
.cart-summary-total { margin-bottom: 16px; color: #aac0cf; }
.cart-summary-total strong { color: #e8fbff; font-size: 24px; }
.cart-summary form { margin-top: 10px; }

/* Checkout / order */
.checkout-note { margin: 10px 0 15px; color: #6f8b9d; font-size: 11px; line-height: 1.65; }
.checkout-summary { position: sticky; top: 92px; }
.order-summary-line,
.order-summary-total { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid rgba(116,207,255,.065); }
.order-summary-line span { color: #a1b6c4; }
.order-summary-line b { color: #d8f5ff; white-space: nowrap; }
.order-summary-total { margin-top: 4px; border-bottom: 0; }
.order-summary-total span { font: 9px var(--mc-font); color: #6b8da2; }
.order-summary-total b { font-size: 23px; color: var(--mc-blue); }

.product-detail-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }

/* Admin Minecraft dashboard */
.admin-theme .topbar { border-bottom-color: rgba(102,204,255,.16); }
.admin-stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-bottom: 18px; }
.admin-stat-card { padding: 17px; background: linear-gradient(145deg, rgba(12,28,44,.94), rgba(6,15,24,.93)); transition: .2s ease; }
.admin-stat-card span { display: block; color: #6c8b9f; font: 8px var(--mc-font); margin-bottom: 12px; }
.admin-stat-card strong { color: #e6f9ff; font-size: 29px; }
.admin-list { display: grid; gap: 8px; }
.admin-row { border-radius: 5px; padding: 11px; background: rgba(4,13,21,.43); }
.product-admin-row { gap: 12px; }
.admin-row-info { display: flex; align-items: center; gap: 11px; min-width: 0; }
.admin-product-thumb { width: 48px; height: 48px; object-fit: cover; border: 1px solid rgba(111,207,255,.1); background: #07131f; flex: 0 0 auto; }
.admin-product-thumb.placeholder { display: grid; place-items: center; color: var(--mc-blue); font: 10px var(--mc-font); }
.admin-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; margin-bottom: 14px; }
.admin-count { min-width: 31px; height: 31px; display: grid; place-items: center; background: rgba(102,207,255,.09); border: 1px solid rgba(102,207,255,.13); color: #9ddfff; font: 8px var(--mc-font); }
.admin-orders-box { margin-top: 18px; }
.order-admin-row { display: grid; grid-template-columns: 140px minmax(0,1fr) 110px 120px; gap: 16px; align-items: center; padding: 13px; border-top: 1px solid rgba(116,207,255,.06); text-decoration: none; transition: .17s ease; }
.order-admin-row:hover { background: rgba(75,184,236,.045); }
.order-admin-row > div { min-width: 0; }
.order-admin-row strong { color: #e8fbff; font: 11px var(--mc-font); }
.order-admin-row span { display: block; color: #9db6c5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-admin-row small { display: block; margin-top: 4px; color: #627d90; }
.order-admin-row > b { color: #d9f7ff; text-align: right; }
.status-badge { display: inline-flex; justify-content: center; align-items: center; min-height: 27px; padding: 6px 8px; border: 1px solid rgba(113,206,255,.12); font: 7px var(--mc-font); letter-spacing: .01em; white-space: nowrap; }
.status-pending { color: #f6d98b; background: rgba(207,160,46,.08); border-color: rgba(207,160,46,.18); }
.status-paid { color: #8cddff; background: rgba(66,174,222,.08); }
.status-fulfilled { color: #9af0ba; background: rgba(59,182,102,.08); border-color: rgba(59,182,102,.18); }
.status-rejected { color: #ff9ea3; background: rgba(214,68,78,.08); border-color: rgba(214,68,78,.18); }
.empty-admin { padding: 22px 0; color: #617d90; text-align: center; font-size: 12px; }

.order-detail-grid { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 18px; align-items: start; }
.order-detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 15px; border-bottom: 1px solid rgba(116,207,255,.07); }
.order-detail-head h2 { margin: 7px 0 5px; font-size: 23px; }
.order-detail-head p { margin: 0; color: #688397; font-size: 11px; }
.order-meta-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin: 15px 0; }
.order-meta-grid > div { padding: 12px; border: 1px solid rgba(116,207,255,.07); background: rgba(5,15,24,.45); }
.order-meta-grid span { display: block; color: #5e7b90; font: 7px var(--mc-font); margin-bottom: 7px; }
.order-meta-grid b { color: #c7e1ee; font-size: 12px; }
.order-section-title { margin: 18px 0 7px; font-size: 14px; }
.order-actions-box { position: sticky; top: 92px; display: grid; gap: 9px; }
.fulfilled-note,.rejected-note { padding: 12px; border: 1px solid rgba(91,208,134,.15); background: rgba(55,173,96,.06); color: #a8e7bd; font-size: 11px; line-height: 1.6; }
.rejected-note { color: #ffb2b7; border-color: rgba(255,100,112,.14); background: rgba(255,75,92,.05); }

/* Inputs become more Minecraft/editor-like */
input,
select,
textarea,
.purchase-form input,
.purchase-form select {
    border-radius: 3px !important;
    border-color: rgba(115,208,255,.13) !important;
    background: rgba(4,14,23,.82) !important;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(111,211,255,.42) !important;
    box-shadow: 0 0 0 2px rgba(111,211,255,.06), 0 0 25px rgba(58,166,231,.06) !important;
}

/* Intro / Wither cinematic */
.intro-overlay {
    background:
        radial-gradient(circle at 50% 46%, rgba(66,171,230,.12), transparent 22%),
        radial-gradient(circle at 50% 70%, rgba(58,110,173,.08), transparent 34%),
        #02070d;
}

.intro-center {
    z-index: 6;
}

.intro-logo {
    width: min(355px, 64vw);
    animation: introLogo 2.6s ease-in-out infinite;
}

.intro-wither {
    position: absolute;
    z-index: 18 !important;
    left: 50%;
    top: 50%;
    width: min(430px, 65vw);
    height: min(470px, 70vh);
    opacity: 0;
    transform: translate(-50%, -46%) scale(.15);
    filter: drop-shadow(0 0 35px rgba(0,0,0,.8)) drop-shadow(0 0 24px rgba(95,160,190,.1));
    pointer-events: none;
}

.intro-wither img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: pixelated;
}

.intro-skull {
    position: absolute;
    z-index: 26 !important;
    left: 50%;
    top: 50%;
    width: 82px;
    height: 82px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(.1);
    filter: drop-shadow(0 0 22px rgba(255,255,255,.18));
    pointer-events: none;
}

.intro-skull img { width: 100%; height: 100%; image-rendering: pixelated; }

.intro-particles { z-index: 30 !important; }
.intro-flash { position: absolute; inset: 0; z-index: 29; pointer-events: none; opacity: 0; background: radial-gradient(circle at 50% 50%, rgba(239,250,255,.9), rgba(121,211,255,.26) 8%, transparent 34%); }

.intro-started .intro-center { animation: introCenterOut .55s .25s ease forwards; }
.intro-started .intro-wither { opacity: 1; animation: witherEnter .9s cubic-bezier(.1,.78,.15,1) forwards; }
.intro-started .intro-skull { opacity: 1; animation: skullTowardCamera 1.22s cubic-bezier(.12,.66,.12,1) .62s forwards; }
.intro-started .intro-flash { animation: flashBang .56s 1.58s ease-out forwards; }
.intro-started .intro-particle { animation-duration: .95s; }

.intro-started .intro-overlay-mark,
.intro-started .intro-subtitle,
.intro-started .intro-start { opacity: 0; }

@keyframes witherEnter {
    0% { opacity: 0; transform: translate(-50%, -46%) scale(.14) rotate(-4deg); }
    23% { opacity: 1; transform: translate(-50%, -47%) scale(.72) rotate(1deg); }
    65% { opacity: 1; transform: translate(-50%, -49%) scale(1.12) rotate(-1deg); }
    100% { opacity: .12; transform: translate(-50%, -50%) scale(1.9); filter: blur(3px) drop-shadow(0 0 45px rgba(130,195,220,.2)); }
}

@keyframes skullTowardCamera {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(.12) rotate(-8deg); filter: blur(1px) drop-shadow(0 0 10px rgba(255,255,255,.08)); }
    15% { opacity: 1; }
    62% { opacity: 1; transform: translate(-50%, -50%) scale(3.7) rotate(4deg); filter: blur(.2px) drop-shadow(0 0 34px rgba(140,216,255,.22)); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(28) rotate(8deg); filter: blur(7px); }
}

@keyframes flashBang {
    0% { opacity: 0; }
    28% { opacity: .95; }
    100% { opacity: 0; }
}

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

@media (max-width: 980px) {
    .cart-layout,
    .checkout-layout,
    .order-detail-grid { grid-template-columns: 1fr; }
    .cart-summary,
    .checkout-summary,
    .order-actions-box { position: static; }
    .admin-stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .order-admin-row { grid-template-columns: 90px minmax(0,1fr) 90px; }
    .order-admin-row .status-badge { grid-column: 3; justify-self: end; }
}

@media (max-width: 700px) {
    .nav > a,
    .nav-dropdown-button,
    .cart-link,
    .primary-btn,
    .secondary-btn,
    .buy-btn,
    .danger-btn { font-size: 7px; }
    .cart-fab { right: 12px; bottom: 12px; }
    .cart-item { grid-template-columns: 56px minmax(0,1fr) auto; gap: 10px; }
    .cart-item-image { width: 56px; height: 56px; }
    .cart-item .quantity-form { grid-column: 2; justify-self: start; }
    .cart-item .cart-line-total { grid-column: 3; grid-row: 1 / span 2; }
    .cart-item > form:last-child { grid-column: 3; grid-row: 3; justify-self: end; }
    .admin-stats { grid-template-columns: 1fr 1fr; }
    .order-admin-row { grid-template-columns: 1fr 1fr; }
    .order-admin-row > b { text-align: left; }
    .order-admin-row .status-badge { grid-column: 2; grid-row: 2; justify-self: end; }
    .order-meta-grid { grid-template-columns: 1fr; }
    .intro-wither { width: min(345px, 82vw); height: min(390px, 72vh); }
}

.ui-ripple { position:absolute; width:10px; height:10px; border-radius:50%; background:rgba(255,255,255,.28); transform:translate(-50%,-50%) scale(0); pointer-events:none; animation:uiRipple .52s ease-out forwards; }
@keyframes uiRipple { to { opacity:0; transform:translate(-50%,-50%) scale(18); } }
