/* ============================================
   TITIP INDONESIA - MODERN UI REDESIGN
   Color: Coral/Rose gradient, clean neutrals
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --primary: #E8505B;
    --primary-dark: #D63B46;
    --primary-light: #FF6B74;
    --primary-soft: rgba(232, 80, 91, 0.10);
    --primary-glow: rgba(232, 80, 91, 0.25);
    --accent: #FF8A5C;
    --accent-2: #F9CB5C;
    --bg: #FAFBFC;
    --bg-dark: #0F172A;
    --text: #1E293B;
    --text-light: #64748B;
    --muted: #94A3B8;
    --border: rgba(30, 41, 59, 0.08);
    --border-light: rgba(30, 41, 59, 0.05);
    --surface: #FFFFFF;
    --surface-2: #F8FAFC;
    --surface-3: #F1F5F9;
    --shadow-xs: 0 1px 3px rgba(15, 23, 42, 0.04);
    --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 16px 48px rgba(15, 23, 42, 0.12);
    --shadow-xl: 0 24px 64px rgba(15, 23, 42, 0.16);
    --shadow-glow: 0 8px 32px rgba(232, 80, 91, 0.2);
    --radius: 16px;
    --radius-sm: 12px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --ring: 0 0 0 4px rgba(232, 80, 91, 0.12);
    --gradient-primary: linear-gradient(135deg, #E8505B 0%, #FF8A5C 100%);
    --gradient-hero: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #334155 100%);
    --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 1) 100%);
    --glass: rgba(255, 255, 255, 0.72);
    --glass-border: rgba(255, 255, 255, 0.3);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --portal-bg: #f7f7fb;
    --portal-card: #ffffff;
    --portal-text: #1E293B;
    --portal-muted: #64748B;
    --portal-border: rgba(30, 41, 59, 0.08);
    --portal-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    max-width: 100vw;
}

img {
    max-width: 100%;
    display: block;
}

button,
input,
select,
textarea {
    font: inherit;
}

:focus-visible {
    outline: 3px solid var(--primary-glow);
    outline-offset: 2px;
}

/* =====================
   UTILITY CLASSES
===================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: clamp(20px, 6vw, 64px);
    padding-right: clamp(20px, 6vw, 64px);
}

.mt-5 {
    margin-top: 3rem;
}

.text-center {
    text-align: center;
}

.content {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: clamp(20px, 6vw, 64px);
    padding-right: clamp(20px, 6vw, 64px);
}

/* =====================
   BACK BUTTON
===================== */
.back-button {
    display: none;
    position: fixed;
    top: 6.5rem;
    left: 1.5rem;
    z-index: 9999;
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    color: var(--text);
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.back-button:hover {
    background: var(--surface);
    box-shadow: var(--shadow-md);
}

/* =====================
   NAVBAR - GLASSMORPHISM
===================== */
.red-navbar {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 10000;
    height: 4.5rem;
    display: flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.3s ease;
}

.red-navbar .navbar {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding-left: clamp(20px, 6vw, 64px);
    padding-right: clamp(20px, 6vw, 64px);
    height: 100%;
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.logo-container:hover {
    transform: scale(1.05);
}

.logo-navbar,
.logo {
    height: 40px;
    width: auto;
    border-radius: 10px;
    transition: all 0.3s ease;
    display: block;
}

.red-navbar .logo-navbar,
.red-navbar .logo {
    height: 38px;
    filter: drop-shadow(0 2px 8px rgba(232, 80, 91, 0.3));
}

.logo-container:hover .logo-navbar,
.logo-container:hover .logo {
    filter: drop-shadow(0 4px 16px rgba(232, 80, 91, 0.5));
}

#hamburger-menu {
    display: none;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.navbar-nav a {
    color: rgba(255, 255, 255, 0.75);
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.45rem 0.85rem;
    border-radius: 10px;
    transition: var(--transition);
    position: relative;
}

.navbar-nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.navbar .navbar-extra {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.navbar .navbar-extra a {
    color: rgba(255, 255, 255, 0.8);
}

.navbar .navbar-extra a:hover {
    color: #fff;
}

.navbar .nav-user {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.35rem 0.65rem;
    border-radius: 10px;
    transition: var(--transition);
}

.navbar .nav-user:hover {
    background: rgba(255, 255, 255, 0.1);
}

.navbar .nav-user-name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.navbar .nav-icon,
.navbar .nav-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.65rem;
    border-radius: 10px;
    transition: var(--transition);
    color: rgba(255, 255, 255, 0.8);
    position: relative;
}

.navbar .nav-icon:hover,
.navbar .nav-cart:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Dropdown */
.dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 200px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    animation: dropdownFade 0.2s ease;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.navbar .dropdown a {
    display: block;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    transition: var(--transition);
}

.navbar .dropdown a.dropdown-dashboard {
    color: var(--primary);
    font-weight: 700;
}

.navbar .dropdown a:hover {
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.navbar .dropdown a:last-child {
    color: var(--primary);
    font-weight: 700;
    border-top: 1px solid var(--border);
}

/* =====================
   HERO SECTION - DARK
===================== */
.hero {
    padding-top: 4.5rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 80, 91, 0.15) 0%, transparent 70%);
    top: -10%;
    right: -5%;
    animation: heroGlow 8s ease-in-out infinite alternate;
}

.hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 138, 92, 0.1) 0%, transparent 70%);
    bottom: -5%;
    left: 10%;
    animation: heroGlow 6s ease-in-out infinite alternate-reverse;
}

@keyframes heroGlow {
    0% {
        transform: scale(1) translate(0, 0);
    }

    100% {
        transform: scale(1.2) translate(20px, -20px);
    }
}

.hero .content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    position: relative;
    z-index: 2;
}

.hero .text-content h1 {
    font-size: clamp(2.4rem, 4.5vw, 3.6rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    color: #FFFFFF;
    line-height: 1.1;
}

.hero .text-content h2 {
    margin-top: 1rem;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .text-content p {
    margin-top: 1.25rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
    max-width: 50ch;
    font-size: 1.05rem;
}

.hero .image-content {
    flex: 0 0 min(400px, 38vw);
}

.hero .image-content img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.3));
    animation: heroFloat 4s ease-in-out infinite;
}

@keyframes heroFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

section[id] {
    scroll-margin-top: 1rem;
}

/* =====================
   LAYANAN / SERVICES
===================== */
#layanan {
    padding: 5rem 0 4rem;
    background: var(--bg);
    position: relative;
}

/* Section Header */
.layanan-header {
    text-align: center;
    margin-bottom: 3rem;
}

.layanan-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 18px;
    border-radius: 999px;
    background: var(--primary-soft);
    border: 1px solid rgba(232, 80, 91, 0.15);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.layanan-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.layanan-subtitle {
    margin-top: 10px;
    font-size: 1.05rem;
    color: var(--text-light);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Grid */
.layanan-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 22px;
}

/* Card */
.layanan-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease;
    position: relative;
}

.layanan-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

/* Image wrapper with overlay */
.layanan-img-wrap {
    position: relative;
}

.layanan-img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(15, 23, 42, 0.04) 100%);
    pointer-events: none;
}

.layanan-box img {
    width: 100%;
    height: 195px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.layanan-box:hover img {
    transform: scale(1.08);
}

/* SVG icon badge */
.layanan-icon {
    position: absolute;
    bottom: -18px;
    right: 16px;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--surface);
    border: 2px solid var(--border);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: transform 0.3s ease;
    color: var(--primary);
}

.layanan-box:hover .layanan-icon {
    transform: scale(1.1) rotate(-5deg);
}

/* Content */
.layanan-content {
    padding: 24px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-grow: 1;
}

.layanan-content h3 {
    font-size: 1.15rem;
    color: var(--text);
    font-weight: 800;
}

.layanan-content p {
    color: var(--text-light);
    line-height: 1.65;
    font-size: 0.9rem;
}

/* Button */
.btn-pesan {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--gradient-primary);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 11px 20px;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.btn-pesan svg {
    transition: transform 0.25s ease;
}

