.img-full-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    z-index: 0;
}

.img-full-contain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: top;
    z-index: 0;
}

.profile-page {
    padding-top: 118px;
    padding-bottom: 90px;
}

.profile-shell {
    max-width: 1240px;
    margin: 0 auto;
}

.profile-hero {
    margin-bottom: 28px;
}

.profile-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(67, 97, 238, 0.12);
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.02em;
    box-shadow: var(--shadow);
    margin-bottom: 18px;
}

.profile-headline {
    font-size: clamp(2rem, 3vw, 3.2rem);
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

.profile-copy {
    max-width: 720px;
    color: var(--gray);
    font-size: 16px;
    line-height: 1.7;
    margin: 0;
}

.profile-column {
    display: flex;
}

.profile-card,
.profile-panel,
.profile-note {
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 28px;
    box-shadow: 0 26px 60px rgba(18, 38, 63, 0.12);
    backdrop-filter: blur(18px);
    position: relative;
    overflow: hidden;
}

.profile-card::before,
.profile-panel::before,
.profile-note::before {
    content: "";
    position: absolute;
    inset: auto -70px -70px auto;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(76, 201, 240, 0.18) 0%,
        rgba(76, 201, 240, 0) 70%
    );
    pointer-events: none;
}

.profile-card {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.profile-avatar-wrap {
    display: flex;
    justify-content: center;
}

.profile-avatar {
    width: 128px;
    height: 128px;
    border-radius: 32px;
    background: linear-gradient(
        135deg,
        var(--primary) 0%,
        var(--secondary) 100%
    );
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    font-weight: 700;
    box-shadow: 0 18px 40px rgba(67, 97, 238, 0.24);
    overflow: hidden;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-name {
    text-align: center;
}

.profile-name h2 {
    margin: 0 0 6px;
    font-size: 28px;
    color: var(--dark);
}

.profile-handle {
    color: var(--gray);
    font-size: 15px;
    margin-bottom: 12px;
}

.profile-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.profile-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(67, 97, 238, 0.12);
    background: #f7f9ff;
    color: #35528d;
}

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

.profile-stat {
    background: rgba(247, 249, 255, 0.92);
    border: 1px solid #e8edfb;
    border-radius: 20px;
    padding: 18px;
}

.profile-stat-label {
    display: block;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: 8px;
}

.profile-stat-value {
    color: var(--dark);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
}

.profile-stat-copy {
    margin-top: 6px;
    font-size: 13px;
    color: var(--gray);
}

.profile-overview {
    padding: 18px 20px;
    border-radius: 22px;
    background: linear-gradient(
        135deg,
        rgba(67, 97, 238, 0.08) 0%,
        rgba(76, 201, 240, 0.08) 100%
    );
    border: 1px solid rgba(67, 97, 238, 0.12);
}

.profile-overview h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.profile-overview p {
    margin: 0;
    color: var(--gray);
    font-size: 14px;
    line-height: 1.7;
}

.profile-panel {
    padding: 34px;
}

.panel-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 26px;
}

.panel-title {
    margin: 0;
    font-size: 30px;
    color: var(--dark);
    font-weight: 700;
}

.panel-copy {
    margin: 8px 0 0;
    color: var(--gray);
    max-width: 520px;
    line-height: 1.7;
}

.panel-chip {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(67, 97, 238, 0.08);
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    border: 1px solid rgba(67, 97, 238, 0.12);
}

.profile-form .row {
    --bs-gutter-y: 1.1rem;
}

.profile-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #23304d;
}

.profile-field {
    position: relative;
}

.profile-control,
.profile-textarea,
.profile-file {
    width: 100%;
    border: 1px solid #dbe3f4;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    padding: 16px 18px;
    font-size: 15px;
    color: var(--dark);
    transition: var(--transition);
    box-shadow: none;
}

.profile-control:focus,
.profile-textarea:focus,
.profile-file:focus {
    outline: none;
    border-color: rgba(67, 97, 238, 0.42);
    box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.1);
}

.profile-control[readonly] {
    background: #f7f9ff;
    color: #64748b;
}

.profile-textarea {
    min-height: 170px;
    resize: vertical;
}

.profile-help {
    margin-top: 8px;
    color: var(--gray);
    font-size: 13px;
}

.profile-file-wrap {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: center;
}

.profile-file-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 18px;
    background: #f7f9ff;
    border: 1px solid #e7ecf7;
    color: #35528d;
    font-size: 14px;
    font-weight: 600;
}

.profile-file-meta i {
    color: var(--primary);
}

.profile-file-actions {
    margin-top: 12px;
}

.profile-delete-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 16px;
    border: 1px solid rgba(220, 53, 69, 0.18);
    background: rgba(220, 53, 69, 0.08);
    color: #c0392b;
    font-weight: 700;
}

.profile-delete-btn:hover,
.profile-delete-btn:focus {
    background: rgba(220, 53, 69, 0.12);
    color: #a93226;
}

