/*
    
    Glavni CSS fajl sa zajedničkim stilovima za cijeli SweetDay projekat.
    Ovdje se nalaze stilovi za izgled stranice.
*/

/* Glavne CSS varijable za boje, sjene i zaobljenja. */
:root {
    --pink: #ff6fa8;
    --light-pink: #ff9cc4;
    --hot-pink: #e83f82;
    --cream: #fff7fb;
    --white: #ffffff;
    --text: #3d2430;
    --muted: #7d5a69;
    --border: #ffd2e3;
    --shadow: 0 18px 45px rgba(215, 77, 130, 0.18);
    --radius: 26px;
}

* {
    box-sizing: border-box;
}

/* Osnovni izgled cijele stranice. */
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(135deg, #ffffff 0%, #fff0f7 45%, #ffe4f0 100%);
    color: var(--text);
}

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

img {
    display: block;
    max-width: 100%;
}

.container {
    width: min(1180px, 92%);
    margin: auto;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid #ffe0ed;
    backdrop-filter: blur(12px);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

.brand img {
    width: 108px;
}

.links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.links a,
.btn {
    border: 0;
    border-radius: 999px;
    padding: 12px 18px;
    background: var(--white);
    color: var(--hot-pink);
    box-shadow: 0 7px 18px rgba(255, 111, 168, 0.12);
    cursor: pointer;
    font-weight: 700;
    transition: 0.25s ease;
}

.links a:hover,
.btn:hover {
    background: var(--hot-pink);
    color: white;
    transform: translateY(-2px);
}

.menu-btn {
    display: none;
}

.hero {
    padding: 75px 0 45px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 35px;
}

.pill {
    display: inline-block;
    padding: 10px 15px;
    border-radius: 999px;
    background: white;
    color: var(--hot-pink);
    font-weight: 700;
}

.hero h1 {
    margin: 18px 0;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1;
}

.hero p {
    color: var(--muted);
    font-size: 18px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.hero-card {
    padding: 18px;
    background: white;
    border-radius: 36px;
    box-shadow: var(--shadow);
    transform: rotate(2deg);
    transition: 0.35s ease;
}

.hero-card:hover {
    transform: rotate(0deg) scale(1.02);
}

.hero-card img {
    border-radius: 28px;
}

.section {
    padding: 55px 0;
}

.title {
    margin-bottom: 25px;
    text-align: center;
}

.title h2 {
    margin: 0;
    font-size: 38px;
}

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

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.card {
    padding: 18px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid #ffe3ef;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: 0.28s ease;
}

.card:hover {
    border-color: var(--pink);
    transform: translateY(-8px);
}

.card img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    border-radius: 20px;
}

.card-body {
    padding-top: 12px;
}

.category {
    display: inline-block;
    padding: 7px 12px;
    margin-bottom: 8px;
    background: #fff1f7;
    color: var(--hot-pink);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.price {
    color: var(--hot-pink);
    font-size: 22px;
    font-weight: 900;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.info {
    padding: 24px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.feature {
    padding: 22px;
    background: white;
    border-radius: 24px;
    box-shadow: var(--shadow);
    text-align: center;
}

.catalog-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 22px;
}

.catalog-toolbar input,
.form input,
.form select,
.form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: white;
    font-size: 15px;
}

.book-shell {
    perspective: 1400px;
}

.catalog-book {
    position: relative;
    min-height: 470px;
    padding: 28px;
    background: linear-gradient(90deg, #fff 0%, #fff8fb 48%, #ffe4f0 50%, #fff8fb 52%, #fff 100%);
    border: 1px solid #ffe3ef;
    border-radius: 34px;
    box-shadow: var(--shadow);
    transform-style: preserve-3d;
    overflow: hidden;
}

.catalog-book::before {
    content: '';
    position: absolute;
    top: 22px;
    bottom: 22px;
    left: 50%;
    width: 2px;
    background: rgba(232, 63, 130, 0.16);
    box-shadow: 0 0 28px rgba(120, 50, 80, 0.22);
}

.book-page {
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    transform-origin: left center;
}

.book-page.active {
    display: grid;
}

.catalog-book.turn-next .book-page.active {
    animation: pageNext 0.65s ease both;
}

.catalog-book.turn-prev .book-page.active {
    animation: pagePrev 0.65s ease both;
}

@keyframes pageNext {
    0% {
        opacity: 0.35;
        transform: rotateY(-80deg);
    }

    100% {
        opacity: 1;
        transform: rotateY(0deg);
    }
}

@keyframes pagePrev {
    0% {
        opacity: 0.35;
        transform: rotateY(80deg);
    }

    100% {
        opacity: 1;
        transform: rotateY(0deg);
    }
}

.pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 25px;
}

.page-label {
    padding: 10px 16px;
    background: white;
    border-radius: 999px;
    color: var(--muted);
    font-weight: 700;
}

.gallery {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 14px;
}

.thumbs {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.thumbs img {
    height: 88px;
    object-fit: cover;
    border: 3px solid transparent;
    border-radius: 16px;
    cursor: pointer;
}

.thumbs img:hover,
.thumbs img.active {
    border-color: var(--hot-pink);
}

.main-img {
    width: 100%;
    height: 430px;
    object-fit: cover;
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.stars button {
    border: 0;
    background: transparent;
    color: #dddddd;
    cursor: pointer;
    font-size: 28px;
}

.stars button.active,
.stars button:hover {
    color: #ffbc2f;
}

.form {
    display: grid;
    gap: 14px;
}

.notice {
    padding: 14px;
    background: #fff1f7;
    border-radius: 16px;
    color: var(--hot-pink);
    font-weight: 700;
}

.designer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
}

.cake-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 500px;
    background: radial-gradient(circle at center, #ffffff 0%, #ffeaf3 70%);
    border-radius: 30px;
    box-shadow: var(--shadow);
    perspective: 1000px;
    overflow: hidden;
}

.cake3d {
    position: relative;
    width: 270px;
    height: 210px;
    cursor: grab;
    transform-style: preserve-3d;
    transform: rotateX(60deg) rotateZ(-25deg);
    transition: transform 0.08s linear;
    touch-action: none;
}

.cake3d:active {
    cursor: grabbing;
}

.cake3d.spin {
    animation: spinCake 6s linear infinite;
}

@keyframes spinCake {
    100% {
        transform: rotateX(60deg) rotateZ(335deg);
    }
}

.layer {
    position: absolute;
    left: 0;
    right: 0;
    width: 270px;
    height: 125px;
    margin: auto;
    border-radius: 50%;
    background: var(--cake, #ff9cc4);
    box-shadow:
        0 28px 0 var(--frost, #ffd9e8),
        0 56px 0 var(--cake, #ff9cc4),
        0 84px 0 var(--frost, #ffd9e8),
        0 112px 0 var(--cake, #ff9cc4),
        0 125px 18px rgba(120, 40, 80, 0.16);
}

.top-photo {
    position: absolute;
    left: 35px;
    top: 18px;
    width: 200px;
    height: 92px;
    object-fit: cover;
    border: 4px solid white;
    border-radius: 50%;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transform: translateZ(20px);
    pointer-events: none;
    z-index: 2;
}

.candle {
    position: absolute;
    width: 8px;
    height: 34px;
    background: repeating-linear-gradient(
        90deg,
        #ffffff 0,
        #ffffff 4px,
        #ff77aa 4px,
        #ff77aa 8px
    );
    border-radius: 8px;
    transform: translateZ(36px) rotateX(-6deg);
    animation: candleFloat 1.3s ease-in-out infinite alternate;
    z-index: 3;
}

.candle::before {
    content: '';
    position: absolute;
    top: -11px;
    left: -1px;
    width: 10px;
    height: 13px;
    background: #ffc02d;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-35deg);
}

@keyframes candleFloat {
    100% {
        transform: translateZ(36px) rotateX(-6deg) translateY(-2px);
    }
}

.virtual-wrap {
    display: grid;
    grid-template-columns: 1fr 330px;
    gap: 22px;
}

.virtual-stage {
    min-height: 560px;
}

.control-box {
    padding: 22px;
    background: white;
    border-radius: 26px;
    box-shadow: var(--shadow);
}

.auth {
    max-width: 470px;
    margin: 55px auto;
    padding: 28px;
    background: white;
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.map {
    width: 100%;
    height: 360px;
    border: 0;
    border-radius: 26px;
    box-shadow: var(--shadow);
}

.footer {
    margin-top: 55px;
    padding: 35px 0;
    background: #3d2430;
    color: white;
}

.hidden {
    display: none !important;
}

@media (max-width: 850px) {
    .menu-btn {
        display: block;
    }

    .links {
        display: none;
        position: absolute;
        top: 72px;
        left: 4%;
        right: 4%;
        flex-direction: column;
        padding: 15px;
        background: white;
        border-radius: 22px;
    }

    .links.show {
        display: flex;
    }

    .hero-grid,
    .grid-2,
    .designer,
    .virtual-wrap {
        grid-template-columns: 1fr;
    }

    .cards,
    .features,
    .book-page {
        grid-template-columns: 1fr;
    }

    .catalog-book::before {
        display: none;
    }

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

    .thumbs {
        flex-direction: row;
        overflow: auto;
    }

    .main-img {
        height: 300px;
    }

    .brand img {
        width: 95px;
    }
}

.price-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin: 12px 0 8px;
}

.price-line .price {
    margin: 0;
}

.payment-choice {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.payment-choice input {
    display: none;
}

.payment-choice label {
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #ffffff;
    color: var(--hot-pink);
    cursor: pointer;
    font-weight: 800;
    text-align: center;
    transition: 0.25s ease;
}

.payment-choice input:checked + label,
.payment-choice label:hover {
    background: var(--hot-pink);
    color: #ffffff;
    transform: translateY(-2px);
}

.card-payment {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: #fff8fb;
}

.card-payment h3 {
    margin-top: 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.success-page {
    min-height: 72vh;
    display: grid;
    place-items: center;
    padding: 45px 0;
}

.success-card {
    max-width: 660px;
    padding: 38px;
    border-radius: 34px;
    background: #ffffff;
    box-shadow: var(--shadow);
    text-align: center;
    animation: successPop 0.55s ease both;
}

.success-card h1 {
    margin: 0 0 12px;
    font-size: clamp(38px, 6vw, 70px);
    color: var(--hot-pink);
}

@keyframes successPop {
    0% {
        opacity: 0;
        transform: translateY(25px) scale(0.92);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.orders-track {
    display: grid;
    gap: 18px;
}

.order-card {
    padding: 22px;
    border-radius: 26px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.tracking-line {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 18px;
}

.track-step {
    position: relative;
    padding: 16px;
    border-radius: 18px;
    background: #fff1f7;
    text-align: center;
    color: var(--muted);
    font-weight: 800;
}

.track-step.done {
    background: var(--hot-pink);
    color: #ffffff;
}

.track-dot {
    display: block;
    width: 18px;
    height: 18px;
    margin: 0 auto 8px;
    border-radius: 50%;
    background: currentColor;
}

.control-box .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 6px 6px 6px 0;
    white-space: nowrap;
}

/* Dorade v4 - personalizacija i narudžbe */
.composition {
    padding: 12px 14px;
    background: #fff5fa;
    border-left: 4px solid var(--pink);
    border-radius: 14px;
    color: var(--muted);
    line-height: 1.55;
}

.payment-choice.compact {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.payment-choice.compact input {
    display: none;
}

.payment-choice.compact label {
    width: auto;
    padding: 9px 16px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: white;
    color: var(--hot-pink);
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.25s ease;
}

.payment-choice.compact input:checked + label {
    background: var(--hot-pink);
    color: white;
    border-color: var(--hot-pink);
    box-shadow: 0 10px 22px rgba(232, 63, 130, 0.20);
}

.small-notice {
    margin: 0;
    font-size: 14px;
}

.number-picker {
    padding: 14px;
    border: 1px dashed var(--border);
    border-radius: 18px;
    background: #fff8fb;
}

.number-picker p {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

.digit-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.digit-buttons button,
.mini-btn {
    border: 0;
    border-radius: 999px;
    padding: 8px 12px;
    background: white;
    color: var(--hot-pink);
    box-shadow: 0 6px 15px rgba(255, 111, 168, 0.12);
    cursor: pointer;
    font-weight: 900;
}

.digit-buttons button.active,
.digit-buttons button:hover,
.mini-btn:hover {
    background: var(--hot-pink);
    color: white;
}

#candlesBox,
#candlesBoxV {
    position: absolute;
    inset: 0;
    z-index: 9;
    transform: translateZ(90px);
    pointer-events: none;
}

.top-photo {
    left: 16px;
    top: 9px;
    width: 238px;
    height: 108px;
    z-index: 4;
    transform: translateZ(24px);
}

.candle {
    z-index: 12;
    transform: translateZ(110px) rotateX(-6deg);
}

.candle::before {
    z-index: 13;
}

@keyframes candleFloat {
    100% {
        transform: translateZ(110px) rotateX(-6deg) translateY(-2px);
    }
}

.number-candle {
    position: absolute;
    z-index: 15;
    transform: translateZ(130px);
    min-width: 25px;
    height: 34px;
    padding: 2px 7px;
    border-radius: 12px 12px 7px 7px;
    background: linear-gradient(#fff, #ffe0ef);
    color: var(--hot-pink);
    border: 2px solid white;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.16);
    font-weight: 900;
    text-align: center;
    cursor: grab;
    user-select: none;
}

.number-candle::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    width: 9px;
    height: 12px;
    background: #ffc02d;
    border-radius: 50% 50% 50% 0;
    transform: translateX(-50%) rotate(-35deg);
}

.cake-small {
    scale: 0.88;
}

.cake-medium {
    scale: 1;
}

.cake-large {
    scale: 1.12;
}

.shape-square .layer {
    border-radius: 22px;
}

.shape-square .top-photo {
    border-radius: 18px;
}

.shape-heart .layer {
    border-radius: 55% 55% 45% 45%;
    clip-path: path('M135 120 C35 70 15 35 55 12 C88 -6 118 15 135 38 C152 15 182 -6 215 12 C255 35 235 70 135 120 Z');
}

.shape-heart .top-photo {
    border-radius: 45% 45% 55% 55%;
}

.shape-bear .layer::before,
.shape-bear .layer::after {
    content: '';
    position: absolute;
    top: -4px;
    width: 72px;
    height: 72px;
    background: var(--cake, #ff9cc4);
    border-radius: 50%;
    z-index: -1;
}

.shape-bear .layer::before {
    left: 8px;
}

.shape-bear .layer::after {
    right: 8px;
}

.shape-number .layer {
    border-radius: 26px;
    clip-path: polygon(22% 0, 78% 0, 78% 30%, 58% 30%, 58% 100%, 36% 100%, 36% 30%, 22% 30%);
}

.virtual-wrap .control-box .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 6px 6px 0 0;
    white-space: nowrap;
}

/* Dorade v5 */
.feature {
    transition: transform 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
}

.feature:hover {
    transform: translateY(-10px) rotate(-1deg);
    background: #fff7fb;
    box-shadow: 0 22px 48px rgba(232, 63, 130, 0.22);
}

.order-info {
    max-width: 680px;
}

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

.review-item {
    padding: 14px 16px;
    border: 1px solid #ffe0ed;
    border-radius: 18px;
    background: #fff8fb;
}

.review-item p {
    margin-bottom: 0;
    color: var(--muted);
}

.review-stars {
    margin-bottom: 5px;
    color: #ffbc2f;
    font-size: 20px;
    letter-spacing: 1px;
}

.payment-choice.compact {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.payment-choice.compact label {
    min-width: 105px;
    padding: 8px 13px;
    font-size: 13px;
}

.designer {
    grid-template-columns: minmax(420px, 1.05fr) minmax(360px, 0.95fr);
    align-items: start;
}

.cake-stage {
    min-height: 560px;
    padding: 28px;
}

.cake3d {
    isolation: isolate;
}

.layer {
    z-index: 1;
}

.top-photo {
    z-index: 3;
    transform: translateZ(35px);
}

#candlesBox,
#candlesBoxV {
    position: absolute;
    inset: 0;
    z-index: 10;
    transform: translateZ(60px);
    pointer-events: none;
}

.candle {
    z-index: 12;
    pointer-events: auto;
    touch-action: none;
    cursor: grab;
    transform: translateZ(65px) rotateX(-6deg);
}

.candle:active,
.number-candle:active {
    cursor: grabbing;
}

@keyframes candleFloat {
    100% {
        transform: translateZ(65px) rotateX(-6deg) translateY(-2px);
    }
}

.number-candle {
    z-index: 14;
    transform: translateZ(80px);
}

.virtual-wrap {
    grid-template-columns: minmax(520px, 1fr) 300px;
    align-items: start;
}

.control-box .btn {
    white-space: nowrap;
}

@media (max-width: 850px) {
    .designer,
    .virtual-wrap {
        grid-template-columns: 1fr;
    }

    .cake-stage {
        min-height: 430px;
    }
}


/* Dorada za gotov ZIP: slika prati oblik torte i brojevi se biraju odmah */
.shape-round .top-photo {
    left: 35px;
    top: 18px;
    width: 200px;
    height: 92px;
    border-radius: 50%;
    clip-path: ellipse(50% 50% at 50% 50%);
}

.shape-square .top-photo {
    left: 38px;
    top: 15px;
    width: 194px;
    height: 96px;
    border-radius: 18px;
    clip-path: inset(0 round 18px);
}

.shape-heart .top-photo {
    left: 38px;
    top: 10px;
    width: 194px;
    height: 104px;
    border-radius: 0;
    clip-path: path('M97 98 C24 54 10 24 40 8 C63 -5 86 9 97 30 C108 9 131 -5 154 8 C184 24 170 54 97 98 Z');
}

.shape-bear .top-photo {
    left: 30px;
    top: 8px;
    width: 210px;
    height: 105px;
    border-radius: 48% 48% 44% 44%;
    clip-path: ellipse(50% 45% at 50% 55%);
}

.shape-number .top-photo {
    left: 75px;
    top: 12px;
    width: 120px;
    height: 112px;
    border-radius: 14px;
    clip-path: polygon(20% 0, 80% 0, 80% 30%, 58% 30%, 58% 100%, 36% 100%, 36% 30%, 20% 30%);
}

.digit-buttons button.active {
    background: var(--hot-pink);
    color: #fff;
    transform: translateY(-2px);
}

.selected-digits-preview {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    background: #fff1f7;
    color: var(--hot-pink);
    font-weight: 800;
}

.number-candle {
    width: 42px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #fff;
    box-shadow: 0 10px 18px rgba(120, 40, 80, 0.18);
}


/* v8 dorade: bolji 3D oblici, ikonice i uredniji prikaz */
.social-links img{width:22px;height:22px;vertical-align:middle;margin-right:7px;border-radius:6px;}
.shape-heart .layer{clip-path:polygon(50% 15%,61% 3%,78% 0,94% 12%,98% 32%,88% 54%,50% 94%,12% 54%,2% 32%,6% 12%,22% 0,39% 3%); border-radius:34px; box-shadow:0 24px 0 rgba(0,0,0,.10), inset 0 -18px 0 rgba(0,0,0,.08), inset 0 14px 0 rgba(255,255,255,.22);}
.shape-heart .layer::after{content:'';position:absolute;left:18%;right:18%;bottom:-22px;height:36px;background:rgba(180,70,115,.20);border-radius:50%;filter:blur(2px);}
.shape-heart .top-photo{clip-path:polygon(50% 15%,61% 3%,78% 0,94% 12%,98% 32%,88% 54%,50% 94%,12% 54%,2% 32%,6% 12%,22% 0,39% 3%); border-radius:28px;}
.shape-number .layer::before{content:attr(data-number);position:absolute;inset:0;display:grid;place-items:center;font-size:150px;font-weight:900;color:rgba(255,255,255,.42);text-shadow:0 5px 12px rgba(0,0,0,.12);transform:rotateX(0deg);}
.hidden{display:none!important;}

/* FIX v10: manji GIF logo, bolji broj oblik i izraženiji 3D srce */
.brand img{
    width:76px!important;
    height:76px!important;
    object-fit:contain;
    border-radius:18px;
}
.nav{padding:7px 0!important;}
.topbar{min-height:78px;}

.shape-number .layer{
    clip-path:none!important;
    border-radius:32px!important;
    background:linear-gradient(145deg,var(--cake,#ff9cc4),var(--frost,#ffd9e8))!important;
    box-shadow:0 26px 0 var(--frost,#ffd9e8),0 54px 0 var(--cake,#ff9cc4),0 78px 18px rgba(120,40,80,.20)!important;
}
.shape-number .layer::before{
    content:attr(data-number)!important;
    position:absolute;
    inset:-26px 0 -12px 0;
    display:grid;
    place-items:center;
    font-size:164px;
    line-height:1;
    font-weight:900;
    color:rgba(255,255,255,.86);
    text-shadow:0 8px 0 rgba(160,55,105,.25),0 14px 20px rgba(90,30,60,.18);
    transform:translateZ(16px);
}
.shape-number .top-photo{
    display:none!important;
}

.shape-heart .layer{
    clip-path:polygon(50% 12%,62% 1%,80% 0,96% 14%,100% 34%,89% 58%,50% 97%,11% 58%,0 34%,4% 14%,20% 0,38% 1%)!important;
    background:linear-gradient(145deg,rgba(255,255,255,.25),var(--cake,#ff9cc4) 42%,rgba(210,65,125,.45))!important;
    box-shadow:0 20px 0 var(--frost,#ffd9e8),0 44px 0 var(--cake,#ff9cc4),0 68px 18px rgba(105,35,70,.25),inset -18px -18px 25px rgba(130,35,80,.18),inset 14px 12px 18px rgba(255,255,255,.38)!important;
    transform:translateZ(8px);
}
.shape-heart .layer::before{
    content:'';
    position:absolute;
    inset:10px 20px 45px 34px;
    background:linear-gradient(135deg,rgba(255,255,255,.52),rgba(255,255,255,0));
    border-radius:50%;
    transform:rotate(-18deg);
    pointer-events:none;
}
.shape-heart .layer::after{
    content:''!important;
    position:absolute!important;
    left:10%!important;
    right:10%!important;
    bottom:-28px!important;
    height:42px!important;
    background:rgba(140,45,90,.24)!important;
    border-radius:50%!important;
    filter:blur(4px)!important;
}
.shape-heart .top-photo{
    clip-path:polygon(50% 12%,62% 1%,80% 0,96% 14%,100% 34%,89% 58%,50% 97%,11% 58%,0 34%,4% 14%,20% 0,38% 1%)!important;
}

/* FIX v11: dugme odmah ispod slike, 3D srce/zvijezda i uredniji meni */
.virtual-preview-btn{width:100%;margin:2px 0 12px;}
.brand img{width:62px!important;height:62px!important;border-radius:16px!important;box-shadow:0 8px 22px rgba(232,63,130,.16);}
.topbar{min-height:68px!important;}
.nav{padding:5px 0!important;}
.shape-heart .layer{background:linear-gradient(145deg,rgba(255,255,255,.35) 0%,var(--cake,#ff9cc4) 38%,var(--frost,#ffd9e8) 62%,rgba(185,55,110,.40) 100%)!important;box-shadow:0 22px 0 var(--frost,#ffd9e8),0 48px 0 var(--cake,#ff9cc4),0 76px 20px rgba(105,35,70,.24),inset -20px -16px 25px rgba(120,35,75,.18),inset 15px 12px 20px rgba(255,255,255,.42)!important;}
.shape-heart .layer::before{content:''!important;position:absolute!important;left:23%!important;top:16%!important;width:35%!important;height:24%!important;background:linear-gradient(135deg,rgba(255,255,255,.58),rgba(255,255,255,0))!important;border-radius:50%!important;transform:rotate(-18deg)!important;}
.shape-star .layer{clip-path:polygon(50% 0%,61% 34%,98% 35%,68% 56%,79% 91%,50% 70%,21% 91%,32% 56%,2% 35%,39% 34%)!important;border-radius:20px!important;background:linear-gradient(145deg,rgba(255,255,255,.36) 0%,var(--cake,#ff9cc4) 36%,var(--frost,#ffd9e8) 61%,rgba(200,70,130,.42) 100%)!important;box-shadow:0 22px 0 var(--frost,#ffd9e8),0 48px 0 var(--cake,#ff9cc4),0 76px 20px rgba(105,35,70,.24),inset -18px -14px 24px rgba(120,35,75,.18),inset 14px 12px 20px rgba(255,255,255,.42)!important;transform:translateZ(8px);}
.shape-star .layer::before{content:'';position:absolute;left:37%;top:16%;width:28%;height:24%;background:linear-gradient(135deg,rgba(255,255,255,.62),rgba(255,255,255,0));border-radius:50%;transform:rotate(-18deg);}
.shape-star .layer::after{content:'';position:absolute;left:14%;right:14%;bottom:-30px;height:42px;background:rgba(140,45,90,.22);border-radius:50%;filter:blur(4px);}
.shape-star .top-photo{left:38px;top:8px;width:194px;height:108px;clip-path:polygon(50% 0%,61% 34%,98% 35%,68% 56%,79% 91%,50% 70%,21% 91%,32% 56%,2% 35%,39% 34%)!important;}

/* v12: srce i zvijezda sada imaju stvarnu 3D dubinu kao okrugla torta */
.shape-heart .layer,
.shape-star .layer{
    width:270px!important;
    height:170px!important;
    left:15px!important;
    top:18px!important;
    transform:rotateX(0deg)!important;
    background:linear-gradient(145deg, rgba(255,255,255,.42) 0%, var(--cake,#ff9cc4) 38%, var(--cake,#ff9cc4) 58%, rgba(120,35,75,.28) 100%)!important;
    box-shadow:inset -24px -22px 26px rgba(90,25,60,.20), inset 18px 16px 24px rgba(255,255,255,.45)!important;
    filter:drop-shadow(0 14px 0 var(--frost,#ffd9e8)) drop-shadow(0 28px 0 var(--cake,#ff9cc4)) drop-shadow(0 48px 18px rgba(80,30,55,.24))!important;
}

.shape-heart .layer{
    clip-path:polygon(50% 16%, 61% 4%, 76% 0%, 91% 8%, 99% 24%, 96% 43%, 84% 59%, 50% 92%, 16% 59%, 4% 43%, 1% 24%, 9% 8%, 24% 0%, 39% 4%)!important;
}

.shape-star .layer{
    clip-path:polygon(50% 0%,61% 34%,98% 35%,68% 56%,79% 91%,50% 70%,21% 91%,32% 56%,2% 35%,39% 34%)!important;
}

.shape-heart .layer::before,
.shape-star .layer::before{
    content:''!important;
    position:absolute!important;
    left:22%!important;
    top:14%!important;
    width:38%!important;
    height:28%!important;
    background:radial-gradient(circle at 30% 30%, rgba(255,255,255,.78), rgba(255,255,255,.14) 55%, rgba(255,255,255,0) 70%)!important;
    border-radius:50%!important;
    transform:rotate(-18deg)!important;
}

.shape-heart .layer::after,
.shape-star .layer::after{
    content:''!important;
    position:absolute!important;
    left:20%!important;
    right:20%!important;
    bottom:13%!important;
    height:18%!important;
    background:linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent)!important;
    border-radius:50%!important;
}

.shape-heart .top-photo,
.shape-star .top-photo{
    left:46px!important;
    top:24px!important;
    width:178px!important;
    height:92px!important;
    object-fit:cover!important;
}

.shape-heart .top-photo{
    clip-path:polygon(50% 16%, 61% 4%, 76% 0%, 91% 8%, 99% 24%, 96% 43%, 84% 59%, 50% 92%, 16% 59%, 4% 43%, 1% 24%, 9% 8%, 24% 0%, 39% 4%)!important;
}

.shape-star .top-photo{
    clip-path:polygon(50% 0%,61% 34%,98% 35%,68% 56%,79% 91%,50% 70%,21% 91%,32% 56%,2% 35%,39% 34%)!important;
}

.shape-heart .candle,
.shape-star .candle,
.shape-heart .number-candle,
.shape-star .number-candle{
    transform:rotateZ(25deg) rotateX(-60deg)!important;
}

.virtual-preview-btn{
    display:block;
    width:100%;
    margin:14px 0 20px!important;
}

/* Admin final dorade */
.admin-alert {
    margin: 0 auto 24px auto;
    padding: 16px 20px;
    max-width: 1100px;
    border-radius: 18px;
    background: #fff0f7;
    border: 1px solid #ffb6d2;
    color: #b01657;
    font-weight: 800;
    box-shadow: 0 12px 30px rgba(232, 63, 130, 0.14);
    text-align: center;
}

.admin-features {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.admin-cake-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}

.admin-cake-card img {
    height: 210px;
    object-fit: cover;
}

.admin-empty-card {
    grid-column: 1 / -1;
}

.admin-bottom-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.danger-btn {
    background: #e83e8c !important;
    color: #fff !important;
}
