:root {
    --tc-black: #050506;
    --tc-charcoal: #111114;
    --tc-panel: rgba(18, 18, 20, .88);
    --tc-panel-solid: #151518;
    --tc-red: #e5232f;
    --tc-red-deep: #8e1119;
    --tc-gold: #f4b95c;
    --tc-cream: #fff4df;
    --tc-muted: #b7a79a;
    --tc-line: rgba(255, 255, 255, .12);
    --tc-shadow: 0 24px 80px rgba(0, 0, 0, .45);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.tc-front {
    margin: 0;
    min-height: 100vh;
    background:
        linear-gradient(120deg, rgba(229, 35, 47, .12), transparent 28%),
        linear-gradient(180deg, #030303 0%, #0b0b0d 42%, #050506 100%);
    color: var(--tc-cream);
    direction: rtl;
    font-family: "Cairo", Tahoma, Arial, sans-serif;
    overflow-x: hidden;
}

body.tc-front::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .24;
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, black, transparent 88%);
    z-index: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

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

button {
    cursor: pointer;
}

.tc-ambient {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.tc-ambient span {
    position: absolute;
    bottom: -80px;
    width: 2px;
    height: 90px;
    background: linear-gradient(to top, transparent, rgba(244, 185, 92, .78), rgba(229, 35, 47, .2), transparent);
    transform: rotate(18deg);
    opacity: .45;
    animation: tcSparkRise 8s linear infinite;
}

.tc-ambient span:nth-child(1) { right: 9%; animation-delay: 0s; }
.tc-ambient span:nth-child(2) { right: 28%; animation-delay: 2.2s; height: 120px; }
.tc-ambient span:nth-child(3) { right: 51%; animation-delay: 1s; }
.tc-ambient span:nth-child(4) { right: 73%; animation-delay: 3.6s; height: 110px; }
.tc-ambient span:nth-child(5) { right: 88%; animation-delay: 5s; }

@keyframes tcSparkRise {
    0% { transform: translateY(0) rotate(18deg); opacity: 0; }
    12% { opacity: .55; }
    100% { transform: translateY(-110vh) rotate(18deg); opacity: 0; }
}

.tc-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: min(1180px, calc(100% - 32px));
    min-height: 78px;
    margin: 16px auto 0;
    padding: 12px 16px;
    border: 1px solid var(--tc-line);
    border-radius: 8px;
    background: rgba(5, 5, 6, .82);
    box-shadow: 0 20px 70px rgba(0, 0, 0, .35);
    backdrop-filter: blur(18px);
}

.tc-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 178px;
}

.tc-brand img {
    width: 58px;
    height: 58px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    box-shadow: 0 0 28px rgba(229, 35, 47, .25);
}

.tc-brand strong {
    display: block;
    color: #fff;
    font-weight: 900;
    font-size: 20px;
    line-height: 1;
}

.tc-brand small {
    color: var(--tc-gold);
    font-size: 12px;
    font-weight: 700;
}

.tc-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1;
}

.tc-nav a,
.tc-phone {
    border-radius: 6px;
    color: var(--tc-muted);
    font-size: 14px;
    font-weight: 800;
    padding: 10px 12px;
    transition: color .2s ease, background .2s ease;
    white-space: nowrap;
}

.tc-nav a:hover,
.tc-phone:hover {
    background: rgba(229, 35, 47, .12);
    color: #fff;
}

.tc-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tc-icon-btn,
.tc-icon-close {
    position: relative;
    width: 46px;
    height: 46px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(229, 35, 47, .5);
    border-radius: 8px;
    background: #12090a;
    color: #fff;
}

.tc-cart-icon {
    width: 21px;
    height: 16px;
    display: block;
    border: 2px solid currentColor;
    border-top: 0;
    transform: skew(-8deg);
}

.tc-cart-icon::before,
.tc-cart-icon::after {
    content: "";
    position: absolute;
    bottom: 7px;
    width: 4px;
    height: 4px;
    background: currentColor;
    border-radius: 50%;
}

.tc-cart-icon::before { right: 12px; }
.tc-cart-icon::after { left: 12px; }

.tc-cart-dot {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--tc-red);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

