@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;600;700;800;900&display=swap');

@font-face {
    font-family: 'RiaSans';
    src: url('../assets/fonts/RiaSans/RiaSans-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-display: swap;
}

/* ===================
   1. CSS Variables
   =================== */
:root {
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --pink: #C36262;
    --pink-dark: #9A1033;
    --purple: #9878b0;
    --blue: #4a90d9;
    --blue-light: #527B9E;
    --red: #e85a6a;
    --green: #5bc8a0;
    --bg: #FEFEFE;
    --text: #1c1c1c;
    --text-secondary: #999;
    --text-light: rgba(255, 255, 255, .85);
}

/* ===================
   2. Reset & Base
   =================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    height: 100%;
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
}

.hidden {
    display: none !important;
}

/* ===================
   3. Animations
   =================== */
@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

@keyframes heartPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.04);
    }
}

@keyframes modalPop {
    from {
        transform: scale(.85);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes successPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    60% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-8px);
    }

    75% {
        transform: translateX(8px);
    }
}

/* ===================
   4. Screen System
   =================== */
.screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    flex-direction: column;
    opacity: 0;
    transition: opacity .35s ease;
}

.screen.active {
    display: flex;
    opacity: 1;
}

/* ===================
   5. Splash Screen
   =================== */
.splash {
    background: #c5d5f0;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.splash__bg {
    position: absolute;
    inset: 0;
    background: url('../assets/splash-bg.png') center/cover no-repeat;
}

.splash__logo {
    position: relative;
    z-index: 2;
    width: 88%;
    animation: logoFloat 3s ease-in-out infinite;
}

.splash__footer {
    position: absolute;
    bottom: calc(40px + var(--safe-bottom));
    z-index: 2;
    font-size: 14px;
    color: rgba(100, 80, 140, .5);
    letter-spacing: 3px;
    font-weight: 300;
}

/* ===================
   6. PIN Screen
   =================== */
.pin {
    justify-content: center;
    align-items: center;
    padding-top: var(--safe-top);
}

.pin::after {
    content: "";
    position: absolute;
    width: 120%;
    height: 392px;
    left: 50%;
    bottom: -25%;
    transform: translateX(-50%);
    background: #E8CCEE;
    filter: blur(107.8px);
    z-index: -1;
}

.pin__title {
    font-size: 20px;
    font-weight: 500;
    color: #000;
    margin-bottom: 27px;
    letter-spacing: -0.3px;
}

.pin__dots {
    display: flex;
    gap: 12px;
    margin-bottom: 27px;
}

.pin__dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--text);
    transition: all .2s;
    opacity: 10%;
}

.pin__dot--filled {
    opacity: 100%;
}

.pin__hint {
    font-size: 14px;
    color: var(--text);
    margin-bottom: 90px;
    font-weight: 300;
}

.pin__pad {
    display: grid;
    grid-template-columns: repeat(3, 76px);
    gap: 20px 36px;
}

.pin__key {
    width: 76px;
    height: 76px;
    border: none;
    background: transparent;
    font-size: 24px;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    border-radius: 50%;
    transition: background .12s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
}

.pin__key:active {
    background: rgba(160, 140, 200, .18);
}

.pin__key--empty {
    pointer-events: none;
}

.pin__key--delete {
    font-size: 20px;
    color: #8070a0;
}

.pin__error {
    color: #d04060;
    font-size: 12px;
    min-height: 18px;
    margin-top: 20px;
    font-weight: 500;
}

/* ===================
   7. Main App Layout
   =================== */
.app {
    background: url('../assets/home-bg.png') center/cover no-repeat;
}

.app__content {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: calc(56px + var(--safe-bottom));
}

/* ===================
   8. Tab Bar
   =================== */
.tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 0, 0, .04);
    padding-bottom: var(--safe-bottom);
    z-index: 70;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 0 80px rgba(130, 73, 73, 0.14);
}

.tab-bar__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    cursor: pointer;
    color: #b9b9b9;
    font-size: 14px;
    font-weight: 400;
    transition: color .2s;
    border: none;
    background: transparent;
    font-family: inherit;
    gap: 3px;
}

.tab-bar__item--active {
    color: var(--pink-dark);
    font-weight: 500;
}

.tab-bar__item svg {
    width: 21px;
    height: 21px;
}

.tab-bar__item--active svg path {
    stroke: var(--pink-dark);
}

/* ===================
   9. Home Tab
   =================== */
.home {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: calc(100vh - 56px - var(--safe-bottom));
    overflow: hidden;
}