.btn-pesan:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-pesan:hover svg {
    transform: translateX(4px);
}

/* CTA Banner */
.layanan-cta {
    margin-top: 3rem;
}

.layanan-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 28px 32px;
    border-radius: var(--radius-lg);
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.layanan-cta-inner::before {
    content: '';
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 80, 91, 0.2) 0%, transparent 70%);
    top: -60%;
    right: -5%;
    pointer-events: none;
}

.layanan-cta-text h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
}

.layanan-cta-text p {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

.layanan-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.layanan-cta-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.layanan-cta-btn svg {
    transition: transform 0.25s ease;
}

.layanan-cta-btn:hover svg {
    transform: translateX(4px);
}

@media (max-width: 640px) {
    .layanan-cta-inner {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }
}

/* =====================
   ABOUT SECTION
===================== */
.about,
.gabung-mitra,
.contact {
    padding: 5rem 0;
}

.about {
    background: var(--surface);
    position: relative;
    overflow: hidden;
}

.about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

/* Badge */
.about-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 18px;
    border-radius: 999px;
    background: var(--primary-soft);
    border: 1px solid rgba(232, 80, 91, 0.15);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 14px;
}

/* Title */
.about-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.about-hashtag {
    font-weight: 800;
    color: var(--text);
    margin-top: 8px;
    font-size: 1.05rem;
}

.about-desc {
    color: var(--text-light);
    line-height: 1.8;
    margin-top: 16px;
    font-size: 0.95rem;
}

/* Feature cards grid */
.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.about-feature-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    border-radius: var(--radius);
    background: var(--bg);
    border: 1px solid var(--border);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.about-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.about-feature-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--primary-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.about-feature-card h4 {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.about-feature-card p {
    font-size: 0.82rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* Decorative glows */
.about-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.about-glow--1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(232, 80, 91, 0.06) 0%, transparent 70%);
    top: -15%;
    right: -5%;
}

.about-glow--2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 138, 92, 0.05) 0%, transparent 70%);
    bottom: -10%;
    left: -3%;
}

/* Keep shared styles for gabung-mitra and contact h2 */
.gabung-mitra h2,
.contact h2,
.mitra-titip h2 {
    text-align: center;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gabung-mitra>p:not(.footer),
.contact .info>p {
    color: var(--text-light);
    text-align: center;
    line-height: 1.8;
    max-width: 800px;
    margin: 1rem auto 0;
    padding-left: clamp(20px, 6vw, 64px);
    padding-right: clamp(20px, 6vw, 64px);
}

@media (max-width: 768px) {
    .about-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-features {
        grid-template-columns: 1fr;
    }
}

/* =====================
   GABUNG MITRA SECTION
===================== */
/* =====================
   GABUNG MITRA SECTION
===================== */
.gabung-mitra {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--gradient-hero);
    color: #ffffff;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

/* Header */
.gabung-header {
    text-align: center;
    margin-bottom: 3.5rem;
    position: relative;
    z-index: 10;
}

.gabung-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    margin-bottom: 1rem;
    color: #ffffff;
    line-height: 1.1;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.gabung-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.75);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Cards Container */
.mitra-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 2rem;
    max-width: 960px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

/* Card */
.mitra-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), background 0.35s ease, border-color 0.35s ease;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.mitra-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.mitra-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: rgba(232, 80, 91, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FF6B74;
    margin-bottom: 24px;
    border: 1px solid rgba(232, 80, 91, 0.3);
    box-shadow: 0 8px 24px rgba(232, 80, 91, 0.15);
}

.mitra-card--umkm .mitra-card-icon {
    background: rgba(249, 203, 92, 0.15);
    color: #F9CB5C;
    border-color: rgba(249, 203, 92, 0.3);
    box-shadow: 0 8px 24px rgba(249, 203, 92, 0.1);
}

.mitra-card h3 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.mitra-desc {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 28px;
    min-height: 3.2em;
}

/* Benefits List */
.mitra-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
    flex-grow: 1;
}

.mitra-benefits li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 0.95rem;
}

.mitra-benefits li svg {
    color: #4ADE80;
    /* Green check */
    flex-shrink: 0;
}

/* CTA Button */
.mitra-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px;
    border-radius: 14px;
    background: var(--gradient-primary);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 20px rgba(232, 80, 91, 0.25);
}

.mitra-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(232, 80, 91, 0.4);
    color: #fff;
}

.mitra-btn--umkm {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.25);
}

.mitra-btn--umkm:hover {
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.4);
}

.mitra-btn svg {
    transition: transform 0.25s ease;
}

.mitra-btn:hover svg {
    transform: translateX(4px);
}

.gabung-footer {
    text-align: center;
    margin-top: 3.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    position: relative;
    z-index: 10;
}

/* Background Glow */
.gabung-glow {
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(232, 80, 91, 0.15) 0%, transparent 60%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
}

/* Join buttons outside gabung-mitra */
.join-button,
.join-button-mitra {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: #ffffff;
    text-decoration: none;
    border-radius: var(--radius-sm);
    padding: 11px 18px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.join-button:hover,
.join-button-mitra:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* =====================
   CONTACT SECTION
===================== */
.contact {
    background: var(--surface);
    padding: 5rem 0;
}

.contact .row {
    max-width: 1200px;
    margin: 2.5rem auto 0;
    padding: 0 clamp(20px, 6vw, 64px);
    display: flex;
    gap: 24px;
    align-items: stretch;
}

.contact .info {
    flex: 1;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
}

.desc-text {
    text-align: left;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.contact-details p {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.contact-details i,
.contact-details svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-details a {
    text-decoration: none;
    color: var(--text-light);
    font-size: 0.92rem;
    transition: var(--transition);
    font-weight: 500;
}

.contact-details a:hover {
    color: var(--primary);
}

.contact .maps {
    flex: 1;
    width: 100%;
    min-height: 350px;
    border: 0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

/* =====================
   FOOTER
===================== */
footer {
    padding: 1.5rem 0;
    text-align: center;
    color: var(--muted);
    background: var(--bg-dark);
    font-size: 0.9rem;
    font-weight: 500;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* =====================
   FORM POPUP - GLASSMORPHISM
===================== */
.form-popup {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 10002;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    animation: fadeIn 0.3s ease;
}

.form-popup.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.form-content {
    width: 100%;
    max-width: 520px;
    background: var(--surface);
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.25);
    max-height: min(88vh, 800px);
    overflow: auto;
    animation: slideUp 0.35s ease;
    box-sizing: border-box;
}

.form-content *,
.form-content *::before,
.form-content *::after {
    box-sizing: border-box;
}

/* Form Header - dark gradient with close icon */
.form-content .form-header {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--gradient-hero);
    padding: 16px 20px 16px 28px;
    margin: 0;
    border-radius: 20px 20px 0 0;
}

.form-content .form-header h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
    padding: 0;
    background: none;
    border-radius: 0;
    letter-spacing: -0.01em;
    position: static;
}

.form-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.form-close-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: rotate(90deg);
}

.form-close-btn svg {
    width: 18px;
    height: 18px;
}

/* Form body padding */
.form-content .form-layanan {
    padding-left: 28px;
    padding-right: 28px;
    padding-bottom: 24px;
}

/* Labels */
.form-content label {
    display: block;
    margin-top: 16px;
    font-weight: 600;
    color: var(--text);
    font-size: 0.88rem;
    letter-spacing: 0.01em;
}

/* Inputs */
.form-content input[type="text"],
.form-content input[type="email"],
.form-content input[type="number"],
.form-content input[type="password"],
.form-content input[type="date"],
.form-content textarea,
.form-content select {
    width: 100%;
    margin-top: 6px;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    background: var(--bg);
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--text);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    box-sizing: border-box;
}

.form-content input::placeholder,
.form-content textarea::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.form-content input:focus,
.form-content textarea:focus,
.form-content select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(232, 80, 91, 0.12);
    outline: none;
    background: var(--surface);
}

/* Scrollbar */
.form-content::-webkit-scrollbar {
    width: 5px;
}