main {
    position: relative;
    z-index: 1;
}

.tc-hero,
.tc-section,
.tc-page-hero,
.tc-checkout,
.tc-auth-grid,
.tc-account-layout {
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
}

.tc-hero {
    min-height: calc(100vh - 96px);
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(520px, 1.08fr);
    align-items: center;
    gap: 36px;
    padding: 54px 0 42px;
}

.tc-hero-copy {
    position: relative;
}

.tc-kicker {
    margin: 0 0 12px;
    color: var(--tc-gold);
    font-size: 14px;
    font-weight: 900;
}

.tc-hero h1,
.tc-page-hero h1 {
    margin: 0;
    max-width: 720px;
    color: #fff;
    font-size: 54px;
    line-height: 1.08;
    font-weight: 900;
}

.tc-hero p:not(.tc-kicker),
.tc-page-hero p:not(.tc-kicker),
.tc-section-head p {
    color: var(--tc-muted);
    font-size: 17px;
    line-height: 1.9;
}

.tc-hero-actions,
.tc-cart-footer,
.tc-product-actions,
.tc-panel-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.tc-primary-btn,
.tc-secondary-btn,
.tc-product-actions button,
.tc-filter-bar button,
.tc-link-arrow {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid transparent;
    font-weight: 900;
    padding: 12px 18px;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}

.tc-primary-btn,
.tc-product-actions button {
    background: linear-gradient(135deg, var(--tc-red), var(--tc-red-deep));
    color: #fff;
    box-shadow: 0 18px 45px rgba(229, 35, 47, .28);
}

.tc-secondary-btn,
.tc-link-arrow {
    background: rgba(255, 255, 255, .06);
    border-color: var(--tc-line);
    color: #fff;
}

.tc-primary-btn:hover,
.tc-secondary-btn:hover,
.tc-product-actions button:hover,
.tc-filter-bar button:hover,
.tc-link-arrow:hover {
    transform: translateY(-2px);
}

.tc-mini-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 28px;
}

.tc-mini-stats span {
    min-height: 72px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 12px;
    border: 1px solid var(--tc-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .04);
    color: var(--tc-muted);
    font-size: 13px;
}

.tc-mini-stats strong {
    color: #fff;
    font-size: 18px;
}

.tc-cow-lab {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.32fr) minmax(240px, .68fr);
    gap: 20px;
    padding: 20px;
    border: 1px solid rgba(244, 185, 92, .28);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(229, 35, 47, .22), transparent 35%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .04) 0 1px, transparent 1px 46px),
        rgba(12, 12, 14, .88);
    box-shadow: var(--tc-shadow), inset 0 0 90px rgba(229, 35, 47, .1);
    overflow: hidden;
}

.tc-cow-lab::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .08), transparent);
    transform: translateX(110%);
    animation: tcLightSweep 5.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes tcLightSweep {
    0%, 42% { transform: translateX(110%); opacity: 0; }
    55% { opacity: .7; }
    75%, 100% { transform: translateX(-110%); opacity: 0; }
}

.tc-cow-stage {
    min-height: 470px;
    display: grid;
    place-items: center;
    perspective: 1200px;
}

.tc-cow-map {
    width: 100%;
    max-width: 760px;
    overflow: visible;
    transform: rotateX(7deg) rotateY(-9deg);
    transform-style: preserve-3d;
    animation: tcCowFloat 6s ease-in-out infinite;
}

.tc-butcher-map {
    filter: drop-shadow(0 28px 44px rgba(0, 0, 0, .45));
}

@keyframes tcCowFloat {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -8px; }
}

