/* --- PHASE 10 CREATE PROMPT SPECIFIC LAYOUT & FORM STYLES --- */
.main-content.create-page-wrapper {
    max-width: 1380px;
    margin: 0 auto;
    padding: 24px 24px 80px 24px;
    box-sizing: border-box;
    width: 100%;
}

/* COMPACT PAGE INTRO HEADER */
.create-intro-header {
    margin-bottom: 24px;
}

.create-breadcrumb {
    font-size: 0.8rem;
    color: var(--text-secondary, #9da3af);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.create-breadcrumb a {
    color: var(--text-secondary, #9da3af);
    text-decoration: none;
    transition: color 0.18s ease;
}

.create-breadcrumb a:hover {
    color: var(--accent-orange, #ff7a00);
}

.breadcrumb-separator {
    color: rgba(255, 255, 255, 0.2);
}

.breadcrumb-current {
    color: #ffffff;
    font-weight: 550;
}

.create-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-orange, #ff7a00);
    margin-bottom: 6px;
}

.create-page-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 6px 0;
    letter-spacing: -0.02em;
}

.create-page-subtitle {
    color: var(--text-secondary, #9da3af);
    font-size: 0.92rem;
    margin: 0;
    line-height: 1.45;
}

/* 2-COLUMN MAIN WORKSPACE GRID */
.create-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    align-items: start;
    max-width: 1380px;
    margin: 0 auto;
    width: 100%;
}

@media (max-width: 1024px) {
    .create-layout {
        grid-template-columns: 1fr;
        gap: 24px;
        max-width: 100%;
    }
}

.create-form-container {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.form-card {
    background-color: #111216;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 24px 26px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.form-hint-text {
    font-size: 0.82rem;
    color: var(--text-secondary, #9da3af);
    line-height: 1.45;
    margin: 0;
}

/* SECTION 3 (YOUR PROMPT): PRIMARY HERO WORKSPACE */
.form-card-hero {
    background-color: #13151c;
    border: 1px solid rgba(255, 153, 0, 0.3);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.form-card-hero:focus-within {
    border-color: var(--accent-orange);
    box-shadow: 0 0 20px rgba(255, 153, 0, 0.14);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.card-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.2px;
}

/* ALL SECTION NUMBERS: CANONICAL GENCUEBOX SOLID ORANGE BADGE */
.step-num,
.form-card-hero .step-num {
    background: linear-gradient(135deg, #ff7a00 0%, #e66d00 100%) !important;
    color: #0b0c0e !important;
    border: none !important;
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 800 !important;
    font-size: 0.82rem !important;
    box-shadow: 0 0 10px rgba(255, 122, 0, 0.35) !important;
    flex-shrink: 0;
    line-height: 1;
    margin: 0;
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.char-counter {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* CATEGORY SELECT & DROPDOWN STYLING */
.form-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #0b0c0e !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff9900' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 42px !important;
    cursor: pointer;
    color: var(--text-primary) !important;
}

.form-select option {
    background-color: #141519 !important;
    color: #ffffff !important;
    padding: 12px 16px;
    font-size: 0.9rem;
}

/* OVERRIDE BROWSER DEFAULT SELECTION HIGHLIGHT */
.form-select option:checked,
.form-select option:hover,
.form-select option:focus {
    background-color: #262830 !important;
    background: #262830 linear-gradient(0deg, #262830 0%, #262830 100%) !important;
    color: var(--accent-orange) !important;
}

.form-select option:disabled {
    color: var(--text-secondary) !important;
}

.form-select option[value="__custom__"] {
    color: var(--accent-orange) !important;
    font-weight: 600;
}

/* CUSTOM CATEGORY INPUT FIELD ANIMATION */
#customCategoryGroup {
    animation: fadeIn 0.25s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.model-select-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.model-chip {
    background: #0b0c0e;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.model-chip:hover, .model-chip.active {
    border-color: var(--accent-orange);
    color: var(--text-primary);
    background: #1e2028;
}

.model-chip.active {
    border-color: var(--accent-orange);
    box-shadow: 0 0 10px rgba(255, 153, 0, 0.15);
}

.editor-toolbar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tool-btn {
    background: #0b0c0e;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.tool-btn:hover {
    background: #1c1d24;
    color: #fff;
}

.tool-btn.highlight {
    color: var(--accent-orange);
    border-color: rgba(255, 153, 0, 0.4);
}

.editor-textarea {
    width: 100%;
    min-height: 290px;
    resize: vertical;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, monospace;
    font-size: 0.98rem;
    line-height: 1.65;
    padding: 18px 20px;
    border-radius: var(--radius-sm);
    background: #090a0d;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.editor-textarea:focus {
    border-color: var(--accent-orange);
    box-shadow: 0 0 14px rgba(255, 153, 0, 0.18);
    outline: none;
}

/* TAG SYSTEM STYLING */
.tags-input-box {
    background: #0b0c0e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    min-height: 48px;
    transition: border-color 0.2s ease;
}

.tags-input-box:focus-within {
    border-color: var(--accent-orange);
}

.tags-chips-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-chip {
    background: #1c1e26;
    color: #ffffff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid rgba(255, 153, 0, 0.35);
}

.tag-chip svg {
    width: 13px;
    height: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.15s ease;
}

.tag-chip svg:hover {
    color: #ff6b6b;
}

.tags-input-box input {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 0.85rem;
    flex: 1;
    min-width: 140px;
}

.tags-input-box.tags-limit-reached input {
    color: var(--text-secondary);
    cursor: not-allowed;
}

.suggested-tags-container {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: opacity 0.2s ease;
}

.suggested-tags-container.tags-limit-reached {
    opacity: 0.3;
    pointer-events: none;
}

.suggest-title {
    font-size: 0.78rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.suggested-chips-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.suggested-chip {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.76rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.suggested-chip:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

/* VARIABLES SECTION */
.variables-section {
    background: #0b0c0e;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
}

.variables-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.variables-header h4 {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.badge-tag {
    background: var(--accent-orange-glow);
    color: var(--accent-orange);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

.variables-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.variable-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.var-tag {
    background: #1e2028;
    color: var(--accent-orange);
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: monospace;
    min-width: 100px;
}

.var-input {
    flex: 1;
    padding: 8px 12px !important;
    font-size: 0.85rem !important;
}

.btn-icon-danger {
    background: transparent;
    border: none;
    color: #ff4d4d;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
}

/* SECTION 01: EXAMPLE RESULT WORKSPACE SYSTEM */
.example-result-workspace {
    width: 100%;
    transition: all 0.25s ease;
}

/* EMPTY STATE: Dropzone full width + Tip below */
.example-result-workspace:not(.has-image) {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.example-result-workspace:not(.has-image) .upload-dropzone {
    width: 100%;
    box-sizing: border-box;
}

.example-result-workspace:not(.has-image) .example-preview-card,
.example-result-workspace:not(.has-image) .example-action-btns {
    display: none !important;
}

.example-result-workspace:not(.has-image) .example-actions-col {
    width: 100%;
}

/* SELECTED STATE: 3-Column Desktop Grid */
.example-result-workspace.has-image {
    display: grid;
    grid-template-columns: minmax(180px, 0.85fr) minmax(220px, 1fr) minmax(190px, 0.75fr);
    gap: 14px;
    align-items: stretch;
}

/* Col 1: Compact Upload Dropzone */
.upload-dropzone {
    border: 1.5px dashed rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-md, 8px);
    padding: 32px 18px;
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #0b0c0e;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    user-select: none;
}

.upload-dropzone:hover,
.upload-dropzone:focus-visible,
.upload-dropzone.drag-over {
    border-color: var(--accent-orange, #ff7a00);
    background: rgba(255, 122, 0, 0.04);
    box-shadow: 0 0 16px rgba(255, 122, 0, 0.12);
}

.example-result-workspace.has-image .upload-dropzone {
    padding: 16px 12px;
    min-height: 190px;
    max-height: 220px;
    height: 100%;
    box-sizing: border-box;
}

.upload-icon {
    width: 32px;
    height: 32px;
    color: var(--accent-orange, #ff7a00);
    margin-bottom: 2px;
    transition: transform 0.2s ease;
}

.upload-dropzone:hover .upload-icon {
    transform: translateY(-2px);
}

.upload-text {
    font-size: 0.88rem;
    color: #ffffff;
    margin: 0;
    line-height: 1.4;
}

.upload-text span {
    color: var(--accent-orange, #ff7a00);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
}

.upload-hint {
    font-size: 0.74rem;
    color: var(--text-secondary, #9da3af);
}

/* Col 2: Selected Image Preview Card */
.example-preview-card {
    background: #0b0c0e;
    border: 1px solid rgba(255, 122, 0, 0.45);
    border-radius: var(--radius-md, 8px);
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5), 0 0 14px rgba(255, 122, 0, 0.14);
    height: 100%;
    min-height: 190px;
    max-height: 220px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.preview-img-container {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #08090c;
}

.preview-img-container img {
    width: 100%;
    height: 100%;
    max-height: 220px;
    object-fit: cover;
    display: block;
    border-radius: 6px;
}

.example-preview-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(11, 12, 14, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 122, 0, 0.55);
    color: #ff9d42;
    font-size: 0.70rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    letter-spacing: 0.02em;
    pointer-events: none;
    z-index: 2;
}

.preview-close-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(11, 12, 14, 0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    padding: 0;
    transition: all 0.2s ease;
}

.preview-close-btn:hover {
    background: rgba(255, 77, 77, 0.9);
    border-color: #ff4d4d;
    color: #ffffff;
    transform: scale(1.08);
}

/* Col 3: Actions + Helper Column */
.example-actions-col {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    box-sizing: border-box;
}

.example-result-workspace.has-image .example-actions-col {
    height: 100%;
    min-height: 190px;
    max-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
    box-sizing: border-box;
}

.example-action-btns {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-replace-img {
    background: #141519;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-sm, 6px);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 10px 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
    text-decoration: none;
    user-select: none;
}

.btn-replace-img:hover {
    border-color: var(--accent-orange, #ff7a00);
    color: var(--accent-orange, #ff7a00);
    background: #1a1c24;
    box-shadow: 0 0 10px rgba(255, 122, 0, 0.15);
}

.btn-remove-img {
    background: rgba(26, 16, 18, 0.85);
    border: 1px solid rgba(255, 77, 77, 0.35);
    border-radius: var(--radius-sm, 6px);
    color: #ff6b6b;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 10px 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
    text-decoration: none;
    user-select: none;
}

.btn-remove-img:hover {
    background: rgba(255, 77, 77, 0.18);
    border-color: #ff4d4d;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(255, 77, 77, 0.2);
}

/* Helper / Tip Panel */
.example-tip-card {
    background: #0e0f13;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm, 6px);
    padding: 12px 14px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tip-card-header {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-orange, #ff7a00);
    font-size: 0.76rem;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tip-card-icon {
    width: 14px;
    height: 14px;
    stroke-width: 2.2;
}

.tip-card-text {
    font-size: 0.78rem;
    color: var(--text-secondary, #9da3af);
    line-height: 1.45;
    margin: 0;
}

/* TABLET BREAKPOINT (max-width: 900px) */
@media (max-width: 900px) {
    .example-result-workspace.has-image {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }
    .example-result-workspace.has-image .upload-dropzone {
        min-height: 180px;
    }
    .example-result-workspace.has-image .example-preview-card {
        min-height: 180px;
    }
    .example-result-workspace.has-image .example-actions-col {
        grid-column: span 2;
        flex-direction: row;
        align-items: stretch;
        gap: 12px;
        min-height: auto;
        max-height: none;
    }
    .example-result-workspace.has-image .example-action-btns {
        flex: 1;
        justify-content: center;
    }
    .example-result-workspace.has-image .example-tip-card {
        flex: 1.2;
    }
}

/* MOBILE BREAKPOINT (max-width: 640px) */
@media (max-width: 640px) {
    .example-result-workspace.has-image {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .example-result-workspace.has-image .upload-dropzone {
        min-height: 160px;
        max-height: none;
    }
    .example-result-workspace.has-image .example-preview-card {
        max-height: 280px;
        aspect-ratio: 1 / 1;
    }
    .example-result-workspace.has-image .example-actions-col {
        grid-column: span 1;
        flex-direction: column;
        gap: 12px;
        min-height: auto;
        max-height: none;
    }
    .btn-replace-img,
    .btn-remove-img {
        min-height: 44px;
    }
}

.radio-group {
    display: flex;
    gap: 20px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    color: var(--text-primary);
}

.radio-label input {
    accent-color: var(--accent-orange);
}

/* SECTION 07: ALLOW COMMENTS STYLING */
.allow-comments-fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

.allow-comments-legend {
    font-size: 0.92rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 6px;
    display: block;
}

.allow-comments-radio-group {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-top: 6px;
}

.allow-comments-radio-group .radio-label {
    padding: 9px 18px;
    background: #0b0c0e;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm, 6px);
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    user-select: none;
    cursor: pointer;
    font-weight: 500;
}

.allow-comments-radio-group .radio-label:hover {
    border-color: rgba(255, 122, 0, 0.5);
    background: rgba(255, 122, 0, 0.04);
}

.allow-comments-radio-group .radio-label:has(input:checked) {
    border-color: var(--accent-orange, #ff7a00);
    background: rgba(255, 122, 0, 0.08);
    box-shadow: 0 0 12px rgba(255, 122, 0, 0.18);
    color: #ffffff;
    font-weight: 600;
}

.allow-comments-radio-group .radio-label input[type="radio"] {
    accent-color: var(--accent-orange, #ff7a00);
    width: 17px;
    height: 17px;
    cursor: pointer;
    margin: 0;
}

/* OPTIONAL BADGE */
.optional-badge {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: #141519;
    color: #8e95a5;
    padding: 3px 9px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    line-height: 1.2;
}

/* GENERATION SETTINGS GRID */
.gen-fields-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 14px;
}

/* ADVANCED SETTINGS ACCORDION (SUBORDINATE WHEN EXPANDED) */
.advanced-settings-accordion {
    margin-top: 16px;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.advanced-settings-accordion[open] {
    border-color: rgba(255, 255, 255, 0.12);
}

.advanced-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    user-select: none;
    background: rgba(255, 255, 255, 0.02);
    transition: color 0.2s ease, background 0.2s ease;
}

.advanced-summary:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.035);
}

.advanced-summary span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.accordion-arrow {
    width: 15px;
    height: 15px;
    color: var(--text-secondary);
    transition: transform 0.2s ease;
}

.advanced-settings-accordion[open] .accordion-arrow {
    transform: rotate(180deg);
    color: var(--text-primary);
}

.advanced-content {
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.2);
}

/* CUSTOMIZATION GUIDANCE BOX (QUIET INFORMATIONAL TIP) */
.customization-guidance-box {
    margin-top: 16px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-left: 3px solid #4a5060;
    border-radius: var(--radius-sm);
    padding: 12px 16px;
}

.guidance-tip-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.guidance-tip-row .tip-icon {
    width: 16px;
    height: 16px;
    color: #7e8799;
    flex-shrink: 0;
    margin-top: 2px;
}

.guidance-text {
    font-size: 0.82rem;
    color: #9ea5b5;
    line-height: 1.5;
    margin: 0;
}

.guidance-text strong {
    color: #d1d5db;
    font-weight: 600;
}

.guidance-text code {
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.78rem;
    font-family: monospace;
}

/* RIGHT STICKY INTELLIGENCE PANEL */
.create-intelligence-container {
    width: 100%;
}

.intelligence-sticky-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: auto;
    max-height: none;
    overflow-y: visible;
}

/* LIVE PROMPT COMPLETENESS (PCS) CARD - PROMINENT */
.pcs-live-card {
    background: #121318;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg, 12px);
    padding: 22px 24px 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    height: auto;
    min-height: fit-content;
    overflow: visible;
    flex-shrink: 0;
}

.pcs-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.pcs-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.pcs-icon {
    width: 20px;
    height: 20px;
    color: var(--accent-orange, #ff7a00);
    flex-shrink: 0;
}

.pcs-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.1px;
    white-space: nowrap;
}

.pcs-score-badge {
    font-size: 1.55rem;
    font-weight: 800;
    color: #ffffff;
    font-feature-settings: "tnum";
    letter-spacing: -0.5px;
    flex-shrink: 0;
    line-height: 1;
}

.pcs-score-badge #pcsScoreNum {
    color: var(--accent-orange, #ff7a00);
    transition: color 0.3s ease;
}

.pcs-score-max {
    font-size: 0.85rem;
    color: var(--text-secondary, #9da3af);
    font-weight: 500;
    margin-left: 1px;
}

.pcs-progress-wrapper {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
    margin: 2px 0 0 0;
}

.pcs-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ff7a00 0%, #ffaa00 100%);
    border-radius: 999px;
    transition: width 0.35s ease, background 0.35s ease;
    box-shadow: 0 0 8px rgba(255, 122, 0, 0.4);
    min-width: 4px;
}

.pcs-progress-bar.tier-getting-started {
    background: linear-gradient(90deg, #ff6b35 0%, #ff8c42 100%);
    box-shadow: 0 0 8px rgba(255, 107, 53, 0.4);
}

.pcs-progress-bar.tier-taking-shape {
    background: linear-gradient(90deg, #ff7a00 0%, #ffa500 100%);
    box-shadow: 0 0 8px rgba(255, 122, 0, 0.4);
}

.pcs-progress-bar.tier-well-detailed {
    background: linear-gradient(90deg, #ffa500 0%, #ffc107 100%);
    box-shadow: 0 0 8px rgba(255, 193, 7, 0.4);
}

.pcs-progress-bar.tier-highly-detailed {
    background: linear-gradient(90deg, #20c997 0%, #0dcaf0 100%);
    box-shadow: 0 0 8px rgba(32, 201, 151, 0.4);
}

.pcs-progress-bar.tier-exceptionally-complete {
    background: linear-gradient(90deg, #2ed573 0%, #10b981 100%);
    box-shadow: 0 0 10px rgba(46, 213, 115, 0.5);
}

.pcs-tier-indicator {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: 2px;
}

.pcs-tier-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    background: rgba(255, 120, 0, 0.12);
    color: var(--accent-orange, #ff7a00);
    border: 1px solid rgba(255, 120, 0, 0.3);
    transition: all 0.3s ease;
}

.pcs-tier-badge.tier-getting-started {
    background: rgba(255, 107, 53, 0.12);
    color: #ff8c42;
    border-color: rgba(255, 107, 53, 0.32);
}

.pcs-tier-badge.tier-taking-shape {
    background: rgba(255, 122, 0, 0.14);
    color: #ffa500;
    border-color: rgba(255, 122, 0, 0.35);
}

.pcs-tier-badge.tier-well-detailed {
    background: rgba(255, 193, 7, 0.14);
    color: #ffc107;
    border-color: rgba(255, 193, 7, 0.35);
}

.pcs-tier-badge.tier-highly-detailed {
    background: rgba(32, 201, 151, 0.14);
    color: #20c997;
    border-color: rgba(32, 201, 151, 0.35);
}

.pcs-tier-badge.tier-exceptionally-complete {
    background: rgba(46, 213, 115, 0.15);
    color: #2ed573;
    border-color: rgba(46, 213, 115, 0.4);
    box-shadow: 0 0 12px rgba(46, 213, 115, 0.2);
}

.pcs-disclaimer {
    font-size: 0.74rem;
    color: #828896;
    line-height: 1.45;
    margin: 0;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pcs-dimensions-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 2px;
}

.pcs-dim-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.80rem;
    color: #828896;
    transition: all 0.2s ease;
    padding: 2px 0;
}

.pcs-dim-item .dim-status-icon {
    width: 14px;
    height: 14px;
    color: #555c6d;
    opacity: 0.65;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.pcs-dim-item.satisfied {
    color: #d8dde8;
}

.pcs-dim-item.satisfied .dim-status-icon {
    color: #2ed573;
    opacity: 1;
}

/* PREVIEW CARD WRAPPER (SUBORDINATE & COMPACT) */
.preview-card-wrapper {
    background: #111216;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg, 12px);
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-shrink: 0;
}

.preview-card-header {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #6c7283;
    display: flex;
    align-items: center;
    gap: 6px;
}

.preview-card {
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    background: #0c0d10 !important;
    box-shadow: none !important;
}

.preview-card .card-image-wrapper {
    max-height: 140px;
    overflow: hidden;
}

.preview-card .card-image {
    height: 140px;
    object-fit: cover;
    width: 100%;
}

/* CARD HEADER LAYOUT */
.card-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* SECTION 6: SUBMISSION SETTINGS GRID */
.submission-settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: center;
}

@media (max-width: 640px) {
    .submission-settings-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* SECTION 7: FINAL PUBLISH BAR */
.final-publish-bar {
    background: #111216;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 22px 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.publish-bar-info {
    flex: 1;
    min-width: 200px;
}

.publish-bar-title {
    font-size: 1.05rem;
    font-weight: 750;
    color: #ffffff;
    margin: 0 0 4px 0;
    letter-spacing: -0.01em;
}

.publish-bar-desc {
    font-size: 0.82rem;
    color: var(--text-secondary, #9da3af);
    margin: 0;
    line-height: 1.4;
}

.publish-bar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.btn-publish {
    font-weight: 750;
    padding: 12px 26px;
    font-size: 0.92rem;
    background: var(--accent-orange, #ff7a00);
    color: #000000;
    border: none;
    box-shadow: 0 4px 18px rgba(255, 122, 0, 0.32);
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-publish:hover {
    background: var(--accent-gold, #ff9900);
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(255, 122, 0, 0.45);
}

#saveDraftBtn {
    background: #16181e;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-secondary, #9da3af);
    padding: 12px 20px;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

#saveDraftBtn:hover {
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
    .final-publish-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    .publish-bar-actions {
        width: 100%;
        justify-content: flex-end;
    }
    .publish-bar-actions button {
        flex: 1;
        justify-content: center;
    }
}

/* RIGHT STICKY INTELLIGENCE RAIL: PROMPT WRITING TIPS CARD */
.writing-tips-card {
    background: #111216;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-shrink: 0;
}

.writing-tips-header {
    font-size: 0.82rem;
    font-weight: 750;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tips-icon {
    width: 16px;
    height: 16px;
    color: var(--accent-orange, #ff7a00);
}

.writing-tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.writing-tips-list li {
    font-size: 0.8rem;
    color: var(--text-secondary, #9da3af);
    line-height: 1.45;
    position: relative;
    padding-left: 14px;
}

.writing-tips-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-orange, #ff7a00);
    font-weight: bold;
}

.writing-tips-list li strong {
    color: #ffffff;
    font-weight: 600;
}

.writing-tips-list li code {
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.76rem;
    font-family: monospace;
}

/* RESPONSIVE HARDENING FOR RIGHT INTELLIGENCE RAIL */
@media (max-width: 1024px) {
    .intelligence-sticky-panel {
        position: static;
        max-height: none;
        overflow: visible;
    }
}

@media (max-width: 768px) {
    .pcs-live-card {
        padding: 18px 16px;
    }
    .preview-card-wrapper {
        padding: 14px 16px;
    }
    .writing-tips-card {
        padding: 16px 18px;
    }
}

/* HIDE DEPRECATED FIXED ACTION BAR OVERLAY */
.sticky-action-bar {
    display: none !important;
}

/* ==========================================================================
   AI PROMPT ASSISTANT (STAGE B) STYLES
   ========================================================================== */

.ai-assist-container {
    margin-top: 18px;
}

.ai-assist-card {
    background: linear-gradient(135deg, rgba(255, 153, 0, 0.04) 0%, rgba(20, 21, 25, 0.85) 100%);
    border: 1px solid rgba(255, 153, 0, 0.28);
    border-radius: var(--radius-md);
    padding: 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ai-assist-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.ai-assist-header-content {
    flex: 1;
    min-width: 260px;
}

.ai-assist-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.ai-sparkle-icon {
    width: 18px;
    height: 18px;
    color: var(--accent-orange);
}

.ai-assist-title {
    font-size: 0.96rem;
    font-weight: 700;
    color: #ffffff;
}

.ai-optional-pill {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(255, 255, 255, 0.07);
    color: var(--text-secondary);
    padding: 2px 8px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-assist-explainer {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.45;
    margin: 0;
}

.ai-assist-explainer strong {
    color: #e5e5e5;
    font-weight: 600;
}

.btn-ai-analyze {
    background: linear-gradient(135deg, var(--accent-orange) 0%, #e68a00 100%);
    color: #000000;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(255, 153, 0, 0.25);
}

.btn-ai-analyze:hover:not(:disabled) {
    background: var(--accent-gold);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px var(--accent-orange-glow);
}

.btn-ai-analyze:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.ai-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid #000000;
    border-top-color: transparent;
    border-radius: 50%;
    display: inline-block;
    animation: ai-spin 0.7s linear infinite;
}

@keyframes ai-spin {
    to { transform: rotate(360deg); }
}

.ai-status-region {
    font-size: 0.8rem;
    color: var(--accent-orange);
    margin-top: 6px;
}

/* ERROR BOX */
.ai-error-panel {
    margin-top: 14px;
}

.ai-error-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(255, 68, 68, 0.08);
    border: 1px solid rgba(255, 68, 68, 0.28);
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    color: #ff8888;
    font-size: 0.84rem;
}

.ai-blocked-box {
    background: rgba(255, 153, 0, 0.08);
    border-color: rgba(255, 153, 0, 0.35);
    color: #ffb84d;
}

.ai-error-icon {
    flex-shrink: 0;
    margin-top: 1px;
}

.ai-error-text {
    line-height: 1.4;
}

/* REVIEW PANEL */
.ai-review-panel {
    margin-top: 18px;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

.ai-review-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ai-review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.ai-review-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
}

.ai-mock-badge {
    font-size: 0.68rem;
    font-weight: 700;
    background: rgba(0, 200, 255, 0.12);
    color: #66d9ff;
    border: 1px solid rgba(0, 200, 255, 0.28);
    padding: 2px 7px;
    border-radius: 8px;
    letter-spacing: 0.4px;
}

.ai-review-notice {
    font-size: 0.76rem;
    color: var(--text-secondary);
}

.ai-suggestions-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ai-suggestion-row {
    background: #111216;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.ai-sugg-content {
    flex: 1;
    min-width: 0;
}

.ai-sugg-label {
    font-size: 0.74rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.ai-sugg-label i {
    width: 13px;
    height: 13px;
}

.ai-sugg-value {
    font-size: 0.88rem;
    font-weight: 600;
    color: #ffffff;
    word-break: break-word;
}

.ai-sugg-tags-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ai-tag-pill {
    background: rgba(255, 153, 0, 0.12);
    color: var(--accent-orange);
    border: 1px solid rgba(255, 153, 0, 0.25);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 600;
}

.ai-empty-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.ai-summary-row {
    align-items: flex-start;
}

.ai-info-badge {
    font-size: 0.68rem;
    font-weight: 500;
    text-transform: none;
    color: #a0a5b5;
    background: rgba(255, 255, 255, 0.05);
    padding: 1px 6px;
    border-radius: 4px;
    margin-left: 6px;
}

.ai-sugg-summary-text {
    font-size: 0.84rem;
    color: #d1d5db;
    line-height: 1.45;
    margin-top: 2px;
}

.btn-use-sugg {
    background: #1e2027;
    border: 1px solid #363a47;
    color: #ffffff;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.btn-use-sugg:hover:not(:disabled) {
    background: var(--accent-orange);
    color: #000000;
    border-color: var(--accent-orange);
}

.btn-use-sugg:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.ai-review-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

.btn-ai-apply-all {
    background: rgba(255, 153, 0, 0.14);
    border: 1px solid var(--accent-orange);
    color: var(--accent-orange);
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-ai-apply-all:hover {
    background: var(--accent-orange);
    color: #000000;
    box-shadow: 0 0 12px var(--accent-orange-glow);
}

.btn-ai-dismiss {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-ai-dismiss:hover {
    color: #ffffff;
    border-color: #555;
}

.ai-apply-feedback {
    font-size: 0.8rem;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    line-height: 1.4;
    margin-top: 4px;
}

.ai-fb-success {
    background: rgba(72, 187, 120, 0.12);
    border: 1px solid rgba(72, 187, 120, 0.3);
    color: #68d391;
}

.ai-fb-warning {
    background: rgba(255, 153, 0, 0.12);
    border: 1px solid rgba(255, 153, 0, 0.3);
    color: #ffba52;
}

@media (max-width: 600px) {
    .ai-assist-banner {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-ai-analyze {
        width: 100%;
        justify-content: center;
    }

    .ai-suggestion-row {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-use-sugg {
        width: 100%;
        text-align: center;
    }
}

/* ==========================================================================
   POST-PUBLISH SUCCESS MODAL COMPONENT (GENCUEBOX 2.0 POLISH)
   ========================================================================== */

.modal-container.success-container {
    max-width: 680px;
    width: 100%;
    margin: 32px auto;
    padding: 36px 32px 32px;
    background: #121318;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75);
    text-align: center;
    overflow: hidden;
    position: relative;
    animation: successModalFadeIn 0.22s ease-out;
}

@keyframes successModalFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-icon-badge {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.28);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
    color: #4ade80;
}

.success-icon-badge .success-icon,
.success-icon-badge i {
    width: 24px;
    height: 24px;
    stroke-width: 2.2;
}

.success-title {
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.25;
    color: #ffffff;
    margin: 0 0 8px 0;
    letter-spacing: -0.01em;
}

.success-description {
    font-size: 0.98rem;
    line-height: 1.55;
    color: var(--text-secondary, #9da3af);
    max-width: 540px;
    margin: 0 auto 24px auto;
}

.success-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.success-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    padding: 0 24px;
    background: var(--accent-orange, #ff7a00);
    color: #0b0c0e !important;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 10px;
    border: none;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.success-btn-primary:hover {
    background: #ff8c1a;
    color: #000000 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(255, 122, 0, 0.35);
}

.success-btn-primary:active {
    transform: translateY(0);
}

.success-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    padding: 0 24px;
    background: rgba(255, 255, 255, 0.06);
    color: #f3f4f6;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.success-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.20);
    color: #ffffff;
}

.success-btn-secondary:active {
    background: rgba(255, 255, 255, 0.05);
}

.success-home-link {
    display: inline-block;
    margin-top: 18px;
    font-size: 0.85rem;
    color: var(--text-muted, #71717a);
    text-decoration: none;
    transition: color 0.15s ease;
}

.success-home-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

@media (max-width: 600px) {
    .modal-container.success-container {
        margin: 16px;
        padding: 24px 20px 20px;
        border-radius: 14px;
    }

    .success-title {
        font-size: 1.4rem;
    }

    .success-description {
        font-size: 0.92rem;
        margin-bottom: 20px;
    }

    .success-actions {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .success-btn-primary,
    .success-btn-secondary {
        width: 100%;
        min-height: 46px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .modal-container.success-container {
        animation: none;
    }
    .success-btn-primary {
        transition: none;
    }
}