:root {
    --primary: #1A56DB;
    --primary-dark: #1446B8;
    --secondary: #F97316;
    --bg: #F8FAFC;
    --text: #1E293B;
    --text-muted: #64748B;
    --border: #E2E8F0;
    --radius: 12px;
    --shadow: 0 4px 6px -1px rgba(0,0,0,.1);
}

* { box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    background: var(--bg);
}

.landing-body { padding-top: 0; }

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    border-radius: var(--radius);
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-secondary-custom {
    background: var(--secondary);
    border-color: var(--secondary);
    color: #fff;
    border-radius: var(--radius);
}
.btn-secondary-custom:hover { background: #EA580C; color: #fff; }
.btn-outline-primary { border-radius: var(--radius); color: var(--primary); border-color: var(--primary); }
.btn-outline-primary:hover { background: var(--primary); }

.navbar-brand { font-size: 1.4rem; }
.nav-link.active { color: var(--primary) !important; font-weight: 600; }

/* Hero */
.hero-section {
    padding: 80px 0 60px;
    background: linear-gradient(135deg, #EFF6FF 0%, #F8FAFC 50%, #FFF7ED 100%);
    overflow: hidden;
}
.hero-badge {
    display: inline-block;
    background: #DBEAFE;
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: .85rem;
    font-weight: 500;
    margin-bottom: 20px;
}
.hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}
.hero-title span { color: var(--primary); }
.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 520px;
}
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-image {
    position: relative;
    text-align: center;
}
.hero-mockup {
    max-width: 100%;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(26,86,219,.15);
}
.hero-stats {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}
.hero-stat strong { display: block; font-size: 1.5rem; color: var(--primary); }
.hero-stat span { font-size: .85rem; color: var(--text-muted); }

/* Sections */
.section { padding: 70px 0; }
.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
}
.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Feature cards */
.feature-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 30px;
    height: 100%;
    border: 1px solid var(--border);
    transition: transform .2s, box-shadow .2s;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}