.tc-cow-outline,
.tc-cow-head,
.tc-cow-leg,
.tc-tail,
.tc-ear,
.tc-horn {
    fill: #231b1a;
    stroke: rgba(255, 244, 223, .86);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tc-cow-outline {
    fill: none;
    stroke: rgba(255, 244, 223, .92);
    stroke-width: 4.5;
}

.tc-cow-glow {
    fill: url(#tcCowGlow);
}

.tc-cow-depth {
    fill: rgba(0, 0, 0, .32);
    transform: translate(16px, 20px);
    filter: blur(5px);
}

.tc-body-base {
    fill: #211918;
}

.tc-eye {
    fill: #f4b95c;
    filter: drop-shadow(0 0 8px rgba(244, 185, 92, .65));
}

.tc-butcher-line {
    fill: none;
    stroke: rgba(255, 244, 223, .76);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tc-butcher-line.is-dashed {
    stroke-dasharray: 10 9;
    opacity: .62;
}

.tc-cow-tail {
    fill: none;
    stroke: rgba(255, 244, 223, .72);
    stroke-width: 5;
    stroke-linecap: round;
}

.tc-cut {
    cursor: pointer;
    outline: none;
    transform-box: fill-box;
    transform-origin: center;
    transition: transform .25s ease, filter .25s ease, opacity .25s ease;
}

.tc-cut path {
    fill: #2b201e;
    stroke: rgba(255, 244, 223, .72);
    stroke-width: 2.5;
    filter: url(#tcMeatTexture);
    transition: fill .22s ease, stroke .22s ease;
}

.tc-cut text {
    fill: #e6452f;
    font-family: "Cairo", Tahoma, Arial, sans-serif;
    font-size: 30px;
    font-weight: 900;
    text-anchor: middle;
    paint-order: stroke;
    stroke: rgba(0, 0, 0, .72);
    stroke-width: 6px;
    stroke-linejoin: round;
    transition: fill .22s ease, transform .22s ease;
}

.tc-cut:hover,
.tc-cut:focus,
.tc-cut.is-active {
    transform: translateY(-12px) scale(1.08);
    filter: drop-shadow(0 0 22px rgba(244, 185, 92, .42));
}

.tc-cut:hover path,
.tc-cut:focus path,
.tc-cut.is-active path {
    fill: #7f1917;
    stroke: rgba(255, 244, 223, .95);
}

.tc-cut:hover text,
.tc-cut:focus text,
.tc-cut.is-active text {
    fill: #fff4df;
}

.tc-cut-info {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 280px;
    padding: 22px;
    border-radius: 8px;
    border: 1px solid rgba(244, 185, 92, .22);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025)),
        rgba(0, 0, 0, .28);
}

.tc-cut-sample {
    position: relative;
    width: 128px;
    height: 88px;
    margin-bottom: 18px;
    border-radius: 54% 46% 48% 52%;
    background: linear-gradient(135deg, #320609, #9b111a 48%, #e54c3f);
    box-shadow: inset -18px -16px 26px rgba(0, 0, 0, .38), 0 18px 40px rgba(0, 0, 0, .34);
    transform: rotate(-12deg);
    overflow: hidden;
}

.tc-cut-sample::before {
    content: "";
    position: absolute;
    inset: 16px 20px;
    border: 9px solid rgba(255, 226, 190, .54);
    border-radius: 50%;
}

.tc-cut-sample span,
.tc-cut-sample i {
    position: absolute;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 238, 214, .34);
    transform: rotate(-22deg);
}

.tc-cut-sample span {
    width: 78px;
    top: 22px;
    right: 24px;
}

.tc-cut-sample i {
    width: 54px;
    bottom: 21px;
    left: 18px;
}

.tc-cut-info h2 {
    margin: 0 0 10px;
    font-size: 34px;
    color: #fff;
}

.tc-cut-info strong {
    color: var(--tc-gold);
    font-size: 18px;
}

.tc-cut-info p:last-child {
    color: var(--tc-muted);
    line-height: 1.9;
}

.tc-section {
    padding: 72px 0;
}

.tc-section-head {
    max-width: 760px;
    margin-bottom: 28px;
}

.tc-section-head h2,
.tc-account-nudge h2,
.tc-history h2 {
    margin: 0;
    color: #fff;
    font-size: 36px;
    line-height: 1.25;
    font-weight: 900;
}

.tc-loyalty-strip {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr);
    gap: 28px;
    align-items: center;
    border-block: 1px solid var(--tc-line);
}

.tc-loyalty-card {
    position: relative;
    padding: 26px;
    border: 1px solid rgba(244, 185, 92, .42);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(229, 35, 47, .28), transparent 36%),
        linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .025)),
        #111114;
    box-shadow: 0 28px 70px rgba(0, 0, 0, .34);
    overflow: hidden;
}