.home__logo {
    position: absolute;
    top: calc(var(--safe-top) + 60px);
    left: 0;
    right: 0;
    text-align: center;
    z-index: 5;
}

.home__logo img {
    width: 107px;
    height: auto;
}

.home__heart-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
}

.home__heart-img {
    width: 100%;
    height: 100%;
    opacity: 1;
    animation: heartPulse 2.5s ease-in-out infinite;
}

.home__heart-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-42%, -57%);
    font-family: 'RiaSans', 'Noto Sans KR', sans-serif;
    font-size: 60px;
    font-weight: 800;
    background: linear-gradient(180deg, #99ABF2 0%, #FFA5C9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    z-index: 3;
}

.home__message {
    font-size: 14px;
    color: #fff;
    text-align: center;
    font-weight: 400;
    line-height: 1.6;
}

/* .home__message strong {
    font-weight: 600;
    color: white;
} */

/* ===================
   10. Use Tab
   =================== */
.use {
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.use__logo {
    padding: calc(var(--safe-top) + 60px) 0 16px;
    text-align: center;
}

.use__logo img {
    width: 107px;
    height: auto;
}

.use__title {
    text-align: center;
    font-size: 14px;
    color: #fff;
    margin: 0 0 20px;
    font-weight: 300;
    transition: all .3s ease;
}

/* 하트 사용 완료 후: 전체 화면 딤 오버레이 */
.use--heart-used::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    z-index: 60;
    pointer-events: none;
    animation: dimFadeIn .4s ease;
}

@keyframes dimFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* 선택된 카드: 딤 위에 표시 */
.use--heart-used .profile-card:not(.profile-card--dimmed) {
    position: relative;
    z-index: 70;
}

/* 성공 메시지: 딤 위에 표시 */
.use--heart-used .use__title {
    position: relative;
    z-index: 70;
}

.use__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0 20px;
    margin: 0 auto;
    width: 100%;
}

/* Card flip container */
.profile-card {
    perspective: 800px;
    cursor: pointer;
    position: relative;
    transition: opacity .5s ease, filter .5s ease;
}

.profile-card:active .profile-card__inner {
    transform: scale(.96);
}

.profile-card--selected .profile-card__front {
    box-shadow: 0 0 0 3px var(--pink), 0 4px 20px rgba(232, 130, 154, .3);
}

/* Dim state for non-selected cards after heart use */
.profile-card--dimmed {
    opacity: 0.45;
    filter: brightness(0.7);
    pointer-events: none;
}

.profile-card__inner {
    position: relative;
    width: 100%;
    aspect-ratio: 0.72;
    transition: transform .6s ease, box-shadow .2s;
    transform-style: preserve-3d;
}

.profile-card--flipped .profile-card__inner {
    transform: rotateY(180deg);
}

/* Card faces - both fill the inner container absolutely */
.profile-card__front,
.profile-card__back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    border-radius: 27px;
    overflow: hidden;
    border: 2px solid #fff;
}

/* Front face (real photo + name) - visible by default */
.profile-card__front {
    background: white;
}

/* Back face (default silhouette) - hidden, shown on flip */
.profile-card__back {
    transform: rotateY(180deg);
    background: linear-gradient(180deg, #e8c8d8, #d4a0b8);
}

/* Back face default image */
.profile-card__back-photo {
    width: 100%;
    flex: 1;
    overflow: hidden;
}

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

/* Front face photo area */
.profile-card__photo {
    width: 100%;
    flex: 1;
    background: linear-gradient(180deg, #f0c0d4, #e8a0b8);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.profile-card__photo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 40%, rgba(255, 255, 255, 0.95) 100%);
    pointer-events: none;
    z-index: 1;
}

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

.profile-card__photo .placeholder {
    width: 100%;
    height: 100%;
    background: url('../assets/placeholder.png') center/cover no-repeat;
}

.profile-card__name {
    padding: 12px 8px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #150B2F;
    background: white;
    flex-shrink: 0;
}


/* ===================
   11. Heart Use Modal
   =================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 20px;
}

.modal-overlay--show {
    display: flex;
}

.modal-box {
    background: white;
    border-radius: 24px;
    padding: 28px 22px;
    width: 100%;
    max-width: 300px;
    text-align: center;
    animation: modalPop .3s ease;
}

.modal__target {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
}

.modal__sub {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 22px;
}

.modal__input-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    margin-bottom: 22px;
}

.modal__adj-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid #c8b8e0;
    background: white;
    font-size: 18px;
    font-weight: 700;
    color: #8070a0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
}

.modal__adj-btn:active {
    background: #f4f0fa;
}

.modal__heart-num {
    font-size: 38px;
    font-weight: 900;
    color: var(--pink);
    min-width: 50px;
}

.modal__actions {
    display: flex;
    gap: 8px;
}

.modal__btn {
    flex: 1;
    padding: 13px;
    border-radius: 14px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.modal__btn--cancel {
    background: #f0f0f0;
    color: #888;
}

.modal__btn--confirm {
    background: linear-gradient(135deg, var(--purple), var(--pink));
    color: white;
}

.modal__btn:active {
    transform: scale(.97);
}

/* ===================
   12. Success Overlay
   =================== */
.success {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 200;
    flex-direction: column;
}

.success--show {
    display: flex;
}

.success__bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #5050a0 0%, #8060a0 30%, #c088b0 60%, #d898b8 100%);
    opacity: .95;
}

.success__inner {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
}

.success__name {
    font-size: 17px;
    color: white;
    font-weight: 700;
    margin-bottom: 6px;
}

.success__msg {
    font-size: 15px;
    color: rgba(255, 255, 255, .85);
    font-weight: 400;
    line-height: 1.7;
}

.success__msg strong {
    color: white;
    font-weight: 700;
}

/* ===================
   13. History Tab (일반 유저)
   =================== */
#tabHistory {
    background: #fff;
    min-height: calc(100vh - 56px - var(--safe-bottom));
}