.profile-submit {
    min-height: 56px;
    border-radius: 18px;
    padding: 0 24px;
    font-size: 16px;
    box-shadow: 0 18px 34px rgba(67, 97, 238, 0.2);
}

.profile-submit.is-submitting {
    opacity: 0.9;
    pointer-events: none;
}

.profile-note {
    margin-top: 24px;
    padding: 24px 28px;
}

.profile-note-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

.profile-note-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.profile-note-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--gray);
    line-height: 1.7;
}

.profile-note-list i {
    color: var(--primary);
    margin-top: 3px;
}

.profile-char-count {
    margin-top: 8px;
    text-align: right;
    color: var(--gray);
    font-size: 12px;
    font-weight: 600;
}

.login-page {
    padding-top: 120px;
    padding-bottom: 90px;
    min-height: calc(100vh - 180px);
}

.login-shell {
    align-items: stretch;
    justify-content: space-between;
    /* gap: 0px; */
    max-width: 1255px;
    margin: 0 auto;
}

.login-shell > [class*="col-"] {
    display: flex;
}

.login-intro {
    position: relative;
    padding-right: 0;
    width: 100%;
    display: flex;
}

.login-head {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.login-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(67, 97, 238, 0.12);
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.02em;
    box-shadow: var(--shadow);
    margin-bottom: 22px;
    width: 100%;
}

.login-kicker i {
    font-size: 13px;
}

.login-subtitle {
    max-width: 620px;
    margin-bottom: 30px;
}

.login-story-card {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 24px 50px rgba(67, 97, 238, 0.12);
    backdrop-filter: blur(14px);
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-story-card::before {
    content: "";
    position: absolute;
    inset: auto -60px -60px auto;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(76, 201, 240, 0.22) 0%,
        rgba(76, 201, 240, 0) 70%
    );
}

.story-badge-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.story-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: #f7f9ff;
    color: #3a4a7d;
    border: 1px solid #e4eaff;
    font-size: 13px;
    font-weight: 600;
}

.story-preview {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 18px;
    align-items: center;
    padding: 18px;
    border-radius: 18px;
    background: linear-gradient(
        135deg,
        rgba(67, 97, 238, 0.08) 0%,
        rgba(72, 149, 239, 0.08) 100%
    );
    border: 1px solid rgba(67, 97, 238, 0.12);
    margin-bottom: 20px;
}

.story-avatar {
    width: 92px;
    height: 92px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        135deg,
        var(--primary) 0%,
        var(--primary-light) 100%
    );
    color: white;
    font-size: 30px;
    font-weight: 700;
    box-shadow: 0 18px 30px rgba(67, 97, 238, 0.25);
}

.story-label {
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: 6px;
}

.story-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 6px;
}

.story-text {
    font-size: 15px;
    color: var(--gray);
    margin: 0;
}

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

.story-metric {
    background: white;
    border: 1px solid #edf1ff;
    border-radius: 18px;
    padding: 16px;
    min-height: 118px;
    transition: var(--transition);
}

.story-metric:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 24px rgba(67, 97, 238, 0.08);
}

.story-metric i {
    color: var(--primary);
    font-size: 18px;
    margin-bottom: 12px;
}

.story-metric h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
}

.story-metric p {
    font-size: 13px;
    color: var(--gray);
    margin: 0;
}

.login-card-wrap {
    position: relative;
    width: 100%;
    display: flex;
}

.login-card-wrap::before,
.login-card-wrap::after {
    content: "";
    position: absolute;
    border-radius: 28px;
    z-index: 0;
}

.login-card-wrap::before {
    inset: 18px -16px -18px 36px;
    background: linear-gradient(
        135deg,
        rgba(67, 97, 238, 0.1) 0%,
        rgba(76, 201, 240, 0.06) 100%
    );
}

.login-card-wrap::after {
    inset: -16px 40px 32px -12px;
    background: rgba(255, 255, 255, 0.45);
    filter: blur(24px);
}

.login-card {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 28px;
    padding: 34px;
    box-shadow: 0 30px 60px rgba(18, 38, 63, 0.12);
    backdrop-filter: blur(18px);
    overflow: hidden;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-card::before {
    content: "";
    position: absolute;
    top: -80px;
    right: -70px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(76, 201, 240, 0.18) 0%,
        rgba(76, 201, 240, 0) 70%
    );
}

.login-card-header {
    position: relative;
    z-index: 1;
    margin-bottom: 26px;
}

.login-card-badge {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        135deg,
        var(--primary) 0%,
        var(--secondary) 100%
    );
    color: white;
    font-size: 24px;
    box-shadow: 0 12px 24px rgba(67, 97, 238, 0.25);
}

.login-card-title {
    font-size: 30px;
    font-weight: 700;
    margin: 0;
    color: var(--dark);
}

.login-card-copy {
    font-size: 15px;
    color: var(--gray);
    margin: 0;
    max-width: 420px;
}

.login-form {
    position: relative;
    z-index: 1;
}