.tc-pass-shine {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(115deg, transparent 10%, rgba(255, 255, 255, .11) 28%, transparent 46%),
        repeating-linear-gradient(90deg, rgba(244, 185, 92, .08) 0 1px, transparent 1px 42px);
    opacity: .5;
}

.tc-pass-logo {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 1;
    width: 58px;
    height: 58px;
    object-fit: cover;
    border: 1px solid rgba(244, 185, 92, .34);
    border-radius: 8px;
    opacity: .92;
    box-shadow: 0 0 28px rgba(229, 35, 47, .2);
}

.tc-loyalty-card::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 5px;
    background: linear-gradient(90deg, var(--tc-red), var(--tc-gold), var(--tc-red));
}

.tc-loyalty-top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-left: 78px;
    color: #fff;
}

.tc-loyalty-top span {
    color: var(--tc-gold);
    font-weight: 900;
}

.tc-loyalty-top strong {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(0, 0, 0, .32);
    border: 1px solid rgba(255, 255, 255, .12);
    color: #fff;
    padding: 6px 12px;
}

.tc-pass-progress {
    position: relative;
    z-index: 1;
    height: 10px;
    margin: 18px 0 20px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .34);
    overflow: hidden;
}

.tc-pass-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--tc-red), var(--tc-gold));
    box-shadow: 0 0 24px rgba(244, 185, 92, .24);
}

.tc-stamps {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(5, minmax(44px, 1fr));
    gap: 10px;
    margin: 0 0 20px;
}

.tc-stamp {
    position: relative;
    aspect-ratio: 1;
    border: 1px solid rgba(244, 185, 92, .2);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015)),
        rgba(0, 0, 0, .32);
    overflow: hidden;
}

.tc-stamp b {
    position: absolute;
    top: 6px;
    right: 8px;
    z-index: 2;
    color: rgba(255, 244, 223, .56);
    font-size: 11px;
    font-weight: 900;
}

.tc-stamp span {
    position: absolute;
    inset: 26% 18% 18% 22%;
    border-radius: 52% 48% 44% 56%;
    background:
        linear-gradient(135deg, rgba(255, 225, 196, .25), transparent 36%),
        linear-gradient(135deg, #4e0d10, #b61622 62%, #e55345);
    box-shadow: inset -8px -8px 18px rgba(0, 0, 0, .32);
    transform: rotate(-18deg);
}

.tc-stamp.is-checked {
    border-color: rgba(244, 185, 92, .85);
    background:
        linear-gradient(135deg, rgba(229, 35, 47, .2), rgba(244, 185, 92, .08)),
        rgba(0, 0, 0, .36);
    box-shadow: 0 0 22px rgba(244, 185, 92, .16);
}

.tc-stamp.is-checked::after {
    content: "";
    position: absolute;
    z-index: 3;
    width: 25px;
    height: 14px;
    border-right: 4px solid #fff;
    border-bottom: 4px solid #fff;
    transform: rotate(38deg);
    top: 23%;
    right: 32%;
}

.tc-pass-footer {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
}

.tc-loyalty-card p {
    margin: 0;
    color: var(--tc-cream);
    font-weight: 800;
}

.tc-pass-footer em {
    color: var(--tc-gold);
    font-size: 13px;
    font-style: normal;
    font-weight: 900;
    white-space: nowrap;
}

.tc-filter-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.tc-filter-bar button {
    background: rgba(255, 255, 255, .05);
    border-color: var(--tc-line);
    color: var(--tc-muted);
}

.tc-filter-bar button.is-active {
    background: #fff;
    color: #160607;
}

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

.tc-product-card,
.tc-offer-card,
.tc-form,
.tc-checkout-summary,
.tc-history,
.tc-empty-state {
    border: 1px solid var(--tc-line);
    border-radius: 8px;
    background: var(--tc-panel);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .26);
}

.tc-product-card {
    min-height: 540px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.tc-product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(229, 35, 47, .5);
    box-shadow: 0 28px 80px rgba(0, 0, 0, .34);
}

.tc-product-media {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #100708;
}