.history {
    padding: 20px 20px;
}

.history__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.history__badge {
    flex: 1;
    padding: 24px 16px;
    border-radius: 15px;
    background: linear-gradient(135deg, #7080c0, #c888a8);
    color: white;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    border: none;
}

.history__logout {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, .05);
    color: #aaa;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all .2s;
}

.history__logout:active {
    background: rgba(0, 0, 0, .1);
    color: #666;
}

.history__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.history-item {
    background: #fff;
    border-radius: 16px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
    border: 1px solid #eee;
}

.history-item__avatar {
    width: 70px;
    height: 70px;
    border-radius: 7px;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, #c8b0d8, #e0a8c0);
}

.history-item__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.history-item__info {
    flex: 1;
    min-width: 0;
}

.history-item__name {
    font-size: 16px;
    font-weight: 700;
    color: #1c1c1c;
}

.history-item__desc {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.history-item__right {
    text-align: right;
    flex-shrink: 0;
}

.history-item__amount {
    font-size: 15px;
    font-weight: 700;
}

.history-item__amount--plus {
    color: var(--blue-light);
}

.history-item__amount--minus {
    color: var(--pink);
}

.history-item__time {
    font-size: 10px;
    color: #bbb;
    margin-top: 3px;
}

.history__empty {
    text-align: center;
    color: #bbb;
    padding: 40px 0;
    font-size: 13px;
}

/* ===================
   14. Admin History Tab
   =================== */
.admin-history {
    padding: 20px 20px;
}

.admin-history__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.admin-history__toggle {
    flex: 1;
    display: flex;
    gap: 10px;
    overflow: hidden;
}

.admin-history__toggle-btn {
    flex: 1;
    padding: 16px 12px;
        border: 2px solid;
    background: #fff;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all .2s;
    border-radius: 15px;
}
.admin-history__toggle-btn-m {
    border-color: #8FB9DD;
}

.admin-history__toggle-btn-f {
    border-color: #E0A1B7;
}

.admin-history__toggle-btn--active-m {
    background: #8FB9DD;
    color: #fff;
}

.admin-history__toggle-btn--active-f {
    background: #E0A1B7;
    color: #fff;
}

.admin-history__member-card {
    background: #fff;
    border-radius: 16px;
    margin-bottom: 12px;
    overflow: hidden;
}

.admin-history__member-card--male {
    border: 1.5px solid #c5d8f0;
}

.admin-history__member-card--female {
    border: 1.5px solid #f5c8d4;
}

.admin-history__member-row {
    display: flex;
    align-items: center;
    padding: 16px;
    gap: 12px;
    cursor: pointer;
}

.admin-history__member-row:active {
    background: #f9f9f9;
}

.admin-history__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, #c8b0d8, #e0a8c0);
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-history__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-history__avatar-initial {
    color: white;
    font-weight: 700;
    font-size: 16px;
}

.admin-history__member-info {
    flex: 1;
    min-width: 0;
    padding-left: 12px;
    border-left: 1px solid #e0e0e0;
    margin-left: 2px;
}

.admin-history__member-pin {
    font-size: 11px;
    color: #aaa;
    font-weight: 400;
}

.admin-history__member-name {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    margin-top: 1px;
}

.admin-history__member-hearts {
    text-align: right;
    padding-left: 12px;
    border-left: 1px solid #e0e0e0;
}

.admin-history__hearts-label {
    font-size: 10px;
    color: #aaa;
}

.admin-history__hearts-count {
    font-size: 24px;
    font-weight: 800;
    color: #527B9E;
}

.admin-history__member-card--female .admin-history__hearts-count {
    color: #AC5A77;
}

.admin-history__hearts-unit {
    font-size: 12px;
    font-weight: 400;
    color: #888;
    margin-left: 2px;
}

.admin-history__expand {
    display: none;
    padding: 0 16px 16px;
    border-top: 1px solid #f0f0f0;
}

.admin-history__expand--open {
    display: block;
}

.admin-history__expand-row {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    align-items: center;
}

.admin-history__input {
    flex: 1;
    padding: 11px 14px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    background: #f8f8f8;
    color: #333;
    font-size: 13px;
    font-family: inherit;
    outline: none;
}

.admin-history__input::placeholder {
    color: #bbb;
}

.admin-history__input:focus {
    border-color: var(--blue);
    background: white;
}

.admin-history__btn {
    padding: 11px 18px;
    border-radius: 12px;
    border: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}

.admin-history__btn--grant {
    background: var(--blue);
    color: white;
}

.admin-history__btn--revoke {
    background: var(--pink);
    color: white;
}

.admin-history__btn--edit {
    background: var(--green);
    color: white;
}

.admin-history__btn:active {
    opacity: .8;
}

/* Add Member Button */
.admin-history__add-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--purple), var(--pink));
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all .2s;
}

