body {
    background:
        radial-gradient(circle at 15% 10%, rgba(255, 255, 255, 0.9), transparent 34%),
        linear-gradient(180deg, #f9eee4 0%, #fffaf2 52%, #f9eee4 100%);
    color: #2b2118;
}

.dashboard-main {
    width: min(1180px, calc(100% - 28px));
    margin: 0 auto;
    padding: 28px 0 72px;
    container-name: dashboard;
    container-type: inline-size;
}

.gift-hero {
    min-height: calc(100vh - 170px);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    padding: 34px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(185, 127, 46, 0.22);
    border-radius: 30px;
    box-shadow: 0 24px 60px rgba(95, 58, 22, 0.11);
    overflow: hidden;
}

@media (min-width: 900px) {
    .gift-hero {
        grid-template-columns: minmax(0, 1fr) 410px;
        padding: 54px 58px;
    }
}

.gift-label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    padding: 15px 24px;
    color: #8a520c;
    background: #fff1bd;
    border: 1px solid rgba(217, 154, 33, 0.35);
    font-size: clamp(1.36rem, 2.8vw, 2rem);
    font-weight: 950;
    box-shadow: 0 10px 22px rgba(156, 93, 8, 0.12);
}

.typing-label {
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    animation: typeGiftLoop 5.6s steps(11, end) infinite, giftPulseLoop 5.6s ease infinite;
}

.typing-label::after {
    content: "";
    width: 3px;
    align-self: stretch;
    margin-left: 7px;
    border-radius: 999px;
    background: #d99a21;
    animation: caretBlink 0.72s steps(1, end) infinite;
}

.gift-copy h1 {
    max-width: 780px;
    margin-top: 20px;
    color: #2b2118;
    font-size: clamp(2.2rem, 5.6vw, 4.75rem);
    font-weight: 950;
    line-height: 1.03;
    letter-spacing: 0;
}