.form-content::-webkit-scrollbar-track {
    background: transparent;
}

.form-content::-webkit-scrollbar-thumb {
    background: rgba(232, 80, 91, 0.2);
    border-radius: 3px;
}

/* Form Layanan */
.form-layanan {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: 4px;
    padding-bottom: 4px;
}

.form-layanan label {
    font-weight: 600;
    color: var(--text);
    margin-top: 14px;
    font-size: 0.86rem;
}

.form-layanan input[type="text"],
.form-layanan textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    background: var(--bg);
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--text);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    box-sizing: border-box;
}

.form-layanan input[type="text"]:focus,
.form-layanan textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(232, 80, 91, 0.12);
    outline: none;
    background: var(--surface);
}

.form-layanan textarea {
    min-height: 80px;
    resize: vertical;
}

.form-layanan h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: 18px;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-layanan h4::before {
    content: '';
    width: 3px;
    height: 18px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.form-layanan hr {
    border: none;
    border-top: 1px dashed var(--border);
    margin: 16px 0;
}

/* Metode Container */
.metode-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.btn-metode,
.btn-ongkir {
    flex: 1;
    min-width: 100px;
    padding: 12px 18px;
    border: 2px solid var(--border);
    border-radius: 12px;
    background: var(--bg);
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--text);
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
}

.btn-metode:hover,
.btn-ongkir:hover {
    border-color: var(--primary);
    background: var(--primary-soft);
    color: var(--primary);
}

.btn-metode.selected,
.btn-ongkir.selected,
.btn-metode.active,
.btn-ongkir.active {
    border-color: var(--primary);
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(232, 80, 91, 0.25);
}

/* Submit button */
.btn-submit {
    width: 100%;
    margin-top: 22px;
    padding: 14px 24px;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    letter-spacing: 0.02em;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.btn-submit::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 30%, rgba(255, 255, 255, 0.12) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(232, 80, 91, 0.35);
}

.btn-submit:hover::after {
    opacity: 1;
}

/* Close button */
.btn-close {
    width: 100%;
    margin-top: 10px;
    padding: 12px 18px;
    background: transparent;
    color: var(--text-light);
    border: 1.5px solid var(--border);
    border-radius: 14px;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-close:hover {
    background: var(--surface-2);
    color: var(--text);
    border-color: var(--surface-3);
}

.btn-map {
    width: 100%;
    margin-top: 12px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 11px 14px;
    font-weight: 700;
    color: var(--text);
}

/* =====================
   FLOATING WHATSAPP
===================== */
.wa-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 99999;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    animation: wa-float-enter 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    text-decoration: none;
}

.wa-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.5);
}

.wa-float:active {
    transform: scale(0.95);
}

.wa-float-icon {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
}

.wa-float::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 3px solid rgba(37, 211, 102, 0.4);
    animation: wa-pulse 2s ease-in-out infinite;
    pointer-events: none;
}

.wa-float-tooltip {
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-dark);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: var(--shadow-md);
}

.wa-float-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: var(--bg-dark);
    border-right: none;
}

.wa-float:hover .wa-float-tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(-4px);
}

@keyframes wa-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.25);
        opacity: 0;
    }
}

@keyframes wa-float-enter {
    from {
        opacity: 0;
        transform: scale(0.3) translateY(30px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* =====================
   SHOW / HIDE UTILITIES
===================== */
.show {
    display: block;
}

.is-hidden {
    display: none;
}

/* =====================
   MAP STYLES
===================== */
#mapid {
    height: 300px;
    width: 100%;
    margin-bottom: 20px;
}

#mapid-container {
    width: 100%;
    margin-top: 12px;
}

.form-popup .leaflet-container {
    border-radius: var(--radius-sm);
    z-index: 0;
}

.leaflet-pane,
.leaflet-top,
.leaflet-bottom {
    z-index: 1;
}

.leaflet-routing-container {
    display: none;
}

/* =====================
   ALAMAT MAP PICKER
===================== */
.alamat-map-group {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.btn-toggle-map {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 8px 16px;
    border-radius: 10px;
    border: 1.5px solid rgba(232, 80, 91, 0.25);
    background: rgba(232, 80, 91, 0.04);
    color: var(--primary, #E8505B);
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
    align-self: flex-start;
}

.btn-toggle-map:hover {
    background: rgba(232, 80, 91, 0.1);
    border-color: rgba(232, 80, 91, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(232, 80, 91, 0.15);
}

.btn-toggle-map.active {
    background: var(--primary, #E8505B);
    color: #fff;
    border-color: var(--primary, #E8505B);
    box-shadow: 0 4px 16px rgba(232, 80, 91, 0.3);
}

.btn-toggle-map.active:hover {
    background: var(--primary-dark, #D63B46);
    box-shadow: 0 6px 20px rgba(232, 80, 91, 0.4);
}

.btn-toggle-map svg {
    flex-shrink: 0;
}

.alamat-map-container {
    margin-top: 10px;
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid rgba(232, 80, 91, 0.15);
    background: #fff;
    animation: mapSlideDown 0.3s ease;
}

@keyframes mapSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 500px;
    }
}

.alamat-map-hint {
    padding: 10px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-light, #64748B);
    background: var(--surface-2, #F8FAFC);
    border-bottom: 1px solid rgba(30, 41, 59, 0.06);
    transition: all 0.3s ease;
}

.alamat-minimap {
    width: 100%;
    height: 250px;
    min-height: 200px;
}

.alamat-minimap .leaflet-container {
    border-radius: 0;
}

.alamat-map-coords {
    padding: 8px 14px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #16A34A;
    background: #F0FDF4;
    border-top: 1px solid #BBF7D0;
    font-family: 'Inter', monospace;
}

.ongkir-estimate {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1.5px solid rgba(232, 80, 91, 0.16);
    background: linear-gradient(135deg, rgba(232, 80, 91, 0.06), rgba(255, 138, 92, 0.06));
}

.ongkir-estimate-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--text);
    font-weight: 700;
}

.ongkir-estimate-row strong {
    color: var(--primary);
    font-size: 1.05rem;
    white-space: nowrap;
}

.ongkir-estimate-note {
    margin-top: 6px;
    color: var(--text-light);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.45;
}

/* =====================
   STAR RATING
===================== */
.rating .star {
    font-size: 16px;
    line-height: 1;
}

.rating .star.full {
    color: #FFC107 !important;
}

.rating .star.half {
    color: #FFC107 !important;
    position: relative;
}

.rating .star.empty {
    color: #e0e0e0 !important;
}

.rating-number {
    font-size: 13px;
    color: var(--muted);
    margin-left: 4px;
}

.rating-box .stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.rating-box .star {
    font-size: 18px;
    line-height: 1;
    color: #e0e0e0;
    cursor: pointer;
    user-select: none;
}

.rating-box .star.active {
    color: #FFC107;
}

.rating-box .rating-text {
    margin-left: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
}

/* =====================
   UI COMPONENT SYSTEM
===================== */
.ui-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease;
}

.ui-card:hover {
    box-shadow: var(--shadow-md);
}

.ui-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: var(--radius-sm);
    padding: 0.8rem 1rem;
    font-weight: 700;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.ui-btn:active {
    transform: translateY(1px);
}

.ui-btn-primary {
    background: var(--gradient-primary);
    color: #fff;
}

.ui-btn-primary:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
}

.ui-btn-secondary {
    background: var(--surface-2);
    color: var(--text);
    border-color: var(--border);
}

.ui-btn-secondary:hover {
    background: var(--surface-3);
}

.ui-btn-danger {
    background: rgba(239, 68, 68, 0.08);
    color: #DC2626;
    border-color: rgba(239, 68, 68, 0.2);
}

.ui-btn-danger:hover {
    background: rgba(239, 68, 68, 0.14);
}

.ui-btn-ghost {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.15);
}

.ui-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.16);
}

.ui-input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    transition: var(--transition);
}

.ui-input:focus {
    border-color: var(--primary);
    box-shadow: var(--ring);
    outline: none;
}