.tc-product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tc-product-media.is-placeholder {
    display: grid;
    place-items: center;
    text-align: center;
    padding: 20px;
    background:
        linear-gradient(135deg, rgba(229, 35, 47, .22), transparent 46%),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 16px),
        #100708;
}

.tc-product-media.is-placeholder strong {
    position: relative;
    z-index: 1;
    max-width: 90%;
    color: #fff;
    font-size: 22px;
    line-height: 1.35;
}

.tc-meat-mark {
    position: absolute;
    width: 170px;
    height: 112px;
    border-radius: 52% 48% 44% 56%;
    background: linear-gradient(135deg, #3b0709, #b61520 60%, #f05c4b);
    box-shadow: inset -22px -18px 28px rgba(0, 0, 0, .32), 0 28px 60px rgba(0, 0, 0, .35);
    transform: rotate(-16deg);
}

.tc-meat-mark::after {
    content: "";
    position: absolute;
    inset: 24% 18%;
    border-radius: 46%;
    border: 8px solid rgba(255, 226, 190, .58);
}

.tc-stock-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 900;
    color: #fff;
    background: rgba(255, 255, 255, .12);
    backdrop-filter: blur(10px);
}

.tc-stock-badge.is-good { background: rgba(30, 145, 80, .78); }
.tc-stock-badge.is-low { background: rgba(244, 185, 92, .86); color: #190c03; }
.tc-stock-badge.is-out { background: rgba(160, 20, 28, .9); }

.tc-product-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
}

.tc-product-body p,
.tc-product-body small {
    margin: 0;
    color: var(--tc-muted);
    line-height: 1.7;
}

.tc-product-body h3 {
    margin: 2px 0 0;
    color: #fff;
    font-size: 24px;
    line-height: 1.3;
}

.tc-price {
    color: var(--tc-gold);
    font-size: 18px;
}

.tc-product-actions {
    margin-top: auto;
    justify-content: space-between;
}

.tc-product-actions label {
    display: grid;
    gap: 5px;
    color: var(--tc-muted);
    font-size: 12px;
    font-weight: 800;
}

.tc-product-actions input {
    width: 96px;
    height: 44px;
    border-radius: 8px;
    border: 1px solid var(--tc-line);
    background: rgba(0, 0, 0, .34);
    color: #fff;
    padding: 8px 10px;
}

.tc-product-actions button:disabled {
    cursor: not-allowed;
    opacity: .45;
    transform: none;
}

.tc-offers-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.tc-offers-grid.is-wide {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tc-offer-card {
    overflow: hidden;
}

.tc-offer-media {
    position: relative;
    height: 210px;
    background: #160709;
    overflow: hidden;
}

.tc-offer-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tc-offer-media.is-placeholder {
    background:
        linear-gradient(135deg, rgba(229, 35, 47, .4), transparent 52%),
        repeating-linear-gradient(90deg, rgba(244, 185, 92, .18) 0 3px, transparent 3px 20px),
        #120607;
}

.tc-offer-media.is-placeholder span {
    position: absolute;
    inset: 38px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 8px;
}

.tc-offer-media b {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--tc-gold);
    color: #160607;
    font-size: 13px;
}

.tc-offer-card div:last-child {
    padding: 18px;
}

.tc-offer-card h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 24px;
}

.tc-offer-card p {
    color: var(--tc-muted);
    line-height: 1.8;
    margin: 0;
}

.tc-account-nudge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-top: 1px solid var(--tc-line);
}

.tc-page-hero {
    padding: 72px 0 24px;
}

.tc-checkout,
.tc-auth-grid,
.tc-account-layout {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(360px, 1.15fr);
    gap: 18px;
    align-items: start;
    padding: 24px 0 72px;
}

.tc-auth-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tc-form,
.tc-checkout-summary,
.tc-history,
.tc-empty-state {
    padding: 22px;
}

.tc-form h2,
.tc-checkout-summary h2 {
    margin: 0 0 16px;
    color: #fff;
}

.tc-form label {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--tc-muted);
    font-weight: 800;
}