.gift-copy {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.gift-copy h1 span {
    position: relative;
    display: block;
    width: fit-content;
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
}

.gift-copy h1 span::after {
    content: "";
    position: absolute;
    top: 0.08em;
    right: 0;
    width: 4px;
    height: 0.9em;
    border-radius: 999px;
    background: #d99a21;
    opacity: 0;
}

.gift-copy h1 span:first-child {
    animation: typeTitleLineOne 6.4s steps(7, end) infinite;
}

.gift-copy h1 span:first-child::after {
    animation: titleCaretOne 6.4s steps(1, end) infinite;
}

.gift-copy h1 span:last-child {
    animation: typeTitleLineTwo 6.4s steps(4, end) infinite;
}

.gift-copy h1 span:last-child::after {
    animation: titleCaretTwo 6.4s steps(1, end) infinite;
}

.gift-copy p {
    max-width: 580px;
    margin-top: 20px;
    color: #654b34;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    line-height: 1.72;
    font-weight: 650;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.primary-action,
.secondary-action {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    padding: 0.85rem 1.15rem;
    font-weight: 950;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.primary-action {
    color: #2b2118;
    background: #d99a21;
    box-shadow: 0 12px 24px rgba(156, 93, 8, 0.22);
}

.secondary-action {
    color: #8a520c;
    background: #fff;
    border: 1px solid rgba(185, 127, 46, 0.28);
}

.primary-action:hover,
.secondary-action:hover {
    transform: translateY(-2px);
    opacity: 0.95;
}

.ip-hero-card {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    min-height: 300px;
    border-radius: 50%;
    background: transparent;
    border: 0;
    overflow: visible;
    min-width: 0;
}

.ip-hero-card img {
    width: min(86%, 330px);
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: cover;
    border-radius: 50%;
    filter: drop-shadow(0 22px 34px rgba(91, 54, 18, 0.18));
}

@container dashboard (max-width: 900px) {
    .gift-hero {
        grid-template-columns: minmax(0, 1fr) minmax(200px, 250px);
        gap: 18px;
        padding: 42px 38px;
    }

    .gift-copy h1 {
        font-size: clamp(2.2rem, 6.5cqi, 3.35rem);
    }

    .gift-copy p {
        max-width: 440px;
    }

    .ip-hero-card {
        min-height: 250px;
    }

    .ip-hero-card img {
        width: min(100%, 250px);
    }
}

@container dashboard (max-width: 680px) {
    .gift-hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .ip-hero-card {
        min-height: 220px;
    }

    .ip-hero-card img {
        width: min(72%, 250px);
    }
}

.template-picker {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

@media (min-width: 760px) {
    .template-picker {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1080px) {
    .template-picker {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

.pick-card {
    min-height: 138px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    padding: 17px;
    text-decoration: none;
    color: #2b2118;
    background: #fff;
    border: 1px solid rgba(185, 127, 46, 0.2);
    border-radius: 20px;
    box-shadow: 0 14px 28px rgba(95, 58, 22, 0.08);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.pick-card:hover {
    transform: translateY(-3px);
    border-color: rgba(217, 154, 33, 0.56);
    box-shadow: 0 18px 34px rgba(95, 58, 22, 0.13);
}

.pick-card span {
    color: #a7640b;
    font-size: 0.78rem;
    font-weight: 950;
}

.pick-card strong {
    color: #2b2118;
    font-size: 1.18rem;
    font-weight: 950;
    line-height: 1.22;
}

.pick-card small {
    width: fit-content;
    color: #9b4f00;
    font-size: clamp(1rem, 1.6vw, 1.18rem);
    font-weight: 950;
    line-height: 1.22;
    padding: 7px 10px;
    border-radius: 999px;
    background: #fff1bd;
    border: 1px solid rgba(217, 154, 33, 0.38);
}

.pick-card.featured {
    background: #fff7df;
    border-color: rgba(217, 154, 33, 0.45);
}

@keyframes caretBlink {
    0%,
    49% {
        opacity: 1;
    }

    50%,
    100% {
        opacity: 0;
    }
}

@keyframes typeGiftLoop {
    0% {
        max-width: 0;
    }

    23%,
    78% {
        max-width: 18em;
    }

    100% {
        max-width: 0;
    }
}

@keyframes giftPulseLoop {
    0%,
    20%,
    100% {
        transform: scale(1);
        box-shadow: 0 10px 22px rgba(156, 93, 8, 0.12);
    }

    28% {
        transform: scale(1.04);
        box-shadow: 0 16px 34px rgba(217, 154, 33, 0.2);
    }

    38%,
    76% {
        transform: scale(1.01);
        box-shadow: 0 14px 30px rgba(217, 154, 33, 0.18);
    }
}

@keyframes typeTitleLineOne {
    0% {
        max-width: 0;
    }

    24%,
    82% {
        max-width: 8em;
    }

    100% {
        max-width: 0;
    }
}

@keyframes typeTitleLineTwo {
    0%,
    24% {
        max-width: 0;
    }

    42%,
    82% {
        max-width: 6em;
    }

    100% {
        max-width: 0;
    }
}

@keyframes titleCaretOne {
    0%,
    23%,
    82%,
    100% {
        opacity: 1;
    }

    24%,
    81% {
        opacity: 0;
    }
}

@keyframes titleCaretTwo {
    0%,
    23%,
    83%,
    100% {
        opacity: 0;
    }

    24%,
    82% {
        opacity: 1;
    }
}

.simple-flow {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

@media (min-width: 760px) {
    .simple-flow {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.simple-flow div {
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(185, 127, 46, 0.18);
}

.simple-flow span {
    color: #a7640b;
    font-size: 0.75rem;
    font-weight: 950;
    text-transform: uppercase;
}

.simple-flow strong {
    display: block;
    margin-top: 6px;
    color: #2b2118;
    font-size: 1.08rem;
    font-weight: 950;
}

.simple-flow p {
    margin-top: 6px;
    color: #73573d;
    line-height: 1.55;
    font-size: 0.9rem;
}

@media (max-width: 640px) {
    .dashboard-main {
        width: min(100% - 20px, 1180px);
        padding-top: 14px;
    }

    .gift-hero {
        min-height: auto;
        padding: 24px;
        border-radius: 24px;
    }

    .ip-hero-card {
        min-height: 240px;
    }

    .hero-cta a {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .typing-label,
    .gift-copy h1 span {
        max-width: none;
        animation: none;
    }

    .typing-label::after,
    .gift-copy h1 span::after {
        display: none;
    }
}

@media print {
    body,
    .gift-hero,
    .pick-card,
    .simple-flow div,
    .ip-hero-card {
        background: #fff !important;
        color: #000 !important;
        box-shadow: none !important;
    }

    .gift-hero,
    .pick-card,
    .simple-flow div {
        border-color: #aaa !important;
    }

    .hero-cta,
    .ip-hero-card {
        display: none !important;
    }
}