.ui-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
    background: var(--primary-soft);
    color: var(--primary-dark);
    border: 1px solid rgba(232, 80, 91, 0.15);
}

.ui-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.ui-table-wrap {
    overflow-x: auto;
    margin-top: 10px;
}

.ui-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.ui-table thead tr {
    background: var(--surface-2);
}

.ui-table th {
    text-align: left;
    color: var(--text);
    font-weight: 700;
    padding: 12px;
    border-bottom: 2px solid var(--surface-3);
    white-space: nowrap;
}

.ui-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    color: var(--text-light);
    vertical-align: top;
}

.ui-table.ui-kv td:first-child {
    width: 220px;
    color: var(--text);
    font-weight: 700;
}

.ui-table tbody tr:hover {
    background: var(--primary-soft);
}

.ui-thumb {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    border: 1px solid var(--border);
}

.ui-thumb-lg {
    width: 84px;
    height: 84px;
    border-radius: var(--radius);
    object-fit: cover;
    border: 1px solid var(--border);
}

.ui-preview {
    margin-top: 8px;
    margin-bottom: 10px;
}

.ui-alert {
    padding: 12px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
}

.ui-alert-success {
    border-color: #86EFAC;
    background: #F0FDF4;
    color: #166534;
}

.ui-alert-error {
    border-color: #FECACA;
    background: #FEF2F2;
    color: #DC2626;
}

.ui-form {
    margin-top: 12px;
    max-width: 900px;
}

.ui-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

@media (max-width: 720px) {
    .ui-grid-2 {
        grid-template-columns: 1fr;
    }
}

.ui-muted-sm {
    color: var(--text-light);
    font-size: 12px;
}

.portal-span-all {
    grid-column: 1 / -1;
}

/* =====================
   PORTAL LAYOUT
===================== */
.portal-body {
    background: var(--portal-bg);
}

.portal-body .portal-main {
    min-height: 100vh;
}

.portal {
    max-width: 1200px;
    margin: 0 auto;
    padding: 7rem 0 4rem;
    padding-left: clamp(20px, 6vw, 64px);
    padding-right: clamp(20px, 6vw, 64px);
}

.portal .portal-head {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
}

.portal .portal-head h1 {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    color: var(--text);
    font-weight: 800;
}

.portal .portal-head p {
    color: var(--text-light);
    max-width: 900px;
}

.portal .portal-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.portal .portal-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.portal .portal-card.portal-card-info {
    border-color: rgba(232, 80, 91, 0.12);
}

.portal .portal-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.portal .portal-card .portal-card-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-soft);
    color: var(--primary);
}

.portal .portal-card h3 {
    margin-top: 14px;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text);
}

.portal .portal-card p {
    margin-top: 6px;
    color: var(--text-light);
}

.portal .portal-card .portal-card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.portal .portal-card table {
    font-size: 14px;
}

.portal .portal-card table th {
    color: var(--text);
    font-weight: 700;
}

.portal .portal-card table td {
    color: var(--text-light);
}

.portal .portal-card table th,
.portal .portal-card table td {
    padding: 10px;
}

.portal .portal-card table thead tr {
    background: var(--surface-2);
}

.portal .portal-card table tbody tr:hover {
    background: var(--primary-soft);
}

.portal .form-group input,
.portal .form-group select,
.portal .form-group textarea {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
}

.portal .form-group textarea {
    resize: vertical;
}

.portal .btn,
.portal button {
    border-radius: var(--radius-sm);
}

.portal-body .navbar-nav a.active {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@media (max-width: 1000px) {
    .portal .portal-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* =====================
   MITRA TITIP PAGE
===================== */
.mitra-titip {
    padding: 7rem 0 4rem;
    background: var(--portal-bg);
}

.mitra-block {
    max-width: 1200px;
    margin: 1.5rem auto 0;
    padding-left: clamp(20px, 6vw, 64px);
    padding-right: clamp(20px, 6vw, 64px);
}

.mitra-block+.mitra-block {
    margin-top: 28px;
}

body.toko-ui .mitra-titip.toko-page {
    background: linear-gradient(180deg, var(--surface) 0%, var(--portal-bg) 45%, var(--portal-bg) 100%);
}

body.toko-ui .toko-page-subtitle {
    text-align: center;
    margin-top: 10px;
    color: var(--text-light);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(20px, 6vw, 64px);
    padding-right: clamp(20px, 6vw, 64px);
}

body.toko-ui .mitra-block {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding-top: 20px;
    padding-bottom: 20px;
    box-shadow: var(--shadow-md);
}

body.toko-ui .mitra-block.toko-mt-22,
body.toko-ui .mitra-block.toko-mt-28 {
    margin-top: 28px;
}

body.toko-ui .toko-detail-layout {
    display: block;
    overflow: hidden;
}

body.toko-ui .product-actions {
    padding: 12px 14px 14px;
}

body.toko-ui .product-actions .btn-pesan {
    border-radius: 999px;
    padding: 10px 12px;
}

body.toko-ui .toko-order-form {
    border-radius: var(--radius-lg);
}

body.toko-ui .toko-order-form label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text);
}

body.toko-ui .toko-order-form input[type="text"],
body.toko-ui .toko-order-form input[type="number"],
body.toko-ui .toko-order-form select,
body.toko-ui .toko-order-form textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    background: var(--surface-2);
    transition: var(--transition);
}

body.toko-ui .toko-order-form input:focus,
body.toko-ui .toko-order-form select:focus,
body.toko-ui .toko-order-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--ring);
}

body.toko-ui .toko-order-form textarea {
    resize: vertical;
}

body.toko-ui .btn-submit {
    border-radius: 999px;
}

body.toko-ui .toko-login-link {
    color: var(--primary) !important;
}

body.toko-ui .toko-login-required-link {
    color: var(--primary-dark);
    font-weight: 800;
}

body.toko-ui .toko-mt-12 {
    margin-top: 12px;
}

body.toko-ui .toko-mt-14 {
    margin-top: 14px;
}

body.toko-ui .toko-mt-22 {
    margin-top: 22px;
}

body.toko-ui .toko-mt-28 {
    margin-top: 28px;
}

.mitra-titip.toko-page .container {
    display: block;
}

.toko-page .container .btn-kembali {
    margin-bottom: 16px;
}

.toko-detail-card {
    margin-top: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    display: grid;
    grid-template-columns: 280px 1fr;
}

.toko-detail-media img {
    width: 100%;
    height: 100%;
    min-height: 200px;
    object-fit: cover;
}

.toko-detail-info {
    padding: 20px;
}

.toko-detail-info h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text);
}

.toko-detail-meta {
    margin-top: 10px;
    display: grid;
    gap: 6px;
    color: var(--text-light);
}

.mitra-block-head {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.mitra-block-head h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text);
}

.mitra-block-head p {
    color: var(--text-light);
}

.mitra-titip .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    align-items: start;
}

/* Product Grid & Box */
.toko-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    align-items: stretch;
}

.toko-fav-rec-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr);
    gap: 18px;
    align-items: flex-start;
}

.toko-fav-rec-grid .toko-fav-col,
.toko-fav-rec-grid .toko-rec-col {
    background: transparent;
}

.toko-rekomendasi-grid {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.product-box-compact {
    border-radius: var(--radius);
}

.toko-rekomendasi-grid .product-box-compact,
body.toko-ui .toko-fav-col .product-box-compact {
    flex: 0 0 220px;
}

body.toko-ui .toko-fav-col .toko-menu-grid {
    display: flex;
    gap: 14px;
}

body.toko-ui .product-box-compact .product-media img {
    height: 140px;
}

.product-box-compact .product-info h3 {
    font-size: 0.96rem;
}

.product-box-compact .product-price {
    font-weight: 700;
}

@media (max-width: 900px) {
    .toko-fav-rec-grid {
        grid-template-columns: 1fr;
    }

    .toko-rekomendasi-grid {
        flex-wrap: wrap;
    }

    .toko-rekomendasi-grid .product-box-compact {
        flex: 1 1 min(200px, 100%);
    }

    body.toko-ui .toko-fav-col .product-box-compact {
        flex: 1 1 min(200px, 100%);
    }
}

.toko-order-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-md);
}