.tc-form input,
.tc-form textarea,
.tc-form select {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--tc-line);
    border-radius: 8px;
    background: rgba(0, 0, 0, .32);
    color: #fff;
    padding: 10px 12px;
}

.tc-form textarea {
    resize: vertical;
}

.tc-form-hint {
    margin: 10px 0 14px;
    padding: 12px;
    border: 1px solid rgba(244, 185, 92, .28);
    border-radius: 8px;
    background: rgba(244, 185, 92, .08);
    color: var(--tc-muted);
}

.tc-form-hint strong {
    display: block;
    color: #fff;
}

.tc-checkout-summary {
    position: sticky;
    top: 104px;
}

.tc-cart-line,
.tc-history-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--tc-line);
}

.tc-cart-line:last-child,
.tc-history-row:last-child {
    border-bottom: 0;
}

.tc-cart-line strong,
.tc-history-row strong {
    color: #fff;
}

.tc-cart-line span,
.tc-history-row span,
.tc-history-row small,
.tc-history-row em {
    color: var(--tc-muted);
    font-style: normal;
}

.tc-cart-line-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    grid-column: 1 / -1;
}

.tc-cart-line-actions button {
    width: 34px;
    height: 34px;
    border: 1px solid var(--tc-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .06);
    color: #fff;
}

.tc-cart-total-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--tc-line);
}

.tc-cart-drawer {
    position: fixed;
    inset: 0;
    z-index: 50;
    pointer-events: none;
    background: rgba(0, 0, 0, 0);
    transition: background .25s ease;
}

.tc-cart-drawer.is-open {
    pointer-events: auto;
    background: rgba(0, 0, 0, .62);
}

.tc-cart-panel {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(420px, 100%);
    display: flex;
    flex-direction: column;
    padding: 18px;
    border-right: 1px solid var(--tc-line);
    background: #09090b;
    box-shadow: -28px 0 80px rgba(0, 0, 0, .44);
    transform: translateX(-105%);
    transition: transform .28s ease;
}

.tc-cart-drawer.is-open .tc-cart-panel {
    transform: translateX(0);
}

.tc-cart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--tc-line);
}

.tc-cart-head strong {
    font-size: 22px;
}

.tc-icon-close::before,
.tc-icon-close::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 2px;
    background: #fff;
}

.tc-icon-close::before { transform: rotate(45deg); }
.tc-icon-close::after { transform: rotate(-45deg); }

.tc-cart-items {
    flex: 1;
    overflow: auto;
    padding: 10px 0;
}

.tc-cart-footer {
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--tc-line);
}

.tc-cart-footer span {
    display: block;
    color: var(--tc-muted);
    font-size: 13px;
}

.tc-cart-footer strong {
    color: #fff;
    font-size: 22px;
}

.tc-account-layout {
    grid-template-columns: minmax(320px, .9fr) minmax(0, 1.1fr);
}

.tc-history-row {
    grid-template-columns: minmax(0, 1fr) auto auto auto;
}

.tc-inline-link {
    color: var(--tc-gold);
    font-weight: 900;
}

.tc-empty-state {
    color: var(--tc-muted);
    line-height: 1.8;
}

.tc-success-layer {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, .72);
}

.tc-success-layer[hidden] {
    display: none !important;
}

.tc-success-card {
    position: relative;
    width: min(480px, 100%);
    padding: 30px;
    border: 1px solid rgba(244, 185, 92, .34);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(229, 35, 47, .25), transparent 45%),
        #101012;
    box-shadow: var(--tc-shadow);
    text-align: center;
    overflow: hidden;
    animation: tcSuccessPop .38s ease both;
}

.tc-success-card::before,
.tc-success-card::after {
    content: "";
    position: absolute;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--tc-gold), transparent);
    animation: tcSuccessLine 1.2s ease-out infinite;
}

.tc-success-card::before { right: 20%; }
.tc-success-card::after { left: 20%; animation-delay: .28s; }

