/* Layout: usr 공통 기능 스타일 */

.app {
    width: 100%;
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    background:
        radial-gradient(circle at 20% 0%, rgba(46, 196, 117, 0.18), transparent 32%),
        radial-gradient(circle at 90% 15%, rgba(255, 188, 73, 0.18), transparent 28%),
        #f7faf5;
}

.mobile-page {
    width: 100%;
    max-width: var(--usr-page-max-width);
    min-height: 100dvh;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.title-wrap h1 {
    font-size: 34px;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin: 10px 0 8px;
}

.title-wrap h1 span {
    color: #20a75b;
}

.title-wrap p {
    font-size: 14px;
    color: #5d6b62;
    line-height: 1.5;
}

.ingredient-analysis .preference-link {
    display: block;
    margin-top: 8px;
    color: #20a75b;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.45;
    text-align: right;
    text-decoration: none;
}

.mode-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-shrink: 0;
}

.section-title h2 {
    font-size: 17px;
    letter-spacing: -0.5px;
}

.section-title a {
    color: #20a75b;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
}

/* 페이지 제목의 기본형. 화면별 차이는 아래의 작은 오버라이드만 사용한다. */
.page-title {
    margin-bottom: 22px;
}

.page-title h1 {
    margin: 0 0 6px;
    font-size: 28px;
    font-weight: 800;
}

.page-title p {
    margin: 0;
    font-size: 14px;
    color: #777;
}

.contact-page {
    padding: 20px 18px;
}

.page-title--compact h2 {
    margin: 0 0 6px;
    font-size: 22px;
}

.page-title--compact p {
    font-size: 13px;
    color: #6b7280;
}

.notice-page {
    padding: 22px 18px;
}

.notice-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.notice-date {
    margin-left: auto;
    color: #9ca3af;
    font-size: 12px;
}

@media (min-width: 700px) {
    .mobile-page {
        margin: 20px 0;
        border-radius: 34px;
        background: rgba(255, 255, 255, 0.44);
        box-shadow: 0 24px 70px rgba(23, 37, 30, 0.12);
    }
}

@media (max-height: 760px) {
    .mobile-page {
        gap: 9px;
        padding-block: 10px;
    }

    .title-wrap h1 {
        font-size: 27px;
        margin-bottom: 5px;
    }

    .title-wrap p {
        font-size: 13px;
    }
}

.fridge_container {
    position: absolute;
    left: 45px;
    top: 20px;
    width: 80px;
    height: 130px;
    background: #f8fafc;
    border-radius: 14px;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.fridge_container::before {
    content: "";
    position: absolute;
    top: 55px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #cbd5e1;
}

.fridge-door {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #ffffff, #e2e8f0);
    border-radius: 14px;
    transform-origin: left center;
    animation: doorOpen--loading 1.8s ease-in-out infinite;
}

.fridge-handle {
    position: absolute;
    right: 10px;
    top: 35px;
    width: 6px;
    height: 45px;
    background: #94a3b8;
    border-radius: 20px;
}

.fridge-light {
    position: absolute;
    left: 10px;
    top: 15px;
    width: 60px;
    height: 100px;
    background: rgba(250, 204, 21, 0.25);
    border-radius: 50%;
    filter: blur(12px);
    animation: lightPulse--loading 1.8s ease-in-out infinite;
}

.ingredient-analysis .camera-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.ingredient-analysis .price-unit {
    font-size: 18px;
    font-weight: 900;
    color: #20a75b;
}

.ingredient-analysis .ingredient-box {
    position: relative;
    width: 90%;
    max-width: 420px;

    background: #fff;
    border-radius: 24px;

    padding: 28px 24px;

    z-index: 2;

    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);

    animation: modalUp--aiRecipe .25s ease;
}

.ingredient-analysis .ingredient-close {
    position: absolute;
    top: 18px;
    right: 18px;

    border: none;
    background: none;

    font-size: 18px;
    cursor: pointer;
}

.ingredient-analysis .ingredient-title {
    text-align: center;
    font-size: 24px;
    font-weight: 700;

    margin-bottom: 8px;
}

