/*
 * Group Create UI (dynamic-step skin)
 * UTF-8 (no BOM)
 */

#buddypress.oe-group-create-page {
    --oe-group-create-css-loaded: 1;
}

#buddypress #create-group-form {
    max-width: 980px;
    margin: 0 auto 24px;
}


#buddypress #create-group-form.is-ajax-loading {
    position: relative;
    opacity: 0.65;
    pointer-events: none;
}

#buddypress #create-group-form.is-ajax-loading::after {
    content: "";
    position: absolute;
    top: 12px;
    right: 14px;
    width: 18px;
    height: 18px;
    border: 2px solid #bfdbfe;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: oeGroupCreateSpin 0.65s linear infinite;
}

@keyframes oeGroupCreateSpin {
    to {
        transform: rotate(360deg);
    }
}

#buddypress .oe-group-create-intro {
    margin: 0 0 14px;
    padding: 16px 18px;
    border: 1px solid #dbe2f5;
    border-radius: 14px;
    background:
        radial-gradient(circle at 10% 20%, rgba(93, 147, 255, 0.16), transparent 45%),
        radial-gradient(circle at 90% 80%, rgba(72, 212, 140, 0.16), transparent 40%),
        #ffffff;
}

#buddypress .oe-group-create-title {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
    color: #0f172a;
}

#buddypress .oe-group-create-subtitle {
    margin: 0;
    font-size: 13px;
    color: #475569;
}

#buddypress #group-create-tabs {
    margin: 0 0 16px;
}

#buddypress #group-create-tabs .group-create-buttons {
    --oe-progress: 20%;
    --oe-step-count: 5;
    position: relative;
    display: grid;
    grid-template-columns: repeat(var(--oe-step-count), minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 12px;
    border: 1px solid #dbe2f5;
    border-radius: 16px;
    background: #f8fbff;
    list-style: none;
}

#buddypress #group-create-tabs .group-create-buttons::before,
#buddypress #group-create-tabs .group-create-buttons::after {
    content: "";
    position: absolute;
    left: 26px;
    right: 26px;
    top: 50%;
    transform: translateY(-50%);
    height: 2px;
    border-radius: 999px;
    pointer-events: none;
}

#buddypress #group-create-tabs .group-create-buttons::before {
    background: #d7e1f2;
}

#buddypress #group-create-tabs .group-create-buttons::after {
    right: auto;
    width: var(--oe-progress);
    max-width: calc(100% - 52px);
    background: linear-gradient(90deg, #5d93ff 0%, #48d48c 100%);
    transition: width 0.25s ease;
}

#buddypress #group-create-tabs .group-create-buttons .oe-create-step {
    position: relative;
    z-index: 1;
    margin: 0;
    list-style: none;
}

#buddypress #group-create-tabs .group-create-buttons .oe-create-step > a,
#buddypress #group-create-tabs .group-create-buttons .oe-create-step > span {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 82px;
    padding: 10px 8px;
    border-radius: 12px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.75);
    color: #334155;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

#buddypress #group-create-tabs .group-create-buttons .oe-create-step > a::before,
#buddypress #group-create-tabs .group-create-buttons .oe-create-step > span::before {
    content: attr(data-oe-step-number);
    display: inline-flex;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid #94a3b8;
    background: #ffffff;
    color: #334155;
    font-size: 11px;
    font-weight: 700;
}

#buddypress #group-create-tabs .group-create-buttons .oe-create-step.is-complete > a,
#buddypress #group-create-tabs .group-create-buttons .oe-create-step.is-complete > span {
    border-color: #86efac;
    background: #f0fdf4;
    color: #166534;
}

#buddypress #group-create-tabs .group-create-buttons .oe-create-step.is-complete > a::before,
#buddypress #group-create-tabs .group-create-buttons .oe-create-step.is-complete > span::before {
    border-color: #22c55e;
    background: #22c55e;
    color: #ffffff;
    content: "✓";
}

