/* ===== Google Fonts ===== */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800&display=swap');

/* ===== CSS Variables (Pastel Cartoon Theme) ===== */
:root {
    --pink: #FF85A2;
    --pink-dark: #E8708E;
    --pink-light: #FFD4E0;
    --peach: #FFB38A;
    --peach-light: #FFE8D6;
    --yellow: #FFE5A0;
    --mint: #7EC8A4;
    --mint-light: #D4F0E4;
    --lavender: #B8A9E8;
    --lavender-light: #E8E4F8;
    --sky: #A8D8EA;
    --sky-light: #DEF0F7;
    --cream: #FFF8F0;
    --white: #FFFFFF;
    --charcoal: #4A4A4A;
    --gray: #9E9E9E;
    --light-gray: #F0EDE8;

    --primary: var(--pink);
    --primary-dark: var(--pink-dark);
    --primary-light: var(--pink-light);
    --success: var(--mint);
    --danger: #FF6B6B;
    --warning: var(--peach);
    --bg: var(--cream);
    --text: var(--charcoal);
    --text-light: var(--gray);
    --border: #F0E8E0;

    --radius-xs: 8px;
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --shadow-xs: 0 1px 3px rgba(0,0,0,0.04);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.10);
    --shadow-glow: 0 0 20px rgba(255,133,162,0.3);
}

* { box-sizing: border-box; }

