:root {
    --primary: #00A896;
    --primary-dark: #007A6B;
    --primary-light: #E6F7F5;
    --secondary: #0D7377;
    --accent: #F4A261;
    --accent-dark: #E07B3A;
    --danger: #E74C3C;
    --warning: #F39C12;
    --success: #27AE60;
    --info: #3498DB;
    --dark: #1A2332;
    --dark-2: #2C3E50;
    --gray: #6C757D;
    --gray-light: #BDC3C7;
    --bg: #F5F7FA;
    --bg-card: #FFFFFF;
    --text: #2C3E50;
    --text-muted: #7F8C8D;
    --border: #E8ECEF;
    --shadow: 0 4px 20px rgba(0,168,150,0.08);
    --shadow-hover: 0 8px 32px rgba(0,168,150,0.18);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ── TYPOGRAPHY ── */
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.3; color: var(--dark); }
.text-primary { color: var(--primary) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-white { color: #fff !important; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fs-sm { font-size: 0.85rem; }
.fs-xs { font-size: 0.75rem; }

/* ── BUTTONS ── */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 24px; border-radius: var(--radius-sm);
    font-weight: 600; font-size: 0.95rem; border: none;
    cursor: pointer; transition: var(--transition); white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,168,150,0.35); color: #fff; }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #c0392b; color: #fff; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: var(--primary-light); color: var(--primary-dark); }

/* ── CARDS ── */
.card {
    background: var(--bg-card); border-radius: var(--radius);
    box-shadow: var(--shadow); overflow: hidden;
    transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.card-body { padding: 24px; }
.card-header { padding: 20px 24px; border-bottom: 1px solid var(--border); font-weight: 700; }

/* ── BADGES ── */
.badge {
    display: inline-flex; align-items: center;
    padding: 4px 10px; border-radius: 20px;
    font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
}
.badge-primary { background: var(--primary-light); color: var(--primary); }
.badge-success { background: #EAFAF1; color: var(--success); }
.badge-warning { background: #FEF9E7; color: var(--warning); }
.badge-danger { background: #FDEDEC; color: var(--danger); }
.badge-info { background: #EBF5FB; color: var(--info); }
.badge-dark { background: var(--dark); color: #fff; }

/* ── FORMS ── */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.9rem; }
.form-control {
    width: 100%; padding: 12px 16px; border: 2px solid var(--border);
    border-radius: var(--radius-sm); font-family: var(--font); font-size: 0.95rem;
    transition: var(--transition); background: #fff; color: var(--text);
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,168,150,0.12); }
.form-control::placeholder { color: var(--gray-light); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 100px; }

/* ── ALERTS ── */
.alert {
    padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px;
    display: flex; align-items: center; gap: 10px; font-weight: 500;
    animation: slideDown 0.3s ease;
}
@keyframes slideDown { from { opacity:0; transform:translateY(-10px); } to { opacity:1; transform:translateY(0); } }
.alert-success { background: #EAFAF1; color: var(--success); border-left: 4px solid var(--success); }
.alert-danger  { background: #FDEDEC; color: var(--danger);  border-left: 4px solid var(--danger);  }
.alert-warning { background: #FEF9E7; color: var(--warning); border-left: 4px solid var(--warning); }
.alert-info    { background: #EBF5FB; color: var(--info);    border-left: 4px solid var(--info);    }

/* ── NAVBAR ── */
.navbar {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(255,255,255,0.95); backdrop-filter: blur(16px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.06); padding: 0 5%;
    display: flex; align-items: center; justify-content: space-between;
    height: 72px;
}
.navbar-brand { display: flex; align-items: center; gap: 10px; }
.navbar-brand .logo-text { font-size: 1.6rem; font-weight: 900; color: var(--primary); letter-spacing: -1px; }
.navbar-brand .logo-sub { font-size: 0.65rem; color: var(--text-muted); letter-spacing: 0.5px; margin-top: -4px; }
.logo-icon { width: 38px; height: 38px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.logo-icon svg { width: 22px; height: 22px; fill: #fff; }
.navbar-nav { display: flex; align-items: center; gap: 8px; }
.navbar-nav a { padding: 8px 16px; border-radius: 8px; font-weight: 500; font-size: 0.9rem; color: var(--text); }
.navbar-nav a:hover, .navbar-nav a.active { background: var(--primary-light); color: var(--primary); }
.navbar-actions { display: flex; align-items: center; gap: 12px; }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--dark); margin: 5px 0; transition: var(--transition); border-radius: 2px; }

/* ── HERO ── */
.hero {
    background: linear-gradient(135deg, #00A896 0%, #0D7377 50%, #044A4D 100%);
    padding: 80px 5% 100px;
    position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; top: -50%; right: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
}
.hero-content { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-title { font-size: clamp(2rem, 4vw, 3.2rem); color: #fff; margin-bottom: 16px; }
.hero-title span { color: var(--accent); }
.hero-subtitle { color: rgba(255,255,255,0.85); font-size: 1.1rem; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-image { position: relative; display: flex; justify-content: center; }
.hero-image img { max-height: 420px; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.25)); animation: float 4s ease-in-out infinite; }
@keyframes float { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-16px);} }
.hero-stats { display: flex; gap: 32px; margin-top: 40px; }
.hero-stat-value { font-size: 1.8rem; font-weight: 800; color: #fff; }
.hero-stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.7); }

/* ── SECTION ── */
.section { padding: 80px 5%; }
.section-title { font-size: 1.8rem; font-weight: 800; margin-bottom: 8px; }
.section-subtitle { color: var(--text-muted); margin-bottom: 48px; }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 40px; }

/* ── CATEGORY GRID ── */
.categories-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.category-card {
    background: #fff; border-radius: var(--radius); padding: 24px 16px;
    text-align: center; cursor: pointer; transition: var(--transition);
    border: 2px solid transparent; box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.category-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.category-icon {
    width: 60px; height: 60px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 12px; font-size: 1.8rem;
}
.category-name { font-size: 0.82rem; font-weight: 600; color: var(--text); }

/* ── SERVICE CARDS ── */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 16px rgba(0,0,0,0.06); transition: var(--transition); }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.service-card-image { position: relative; height: 180px; background: linear-gradient(135deg, var(--primary-light), #fff); overflow: hidden; }
.service-card-image img { width: 100%; height: 100%; object-fit: cover; }
.service-card-badge { position: absolute; top: 12px; left: 12px; }
.service-card-body { padding: 20px; }
.service-card-category { font-size: 0.72rem; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.service-card-title { font-weight: 700; font-size: 1rem; margin-bottom: 8px; }
.service-card-price { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.price-new { font-size: 1.1rem; font-weight: 800; color: var(--primary); }
.price-old { font-size: 0.85rem; color: var(--gray-light); text-decoration: line-through; }
.service-card-footer { padding: 16px 20px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.service-rating { display: flex; align-items: center; gap: 4px; font-size: 0.85rem; font-weight: 600; }

/* ── FOOTER ── */
.footer { background: var(--dark); color: rgba(255,255,255,0.8); padding: 60px 5% 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .logo-text { font-size: 1.8rem; font-weight: 900; color: #fff; }
.footer-brand p { margin-top: 12px; font-size: 0.9rem; opacity: 0.7; max-width: 280px; }
.footer-title { font-weight: 700; color: #fff; margin-bottom: 16px; font-size: 0.95rem; }
.footer-links a { display: block; padding: 4px 0; font-size: 0.9rem; opacity: 0.7; }
.footer-links a:hover { opacity: 1; color: var(--primary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; text-align: center; font-size: 0.85rem; opacity: 0.6; }
.social-links { display: flex; gap: 12px; margin-top: 16px; }
.social-links a { width: 36px; height: 36px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; transition: var(--transition); }
.social-links a:hover { background: var(--primary); }

/* ── PIDO PLUS BANNER ── */
.pido-plus-banner {
    background: linear-gradient(135deg, #1A2332, #2C3E50);
    border-radius: var(--radius-lg); padding: 40px 48px;
    display: flex; align-items: center; justify-content: space-between;
    position: relative; overflow: hidden;
}
.pido-plus-banner::before {
    content: ''; position: absolute; right: 0; top: 0; bottom: 0;
    width: 300px; background: linear-gradient(135deg, var(--primary), var(--secondary));
    clip-path: polygon(20% 0%, 100% 0%, 100% 100%, 0% 100%);
    opacity: 0.3;
}
.pido-plus-title { font-size: 1.6rem; font-weight: 800; color: #fff; }
.pido-plus-subtitle { color: rgba(255,255,255,0.7); margin-top: 8px; }

/* ── TRUST BADGE ── */
.trust-section { background: var(--primary-light); border-radius: var(--radius-lg); padding: 40px; display: flex; align-items: center; gap: 24px; }
.trust-icon { font-size: 3rem; }
.trust-title { font-weight: 800; color: var(--primary); font-size: 1.2rem; }
.trust-subtitle { color: var(--text-muted); font-size: 0.9rem; margin-top: 4px; }

/* ── STAT CARDS (Admin/User Dashboard) ── */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 32px; }
.stat-card {
    background: #fff; border-radius: var(--radius); padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    display: flex; align-items: flex-start; gap: 16px;
    transition: var(--transition);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.stat-icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0; }
.stat-value { font-size: 1.8rem; font-weight: 800; line-height: 1; }
.stat-label { font-size: 0.82rem; color: var(--text-muted); margin-top: 4px; }
.stat-change { font-size: 0.78rem; font-weight: 600; margin-top: 8px; display: flex; align-items: center; gap: 4px; }
.stat-change.up { color: var(--success); }
.stat-change.down { color: var(--danger); }

/* ── TABLE ── */
.table-wrapper { background: #fff; border-radius: var(--radius); box-shadow: 0 2px 12px rgba(0,0,0,0.05); overflow: hidden; }
.table { width: 100%; border-collapse: collapse; }
.table thead th { padding: 14px 20px; background: var(--bg); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.table tbody td { padding: 16px 20px; border-bottom: 1px solid var(--border); font-size: 0.9rem; vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: var(--bg); }

/* ── STATUS BADGES ── */
.status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 20px; font-size: 0.78rem; font-weight: 700; }
.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-pending    { background: #FEF9E7; color: #D68910; }
.status-confirmed  { background: #EBF5FB; color: var(--info); }
.status-on_process { background: #EAF6FF; color: #2471A3; }
.status-completed  { background: #EAFAF1; color: var(--success); }
.status-cancelled  { background: #FDEDEC; color: var(--danger); }

/* ── ORDER TRACKER ── */
.order-tracker { display: flex; align-items: center; gap: 0; margin: 32px 0; }
.tracker-step { flex: 1; text-align: center; position: relative; }
.tracker-step::before { content: ''; position: absolute; top: 20px; left: -50%; width: 100%; height: 2px; background: var(--border); z-index: 0; }
.tracker-step:first-child::before { display: none; }
.tracker-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--border); display: flex; align-items: center; justify-content: center; margin: 0 auto 8px; position: relative; z-index: 1; font-size: 1rem; }
.tracker-step.active .tracker-icon { background: var(--primary); color: #fff; }
.tracker-step.active::before { background: var(--primary); }
.tracker-step.done .tracker-icon { background: var(--success); color: #fff; }
.tracker-step.done::before { background: var(--success); }
.tracker-label { font-size: 0.75rem; font-weight: 600; color: var(--text-muted); }
.tracker-step.active .tracker-label, .tracker-step.done .tracker-label { color: var(--primary); }

/* ── PAGINATION ── */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 32px; }
.page-item { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 8px; font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: var(--transition); border: 2px solid var(--border); background: #fff; color: var(--text); }
.page-item.active, .page-item:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ── UTILITY ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 16px; }
.gap-4 { gap: 24px; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 24px; }
.p-3 { padding: 16px; }
.p-4 { padding: 24px; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.w-100 { width: 100%; }
.divider { border: none; border-top: 1px solid var(--border); margin: 24px 0; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .categories-grid { grid-template-columns: repeat(4, 1fr); }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero-content { gap: 32px; }
}
@media (max-width: 768px) {
    .navbar-nav { display: none; }
    .hamburger { display: block; }
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-image { display: none; }
    .hero-actions { justify-content: center; }
    .categories-grid { grid-template-columns: repeat(3, 1fr); }
    .services-grid { grid-template-columns: 1fr; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }
    .pido-plus-banner { flex-direction: column; gap: 24px; text-align: center; }
    .section { padding: 48px 5%; }
}
@media (max-width: 480px) {
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-grid { grid-template-columns: 1fr; }
}

/* ── LOADING ── */
.skeleton { background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 8px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ── ANIMATION ── */
.fade-in { animation: fadeIn 0.5s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