#buddypress #group-create-tabs .group-create-buttons .oe-create-step.is-current > a,
#buddypress #group-create-tabs .group-create-buttons .oe-create-step.is-current > span {
    border-color: #93c5fd;
    background: #eff6ff;
    color: #1d4ed8;
    box-shadow: 0 8px 18px rgba(29, 78, 216, 0.13);
}

#buddypress #group-create-tabs .group-create-buttons .oe-create-step.is-current > a::before,
#buddypress #group-create-tabs .group-create-buttons .oe-create-step.is-current > span::before {
    border-color: #3b82f6;
    background: #3b82f6;
    color: #ffffff;
}

#buddypress #group-create-body,
#buddypress #create-group-form .item-body {
    border: 1px solid #dbe2f5;
    border-radius: 16px;
    background: #ffffff;
    padding: 22px;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06);
    /* ステップ内容が少ない画面でもフッターが上がらないよう高さを確保 */
    display: flow-root;
    min-height: clamp(300px, 44vh, 520px);
}

#buddypress #create-group-form .creation-step-name {
    margin: 0 0 16px;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.25;
    color: #0f172a;
}

#buddypress #create-group-form label {
    font-weight: 700;
    color: #0f172a;
}

#buddypress #create-group-form input[type="text"],
#buddypress #create-group-form input[type="email"],
#buddypress #create-group-form input[type="url"],
#buddypress #create-group-form input[type="number"],
#buddypress #create-group-form input[type="search"],
#buddypress #create-group-form input[type="password"],
#buddypress #create-group-form textarea,
#buddypress #create-group-form select {
    width: 100%;
    max-width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #ffffff;
    color: #0f172a;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#buddypress #create-group-form textarea {
    min-height: 140px;
}

#buddypress #create-group-form input:focus,
#buddypress #create-group-form textarea:focus,
#buddypress #create-group-form select:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
    outline: none;
}

#buddypress #create-group-form .submit,
#buddypress #create-group-form #previous-next {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #e2e8f0;
}

#buddypress #create-group-form .submit input[type="submit"],
#buddypress #create-group-form .submit button,
#buddypress #create-group-form #previous-next input[type="submit"],
#buddypress #create-group-form #previous-next a,
#buddypress #create-group-form #previous-next button,
#buddypress #create-group-form .button,
#buddypress #create-group-form .generic-button a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid #3b82f6;
    background: #3b82f6;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

#buddypress #create-group-form #previous-next .button-prev,
#buddypress #create-group-form #previous-next .group-create-previous,
#buddypress #create-group-form #previous-next a.button-prev,
#buddypress #create-group-form #previous-next [name="previous"],
#buddypress #create-group-form #previous-next input[value*="前"] {
    border-color: #94a3b8;
    background: #ffffff;
    color: #334155;
    box-shadow: none;
}

#buddypress #create-group-form #previous-next input[type="submit"]:not([name="previous"]),
#buddypress #create-group-form #previous-next a:not(.button-prev),
#buddypress #create-group-form #previous-next button:not(.button-prev) {
    border-color: #2563eb;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
}

#buddypress #create-group-form .submit input[type="submit"]:hover,
#buddypress #create-group-form .submit button:hover,
#buddypress #create-group-form #previous-next input[type="submit"]:hover,
#buddypress #create-group-form #previous-next a:hover,
#buddypress #create-group-form #previous-next button:hover,
#buddypress #create-group-form .button:hover,
#buddypress #create-group-form .generic-button a:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.24);
}

#buddypress #create-group-form .bp-feedback,
#buddypress #create-group-form .message,
#buddypress #create-group-form .error {
    border-radius: 10px;
}

/* 必須マーク */
#buddypress #create-group-form abbr.oe-required {
    color: #ef4444;
    font-style: normal;
    font-weight: 700;
    margin-left: 2px;
    text-decoration: none;
    border-bottom: none;
    cursor: default;
}

