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

.mode-card {
    position: relative;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(23, 37, 30, 0.06);
    padding: 10px 5px;
    text-align: center;
    cursor: pointer;
    overflow: hidden;
}

.mode-card .icon {
    display: block;
    font-size: 22px;
    margin-bottom: 4px;
}

.mode-card strong {
    display: block;
    font-size: 11px;
    line-height: 1.2;
    letter-spacing: -0.2px;
}

.mode-card.active {
    border-color: #20a75b;
    background: #e8f8ee;
    box-shadow: 0 10px 20px rgba(32, 167, 91, 0.15);
}

.mode-card.pro-option {
    border-color: rgba(212, 145, 33, 0.35);
    background: linear-gradient(180deg, #fffdf7 0%, #fff7df 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.mode-card.pro-option::after {
    content: "PRO";
    position: absolute;
    top: 5px;
    right: 5px;
    padding: 2px 5px;
    border-radius: 999px;
    background: #17251e;
    color: #ffd66b;
    font-size: 8px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0;
}

.mode-card.pro-option.active {
    border-color: #d49121;
    background: #fff3c9;
    box-shadow: 0 10px 20px rgba(212, 145, 33, 0.18);
}

@media (max-height: 760px) {
    .mode-card {
        padding: 7px 4px;
        border-radius: 15px;
    }
}

.ingredient-analysis .scan-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #fff;
    border-radius: 28px;
    padding: 16px;
    box-shadow: 0 16px 38px rgba(23, 37, 30, 0.08);
}

.recommendation-results .recipe-card {
    background: #fff;
    border: 1px solid rgba(23, 37, 30, 0.06);
    border-radius: 24px;
    padding: 16px;
    box-shadow: 0 14px 34px rgba(23, 37, 30, 0.08);
}

.recommendation-results .recipe-card-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.recommendation-results .recipe-card h2 {
    font-size: 21px;
    line-height: 1.25;
    letter-spacing: -0.8px;
    color: #17251e;
}

.recipe-detail .hero-card,
.recipe-detail .section-card {
    background: #fff;
    border-radius: 24px;
    padding: 22px;
    margin-bottom: 16px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .07);
}

.recipe-detail .section-card h2 {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 800;
}

.payment-card-manager .card-page {
    padding: 20px 18px;
}

