@import url('https://fonts.cdnfonts.com/css/neue-haas-grotesk-display-pro');

:root {
    --purple: #6a3bcb;
    --purple-dark: #4c2a9b;
    --purple-soft: #e9ddff;
    --pink: #f84c93;
    --pink-2: #f6627f;
    --yellow: #f6c445;
    --orange: #ff7f4d;
    --bg: #fdfbff;
    --card: #ffffff;
    --border: #e6dff7;
    --text: #2f2f3a;
    --muted: #6a6a75;
    --shadow: 0 20px 45px rgba(66, 33, 140, 0.18);
    --radius: 16px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Neue Haas Grotesk Display Pro', sans-serif;
}

body {
    font-family: 'Neue Haas Grotesk Display Pro' sans-serif;
    background: radial-gradient(circle at 18% 18%, rgba(255, 204, 247, 0.55), transparent 35%),
        radial-gradient(circle at 80% 24%, rgba(182, 222, 255, 0.6), transparent 34%),
        radial-gradient(circle at 50% 75%, rgba(216, 196, 255, 0.45), transparent 42%),
        linear-gradient(180deg, #ffffff 0%, #f4f2ff 60%, #efe8ff 100%);
    color: var(--text);
    line-height: 1.4;
    min-height: 100vh;
    padding: 28px;
}

html,
body {
    overflow-x: hidden;
}

.page {
    max-width: 1100px;
    margin: 0 auto 60px;
}

.hero {
    background: url("https://cizgilidefter.com/ek-uygulamalar/ogk/assets/img/bg.png");
    background-size: cover;
    background-position: center;
    border-radius: 22px;
    padding: 18px 26px;
    position: relative;
    overflow: hidden;
    color: #fff;
    box-shadow: var(--shadow);
    max-width: 880px;
    position: absolute;
    width: 100%;
    left: 50%;
    transform: translate(-50%);
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.35), transparent 30%),
        radial-gradient(circle at 20% 0%, rgba(255, 223, 122, 0.25), transparent 25%),
        linear-gradient(120deg, rgba(255, 255, 255, 0.08), transparent 40%);
    pointer-events: none;
}

.hero__brand {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 700;
    font-size: 26px;
    letter-spacing: 0.3px;
}

.hero__title {
    color: #ffffff;
    text-shadow: 5px 5px 30px #000;
}

.hero__nav {
    position: relative;
    z-index: 1;
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pill {
    border: none;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.2px;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.pill.active {
    background: #fff;
    color: var(--purple);
}

.pill:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.26);
}

.wizard {
    margin: 0;
    background: var(--card);
    border-radius: 26px 26px 0px 0px;
    padding: 26px 26px 18px;
    box-shadow: 0 24px 56px rgba(70, 36, 150, 0.18);
    border: 1px solid #ebe3ff;
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    min-height: 600px;
    max-width: 880px;
    width: min(92vw, 880px);
    max-height: 420px;
    transition: max-height 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: max-height;
    z-index: 999;
}

.mobile {
    overflow-y: auto;
    max-height: 550px;
    transition: max-height 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    border-radius: 26px 26px 0px 0px;
}

.notch {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 6px;
    cursor: pointer;
}

.notch::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -6px;
    transform: translateX(-50%);
    width: 58px;
    height: 5px;
    background: #6b6b75;
    border-radius: 999rem;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.wizard::before {
    content: "";
    position: absolute;
    inset: -10px;
    border-radius: 30px 30px 0px 0px;
    background: linear-gradient(135deg, rgba(168, 134, 255, 0.25), rgba(255, 255, 255, 0));
    z-index: -1;
}

.wizard::after {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 20px 20px 0px 0px;
    border: 1px solid rgba(160, 120, 255, 0.18);
    pointer-events: none;
}

.wizard.is-expanded {
    max-height: 100vh !important;
    box-shadow: 0 30px 70px rgba(70, 36, 150, 0.22);
}

.wizard.is-expanded .mobile {
    max-height: 62vh;
}

.wizard__title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--purple-dark);
}

.wizard__title h1 {
    font-size: 28px;
    font-weight: 800;
}

.title-dot {
    width: 10px;
    height: 10px;
    background: var(--pink);
    border-radius: 50%;
    box-shadow: 12px 0 0 var(--purple), -12px 0 0 var(--yellow);
}

.panel {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(245, 237, 255, 0.95) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 14px;
    position: relative;
}

.panel::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(138, 90, 234, 0.23), rgba(255, 255, 255, 0));
    z-index: 0;
    pointer-events: none;
}

.panel.active {
    border-color: rgba(106, 59, 203, 0.35);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

.panel__header {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--purple-dark);
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}

.panel__note {
    color: var(--muted);
    font-weight: 500;
    font-size: 14px;
}