/* 文字数カウンター */
#buddypress #create-group-form .oe-char-counter {
    margin: 5px 0 0;
    font-size: 11.5px;
    color: #94a3b8;
    text-align: right;
    line-height: 1.4;
}

#buddypress #create-group-form .oe-char-counter.is-near-limit {
    color: #f59e0b;
}

#buddypress #create-group-form .oe-char-counter.is-at-limit {
    color: #ef4444;
    font-weight: 700;
}

@media (max-width: 900px) {
    #buddypress #group-create-tabs .group-create-buttons {
        display: flex;
        overflow-x: auto;
        gap: 8px;
        padding: 10px;
        scroll-snap-type: x proximity;
    }

    #buddypress #group-create-tabs .group-create-buttons::before,
    #buddypress #group-create-tabs .group-create-buttons::after {
        display: none;
    }

    #buddypress #group-create-tabs .group-create-buttons .oe-create-step {
        min-width: 132px;
        scroll-snap-align: start;
    }
}

@media (max-width: 640px) {
    #buddypress #group-create-body,
    #buddypress #create-group-form .item-body {
        padding: 16px;
        border-radius: 12px;
        min-height: 42vh;
    }

    #buddypress .oe-group-create-intro {
        padding: 14px 14px;
    }

    #buddypress .oe-group-create-title {
        font-size: 17px;
    }

    #buddypress #create-group-form .creation-step-name {
        margin-bottom: 12px;
        font-size: 20px;
    }
}

/* ============================================================
   公開設定カード（group-settings ステップ）
   ============================================================ */

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

.oe-privacy-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.oe-privacy-card.is-selected {
    border-color: #3b82f6;
    background: #eff6ff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.oe-privacy-card:hover {
    border-color: #93c5fd;
}

.oe-privacy-card:focus-visible {
    outline: 3px solid rgba(59, 130, 246, 0.35);
    outline-offset: 2px;
}

/* 準備中カード */
.oe-privacy-card.is-disabled {
    position: relative;
    pointer-events: none;
    cursor: default;
    opacity: 0.55;
    border-color: #e2e8f0;
    background: #f8fafc;
}

.oe-privacy-card.is-disabled:hover {
    border-color: #e2e8f0;
    box-shadow: none;
}

.oe-privacy-card__coming-soon {
    display: inline-block;
    align-self: flex-start;
    margin-top: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #64748b;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

#buddypress #create-group-form label.oe-privacy-legacy-label,
#buddypress #create-group-form ul.oe-privacy-legacy-desc {
    display: none !important;
}

#buddypress #create-group-form .group-settings-selections .group-invitations {
    display: none !important;
}

#buddypress #create-group-form .group-settings-selections .group-status-type {
    display: none !important;
}

.oe-privacy-card__icon {
    font-size: 22px;
    line-height: 1;
}

.oe-privacy-card__title {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
}

.oe-privacy-card.is-selected .oe-privacy-card__title {
    color: #1d4ed8;
}

.oe-privacy-card__desc {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 11.5px;
    color: #64748b;
    line-height: 1.5;
}

.oe-privacy-card__desc li + li {
    margin-top: 4px;
}

.oe-privacy-card__desc li::before {
    content: "・";
}