.payment-card-manager .card-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.payment-card-manager .payment-card {
    border-radius: 24px;

    padding: 22px 20px;

    color: #fff;

    position: relative;
    overflow: hidden;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.payment-card-manager .card-kb {
    background: linear-gradient(135deg, #7C4DFF, #512DA8);
}

.payment-card-manager .card-shinhan {
    background: linear-gradient(135deg, #1565C0, #0D47A1);
}

.payment-card-manager .card-hyundai {
    background: linear-gradient(135deg, #212121, #424242);
}

.payment-card-manager .card-samsung {
    background: linear-gradient(135deg, #1E88E5, #0D47A1);
}

.payment-card-manager .card-lotte {
    background: linear-gradient(135deg, #E53935, #B71C1C);
}

.payment-card-manager .card-woori {
    background: linear-gradient(135deg, #00ACC1, #006064);
}

.payment-card-manager .card-hana {
    background: linear-gradient(135deg, #43A047, #1B5E20);
}

.payment-card-manager .card-bc {
    background: linear-gradient(135deg, #5E35B1, #311B92);
}

.payment-card-manager .card-nh {
    background: linear-gradient(135deg, #8BC34A, #33691E);
}

.payment-card-manager .card-kakao {
    background: linear-gradient(135deg, #FDD835, #F9A825);
    color: #222;
}

.payment-card-manager .card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 34px;
}

.payment-card-manager .card-company {
    font-size: 15px;
    font-weight: 600;
}

.payment-card-manager .card-number {
    font-size: 22px;
    font-weight: 700;

    letter-spacing: 2px;

    margin-bottom: 28px;
}

.payment-card-manager .card-bottom {
    display: flex;
    justify-content: space-between;

    font-size: 14px;

    opacity: 0.9;

    margin-bottom: 22px;
}

.payment-card-manager .card-action {
    display: flex;
    gap: 10px;
}

.ingredient-selection .cart-summary-info {
    margin-top: 10px;

    font-size: 14px;
    font-weight: 600;

    color: #5c5c5c;
}

.ingredient-selection .cart-summary-info strong {
    color: #67c94f;
    font-size: 16px;
}

.ingredient-selection .cart-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1px solid #eee;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.05);
}

.inquiry-feed .contact-card {
    display: block;
    padding: 16px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
    text-decoration: none;
    color: inherit;
}

.dashboard .ai-result {
    flex: 1;
    min-height: 0;
    border-radius: 26px;
    background: #fff;
    padding: 14px;
    box-shadow: 0 16px 38px rgba(23, 37, 30, 0.08);
    border: 1px solid rgba(23, 37, 30, 0.06);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dashboard .result-head {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.dashboard .result-thumb {
    width: 48px;
    height: 48px;
    border-radius: 17px;
    background: linear-gradient(135deg, #e8f8ee, #fff3d9);
    display: grid;
    place-items: center;
    font-size: 25px;
    flex-shrink: 0;
}

.dashboard .result-head h3 {
    font-size: 16px;
    letter-spacing: -0.4px;
    line-height: 1.25;
}

.dashboard .result-head p {
    font-size: 12px;
    color: #78857d;
}

.dashboard .recipe-card {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    gap: 9px;
    padding: 10px;
    border-radius: 18px;
    background: #f8faf7;
    border: 1px solid rgba(23, 37, 30, 0.05);
}

.dashboard .recipe-card strong {
    display: block;
    font-size: 14px;
    letter-spacing: -0.3px;
}

.dashboard .recipe-card span {
    display: block;
    font-size: 11px;
    color: #7d897f;
}

.dashboard .recipe-card a {
    text-decoration: none;
}

.dashboard .bottom-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    flex-shrink: 0;
}

.dashboard .mini-card {
    border-radius: 22px;
    padding: 13px;
    background: #17251e;
    color: #fff;
    min-height: 90px;
    position: relative;
    overflow: hidden;
}

.dashboard .mini-card.expire {
    background: #fff;
    color: #17251e;
    border: 1px solid rgba(23, 37, 30, 0.06);
}

.dashboard .mini-card h3 {
    font-size: 14px;
    letter-spacing: -0.3px;
    margin-bottom: 6px;
}

.dashboard .mini-card p {
    font-size: 12px;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.72);
}

.dashboard .mini-card.expire p {
    color: #68766d;
}

.dashboard .mini-card .point {
    color: #ffd06c;
    font-weight: 950;
}

.dashboard .mini-card.expire .point {
    color: #ef7d17;
}

@media (max-height: 760px) {
    .dashboard .ai-result {
        padding: 11px;
        border-radius: 22px;
    }

    .dashboard .result-thumb {
        width: 42px;
        height: 42px;
    }

    .dashboard .recipe-card {
        padding: 8px;
    }

    .dashboard .bottom-panel {
        display: none;
    }
}

.profile-editor .edit-card {
    background: #fff;
    border-radius: 24px;
    padding: 22px;
    margin-bottom: 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.profile-editor .edit-card h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 22px;
}

.account-summary .summary-card {
    padding: 18px 10px;

    border-radius: 22px;

    background: #fff;

    text-align: center;

    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.account-summary .summary-card p {
    margin: 0 0 8px;

    font-size: 12px;
    color: #888;
}

.account-summary .summary-card strong {
    font-size: 24px;
    font-weight: 800;

    color: #4CAF50;
}

.article-feed .notice-card {
    padding: 18px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .08);
    cursor: pointer;
    transition: .25s;
}

.article-feed .notice-card:active {
    transform: scale(.98);
}

.article-feed .notice-card h3 {
    font-size: 17px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 8px;

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

.article-feed .notice-card p {
    font-size: 14px;
    line-height: 1.5;
    color: #6b7280;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-detail .notice-view-card {
    background: #fff;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
}

.recipe-catalog .recipe-card {
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: 0.18s ease;
}

.recipe-catalog .recipe-card:active {
    transform: scale(0.98);
}

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

    max-width: 420px;
    margin: 48px auto 0;
    padding: 38px 24px 28px;

    text-align: center;

    border-radius: 32px;

    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(16px);

    box-shadow:
        0 24px 60px rgba(61, 43, 20, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.auth-shell .login-card h1 {
    margin: 0 0 14px;

    color: #202020;

    font-size: 28px;
    font-weight: 900;
    line-height: 1.35;
    letter-spacing: -0.8px;
}

.auth-shell .login-card h1 span {
    color: #238650;
}

.auth-shell .login-card p {
    margin: 0 0 38px;

    color: #777;

    font-size: 15px;
    line-height: 1.7;
}

@media (max-width: 480px) {
    .auth-shell .login-card {
        margin-top: 34px;
        padding: 34px 20px 26px;
        border-radius: 28px;
    }

    .auth-shell .login-card h1 {
        font-size: 25px;
    }
}

.billing-overview .current-subscription-card {
    position: relative;
    padding: 24px;
    margin-bottom: 28px;
    border-radius: 26px;
    background: linear-gradient(135deg, #22c55e, #14b8a6);
    color: white;
    box-shadow: 0 18px 35px rgba(20, 184, 166, .28);
}

.billing-overview .current-subscription-card h3 {
    margin: 0;
    font-size: 28px;
}

.billing-overview .history-section h3 {
    margin: 0 0 14px;
    font-size: 18px;
    color: #0f172a;
}

.billing-overview .history-card {
    padding: 18px;
    margin-bottom: 14px;
    border-radius: 22px;
    background: white;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .07);
}

.billing-overview .history-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.billing-overview .history-top strong {
    font-size: 16px;
    color: #0f172a;
}

.billing-overview .history-top p {
    margin: 5px 0 0;
    font-size: 12px;
    color: #94a3b8;
}

.billing-overview .history-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 18px 0 14px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}

.billing-overview .history-price span {
    font-size: 13px;
    color: #64748b;
}

.billing-overview .history-price strong {
    font-size: 17px;
    color: #0f172a;
}

.billing-overview .history-card-info {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-top: 12px;
    padding-top: 12px;

    border-top: 1px dashed #e2e8f0;
}

.billing-overview .history-card-info span {
    font-size: 13px;
    color: #64748b;
}

.billing-overview .history-card-info strong {
    font-size: 14px;
    font-weight: 700;
    color: #334155;
}

.pricing-options .plan-card {
    background: #fff;
    border-radius: 22px;
    padding: 22px;
    margin-bottom: 16px;
    border: 1px solid #edf0ec;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.pricing-options .plan-card.active {
    border: 2px solid #4CAF50;
}

.pricing-options .plan-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
}

.pricing-options .plan-card li {
    font-size: 14px;
    color: #444;
    margin-bottom: 8px;
}

.subscribe-modal .card-register-link {
    display: block;
    margin: 6px 0 22px;
    padding: 14px;

    border-radius: 16px;
    background: #ecfdf5;

    color: #16a34a;
    font-size: 14px;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
}

.subscribe-modal .cardSwiper {
    width: 100%;
    padding: 4px 0 4px;
}

.subscribe-modal .cardSwiper .swiper-slide {
    width: 88%;
}

.subscribe-modal .cardSwiper .empty-card-slide {
    width: 88%;
}

.subscribe-modal .pay-card {
    width: 100%;
    height: 148px;
    padding: 20px;

    border: none;
    border-radius: 22px;

    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;

    text-align: left;
    cursor: pointer;

    box-shadow: 0 16px 35px rgba(34, 197, 94, .28);
    opacity: .6;
    transform: scale(.96);
    transition: .25s;

    cursor: grab;
}

.subscribe-modal .empty-pay-card {
    width: 100%;
    min-height: 148px;
    padding: 22px 18px;

    border: 1px dashed #86efac;
    border-radius: 22px;
    background: linear-gradient(180deg, #f7fee7, #ecfdf5);

    color: #166534;
    text-align: center;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.subscribe-modal .empty-card-icon {
    width: 46px;
    height: 46px;
    margin-bottom: 10px;

    border-radius: 16px;
    background: #dcfce7;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 24px;
}

.subscribe-modal .empty-pay-card strong {
    display: block;
    margin-bottom: 6px;

    color: #14532d;
    font-size: 16px;
    font-weight: 900;
}

.subscribe-modal .empty-pay-card p {
    margin: 0;

    color: #4b5563;
    font-size: 13px;
    line-height: 1.5;
}

.subscribe-modal .swiper-slide-active .pay-card,
.subscribe-modal .pay-card.active {
    opacity: 1;
    transform: scale(1);
    outline: 4px solid rgba(34, 197, 94, .2);
    cursor: grabbing;
}

.subscribe-modal .card-brand {
    font-size: 17px;
    font-weight: 900;
    margin-bottom: 34px;
}

.subscribe-modal .card-number {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 1px;
}

.subscribe-modal .card-owner {
    margin-top: 14px;
    font-size: 12px;
    font-weight: 700;
    opacity: .85;
}

.selectable-recipe-list .recipe-card {
    display: flex;
    align-items: center;
    gap: 14px;

    padding: 18px;

    border-radius: 24px;

    background: #fff;

    color: #222;
    text-decoration: none;

    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
}

.selectable-recipe-list .recipe-card em {
    font-style: normal;
    font-size: 26px;
    color: #bbb;
}