.login-field {
    margin-bottom: 18px;
}

.login-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #23304d;
}

.input-shell {
    position: relative;
}

.input-shell .form-control {
    border: 1px solid #dbe3f4;
    border-radius: 16px;
    min-height: 58px;
    padding: 16px 52px 16px 52px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: none;
    transition: var(--transition);
    font-size: 15px;
}

.input-shell .form-control:focus {
    border-color: rgba(67, 97, 238, 0.4);
    box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.1);
    background: white;
}

.input-shell.is-focused .field-icon,
.input-shell.has-value .field-icon {
    color: var(--primary);
}

.field-icon {
    position: absolute;
    top: 50%;
    left: 18px;
    transform: translateY(-50%);
    color: #90a0c0;
    font-size: 16px;
    transition: var(--transition);
    pointer-events: none;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #90a0c0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: var(--transition);
}

.password-toggle:hover {
    color: var(--primary);
    background: rgba(67, 97, 238, 0.08);
}

.remember-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.form-check-input {
    border-color: #c8d2e8;
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.remember-row .form-check-label,
.inline-link,
.register-copy {
    font-size: 14px;
}

.inline-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.inline-link:hover {
    color: var(--secondary);
}

.login-submit {
    width: 100%;
    min-height: 58px;
    border-radius: 16px;
    font-size: 16px;
    box-shadow: 0 16px 30px rgba(67, 97, 238, 0.22);
}

.login-submit .submit-icon {
    transition: transform 0.25s ease;
}

.login-submit:hover .submit-icon {
    transform: translateX(3px);
}

.login-submit.is-submitting {
    opacity: 0.9;
    pointer-events: none;
}

.form-error {
    display: block;
    margin-top: 8px;
    color: #d64545;
    font-size: 13px;
    font-weight: 600;
}

.login-footer-note {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #e7ecf7;
    color: var(--gray);
    text-align: center;
}

.login-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: #f8faff;
    border: 1px solid #e3e9ff;
    border-radius: 16px;
    margin-bottom: 22px;
    width: 100%;
}

.login-status-avatar {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        135deg,
        var(--primary) 0%,
        var(--primary-light) 100%
    );
    color: white;
    font-weight: 700;
    flex-shrink: 0;
}

.login-status small {
    display: block;
    color: var(--gray);
    font-size: 12px;
    margin-bottom: 2px;
}

.login-status strong {
    color: var(--dark);
    font-size: 14px;
    word-break: break-word;
}

.hero-title {
    font-size: 24px;
}

.bg-side ul {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 50px;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

#filter_list {
    display: none;
}

.filter-group-note {
    display: block;
    margin-top: 6px;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.45;
}

.filter-panel {
    margin-top: 15px;
}

#filter_list .bg-group {
    display: grid;
    gap: 10px;
}

#filter_list .bg-group > div:first-child p {
    color: #1e293b;
    font-size: 13px;
    font-weight: 800;
    margin: 0;
}

#filter_list .filter-group-note {
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
}

#filter_list .filter-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 0;
}

.filter-effect-option {
    background: #eef2ff;
}

#filter_list .filter-effect-option {
    flex: none;
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 96px;
    border: 1px solid rgba(148, 163, 184, 0.32);
    border-radius: 12px;
    background: #f8fafc;
    color: #1e293b;
    overflow: hidden;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 8px;
    text-align: left;
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.filter-effect-option:hover {
    transform: translateY(-2px);
}

#filter_list .filter-effect-option:hover,
#filter_list .filter-effect-option:focus-visible {
    border-color: rgba(13, 202, 240, 0.62);
    box-shadow: 0 12px 24px rgba(13, 202, 240, 0.14);
    outline: none;
    transform: translateY(-1px);
}

.filter-effect-option:focus-visible {
    outline: 2px solid #446cee;
    outline-offset: 3px;
}

.filter-effect-option.is-selected {
    box-shadow: inset 0 0 0 4px #12b312;
}

#filter_list .filter-effect-option.is-selected {
    border-color: rgba(13, 202, 240, 0.86);
    box-shadow: inset 0 0 0 2px rgba(13, 202, 240, 0.22);
}

#filter_list .filter-effect-option .bg-blur-check {
    top: 8px;
    right: 8px;
    left: auto;
    width: 24px;
    height: 24px;
    background: #0dcaf0;
    color: #06263b;
    font-size: 11px;
    opacity: 0;
    transform: scale(0.85);
    box-shadow: 0 8px 18px rgba(8, 145, 178, 0.28);
}

.filter-effect-option.is-selected .bg-blur-check {
    opacity: 1;
    transform: scale(1);
}

.filter-card-preview {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: 16px;
}

#filter_list .filter-card-preview {
    border-radius: 12px;
}

#filter_list .bg-option-title {
    position: relative;
    z-index: 2;
    left: auto;
    right: auto;
    bottom: auto;
    width: max-content;
    max-width: 100%;
    border-radius: 999px;
    padding: 5px 9px;
    background: rgba(15, 23, 42, 0.72);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    text-align: left;
    backdrop-filter: none;
}