@media (max-width: 640px) {
    .oe-privacy-cards {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

/* ============================================================
   詳細設定ステップ（group-extra）
   ============================================================ */

.oe-extra-step .oe-field-section {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.oe-extra-step {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.oe-extra-step .oe-field-label {
    display: block;
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
}

.oe-extra-step .oe-field-hint {
    display: block;
    margin: 0;
    font-size: 11.5px;
    color: #64748b;
}

.oe-extra-step .oe-field-note {
    margin-left: 6px;
    font-size: 11px;
    font-weight: 500;
    color: #64748b;
}

.oe-extra-step .oe-field-desc {
    margin: 2px 0 0;
    font-size: 12px;
    line-height: 1.5;
    color: #475569;
}

/* カテゴリーチェックボックスグリッド */
#buddypress #create-group-form .oe-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

#buddypress #create-group-form label.oe-category-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    min-height: 42px;
    padding: 0 12px 0 34px;
    border: 1.5px solid #cbd5e1;
    border-radius: 999px;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease;
    font-size: 12.5px;
    color: #334155;
    font-weight: 600;
}

#buddypress #create-group-form label.oe-category-item::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 50%;
    width: 14px;
    height: 14px;
    transform: translateY(-50%);
    border: 1.5px solid #94a3b8;
    border-radius: 50%;
    background: #ffffff;
    box-sizing: border-box;
    transition: border-color 0.18s ease, background-color 0.18s ease;
}

#buddypress #create-group-form label.oe-category-item input[type="checkbox"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

#buddypress #create-group-form label.oe-category-item:has(input:checked) {
    border-color: #3b82f6;
    background: #eff6ff;
    color: #1d4ed8;
}

#buddypress #create-group-form label.oe-category-item:has(input:checked)::before {
    border-color: #2563eb;
    background: #2563eb;
    box-shadow: inset 0 0 0 3px #ffffff;
}

#buddypress #create-group-form label.oe-category-item:has(input:focus-visible) {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* 都道府県セレクト */
.oe-extra-step select.oe-area-select {
    max-width: 320px;
}

@media (max-width: 640px) {
    #buddypress #create-group-form .oe-category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .oe-extra-step select.oe-area-select {
        max-width: 100%;
    }
}

/* ============================================================
   画像設定ステップ（group-images）
   ============================================================ */

.oe-images-step {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.oe-images-step .oe-upload-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.oe-images-step .oe-upload-label {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.oe-images-step .oe-upload-hint {
    font-size: 11.5px;
    color: #64748b;
    margin: 0;
}

.oe-images-step__skip-note {
    margin: 0;
    padding-top: 2px;
    font-size: 12px;
    line-height: 1.6;
    color: #64748b;
}

/* アップロードエリア共通 */
.oe-upload-area {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 28px 20px;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
    text-align: center;
    overflow: hidden;
}

.oe-upload-area:hover,
.oe-upload-area.is-drag-over {
    border-color: #3b82f6;
    background: #eff6ff;
}

.oe-upload-area.has-preview {
    padding: 0;
    border-style: solid;
    border-color: #86efac;
}

/* アイコン画像エリア（正方形） */
.oe-upload-area--icon {
    max-width: 220px;
    min-height: 180px;
    align-self: flex-start;
}

/* 背景画像エリア（横長） */
.oe-upload-area--cover {
    min-height: 160px;
}

.oe-upload-area__placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    pointer-events: none;
}

.oe-upload-area__icon {
    font-size: 32px;
    line-height: 1;
}

.oe-upload-area__text {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

.oe-upload-area__sub {
    font-size: 11px;
    color: #94a3b8;
}

/* ファイル選択ボタン */
.oe-upload-area__btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1.5px solid #3b82f6;
    background: #ffffff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease;
    pointer-events: auto;
}

.oe-upload-area__btn:hover {
    background: #eff6ff;
    transform: translateY(-1px);
}

/* 非表示ファイルinput（エリア全体をクリック可にする） */
.oe-upload-area__file-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    font-size: 0;
}