@keyframes tcSuccessPop {
    from { transform: translateY(18px) scale(.96); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes tcSuccessLine {
    from { transform: translateY(-110%); opacity: 0; }
    35% { opacity: 1; }
    to { transform: translateY(110%); opacity: 0; }
}

.tc-success-mark {
    width: 74px;
    height: 74px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: var(--tc-red);
    box-shadow: 0 0 40px rgba(229, 35, 47, .35);
}

.tc-success-mark::after {
    content: "";
    width: 32px;
    height: 17px;
    border-right: 5px solid #fff;
    border-bottom: 5px solid #fff;
    transform: rotate(38deg) translate(-2px, -2px);
}

.tc-success-card h2 {
    margin: 12px 0;
    color: #fff;
    font-size: 32px;
}

.tc-success-card p {
    color: var(--tc-muted);
    line-height: 1.8;
}

.tc-admin-gate-body {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 20px;
}

.tc-admin-gate {
    position: relative;
    z-index: 2;
    width: min(620px, 100%);
    padding: 34px;
    border: 1px solid rgba(244, 185, 92, .28);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(229, 35, 47, .18), transparent 42%),
        rgba(13, 13, 15, .92);
    box-shadow: var(--tc-shadow);
    text-align: center;
}

.tc-admin-gate img {
    width: 84px;
    height: 84px;
    object-fit: cover;
    border: 1px solid rgba(244, 185, 92, .25);
    border-radius: 8px;
    margin-bottom: 16px;
}

.tc-admin-gate h1 {
    margin: 0;
    color: #fff;
    font-size: 34px;
    line-height: 1.25;
}

.tc-admin-gate p:not(.tc-kicker) {
    color: var(--tc-muted);
    line-height: 1.9;
}

.tc-admin-gate .tc-hero-actions {
    justify-content: center;
}

.tc-dashboard-body {
    background:
        linear-gradient(120deg, rgba(229, 35, 47, .12), transparent 32%),
        #070708;
}

.tc-dashboard-shell {
    position: relative;
    z-index: 2;
    width: min(1440px, 100%);
    min-height: 100vh;
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 0;
    margin-inline: auto;
}

.tc-dashboard-side {
    position: sticky;
    top: 0;
    min-height: 100vh;
    padding: 22px;
    border-left: 1px solid var(--tc-line);
    background:
        linear-gradient(180deg, rgba(229, 35, 47, .14), transparent 34%),
        rgba(10, 10, 12, .94);
}

.tc-dashboard-side .tc-brand {
    margin-bottom: 28px;
}

.tc-dashboard-side nav {
    display: grid;
    gap: 8px;
}

.tc-dashboard-side nav a {
    min-height: 46px;
    display: flex;
    align-items: center;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--tc-muted);
    font-weight: 900;
    padding: 10px 12px;
}

.tc-dashboard-side nav a:hover {
    border-color: rgba(244, 185, 92, .26);
    background: rgba(255, 255, 255, .06);
    color: #fff;
}

.tc-dashboard-main {
    padding: 28px;
}

.tc-dashboard-top,
.tc-dashboard-panel {
    border: 1px solid var(--tc-line);
    border-radius: 8px;
    background: rgba(18, 18, 20, .9);
    box-shadow: 0 22px 70px rgba(0, 0, 0, .24);
}

.tc-dashboard-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 24px;
}

.tc-dashboard-top h1,
.tc-dashboard-panel h2 {
    margin: 0;
    color: #fff;
    font-weight: 900;
}

.tc-dashboard-top p:not(.tc-kicker),
.tc-dashboard-panel-head span {
    color: var(--tc-muted);
}

.tc-dashboard-saved {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    border-radius: 999px;
    background: rgba(44, 180, 104, .16);
    color: #7df0a8;
    font-weight: 900;
    padding: 6px 12px;
}

.tc-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 16px 0;
}

.tc-dashboard-stats div {
    min-height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid var(--tc-line);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(229, 35, 47, .16), transparent 44%),
        rgba(255, 255, 255, .045);
    padding: 16px;
}

.tc-dashboard-stats span {
    color: var(--tc-muted);
    font-weight: 900;
}

.tc-dashboard-stats strong {
    color: #fff;
    font-size: 26px;
    font-weight: 900;
}

.tc-dashboard-panel {
    margin-top: 16px;
    padding: 22px;
}

.tc-dashboard-panel-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.tc-dashboard-form {
    display: grid;
    gap: 14px;
}