.admin-history__add-btn:active {
    transform: scale(.92);
    opacity: .85;
}

/* Divider in expand area */
.admin-history__divider {
    height: 1px;
    background: #f0f0f0;
    margin: 14px 0 4px;
}

/* Edit section (photo + name) */
.admin-history__edit-section {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 12px;
}

.admin-history__edit-photo {
    flex-shrink: 0;
}

.admin-history__photo-upload {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    background: #f4f4f4;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    border: 2px dashed #ddd;
    transition: border-color .2s;
}

.admin-history__photo-upload:hover {
    border-color: var(--purple);
}

.admin-history__photo-upload img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-history__photo-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .35);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .2s;
    border-radius: 50%;
}

.admin-history__photo-upload:hover .admin-history__photo-overlay {
    opacity: 1;
}

.admin-history__edit-fields {
    flex: 1;
    min-width: 0;
}

/* ===================
   15. Admin Add Member Modal
   =================== */
.modal-box--wide {
    max-width: 340px;
}

.admin-form {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-form__photo-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.admin-form__photo-preview {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    background: #f4f4f4;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #ddd;
}

.admin-form__photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-form__photo-btn {
    font-size: 12px;
    color: var(--purple);
    font-weight: 600;
    cursor: pointer;
    padding: 4px 12px;
    border-radius: 8px;
    transition: background .2s;
}

.admin-form__photo-btn:hover {
    background: rgba(152, 120, 176, .1);
}

.admin-form__row {
    display: flex;
    gap: 8px;
}

.admin-form__row--inline {
    justify-content: center;
    gap: 12px;
}

.admin-form__input {
    flex: 1;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    background: #f8f8f8;
    color: #333;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color .2s;
}

.admin-form__input:focus {
    border-color: var(--purple);
    background: white;
}

.admin-form__input::placeholder {
    color: #bbb;
}

.admin-form__radio {
    cursor: pointer;
}

.admin-form__radio input {
    display: none;
}

.admin-form__radio-label {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    border: 1.5px solid #e0e0e0;
    color: #999;
    transition: all .2s;
}

.admin-form__radio input:checked+.admin-form__radio-label--m {
    background: linear-gradient(135deg, #5b8cf0, #7080c0);
    color: white;
    border-color: transparent;
}

.admin-form__radio input:checked+.admin-form__radio-label--f {
    background: linear-gradient(135deg, #e8829a, #d06080);
    color: white;
    border-color: transparent;
}

/* ===================
   16. Toast
   =================== */
.toast {
    position: fixed;
    top: calc(var(--safe-top) + 14px);
    left: 50%;
    transform: translateX(-50%) translateY(-80px);
    background: rgba(50, 40, 80, .92);
    color: white;
    padding: 10px 22px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    z-index: 300;
    transition: transform .3s ease;
    white-space: nowrap;
    backdrop-filter: blur(10px);
}

.toast--show {
    transform: translateX(-50%) translateY(0);
}

.toast--error {
    background: rgba(200, 60, 80, .9);
}