/*! global start */
:root {
    --tema-rengi: #8e44ad;
    --font-surpriz: "Segoe UI", Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-surpriz);
    -webkit-tap-highlight-color: transparent;
}
/*! global end */

/*! goster and preview shared start */
body.goster-body {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background: radial-gradient(circle at top left, var(--tema-rengi), transparent 75%),
                radial-gradient(circle at bottom right, var(--tema-rengi), transparent 75%),
                linear-gradient(135deg, #08080f, #151522, #08080f);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    color: #ffffff;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.error-404-box {
    text-align: center;
    padding: 40px 30px;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    backdrop-filter: blur(15px);
    max-width: 480px;
    width: 92%;
}

.error-404-title {
    color: #ff5f56;
    font-size: clamp(32px, 6vw, 46px);
    margin-bottom: 15px;
}

.error-404-desc {
    color: #94a3b8;
    font-size: 16px;
    line-height: 1.6;
}

.glow {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: var(--tema-rengi);
    opacity: 0.15;
    filter: blur(80px);
    animation: glowMove 8s infinite alternate ease-in-out;
    pointer-events: none;
}

.glow.one { top: -100px; left: -100px; }
.glow.two { bottom: -120px; right: -100px; animation-delay: 2s; }

@keyframes glowMove {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(100px, 50px) scale(1.3); }
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

@keyframes cardAppear {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.card,
.success-content {
    width: min(92%, 450px);
    max-height: 88dvh;
    overflow-y: auto;
    padding: 26px 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 28px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.65);
    position: relative;
    z-index: 10;
    animation: cardAppear 0.8s ease;
}

.card-photo-frame {
    width: 100%;
    height: 220px;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: #08080f;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
}

.editor-frame-hidden {
    display: none;
    cursor: pointer;
}

.card-photo-frame .frame-blur-bg {
    position: absolute;
    inset: -15px;
    background-size: cover;
    background-position: center;
    filter: blur(18px) brightness(0.55);
    transform: scale(1.1);
}

.card-photo-frame .frame-main-img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.25s ease;
}

.photo-counter-badge {
    position: absolute;
    bottom: 8px;
    right: 10px;
    z-index: 5;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(4px);
    pointer-events: none;
}