/* プレビュー画像 */
.oe-upload-preview {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.oe-upload-area.has-preview .oe-upload-preview {
    display: block;
}

.oe-upload-area.has-preview .oe-upload-area__placeholder {
    display: none;
}

/* プレビュー時のオーバーレイ（hover で再選択を促す） */
.oe-upload-area.has-preview::after {
    content: "クリックして変更";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.oe-upload-area.has-preview:hover::after {
    opacity: 1;
}

/* スキップリンク */
.oe-upload-skip {
    font-size: 12px;
    color: #94a3b8;
    text-decoration: underline;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.oe-upload-skip:hover {
    color: #64748b;
}

@media (max-width: 640px) {
    .oe-upload-area--icon {
        max-width: 100%;
    }
}

/* ============================================================
   確認/完了ステップ
   ============================================================ */

.oe-confirm-step,
.oe-complete-step {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.oe-confirm-step__title,
.oe-complete-step__title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

.oe-confirm-step__lead,
.oe-complete-step__lead {
    margin: 0;
    font-size: 13px;
    color: #475569;
}

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

.oe-confirm-item {
    padding: 12px 14px;
    border: 1px solid #dbe2f5;
    border-radius: 10px;
    background: #f8fbff;
}

.oe-confirm-item--wide {
    grid-column: 1 / -1;
}

.oe-confirm-item__label {
    display: block;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
}

.oe-confirm-item__value {
    margin: 0;
    font-size: 13px;
    color: #0f172a;
    line-height: 1.5;
    white-space: pre-wrap;
}

.oe-confirm-list {
    margin: 0;
    padding-left: 0;
    list-style: none;
    font-size: 13px;
    color: #0f172a;
}

.oe-complete-step__panel {
    padding: 14px 16px;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    background: #eff6ff;
}

.oe-complete-step__list {
    margin: 0;
    padding-left: 0;
    list-style: none;
    color: #1e3a8a;
    font-size: 13px;
}

.oe-complete-step__list li + li {
    margin-top: 6px;
}

/* 画像確認レイアウト */
.oe-confirm-images {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.oe-confirm-image-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.oe-confirm-image-col:first-child {
    flex: 0 0 auto;
    width: 130px;
}

.oe-confirm-image-col:last-child {
    flex: 1;
    min-width: 0;
}

.oe-confirm-image-wrap--icon img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #dbe2f5;
    display: block;
}

.oe-confirm-image-wrap--cover img {
    width: 100%;
    height: auto;
    max-height: 160px;
    border-radius: 8px;
    object-fit: cover;
    display: block;
}

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

    .oe-confirm-images {
        flex-direction: column;
        gap: 12px;
    }

    .oe-confirm-image-col:first-child {
        width: 100%;
    }

    .oe-confirm-image-wrap--icon img {
        width: 80px;
        height: 80px;
    }
}

/* ============================================================
   未ログイン時 CTA
   ============================================================ */

#buddypress .oe-group-create-login-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    padding: 56px 24px;
    border: 1px solid #dbe2f5;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06);
}

#buddypress .oe-group-create-login-cta__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
}

#buddypress .oe-group-create-login-cta__icon svg {
    width: 64px;
    height: 64px;
    color: #3b82f6;
}

#buddypress .oe-group-create-login-cta__heading {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
}

#buddypress .oe-group-create-login-cta__body {
    margin: 0;
    font-size: 14px;
    color: #475569;
    line-height: 1.7;
    max-width: 420px;
}

#buddypress .oe-group-create-login-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 32px;
    margin-top: 4px;
    border-radius: 999px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

#buddypress .oe-group-create-login-cta__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.42);
    color: #ffffff;
    text-decoration: none;
}

@media (max-width: 640px) {
    #buddypress .oe-group-create-login-cta {
        padding: 40px 16px;
        gap: 12px;
    }

    #buddypress .oe-group-create-login-cta__icon,
    #buddypress .oe-group-create-login-cta__icon svg {
        width: 52px;
        height: 52px;
    }

    #buddypress .oe-group-create-login-cta__heading {
        font-size: 17px;
    }

    #buddypress .oe-group-create-login-cta__body {
        font-size: 13px;
    }

    #buddypress .oe-group-create-login-cta__btn {
        min-height: 44px;
        padding: 0 24px;
        font-size: 14px;
        width: 100%;
    }
}