.toko-order-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

@media (max-width: 720px) {
    .toko-detail-card {
        grid-template-columns: 1fr;
    }

    .toko-order-grid {
        grid-template-columns: 1fr;
    }
}

.product-box {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.product-box img,
.product-box .product-media img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.product-price {
    margin-top: 6px;
    font-weight: 800;
    color: var(--text);
    font-size: 0.98rem;
}

.product-actions {
    margin-top: auto;
    padding: 10px 12px;
}

.product-actions.product-actions-split {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 8px;
    padding: 10px 12px 14px;
}

.product-actions.product-actions-split form {
    margin: 0;
}

.product-actions.product-actions-split .btn-pesan {
    margin-top: 0;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
}

.btn-pesan.btn-pesan-outline {
    background: var(--surface);
    color: var(--primary);
    border: 1.5px solid rgba(232, 80, 91, 0.3);
}

.btn-pesan.btn-pesan-outline:hover {
    background: var(--primary-soft);
    transform: translateY(-1px);
}

.btn-pesan.btn-pesan-solid {
    background: var(--gradient-primary);
    color: #fff;
    border-color: transparent;
}

@media (max-width: 420px) {
    .product-actions.product-actions-split {
        grid-template-columns: 1fr;
    }
}

.product-actions .btn-pesan {
    width: 100%;
    padding: 8px;
    font-size: 13px;
    border-radius: 10px;
}

.product-info {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product-info h3 {
    font-size: 14px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.3;
}

.product-info p {
    font-size: 12px;
    color: var(--text-light);
}

/* Form Pages */
body:not(.admin-body) form .container {
    max-width: 900px;
    margin: 7rem auto 3rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 24px;
}

body:not(.admin-body) form .container h1 {
    font-size: 1.7rem;
    color: var(--text);
    font-weight: 800;
    text-align: center;
    margin-bottom: 16px;
}

body:not(.admin-body) form .container h2 {
    margin-top: 20px;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text);
}

body:not(.admin-body) .form-group {
    margin-top: 14px;
}

body:not(.admin-body) .form-group label {
    display: block;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
    font-size: 0.9rem;
}

body:not(.admin-body) .form-group .required-mark {
    color: #ef4444;
    font-weight: 800;
}

body:not(.admin-body) .form-group .optional-label {
    color: var(--text-muted);
    font-weight: 500;
}

body:not(.admin-body) .form-group input,
body:not(.admin-body) .form-group select,
body:not(.admin-body) .form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
}

body:not(.admin-body) .btn.btn-selesai {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 16px;
    background: var(--gradient-primary);
    color: #fff;
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-weight: 700;
}

body:not(.admin-body) .btn.btn-selesai:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* Back Button */
.btn-kembali {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 10px 20px;
    margin-bottom: 16px;
    background: var(--surface-2);
    color: var(--text);
    border: 1.5px solid var(--border);
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.btn-kembali svg {
    width: 18px;
    height: 18px;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-kembali:hover {
    background: var(--primary-soft);
    color: var(--primary-dark);
    border-color: rgba(232, 80, 91, 0.3);
    box-shadow: var(--shadow-md);
    transform: translateX(-4px);
}

.btn-kembali:hover svg {
    transform: translateX(-3px);
}

.btn-kembali:active {
    transform: translateX(-2px) scale(0.97);
}

/* =====================
   CART
===================== */
.nav-cart {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.nav-cart svg {
    width: 18px;
    height: 18px;
}

.nav-cart:hover {
    background: rgba(255, 255, 255, 0.16);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(232, 80, 91, 0.3);
}

.cart-badge.show {
    display: inline-flex;
}

.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    display: none;
    z-index: 10001;
}

.cart-overlay.show {
    display: block;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(420px, 92vw);
    background: var(--surface);
    border-left: 1px solid var(--border);
    box-shadow: var(--shadow-xl);
    transform: translateX(110%);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10002;
    display: flex;
    flex-direction: column;
}

.cart-drawer.open {
    transform: translateX(0);
}

.cart-drawer-head {
    padding: 20px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--border);
}

.cart-drawer-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text);
}

.cart-drawer-subtitle {
    margin-top: 4px;
    color: var(--text-light);
    font-weight: 600;
    font-size: 14px;
}

.cart-drawer-close {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface-2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.cart-drawer-body {
    padding: 14px 20px;
    overflow: auto;
    flex: 1;
}

.cart-drawer-empty {
    padding: 16px;
    border-radius: var(--radius);
    border: 2px dashed var(--border);
    color: var(--text-light);
    font-weight: 600;
}

.cart-drawer-foot {
    padding: 16px 20px 20px;
    border-top: 1px solid var(--border);
    display: grid;
    gap: 12px;
}

.cart-drawer-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--text);
    font-weight: 700;
}

.cart-mini-item {
    display: grid;
    grid-template-columns: 52px 1fr auto;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
    background: var(--surface);
}

.cart-mini-item+.cart-mini-item {
    margin-top: 10px;
}

.cart-mini-media img {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.cart-mini-title {
    font-weight: 800;
    color: var(--text);
    font-size: 14px;
    line-height: 1.25;
}

.cart-mini-meta {
    margin-top: 4px;
    color: var(--text-light);
    font-weight: 600;
    font-size: 12px;
}

.cart-mini-remove {
    align-self: center;
    border: 1px solid rgba(239, 68, 68, 0.2);
    background: rgba(239, 68, 68, 0.06);
    color: #DC2626;
    font-weight: 700;
    border-radius: 999px;
    padding: 8px 10px;
    cursor: pointer;
}

.cart-page {
    margin-top: 16px;
}

.cart-page-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.9fr;
    gap: 16px;
    align-items: start;
}

.cart-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 20px;
}

.cart-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.cart-card-head h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text);
}

.cart-clear-btn {
    background: var(--surface-2);
    color: var(--text);
    border-color: var(--border);
}

.cart-clear-btn:hover {
    background: var(--surface-3);
}

.cart-item {
    display: grid;
    grid-template-columns: 74px 1fr auto;
    gap: 12px;
    padding: 14px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.cart-item+.cart-item {
    margin-top: 12px;
}

.cart-item-media img {
    width: 74px;
    height: 74px;
    border-radius: var(--radius);
    object-fit: cover;
}

.cart-item-title {
    font-weight: 800;
    color: var(--text);
}

.cart-item-price {
    margin-top: 4px;
    color: var(--text-light);
    font-weight: 700;
    font-size: 14px;
}

.cart-item-actions {
    display: grid;
    gap: 10px;
    justify-items: end;
}

.cart-qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 999px;
    overflow: hidden;
    background: var(--surface);
}

.cart-qty-btn {
    width: 36px;
    height: 36px;
    border: 0;
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-weight: 800;
    cursor: pointer;
}

.cart-qty-input {
    width: 52px;
    height: 36px;
    border: 0;
    text-align: center;
    font-weight: 800;
    color: var(--text);
    outline: none;
}

.cart-remove-btn {
    border: 1px solid rgba(239, 68, 68, 0.2);
    background: rgba(239, 68, 68, 0.06);
    color: #DC2626;
    font-weight: 700;
    border-radius: 999px;
    padding: 8px 12px;
    cursor: pointer;
}

.cart-summary {
    margin-top: 14px;
    display: grid;
    gap: 10px;
}

.cart-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    border-radius: var(--radius);
    background: var(--primary-soft);
    border: 1px solid rgba(232, 80, 91, 0.12);
    color: var(--text);
    font-weight: 700;
}

.cart-checkout-form {
    margin-top: 16px;
}

@media (max-width: 980px) {
    .cart-page-grid {
        grid-template-columns: 1fr;
    }
}

/* =====================
   TRACKING
===================== */
.tracking-page {
    padding-top: 7rem;
}

.tracking-grid {
    display: grid;
    grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
    gap: 16px;
}