.card-body-wrap {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.big-heart,
.p-emoji {
    font-size: 52px;
    margin-bottom: 8px;
    filter: drop-shadow(0 8px 20px var(--tema-rengi));
    animation: heartBeat 1.4s infinite;
}

.goster-title,
.p-title {
    font-size: clamp(22px, 5vw, 32px);
    margin-bottom: 10px;
    color: #ffffff;
    font-weight: 800;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.subtitle,
.p-desc {
    font-size: 15px;
    line-height: 1.5;
    color: #ffffff;
    margin-bottom: 18px;
    max-width: 100%;
    max-height: 28dvh;
    overflow-y: auto;
    padding-right: 4px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.question,
.p-question {
    font-size: 14px;
    color: #ffffff;
    margin-bottom: 16px;
    font-weight: 600;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.buttons,
.p-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 48px;
    flex-wrap: wrap;
}

.buttons button,
.p-buttons button {
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    padding: 11px 24px;
    border-radius: 50px;
    color: #ffffff;
    transition: 0.25s;
    max-width: 100%;
    overflow-wrap: anywhere;
}

#yesBtn,
.p-btn-yes {
    background: var(--tema-rengi);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    z-index: 20;
}

#noBtn,
.p-btn-no {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.35);
    z-index: 30;
}

.tiny-text,
.p-tiny {
    margin-top: 15px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

.success {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 15px;
    text-align: center;
    background: radial-gradient(circle at top left, var(--tema-rengi), transparent 75%),
                radial-gradient(circle at bottom right, var(--tema-rengi), transparent 75%),
                linear-gradient(135deg, #08080f, #151522, #08080f);
}

.preview-success {
    position: absolute;
}

.success-emoji {
    font-size: 54px;
    filter: drop-shadow(0 0 35px var(--tema-rengi));
    animation: heartBeat 1.5s infinite;
    margin-bottom: 8px;
}

.success-title {
    font-size: clamp(24px, 6vw, 36px);
    color: #ffffff;
    margin-bottom: 10px;
    font-weight: 800;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.success-msg {
    font-size: 15px;
    color: #f8fafc;
    line-height: 1.55;
    margin-bottom: 15px;
    max-width: 100%;
    max-height: 28dvh;
    overflow-y: auto;
    padding-right: 4px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.success-footer {
    font-size: 14px;
    color: #cbd5e1;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.success-emojis {
    font-size: 24px;
    letter-spacing: 4px;
    margin-top: 10px;
}
/*! goster and preview shared end */

/*! olustur editor start */
body.olustur-body {
    display: flex;
    min-height: 100vh;
    min-height: 100dvh;
    background: #0f172a;
    color: #ffffff;
    overflow: hidden;
}

.editor-panel {
    width: 450px;
    background: #1e293b;
    padding: 30px;
    overflow-y: auto;
    height: 100vh;
    height: 100dvh;
    border-right: 1px solid #334155;
    z-index: 20;
}

.editor-panel h2 {
    margin-bottom: 20px;
    color: #00a3ff;
}

.editor-error-box {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid #ef4444;
    color: #fca5a5;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
}

.editor-row {
    display: flex;
    gap: 10px;
}

.flex-1 { flex: 1; }
.w-80 { width: 80px; }

.editor-divider {
    border: 1px solid #334155;
    margin: 20px 0;
}

.editor-panel .form-group {
    margin-bottom: 15px;
}

.editor-panel label {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    color: #cbd5e1;
    font-weight: bold;
}

.char-counter {
    float: right;
    font-size: 11px;
    font-weight: normal;
    color: #94a3b8;
}

.checkbox-label {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-weight: normal !important;
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.editor-panel input[type="text"],
.editor-panel select,
.editor-panel textarea,
.editor-panel input[type="file"] {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #334155;
    background: #0f172a;
    color: #ffffff;
}

.editor-panel input[type="color"] {
    width: 100%;
    height: 45px;
    border: none;
    background: transparent;
    cursor: pointer;
}

.editor-panel button[type="submit"] {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #00a3ff, #0056b3);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 18px;
    margin-top: 15px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 163, 255, 0.3);
}

.info-alert-box {
    background: rgba(0, 163, 255, 0.12);
    border: 1px solid rgba(0, 163, 255, 0.35);
    color: #bae6fd;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.45;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.image-preview-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.preview-item {
    position: relative;
    width: 68px;
    height: 68px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #334155;
    background: #0f172a;
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-remove-btn {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 22px;
    height: 22px;
    background: rgba(239, 68, 68, 0.95);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.limit-warning {
    color: #f87171;
    font-size: 12px;
    margin-top: 6px;
    display: none;
    font-weight: 600;
}

.preview-panel {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background: radial-gradient(circle at top left, var(--tema-rengi), transparent 75%),
                radial-gradient(circle at bottom right, var(--tema-rengi), transparent 75%),
                linear-gradient(135deg, #08080f, #151522, #08080f);
}

[contenteditable="true"] {
    outline: none;
    cursor: text;
    border-radius: 6px;
    padding: 2px 6px;
}

[contenteditable="true"]:focus {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.screen-toggle-top {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 120;
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.live-char-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 120;
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: bold;
    backdrop-filter: blur(10px);
    pointer-events: none;
}

.close-sheet-btn,
.mobile-fab-container,
.mobile-info-text {
    display: none;
}
/*! olustur editor end */

/*! vitrin and shopier start */
body.vitrin-body {
    background: radial-gradient(circle at top right, #16001f, transparent 40%), linear-gradient(135deg, #0f172a, #050508);
    color: #ffffff;
    min-height: 100vh;
    padding: 50px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.vitrin-container {
    width: 100%;
    max-width: 900px;
}

.vitrin-header {
    text-align: center;
    margin-bottom: 40px;
}

.vitrin-header h1 {
    color: #eabfff;
    font-size: 36px;
    margin-bottom: 15px;
}

.vitrin-header p {
    color: #94a3b8;
    font-size: 16px;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.vitrin-warning {
    color: #e84393;
    font-size: 13px;
}

.search-box {
    background: rgba(30, 41, 59, 0.6);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 40px;
    display: flex;
    gap: 15px;
    backdrop-filter: blur(10px);
}

.search-box input {
    flex: 1;
    padding: 15px 20px;
    border-radius: 10px;
    border: 1px solid #334155;
    background: #0f172a;
    color: #ffffff;
    font-size: 16px;
    outline: none;
}

.search-box button {
    padding: 15px 30px;
    background: linear-gradient(135deg, #00a3ff, #0056b3);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
}

.vitrin-error {
    background: rgba(255, 95, 86, 0.1);
    color: #ff5f56;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 95, 86, 0.2);
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.link-card {
    background: rgba(30, 41, 59, 0.4);
    padding: 25px 20px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    position: relative;
}

.link-card:hover {
    transform: translateY(-5px);
    border-color: #00a3ff;
    background: rgba(30, 41, 59, 0.8);
}

.link-id {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: bold;
    color: #cbd5e1;
}

.link-card h3 {
    font-size: 20px;
    margin-top: 15px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #f8fafc;
}

.link-card .date {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 25px;
}

.button-group {
    display: flex;
    gap: 10px;
    width: 100%;
}

.btn-action {
    flex: 1;
    padding: 12px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: 0.3s;
    border: none;
    cursor: pointer;
    font-size: 14px;
    text-align: center;
}

.btn-copy {
    background: rgba(0, 163, 255, 0.1);
    color: #00a3ff;
    border: 1px solid rgba(0, 163, 255, 0.2);
}

.btn-copy:hover { background: #00a3ff; color: #ffffff; }

.btn-open {
    background: rgba(232, 67, 147, 0.1);
    color: #ffb3e6;
    border: 1px solid rgba(232, 67, 147, 0.2);
}

.btn-open:hover { background: #e84393; color: #ffffff; }

.vitrin-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #94a3b8;
    padding: 40px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 15px;
}

.vitrin-back-wrap {
    text-align: center;
    margin-top: 40px;
}

.vitrin-back-link {
    color: #94a3b8;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 1px dashed #94a3b8;
    padding-bottom: 2px;
}

.vitrin-toast {
    visibility: hidden;
    min-width: 250px;
    background-color: #27c93f;
    color: #ffffff;
    text-align: center;
    border-radius: 8px;
    padding: 16px;
    position: fixed;
    z-index: 100;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    font-weight: bold;
}

.vitrin-toast.show {
    visibility: visible;
}

body.shopier-body {
    background-color: #f1f5f9;
    color: #334155;
    text-align: center;
    padding-top: 100px;
}

.shopier-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 10px;
    max-width: 420px;
    margin: auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.shopier-card p { margin-top: 12px; }

.shopier-btn {
    display: inline-block;
    padding: 15px 30px;
    background-color: #10b981;
    color: #ffffff;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    border-radius: 6px;
    font-weight: bold;
    margin-top: 20px;
}

body.bildirim-body {
    background: #0f172a;
    color: #ffffff;
    text-align: center;
    padding-top: 100px;
}

.bildirim-title { color: #10b981; font-size: 40px; margin-bottom: 10px; }
.bildirim-sub { font-size: 18px; color: #94a3b8; margin-bottom: 30px; }

.bildirim-code-box {
    display: inline-block;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 50px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.bildirim-code-label { font-size: 16px; margin-bottom: 10px; color: #cbd5e1; }
.bildirim-code-num { font-size: 60px; font-weight: bold; color: #00a3ff; letter-spacing: 2px; }

.bildirim-btn {
    display: inline-block;
    padding: 15px 35px;
    background: linear-gradient(135deg, #00a3ff, #0056b3);
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 18px;
}

.bildirim-wait { margin-top: 25px; color: #64748b; font-size: 14px; }
/*! vitrin and shopier end */

/*! responsive start */
@media (max-width: 900px) {
    body.olustur-body { display: block; }
    .mobile-hide, .screen-toggle-top { display: none !important; }
    .editor-panel {
        position: fixed;
        bottom: -100%;
        left: 0;
        width: 100%;
        height: auto;
        max-height: 82dvh;
        border-right: none;
        border-radius: 30px 30px 0 0;
        z-index: 3000;
        transition: bottom 0.4s;
        padding-bottom: 30px;
    }
    .editor-panel.open { bottom: 0; }
    .preview-panel {
        padding: 55px 15px 80px 15px;
        width: 100%;
        height: 100dvh;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 10;
        padding-top: 100px;
    }
    .close-sheet-btn {
        display: block;
        width: 100%;
        background: #334155;
        color: #ffffff;
        border: none;
        padding: 15px;
        border-radius: 15px;
        font-weight: bold;
        margin-bottom: 20px;
    }
    .mobile-fab-container {
        position: fixed;
        bottom: 18px;
        left: 0;
        width: 100%;
        display: flex;
        justify-content: center;
        gap: 10px;
        z-index: 150;
        padding: 0 15px;
    }
    .mobile-fab {
        background: linear-gradient(135deg, #00a3ff, #0056b3);
        color: #ffffff;
        border: none;
        padding: 13px 20px;
        border-radius: 50px;
        font-weight: bold;
        font-size: 14px;
    }
    .mobile-fab.alt {
        background: rgba(0, 0, 0, 0.65);
        border: 1px solid rgba(255, 255, 255, 0.25);
        backdrop-filter: blur(10px);
    }
    .mobile-info-text {
        display: block;
        position: fixed;
        top: 15px;
        left: 50%;
        transform: translateX(-50%);
        white-space: nowrap;
        background: rgba(0, 0, 0, 0.65);
        color: #cbd5e1;
        padding: 7px 14px;
        border-radius: 20px;
        font-size: 12px;
        backdrop-filter: blur(10px);
        z-index: 120;
    }
    .live-char-badge {
        position: fixed;
        top: 55px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        max-width: calc(100% - 30px);
        box-sizing: border-box;
        text-align: center;
        white-space: normal;
    }
}

@media (max-width: 600px) {
    .search-box { flex-direction: column; }
    .search-box button { width: 100%; }
    .card, .success-content { padding: 22px 18px; }
    .card-photo-frame { height: 195px; }
}

@media (max-height: 560px) and (orientation: landscape) {
    .card,
    .success-content {
        width: min(94%, 640px);
        max-height: 85dvh;
        padding: 14px 20px;
        display: grid;
        grid-template-columns: 200px 1fr;
        gap: 16px;
        align-items: center;
    }
    .card.no-photos,
    .success-content.no-photos {
        display: flex;
        width: min(90%, 460px);
    }
    .card-photo-frame {
        height: 165px;
        margin-bottom: 0;
    }
}
/*! responsive end */