.filter-card-preview::before {
    content: "";
    position: absolute;
    inset: 0;
}

.filter-preview-face {
    position: absolute;
    left: 50%;
    top: 24px;
    width: 42px;
    height: 50px;
    transform: translateX(-50%);
    border-radius: 24px 24px 20px 20px;
    background: #f7ccb0;
    z-index: 1;
    box-shadow: 0 10px 18px rgba(17, 24, 39, 0.12);
}

.filter-preview-face::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -18px;
    width: 64px;
    height: 28px;
    transform: translateX(-50%);
    border-radius: 28px 28px 12px 12px;
    background: rgba(255, 255, 255, 0.28);
}

.filter-preview-detail {
    position: absolute;
    display: block;
}

.filter-preview-none::before {
    background: linear-gradient(135deg, #ecf1ff 0%, #d4e0ff 100%);
}

.filter-preview-none .filter-preview-detail-one {
    left: 50%;
    top: 12px;
    width: 58px;
    height: 58px;
    transform: translateX(-50%);
    border-radius: 50%;
    border: 2px dashed rgba(68, 108, 238, 0.24);
}

.filter-preview-none .filter-preview-detail-two {
    left: 50%;
    bottom: 18px;
    width: 70px;
    height: 30px;
    transform: translateX(-50%);
    border-radius: 28px 28px 12px 12px;
    background: rgba(255, 255, 255, 0.42);
}

.filter-preview-cake::before {
    background: linear-gradient(135deg, #ffe1ee 0%, #ffd36d 100%);
}

.filter-preview-cake .filter-preview-face {
    top: 18px;
}

.filter-preview-cake .filter-preview-detail-one {
    left: 50%;
    bottom: 18px;
    width: 72px;
    height: 30px;
    transform: translateX(-50%);
    border-radius: 12px;
    background: linear-gradient(
        180deg,
        #fff8fb 0 26%,
        #ff9fc0 26% 62%,
        #ffcb6b 62% 100%
    );
    box-shadow: 0 10px 18px rgba(255, 111, 145, 0.18);
}

.filter-preview-cake .filter-preview-detail-one::before {
    content: "";
    position: absolute;
    left: 8px;
    right: 8px;
    top: -8px;
    height: 14px;
    background: radial-gradient(circle at 12px 7px, #fff 0 6px, transparent 7px)
        0 0 / 24px 14px repeat-x;
}

.filter-preview-cake .filter-preview-detail-two {
    left: 50%;
    top: 8px;
    width: 40px;
    height: 20px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, #79c6ff 0%, #4a90f7 100%);
    border-radius: 999px;
}

.filter-preview-cake .filter-preview-detail-two::before,
.filter-preview-cake .filter-preview-detail-two::after {
    content: "";
    position: absolute;
    top: 0;
    width: 7px;
    height: 20px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ff9fc0 0%, #ff5a8a 100%);
}

.filter-preview-cake .filter-preview-detail-two::before {
    left: -12px;
}

.filter-preview-cake .filter-preview-detail-two::after {
    right: -12px;
}

.filter-preview-dino::before {
    background: linear-gradient(135deg, #d8f7d0 0%, #73c86f 100%);
}

.filter-preview-dino .filter-preview-detail-one {
    left: 50%;
    top: 8px;
    width: 76px;
    height: 34px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, #2f9e44 0%, #54b765 100%);
    clip-path: polygon(
        0 100%,
        10% 26%,
        22% 100%,
        36% 10%,
        50% 100%,
        64% 18%,
        78% 100%,
        92% 30%,
        100% 100%
    );
    opacity: 0.96;
}

.filter-preview-dino .filter-preview-detail-two {
    left: 50%;
    bottom: 18px;
    width: 58px;
    height: 18px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: #4aa95a;
}

.filter-preview-dino .filter-preview-detail-two::after {
    content: "";
    position: absolute;
    left: 8px;
    right: 8px;
    top: 4px;
    height: 8px;
    background:
        linear-gradient(-45deg, transparent 6px, #fff 0) 0 0 / 10px 8px repeat-x,
        linear-gradient(45deg, transparent 6px, #fff 0) 0 0 / 10px 8px repeat-x;
}

.filter-preview-cat::before {
    background: linear-gradient(135deg, #f5d9ff 0%, #bca7ff 100%);
}

.filter-preview-cat .filter-preview-detail-one {
    left: 50%;
    top: 12px;
    width: 78px;
    height: 32px;
    transform: translateX(-50%);
    background: linear-gradient(
        90deg,
        transparent 0 10%,
        #7c3aed 10% 18%,
        transparent 18% 32%,
        #7c3aed 32% 40%,
        transparent 40% 60%,
        #7c3aed 60% 68%,
        transparent 68% 82%,
        #7c3aed 82% 90%,
        transparent 90%
    );
    clip-path: polygon(0 100%, 18% 0, 36% 100%, 64% 100%, 82% 0, 100% 100%);
}

.filter-preview-cat .filter-preview-detail-two {
    left: 50%;
    bottom: 28px;
    width: 62px;
    height: 2px;
    transform: translateX(-50%);
    background: #7c3aed;
    box-shadow:
        0 8px 0 #7c3aed,
        0 -8px 0 #7c3aed;
}

.filter-preview-cat .filter-preview-detail-two::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -10px;
    width: 15px;
    height: 15px;
    transform: translateX(-50%) rotate(45deg);
    border-radius: 3px 10px 10px 10px;
    background: #f472b6;
}

.filter-preview-bunny::before,
.filter-preview-rabbit::before {
    background: linear-gradient(135deg, #dff3ff 0%, #8bc5ff 100%);
}

.filter-preview-bunny .filter-preview-face,
.filter-preview-rabbit .filter-preview-face {
    background: #fff7fb;
}

.filter-preview-bunny .filter-preview-detail-one,
.filter-preview-rabbit .filter-preview-detail-one {
    left: 50%;
    top: 2px;
    width: 54px;
    height: 52px;
    transform: translateX(-50%);
}

.filter-preview-bunny .filter-preview-detail-one::before,
.filter-preview-bunny .filter-preview-detail-one::after,
.filter-preview-rabbit .filter-preview-detail-one::before,
.filter-preview-rabbit .filter-preview-detail-one::after {
    content: "";
    position: absolute;
    top: 0;
    width: 18px;
    height: 48px;
    border-radius: 999px 999px 18px 18px;
    background: #fff;
    box-shadow: inset 0 0 0 6px #ffd7ea;
}

.filter-preview-bunny .filter-preview-detail-one::before,
.filter-preview-rabbit .filter-preview-detail-one::before {
    left: 6px;
}

.filter-preview-bunny .filter-preview-detail-one::after,
.filter-preview-rabbit .filter-preview-detail-one::after {
    right: 6px;
}

.filter-preview-bunny .filter-preview-detail-two,
.filter-preview-rabbit .filter-preview-detail-two {
    left: 50%;
    bottom: 18px;
    width: 24px;
    height: 18px;
    transform: translateX(-50%);
    border-radius: 0 0 10px 10px;
    background: #fff;
    box-shadow:
        -12px 0 0 rgba(255, 255, 255, 0.82),
        12px 0 0 rgba(255, 255, 255, 0.82);
}

.filter-preview-clown::before {
    background: linear-gradient(135deg, #fff3b8 0%, #ff7eb3 100%);
}

.filter-preview-clown .filter-preview-detail-one {
    left: 50%;
    top: 6px;
    width: 82px;
    height: 34px;
    transform: translateX(-50%);
    border-radius: 999px;
    background:
        radial-gradient(circle at 14% 54%, #4dc0ff 0 13px, transparent 14px),
        radial-gradient(circle at 86% 54%, #ffc94d 0 13px, transparent 14px),
        radial-gradient(circle at 36% 44%, #7ee081 0 12px, transparent 13px),
        radial-gradient(circle at 64% 44%, #ff7eb3 0 12px, transparent 13px);
}

.filter-preview-clown .filter-preview-detail-two {
    left: 50%;
    top: 42px;
    width: 18px;
    height: 18px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: #ff4d5a;
    box-shadow:
        -18px 18px 0 rgba(255, 255, 255, 0.86),
        18px 18px 0 rgba(255, 255, 255, 0.86);
}

.filter-preview-googly::before {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.filter-preview-googly .filter-preview-detail-one,
.filter-preview-googly .filter-preview-detail-two {
    top: 28px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #111827;
    box-shadow: 0 5px 10px rgba(17, 24, 39, 0.08);
}

.filter-preview-googly .filter-preview-detail-one {
    left: calc(50% - 26px);
}

.filter-preview-googly .filter-preview-detail-two {
    left: calc(50% + 2px);
}

.filter-preview-googly .filter-preview-detail-one::after,
.filter-preview-googly .filter-preview-detail-two::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #111827;
}

.filter-preview-googly .filter-preview-detail-one::after {
    left: 9px;
    top: 12px;
}

.filter-preview-googly .filter-preview-detail-two::after {
    left: 6px;
    top: 8px;
}

.filter-preview-superhero::before {
    background: linear-gradient(135deg, #dbeafe 0%, #4f46e5 100%);
}

.filter-preview-superhero .filter-preview-detail-one {
    left: 50%;
    top: 28px;
    width: 72px;
    height: 28px;
    transform: translateX(-50%);
    border-radius: 18px;
    background: #1e1b4b;
    box-shadow: 0 8px 16px rgba(30, 27, 75, 0.24);
}

.filter-preview-superhero .filter-preview-detail-two {
    left: 50%;
    top: 8px;
    width: 26px;
    height: 24px;
    transform: translateX(-50%);
    clip-path: polygon(
        50% 0,
        65% 36%,
        100% 36%,
        72% 58%,
        84% 100%,
        50% 74%,
        16% 100%,
        28% 58%,
        0 36%,
        35% 36%
    );
    background: #facc15;
}

.filter-preview-pirate::before {
    background: linear-gradient(135deg, #fde68a 0%, #fb7185 100%);
}

.filter-preview-pirate .filter-preview-detail-one {
    left: 50%;
    top: 6px;
    width: 80px;
    height: 26px;
    transform: translateX(-50%);
    border-radius: 18px 18px 8px 8px;
    background: repeating-linear-gradient(
        90deg,
        #ef4444 0 12px,
        #b91c1c 12px 24px
    );
}

.filter-preview-pirate .filter-preview-detail-two {
    left: 24px;
    top: 34px;
    width: 22px;
    height: 16px;
    border-radius: 10px;
    background: #111827;
    box-shadow:
        34px 26px 0 -7px #5b3716,
        44px 26px 0 -7px #5b3716,
        39px 30px 0 -5px #5b3716;
}

.filter-preview-glasses::before {
    background: linear-gradient(135deg, #e0f2fe 0%, #c4b5fd 100%);
}

.filter-preview-glasses .filter-preview-detail-one {
    left: 18px;
    top: 28px;
    width: 24px;
    height: 18px;
    border-radius: 8px;
    border: 3px solid #111827;
    background: rgba(15, 23, 42, 0.15);
    box-shadow:
        38px 0 0 -3px rgba(15, 23, 42, 0.15),
        38px 0 0 0 #111827;
}

.filter-preview-glasses .filter-preview-detail-two {
    left: 43px;
    top: 35px;
    width: 14px;
    height: 3px;
    background: #111827;
    border-radius: 999px;
}

.filter-preview-crown::before {
    background: linear-gradient(135deg, #fff7cc 0%, #fdba74 100%);
}

.filter-preview-crown .filter-preview-detail-one {
    left: 50%;
    top: 4px;
    width: 76px;
    height: 34px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, #fde047 0%, #f59e0b 100%);
    clip-path: polygon(
        0 100%,
        10% 46%,
        24% 100%,
        40% 14%,
        50% 100%,
        60% 14%,
        76% 100%,
        90% 46%,
        100% 100%
    );
}

.filter-preview-crown .filter-preview-detail-two {
    left: 50%;
    top: 31px;
    width: 60px;
    height: 8px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: #d97706;
}

.filter-preview-hat-white {
    --hat-preview-bg-start: #f8fafc;
    --hat-preview-bg-end: #cbd5e1;
    --hat-top-start: #ffffff;
    --hat-top-end: #dbe4ee;
    --hat-brim-start: #f8fafc;
    --hat-brim-end: #cbd5e1;
    --hat-band: #94a3b8;
    --hat-shadow: rgba(15, 23, 42, 0.16);
}

.filter-preview-hat-red {
    --hat-preview-bg-start: #fee2e2;
    --hat-preview-bg-end: #fecaca;
    --hat-top-start: #ef4444;
    --hat-top-end: #991b1b;
    --hat-brim-start: #f87171;
    --hat-brim-end: #b91c1c;
    --hat-band: #7f1d1d;
    --hat-shadow: rgba(127, 29, 29, 0.22);
}

.filter-preview-hat-black {
    --hat-preview-bg-start: #e2e8f0;
    --hat-preview-bg-end: #cbd5e1;
    --hat-top-start: #334155;
    --hat-top-end: #020617;
    --hat-brim-start: #1e293b;
    --hat-brim-end: #0f172a;
    --hat-band: #64748b;
    --hat-shadow: rgba(15, 23, 42, 0.28);
}

.filter-preview-hat-yellow {
    --hat-preview-bg-start: #fef9c3;
    --hat-preview-bg-end: #fde68a;
    --hat-top-start: #fde047;
    --hat-top-end: #eab308;
    --hat-brim-start: #fef08a;
    --hat-brim-end: #f59e0b;
    --hat-band: #b45309;
    --hat-shadow: rgba(180, 83, 9, 0.2);
}

.filter-preview-hat-blue {
    --hat-preview-bg-start: #dbeafe;
    --hat-preview-bg-end: #bfdbfe;
    --hat-top-start: #60a5fa;
    --hat-top-end: #1d4ed8;
    --hat-brim-start: #93c5fd;
    --hat-brim-end: #2563eb;
    --hat-band: #1e40af;
    --hat-shadow: rgba(30, 64, 175, 0.22);
}

.filter-preview-hat-green {
    --hat-preview-bg-start: #dcfce7;
    --hat-preview-bg-end: #bbf7d0;
    --hat-top-start: #4ade80;
    --hat-top-end: #15803d;
    --hat-brim-start: #86efac;
    --hat-brim-end: #16a34a;
    --hat-band: #166534;
    --hat-shadow: rgba(22, 101, 52, 0.2);
}

.filter-card-preview[class*="filter-preview-hat-"]::before {
    background: linear-gradient(
        135deg,
        var(--hat-preview-bg-start) 0%,
        var(--hat-preview-bg-end) 100%
    );
}

.filter-card-preview[class*="filter-preview-hat-"] .filter-preview-face {
    top: 28px;
}

.filter-card-preview[class*="filter-preview-hat-"] .filter-preview-detail-one {
    left: 50%;
    top: 10px;
    width: 54px;
    height: 28px;
    transform: translateX(-50%) rotate(-8deg);
    border-radius: 18px 18px 12px 12px;
    background: linear-gradient(
        180deg,
        var(--hat-top-start) 0%,
        var(--hat-top-end) 100%
    );
    box-shadow:
        0 8px 12px -10px var(--hat-shadow),
        inset 0 -3px 0 rgba(15, 23, 42, 0.08);
    z-index: 2;
}

.filter-card-preview[class*="filter-preview-hat-"]
    .filter-preview-detail-one::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 4px;
    width: 18px;
    height: 8px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

.filter-card-preview[class*="filter-preview-hat-"]
    .filter-preview-detail-one::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 4px;
    width: 42px;
    height: 6px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: var(--hat-band);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2);
}

.filter-card-preview[class*="filter-preview-hat-"] .filter-preview-detail-two {
    left: 50%;
    top: 29px;
    width: 56px;
    height: 10px;
    transform: translateX(-50%) rotate(-8deg);
    background: linear-gradient(
        180deg,
        var(--hat-brim-start) 0%,
        var(--hat-brim-end) 100%
    );
    border-radius: 999px;
    box-shadow: 0 9px 0 -7px var(--hat-shadow);
    z-index: 2;
}

.filter-card-preview[class*="filter-preview-hat-"]
    .filter-preview-detail-two::before {
    content: "";
    position: absolute;
    left: -18px;
    top: -1px;
    width: 28px;
    height: 14px;
    border-radius: 100% 20% 60% 30%;
    transform: rotate(-18deg);
    background: linear-gradient(
        180deg,
        var(--hat-brim-start) 0%,
        var(--hat-brim-end) 100%
    );
    box-shadow: inset -2px -1px 0 rgba(15, 23, 42, 0.08);
}

.filter-card-preview[class*="filter-preview-hat-"]
    .filter-preview-detail-two::after {
    content: "";
    position: absolute;
    right: -18px;
    top: -1px;
    width: 28px;
    height: 14px;
    border-radius: 20% 100% 30% 60%;
    transform: rotate(18deg);
    background: linear-gradient(
        180deg,
        var(--hat-brim-start) 0%,
        var(--hat-brim-end) 100%
    );
    box-shadow: inset 2px -1px 0 rgba(15, 23, 42, 0.08);
}

.filter-preview-mustache::before {
    background: linear-gradient(135deg, #ecfccb 0%, #cbd5e1 100%);
}

.filter-preview-mustache .filter-preview-detail-one {
    left: 50%;
    bottom: 24px;
    width: 42px;
    height: 18px;
    transform: translateX(-50%);
    border-radius: 0 0 12px 12px;
    background: #5b3716;
    clip-path: polygon(
        0 38%,
        22% 12%,
        46% 68%,
        50% 78%,
        54% 68%,
        78% 12%,
        100% 38%,
        84% 100%,
        50% 72%,
        16% 100%
    );
}

.filter-preview-alien::before {
    background: linear-gradient(135deg, #c7f9cc 0%, #34d399 100%);
}

.filter-preview-alien .filter-preview-face {
    background: #86efac;
}

.filter-preview-alien .filter-preview-detail-one,
.filter-preview-alien .filter-preview-detail-two {
    top: 30px;
    width: 24px;
    height: 18px;
    border-radius: 100% 0;
    background: #111827;
}

.filter-preview-alien .filter-preview-detail-one {
    left: 22px;
    transform: rotate(-26deg);
}

.filter-preview-alien .filter-preview-detail-two {
    right: 22px;
    transform: rotate(26deg);
}

.filter-preview-alien .filter-preview-face::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -16px;
    width: 38px;
    height: 18px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: #34d399;
}

.filter-preview-rabbit .filter-preview-detail-two {
    box-shadow:
        -12px 0 0 rgba(255, 255, 255, 0.82),
        12px 0 0 rgba(255, 255, 255, 0.82),
        0 -12px 0 -8px #ff8db2;
}

.filter-preview-cat .filter-preview-face {
    background: #f8b77f;
}

.filter-preview-cat .filter-preview-detail-one {
    background: linear-gradient(
        90deg,
        transparent 0 10%,
        #92400e 10% 18%,
        transparent 18% 32%,
        #92400e 32% 40%,
        transparent 40% 60%,
        #92400e 60% 68%,
        transparent 68% 82%,
        #92400e 82% 90%,
        transparent 90%
    );
}

.filter-preview-cat .filter-preview-detail-two {
    background: #92400e;
    box-shadow:
        0 8px 0 #92400e,
        0 -8px 0 #92400e;
}

.filter-preview-dino .filter-preview-face {
    background: #86efac;
}

.filter-preview-scene {
    background:
        radial-gradient(
            circle at 30% 30%,
            rgba(255, 255, 255, 0.22),
            transparent 48%
        ),
        linear-gradient(145deg, #1f2937 0%, #111827 100%);
}

.filter-preview-scene::before {
    opacity: 0.3;
}

.filter-scene-ring {
    position: absolute;
    inset: 16px;
    border-radius: 22px;
    border: 2px solid rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 24px rgba(255, 255, 255, 0.08);
}

.filter-scene-icon {
    position: absolute;
    inset: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
    text-shadow: 0 8px 18px rgba(15, 23, 42, 0.45);
}

.filter-preview-fisheye {
    background: radial-gradient(
        circle at 50% 45%,
        rgba(255, 255, 255, 0.26),
        rgba(34, 197, 94, 0.08) 36%,
        rgba(15, 23, 42, 0.96) 82%
    );
}

.filter-preview-fisheye .filter-scene-ring {
    inset: 12px;
    border-radius: 50%;
    border-width: 3px;
    box-shadow:
        inset 0 0 30px rgba(255, 255, 255, 0.16),
        0 0 18px rgba(34, 197, 94, 0.2);
}

.filter-preview-water {
    background:
        linear-gradient(
            180deg,
            rgba(14, 165, 233, 0.95),
            rgba(29, 78, 216, 0.88)
        ),
        linear-gradient(145deg, #0f172a 0%, #1e3a8a 100%);
}

.filter-preview-water::before {
    background: repeating-linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.16) 0 7px,
        transparent 7px 15px
    );
}

.filter-preview-star {
    background:
        radial-gradient(
            circle at 18% 24%,
            rgba(250, 204, 21, 0.8),
            transparent 18%
        ),
        radial-gradient(
            circle at 78% 28%,
            rgba(255, 255, 255, 0.55),
            transparent 12%
        ),
        linear-gradient(145deg, #111827 0%, #312e81 100%);
}

.filter-preview-snow {
    background:
        radial-gradient(
            circle at 22% 32%,
            rgba(255, 255, 255, 0.72),
            transparent 12%
        ),
        radial-gradient(
            circle at 76% 42%,
            rgba(255, 255, 255, 0.45),
            transparent 10%
        ),
        linear-gradient(145deg, #0f172a 0%, #334155 100%);
}

.filter-preview-hearts {
    background:
        radial-gradient(
            circle at 24% 28%,
            rgba(251, 113, 133, 0.52),
            transparent 14%
        ),
        radial-gradient(
            circle at 72% 24%,
            rgba(244, 114, 182, 0.38),
            transparent 18%
        ),
        linear-gradient(145deg, #4c0519 0%, #831843 100%);
}

.filter-preview-dream {
    background:
        radial-gradient(
            circle at 32% 24%,
            rgba(253, 224, 71, 0.35),
            transparent 18%
        ),
        radial-gradient(
            circle at 70% 28%,
            rgba(236, 72, 153, 0.32),
            transparent 20%
        ),
        linear-gradient(145deg, #312e81 0%, #a855f7 100%);
}

.filter-preview-neon {
    background:
        linear-gradient(
            135deg,
            rgba(34, 211, 238, 0.92),
            rgba(129, 140, 248, 0.26)
        ),
        linear-gradient(145deg, #020617 0%, #1f2937 100%);
}

.filter-preview-neon .filter-scene-ring {
    box-shadow:
        inset 0 0 20px rgba(34, 211, 238, 0.2),
        0 0 18px rgba(168, 85, 247, 0.28);
}

.appearance-panel-group {
    gap: 22px;
}

.appearance-preset-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.appearance-preset-option {
    border: 1px solid rgba(99, 102, 241, 0.16);
    background: linear-gradient(145deg, #f8fafc 0%, #eef2ff 100%);
    color: #312e81;
    border-radius: 16px;
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.appearance-preset-option:hover,
.appearance-preset-option:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(99, 102, 241, 0.12);
    outline: none;
}

.appearance-preset-option.is-selected {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    box-shadow: 0 14px 24px rgba(99, 102, 241, 0.24);
}

.appearance-control-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 15px;
}

.appearance-slider-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    border-radius: 18px;
    background: linear-gradient(
        160deg,
        rgba(255, 255, 255, 0.96),
        rgba(244, 247, 255, 0.96)
    );
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 12px 26px rgba(148, 163, 184, 0.12);
}

.appearance-slider-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #1f2937;
    font-size: 14px;
    font-weight: 700;
}

.appearance-slider-head strong {
    color: #4f46e5;
    font-size: 15px;
}

.appearance-slider-hint {
    color: #64748b;
    font-size: 12px;
    line-height: 1.45;
}

.appearance-range {
    width: 100%;
    accent-color: #6366f1;
}

@media (max-width: 575.98px) {
    .appearance-preset-grid,
    .appearance-control-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