.tracking-info {
    padding: 20px;
    display: grid;
    gap: 14px;
}

.tracking-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.tracking-order-id {
    font-weight: 800;
    color: var(--text);
    font-size: 1.05rem;
}

.tracking-order-meta {
    margin-top: 4px;
    color: var(--text-light);
    font-weight: 600;
    font-size: 14px;
}

.tracking-addresses {
    display: grid;
    gap: 10px;
}

.tracking-address {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px;
    background: var(--surface-2);
}

.tracking-address-label {
    font-weight: 800;
    color: var(--text);
    font-size: 13px;
}

.tracking-address-value {
    margin-top: 6px;
    color: var(--text-light);
    font-weight: 600;
    font-size: 14px;
    line-height: 1.55;
}

.tracking-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.tracking-stat {
    border-radius: var(--radius-sm);
    padding: 14px;
    border: 1px solid rgba(232, 80, 91, 0.12);
    background: var(--primary-soft);
}

.tracking-stat-label {
    font-weight: 800;
    color: var(--text);
    font-size: 13px;
}

.tracking-stat-value {
    margin-top: 6px;
    font-weight: 800;
    color: var(--text);
}

.tracking-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tracking-hint {
    min-height: 18px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-light);
}

.tracking-hint.error {
    color: #DC2626;
}

.tracking-map-card {
    padding: 0;
    overflow: hidden;
}

.tracking-map {
    width: 100%;
    height: min(70vh, 640px);
    min-height: 420px;
}

.tracking-pin {
    background: transparent;
}

.tracking-pin-dot {
    width: 16px;
    height: 16px;
    border-radius: 999px;
    border: 3px solid #fff;
    box-shadow: var(--shadow-md);
    margin: 0 auto;
}

.tracking-pin-dot--jemput {
    background: var(--primary);
}

.tracking-pin-dot--antar {
    background: #16a34a;
}

.tracking-pin-dot--kurir {
    background: var(--bg-dark);
}

.tracking-pin-label {
    margin-top: 6px;
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    font-weight: 800;
    font-size: 12px;
    color: var(--text);
    white-space: nowrap;
}

@media (max-width: 980px) {
    .tracking-grid {
        grid-template-columns: 1fr;
    }
}

/* =====================
   RESPONSIVE - TABLET
===================== */
@media (max-width: 900px) {
    .contact .row {
        flex-direction: column;
    }

    .hero .image-content {
        flex: 0 0 auto;
        width: min(380px, 90vw);
    }
}

@media (max-width: 768px) {
    #hamburger-menu {
        display: inline-block;
    }

    .navbar .navbar-nav {
        position: absolute;
        top: 100%;
        right: 0;
        transform: translateX(100%);
        background: rgba(15, 23, 42, 0.97);
        backdrop-filter: blur(20px);
        width: 20rem;
        height: 100vh;
        transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 0;
        border-left: 1px solid rgba(255, 255, 255, 0.05);
    }

    .navbar .navbar-nav.active {
        transform: translateX(0);
    }

    .navbar .navbar-nav a {
        color: rgba(255, 255, 255, 0.8);
        display: block;
        margin: 0.3rem 0.8rem;
        padding: 0.55rem 0.85rem;
        font-size: 1rem;
        border-radius: var(--radius-sm);
    }

    .navbar .navbar-nav a:hover {
        background: rgba(255, 255, 255, 0.08);
        color: #fff;
    }

    .portal-body .navbar .navbar-nav a.active {
        background: rgba(255, 255, 255, 0.12);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: var(--radius-sm);
        padding: 0.6rem 0.8rem;
    }

    .portal {
        padding: 7rem 5% 3rem;
    }

    .portal-body .red-navbar {
        margin-left: 0;
        top: 0;
        border-radius: 0;
    }

    .portal-body .portal {
        padding-top: 7rem;
    }

    .hero .content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hero .text-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero .image-content {
        margin: 1.5rem 0 0 0;
        width: 100%;
        max-width: 320px;
    }

    .hero .image-content img {
        width: 100%;
        height: auto;
        margin: 0 auto;
    }

    .layanan-container {
        grid-template-columns: 1fr;
    }

    .layanan-box {
        width: 100%;
    }

    .contact {
        padding: 3rem 1.5rem;
    }

    .contact h2 {
        font-size: 1.8rem;
    }

    .contact .row {
        flex-direction: column;
    }

    .contact .info {
        max-width: 100%;
        text-align: center;
    }

    .contact .maps {
        width: 100%;
        height: 300px;
        max-width: 100%;
        border-radius: var(--radius-sm);
    }

    .contact .contact-details p {
        justify-content: center;
    }

    .portal .portal-grid {
        grid-template-columns: 1fr;
    }
}

/* =====================
   RESPONSIVE - MOBILE
===================== */
@media (max-width: 480px) {
    .wa-float {
        width: 52px;
        height: 52px;
        bottom: 20px;
        right: 20px;
    }

    .wa-float-icon {
        width: 26px;
        height: 26px;
    }

    .wa-float-tooltip {
        display: none;
    }

    .hero {
        min-height: auto;
        padding-top: 6rem;
        padding-bottom: 3rem;
    }

    .gabung-mitra {
        padding: 3rem 1rem;
    }

    .button-container {
        gap: 1rem;
    }

    .button-item {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 450px) {
    html {
        font-size: 100%;
    }
}

/* =====================
   PORTAL LAYOUT
===================== */
.portal-body {
    background-color: var(--portal-bg);
    min-height: 100vh;
}

.portal-main {
    padding-top: calc(4.5rem + 32px);
    /* Navbar height + spacing */
    padding-bottom: 64px;
    padding-left: clamp(20px, 5vw, 40px);
    padding-right: clamp(20px, 5vw, 40px);
    max-width: 1200px;
    margin: 0 auto;
}

.portal-head {
    margin-bottom: 32px;
}

.portal-head h1 {
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--portal-text);
    margin-bottom: 8px;
}

.portal-head p {
    color: var(--portal-muted);
    font-size: 1rem;
}

/* Grid Layout */
.portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 24px;
    width: 100%;
}

.portal-span-2 {
    grid-column: span 2;
}

.portal-span-all {
    grid-column: 1 / -1;
}

@media (max-width: 768px) {

    .portal-span-2,
    .portal-span-all {
        grid-column: 1 / -1;
    }

    .portal-grid {
        grid-template-columns: 1fr;
    }
}

/* Cards */
.portal-card {
    background: var(--portal-card);
    border: 1px solid var(--portal-border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--portal-shadow);
}

/* Form Groups in Portal */
.portal-card .form-group {
    margin-bottom: 16px;
}

.portal-card input[type="text"],
.portal-card input[type="email"],
.portal-card input[type="password"],
.portal-card input[type="number"],
.portal-card select,
.portal-card textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    color: var(--text);
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.portal-card input:focus,
.portal-card select:focus,
.portal-card textarea:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px var(--primary-soft);
    outline: none;
}

.portal-card label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
}

/* Alerts */
.ui-alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ui-alert-success {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.ui-alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.ui-alert-info {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Buttons */
.ui-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.ui-btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: var(--shadow-glow);
}

.ui-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(232, 80, 91, 0.3);
}

.ui-btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

.ui-btn-outline:hover {
    background: var(--surface-2);
    border-color: var(--text-light);
}

/* Table */
.portal-table-wrap {
    overflow-x: auto;
}

.portal-table {
    width: 100%;
    border-collapse: collapse;
}

.portal-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    border-bottom: 1px solid var(--border);
}

.portal-table td {
    padding: 16px;
    border-bottom: 1px solid var(--portal-border);
    color: var(--text);
    font-size: 0.95rem;
}

.portal-table tr:last-child td {
    border-bottom: none;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status-pending {
    background: #fff7ed;
    color: #ea580c;
    border: 1px solid #ffedd5;
}

.status-processing {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #dbeafe;
}

.status-completed {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #dcfce7;
}

.status-cancelled {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fee2e2;
}

/* =====================
   CART PAGE LAYOUT
===================== */
.cart-page-grid {
    display: grid;
    grid-template-columns: 1fr 480px;
    gap: 32px;
    align-items: start;
}

@media (max-width: 900px) {
    .cart-page-grid {
        grid-template-columns: 1fr;
    }
}

.cart-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.cart-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.cart-card-head h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text);
    margin: 0;
    line-height: 1;
}