.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 16px;
}
.feature-icon.blue { background: #DBEAFE; color: var(--primary); }
.feature-icon.orange { background: #FFEDD5; color: var(--secondary); }
.feature-icon.green { background: #D1FAE5; color: #059669; }
.feature-icon.purple { background: #EDE9FE; color: #7C3AED; }

/* Steps */
.step-card {
    text-align: center;
    padding: 30px 20px;
}
.step-number {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 16px;
    font-size: 1.2rem;
}

/* Pricing */
.pricing-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 35px 30px;
    border: 2px solid var(--border);
    height: 100%;
    position: relative;
    transition: transform .2s;
}
.pricing-card:hover { transform: translateY(-4px); }
.pricing-card.popular {
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(26,86,219,.15);
}
.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary);
    color: #fff;
    padding: 4px 16px;
    border-radius: 50px;
    font-size: .75rem;
    font-weight: 600;
}
.pricing-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}
.pricing-price small { font-size: 1rem; color: var(--text-muted); font-weight: 400; }
.pricing-features { list-style: none; padding: 0; margin: 20px 0; }
.pricing-features li { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.pricing-features li i { color: #10B981; margin-right: 8px; }

/* Testimonials */
.testimonial-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 30px;
    border: 1px solid var(--border);
    height: 100%;
}
.testimonial-stars { color: #FBBF24; margin-bottom: 12px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Download */
.download-section {
    background: linear-gradient(135deg, var(--primary), #3B82F6);
    color: #fff;
    border-radius: var(--radius);
    padding: 60px 40px;
    text-align: center;
}

/* Footer */
.site-footer {
    background: #0F172A;
    padding: 60px 0 30px;
    margin-top: 0;
}
.footer-links a {
    color: rgba(255,255,255,.6);
    text-decoration: none;
    font-size: .9rem;
    line-height: 2;
}
.footer-links a:hover { color: #fff; }

/* Auth */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #EFF6FF, #F8FAFC);
    padding: 40px 20px;
}
.auth-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 40px;
    width: 100%;
    max-width: 460px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.auth-logo { text-align: center; margin-bottom: 30px; }
.auth-logo a { text-decoration: none; display: inline-block; }
.auth-logo-img { border-radius: 16px; box-shadow: 0 4px 20px rgba(26,86,219,.15); }
.navbar-logo { border-radius: 8px; }
.brand-lockup .brand-name { color: var(--primary); font-size: 1.25rem; }
.footer-logo { filter: brightness(1.1); }
.hero-logo { border-radius: 24px; box-shadow: 0 12px 40px rgba(26,86,219,.2); }
.sidebar-logo { border-radius: 8px; }
.topbar-logo { border-radius: 6px; margin-right: 4px; }
.auth-title { font-size: 1.5rem; font-weight: 600; margin-bottom: 8px; }
.auth-subtitle { color: var(--text-muted); margin-bottom: 24px; font-size: .9rem; }
.form-control, .form-select {
    border-radius: 8px;
    border-color: var(--border);
    padding: 10px 14px;
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,86,219,.15);
}

/* Page hero (inner pages) */
.page-hero {
    background: linear-gradient(135deg, #EFF6FF, #F8FAFC);
    padding: 60px 0 40px;
    text-align: center;
}
.page-hero h1 { font-weight: 700; font-size: 2.2rem; }
.page-hero p { color: var(--text-muted); max-width: 600px; margin: 10px auto 0; }

/* Contact */
.contact-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 30px;
    border: 1px solid var(--border);
}

@media (max-width: 768px) {
    .hero-section { padding: 50px 0 40px; text-align: center; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-buttons { justify-content: center; }
    .hero-stats { justify-content: center; }
}

/* ==========================================
   Dukandesk Global Design System Additions
   ========================================== */

:root {
    --primary: #1A56DB;
    --primary-dark: #1446B8;
    --accent: #F97316;
    --accent-dark: #EA580C;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --bg: #F8FAFC;
    --surface: #FFFFFF;
    --border: #E2E8F0;
    --text-dark: #1E293B;
    --text-muted: #64748B;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-card: 0 1px 3px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.05);
    --shadow-hover: 0 8px 24px rgba(26,86,219,0.12);
    --shadow-modal: 0 20px 60px rgba(0,0,0,0.15);
}

/* Fonts and Typo override */
body {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-dark);
}
h1, .h1 { font-weight: 700; font-size: 2.5rem; line-height: 1.2; }
h2, .h2 { font-weight: 700; font-size: 2rem; }
h3, .h3 { font-weight: 600; font-size: 1.5rem; }
h4, .h4, h5, .h5 { font-weight: 600; font-size: 1.15rem; }
small, .small-label { font-weight: 500; font-size: 0.8rem; letter-spacing: 0.5px; }

/* Gradient Avatar */
.avatar-circle {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px; color: white;
  background: linear-gradient(135deg, #1A56DB, #7C3AED);
}

/* Status Badges */
.badge-paid    { background: #D1FAE5 !important; color: #065F46 !important; }
.badge-credit  { background: #FEF3C7 !important; color: #92400E !important; }
.badge-draft   { background: #F1F5F9 !important; color: #475569 !important; }

/* Floating Action Button */
.fab {
  position: fixed; bottom: 24px; right: 24px;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--primary); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; box-shadow: 0 8px 24px rgba(26,86,219,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  z-index: 1000; text-decoration: none;
}
.fab:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 32px rgba(26,86,219,0.5);
  color: white;
}

/* Pulse animation for alerts */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.pulse { animation: pulse 2s ease-in-out infinite; }

/* Card hover */
.card-hover {
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(26,86,219,0.12);
}

/* Stock badges */
.stock-ok     { background: #D1FAE5; color: #065F46; padding: 2px 10px; border-radius: 50px; font-size: 0.78rem; font-weight: 500; display: inline-block; }
.stock-low    { background: #FEF3C7; color: #92400E; padding: 2px 10px; border-radius: 50px; font-size: 0.78rem; font-weight: 500; display: inline-block; }
.stock-out    { background: #FEE2E2; color: #991B1B; padding: 2px 10px; border-radius: 50px; font-size: 0.78rem; font-weight: 500; display: inline-block; }

