:root {
    --bg-top: #f4f8f5;
    --bg-bottom: #e6eef6;
    --ink: #122230;
    --muted: #4b5c6f;
    --line: #d7e2ed;
    --card: rgba(255, 255, 255, 0.9);
    --brand: #0f9d85;
    --brand-strong: #087a66;
    --danger: #d53a45;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Pretendard', 'Apple SD Gothic Neo', 'Noto Sans KR', -apple-system, sans-serif;
    color: var(--ink);
    min-height: 100vh;
    background: radial-gradient(1200px 520px at 10% -10%, #d2f0ea 0%, transparent 55%),
        radial-gradient(1000px 450px at 100% 0%, #ffe3cc 0%, transparent 50%),
        linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
    display: flex;
    justify-content: center;
    padding: 34px 18px;
}

.ambient {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(18, 34, 48, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(18, 34, 48, 0.03) 1px, transparent 1px);
    background-size: 24px 24px;
}

.container {
    width: 100%;
    max-width: 760px;
    position: relative;
    z-index: 1;
}

.hero {
    margin-bottom: 14px;
    padding: 10px 2px;
}

.badge {
    display: inline-block;
    border: 1px solid #b8d8d1;
    background: #effaf8;
    color: #0a7664;
    border-radius: 999px;
    font-size: 12px;
    padding: 5px 10px;
    font-weight: 700;
}

h1 {
    font-size: clamp(25px, 3vw, 33px);
    line-height: 1.2;
    margin-top: 10px;
}

.hero p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 15px;
}

.panel {
    background: var(--card);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: 0 16px 50px rgba(12, 26, 38, 0.12);
    border-radius: 22px;
    padding: 24px;
}

.title-box {
    margin-bottom: 12px;
}

.title-label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 14px;
}

.title-input {
    width: 100%;
    height: 44px;
    padding: 10px 12px;
    border: 1px solid #d7e3ee;
    border-radius: 10px;
    font-size: 13px;
    background: #fff;
}

.list-title {
    font-weight: 700;
    color: #264055;
}

.toggle-grid,
.link-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.toggle-btn,
.open-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 11px;
    border: 1px solid #cfe0ef;
    background: #eef5fb;
    color: #264055;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
}

.toggle-btn.active {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(15, 157, 133, 0.15);
    background: #ecfcf8;
    color: var(--brand-strong);
}

.input-area {
    margin-top: 16px;
}

.input-block {
    margin-bottom: 12px;
    padding: 14px;
    background-color: #f8fbfd;
    border: 1px solid #e2ebf2;
    border-radius: 12px;
}

.input-block label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 14px;
}

.url-input {
    width: 100%;
    height: 44px;
    padding: 10px 12px;
    border: 1px solid #d7e3ee;
    border-radius: 10px;
    font-size: 13px;
}

.btn-primary,
.btn-secondary {
    border: none;
    cursor: pointer;
    border-radius: 11px;
    width: 100%;
    font-weight: 700;
}