.cart-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-media {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface-2);
    flex-shrink: 0;
}

.cart-item-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
    font-size: 1rem;
}

.cart-item-price {
    color: var(--text-light);
    font-size: 0.9rem;
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.cart-qty {
    display: inline-flex;
    align-items: center;
    background: var(--surface-2);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.cart-qty-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text);
    font-weight: 600;
}

.cart-qty-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.cart-qty-input {
    width: 40px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    padding: 0;
    -moz-appearance: textfield;
    appearance: textfield;
}

.cart-remove-btn {
    font-size: 0.85rem;
    color: #dc2626;
    /* Red for remove */
    background: rgba(220, 38, 38, 0.1);
    border: none;
    cursor: pointer;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 99px;
    transition: all 0.2s ease;
}

.cart-remove-btn:hover {
    background: rgba(220, 38, 38, 0.2);
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--primary-soft);
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
}

.cart-summary-row strong {
    font-size: 1.1rem;
    color: var(--text);
}

.toko-order-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.toko-mt-12 {
    margin-top: 12px;
}

.toko-mt-14 {
    margin-top: 14px;
}

.btn-submit {
    width: 100%;
    background: var(--gradient-primary);
    color: white;
    padding: 14px;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: var(--shadow-glow);
    transition: all 0.2s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(232, 80, 91, 0.4);
}