/* ============================================================
   SP Global Tuning
   ============================================================ */
@media (max-width: 640px) {
    #buddypress #create-group-form {
        margin-bottom: 16px;
    }

    #buddypress #group-create-tabs {
        margin-bottom: 12px;
    }

    #buddypress #group-create-tabs .group-create-buttons {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        overflow: visible;
        scroll-snap-type: none;
        gap: 4px;
        padding: 8px;
    }

    #buddypress #group-create-tabs .group-create-buttons::before,
    #buddypress #group-create-tabs .group-create-buttons::after {
        display: block;
        left: 14px;
        right: 14px;
    }

    #buddypress #group-create-tabs .group-create-buttons .oe-create-step {
        min-width: 0;
        scroll-snap-align: unset;
    }

    #buddypress #group-create-tabs .group-create-buttons .oe-create-step > a,
    #buddypress #group-create-tabs .group-create-buttons .oe-create-step > span {
        min-height: 58px;
        padding: 6px 3px;
        font-size: 9.5px;
        gap: 4px;
        border-radius: 10px;
    }

    #buddypress #group-create-tabs .group-create-buttons .oe-create-step > a::before,
    #buddypress #group-create-tabs .group-create-buttons .oe-create-step > span::before {
        width: 18px;
        height: 18px;
        font-size: 9px;
    }

    #buddypress #create-group-form .creation-step-name {
        margin-bottom: 10px;
        font-size: 19px;
    }

    #buddypress #create-group-form .submit,
    #buddypress #create-group-form #previous-next {
        gap: 8px;
        margin-top: 16px;
        padding-top: 12px;
    }

    #buddypress #create-group-form #previous-next input[type="submit"],
    #buddypress #create-group-form #previous-next a,
    #buddypress #create-group-form #previous-next button {
        min-height: 40px;
        padding: 0 14px;
        font-size: 12px;
    }

    .oe-privacy-cards {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-top: 12px;
    }

    .oe-privacy-card {
        gap: 6px;
        padding: 12px;
    }

    .oe-privacy-card__title {
        font-size: 12px;
    }

    .oe-privacy-card__desc {
        font-size: 11px;
    }

    .oe-extra-step {
        gap: 16px;
    }

    .oe-extra-step .oe-field-section {
        gap: 6px;
    }

    .oe-extra-step .oe-field-label {
        font-size: 12px;
    }

    .oe-extra-step .oe-field-desc {
        font-size: 11.5px;
    }

    #buddypress #create-group-form .oe-category-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    #buddypress #create-group-form label.oe-category-item {
        min-height: 40px;
        font-size: 12px;
        padding: 0 12px 0 32px;
    }

    .oe-images-step {
        gap: 16px;
    }

    .oe-images-step .oe-upload-section {
        gap: 8px;
    }

    .oe-images-step .oe-upload-label {
        font-size: 13px;
    }

    .oe-images-step .oe-upload-hint {
        font-size: 11px;
    }

    .oe-upload-area {
        gap: 8px;
        padding: 20px 14px;
        border-radius: 10px;
    }

    .oe-upload-area--icon {
        max-width: 100%;
        min-height: 150px;
    }

    .oe-upload-area--cover {
        min-height: 130px;
    }

    .oe-upload-area__icon {
        font-size: 28px;
    }

    .oe-upload-area__text {
        font-size: 12px;
    }

    .oe-upload-area__sub {
        font-size: 10.5px;
    }

    .oe-confirm-step,
    .oe-complete-step {
        gap: 10px;
    }

    .oe-confirm-step__title,
    .oe-complete-step__title {
        font-size: 16px;
    }

    .oe-confirm-step__lead,
    .oe-complete-step__lead,
    .oe-confirm-item__value,
    .oe-confirm-list,
    .oe-complete-step__list {
        font-size: 12px;
    }

    .oe-confirm-item {
        padding: 10px 12px;
    }
}