* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #fdf6ed;
    color: #3d2a1a;
    padding-top: 90px;
    min-height: 100vh;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    background: rgba(255, 252, 248, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.06);
    z-index: 999;
    border-bottom: 1px solid rgba(180, 110, 50, 0.2);
}

.logo {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #a8672a, #d4893b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo i {
    color: #a8672a;
    margin-right: 8px;
    -webkit-text-fill-color: #a8672a;
}

.nav-links {
    display: flex;
    gap: 35px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #3d2a1a;
    font-weight: 500;
    position: relative;
    font-size: 15px;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #d4893b, #f5a623);
    transition: .3s;
    border-radius: 10px;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: #a8672a;
}

#dark {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #3d2a1a;
    transition: all 0.3s ease;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#dark:hover {
    background: rgba(168, 103, 42, 0.15);
    color: #a8672a;
    transform: rotate(20deg);
}

.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
}

.dark {
    background: #1a1510;
    color: #e8ddd0;
}

.dark header {
    background: rgba(26, 21, 16, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(180, 110, 50, 0.15);
}

.dark .nav-links a {
    color: #e8ddd0;
}

.dark .nav-links a:hover {
    color: #f5a623;
}

.dark #dark {
    color: #e8ddd0;
}

.dark #dark:hover {
    background: rgba(180, 110, 50, 0.15);
    color: #f5a623;
}

.dark footer {
    background: #0f0d0a;
}

/* Container */
.mie-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 20px 60px;
    animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-back-mie {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #a8672a, #d4893b);
    color: white;
    border: none;
    padding: 14px 35px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s ease;
    margin-bottom: 40px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(168, 103, 42, 0.3);
    letter-spacing: 0.5px;
}

.btn-back-mie:hover {
    background: linear-gradient(135deg, #8a5522, #b87a30);
    transform: translateX(-8px) scale(1.02);
    box-shadow: 0 6px 30px rgba(168, 103, 42, 0.4);
}

.btn-back-mie i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.btn-back-mie:hover i {
    transform: translateX(-5px);
}

.mie-header-split {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    margin-bottom: 40px;
    padding: 35px 40px;
    background: linear-gradient(135deg, #ffffff, #fdf6ed);
    border-radius: 30px;
    border: 1px solid rgba(180, 110, 50, 0.1);
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.05);
    align-items: center;
    position: relative;
    overflow: hidden;
}

.mie-header-split::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(180, 110, 50, 0.06), transparent 70%);
    border-radius: 50%;
}

.mie-header-left {
    position: relative;
    z-index: 1;
}

.mie-header-left .emoji-badge {
    font-size: 55px;
    display: inline-block;
    margin-bottom: 8px;
    animation: floatMie 3.5s ease-in-out infinite;
}

@keyframes floatMie {
    0%, 100% {
        transform: translateY(0px) rotate(-3deg) scale(1);
    }
    50% {
        transform: translateY(-12px) rotate(3deg) scale(1.05);
    }
}

.mie-header-left h1 {
    font-size: 40px;
    font-weight: 700;
    color: #3d2a1a;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.mie-header-left h1 .highlight-mie {
    background: linear-gradient(135deg, #a8672a, #d4893b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mie-header-left .subtitle-mie {
    font-size: 16px;
    color: #a08060;
    margin-bottom: 15px;
}

.mie-header-left .divider-mie {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #a8672a, #d4893b, #f5a623);
    border-radius: 10px;
    margin-bottom: 18px;
}

.mie-meta {
    display: flex;
    gap: 15px;
    color: #6d5a40;
    font-size: 15px;
    flex-wrap: wrap;
}

.mie-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 8px 18px;
    border-radius: 50px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.04);
    font-weight: 500;
    border: 1px solid rgba(180, 110, 50, 0.08);
    transition: all 0.3s ease;
}

.mie-meta span:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(168, 103, 42, 0.1);
}

.mie-meta i {
    color: #a8672a;
    font-size: 16px;
}