/* =====================
   MODERN ALERTS
===================== */
.toko-alert {
    display: flex;
    align-items: flex-start;
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    font-size: 0.95rem;
    line-height: 1.5;
    background: var(--surface);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.toko-alert-icon {
    flex-shrink: 0;
    margin-right: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.toko-alert-content {
    flex: 1;
    font-weight: 500;
}

/* Success Alert */
.toko-alert-success {
    background: #ecfdf5;
    /* Green 50 */
    border-color: #d1fae5;
    /* Green 100 */
    color: #065f46;
    /* Green 800 */
}

/* Style the svg inside the icon container */
.toko-alert-success .toko-alert-icon {
    color: #059669;
    /* Green 600 */
}

/* Error Alert */
.toko-alert-error {
    background: #fef2f2;
    /* Red 50 */
    border-color: #fee2e2;
    /* Red 100 */
    color: #991b1b;
    /* Red 800 */
}

.toko-alert-error .toko-alert-icon {
    color: #dc2626;
    /* Red 600 */
}

/* Info Alert */
.toko-alert-info {
    background: #eff6ff;
    /* Blue 50 */
    border-color: #dbeafe;
    /* Blue 100 */
    color: #1e40af;
    /* Blue 800 */
}

.toko-alert-info .toko-alert-icon {
    color: #2563eb;
    /* Blue 600 */
}

/* Page-specific guard so the store detail page never inherits the Mitra listing grid. */
body.toko-ui .mitra-titip.toko-page>.container {
    display: block;
}

body.toko-ui .mitra-titip.toko-page .detail-toko-layout {
    display: block;
    width: 100%;
    overflow: hidden;
}

/* =====================
   MOBILE RESPONSIVE GUARD
   Applies to user, courier, public store, cart, and shared portal pages.
===================== */
img,
svg,
video,
canvas,
iframe {
    max-width: 100%;
}

.ui-table-wrap,
.portal-table-wrap,
.cart-table-wrap,
.tk-table-wrap,
.td-table-wrap,
.ps-table-wrap,
.mitra-table-wrap,
.kurir-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.ui-table,
.portal-table,
.table-modern {
    min-width: 680px;
}

.ui-table th,
.ui-table td,
.portal-table th,
.portal-table td,
.table-modern th,
.table-modern td {
    overflow-wrap: anywhere;
}

@media (max-width: 768px) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .red-navbar .navbar {
        min-height: 72px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .red-navbar .logo,
    .red-navbar .logo-navbar {
        height: 34px;
    }

    .navbar .nav-user {
        padding: .35rem .45rem;
    }

    .navbar .nav-user-name {
        max-width: 96px;
        font-size: 13px;
    }

    .navbar .navbar-extra {
        gap: 4px;
    }

    .navbar .dropdown {
        right: 0;
        left: auto;
        max-width: min(280px, calc(100vw - 24px));
    }

    .portal-main {
        padding-left: 0;
        padding-right: 0;
    }

    .portal {
        width: 100%;
        max-width: 100%;
        padding: 6.5rem 16px 2.5rem !important;
    }

    .portal .portal-head,
    .portal-head {
        margin-bottom: 18px;
    }

    .portal .portal-head h1,
    .portal-head h1 {
        font-size: clamp(1.65rem, 8vw, 2.05rem);
        line-height: 1.15;
    }

    .portal .portal-head p,
    .portal-head p {
        font-size: .95rem;
        line-height: 1.5;
    }

    .portal .portal-grid,
    .portal-grid,
    .ui-grid-2,
    .toko-fav-rec-grid,
    .toko-order-grid,
    .cart-page-grid,
    .tracking-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }

    .portal .portal-card,
    .portal-card,
    .cart-card,
    .toko-detail-card,
    .mitra-block {
        width: 100%;
        max-width: 100%;
        padding: 16px;
        border-radius: 16px;
    }

    .portal .portal-card:hover,
    .portal-card:hover {
        transform: none;
    }

    .portal .portal-card h3,
    .portal-card h3,
    .cart-card-head h3 {
        font-size: 1.1rem;
        line-height: 1.3;
    }

    .portal .portal-card p,
    .portal-card p {
        font-size: .94rem;
        line-height: 1.5;
    }

    .portal-card-actions,
    .portal .portal-card .portal-card-actions,
    .action-buttons,
    .header-actions,
    .ps-header-actions {
        display: grid !important;
        grid-template-columns: 1fr;
        width: 100%;
        gap: 10px;
    }

    .ui-btn,
    .btn-submit,
    .ps-btn {
        min-height: 44px;
        justify-content: center;
        white-space: normal;
        text-align: center;
    }

    .ui-table-wrap,
    .portal-table-wrap,
    .tk-table-wrap,
    .td-table-wrap,
    .ps-table-wrap,
    .mitra-table-wrap,
    .kurir-table-wrap {
        margin-left: -4px;
        margin-right: -4px;
        padding-bottom: 8px;
    }

    .ui-table,
    .portal-table,
    .table-modern {
        min-width: 640px;
        font-size: 13px;
    }

    .ui-table th,
    .ui-table td,
    .portal-table th,
    .portal-table td,
    .table-modern th,
    .table-modern td {
        padding: 10px;
    }

    .cart-drawer {
        width: min(100vw, 420px);
    }

    .cart-drawer-body {
        min-height: 0;
    }

    .cart-mini-item {
        grid-template-columns: 48px 1fr;
        gap: 10px;
    }

    .cart-mini-remove {
        grid-column: 1 / -1;
        justify-self: stretch;
        min-height: 38px;
    }

    .cart-item {
        display: grid;
        grid-template-columns: 64px 1fr;
        gap: 12px;
    }

    .cart-item-media {
        width: 64px;
        height: 64px;
    }

    .cart-item-actions {
        grid-column: 1 / -1;
        align-items: stretch;
        flex-direction: row;
        justify-content: space-between;
    }

    .cart-summary-row {
        align-items: flex-start;
        gap: 8px;
    }

    .toko-order-form,
    .cart-checkout-form {
        width: 100%;
    }

    .alamat-map-group,
    .alamat-map-container,
    .alamat-minimap,
    #mapid,
    #mapid-container,
    #tracking-map,
    .tracking-map {
        max-width: 100%;
    }

    .alamat-minimap,
    #mapid,
    #tracking-map,
    .tracking-map {
        min-height: 260px;
    }

    .form-popup,
    .popup-content,
    .modal-content {
        width: min(100%, calc(100vw - 24px)) !important;
        max-width: calc(100vw - 24px) !important;
        max-height: calc(100vh - 24px);
        overflow-y: auto;
    }
}

@media (max-width: 480px) {
    .red-navbar .navbar {
        min-height: 64px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .red-navbar .logo,
    .red-navbar .logo-navbar {
        height: 30px;
    }

    .navbar .nav-user-name {
        display: none;
    }

    .portal {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .portal .portal-card,
    .portal-card,
    .cart-card {
        padding: 14px;
    }

    .ui-table,
    .portal-table,
    .table-modern {
        min-width: 560px;
    }

    .cart-item {
        grid-template-columns: 1fr;
    }

    .cart-item-media {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
}

/* =====================
   CART PAGE CONSISTENCY
   Match full cart item rows with the drawer item visual language.
===================== */
.cart-page .cart-items {
    display: grid;
    gap: 12px;
}

.cart-page .cart-item {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-xs);
}

.cart-page .cart-item + .cart-item {
    margin-top: 0;
}

.cart-page .cart-item-media {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--surface-2);
}

.cart-page .cart-item-media img {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.cart-page .cart-item-info {
    min-width: 0;
    display: grid;
    gap: 4px;
    align-content: center;
}

.cart-page .cart-item-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cart-page .cart-item-price {
    color: var(--text-light);
    font-size: 12px;
    font-weight: 600;
}

.cart-page .cart-item-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.cart-page .cart-qty {
    width: max-content;
    border-radius: 10px;
    background: #f8fafc;
    border-color: #e2e8f0;
}

.cart-page .cart-qty-btn {
    width: 30px;
    height: 30px;
    color: var(--text);
    background: transparent;
}

.cart-page .cart-qty-input {
    width: 38px;
    height: 30px;
    font-size: .85rem;
    font-weight: 800;
}

.cart-page .cart-remove-form {
    margin: 0;
    align-self: center;
}

.cart-page .cart-remove-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 13px;
    border-radius: 999px;
    border: 1px solid rgba(239, 68, 68, 0.2);
    background: rgba(239, 68, 68, 0.06);
    color: #DC2626;
    font-size: .85rem;
    font-weight: 700;
}

.cart-page .cart-remove-btn:hover {
    background: #fef2f2;
}

@media (max-width: 680px) {
    .cart-page .cart-item {
        grid-template-columns: 52px minmax(0, 1fr) auto;
        align-items: center;
    }

    .cart-page .cart-item-actions {
        justify-content: flex-end;
        gap: 10px;
    }

    .cart-page .cart-remove-btn {
        min-width: auto;
    }
}

@media (max-width: 420px) {
    .cart-page .cart-item {
        grid-template-columns: 48px minmax(0, 1fr) auto;
        gap: 10px;
        padding: 10px;
    }

    .cart-page .cart-item-media {
        width: 48px;
        height: 48px;
    }

    .cart-page .cart-item-actions {
        display: flex;
    }

    .cart-page .cart-remove-form,
    .cart-page .cart-remove-btn {
        width: auto;
    }

    .cart-page .cart-remove-btn {
        padding-inline: 12px;
    }
}

/* =====================
   GLOBAL ORDER NOTIFICATION
===================== */
.titip-order-notification {
    position: fixed;
    right: 24px;
    top: 96px;
    z-index: 12000;
    width: min(320px, calc(100vw - 32px));
    display: block;
    padding: 0;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .68);
    background: rgba(255, 255, 255, .94);
    color: #172033;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .16);
    backdrop-filter: blur(16px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity .24s ease, transform .24s ease, box-shadow .24s ease;
}

.titip-order-notification.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

body.cart-drawer-open .titip-order-notification {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
}

body.account-dropdown-open .titip-order-notification {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
}

.titip-order-notification:hover {
    box-shadow: 0 18px 42px rgba(15, 23, 42, .2);
    transform: translateY(-2px);
}

.titip-order-notification.is-updated {
    animation: titipOrderNudge .72s ease;
}

.titip-order-restore {
    position: fixed;
    right: 24px;
    top: 96px;
    z-index: 11999;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, .68);
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    color: #172033;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .14);
    backdrop-filter: blur(16px);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity .22s ease, transform .22s ease, box-shadow .18s ease;
}

.titip-order-restore.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

body.cart-drawer-open .titip-order-restore,
body.account-dropdown-open .titip-order-restore {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
}

.titip-order-restore:hover {
    box-shadow: 0 16px 36px rgba(15, 23, 42, .2);
    transform: translateY(-2px);
}

.titip-order-restore svg {
    width: 16px;
    height: 16px;
    color: #2563eb;
}

.titip-order-link {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 22px;
    gap: 9px;
    align-items: center;
    min-height: 76px;
    padding: 9px 34px 9px 10px;
    border-radius: inherit;
    color: inherit;
    text-decoration: none;
}

.titip-order-icon,
.titip-order-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.titip-order-icon {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: #fff1f2;
    color: #e8505b;
    box-shadow: inset 0 0 0 1px rgba(232, 80, 91, .1);
}

.titip-order-icon svg {
    width: 18px;
    height: 18px;
}

.titip-order-content {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.titip-order-eyebrow,
.titip-order-message,
.titip-order-items {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.titip-order-eyebrow {
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
}

.titip-order-content strong {
    color: #111827;
    font-size: 13px;
    line-height: 1.25;
}

.titip-order-message {
    color: #475569;
    font-size: 11px;
    font-weight: 650;
}

.titip-order-items {
    color: #94a3b8;
    font-size: 10px;
    font-weight: 700;
}

.titip-order-action {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #f8fafc;
    color: #64748b;
}

.titip-order-action svg {
    width: 14px;
    height: 14px;
}

.titip-order-close {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: rgba(248, 250, 252, .86);
    color: #64748b;
    cursor: pointer;
    transition: background .18s ease, color .18s ease;
}

.titip-order-close:hover {
    background: #fee2e2;
    color: #dc2626;
}

.titip-order-close svg {
    width: 13px;
    height: 13px;
}

.titip-order-progress {
    display: flex;
    gap: 4px;
    margin-top: 3px;
}

.titip-order-dot {
    width: 100%;
    height: 3px;
    border-radius: 999px;
    background: #e2e8f0;
}

.titip-order-dot.is-active {
    background: #e8505b;
}

.titip-order-notification--accepted .titip-order-icon { background: #eff6ff; color: #2563eb; }
.titip-order-notification--accepted .titip-order-dot.is-active { background: #2563eb; }
.titip-order-notification--pickup .titip-order-icon { background: #fff7ed; color: #ea580c; }
.titip-order-notification--pickup .titip-order-dot.is-active { background: #ea580c; }
.titip-order-notification--delivery .titip-order-icon { background: #eef2ff; color: #4f46e5; }
.titip-order-notification--delivery .titip-order-dot.is-active { background: #4f46e5; }
.titip-order-notification--arrived .titip-order-icon { background: #ecfdf5; color: #059669; }
.titip-order-notification--arrived .titip-order-dot.is-active { background: #059669; }
.titip-order-notification--done .titip-order-icon { background: #f0fdf4; color: #16a34a; }
.titip-order-notification--done .titip-order-dot.is-active { background: #16a34a; }

@keyframes titipOrderNudge {
    0% { transform: translateY(0) scale(1); }
    35% { transform: translateY(0) scale(1.025); }
    100% { transform: translateY(0) scale(1); }
}

@media (max-width: 760px) {
    .titip-order-notification {
        top: 76px;
        right: 12px;
        left: 12px;
        width: auto;
        border-radius: 14px;
    }

    .titip-order-restore {
        top: 76px;
        right: 12px;
    }

    .titip-order-link {
        grid-template-columns: 32px minmax(0, 1fr) 22px;
        min-height: 72px;
        padding: 9px 34px 9px 9px;
    }

    .titip-order-icon {
        width: 32px;
        height: 32px;
        border-radius: 10px;
    }
}