.ingredient-analysis .ingredient-subtitle {
    text-align: center;
    color: #666;

    margin-bottom: 22px;
}

.ingredient-analysis .ingredient-confirm {
    width: 100%;
    height: 52px;

    border: none;
    border-radius: 14px;

    background: #4CAF50;
    color: #fff;

    font-size: 16px;
    font-weight: 700;

    cursor: pointer;
}

.ingredient-analysis .example-box {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);

    width: calc(100% - 40px);
    max-width: 380px;

    background: #fff;
    border-radius: 22px;
    padding: 24px 18px 18px;

    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
}

.ingredient-analysis .example-close {
    position: absolute;
    top: 12px;
    right: 14px;

    border: none;
    background: none;
    font-size: 26px;
    cursor: pointer;
}

.ingredient-analysis .example-box h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.ingredient-analysis .example-box p {
    margin: 0 0 16px;
    color: #6b7280;
    font-size: 14px;
}

.ingredient-analysis .manual-recipe-link {
    display: block;
    font-size: 14px;
    color: #16a34a;
    text-decoration: none;
}

.recommendation-results .recipe-number {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    background: #e8f8ee;
    color: #15904d;
    font-size: 11px;
    font-weight: 900;
    margin-bottom: 8px;
}

.recommendation-results .recipe-info {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.recommendation-results .recipe-info span {
    padding: 6px 9px;
    border-radius: 999px;
    background: #f4f7f2;
    color: #52635a;
    font-size: 12px;
    font-weight: 800;
}

.recommendation-results .recipe-step-box {
    background: #f8fbf6;
    border-radius: 18px;
    padding: 13px;
}

.recommendation-results .recipe-step-box h3 {
    font-size: 14px;
    margin-bottom: 8px;
    color: #20a75b;
}

.recommendation-results .recipe-step-box ol {
    padding-left: 18px;
    margin: 0;
}

.recommendation-results .recipe-step-box li {
    font-size: 14px;
    line-height: 1.55;
    color: #3d4b43;
    margin-bottom: 6px;
}

.recommendation-results .recipe-step-box li:last-child {
    margin-bottom: 0;
}

.recommendation-results .recipe-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.recommendation-results .recipe-title-row h2 {
    margin: 0;
}

.recommendation-results .missing-box {
    position: relative;

    margin-top: 18px;

    padding: 24px 16px 16px;

    border-radius: 18px;

    border: 2px solid #ffd89a;

    background: #fffaf2;
}

.recommendation-results .missing-box-title {
    position: absolute;

    top: -12px;
    left: 14px;

    padding: 4px 12px;

    border-radius: 999px;

    background: #ffb84d;

    color: #fff;

    font-size: 13px;
    font-weight: 800;

    box-shadow: 0 4px 10px rgba(255, 184, 77, .28);
}

.recommendation-results .missing-box-content {
    display: flex;
    flex-wrap: wrap;

    gap: 10px;
}

.recipe-detail .sub-title {
    margin: 0 0 4px;
    font-size: 13px;
    color: #6caf5f;
    font-weight: 700;
}

.recipe-detail .step-num {
    flex: 0 0 30px;
    height: 30px;
    border-radius: 50%;
    background: #4caf50;
    color: #fff;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.recipe-detail .bottom-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.recipe-detail .ingredient-left,
.recipe-detail .ingredient-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.recipe-detail .ingredient-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.payment-card-manager .gradient-dark {
    background: linear-gradient(135deg, #2D3436, #000000);
}

.ingredient-selection .cart-info {
    flex: 1;
}

.ingredient-selection .cart-info h2 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 800;
}

.ingredient-selection .cart-info p {
    display: flex;
    gap: 8px;
    margin: 4px 0;
    font-size: 13px;
    color: #777;
}

.ingredient-selection .cart-info p strong {
    color: #333;
    font-weight: 700;
}

.inquiry-form .page-title {
    margin-bottom: 24px;
}

.inquiry-feed .page-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
}

.inquiry-feed .contact-title {
    display: block;
    font-size: 16px;
    margin-bottom: 8px;
}

.inquiry-feed .contact-content {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.45;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard .recipe-content {
    flex: 1;
}

.dashboard .recipe-content strong {
    display: block;

    font-size: 16px;
    font-weight: 700;

    margin-bottom: 6px;
}

.profile-editor .member-edit-wrap {
    padding: 24px 18px;
}

.profile-editor .page-title {
    margin-bottom: 28px;
}

.profile-editor .page-title h1 {
    font-weight: 700;
    margin-bottom: 8px;
}

.profile-editor .withdraw-section {
    margin-top: 34px;
    padding: 18px 0 8px;
    text-align: center;
    border-top: 1px solid #f0f0f0;
}

.profile-editor .withdraw-section p {
    margin-bottom: 8px;
    font-size: 12px;
    color: #aaa;
}

.account-summary .mypage {
    padding: 18px;
}

.account-summary .mypage-profile {
    margin-bottom: 28px;
}

.page-title--article {
    margin-bottom: 24px;
}

.page-title--article h1 {
    font-size: 26px;
    margin-bottom: 8px;
    color: #111827;
}

.page-title--article p {
    color: #6b7280;
}

.article-feed .notice-important {
    border-left: 4px solid #ef4444;
    background: #fff5f5;
}

.article-detail .notice-view-title {
    margin-top: 14px;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.4;
    color: #222;
}

.article-detail .notice-view-content {
    margin-top: 24px;
    font-size: 15px;
    line-height: 1.8;
    color: #444;
    word-break: break-word;
}

.article-detail .notice-view-bottom {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.recipe-catalog .recipe-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    color: inherit;
    text-decoration: none;
}

.recipe-catalog .recipe-content {
    flex: 1;
    min-width: 0;
}

.recipe-catalog .recipe-top {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 6px;
}

.recipe-catalog .recipe-number {
    padding: 4px 8px;
    border-radius: 999px;
    background: #f0f8ef;
    color: #3f9444;
    font-size: 11px;
    font-weight: 800;
}

.recipe-catalog .recipe-title {
    display: block;
    margin-bottom: 9px;
    font-size: 17px;
    font-weight: 900;
    color: #222;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recipe-catalog .recipe-action {
    display: flex;
    align-items: center;
    gap: 3px;
    color: #4CAF50;
    font-size: 13px;
    font-weight: 800;
}

.recipe-catalog .recipe-action b {
    font-size: 22px;
    line-height: 1;
}

.recipe-catalog .price-unit {
    position: absolute;
    left: 14px;
    top: 50%;

    transform: translateY(-50%);

    color: #888;
    font-size: 14px;
    font-weight: 700;
}

.auth-shell {
    position: relative;
    min-height: 100vh;
    overflow: hidden;

    padding: 18px;

    background:
        radial-gradient(circle at 20% 10%, rgba(255, 223, 154, 0.45), transparent 28%),
        radial-gradient(circle at 85% 18%, rgba(143, 213, 162, 0.35), transparent 26%),
        linear-gradient(180deg, #fff8ea 0%, #ffffff 58%);
}

.auth-shell .login-header {
    position: relative;
    z-index: 2;

    height: 44px;

    display: flex;
    align-items: center;
}

.billing-overview .plan-price {
    margin: 8px 0 18px;
    font-size: 15px;
}

.billing-overview .plan-price strong {
    font-size: 24px;
}

.pricing-options .plan-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.pricing-options .plan-top strong {
    font-size: 18px;
    color: #222;
}

.pricing-options .desc {
    font-size: 14px;
    color: #777;
    margin: 0 0 16px;
}

.pricing-options .price {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pricing-options .price del {
    color: #9ca3af;
    font-size: 15px;
}

.pricing-options .price .arrow {
    color: #22c55e;
    font-weight: 700;
}

.pricing-options .price strong {
    color: #111827;
    font-size: 28px;
    font-weight: 800;
}

.pricing-options .price .period {
    color: #666;
}

.selectable-recipe-list .recipe-info {
    flex: 1;
    min-width: 0;
}

.selectable-recipe-list .recipe-head {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 8px;
}

.selectable-recipe-list .recipe-head h2 {
    margin: 0;

    font-size: 16px;
    font-weight: 800;

    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