.tc-cuts-editor {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.tc-cuts-editor fieldset,
.tc-dashboard-form label,
.tc-dashboard-product-row {
    border: 1px solid var(--tc-line);
    border-radius: 8px;
    background: rgba(0, 0, 0, .22);
}

.tc-cuts-editor fieldset {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 16px;
}

.tc-cuts-editor legend {
    color: var(--tc-gold);
    font-weight: 900;
    padding: 0 8px;
}

.tc-dashboard-form label {
    display: grid;
    gap: 7px;
    color: var(--tc-muted);
    font-weight: 900;
    padding: 12px;
}

.tc-dashboard-form input,
.tc-dashboard-form textarea,
.tc-dashboard-form select,
.tc-dashboard-product-row input,
.tc-dashboard-product-row select {
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 8px;
    background: rgba(0, 0, 0, .36);
    color: #fff;
    padding: 8px 10px;
}

.tc-product-quick-form {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tc-dashboard-wide,
.tc-product-quick-form button {
    grid-column: 1 / -1;
}

.tc-dashboard-products {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}

.tc-dashboard-product-row {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) 160px 110px 110px 86px;
    gap: 8px;
    align-items: center;
    padding: 10px;
}

.tc-dashboard-product-row button {
    min-height: 42px;
    border: 0;
    border-radius: 8px;
    background: var(--tc-red);
    color: #fff;
    font-weight: 900;
}

@media (max-width: 1050px) {
    .tc-header {
        flex-wrap: wrap;
    }

    .tc-nav {
        order: 3;
        flex-basis: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .tc-hero,
    .tc-loyalty-strip,
    .tc-checkout,
    .tc-account-layout {
        grid-template-columns: 1fr;
    }

    .tc-cow-lab {
        grid-template-columns: 1fr;
    }

    .tc-checkout-summary {
        position: static;
    }

    .tc-products-grid,
    .tc-offers-grid.is-wide {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tc-dashboard-shell {
        grid-template-columns: 1fr;
    }

    .tc-dashboard-side {
        position: relative;
        min-height: auto;
        border-left: 0;
        border-bottom: 1px solid var(--tc-line);
    }

    .tc-dashboard-side nav,
    .tc-dashboard-stats,
    .tc-cuts-editor,
    .tc-product-quick-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tc-dashboard-product-row {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 720px) {
    .tc-header,
    .tc-hero,
    .tc-section,
    .tc-page-hero,
    .tc-checkout,
    .tc-auth-grid,
    .tc-account-layout {
        width: min(100% - 20px, 1180px);
    }

    .tc-header {
        margin-top: 10px;
        padding: 10px;
    }

    .tc-brand {
        min-width: auto;
    }

    .tc-brand span {
        display: none;
    }

    .tc-hero {
        min-height: auto;
        padding-top: 34px;
    }

    .tc-hero h1,
    .tc-page-hero h1 {
        font-size: 38px;
    }

    .tc-section-head h2,
    .tc-account-nudge h2,
    .tc-history h2 {
        font-size: 30px;
    }

    .tc-mini-stats,
    .tc-products-grid,
    .tc-offers-grid,
    .tc-offers-grid.is-wide,
    .tc-auth-grid,
    .tc-dashboard-side nav,
    .tc-dashboard-stats,
    .tc-cuts-editor,
    .tc-product-quick-form,
    .tc-dashboard-product-row {
        grid-template-columns: 1fr;
    }

    .tc-dashboard-main {
        padding: 14px;
    }

    .tc-dashboard-top,
    .tc-dashboard-panel-head {
        align-items: stretch;
        flex-direction: column;
    }

    .tc-cow-stage {
        min-height: 300px;
    }

    .tc-cut text {
        font-size: 24px;
    }

    .tc-stamps {
        grid-template-columns: repeat(5, minmax(38px, 1fr));
        gap: 8px;
    }

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

    .tc-product-card {
        min-height: auto;
    }

    .tc-product-actions {
        align-items: stretch;
    }

    .tc-product-actions button {
        flex: 1;
    }

    .tc-account-nudge {
        align-items: stretch;
        flex-direction: column;
    }

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