.btn-primary {
    margin-top: 6px;
    background: linear-gradient(120deg, var(--brand) 0%, #16b192 100%);
    color: #fff;
    padding: 13px 20px;
    font-size: 16px;
}

.btn-secondary {
    margin-top: 8px;
    background: linear-gradient(120deg, #51667d 0%, #405062 100%);
    color: #fff;
    padding: 11px 20px;
    font-size: 14px;
}

.result-area {
    margin-top: 16px;
}

.result-success {
    color: #1d8c46;
    font-weight: 700;
}

.result-url {
    margin-top: 6px;
    word-break: break-all;
    font-size: 14px;
}

.result-title {
    margin-top: 6px;
    color: #35556f;
    font-size: 14px;
    font-weight: 700;
}

.result-error {
    margin-top: 8px;
    color: var(--danger);
    font-weight: 700;
}

.app-icon {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}

.platform-samples {
    border: 1px solid rgba(12, 26, 38, 0.05);
    border-radius: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.28);
    margin-bottom: 18px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 8px 24px rgba(12, 26, 38, 0.02);
}

.platform-samples h2 {
    font-size: 13.5px;
    font-weight: 800;
    color: rgba(18, 34, 48, 0.4);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

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

.open-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 16px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 13.5px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    width: 100%;
}

.open-btn.btn-platform-melon {
    background: rgba(2, 199, 60, 0.05);
    color: #04a532 !important;
    border: 1px solid rgba(2, 199, 60, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 4px 10px rgba(2, 199, 60, 0.04);
}

.open-btn.btn-platform-melon:hover {
    background: rgba(2, 199, 60, 0.1);
    border-color: rgba(2, 199, 60, 0.26);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 6px 14px rgba(2, 199, 60, 0.08);
}

.open-btn.btn-platform-genie {
    background: rgba(18, 115, 227, 0.05);
    color: #0c5bb6 !important;
    border: 1px solid rgba(18, 115, 227, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 4px 10px rgba(18, 115, 227, 0.04);
}

.open-btn.btn-platform-genie:hover {
    background: rgba(18, 115, 227, 0.1);
    border-color: rgba(18, 115, 227, 0.26);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 6px 14px rgba(18, 115, 227, 0.08);
}

.open-btn.btn-platform-flo {
    background: rgba(63, 63, 255, 0.05);
    color: rgb(45, 45, 230) !important;
    border: 1px solid rgba(63, 63, 255, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 4px 10px rgba(63, 63, 255, 0.04);
}

.open-btn.btn-platform-flo:hover {
    background: rgba(63, 63, 255, 0.1);
    border-color: rgba(63, 63, 255, 0.26);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 6px 14px rgba(63, 63, 255, 0.08);
}

@media (max-width: 640px) {
    .sample-grid {
        grid-template-columns: 1fr;
    }
}

/* Bridge-like soft pastel card styling for the share page */
.platform-samples {
    border: 1px solid rgba(12, 26, 38, 0.05);
    border-radius: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.28);
    margin-bottom: 18px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 8px 24px rgba(12, 26, 38, 0.02);
}

.platform-samples h2 {
    font-size: 13.5px;
    font-weight: 800;
    color: rgba(18, 34, 48, 0.4);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

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

.open-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 16px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 13.5px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    width: 100%;
}

.open-btn.btn-platform-melon {
    background: rgba(2, 199, 60, 0.05);
    color: #04a532 !important;
    border: 1px solid rgba(2, 199, 60, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 4px 10px rgba(2, 199, 60, 0.04);
}

.open-btn.btn-platform-melon:hover {
    background: rgba(2, 199, 60, 0.1);
    border-color: rgba(2, 199, 60, 0.26);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 6px 14px rgba(2, 199, 60, 0.08);
}

.open-btn.btn-platform-genie {
    background: rgba(18, 115, 227, 0.05);
    color: #0c5bb6 !important;
    border: 1px solid rgba(18, 115, 227, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 4px 10px rgba(18, 115, 227, 0.04);
}

.open-btn.btn-platform-genie:hover {
    background: rgba(18, 115, 227, 0.1);
    border-color: rgba(18, 115, 227, 0.26);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 6px 14px rgba(18, 115, 227, 0.08);
}

.open-btn.btn-platform-flo {
    background: rgba(63, 63, 255, 0.05);
    color: rgb(45, 45, 230) !important;
    border: 1px solid rgba(63, 63, 255, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 4px 10px rgba(63, 63, 255, 0.04);
}

.open-btn.btn-platform-flo:hover {
    background: rgba(63, 63, 255, 0.1);
    border-color: rgba(63, 63, 255, 0.26);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 6px 14px rgba(63, 63, 255, 0.08);
}

@media (max-width: 640px) {
    .sample-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .panel {
        padding: 18px;
        border-radius: 18px;
    }

    .toggle-grid,
    .link-grid {
        grid-template-columns: 1fr;
    }
}