body {
    font-family: 'Nunito', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    line-height: 1.5;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-thumb { background: var(--pink-light); border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }

/* ===== Header ===== */
.app-header {
    background: linear-gradient(135deg, var(--pink), var(--peach));
    color: #fff;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: var(--shadow-md);
}
.app-header h1 { margin: 0; font-size: 18px; font-weight: 700; }
.app-header a { color: #fff; text-decoration: none; font-weight: 600; }
.header-back { font-size: 20px; cursor: pointer; font-weight: 700; user-select: none; }

/* ===== Bottom Nav (3-tab) ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    display: flex;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    border-top: 1px solid rgba(255,133,162,0.15);
    z-index: 99;
    padding: 6px 0;
    padding-bottom: max(6px, env(safe-area-inset-bottom));
    box-shadow: 0 -2px 16px rgba(0,0,0,0.06);
}
.bottom-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4px 0;
    color: var(--text-light);
    text-decoration: none;
    font-size: 10px;
    font-weight: 600;
    position: relative;
}
.bottom-nav a.active { color: var(--pink); }
.bottom-nav a.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: var(--pink);
    border-radius: 2px;
}
.bottom-nav .nav-icon { font-size: 20px; margin-bottom: 1px; }

/* ===== Category Tabs (Pill Style) ===== */
.cat-tabs {
    display: flex;
    overflow-x: auto;
    background: var(--white);
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding: 8px 12px;
    gap: 6px;
    position: sticky;
    top: 44px;
    z-index: 50;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: var(--shadow-xs);
}
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab {
    flex-shrink: 0;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--charcoal);
    text-decoration: none;
    border-radius: var(--radius-full);
    background: var(--bg);
    transition: all 0.2s ease;
}
.cat-tab.active {
    color: #fff;
    background: linear-gradient(135deg, var(--pink), var(--peach));
    box-shadow: var(--shadow-glow);
}

/* ===== Dish Card ===== */
.dish-list { padding: 12px; }
.dish-card {
    display: flex;
    background: var(--white);
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}
.dish-card:active { transform: scale(0.98); }
.dish-card.reveal { opacity: 0; transform: translateY(20px); }
.dish-card.reveal.visible { opacity: 1; transform: translateY(0); transition: opacity 0.5s ease, transform 0.5s ease; }

.dish-img {
    width: 110px;
    height: 110px;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--pink-light), var(--peach-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pink);
    font-size: 36px;
    object-fit: cover;
}
.dish-img img { width: 100%; height: 100%; object-fit: cover; }
.dish-info {
    flex: 1;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.dish-name { font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.dish-desc { font-size: 12px; color: var(--text-light); margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dish-bottom { display: flex; align-items: center; justify-content: space-between; }
.dish-price { color: var(--pink); font-size: 16px; font-weight: 800; }
.dish-price::before { content: '¥'; font-size: 12px; font-weight: 600; }

/* Hot badge */
.dish-card .hot-badge {
    position: absolute; top: 8px; right: -28px;
    background: linear-gradient(135deg, var(--pink), #FF6B6B);
    color: #fff; font-size: 10px; font-weight: 700;
    padding: 2px 28px; transform: rotate(45deg);
}

/* ===== Cart Controls ===== */
.cart-ctrl { display: flex; align-items: center; gap: 8px; }
.cart-ctrl button {
    width: 30px; height: 30px;
    border-radius: 50%;
    border: 2px solid var(--pink);
    background: #fff;
    color: var(--pink);
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: all 0.15s ease;
    user-select: none;
}
.cart-ctrl button:active { background: var(--pink-light); transform: scale(0.9); }
.cart-ctrl .qty { font-size: 14px; font-weight: 700; min-width: 22px; text-align: center; color: var(--charcoal); }
.add-btn {
    background: linear-gradient(135deg, var(--pink), var(--peach)) !important;
    color: #fff !important;
    border: none !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    box-shadow: var(--shadow-glow);
}
.add-btn:active { transform: scale(0.85) !important; }

/* ===== Cart Bar (Floating, Glass) ===== */
.cart-bar {
    position: fixed;
    bottom: 56px;
    left: 8px;
    right: 8px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(12px);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: var(--radius-full);
    z-index: 98;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255,133,162,0.2);
}
.cart-bar-info { display: flex; align-items: center; gap: 10px; }
.cart-bar-badge {
    background: linear-gradient(135deg, var(--pink), var(--peach));
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: var(--shadow-glow);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}
.cart-bar-badge.bounce { animation: badgeBounce 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
.cart-bar-price { color: var(--pink); font-size: 18px; font-weight: 800; }
.cart-bar-price::before { content: '¥'; font-size: 12px; }
.btn-checkout {
    background: linear-gradient(135deg, var(--pink), var(--peach));
    color: #fff;
    border: none;
    border-radius: var(--radius-full);
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow-glow);
    transition: transform 0.2s ease;
}
.btn-checkout:active { transform: scale(0.95); }

/* ===== Buttons ===== */
.btn-primary {
    background: linear-gradient(135deg, var(--pink), var(--peach));
    color: #fff;
    border: none;
    border-radius: var(--radius-full);
    padding: 11px 24px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.btn-primary:active { transform: translateY(0) scale(0.97); }
.btn-outline {
    background: #fff;
    color: var(--pink);
    border: 2px solid var(--pink);
    border-radius: var(--radius-full);
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-outline:hover { background: var(--pink-light); }
.btn-outline:active { transform: scale(0.97); }
.btn-danger {
    background: var(--danger);
    color: #fff;
    border: none;
    border-radius: var(--radius-full);
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-danger:active { transform: scale(0.97); }
.btn-sm { padding: 5px 14px; font-size: 12px; border-radius: var(--radius-full); }
.btn-success {
    background: var(--mint);
    color: #fff;
    border: none;
    border-radius: var(--radius-full);
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

/* ===== Order Card ===== */
.order-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 10px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease;
}
.order-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.order-no { font-size: 13px; color: var(--text-light); }
.order-status { font-size: 11px; padding: 4px 10px; border-radius: var(--radius-full); font-weight: 700; }
.status-pending { background: #FFF3E0; color: #F59E0B; }
.status-accepted { background: var(--sky-light); color: #3B82F6; }
.status-completed { background: var(--mint-light); color: #10B981; }
.status-cancelled { background: #FEE2E2; color: #EF4444; }
.order-items { font-size: 13px; color: #666; margin-bottom: 4px; }
.order-price { font-size: 15px; font-weight: 800; color: var(--pink); text-align: right; }

/* ===== Status Timeline ===== */
.status-timeline { padding: 16px 16px 16px 8px; background: var(--white); border-radius: var(--radius-md); margin: 12px; position: relative; }
.timeline-item { display: flex; align-items: flex-start; gap: 12px; padding: 8px 0; position: relative; }
.timeline-dot {
    width: 14px; height: 14px;
    border-radius: 50%;
    background: #E0E0E0;
    flex-shrink: 0;
    margin-top: 2px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}
.timeline-dot.active { background: var(--pink); box-shadow: 0 0 0 4px var(--pink-light); }
.timeline-dot.active.pulse { animation: pulse 2s infinite; }
.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 28px;
    width: 2px;
    height: calc(100% - 12px);
    background: #E8E8E8;
    border-radius: 1px;
}
.timeline-text { font-size: 14px; color: var(--charcoal); }
.timeline-text.done { color: var(--text-light); }
.timeline-emoji { font-size: 16px; margin-right: 4px; }

/* ===== Forms ===== */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; color: #666; margin-bottom: 6px; font-weight: 600; }
.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 11px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    background: var(--white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-textarea { resize: vertical; min-height: 60px; }
.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--pink);
    outline: none;
    box-shadow: 0 0 0 3px var(--pink-light);
}

/* ===== Image Upload ===== */
.img-upload-box {
    width: 120px; height: 120px;
    border: 2px dashed var(--pink-light);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--pink);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    transition: all 0.2s ease;
}
.img-upload-box:hover { border-color: var(--pink); background: var(--pink-light); }
.img-upload-box.has-img { border: none; }
.img-upload-box .upload-icon { font-size: 32px; }

/* ===== Admin Layout ===== */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 200px;
    background: linear-gradient(180deg, #3D3551, #2D2640);
    color: #fff;
    padding: 20px 0;
    flex-shrink: 0;
}
.admin-sidebar .logo { padding: 0 20px 20px; font-size: 18px; font-weight: 800; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 10px; }
.admin-sidebar a {
    display: block;
    padding: 12px 20px;
    color: #B8B0CC;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    border-radius: 0 var(--radius-full) var(--radius-full) 0;
    margin-right: 12px;
}
.admin-sidebar a:hover, .admin-sidebar a.active {
    color: #fff;
    background: rgba(255,133,162,0.2);
}
.admin-content { flex: 1; padding: 20px; background: var(--bg); }

@media (max-width: 768px) {
    .admin-layout { flex-direction: column; }
    .admin-sidebar {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        padding: 8px;
        gap: 4px;
    }
    .admin-sidebar .logo { display: none; }
    .admin-sidebar a {
        padding: 8px 14px;
        border-radius: var(--radius-full);
        font-size: 13px;
        margin-right: 0;
    }
    .admin-sidebar a.active { background: rgba(255,255,255,0.15); }
    .admin-content { padding: 12px; }
}

/* ===== Stats Cards ===== */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 20px 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease;
}
.stat-card:hover { transform: translateY(-2px); }
.stat-card .stat-icon { font-size: 32px; margin-bottom: 6px; }
.stat-value { font-size: 28px; font-weight: 800; color: var(--pink); }
.stat-label { font-size: 13px; color: var(--text-light); margin-top: 4px; font-weight: 600; }

/* ===== Table ===== */
.data-table { width: 100%; background: var(--white); border-radius: var(--radius-md); overflow: hidden; border-collapse: collapse; }
.data-table th, .data-table td { padding: 10px 14px; text-align: left; font-size: 13px; border-bottom: 1px solid var(--border); }
.data-table th { background: linear-gradient(180deg, var(--pink-light), var(--lavender-light)); color: var(--charcoal); font-weight: 700; }

/* ===== Toggle Switch ===== */
.toggle { position: relative; display: inline-block; width: 48px; height: 26px; }
.toggle input { display: none; }
.toggle .slider {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: #D0D0D0; border-radius: 13px; cursor: pointer; transition: .3s ease;
}
.toggle .slider::before {
    content: ''; position: absolute; left: 3px; top: 3px;
    width: 20px; height: 20px; background: #fff; border-radius: 50%; transition: .3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}
.toggle input:checked + .slider { background: linear-gradient(135deg, var(--mint), #5DAF87); }
.toggle input:checked + .slider::before { left: 25px; }

/* ===== Modal ===== */
.modal-mask {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4); z-index: 200;
    display: flex; align-items: center; justify-content: center;
    animation: fadeIn 0.2s ease;
}
.modal-box {
    background: #fff; border-radius: var(--radius-lg); padding: 24px;
    width: 90%; max-width: 400px;
    animation: scaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: var(--shadow-lg);
}
.modal-box h3 { margin: 0 0 16px; font-size: 18px; font-weight: 800; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }

/* ===== Toast ===== */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--charcoal);
    color: #fff;
    padding: 10px 24px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    z-index: 300;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    white-space: nowrap;
}
.toast.success { background: var(--mint); }
.toast.error { background: var(--danger); }
.toast.hide { animation: slideDown 0.3s ease-in forwards; }

/* ===== Skeleton Loader ===== */
.skeleton {
    background: linear-gradient(90deg, #F0EDE8 25%, #E8E4E0 50%, #F0EDE8 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}
.skeleton-card { height: 110px; margin-bottom: 10px; border-radius: var(--radius-md); }
.skeleton-text { height: 16px; margin-bottom: 8px; width: 80%; }
.skeleton-text.short { width: 50%; }
.skeleton-img { width: 110px; height: 110px; flex-shrink: 0; }

/* ===== Recipe Feed (Xiaohongshu Style) ===== */
.recipe-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 12px;
}
@media (min-width: 600px) {
    .recipe-grid { grid-template-columns: repeat(3, 1fr); }
}
.recipe-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
}
.recipe-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.recipe-card:active { transform: scale(0.97); }
.recipe-cover {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    position: relative;
}
.recipe-cover.grad-0 { background: linear-gradient(135deg, #FFD4E0, #FFE8D6); }
.recipe-cover.grad-1 { background: linear-gradient(135deg, #D4F0E4, #DEF0F7); }
.recipe-cover.grad-2 { background: linear-gradient(135deg, #E8E4F8, #FFD4E0); }
.recipe-cover.grad-3 { background: linear-gradient(135deg, #DEF0F7, #E8E4F8); }
.recipe-info { padding: 10px 12px; }
.recipe-dish-name { font-size: 14px; font-weight: 700; margin-bottom: 6px; color: var(--charcoal); }
.recipe-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.difficulty-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-full);
}
.diff-easy { background: var(--mint-light); color: #10B981; }
.diff-medium { background: #FFF3E0; color: #F59E0B; }
.diff-hard { background: #FEE2E2; color: #EF4444; }
.time-pill {
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    background: var(--bg);
    color: var(--text-light);
}

/* ===== Recipe Detail ===== */
.recipe-hero {
    text-align: center;
    padding: 30px 20px 24px;
    background: linear-gradient(180deg, var(--pink-light), var(--cream));
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}
.recipe-hero .hero-emoji { font-size: 64px; margin-bottom: 8px; }
.recipe-hero .hero-title { font-size: 22px; font-weight: 800; color: var(--charcoal); margin-bottom: 4px; }
.recipe-hero .hero-sub { font-size: 13px; color: var(--text-light); margin-bottom: 12px; }
.recipe-hero .hero-badges { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.recipe-hero .hero-badge {
    font-size: 12px; font-weight: 700; padding: 5px 14px;
    border-radius: var(--radius-full);
}
.recipe-hero .hero-badge.time { background: var(--white); color: var(--pink); }
.recipe-hero .hero-badge.diff-easy { background: var(--mint-light); color: #10B981; }
.recipe-hero .hero-badge.diff-medium { background: #FFF3E0; color: #F59E0B; }
.recipe-hero .hero-badge.diff-hard { background: #FEE2E2; color: #EF4444; }

.recipe-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    margin: 12px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
}
.recipe-section h2 {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.recipe-section h2 .section-emoji { font-size: 22px; }

/* Ingredient chips */
.ingredient-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ingredient-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    background: var(--bg);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    color: var(--charcoal);
    border: 2px dashed var(--border);
}
.ingredient-chip .amount { color: var(--pink); font-weight: 700; }

/* Step cards */
.step-list { position: relative; padding-left: 0; }
.step-card {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    position: relative;
    align-items: flex-start;
}
.step-card:not(:last-child) { border-bottom: 2px dotted var(--border); }
.step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pink), var(--peach));
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-glow);
}
.step-body { flex: 1; }
.step-body .step-desc { font-size: 14px; color: var(--charcoal); line-height: 1.6; }
.step-body .step-emoji { font-size: 20px; margin-right: 4px; vertical-align: middle; }

/* Tips card */
.tips-card {
    background: linear-gradient(135deg, #FFF8E1, #FFF3CD);
    border-radius: var(--radius-md);
    padding: 16px;
    border: 2px dashed #FFD700;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.tips-card .tips-icon { font-size: 24px; flex-shrink: 0; }
.tips-card .tips-text { font-size: 13px; color: #8B6914; line-height: 1.6; font-weight: 500; }

/* Recipe CTA */
.recipe-cta {
    padding: 12px 16px 100px;
    text-align: center;
}
.recipe-cta .btn-primary {
    padding: 14px 48px;
    font-size: 16px;
}

/* Recipe link in dish detail */
.recipe-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--lavender-light);
    color: #6B5EB8;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}
.recipe-link:hover { background: var(--lavender); color: #fff; }

/* ===== Login Box ===== */
.login-box {
    max-width: 360px;
    margin: 80px auto;
    padding: 36px 28px;
    background: #fff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    text-align: center;
}
.login-box h2 { margin: 0 0 6px; font-size: 24px; font-weight: 800; }
.login-box .subtitle { font-size: 13px; color: var(--text-light); margin-bottom: 24px; }
.login-box .login-icon { font-size: 48px; margin-bottom: 12px; }

/* ===== Wavy Divider ===== */
.wavy-divider {
    height: 16px;
    margin: 16px 0;
    background: repeating-linear-gradient(
        45deg, transparent, transparent 5px,
        var(--pink-light) 5px, var(--pink-light) 10px
    );
    border-radius: 8px;
    opacity: 0.6;
}

/* ===== Utilities ===== */
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.text-center { text-align: center; }
.mt-12 { margin-top: 12px; }
.mb-12 { margin-bottom: 12px; }
.mb-8 { margin-bottom: 8px; }
.p-12 { padding: 12px; }
.text-danger { color: var(--danger); }
.text-primary { color: var(--primary); }
.text-success { color: var(--mint); }
.empty-state { text-align: center; padding: 48px 20px; color: var(--text-light); font-size: 14px; }
.empty-state .icon { font-size: 56px; margin-bottom: 12px; }
.empty-state p { margin: 4px 0; }
.page-body { padding-bottom: 70px; }

/* ===== Dish Detail ===== */
.dish-detail-img {
    width: 100%;
    height: 240px;
    background: linear-gradient(135deg, var(--pink-light), var(--peach-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pink);
    font-size: 64px;
    object-fit: cover;
}
.dish-detail-img img { width: 100%; height: 100%; object-fit: cover; }
.dish-detail-body { padding: 20px; background: #fff; margin: 12px; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.dish-detail-body .name { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.dish-detail-body .meta { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.dish-detail-body .meta-pill {
    font-size: 12px; font-weight: 600; padding: 3px 10px;
    border-radius: var(--radius-full); background: var(--bg); color: var(--text-light);
}
.dish-detail-body .price { font-size: 24px; color: var(--pink); font-weight: 800; margin-bottom: 12px; }
.dish-detail-body .price::before { content: '¥'; font-size: 16px; }
.dish-detail-body .desc { font-size: 14px; color: #666; line-height: 1.7; margin-bottom: 16px; }
.detail-actions { display: flex; align-items: center; gap: 16px; padding-top: 16px; border-top: 2px dotted var(--border); }

/* ===== Cart Page ===== */
.cart-item {
    display: flex;
    align-items: center;
    padding: 14px;
    background: var(--white);
    margin-bottom: 8px;
    border-radius: var(--radius-md);
    gap: 12px;
    box-shadow: var(--shadow-xs);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.cart-item.removing { transform: translateX(100%); opacity: 0; }
.cart-item .img {
    width: 72px; height: 72px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--pink-light), var(--peach-light));
    display: flex; align-items: center; justify-content: center;
    color: var(--pink); font-size: 28px;
    object-fit: cover;
}
.cart-item .img img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-sm); }
.cart-item .info { flex: 1; min-width: 0; }
.cart-item .name { font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.cart-item .price { color: var(--pink); font-size: 14px; font-weight: 700; }
.cart-item .del {
    color: var(--danger);
    font-size: 18px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    user-select: none;
}
.cart-item .del:active { background: #FEE2E2; }
.cart-summary {
    padding: 20px;
    background: var(--white);
    border-radius: var(--radius-lg);
    margin: 12px;
    box-shadow: var(--shadow-sm);
}
.cart-summary .total { font-size: 20px; font-weight: 800; color: var(--pink); }
.cart-summary .total::before { content: '¥'; font-size: 14px; }

/* ===== Order Detail ===== */
.order-status-card {
    text-align: center; padding: 28px 20px; background: var(--white);
    margin: 12px; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.order-status-card .icon { font-size: 56px; margin-bottom: 10px; }
.order-status-card .status-text { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.order-status-card .order-no-text { font-size: 13px; color: var(--text-light); }
.order-item-simple {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 0; border-bottom: 1px solid var(--border);
}
.order-item-simple:last-child { border-bottom: none; }
.order-item-simple .img {
    width: 52px; height: 52px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--pink-light), var(--peach-light));
    display: flex; align-items: center; justify-content: center;
    color: var(--pink); font-size: 22px;
    object-fit: cover;
}
.order-item-simple .img img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-sm); }
.order-item-simple .info { flex: 1; }
.order-item-simple .name { font-size: 14px; font-weight: 600; }
.order-item-simple .qty-price { font-size: 12px; color: var(--text-light); }
.order-total-bar { display: flex; justify-content: space-between; padding: 12px 0; font-size: 16px; font-weight: 800; }

/* ===== Fly animation element ===== */
.fly-element {
    position: fixed;
    z-index: 200;
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-size: 24px;
}