.mie-meta .meta-category-mie {
    background: linear-gradient(135deg, #a8672a, #d4893b);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    border: none;
}

.mie-meta .meta-category-mie i {
    color: white;
}

.mie-meta .meta-rating-mie {
    background: linear-gradient(135deg, #fdf6ed, #f5ede0);
    border-color: #f5a623;
}

.mie-meta .meta-rating-mie i {
    color: #f5a623;
}

.mie-header-right {
    position: relative;
    z-index: 1;
}

.mie-image-card {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    position: relative;
}

.mie-image-card:hover {
    transform: scale(1.02) rotate(-1deg);
    box-shadow: 0 12px 45px rgba(168, 103, 42, 0.2);
}

.mie-image-card img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    display: block;
    transition: all 0.5s ease;
}

.mie-image-card:hover img {
    transform: scale(1.05);
}

.mie-image-card .image-badge-mie {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: white;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mie-image-card .image-badge-mie i {
    font-size: 12px;
}

.mie-info-badge {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 30px 0;
}

.badge-item-mie {
    background: white;
    padding: 18px 20px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid rgba(180, 110, 50, 0.08);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.badge-item-mie:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(168, 103, 42, 0.08);
    border-color: rgba(180, 110, 50, 0.2);
}

.badge-item-mie i {
    font-size: 28px;
    color: #a8672a;
    display: block;
    margin-bottom: 8px;
}

.badge-item-mie .label-mie {
    font-size: 12px;
    color: #a08060;
    display: block;
}

.badge-item-mie .value-mie {
    font-size: 16px;
    font-weight: 600;
    color: #3d2a1a;
}

.mie-body {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-top: 10px;
}

.mie-ingredients {
    background: white;
    padding: 35px 30px;
    border-radius: 30px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(180, 110, 50, 0.08);
    position: sticky;
    top: 100px;
    height: fit-content;
    transition: all 0.4s ease;
    background: linear-gradient(145deg, #ffffff, #fdf6ed);
}

.mie-ingredients::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #a8672a, #d4893b, #f5a623);
    border-radius: 30px 30px 0 0;
}

.mie-ingredients:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(168, 103, 42, 0.12);
}

.mie-ingredients h3 {
    font-size: 22px;
    font-weight: 700;
    color: #3d2a1a;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 15px;
    border-bottom: 2px dashed #f5ede0;
}

.mie-ingredients h3 i {
    color: #a8672a;
    font-size: 24px;
    background: linear-gradient(135deg, #fdf6ed, #f5ede0);
    padding: 12px;
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(168, 103, 42, 0.1);
}

.mie-ingredients .total-items-mie {
    font-size: 13px;
    color: #a08060;
    font-weight: 400;
    margin-left: auto;
    background: #f5ede0;
    padding: 4px 14px;
    border-radius: 20px;
}

.mie-ingredients ul {
    list-style: none;
    padding: 0;
}

.mie-ingredients ul li {
    padding: 14px 0 14px 10px;
    border-bottom: 1px solid #f5ede0;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 15px;
    color: #3d352a;
    transition: all 0.3s ease;
    border-radius: 10px;
    cursor: default;
}

.mie-ingredients ul li:hover {
    background: #fdf6ed;
    padding-left: 18px;
    transform: translateX(5px);
}

.mie-ingredients ul li::before {
    content: "✦";
    color: #a8672a;
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(135deg, #fdf6ed, #f5ede0);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    transition: all 0.4s ease;
    box-shadow: 0 2px 10px rgba(168, 103, 42, 0.1);
}

.mie-ingredients ul li:hover::before {
    background: linear-gradient(135deg, #a8672a, #d4893b);
    color: white;
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 4px 20px rgba(168, 103, 42, 0.3);
}

.mie-ingredients ul li:last-child {
    border-bottom: none;
}

.mie-steps {
    background: white;
    padding: 35px 35px;
    border-radius: 30px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(180, 110, 50, 0.08);
    transition: all 0.4s ease;
    background: linear-gradient(145deg, #ffffff, #fdf6ed);
    position: relative;
    overflow: hidden;
}

.mie-steps::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(180, 110, 50, 0.03), transparent 70%);
    border-radius: 50%;
}

.mie-steps:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(168, 103, 42, 0.08);
}

.mie-steps h3 {
    font-size: 22px;
    font-weight: 700;
    color: #3d2a1a;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 15px;
    border-bottom: 2px dashed #f5ede0;
}

.mie-steps h3 i {
    color: #a8672a;
    font-size: 24px;
    background: linear-gradient(135deg, #fdf6ed, #f5ede0);
    padding: 12px;
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(168, 103, 42, 0.1);
}

.mie-steps ol {
    padding: 0;
    list-style: none;
    counter-reset: step-counter;
    position: relative;
    z-index: 1;
}

.mie-steps ol li {
    padding: 18px 20px 18px 65px;
    border-bottom: 1px solid #f5ede0;
    line-height: 1.7;
    font-size: 15px;
    color: #3d352a;
    position: relative;
    border-radius: 14px;
    transition: all 0.4s ease;
    margin-bottom: 5px;
    counter-increment: step-counter;
}

.mie-steps ol li::before {
    content: counter(step-counter);
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #a8672a, #d4893b);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 4px 20px rgba(168, 103, 42, 0.3);
    transition: all 0.4s ease;
}

.mie-steps ol li:hover {
    background: linear-gradient(135deg, #fdf6ed, #fffcf8);
    transform: translateX(8px) scale(1.01);
    border-radius: 14px;
}

.mie-steps ol li:hover::before {
    transform: translateY(-50%) scale(1.15) rotate(-10deg);
    box-shadow: 0 8px 30px rgba(168, 103, 42, 0.4);
}

.mie-steps ol li:last-child {
    border-bottom: none;
}

.mie-tips {
    margin-top: 30px;
    padding: 28px 32px;
    background: linear-gradient(135deg, #fdf6ed, #f5ede0);
    border-radius: 20px;
    border-left: 6px solid #a8672a;
    box-shadow: 0 4px 25px rgba(168, 103, 42, 0.08);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.mie-tips::before {
    content: '🍜';
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 50px;
    opacity: 0.08;
}

.mie-tips:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 12px 40px rgba(168, 103, 42, 0.15);
}

.mie-tips h4 {
    color: #a8672a;
    margin-bottom: 12px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.mie-tips h4 i {
    font-size: 22px;
    background: white;
    padding: 10px;
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    color: #a8672a;
}

.mie-tips p {
    color: #5a4a3a;
    font-size: 15px;
    line-height: 1.8;
    margin: 0;
    padding-left: 10px;
}

.dark .mie-header-split {
    background: linear-gradient(135deg, #1f1a14, #2a1f15);
    border-color: rgba(180, 110, 50, 0.15);
}

.dark .mie-header-left h1 {
    color: #e8ddd0;
}

.dark .mie-header-left .subtitle-mie {
    color: #a08060;
}

.dark .mie-meta span {
    background: #1f1a14;
    color: #c9b8a8;
    border-color: rgba(180, 110, 50, 0.12);
}

.dark .mie-meta .meta-category-mie {
    background: linear-gradient(135deg, #a8672a, #d4893b);
    color: white;
}

.dark .mie-meta .meta-rating-mie {
    background: rgba(168, 103, 42, 0.15);
    border-color: rgba(180, 110, 50, 0.2);
}

.dark .mie-image-card .image-badge-mie {
    background: rgba(0, 0, 0, 0.7);
}

.dark .mie-ingredients {
    background: linear-gradient(145deg, #1f1a14, #2a1f15);
    border-color: rgba(180, 110, 50, 0.1);
}

.dark .mie-ingredients h3 {
    color: #e8ddd0;
    border-bottom-color: rgba(180, 110, 50, 0.15);
}

.dark .mie-ingredients h3 i {
    background: rgba(168, 103, 42, 0.15);
    color: #f5a623;
}

.dark .mie-ingredients .total-items-mie {
    background: #2a1f15;
    color: #a08060;
}

.dark .mie-ingredients ul li {
    color: #c9b8a8;
    border-bottom-color: rgba(255,255,255,0.04);
}

.dark .mie-ingredients ul li:hover {
    background: rgba(168, 103, 42, 0.05);
}

.dark .mie-ingredients ul li::before {
    background: rgba(168, 103, 42, 0.15);
    color: #f5a623;
}

.dark .mie-ingredients ul li:hover::before {
    background: linear-gradient(135deg, #a8672a, #d4893b);
    color: white;
}

.dark .mie-steps {
    background: linear-gradient(145deg, #1f1a14, #2a1f15);
    border-color: rgba(180, 110, 50, 0.1);
}

.dark .mie-steps h3 {
    color: #e8ddd0;
    border-bottom-color: rgba(180, 110, 50, 0.15);
}

.dark .mie-steps h3 i {
    background: rgba(168, 103, 42, 0.15);
    color: #f5a623;
}

.dark .mie-steps ol li {
    color: #c9b8a8;
    border-bottom-color: rgba(255,255,255,0.04);
}

.dark .mie-steps ol li:hover {
    background: rgba(168, 103, 42, 0.05);
}

.dark .mie-tips {
    background: linear-gradient(135deg, #1f1a14, #2a1f15);
}

.dark .mie-tips h4 {
    color: #f5a623;
}

.dark .mie-tips p {
    color: #c9b8a8;
}

.dark .mie-tips h4 i {
    background: #2a1f15;
    color: #f5a623;
}

.dark .badge-item-mie {
    background: #1f1a14;
    border-color: rgba(180, 110, 50, 0.1);
}

.dark .badge-item-mie .value-mie {
    color: #e8ddd0;
}

.dark .badge-item-mie .label-mie {
    color: #a08060;
}

/* RESPONSIVE */
@media(max-width: 992px) {
    .mie-header-split {
        grid-template-columns: 1fr 0.9fr;
        gap: 30px;
        padding: 30px 30px;
    }
    .mie-header-left h1 {
        font-size: 34px;
    }
    .mie-image-card img {
        height: 200px;
    }
}

@media(max-width: 768px) {
    .menu-toggle {
        display: block;
        font-size: 26px;
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: white;
        flex-direction: column;
        align-items: center;
        padding-top: 40px;
        transition: .4s;
        gap: 25px;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links a {
        font-size: 18px;
    }

    .dark .nav-links {
        background: #1f1a14;
    }

    .mie-header-split {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 25px 20px;
    }
    .mie-header-left h1 {
        font-size: 28px;
    }
    .mie-header-left .emoji-badge {
        font-size: 45px;
    }
    .mie-image-card img {
        height: 180px;
    }
    .mie-image-card .image-badge-mie {
        font-size: 11px;
        padding: 5px 12px;
        bottom: 10px;
        left: 10px;
    }
    .mie-header-left .divider-mie {
        width: 60px;
    }
    .mie-meta {
        gap: 10px;
    }
    .mie-meta span {
        font-size: 13px;
        padding: 6px 14px;
    }
    .mie-body {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .mie-ingredients {
        position: static;
    }
    .mie-steps {
        padding: 25px 20px;
    }
    .mie-steps ol li {
        padding: 15px 15px 15px 55px;
        font-size: 14px;
    }
    .mie-steps ol li::before {
        width: 34px;
        height: 34px;
        font-size: 13px;
        left: 6px;
    }
    .mie-ingredients {
        padding: 25px 20px;
    }
    .mie-ingredients ul li {
        font-size: 14px;
        padding: 12px 0 12px 10px;
    }
    .mie-ingredients ul li::before {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    .btn-back-mie {
        padding: 12px 28px;
        font-size: 14px;
        margin-bottom: 25px;
        width: 100%;
        justify-content: center;
    }
    .mie-tips {
        padding: 20px;
    }
    .mie-tips p {
        font-size: 14px;
    }
    .mie-info-badge {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
}

@media(max-width: 480px) {
    header {
        padding: 15px 20px;
    }
    .logo {
        font-size: 22px;
    }
    .mie-header-left h1 {
        font-size: 22px;
    }
    .mie-header-left .subtitle-mie {
        font-size: 14px;
    }
    .mie-header-split {
        padding: 20px 15px;
        gap: 15px;
    }
    .mie-image-card img {
        height: 140px;
    }
    .mie-header-left .divider-mie {
        width: 50px;
        height: 3px;
    }
    .mie-meta {
        flex-direction: column;
        gap: 6px;
    }
    .mie-meta span {
        width: fit-content;
        font-size: 12px;
        padding: 5px 12px;
    }
    .btn-back-mie {
        padding: 10px 20px;
        font-size: 13px;
    }
    .mie-container {
        padding: 15px 12px 40px;
    }
    .mie-info-badge {
        grid-template-columns: 1fr 1fr;
    }
}