.step-badge {
    width: 32px;
    height: 32px;
    border-radius: 12px;
    background: linear-gradient(135deg, #7c52f3, #a16cf9);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(124, 82, 243, 0.35);
}

.templates {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 6px;
    position: relative;
    z-index: 1;
    padding: 6px 2px 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.templates::-webkit-scrollbar {
    display: none;
}

.templates-wrap {
    position: relative;
    padding: 0 22px;
}

.templates-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #ffffff;
    color: var(--purple);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 5;
}

.templates-nav.prev {
    left: 0;
}

.templates-nav.next {
    right: 0;
}

.card {
    border: 2px solid transparent;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    flex: 0 0 220px;
    scroll-snap-align: start;
}

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

.card span {
    padding: 10px 12px;
    text-align: center;
    font-weight: 700;
    color: var(--purple-dark);
    background: #f5f0ff;
    border-radius: 16px;
    position: absolute;
    bottom: 1px;
    left: 50%;
    transform: translateX(-50%);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
}

.card.selected {
    border-color: var(--purple);
    box-shadow: 0 18px 36px rgba(106, 59, 203, 0.25);
}

.form-grid {
    display: grid;
    gap: 10px;
}

.field {
    display: grid;
    grid-template-columns: 44px 160px 1fr;
    align-items: center;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px 10px;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.field__icon {
    font-size: 20px;
    display: grid;
    place-items: center;
}

.field__label {
    font-weight: 700;
    color: var(--purple-dark);
}

.field input {
    width: 100%;
    border: 1px dashed #d4c8f3;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 15px;
    color: var(--text);
    background: #faf7ff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
    width: 100%;
    min-height: 110px;
    resize: vertical;
    border: 1px dashed #d4c8f3;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 15px;
    color: var(--text);
    background: #faf7ff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea:focus {
    border-color: var(--purple);
    box-shadow: 0 0 0 4px rgba(106, 59, 203, 0.12);
    background: #fff;
}

.field input:focus {
    border-color: var(--purple);
    box-shadow: 0 0 0 4px rgba(106, 59, 203, 0.12);
    background: #fff;
}

.customize {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.customize__row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.customize__label {
    min-width: 120px;
    font-weight: 700;
    color: var(--purple-dark);
}

.swatches {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.color-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--dot);
    border: 3px solid #fff;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.color-dot:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.swatches--type .type-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--purple);
    background: #fff;
    position: relative;
    cursor: pointer;
}

.swatches--type .type-dot.filled {
    background: linear-gradient(135deg, #7f4df2, #f84c93);
    border-color: transparent;
}

.swatches--type .type-dot.outlined::after,
.swatches--type .type-dot.lined::after {
    content: "";
    position: absolute;
    inset: 9px 6px;
    border-radius: 6px;
    background: #7f4df2;
}

.swatches--type .type-dot.lined::after {
    inset: 12px 6px auto 6px;
    height: 4px;
}

.swatches--icons span {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    font-size: 18px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid var(--border);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.07);
}

.actions {
    margin-top: 8px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.actions.actions--inline {
    justify-content: flex-start;
}

.btn {
    min-width: 180px;
    padding: 14px 18px;
    border-radius: 14px;
    border: none;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    letter-spacing: 0.2px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.14);
    transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn.primary {
    background: linear-gradient(135deg, #ff6f9f, #ff4f71);
    color: #fff;
}

.btn.ghost {
    background: linear-gradient(135deg, #7b52f6, #a069ff);
    color: #fff;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.18);
    filter: brightness(1.03);
}

.hidden {
    display: none !important;
}

@media (max-width: 900px) {
    body {
        padding: 0px;
        overflow: hidden !important;
    }

    .hero {
        top: 16px;
    }

    .wizard {
        position: fixed;
        margin: 0 auto;
        bottom: 0;
        left: 0;
        right: 0;
        transform: none;
        padding: 18px 18px calc(16px + env(safe-area-inset-bottom));
        overflow-y: hidden;
        border-radius: 26px 26px 0 0;
        width: 100%;
        max-width: none;
        height: 58vh;
        min-height: 320px;
        max-height: none;


    }

    .wizard.is-expanded {
        height: 100vh;
    }

    .wizard::before,
    .wizard::after {
        display: none;
    }

    .mobile {
        height: 100%;
        overflow-y: auto;
        max-height: none !important;
    }

    .field {
        display: flex;
        flex-direction: column;
    }

    .field__label {
        grid-column: 2 / -1;
        font-size: 14px;
    }

    .field input,
    .field textarea {
        width: 100%;
    }

    .actions {
        margin-top: 8px;
        display: flex !important;
        justify-content: center !important;
        gap: 12px;
        flex-direction: column !important;
    }

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

    .panel {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
    }

    .templates-nav {
        display: none;
    }
    .card span{
        top: 5px;
    }

}

.templates {
    padding: 6px 10px 12px;
}

.card {
    flex: 0 0 calc((100% - 14px) / 2);
}