/* === PALVELEVA PADASJOKI - STYLE.CSS === */
/* Muokkaa :root muuttujia vaihtaaksesi värimaailmaa */

:root {
    --primary: #1e3a5f;
    --primary-light: #2d5a8e;
    --primary-10: rgba(30,58,95,0.1);
    --primary-05: rgba(30,58,95,0.05);
    --accent: #e8a020;
    --accent-hover: #d4901a;
    --bg: #ffffff;
    --bg-secondary: #f8f9fb;
    --bg-tertiary: #f0f2f5;
    --text: #1a1a2e;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --border: #e5e7eb;
    --border-light: #f0f0f0;
    --success: #22c55e;
    --error: #ef4444;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-full: 999px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --transition: all 0.25s ease;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    color: var(--text);
    background: var(--bg);
    display: flex; flex-direction: column; min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

/* === HEADING STYLES === */
h1, h2, h3 {
    color: var(--primary);
    letter-spacing: -0.01em;
}
h1 {
    font-size: 1.75rem;
    font-weight: 800;
}
h2 {
    font-size: 1.35rem;
    font-weight: 700;
    position: relative;
}
h3 {
    font-size: 1.1rem;
    font-weight: 700;
}
/* Section headings */
h2.text-center {
    font-size: 1.5rem;
    font-weight: 800;
}

/* === HEADER === */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    height: 60px; background: var(--primary);
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.header-inner {
    max-width: 1200px; margin: 0 auto; height: 100%;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 2rem;
}
.header .logo {
    font-size: 1.15rem; font-weight: 700; color: white;
    letter-spacing: -0.01em;
}
.header .logo:hover { color: rgba(255,255,255,0.9); }
.header nav { display: flex; gap: 0.25rem; align-items: center; }
.header nav a {
    color: rgba(255,255,255,0.75); padding: 0.45rem 0.9rem;
    border-radius: var(--radius-sm); font-size: 0.875rem; font-weight: 500;
    transition: var(--transition);
}
.header nav a:hover { background: rgba(255,255,255,0.1); color: white; }
.header nav a.active { background: rgba(255,255,255,0.18); color: white; }
.header-actions { display: flex; gap: 0.75rem; align-items: center; }
.header-notif {
    position: absolute; top: 0; right: -2px;
    background: var(--error); color: white;
    font-size: 0.65rem; font-weight: 700; line-height: 1;
    min-width: 16px; height: 16px; padding: 0 4px;
    border-radius: 999px; display: inline-flex;
    align-items: center; justify-content: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.lang-switch {
    display: flex; gap: 2px; background: rgba(255,255,255,0.1);
    border-radius: var(--radius-sm); padding: 2px;
}
.lang-switch button {
    padding: 0.25rem 0.5rem; border: none; border-radius: 6px;
    font-size: 0.8rem; font-weight: 600; cursor: pointer;
    transition: var(--transition); background: transparent; color: rgba(255,255,255,0.7);
}
.lang-switch button.active { background: white; color: var(--primary); }

/* === BUTTONS === */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.55rem 1.25rem; border-radius: var(--radius-sm);
    font-weight: 600; font-size: 0.875rem; border: none; cursor: pointer;
    transition: var(--transition); text-decoration: none; line-height: 1.4;
    white-space: nowrap;
}
.btn-primary { background: var(--primary); color: white; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-light); color: white; }
.btn-accent { background: var(--accent); color: white; box-shadow: var(--shadow-sm); }
.btn-accent:hover { background: var(--accent-hover); color: white; }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost { background: transparent; color: var(--primary); padding: 0.4rem 0.75rem; }
.btn-ghost:hover { background: var(--primary-05); }
.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.8rem; }
.btn-lg { padding: 0.75rem 2rem; font-size: 1rem; }
.btn-danger { background: var(--error); color: white; }
.btn-danger:hover { background: #dc2626; color: white; }
.btn-success { background: var(--success); color: white; }
.btn-success:hover { background: #16a34a; color: white; }
.btn-block { width: 100%; }

/* === HERO === */
.hero {
    min-height: 600px; display: flex; align-items: center; justify-content: center;
    background: url('uploads/hero_padasjoki.jpg') center 10% / cover no-repeat;
    text-align: center; padding: 3rem 2rem 5rem; margin-top: 60px;
    position: relative; overflow: visible;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(30,58,95,0.7) 0%, rgba(44,82,130,0.55) 100%);
}
.hero::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent 0%, rgba(255,255,255,0.12) 45%, rgba(255,255,255,0.4) 80%, #fff 100%);
    pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 650px; }
.hero h1 {
    font-size: 3.25rem; font-weight: 700; color: white;
    margin-bottom: 1rem; letter-spacing: -0.02em; line-height: 1.2;
}
.hero p {
    font-size: 1.15rem; color: rgba(255,255,255,0.8);
    margin-bottom: 2rem; line-height: 1.7;
}

/* === LAYOUT === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.main { padding-top: 60px; min-height: 100vh; }
.section { padding: 3.5rem 0; }
.section-gray { background: var(--bg-secondary); }
.page-header { margin-bottom: 2rem; }
.page-header h1 { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.01em; }
.page-header p { color: var(--text-secondary); margin-top: 0.25rem; }

/* === GRID === */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }
.grid-auto-2 { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.grid-auto-3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

/* === CARDS === */
.card {
    background: var(--bg); border: 1px solid var(--border-light);
    border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-sm); transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow); }
.card-body { padding: 1.25rem 1.5rem; }
.card-header {
    padding: 1rem 1.5rem; border-bottom: 1px solid var(--border-light);
    background: var(--bg-secondary);
}
.card-header h3 { font-size: 0.95rem; font-weight: 700; letter-spacing: -0.01em; color: var(--primary); }

/* === SVG ICONS === */
.icon-svg {
    display: inline-flex; align-items: center; justify-content: center;
    width: 24px; height: 24px; flex-shrink: 0;
}
.icon-svg svg { width: 100%; height: 100%; }
.icon-svg.lg { width: 32px; height: 32px; }
.icon-svg.xl { width: 48px; height: 48px; }
.icon-circle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--bg-secondary); color: var(--text-secondary);
}
.icon-circle.lg { width: 56px; height: 56px; }
.icon-circle.primary { background: var(--primary-10); color: var(--primary); }

/* === CATEGORY CARDS === */
/* Kategoriakortit */
.cat-card {
    --cat-color: #546e7a; --cat-bg: #eceff1; --cat-shadow: rgba(84,110,122,0.2);
    display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
    padding: 1.75rem 1.25rem; background: var(--bg); border: none;
    border-radius: var(--radius-lg, 16px); transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    text-align: center; cursor: pointer; position: relative; overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.cat-card::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 50% 0%, var(--cat-bg) 0%, transparent 70%);
    opacity: 0; transition: opacity 0.4s ease;
}
.cat-card:hover::before { opacity: 1; }
.cat-card .cat-count {
    font-size: 0.72rem; color: var(--text-muted); font-weight: 500;
    margin-top: -0.15rem; transition: var(--transition);
}
.cat-card:hover .cat-count { color: var(--cat-color); }
.cat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px var(--cat-shadow), 0 4px 10px rgba(0,0,0,0.06);
}
.cat-icon {
    width: 60px; height: 60px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    background: var(--cat-bg);
    color: var(--cat-color);
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 0 4px 12px var(--cat-shadow);
    position: relative; z-index: 1;
}
.cat-card:hover .cat-icon {
    transform: scale(1.12) rotate(-3deg);
    box-shadow: 0 6px 20px var(--cat-shadow);
}
.cat-card .cat-name { font-size: 0.875rem; font-weight: 600; color: var(--text); position: relative; z-index: 1; }
.cat-card span { font-size: 0.875rem; font-weight: 500; color: var(--text); position: relative; z-index: 1; }

/* === SERVICE CARDS (etusivu) === */
.svc-card { cursor: pointer; }
.svc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.svc-image {
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    display: flex; align-items: center; justify-content: center;
    position: relative; color: rgba(255,255,255,0.3);
}
.svc-image .svc-icon { transform: scale(2.5); }
.svc-price {
    position: absolute; top: 0.75rem; right: 0.75rem;
    background: var(--accent); color: white; padding: 0.3rem 0.75rem;
    border-radius: var(--radius-sm); font-weight: 700; font-size: 0.85rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.svc-cat {
    display: inline-flex; align-items: center; gap: 0.35rem;
    background: var(--bg-secondary); padding: 0.25rem 0.65rem;
    border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 600;
    color: var(--text-secondary); margin-bottom: 0.5rem;
}
.svc-cat svg { width: 14px; height: 14px; }
.svc-card .card-body h3 {
    font-size: 0.95rem; font-weight: 600; margin-bottom: 0.4rem;
    color: var(--text);
}
.svc-card .card-body p {
    font-size: 0.85rem; color: var(--text-secondary);
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden; line-height: 1.5;
}
.svc-contact-badge {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.3rem;
    padding: 0.3rem 0.7rem; border-radius: var(--radius-full);
    font-size: 0.7rem; font-weight: 600;
    margin-top: 0.35rem; margin-bottom: 0.4rem;
    text-align: center; flex-wrap: wrap;
}
.svc-contact-badge svg { width: 13px; height: 13px; flex-shrink: 0; }
.svc-contact-badge--sent {
    background: linear-gradient(135deg, #fef9c3, #fde68a);
    color: #92400e; border: 1px solid rgba(217,119,6,0.15);
    box-shadow: 0 2px 6px rgba(217,119,6,0.18), 0 1px 2px rgba(0,0,0,0.06);
}
.svc-contact-badge--opened {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #166534; border: 1px solid rgba(22,163,74,0.15);
    box-shadow: 0 2px 6px rgba(22,163,74,0.18), 0 1px 2px rgba(0,0,0,0.06);
}
.svc-contact-badge--contacted {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af; border: 1px solid rgba(37,99,235,0.15);
    box-shadow: 0 2px 6px rgba(37,99,235,0.18), 0 1px 2px rgba(0,0,0,0.06);
}
.svc-contact-badge--cancelled {
    background: linear-gradient(135deg, #fef2f2, #fecaca);
    color: #b91c1c; border: 1px solid rgba(185,28,28,0.15);
    box-shadow: 0 2px 6px rgba(185,28,28,0.18), 0 1px 2px rgba(0,0,0,0.06);
}

/* Service toggle ON/OFF */
.svc-toggle {
    display: inline-flex; align-items: center;
    border: none; border-radius: 999px; cursor: pointer;
    padding: 0; background: none;
    transition: all 0.25s ease; line-height: 1;
    vertical-align: middle;
}
.svc-toggle-track {
    position: relative; display: flex; align-items: center;
    width: 56px; height: 28px; border-radius: 999px;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}
.svc-toggle-knob {
    position: absolute; top: 3px;
    width: 22px; height: 22px; border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.22), 0 0 0 1px rgba(0,0,0,0.04);
    transition: left 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 2;
}
.svc-toggle-label-on, .svc-toggle-label-off {
    position: absolute; top: 50%; transform: translateY(-50%);
    font-size: 0.62rem; font-weight: 800; letter-spacing: 0.06em;
    transition: opacity 0.2s ease;
    z-index: 1; user-select: none;
}
.svc-toggle-label-on { left: 7px; color: #fff; }
.svc-toggle-label-off { right: 6px; color: #94a3b8; }

/* ON state */
.svc-toggle--on .svc-toggle-track {
    background: linear-gradient(135deg, #059669, #10b981);
    box-shadow: 0 2px 8px rgba(16,185,129,0.35), inset 0 1px 2px rgba(0,0,0,0.08);
}
.svc-toggle--on .svc-toggle-knob { left: 31px; }
.svc-toggle--on .svc-toggle-label-on { opacity: 1; }
.svc-toggle--on .svc-toggle-label-off { opacity: 0; }

/* OFF state */
.svc-toggle--off .svc-toggle-track {
    background: linear-gradient(135deg, #cbd5e1, #e2e8f0);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}
.svc-toggle--off .svc-toggle-knob { left: 3px; }
.svc-toggle--off .svc-toggle-label-on { opacity: 0; }
.svc-toggle--off .svc-toggle-label-off { opacity: 1; }

/* Hover & busy */
.svc-toggle:hover .svc-toggle-track { filter: brightness(1.06); }
.svc-toggle:hover .svc-toggle-knob { transform: scale(1.08); }
.svc-toggle--busy { opacity: 0.5; pointer-events: none; }
.svc-toggle--busy .svc-toggle-knob { animation: togglePulse 0.6s ease infinite alternate; }
@keyframes togglePulse { to { transform: scale(0.85); opacity: 0.7; } }

/* Report card tooltip */
.rpt-tooltip {
    position: fixed; z-index: 9999; pointer-events: none;
    max-width: 280px; padding: 0.6rem 0.85rem;
    background: rgba(15, 23, 42, 0.92); color: #f1f5f9;
    font-size: 0.78rem; line-height: 1.45; font-weight: 500;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25), 0 1px 3px rgba(0,0,0,0.12);
    backdrop-filter: blur(8px);
    transition: opacity 0.15s ease;
}

/* Report tabs */
.rpt-tabs {
    display: flex; gap: 0.35rem; flex-wrap: wrap;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0;
}
.rpt-tab {
    display: inline-flex; align-items: center; gap: 0.35rem;
    padding: 0.55rem 1rem; border: none; background: none;
    font-size: 0.82rem; font-weight: 600; color: var(--text-secondary);
    cursor: pointer; border-bottom: 2px solid transparent;
    margin-bottom: -2px; transition: all 0.2s ease;
    border-radius: 6px 6px 0 0;
}
.rpt-tab:hover { color: var(--primary); background: var(--bg-secondary); }
.rpt-tab.active {
    color: var(--primary); border-bottom-color: var(--primary);
    background: var(--bg-secondary);
}
.rpt-tab-content { animation: rptTabFadeIn 0.25s ease; }
@keyframes rptTabFadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* Report card grid */
.rpt-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.85rem; margin-bottom: 1.1rem; }
.rpt-card {
    position: relative; padding: 1.2rem 1.2rem; border-radius: 16px;
    color: #fff; overflow: hidden;
    box-shadow: 0 6px 20px rgba(30,80,160,0.18), 0 2px 6px rgba(30,60,120,0.10), inset 0 1px 0 rgba(255,255,255,0.12);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.rpt-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(30,80,160,0.28), 0 3px 8px rgba(30,60,120,0.12), inset 0 1px 0 rgba(255,255,255,0.15);
}
.rpt-card::before {
    content: ''; position: absolute; top: -40%; right: -25%; width: 110px; height: 110px;
    border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0) 70%); pointer-events: none;
}
.rpt-card::after {
    content: ''; position: absolute; bottom: -25%; left: -18%; width: 80px; height: 80px;
    border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0) 70%); pointer-events: none;
}
.rpt-card--blue { background: linear-gradient(135deg, #2d5a9e 0%, #4a7ec4 50%, #6a9bdb 100%); }
.rpt-card--green { background: linear-gradient(135deg, #1a7a4c 0%, #2e9b6a 50%, #4cb888 100%); }
.rpt-card--orange { background: linear-gradient(135deg, #b35a00 0%, #d4780a 50%, #e99a30 100%); }
.rpt-card--purple { background: linear-gradient(135deg, #6b3fa0 0%, #8b5fcf 50%, #a87ee0 100%); }
.rpt-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 12px;
    background: rgba(255,255,255,0.18); color: #fff; margin-bottom: 0.7rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.2);
    backdrop-filter: blur(6px);
}
.rpt-num { font-size: 1.7rem; font-weight: 800; line-height: 1; letter-spacing: -0.02em; text-shadow: 0 1px 3px rgba(0,0,0,0.12); }
.rpt-label { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.8; margin-top: 0.3rem; text-shadow: 0 1px 2px rgba(0,0,0,0.08); }
@media (max-width: 768px) {
    .rpt-grid { grid-template-columns: repeat(2, 1fr); gap: 0.55rem; }
    .rpt-card { padding: 0.9rem 0.95rem; border-radius: 14px; }
    .rpt-num { font-size: 1.35rem; }
    .rpt-icon { width: 34px; height: 34px; border-radius: 10px; margin-bottom: 0.55rem; }
    .rpt-tabs { gap: 0.15rem; }
    .rpt-tab { padding: 0.4rem 0.6rem; font-size: 0.72rem; }
}

.svc-contact-badge--cancel {
    background: linear-gradient(135deg, #fef2f2, #fecaca);
    color: #b91c1c; border: 1px solid rgba(185,28,28,0.15);
    box-shadow: 0 2px 6px rgba(185,28,28,0.18), 0 1px 2px rgba(0,0,0,0.06);
    cursor: pointer; transition: all 0.15s ease;
}
.svc-contact-badge--cancel:hover {
    background: linear-gradient(135deg, #fecaca, #fca5a5);
    box-shadow: 0 3px 8px rgba(185,28,28,0.25), 0 1px 3px rgba(0,0,0,0.08);
}
.svc-contact-badge--action {
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
    color: #5b21b6; border: 1px solid rgba(91,33,182,0.15);
    box-shadow: 0 2px 6px rgba(91,33,182,0.18), 0 1px 2px rgba(0,0,0,0.06);
    cursor: pointer; transition: all 0.15s ease;
}
.svc-contact-badge--action:hover {
    background: linear-gradient(135deg, #ddd6fe, #c4b5fd);
    box-shadow: 0 3px 8px rgba(91,33,182,0.25), 0 1px 3px rgba(0,0,0,0.08);
}
/* === CONTACT REQUEST CARDS === */
.cr-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
@media (max-width: 768px) {
    .cr-card-grid { grid-template-columns: 1fr; }
}
.cr-card {
    background: linear-gradient(145deg, #f8f9fb 0%, #f0f2f5 100%);
    border: 1px solid rgba(30,58,95,0.08);
    border-left: 4px solid var(--cr-status-color, #94a3b8);
    border-radius: var(--radius);
    padding: 1.1rem 1.25rem;
    transition: all 0.2s;
}
.cr-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(30,58,95,0.10);
}
.cr-card--sent   { --cr-status-color: #d97706; }
.cr-card--opened { --cr-status-color: #16a34a; }
.cr-card--contacted { --cr-status-color: #2563eb; }
.cr-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.cr-card-name {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--text);
}
.cr-card-service {
    font-size: 0.82rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.4rem;
}
.cr-card-service a { color: var(--primary); }
.cr-card-contact {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.6;
}
.cr-card-contact svg, .cr-card-contact i { width: 13px; margin-right: 0.2rem; vertical-align: -1px; }
.cr-card-meta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0.5rem 0;
}
.cr-card-actions {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-top: 0.6rem;
    padding-top: 0.6rem;
    border-top: 1px solid var(--border-light, rgba(0,0,0,0.06));
}

.svc-link {
    display: inline-flex; align-items: center; gap: 0.35rem;
    font-size: 0.85rem; font-weight: 600; color: var(--primary);
    margin-top: 0.75rem; transition: var(--transition);
}
.svc-link:hover { gap: 0.6rem; }

/* === PROVIDER CARDS === */
.provider-card {
    background: linear-gradient(145deg, #f0f2f5 0%, #e6e9ef 100%);
    border: 1px solid rgba(30,58,95,0.10);
    border-radius: var(--radius); padding: 1.5rem;
    box-shadow: 0 1px 1px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04), 0 6px 16px rgba(30,58,95,0.08), 0 12px 32px rgba(30,58,95,0.06);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.provider-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.08), 0 8px 20px rgba(30,58,95,0.12), 0 16px 48px rgba(30,58,95,0.10);
}

/* === BUSINESS PROFILE (yritys.php) === */
.biz-profile {
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.biz-profile-main {
    padding: 2rem;
    position: relative;
}
.biz-profile-top {
    display: flex;
    align-items: flex-end;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}
.biz-profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--bg);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    flex-shrink: 0;
    overflow: hidden;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
}
.biz-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.biz-profile-avatar-initials {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 1px;
}
.biz-profile-info {
    flex: 1;
    min-width: 0;
    padding-bottom: 0.25rem;
}
.biz-profile-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 0.15rem;
}
.biz-profile-tagline {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 0.5rem;
}
.biz-profile-stars {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}
.biz-profile-stars .star {
    color: #f59e0b;
    font-size: 1rem;
}
.biz-profile-stars .star-empty {
    color: #d1d5db;
    font-size: 1rem;
}
.biz-profile-contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}
.biz-contact-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.85rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    color: var(--text);
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
}
.biz-contact-badge:hover {
    border-color: var(--primary-light);
    background: var(--primary-05);
    color: var(--primary);
}
.biz-contact-badge svg {
    width: 15px;
    height: 15px;
    color: var(--primary);
    flex-shrink: 0;
}
.biz-reveal-btn {
    cursor: pointer; border: 1px dashed var(--primary-light);
    background: var(--primary-05); color: var(--primary); font-weight: 600;
}
.biz-reveal-btn:hover { background: var(--primary-10); }
.biz-profile-about {
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-light);
}
.biz-profile-about h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}
.biz-profile-about p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    white-space: pre-wrap;
}
@media (max-width: 768px) {
    .biz-profile-main { padding: 1.25rem; }
    .biz-profile-top { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
    .biz-profile-avatar { width: 96px; height: 96px; }
    .biz-profile-name { font-size: 1.25rem; }
    .biz-profile-contacts { gap: 0.4rem; }
    .biz-contact-badge { font-size: 0.78rem; padding: 0.35rem 0.7rem; }
}
.provider-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.avatar {
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; font-weight: 700; flex-shrink: 0;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.avatar-md { width: 48px; height: 48px; font-size: 0.85rem; }
.avatar-lg { width: 56px; height: 56px; font-size: 1rem; }
.avatar-primary { background: var(--primary-10); color: var(--primary); }
.avatar-muted { background: var(--bg-tertiary); color: var(--text-secondary); }
.provider-name { font-size: 1.05rem; font-weight: 600; }
.provider-count { font-size: 0.8rem; color: var(--text-secondary); }
.provider-contact { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.provider-contact-item {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.875rem; color: var(--text-secondary);
}
.provider-contact-item svg { width: 16px; height: 16px; color: var(--text-muted); flex-shrink: 0; }
.provider-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
.provider-tags-label { font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 0.25rem; }
.tag {
    display: inline-block; padding: 0.2rem 0.6rem; border-radius: var(--radius-full);
    font-size: 0.78rem; font-weight: 500; background: var(--bg-secondary);
    color: var(--text-secondary); border: 1px solid var(--border-light);
}

/* === FORMS === */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
    display: block; font-size: 0.875rem; font-weight: 500;
    margin-bottom: 0.4rem; color: var(--text);
}
.form-control {
    width: 100%; padding: 0.65rem 0; border: none;
    border-bottom: 2px solid var(--border); font-size: 0.9rem;
    transition: var(--transition); background: transparent; color: var(--text);
    outline: none;
}
.form-control:focus { border-bottom-color: var(--primary); }
.form-control::placeholder { color: var(--text-muted); }
.form-control-box {
    width: 100%; padding: 0.65rem 0.85rem; border: 1px solid var(--border);
    border-radius: var(--radius-sm); font-size: 0.9rem;
    transition: var(--transition); background: var(--bg); color: var(--text);
    outline: none;
}
.form-control-box:focus {
    border-color: var(--primary); box-shadow: 0 0 0 3px rgba(30,58,95,0.1);
}
textarea.form-control { min-height: 100px; resize: vertical; }
textarea.form-control-box { min-height: 100px; resize: vertical; }
select.form-control-box { cursor: pointer; }

/* === GLOBAL MODERN FORM STYLES === */
.card input[type="text"],
.card input[type="email"],
.card input[type="password"],
.card input[type="tel"],
.card input[type="number"],
.card input[type="url"],
.card input[type="search"],
.card input[type="date"],
.card input[type="datetime-local"],
.card input[type="time"],
.modal-content input[type="text"],
.modal-content input[type="email"],
.modal-content input[type="password"],
.modal-content input[type="tel"],
.modal-content input[type="number"],
.modal-content input[type="url"],
.modal-content input[type="date"],
.auth-card input[type="email"],
.auth-card input[type="password"],
.auth-card input[type="text"] {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
    background: var(--bg);
    color: var(--text);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}
.card input[type="text"]:hover,
.card input[type="email"]:hover,
.card input[type="password"]:hover,
.card input[type="tel"]:hover,
.card input[type="number"]:hover,
.card input[type="url"]:hover,
.card input[type="date"]:hover,
.modal-content input[type="text"]:hover,
.modal-content input[type="email"]:hover,
.modal-content input[type="password"]:hover,
.modal-content input[type="tel"]:hover,
.modal-content input[type="number"]:hover,
.modal-content input[type="date"]:hover,
.auth-card input[type="email"]:hover,
.auth-card input[type="password"]:hover {
    border-color: #a0aec0;
}
.card input[type="text"]:focus,
.card input[type="email"]:focus,
.card input[type="password"]:focus,
.card input[type="tel"]:focus,
.card input[type="number"]:focus,
.card input[type="url"]:focus,
.card input[type="date"]:focus,
.modal-content input[type="text"]:focus,
.modal-content input[type="email"]:focus,
.modal-content input[type="password"]:focus,
.modal-content input[type="tel"]:focus,
.modal-content input[type="number"]:focus,
.modal-content input[type="date"]:focus,
.auth-card input[type="email"]:focus,
.auth-card input[type="password"]:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30,58,95,0.12);
}
.card input::placeholder,
.modal-content input::placeholder,
.auth-card input::placeholder {
    color: #a0aec0;
}
.card select,
.modal-content select {
    width: 100%;
    padding: 0.7rem 2.5rem 0.7rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
    background: var(--bg);
    color: var(--text);
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
}
.card select:hover,
.modal-content select:hover {
    border-color: #a0aec0;
}
.card select:focus,
.modal-content select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30,58,95,0.12);
}
.card textarea,
.modal-content textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
    background: var(--bg);
    color: var(--text);
    outline: none;
    min-height: 100px;
    resize: vertical;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}
.card textarea:hover,
.modal-content textarea:hover {
    border-color: #a0aec0;
}
.card textarea:focus,
.modal-content textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30,58,95,0.12);
}
.pw-toggle {
    position: absolute;
    right: 0.6rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    transition: color 0.2s;
}
.pw-toggle:hover { color: var(--text); }
.card input[type="file"] {
    padding: 0.5rem 0;
    font-size: 0.85rem;
    font-family: inherit;
}

/* === ROLE TOGGLE === */
.role-toggle {
    display: flex; gap: 0; border-radius: var(--radius-sm); overflow: hidden;
    border: 1px solid var(--border);
}
.role-toggle label {
    flex: 1; text-align: center; padding: 0.6rem 1rem; cursor: pointer;
    font-weight: 600; font-size: 0.9rem; transition: var(--transition);
    background: var(--bg-secondary); color: var(--text-secondary); margin: 0;
}
.role-toggle input { display: none; }
.role-toggle input:checked + label {
    background: var(--primary); color: white;
}

/* === AUTH CARD === */
.auth-wrapper {
    min-height: calc(100vh - 60px); display: flex; align-items: center;
    justify-content: center; padding: 2rem;
}
.auth-card {
    width: 100%; max-width: 440px; background: var(--bg);
    border: 1px solid var(--border-light); border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
    overflow: hidden; transition: box-shadow 0.3s ease;
}
.auth-card .card-header {
    text-align: center; padding: 2rem 2rem 0; border: none; background: transparent;
}
.auth-card .card-header h2 { font-size: 1.5rem; font-weight: 700; margin-top: 0.5rem; }
.auth-card .card-body { padding: 1.5rem 2rem 2rem; }
.auth-icon {
    width: 52px; height: 52px; border-radius: 50%;
    background: var(--bg-secondary); display: inline-flex;
    align-items: center; justify-content: center; color: var(--text-secondary);
}
.auth-icon svg { width: 26px; height: 26px; }

/* === LOGIN MODE TOGGLE === */
.login-mode-toggle {
    position: relative; display: flex;
    background: linear-gradient(180deg, #e2e6eb 0%, #d5dae0 100%);
    padding: 6px; border-radius: 16px 16px 0 0;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.1), inset 0 -1px 0 rgba(255,255,255,0.5);
}
.login-mode-toggle input[type="radio"] { display: none; }
.login-mode-toggle label {
    flex: 1; position: relative; z-index: 1;
    display: flex; flex-direction: column; align-items: center; gap: 0.25rem;
    padding: 0.85rem 1rem; margin: 0; border-radius: 12px;
    font-weight: 700; font-size: 0.85rem; cursor: pointer;
    color: #6b7a8d; transition: color 0.35s ease, transform 0.12s ease;
    user-select: none; text-align: center; letter-spacing: 0.02em;
}
.login-mode-toggle label:active { transform: scale(0.96); }
.login-mode-icon { display: flex; align-items: center; justify-content: center; }
.login-mode-icon svg { width: 22px; height: 22px; }
.login-mode-text { line-height: 1; }
.login-mode-toggle input[type="radio"]:checked + label {
    color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.login-mode-slider {
    position: absolute; top: 6px; left: 6px; width: calc(50% - 6px); height: calc(100% - 12px);
    border-radius: 12px;
    background: linear-gradient(180deg, var(--primary-light) 0%, var(--primary) 100%);
    transition: left 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow:
        0 6px 16px rgba(30,58,95,0.4),
        0 2px 4px rgba(30,58,95,0.25),
        inset 0 1px 1px rgba(255,255,255,0.2);
}
.login-mode-toggle input#modeBusiness:checked ~ .login-mode-slider {
    left: calc(50%);
}

/* Login footer texts */
.login-footer-customer {
    text-align: center; margin: 1rem 0 0; padding: 0;
    font-size: 0.875rem; color: var(--text-secondary);
}
.login-footer-business {
    display: flex; align-items: center; gap: 0.4rem; justify-content: center;
    margin: 1rem 0 0; padding: 0.6rem 0.85rem;
    background: rgba(232,160,32,0.08); border: 1px solid rgba(232,160,32,0.25);
    border-radius: var(--radius-sm); font-size: 0.82rem; color: var(--text);
    line-height: 1.45;
}
.login-footer-business svg { flex-shrink: 0; width: 15px; height: 15px; color: var(--accent); }
.login-footer-business a { color: var(--primary); font-weight: 600; }

/* === DASHBOARD === */
/* === SECTION TITLE === */
.section-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--accent);
}
.section-title .icon-svg { color: var(--primary); }

.dash-container { padding-top: 2rem; padding-bottom: 4rem; }
.dash-container.dash-wide { max-width: 1600px; }
.dash-layout { display: flex; gap: 2rem; margin-top: 1.5rem; }
.dash-sidebar {
    width: 200px; flex-shrink: 0;
    background: var(--bg); border: 1px solid var(--border-light);
    border-radius: var(--radius); padding: 0.75rem;
    box-shadow: var(--shadow-sm); height: fit-content;
    position: sticky; top: 80px;
}
.dash-sidebar a {
    display: flex; align-items: center; gap: 0.6rem;
    padding: 0.7rem 1rem; border-radius: var(--radius-sm);
    color: var(--text-secondary); font-weight: 500; font-size: 0.9rem;
    margin-bottom: 0.2rem; transition: var(--transition);
}
.dash-sidebar a svg { width: 18px; height: 18px; }
.dash-sidebar a:hover { background: var(--primary-05); color: var(--primary); }
.dash-nav-group {
    font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--text-muted);
    padding: 0.85rem 1rem 0.3rem; margin-top: 0.25rem;
}
.dash-nav-group:first-child { margin-top: 0; padding-top: 0.3rem; }
.dash-sidebar a.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white; font-weight: 600; box-shadow: 0 2px 8px rgba(30,58,95,0.25);
}
.dash-sidebar a.active:hover { color: white; }
.dash-content { flex: 1; min-width: 0; }

/* Mobile bottom navigation */
.dash-bottom-nav {
    display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
    background: var(--bg); border-top: 1px solid var(--border-light);
    box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
    padding: 0.3rem 0.5rem calc(0.3rem + env(safe-area-inset-bottom));
    justify-content: space-around; align-items: center;
}
.dash-bnav-item {
    display: flex; flex-direction: column; align-items: center; gap: 0.15rem;
    padding: 0.35rem 0.5rem; font-size: 0.62rem; font-weight: 600;
    color: var(--text-secondary); text-decoration: none; border: none;
    background: none; cursor: pointer; position: relative;
    transition: color 0.15s ease; min-width: 48px;
    -webkit-tap-highlight-color: transparent;
}
.dash-bnav-item svg { width: 20px; height: 20px; }
.dash-bnav-item.active { color: var(--primary); }
.dash-bnav-item:hover { color: var(--primary); }
.dash-bnav-badge {
    position: absolute; top: 0; right: 0.15rem;
    background: var(--error); color: #fff; font-size: 0.58rem;
    min-width: 16px; height: 16px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; padding: 0 4px;
}
@media (max-width: 768px) {
    .dash-bottom-nav { display: flex; }
    .dash-content { padding-bottom: 4.5rem; }
}

/* === MOBILE MENU TOGGLE === */
.dash-menu-toggle {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    width: fit-content;
    font-family: inherit;
}
.dash-menu-toggle:hover { border-color: var(--primary-light); color: var(--primary); }
.dash-menu-toggle.open { border-color: var(--primary); color: var(--primary); background: var(--primary-05); }

/* === QUICK ACTION CARDS === */
.quick-actions {
    display: flex;
    gap: 0.75rem;
}
.quick-card {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 1rem;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    transition: var(--transition);
    position: relative;
    flex: 1;
    min-width: 0;
    box-shadow: var(--shadow-sm);
}
.quick-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: var(--radius) var(--radius) 0 0;
}
.quick-card:hover {
    border-color: var(--primary-light);
    background: var(--primary-05);
    color: var(--text);
    box-shadow: var(--shadow);
}
.quick-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-10);
    color: var(--primary);
    flex-shrink: 0;
}
.quick-num {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}
.quick-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.quick-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--error);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* === STATS (legacy) === */
.stat-card {
    background: var(--bg); border: 1px solid var(--border-light);
    border-radius: var(--radius); padding: 1.5rem;
    box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.stat-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}
.stat-num { font-size: 2.25rem; font-weight: 800; color: var(--primary); line-height: 1.2; }
.stat-label { font-size: 0.8rem; color: var(--text-secondary); margin-top: 0.35rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.03em; }

/* === TABLE === */
.table-wrapper { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
th, td { padding: 0.85rem 1.25rem; text-align: left; border-bottom: 1px solid var(--border-light); }
th {
    background: transparent; font-weight: 700; font-size: 0.7rem;
    text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted);
    border-bottom: 2px solid var(--border);
}
tbody tr { transition: background 0.15s ease; }
tbody tr:hover td { background: var(--primary-05); }
tbody tr:last-child td { border-bottom: none; }

/* === BADGES === */
.badge {
    display: inline-flex; align-items: center; padding: 0.25rem 0.65rem; border-radius: var(--radius-full);
    font-size: 0.72rem; font-weight: 600; letter-spacing: 0.01em; white-space: nowrap;
}
.badge-active { background: #dcfce7; color: #15803d; }
.badge-expired { background: #fef2f2; color: #dc2626; }
.badge-revoked { background: #f3f4f6; color: #6b7280; }
.badge-hidden { background: #f3f4f6; color: #6b7280; }
.badge-locked { background: #fef2f2; color: #dc2626; }
.badge-suspended { background: #fef2f2; color: #b91c1c; }
.badge-dismissed { background: #f3f4f6; color: #6b7280; }
.badge-actioned { background: #fef3c7; color: #b45309; }
.badge-admin { background: #ede9fe; color: #6d28d9; }
.badge-business { background: #dbeafe; color: #1d4ed8; }
.badge-customer { background: #fef3c7; color: #b45309; }
.badge-basic { background: #f0fdf4; color: #16a34a; }
.badge-pro { background: #eff6ff; color: #2563eb; }
.badge-enterprise { background: #faf5ff; color: #9333ea; }
.badge-draft { background: #fef3c7; color: #d97706; }
.badge-archived { background: #f3f4f6; color: #6b7280; }
/* Order status badges */
.badge-pending { background: #fff7ed; color: #c2410c; }
.badge-accepted { background: #eff6ff; color: #1d4ed8; }
.badge-in_progress { background: #faf5ff; color: #7c3aed; }
.badge-completed { background: #f0fdf4; color: #15803d; }
.badge-rejected { background: #fef2f2; color: #b91c1c; }
.badge-cancelled { background: #f3f4f6; color: #6b7280; }
/* Order type badges */
.badge-order { background: #dbeafe; color: #1d4ed8; }
.badge-quote { background: #fce7f3; color: #be185d; }
.badge-cat {
    display: inline-flex; align-items: center; gap: 0.3rem;
    background: var(--primary); color: white;
    padding: 0.25rem 0.65rem; border-radius: var(--radius-full);
    font-size: 0.72rem; font-weight: 600;
}
.badge-cat--secondary {
    display: inline-flex; align-items: center; gap: 0.3rem;
    background: var(--bg-secondary); color: var(--primary);
    border: 1px solid var(--border);
    padding: 0.2rem 0.55rem; border-radius: var(--radius-full);
    font-size: 0.7rem; font-weight: 600;
}
/* Extra categories checkbox grid */
.svc-extra-cats {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.4rem; max-height: 180px; overflow-y: auto;
    padding: 0.75rem; border: 1px solid var(--border-light);
    border-radius: var(--radius-sm); background: var(--bg-secondary);
}
.svc-extra-cat-label {
    display: flex; align-items: center; gap: 0.4rem;
    font-size: 0.82rem; font-weight: 400; cursor: pointer;
    padding: 0.2rem 0.3rem; border-radius: 4px; transition: opacity 0.15s;
}
.svc-extra-cat-label input[type="checkbox"] {
    width: auto; margin: 0; accent-color: var(--primary);
}
.svc-extra-cat-label:hover { background: var(--bg); }

/* === FLASH MESSAGES === */
.flash {
    padding: 0.85rem 1.25rem; border-radius: var(--radius-sm); margin-bottom: 1.25rem;
    font-weight: 500; font-size: 0.9rem; display: flex; align-items: center; gap: 0.5rem;
}
.flash-success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.flash-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

/* === EMPTY STATE === */
.text-center.text-secondary { padding: 1.5rem 1rem; font-size: 0.85rem; font-style: italic; }

/* === FOOTER === */
.footer { background: var(--primary); color: white; padding: 3rem 0 0; margin-top: auto; }
.footer h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.75rem; }
.footer h4 { font-weight: 600; margin-bottom: 0.75rem; font-size: 0.95rem; }
.footer p, .footer a, .footer li { color: rgba(255,255,255,0.65); font-size: 0.875rem; }
.footer a:hover { color: white; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 0.5rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1); margin-top: 2.5rem;
    padding: 1rem 0; font-size: 0.8rem; color: rgba(255,255,255,0.4);
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 1rem;
}

/* === CONTACT INFO CARDS === */
.info-card {
    display: flex; align-items: flex-start; gap: 1rem;
    padding: 1.25rem; background: var(--bg); border: 1px solid var(--border-light);
    border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.info-card .icon-circle { flex-shrink: 0; }
.info-card h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.15rem; }
.info-card p { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.5; }

/* === DETAIL PAGE === */
.detail-layout { display: grid; grid-template-columns: 1fr 360px; gap: 2rem; }
.detail-image {
    aspect-ratio: 16/10; border-radius: var(--radius);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.25); overflow: hidden;
}
.detail-image svg { width: 64px; height: 64px; }
.detail-sidebar { display: flex; flex-direction: column; gap: 1.25rem; }

/* === CTA SECTION === */
.cta-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    padding: 4rem 2rem; text-align: center; color: white;
    position: relative; overflow: hidden;
}
.cta-section::before {
    content: ''; position: absolute; inset: 0; opacity: 0.05;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.4) 1px, transparent 0);
    background-size: 32px 32px;
}
.cta-section > * { position: relative; }
.cta-section h2 { font-size: 2rem; font-weight: 700; margin-bottom: 0.75rem; }
.cta-section p {
    font-size: 1.1rem; color: rgba(255,255,255,0.8); margin-bottom: 2rem;
    max-width: 500px; margin-left: auto; margin-right: auto;
}

/* === MAP PLACEHOLDER === */
.map-placeholder {
    background: var(--bg-secondary); border: 1px solid var(--border-light);
    border-radius: var(--radius); display: flex; flex-direction: column;
    align-items: center; justify-content: center; padding: 3rem;
    color: var(--text-muted); min-height: 180px;
}
.map-placeholder svg { width: 32px; height: 32px; margin-bottom: 0.5rem; }

/* === UTILITIES === */
.text-center { text-align: center; }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.flex-center { display: flex; align-items: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .detail-layout { grid-template-columns: 1fr; }
    .grid-6 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .header nav { display: none; }
    .hide-mobile { display: none !important; }
    .dash-layout { flex-direction: column; gap: 0.75rem; margin-top: 0.75rem; }
    .dash-sidebar { width: 100%; padding: 0; background: none; border: none; box-shadow: none; position: static; }
    .dash-menu-toggle { display: flex; }
    .dash-menu-items { display: none; background: var(--bg); border: 1px solid var(--border-light); border-radius: var(--radius); padding: 0.5rem; margin-top: 0.5rem; box-shadow: var(--shadow-sm); }
    .dash-menu-items.open { display: block; }
    .grid-6 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: 1fr; }
    .grid-2 { grid-template-columns: 1fr; }
    .grid-auto-2 { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .container { padding: 0 0.75rem; }
    .dash-container.dash-wide { max-width: 100%; }
    .header-inner { padding: 0 1rem; }
    .modal-content { width: 95%; max-width: 95%; margin: 1rem; }
    .dash-container { padding-top: 1rem; padding-bottom: 2rem; }
    .business-cards { margin-bottom: 0.5rem !important; }
    .quick-actions { gap: 0.5rem; }
    .quick-card { padding: 0.6rem 0.75rem; }
    .quick-num { font-size: 1.25rem; }
    .quick-label { font-size: 0.65rem; }
    .mb-3 { margin-bottom: 0.75rem !important; }
    .flex-between.mb-3 h1 { font-size: 1.3rem !important; }
    /* Mobile card layout for order tables */
    .table-wrapper table thead { display: none; }
    .table-wrapper table,
    .table-wrapper table tbody,
    .table-wrapper table tr,
    .table-wrapper table td { display: block; width: 100%; }
    .table-wrapper table tr {
        border: 1px solid var(--border-light);
        border-radius: var(--radius-sm);
        padding: 0.75rem;
        margin-bottom: 0.75rem;
        background: var(--bg);
        box-shadow: var(--shadow-sm);
    }
    .table-wrapper table td {
        padding: 0.2rem 0;
        border-bottom: none;
        font-size: 0.85rem;
    }
    .table-wrapper table td:before {
        content: attr(data-label);
        font-weight: 700;
        font-size: 0.7rem;
        text-transform: uppercase;
        color: var(--text-muted);
        letter-spacing: 0.03em;
        display: block;
        margin-bottom: 0.1rem;
    }
    .table-wrapper table td[style*="white-space"] {
        padding-top: 0.5rem;
        margin-top: 0.25rem;
        border-top: 1px solid var(--border-light);
    }
}

/* === MODAL === */
.modal-overlay {
    position: fixed; inset: 0; z-index: 1200;
    background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    padding: 2rem;
}
.modal-content {
    width: 100%; max-width: 600px;
    max-height: 90vh; overflow-y: auto;
}
.modal-content .card { margin: 0; }

/* === HIDDEN BADGE === */
.badge-hidden { background: #fef2f2; color: #dc2626; }

/* === ICON PICKER === */
.icon-picker {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.5rem;
    max-height: 320px;
    overflow-y: auto;
    padding: 0.5rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    margin-top: 0.5rem;
}
.icon-pick-item {
    display: flex; flex-direction: column; align-items: center; gap: 0.35rem;
    padding: 0.75rem 0.5rem; border-radius: var(--radius-sm);
    border: 2px solid transparent; background: var(--bg);
    cursor: pointer; transition: var(--transition); text-align: center;
}
.icon-pick-item:hover {
    border-color: var(--primary-light); background: var(--primary-05);
}
.icon-pick-item.selected {
    border-color: var(--primary); background: var(--primary-10);
    box-shadow: 0 0 0 2px rgba(30,58,95,0.15);
}
.icon-pick-item i { color: var(--primary); }
.icon-pick-item span {
    font-size: 0.65rem; color: var(--text-secondary);
    line-height: 1.2; max-width: 100%;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.icon-pick-item.selected span { color: var(--primary); font-weight: 600; }

/* === FA CATEGORY ICONS in cards === */
.cat-card i, .cat-icon i, .icon-circle i {
    display: inline-flex; align-items: center; justify-content: center;
}

/* === ORDER STATUS BADGES === */
.badge-pending { background: #fef3c7; color: #d97706; }
.badge-quoted { background: #fff3e0; color: #e65100; }
.badge-accepted { background: #dbeafe; color: #2563eb; }
.badge-in_progress { background: #e0e7ff; color: #4f46e5; }
.badge-completed { background: #dcfce7; color: #16a34a; }
.badge-rejected { background: #fef2f2; color: #dc2626; }
.badge-cancelled { background: #f3f4f6; color: #6b7280; }

/* === ORDER TYPE BADGES === */
.badge-order { background: var(--primary-10); color: var(--primary); }
.badge-quote { background: #fef3c7; color: #d97706; }

/* === CHAT === */
.chat-container {
    display: flex; flex-direction: column; gap: 0.35rem;
    max-height: 600px; overflow-y: auto; padding: 1.25rem 0.5rem;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg) 100%);
    border-radius: var(--radius-sm);
}
.chat-container::-webkit-scrollbar { width: 5px; }
.chat-container::-webkit-scrollbar-thumb {
    background: var(--border); border-radius: 5px;
}
.chat-container::-webkit-scrollbar-track { background: transparent; }
.chat-date-sep {
    text-align: center;
    padding: 0.75rem 0 0.5rem;
}
.chat-date-sep span {
    display: inline-block;
    background: var(--bg-tertiary);
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.2rem 0.75rem;
    border-radius: var(--radius-full);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.chat-msg-wrap {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
    margin-bottom: 0.15rem;
}
.chat-msg-wrap-own {
    flex-direction: row-reverse;
}
.chat-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    letter-spacing: 0.5px;
}
.chat-avatar-own {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
}
.chat-avatar-other {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    color: var(--text);
}
.chat-msg {
    max-width: 75%;
    padding: 0.65rem 0.9rem;
    position: relative;
    animation: chatMsgIn 0.2s ease;
}
@keyframes chatMsgIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}
.chat-msg-own {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    border-radius: 16px 16px 4px 16px;
    box-shadow: 0 2px 8px rgba(30,58,95,0.2), 0 1px 2px rgba(30,58,95,0.1);
}
.chat-msg-other {
    align-self: flex-start;
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: 16px 16px 16px 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.03);
}
.chat-msg-header {
    display: flex; align-items: center; gap: 0.4rem;
    margin-bottom: 0.25rem; font-size: 0.72rem;
}
.chat-msg-own .chat-msg-header strong {
    color: rgba(255,255,255,0.9);
    font-size: 0.78rem;
}
.chat-msg-other .chat-msg-header strong {
    color: var(--text);
    font-size: 0.78rem;
}
.chat-msg-own .chat-msg-time {
    color: rgba(255,255,255,0.55);
    font-size: 0.68rem;
}
.chat-msg-other .chat-msg-time {
    color: var(--text-muted);
    font-size: 0.68rem;
}
.chat-msg-own .badge {
    background: rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.85);
}
.chat-msg-own .chat-read-status {
    color: rgba(255,255,255,0.55);
    font-size: 0.68rem;
}
.chat-msg-other .chat-read-status {
    color: var(--primary);
    font-size: 0.68rem;
}
.chat-msg-body {
    font-size: 0.88rem;
    line-height: 1.6;
}
.chat-msg-own .chat-msg-body {
    color: rgba(255,255,255,0.95);
}
.chat-msg-other .chat-msg-body {
    color: var(--text);
}
/* Chat empty state */
.chat-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}
.chat-empty-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
}
.chat-empty p {
    font-size: 0.85rem;
    font-style: italic;
}
/* Send form enhancement */
.chat-send-form {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
}
.chat-send-form textarea {
    flex: 1;
    min-height: 44px;
    max-height: 120px;
    resize: none;
    border-radius: 22px !important;
    padding: 0.6rem 1rem !important;
    font-size: 0.88rem;
    transition: var(--transition);
}
.chat-send-form textarea:focus {
    box-shadow: 0 0 0 3px rgba(30,58,95,0.1), 0 2px 8px rgba(0,0,0,0.06);
}
.chat-send-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(30,58,95,0.25);
}
.chat-send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(30,58,95,0.35);
}
/* Unread button */
.btn-chat-unread {
    position: relative;
    background: var(--primary); color: #fff;
    border: 1.5px solid var(--primary);
    box-shadow: 0 0 0 3px rgba(30,58,95,0.15), var(--shadow-sm);
    animation: chat-pulse 2s ease-in-out infinite;
}
.btn-chat-unread:hover {
    background: var(--primary-light); color: #fff;
    border-color: var(--primary-light);
}
@keyframes chat-pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(30,58,95,0.15); }
    50% { box-shadow: 0 0 0 5px rgba(30,58,95,0.08); }
}
.chat-notif {
    position: absolute; top: -8px; right: -8px;
    background: var(--error); color: #fff;
    font-size: 0.65rem; font-weight: 700; line-height: 1;
    min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: 999px; display: inline-flex;
    align-items: center; justify-content: center;
    box-shadow: 0 2px 6px rgba(239,68,68,0.4);
    border: 2px solid #fff;
}
/* Quote card inside own message */
.chat-msg-own .quote-card {
    border-color: rgba(255,255,255,0.3);
}

@media (max-width: 768px) {
    .chat-msg { max-width: 90%; }
    .chat-avatar { width: 28px; height: 28px; font-size: 0.6rem; }
    .chat-send-form textarea { min-height: 40px; }
    .chat-send-btn { width: 40px; height: 40px; }
}

/* === BUSINESS CARDS === */
.business-cards {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0.25rem 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.business-cards::-webkit-scrollbar {
    height: 4px;
}
.business-cards::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}
.business-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0.65rem 1rem;
    min-width: 100px;
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    transition: var(--transition);
    position: relative;
    flex-shrink: 0;
    cursor: pointer;
}
.business-card:hover {
    border-color: var(--primary-light);
    background: var(--primary-05);
    color: var(--text);
}
.business-card.active {
    border-color: var(--primary);
    background: var(--primary-10);
    box-shadow: 0 0 0 3px rgba(30,58,95,0.08);
}
.business-card .biz-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.8rem;
    overflow: hidden;
    flex-shrink: 0;
}
.business-card .biz-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.business-card .biz-name {
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.business-card .biz-notif {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--error);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.business-card .biz-primary-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    position: absolute;
    bottom: 6px;
    right: 6px;
}
@media (min-width: 768px) {
    .business-cards {
        flex-wrap: wrap;
        overflow-x: visible;
    }
}

/* === BUSINESS SEARCH === */
.biz-search-results {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    max-height: 250px;
    overflow-y: auto;
}
.biz-search-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background 0.15s ease;
    border-bottom: 1px solid var(--border-light);
}
.biz-search-item:last-child {
    border-bottom: none;
}
.biz-search-item:hover {
    background: var(--bg-secondary);
}
.biz-search-item.selected {
    background: var(--primary-10);
    border-left: 3px solid var(--primary);
}
.biz-search-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.biz-search-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.75rem;
}
.biz-search-empty {
    padding: 1.25rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Primary business badge */
.badge-primary-biz {
    background: var(--accent);
    color: #fff;
}

/* === QUOTE CARD (in chat) === */
.quote-card {
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg);
    box-shadow: var(--shadow);
    margin: 0.5rem 0;
    max-width: 600px;
}
.quote-card-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.quote-card-header img {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.3);
}
.quote-card-header .quote-header-text {
    flex: 1;
}
.quote-card-header .quote-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.8;
}
.quote-card-header .quote-biz-name {
    font-size: 1.1rem;
    font-weight: 700;
}
.quote-card-body {
    padding: 1.25rem;
}
.quote-parties {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}
.quote-party-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 0.25rem;
}
.quote-party-info {
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--text);
}
.quote-section {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}
.quote-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.quote-section-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 0.35rem;
}
.quote-description {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--text);
    white-space: pre-wrap;
}
.quote-price-table {
    width: 100%;
    font-size: 0.88rem;
}
.quote-price-table td {
    padding: 0.25rem 0;
}
.quote-price-table td:last-child {
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.quote-price-table .quote-price-total {
    font-weight: 700;
    font-size: 1rem;
    border-top: 2px solid var(--primary);
    padding-top: 0.5rem;
    color: var(--primary);
}
.quote-valid-until {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.quote-expired-badge {
    display: inline-block;
    background: var(--error);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
    margin-left: 0.5rem;
}
.quote-card-actions {
    padding: 1rem 1.25rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-light);
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}
.quote-card-actions .btn {
    min-width: 120px;
    justify-content: center;
}
.quote-status-badge {
    padding: 1rem 1.25rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-light);
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
}
.quote-status-accepted {
    color: var(--success);
    background: #f0fdf4;
}
.quote-status-rejected {
    color: var(--error);
    background: #fef2f2;
}
.quote-status-expired {
    color: var(--text-muted);
    background: var(--bg-tertiary);
}

/* Quote form modal */
.quote-form-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem;
    overflow-y: auto;
}
.quote-form-modal {
    background: var(--bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 640px;
    animation: modalSlideIn 0.25s ease;
}
@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
.quote-form-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius) var(--radius) 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.quote-form-header h3 {
    font-size: 1.1rem;
    color: #fff;
}
.quote-form-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
}
.quote-form-close:hover {
    color: #fff;
}
.quote-form-body {
    padding: 1.5rem;
}
.quote-form-body .form-section {
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-light);
}
.quote-form-body .form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.quote-form-body .form-section-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.75rem;
}
.quote-form-footer {
    padding: 1rem 1.5rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-light);
    border-radius: 0 0 var(--radius) var(--radius);
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

/* Quote item rows in form */
.quote-item-row {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    position: relative;
}
.quote-item-row-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.quote-item-remove {
    background: none;
    border: none;
    color: var(--error);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.15rem 0.35rem;
    border-radius: 4px;
    line-height: 1;
    transition: var(--transition);
    font-weight: 700;
}
.quote-item-remove:hover {
    background: #fef2f2;
    color: #dc2626;
}
.grid-3-auto {
    display: grid;
    grid-template-columns: 1fr 120px 120px;
    gap: 0.75rem;
    align-items: end;
}
.quote-items-add {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: none;
    border: 1px dashed var(--border);
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    justify-content: center;
    font-family: inherit;
}
.quote-items-add:hover {
    border-color: var(--primary);
    background: var(--primary-05);
}

/* Quote items table in chat card */
.quote-items-table {
    width: 100%;
    font-size: 0.85rem;
    border-collapse: collapse;
    margin-bottom: 0.5rem;
}
.quote-items-table th {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 700;
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--border-light);
    text-align: left;
}
.quote-items-table th:last-child {
    text-align: right;
}
.quote-items-table td {
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--border-light);
    vertical-align: top;
}
.quote-items-table td:last-child {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.quote-items-table tr:last-child td {
    border-bottom: none;
}
.quote-items-table .alv-cell {
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

@media (max-width: 768px) {
    .grid-3-auto {
        grid-template-columns: 1fr;
    }
}

/* Quote expand button in header */
.quote-expand-btn {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    color: rgba(255,255,255,0.8);
    border-radius: var(--radius-sm);
    padding: 0.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}
.quote-expand-btn:hover {
    background: rgba(255,255,255,0.25);
    color: #fff;
}

/* Quote fullscreen overlay */
.quote-fullscreen-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    overflow-y: auto;
}
.quote-fullscreen-wrap {
    position: relative;
    width: 100%;
    max-width: 700px;
    max-height: 95vh;
    overflow-y: auto;
    animation: modalSlideIn 0.25s ease;
}
.quote-fullscreen-close {
    position: fixed;
    top: 1rem;
    right: 1.5rem;
    background: rgba(0,0,0,0.5);
    border: none;
    color: #fff;
    font-size: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1101;
    transition: var(--transition);
    line-height: 1;
}
.quote-fullscreen-close:hover {
    background: rgba(0,0,0,0.75);
}
/* Fullscreen quote card overrides */
.quote-card-fullscreen {
    max-width: 100% !important;
    box-shadow: var(--shadow-lg);
}
.quote-card-fullscreen .quote-card-header {
    padding: 1.5rem 2rem;
}
.quote-card-fullscreen .quote-card-header img {
    width: 56px;
    height: 56px;
}
.quote-card-fullscreen .quote-biz-name {
    font-size: 1.3rem;
}
.quote-card-fullscreen .quote-card-body {
    padding: 1.75rem 2rem;
}
.quote-card-fullscreen .quote-party-info {
    font-size: 0.9rem;
}
.quote-card-fullscreen .quote-section-title {
    font-size: 0.75rem;
}
.quote-card-fullscreen .quote-description {
    font-size: 0.95rem;
}
.quote-card-fullscreen .quote-price-table {
    font-size: 0.95rem;
}
.quote-card-fullscreen .quote-price-table .quote-price-total {
    font-size: 1.15rem;
}
.quote-card-fullscreen .quote-card-actions {
    padding: 1.25rem 2rem;
}
.quote-card-fullscreen .quote-card-actions .btn {
    min-width: 140px;
    padding: 0.65rem 1.5rem;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .quote-card { max-width: 100%; }
    .quote-parties { grid-template-columns: 1fr; }
    .quote-form-overlay { padding: 1rem; }
    .quote-form-modal { max-width: 100%; }
    .quote-fullscreen-overlay { padding: 0.5rem; }
    .quote-fullscreen-wrap { max-height: 100vh; }
    .quote-fullscreen-close { top: 0.5rem; right: 0.75rem; }
    .quote-card-fullscreen .quote-card-header { padding: 1rem 1.25rem; }
    .quote-card-fullscreen .quote-card-body { padding: 1.25rem; }
    .quote-card-fullscreen .quote-card-actions { padding: 1rem 1.25rem; }
}

/* === CONFIRM REASON MODAL === */
.confirm-reasons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}
.confirm-reason-option {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 0.85rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.88rem;
    color: var(--text);
    background: var(--bg);
}
.confirm-reason-option:hover {
    border-color: var(--primary-light);
    background: var(--primary-05);
}
.confirm-reason-option.selected {
    border-color: var(--primary);
    background: var(--primary-10);
    font-weight: 600;
}
.confirm-reason-option input[type="radio"] {
    accent-color: var(--primary);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin: 0;
}
.confirm-reason-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Close reason badge in order card */
.close-reason-badge {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    line-height: 1.5;
}
.close-reason-badge.reason-rejected {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}
.close-reason-badge.reason-cancelled {
    background: #f3f4f6;
    border: 1px solid var(--border);
    color: #6b7280;
}
.close-reason-badge strong {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.2rem;
}

/* === UTILITY === */
.hidden { display: none !important; }
td .btn-sm { font-size: 0.75rem; padding: 0.3rem 0.6rem; }
td .btn-sm + .btn-sm, td form + form, td form + .btn-sm, td .btn-sm + form { margin-left: 0.25rem; }

/* === REVIEWS === */
.review-summary {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
}
.review-summary-avg {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}
.review-summary-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}
.review-summary-max {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}
.review-summary-stars {
    font-size: 1.25rem;
}
.review-summary-stars .star { color: #f59e0b; }
.review-summary-stars .star-half { color: #f59e0b; opacity: 0.55; }
.review-summary-stars .star-empty { color: #d1d5db; }
.review-summary-count {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}
.review-card {
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}
.review-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.review-card-stars .star { color: #f59e0b; font-size: 1rem; }
.review-card-stars .star-half { color: #f59e0b; opacity: 0.55; font-size: 1rem; }
.review-card-stars .star-empty { color: #d1d5db; font-size: 1rem; }
.review-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.review-card-meta strong {
    color: var(--text);
    font-weight: 600;
}
.review-card-body {
    margin-top: 0.25rem;
}
.review-card-body p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}
.review-card-actions {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-light);
}
.review-form-wrap {
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}
.review-form-wrap h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.star-rating-input {
    display: inline-flex;
    gap: 0.25rem;
    font-size: 1.75rem;
    cursor: pointer;
    margin-bottom: 0.25rem;
}
.star-rating-input .star-input {
    color: #d1d5db;
    transition: color 0.15s ease, transform 0.15s ease;
    user-select: none;
}
.star-rating-input .star-input.active,
.star-rating-input .star-input.selected {
    color: #f59e0b;
}
.star-rating-input .star-input:hover {
    transform: scale(1.15);
}
.star-half { color: #f59e0b; opacity: 0.55; }
@media (max-width: 768px) {
    .review-summary { flex-direction: column; align-items: flex-start; gap: 0.5rem; padding: 1rem; }
    .review-card { padding: 1rem; }
    .review-form-wrap { padding: 1rem; }
}

/* === VERIFIED BADGE (inline, small) === */
.verified-badge {
    display: inline-flex; align-items: center; gap: 0.3rem;
    background: linear-gradient(135deg, #1e6b3a, #22863a); color: white;
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em;
    padding: 0.25rem 0.65rem; border-radius: var(--radius-full);
    margin-left: 0.5rem; vertical-align: middle; white-space: nowrap;
    box-shadow: 0 2px 6px rgba(34,134,58,0.3);
}
.verified-badge svg { width: 14px; height: 14px; flex-shrink: 0; }
.verified-badge-sm {
    font-size: 0.65rem; padding: 0.15rem 0.5rem; gap: 0.2rem;
    margin-left: 0.35rem;
}
.verified-badge-sm svg { width: 11px; height: 11px; }

/* === VERIFIED STAMP (profile card corner) === */
.verified-stamp {
    position: absolute; top: 1.1rem; right: 1.1rem; z-index: 2;
    display: flex; align-items: center; gap: 0.4rem;
    background: linear-gradient(135deg, #15803d, #16a34a);
    color: white; font-size: 0.78rem; font-weight: 700;
    padding: 0.5rem 1rem; border-radius: var(--radius);
    box-shadow: 0 4px 14px rgba(22,163,74,0.35), 0 1px 3px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.2);
    letter-spacing: 0.03em;
    border: 1px solid rgba(255,255,255,0.2);
}
.verified-stamp svg { width: 16px; height: 16px; flex-shrink: 0; filter: drop-shadow(0 1px 1px rgba(0,0,0,0.15)); }
@media (max-width: 768px) {
    .verified-stamp { font-size: 0.7rem; padding: 0.4rem 0.75rem; top: 0.75rem; right: 0.75rem; }
    .verified-stamp svg { width: 14px; height: 14px; }
}

/* === NOTIFICATION BELL === */
.header-bell {
    position: relative; display: inline-flex; align-items: center;
    color: rgba(255,255,255,0.85); margin-right: 0.25rem;
    transition: var(--transition);
}
.header-bell:hover { color: white; }
.header-bell .bell-badge {
    position: absolute; top: -4px; right: -6px;
    background: var(--error); color: white;
    font-size: 0.6rem; font-weight: 700; line-height: 1;
    min-width: 16px; height: 16px; padding: 0 4px;
    border-radius: 999px; display: inline-flex;
    align-items: center; justify-content: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* === HEADER USER === */
.header-user {
    display: inline-flex; align-items: center; gap: 0.4rem;
    color: #ffffff; text-decoration: none;
    font-size: 0.85rem; font-weight: 600; position: relative;
}
.header-user:hover { color: rgba(255,255,255,0.9); }
.header-user-biz {
    font-weight: 400; opacity: 0.75; font-size: 0.75rem;
}

/* === SHARE BUTTONS === */
.share-buttons {
    display: flex; gap: 0.5rem; flex-wrap: wrap;
    margin-top: 0.75rem; margin-bottom: 0.75rem;
}
.share-btn {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.4rem 0.85rem; border-radius: var(--radius-full);
    font-size: 0.8rem; font-weight: 500; border: 1px solid var(--border);
    background: var(--bg); color: var(--text-secondary);
    cursor: pointer; transition: var(--transition); text-decoration: none;
}
.share-btn:hover { background: var(--bg-secondary); color: var(--text); border-color: var(--text-muted); }
.share-btn--whatsapp:hover { color: #25d366; border-color: #25d366; }
.share-btn--facebook:hover { color: #1877f2; border-color: #1877f2; }
.share-btn--copy:hover { color: var(--primary); border-color: var(--primary); }
.share-btn--copy.copied { background: var(--success); color: white; border-color: var(--success); }

/* === OPENING HOURS === */
.opening-hours {
    margin-top: 1rem; padding: 1rem;
    background: var(--bg-secondary); border-radius: var(--radius-sm);
}
.opening-hours h4 { font-size: 0.9rem; margin-bottom: 0.5rem; }
.opening-hours-table { width: 100%; font-size: 0.85rem; }
.opening-hours-table tr td {
    padding: 0.2rem 0; border: none;
}
.opening-hours-table tr td:first-child {
    font-weight: 600; width: 40%; color: var(--text);
}
.opening-hours-table tr td:last-child { color: var(--text-secondary); }
.opening-hours-table tr.today td { color: var(--primary); font-weight: 600; }
.oh-edit-grid {
    display: grid; grid-template-columns: 80px 1fr; gap: 0.35rem 0.75rem;
    align-items: center; font-size: 0.85rem;
}
.oh-edit-grid label { font-weight: 600; }
.oh-edit-grid input {
    padding: 0.35rem 0.5rem; border: 1px solid var(--border);
    border-radius: var(--radius-sm); font-size: 0.85rem;
}

/* === SERVICE AREA BADGE === */
.service-area-badge {
    display: inline-flex; align-items: center; gap: 0.35rem;
    padding: 0.35rem 0.75rem; border-radius: var(--radius-full);
    background: var(--primary-10); color: var(--primary);
    font-size: 0.82rem; font-weight: 500;
}

/* === MAP EMBED === */
.map-container {
    margin-top: 1rem; border-radius: var(--radius);
    overflow: hidden; border: 1px solid var(--border);
    position: relative; z-index: 0;
}
.map-container iframe {
    width: 100%; height: 220px; border: none;
}

/* === FAVORITES === */
.favorite-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(255,255,255,0.9); border: none; cursor: pointer;
    transition: var(--transition); color: var(--text-muted);
    position: absolute; top: 0.5rem; right: 0.5rem; z-index: 5;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.favorite-btn:hover { color: #ef4444; transform: scale(1.1); }
.favorite-btn.active { color: #ef4444; }
.favorite-btn.active svg { fill: #ef4444; }
.svc-image { position: relative; }

/* === PORTFOLIO GALLERY === */
.portfolio-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem; margin-bottom: 2rem;
}
.portfolio-item {
    position: relative; border-radius: var(--radius-sm);
    overflow: hidden; aspect-ratio: 4/3; cursor: pointer;
    transition: var(--transition);
}
.portfolio-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.3s ease;
}
.portfolio-item:hover img { transform: scale(1.05); }
.portfolio-item .portfolio-caption {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 0.5rem 0.75rem; background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white; font-size: 0.8rem; opacity: 0;
    transition: opacity 0.3s ease;
}
.portfolio-item:hover .portfolio-caption { opacity: 1; }

/* Lightbox */
.lightbox-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.9);
    display: flex; align-items: center; justify-content: center;
    z-index: 10000; cursor: pointer;
}
.lightbox-overlay img {
    max-width: 90vw; max-height: 85vh; object-fit: contain;
    border-radius: var(--radius-sm);
}
.lightbox-close {
    position: absolute; top: 1rem; right: 1rem;
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,0.2); border: none;
    color: white; font-size: 1.5rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.lightbox-caption {
    position: absolute; bottom: 1.5rem; left: 50%;
    transform: translateX(-50%); color: white;
    font-size: 0.9rem; background: rgba(0,0,0,0.5);
    padding: 0.5rem 1rem; border-radius: var(--radius-full);
}

/* Portfolio management */
.portfolio-manage-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
}
.portfolio-manage-item {
    position: relative; border-radius: var(--radius-sm);
    overflow: hidden; aspect-ratio: 4/3;
    border: 1px solid var(--border);
}
.portfolio-manage-item img { width: 100%; height: 100%; object-fit: cover; }
.portfolio-manage-item .portfolio-delete-btn {
    position: absolute; top: 0.25rem; right: 0.25rem;
    width: 24px; height: 24px; border-radius: 50%;
    background: var(--error); color: white; border: none;
    cursor: pointer; display: flex; align-items: center;
    justify-content: center; font-size: 0.8rem;
}

/* === STATISTICS === */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat-card {
    background: var(--bg); border: 1px solid var(--border-light);
    border-radius: var(--radius); padding: 1.25rem;
    text-align: center;
}
.stat-card-value { font-size: 2rem; font-weight: 700; color: var(--primary); line-height: 1.2; }
.stat-card-label { font-size: 0.82rem; color: var(--text-secondary); margin-top: 0.25rem; }
.stat-bar {
    height: 8px; background: var(--bg-tertiary);
    border-radius: 4px; overflow: hidden; margin-top: 0.5rem;
}
.stat-bar-fill { height: 100%; background: var(--primary); border-radius: 4px; transition: width 0.5s ease; }

/* === GDPR === */
.gdpr-section { max-width: 700px; margin: 0 auto; }
.gdpr-card { margin-bottom: 1.5rem; }

/* === CSV EXPORT === */
.export-btn {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.35rem 0.75rem; border-radius: var(--radius-sm);
    font-size: 0.78rem; font-weight: 500; border: 1px solid var(--border);
    background: var(--bg); color: var(--text-secondary);
    cursor: pointer; transition: var(--transition); text-decoration: none;
}
.export-btn:hover { background: var(--bg-secondary); color: var(--primary); border-color: var(--primary); }

/* === ADMIN SEARCH === */
.admin-search-wrap { position: relative; margin-bottom: 1.5rem; }
.admin-search-wrap input {
    width: 100%; padding: 0.65rem 1rem 0.65rem 2.5rem;
    border: 1.5px solid var(--border); border-radius: var(--radius);
    font-size: 0.9rem; background: var(--bg); transition: var(--transition);
}
.admin-search-wrap input:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px var(--primary-05); }
.admin-search-wrap .search-icon { position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.admin-search-results {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 50;
    background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow-lg); max-height: 400px; overflow-y: auto; display: none;
}
.search-section-label {
    padding: 0.5rem 1rem; font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; color: var(--text-muted); background: var(--bg-secondary);
    letter-spacing: 0.5px; border-bottom: 1px solid var(--border-light);
}
.search-result-item {
    display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 1rem;
    text-decoration: none; color: var(--text); transition: var(--transition);
    border-bottom: 1px solid var(--border-light); font-size: 0.875rem;
}
.search-result-item:hover { background: var(--primary-05); color: var(--primary); }
.search-result-item .result-meta { font-size: 0.75rem; color: var(--text-muted); }

/* === REPORT BUTTON === */
.report-btn {
    display: inline-flex; align-items: center; gap: 0.3rem;
    padding: 0.25rem 0.5rem; border-radius: var(--radius-sm);
    font-size: 0.75rem; color: var(--text-muted); background: none;
    border: 1px solid transparent; cursor: pointer; transition: var(--transition);
}
.report-btn:hover { color: var(--error); border-color: var(--error); background: #fef2f2; }

/* === SIDEBAR BADGE === */
.sidebar-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 18px; height: 18px; padding: 0 5px;
    font-size: 0.7rem; font-weight: 700; line-height: 1;
    background: var(--error); color: white; border-radius: 999px;
    margin-left: auto;
}

/* === FILTER FORM === */
.filter-form {
    display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: flex-end;
}
.filter-form .form-group { margin-bottom: 0; flex: 1; min-width: 150px; }
.filter-form .form-group label { font-size: 0.8rem; margin-bottom: 0.25rem; display: block; }
.filter-form .form-group input,
.filter-form .form-group select {
    padding: 0.45rem 0.75rem; font-size: 0.85rem; border: 1px solid var(--border);
    border-radius: var(--radius-sm); width: 100%;
}

/* === PASSWORD CONFIRM MODAL === */
.pw-confirm-field {
    margin: 1rem 0; padding: 0.75rem; background: var(--bg-secondary);
    border-radius: var(--radius-sm); border: 1px solid var(--border-light);
}
.pw-confirm-field label { font-size: 0.85rem; font-weight: 600; margin-bottom: 0.35rem; display: block; }
.pw-confirm-field input { width: 100%; padding: 0.5rem 0.75rem; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 0.9rem; }

/* === BIZ PROFILE DETAILS (aukioloajat + portfolio vierekkäin) === */
.biz-profile-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}
.biz-profile-details.single-col {
    grid-template-columns: 1fr;
}

/* === OPENING HOURS COMPACT === */
.opening-hours-compact {
    padding: 0.5rem 0.65rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
}
.opening-hours-compact h4 {
    font-size: 0.72rem;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.oh-compact-table {
    width: 100%;
    font-size: 0.72rem;
}
.oh-compact-table tr td {
    padding: 0.05rem 0;
    border: none;
}
.oh-compact-table tr td:first-child {
    font-weight: 600;
    width: 26px;
    color: var(--text);
}
.oh-compact-table tr td:last-child {
    color: var(--text-secondary);
}
.oh-compact-table tr.today td {
    color: var(--primary);
    font-weight: 600;
}

/* === BIZ PORTFOLIO INLINE === */
.biz-portfolio-inline h4 {
    font-size: 0.72rem;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.portfolio-inline-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem;
}
.portfolio-inline-item {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0,0,0,0.10), 0 1px 3px rgba(0,0,0,0.06);
}
.portfolio-inline-item:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,0.15), 0 2px 5px rgba(0,0,0,0.08);
}
.portfolio-inline-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.portfolio-inline-item:hover img {
    transform: scale(1.05);
}

/* === BUSINESS LIST PAGE (yritykset.php) === */
.biz-list-toolbar {
    display: flex; align-items: center; gap: 1rem;
    margin-bottom: 1.5rem; flex-wrap: wrap;
}
.biz-list-search {
    flex: 1; min-width: 200px; position: relative;
    display: flex; align-items: center;
}
.biz-list-search svg {
    position: absolute; left: 1rem; color: var(--text-muted); pointer-events: none;
}
.biz-list-search input {
    width: 100%; padding: 0.7rem 1rem 0.7rem 2.75rem;
    border: 1px solid var(--border-light); border-radius: var(--radius-full);
    font-size: 0.9rem; background: var(--bg);
    box-shadow: var(--shadow-sm); transition: var(--transition);
}
.biz-list-search input:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30,58,95,0.1);
}
.biz-list-sort {
    display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0;
}
.biz-list-sort label {
    font-size: 0.82rem; font-weight: 600; color: var(--text-secondary); white-space: nowrap;
}
.biz-list-sort select {
    padding: 0.55rem 2rem 0.55rem 0.75rem; border: 1px solid var(--border-light);
    border-radius: var(--radius); font-size: 0.85rem; background: var(--bg);
    box-shadow: var(--shadow-sm); cursor: pointer;
    -webkit-appearance: none; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 0.65rem center;
}
.biz-list-sort select:focus {
    outline: none; border-color: var(--primary);
}

.biz-list-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}
.biz-list-card {
    display: flex; flex-direction: column;
    background: linear-gradient(145deg, #f0f2f5 0%, #e6e9ef 100%);
    border: 1px solid rgba(30,58,95,0.10);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-decoration: none; color: inherit;
    position: relative; overflow: hidden;
    box-shadow: 0 1px 1px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04), 0 6px 16px rgba(30,58,95,0.08), 0 12px 32px rgba(30,58,95,0.06);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.biz-list-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.08), 0 8px 20px rgba(30,58,95,0.12), 0 16px 48px rgba(30,58,95,0.10);
}
.biz-list-card::after { content: none; }

.biz-list-verified {
    position: absolute; top: 1rem; right: 1rem;
    display: inline-flex; align-items: center; gap: 0.25rem;
    background: linear-gradient(135deg, #15803d, #16a34a); color: white;
    font-size: 0.68rem; font-weight: 700;
    padding: 0.25rem 0.6rem; border-radius: var(--radius-full);
    box-shadow: 0 2px 8px rgba(22,163,74,0.3);
    letter-spacing: 0.02em;
}
.biz-list-verified svg { width: 13px; height: 13px; }

.biz-list-top {
    display: flex; align-items: center; gap: 1rem;
    margin-bottom: 1rem; padding-right: 6rem;
}
.biz-list-avatar {
    width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0;
    background: var(--primary-10);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(30,58,95,0.1);
}
.biz-list-avatar img {
    width: 100%; height: 100%; object-fit: cover;
}
.biz-list-avatar span {
    font-size: 1rem; font-weight: 800; color: var(--primary);
}
.biz-list-info { min-width: 0; }
.biz-list-info h3 {
    font-size: 1rem; font-weight: 700; color: var(--text);
    margin-bottom: 0.15rem; line-height: 1.3;
}
.biz-list-tagline {
    font-size: 0.8rem; color: var(--text-secondary);
    line-height: 1.4; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.biz-list-meta {
    margin-bottom: 0.75rem;
}
.biz-list-rating {
    display: inline-flex; align-items: center; gap: 0.25rem;
    font-size: 0.8rem; font-weight: 600; color: var(--text);
    margin-bottom: 0.5rem;
}
.biz-list-rating .star { color: #f59e0b; font-size: 0.85rem; }
.biz-list-rating .star-empty { color: #d1d5db; font-size: 0.85rem; }
.biz-list-review-count { font-weight: 400; color: var(--text-muted); font-size: 0.75rem; }

.biz-list-stats {
    display: flex; flex-wrap: wrap; gap: 0.75rem;
}
.biz-list-stat {
    display: inline-flex; align-items: center; gap: 0.3rem;
    font-size: 0.78rem; color: var(--text-secondary);
}
.biz-list-stat svg { color: var(--text-muted); }

.biz-list-cats {
    display: flex; flex-wrap: wrap; gap: 0.35rem;
    margin-bottom: 0.75rem;
}
.biz-list-cat-tag {
    display: inline-flex; align-items: center; gap: 0.25rem;
    font-size: 0.7rem; font-weight: 500;
    padding: 0.2rem 0.55rem; border-radius: var(--radius-full);
    background: var(--primary-10); color: var(--primary);
}
.biz-list-cat-tag svg { width: 12px; height: 12px; }

.biz-list-footer {
    margin-top: auto; padding-top: 0.75rem;
    border-top: 1px solid var(--border-light);
}

@media (max-width: 768px) {
    .biz-list-grid { grid-template-columns: 1fr; }
    .biz-list-top { padding-right: 5.5rem; }
    .biz-list-toolbar { flex-direction: column; align-items: stretch; }
    .biz-list-sort { justify-content: space-between; }
}

@media (max-width: 768px) {
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .share-buttons { gap: 0.35rem; }
    .stat-cards { grid-template-columns: repeat(2, 1fr); }
    .filter-form { flex-direction: column; }
    .filter-form .form-group { min-width: 100%; }
    .biz-profile-details { grid-template-columns: 1fr; }
}

/* === DASHBOARD BOARD GRID (responsive, mobile-first) === */
.dash-board-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}
@media (min-width: 640px) {
    .dash-board-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .dash-board-grid { grid-template-columns: repeat(3, 1fr); }
}

/* === ILMOITUSTAULU (Contact Cards) === */
.board-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}
@media (max-width: 640px) {
    .board-grid { grid-template-columns: 1fr; }
}
.board-card {
    background: linear-gradient(145deg, #f0f2f5 0%, #e6e9ef 100%);
    border: 1px solid rgba(30,58,95,0.10);
    border-radius: var(--radius);
    padding: 1.35rem 1.5rem;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    min-height: 160px;
    box-shadow:
        0 1px 1px rgba(0,0,0,0.06),
        0 2px 4px rgba(0,0,0,0.04),
        0 6px 16px rgba(30,58,95,0.08),
        0 12px 32px rgba(30,58,95,0.06);
    overflow: hidden;
}
.board-card::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 80px; height: 80px;
    background: radial-gradient(circle at top right, rgba(30,58,95,0.04) 0%, transparent 70%);
    pointer-events: none;
}
.board-card::after { content: none; }
.board-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 2px 4px rgba(0,0,0,0.08),
        0 8px 20px rgba(30,58,95,0.12),
        0 16px 48px rgba(30,58,95,0.10);
}
.board-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
    flex-wrap: wrap;
}
.board-cat-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(30,58,95,0.1) 0%, rgba(45,90,142,0.08) 100%);
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.7rem;
    border-radius: var(--radius-full);
    letter-spacing: 0.02em;
    border: 1px solid rgba(30,58,95,0.08);
}
.board-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    line-height: 1.35;
    color: var(--text);
}
.board-card-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 0.75rem;
}
.board-card-meta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}
.board-card-meta i { margin-right: 0.15rem; }
.board-card-stats {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.78rem;
    color: var(--text-secondary);
    padding-top: 0.65rem;
    margin-top: 0.25rem;
    border-top: 1px solid var(--border-light);
}
.board-card-stats i { margin-right: 0.2rem; color: var(--text-muted); }
.board-card-contact {
    margin-top: 0.65rem;
    padding: 0.6rem 0.75rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--text);
    line-height: 1.6;
}

/* === URGENCY BADGES === */
.board-urgency-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.board-urgency-badge--no_rush {
    background: rgba(34,197,94,0.2);
    color: #15803d;
}
.board-urgency-badge--within_week {
    background: rgba(234,179,8,0.25);
    color: #a16207;
}
.board-urgency-badge--asap {
    background: rgba(239,68,68,0.2);
    color: #dc2626;
}

/* === ASAP CARD RED BORDER === */
.board-card--asap {
    background: linear-gradient(145deg, #fef2f2 0%, #f3ebeb 100%);
    border-color: rgba(220,38,38,0.12);
}
.board-card--asap:hover {
    transform: translateY(-4px);
    box-shadow:
        0 2px 4px rgba(220,38,38,0.08),
        0 8px 20px rgba(220,38,38,0.10),
        0 16px 48px rgba(30,58,95,0.08);
}

.board-card--restricted {
    opacity: 0.92;
    cursor: default;
}
.board-card--restricted:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
}

/* === CARD IMAGE INDICATOR === */
.board-card-has-image {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: linear-gradient(135deg, rgba(30,58,95,0.08) 0%, rgba(45,90,142,0.05) 100%);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(30,58,95,0.06);
}
.board-card-has-image i {
    font-size: 0.68rem;
}

/* === CTA BANNER (public board) === */
.board-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    flex-wrap: wrap;
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.board-cta p {
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0;
}
.board-cta .btn {
    background: var(--accent);
    color: white;
    font-weight: 700;
    white-space: nowrap;
}
.board-cta .btn:hover {
    background: var(--accent-hover);
}

/* === PUBLIC CARD LOGIN OVERLAY === */
.board-card-login {
    margin-top: 0.65rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    color: var(--text-secondary);
    text-align: center;
    font-weight: 600;
}
.board-card-login a {
    color: var(--primary);
    text-decoration: underline;
}

/* Board card message bubble */
.board-card-message {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    border-radius: var(--radius-sm);
    padding: 0.4rem 0.65rem;
    font-size: 0.8rem;
    line-height: 1.4;
    margin: 0.5rem 0;
    word-break: break-word;
}

/* Board modal message box */
.board-modal-message {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    border-radius: var(--radius-sm);
    padding: 0.65rem 0.85rem;
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    word-break: break-word;
}

/* === MOBILE MENU BUTTON (hamburger) === */
.mobile-menu-btn {
    display: none;
    flex-direction: column; justify-content: center; align-items: center;
    gap: 5px; width: 36px; height: 36px;
    background: none; border: none; cursor: pointer; padding: 6px;
    -webkit-tap-highlight-color: transparent;
}
.mobile-menu-btn span {
    display: block; width: 22px; height: 2px;
    background: white; border-radius: 2px;
    transition: all 0.3s ease;
}
.mobile-menu-btn.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* === MOBILE NAV OVERLAY === */
.mobile-nav-overlay {
    display: none; position: fixed; inset: 0; z-index: 998;
    background: rgba(0,0,0,0.5); opacity: 0;
    transition: opacity 0.3s ease;
}
.mobile-nav-overlay.open {
    display: block; opacity: 1;
}

/* === MOBILE NAV PANEL === */
.mobile-nav {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: 280px; max-width: 85vw;
    background: var(--bg); z-index: 999;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex; flex-direction: column;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    overflow-y: auto;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 1.25rem; border-bottom: 1px solid var(--border);
    min-height: 60px;
}
.mobile-nav-title {
    font-size: 1rem; font-weight: 700; color: var(--text);
}
.mobile-nav-close {
    background: none; border: none; cursor: pointer;
    font-size: 1.75rem; line-height: 1; color: var(--text-secondary);
    padding: 0; width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
}
.mobile-nav-close:hover { color: var(--text); }
.mobile-nav-links {
    flex: 1; padding: 0.75rem 0;
}
.mobile-nav-links a {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    color: var(--text); font-size: 0.95rem; font-weight: 500;
    transition: background 0.15s ease;
}
.mobile-nav-links a:hover { background: var(--bg-secondary); color: var(--primary); }
.mobile-nav-links a.active {
    color: var(--primary); font-weight: 600;
    background: var(--primary-05);
    border-right: 3px solid var(--primary);
}
.mobile-nav-footer {
    padding: 1rem 1.25rem; border-top: 1px solid var(--border);
    display: flex; flex-direction: column; gap: 0.5rem;
}

/* === RESPONSIVE: 768px === */
@media (max-width: 768px) {
    .mobile-menu-btn { display: flex; }
    .header-user-name { display: none; }
    .header-user-biz { display: none; }
    .header-logout-btn { display: none; }
    .header-login-btn { display: none; }
    .hero { min-height: 350px; padding: 2rem 1rem 3rem; }
    .hero::after { height: 60px; }
    .hero h1 { font-size: 1.8rem; }
    .hero p { font-size: 0.95rem; margin-bottom: 1.25rem; }
    body { font-size: 0.9rem; }
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }
    h3 { font-size: 1.1rem; }
    .section-title { font-size: 1.1rem; }
    .logo { font-size: 1rem; }
    .modal-overlay { padding: 0.5rem; }
    .quick-actions { flex-wrap: wrap; }
    .footer p, .footer a, .footer li { font-size: 0.8rem; }
    .footer-bottom .flex.gap-2 { gap: 0.75rem; }
}

/* === TIEDOTEPALKKI (Announcement bar) === */
.announcement-bar {
    width: 100%;
    margin-top: 60px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    line-height: 1.4;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}
.announcement-bar .container { max-width: 1200px; margin: 0 auto; }
.announcement-bar-icon { font-size: 1.1rem; flex-shrink: 0; }
.announcement-bar--info { background: #e0f2fe; color: #1e40af; }
.announcement-bar--info .announcement-bar-icon { color: #2563eb; }
.announcement-bar--warning { background: #fef3c7; color: #92400e; }
.announcement-bar--warning .announcement-bar-icon { color: #d97706; }
.announcement-bar--success { background: #dcfce7; color: #166534; }
.announcement-bar--success .announcement-bar-icon { color: #16a34a; }
body.has-announcement .main { padding-top: 0; }
body.has-announcement .hero { margin-top: 0; }

/* === RESPONSIVE: 480px === */
@media (max-width: 480px) {
    .hero { min-height: 280px; padding: 1.5rem 1rem 2.5rem; }
    .hero h1 { font-size: 1.6rem; }
    .hero p { font-size: 0.9rem; }
    .logo { font-size: 0.95rem; }
    .header-actions .btn-sm { display: none; }
    .btn-lg { padding: 0.6rem 1.25rem; font-size: 0.9rem; }
    .card-body { padding: 1rem; }
    .quick-actions { flex-direction: column; }
    .footer-bottom .flex.gap-2 { flex-direction: column; gap: 0.5rem; }
    .section { padding: 2rem 0; }
}

/* === KUPONKIJARJESTELMA (Coupons) === */

/* Suodatinnapit */
.coupon-filters {
    display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.coupon-filter-btn {
    padding: 0.45rem 1rem; border-radius: var(--radius-sm);
    border: 1px solid var(--border); background: var(--bg);
    color: var(--text-secondary); font-size: 0.85rem; font-weight: 500;
    text-decoration: none; transition: all 0.2s ease; cursor: pointer;
}
.coupon-filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.coupon-filter-btn.active {
    background: var(--primary); color: #fff; border-color: var(--primary);
}

/* Kuponkikortti-grid */
.coupon-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}

/* Kuponkikortti */
.coupon-card {
    background: var(--bg); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
    box-shadow: 0 2px 8px rgba(30,58,95,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex; flex-direction: column;
}
.coupon-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30,58,95,0.10);
}
.coupon-card--used {
    opacity: 0.6; filter: grayscale(0.3);
}
.coupon-card--used:hover { transform: none; }

.coupon-card-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.85rem 1rem; border-bottom: 1px solid var(--border);
    background: var(--bg-secondary);
}
.coupon-card-biz {
    display: flex; align-items: center; gap: 0.6rem;
}
.coupon-card-logo {
    width: 36px; height: 36px; border-radius: 50%;
    object-fit: cover; border: 1px solid var(--border);
}
.coupon-card-logo-placeholder {
    display: inline-flex; width: 36px; height: 36px;
    align-items: center; justify-content: center;
    background: var(--primary); color: #fff;
    border-radius: 50%; font-weight: 700; font-size: 0.9rem;
}
.coupon-card-biz-name {
    font-weight: 600; font-size: 0.88rem; color: var(--text);
}

.coupon-card-body {
    padding: 1rem; flex: 1;
}
.coupon-card-title {
    font-size: 1.1rem; font-weight: 700; color: var(--text);
    margin: 0 0 0.4rem; line-height: 1.3;
}
.coupon-card-desc {
    font-size: 0.85rem; color: var(--text-secondary);
    margin: 0 0 0.6rem; line-height: 1.5;
}
.coupon-card-meta {
    display: flex; flex-wrap: wrap; gap: 0.75rem;
    font-size: 0.8rem; color: var(--text-muted);
}
.coupon-card-meta span { display: inline-flex; align-items: center; gap: 0.3rem; }

.coupon-card-footer {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.75rem 1rem; border-top: 1px solid var(--border);
}

/* Suosikkinappi */
.coupon-fav-btn {
    background: none; border: none; cursor: pointer;
    color: var(--text-muted); font-size: 1.15rem;
    padding: 0.3rem; transition: color 0.2s;
    display: inline-flex; align-items: center; gap: 0.4rem;
}
.coupon-fav-btn:hover { color: #e74c3c; }
.coupon-fav-btn.active { color: #e74c3c; }

/* Kuponki-badget */
.coupon-badge {
    display: inline-flex; align-items: center; gap: 0.3rem;
    padding: 0.2rem 0.6rem; border-radius: 1rem;
    font-size: 0.75rem; font-weight: 600; white-space: nowrap;
}
.coupon-badge--used { background: #d4edda; color: #155724; }
.coupon-badge--expiring { background: #fff3cd; color: #856404; }
.coupon-badge--expired { background: #f8d7da; color: #721c24; }
.coupon-badge--hidden { background: var(--bg-secondary); color: var(--text-muted); }
.coupon-badge--active { background: #d4edda; color: #155724; }
.coupon-badge--cancelled { background: #f8d7da; color: #721c24; }

/* Yksittaisen kupongin sivu */
.coupon-detail-card {
    background: var(--bg); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
    box-shadow: 0 4px 16px rgba(30,58,95,0.08);
}
.coupon-detail--used { border-color: #28a745; border-width: 2px; }
.coupon-detail--expired { opacity: 0.7; }
.coupon-detail--cancelled { opacity: 0.85; border-color: #dc3545; border-width: 2px; }

.coupon-detail-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.25rem; border-bottom: 1px solid var(--border);
    background: var(--bg-secondary); flex-wrap: wrap; gap: 0.75rem;
}

.coupon-detail-body { padding: 1.25rem; }
.coupon-detail-title {
    font-size: 1.5rem; font-weight: 800; color: var(--text);
    margin: 0 0 1rem; line-height: 1.3;
}
.coupon-detail-section {
    margin-bottom: 1rem; line-height: 1.7;
}
.coupon-detail-section strong {
    display: block; font-size: 0.82rem; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.25rem;
}
.coupon-detail-section p { margin: 0; color: var(--text); font-size: 0.95rem; }

.coupon-detail-meta {
    display: flex; flex-wrap: wrap; gap: 1rem;
    padding: 0.85rem 1rem; background: var(--bg-secondary);
    border-radius: var(--radius-sm); font-size: 0.85rem;
    color: var(--text-secondary); margin-top: 1rem;
}

/* Koodialue */
.coupon-code-section {
    padding: 1.5rem; text-align: center;
    border-top: 2px dashed var(--border); border-bottom: 2px dashed var(--border);
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg) 100%);
}
.coupon-code--dimmed { opacity: 0.45; filter: grayscale(0.5); }
.coupon-code-reveal {
    animation: couponReveal 0.5s ease-out;
}
@keyframes couponReveal {
    from { opacity: 0; max-height: 0; padding: 0 1.5rem; overflow: hidden; }
    to { opacity: 1; max-height: 500px; padding: 1.5rem; overflow: visible; }
}
.coupon-code-label {
    font-size: 0.8rem; font-weight: 600; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.5rem;
}
.coupon-code-display {
    display: inline-flex; align-items: center; gap: 0.75rem;
    background: var(--bg); border: 2px solid var(--primary);
    padding: 0.75rem 1.25rem; border-radius: var(--radius-sm);
    font-family: 'Courier New', monospace; font-size: 1.5rem;
    font-weight: 800; color: var(--primary); letter-spacing: 2px;
    margin-bottom: 1rem;
}
.coupon-copy-btn {
    background: none; border: none; cursor: pointer;
    color: var(--text-muted); padding: 0.25rem;
    transition: color 0.2s;
}
.coupon-copy-btn:hover { color: var(--primary); }

.coupon-qr {
    display: flex; justify-content: center; margin: 1rem auto;
}
.coupon-qr img { border-radius: 8px; }
.coupon-qr-hint {
    font-size: 0.85rem; color: var(--text-muted); margin: 0.5rem 0 0;
}

/* Toiminnot */
.coupon-detail-actions {
    padding: 1.25rem; display: flex; flex-wrap: wrap;
    align-items: center; gap: 1rem; justify-content: center;
}
.coupon-used-notice {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.6rem 1.25rem; background: #d4edda;
    color: #155724; border-radius: var(--radius-sm);
    font-weight: 600; font-size: 0.9rem;
}

/* Peruttu-kuponki */
.coupon-cancelled-notice {
    display: flex; align-items: flex-start; gap: 0.75rem;
    padding: 1rem 1.25rem; margin: 0 1.25rem 1rem;
    background: #f8d7da; color: #721c24;
    border-radius: var(--radius-sm); font-size: 0.9rem; line-height: 1.5;
}
.coupon-cancelled-notice strong { display: block; margin-bottom: 0.15rem; }

/* Lakitekniset ehdot */
.coupon-legal-notice {
    padding: 0.85rem 1.25rem; margin: 0 1.25rem 0.5rem;
    font-size: 0.75rem; color: var(--text-muted); line-height: 1.6;
    border-top: 1px solid var(--border);
}

/* Lomakkeen info-huomautus */
.coupon-form-notice {
    display: flex; align-items: flex-start; gap: 0.6rem;
    padding: 0.75rem 1rem; margin-bottom: 1rem;
    background: #e8f4fd; color: #1a5276;
    border-radius: var(--radius-sm); font-size: 0.82rem; line-height: 1.5;
    border: 1px solid #b8daff;
}

/* Kuponki responsiivinen */
@media (max-width: 768px) {
    .coupon-grid { grid-template-columns: 1fr; }
    .coupon-detail-title { font-size: 1.25rem; }
    .coupon-code-display { font-size: 1.1rem; letter-spacing: 1px; }
    .coupon-detail-meta { flex-direction: column; gap: 0.4rem; }
}

/* Kayttoehdot-checkbox */
.terms-checkbox { margin: 1rem 0 0.5rem; }
.terms-label { display: flex; align-items: flex-start; gap: 0.5rem; cursor: pointer; font-size: 0.85rem; line-height: 1.5; color: var(--text-secondary); }
.terms-label input[type="checkbox"] { margin-top: 0.2rem; flex-shrink: 0; }
.terms-label a { color: var(--primary); font-weight: 600; }

/* Tietoturva-dashboard */
.security-summary {
   display: flex; align-items: center; justify-content: space-between;
   padding: 1rem 1.25rem; border-radius: var(--radius-sm);
   margin-bottom: 1.5rem; font-weight: 600; font-size: 0.95rem;
   color: #fff;
}
.security-summary.summary-ok { background: #059669; }
.security-summary.summary-warning { background: #d97706; }
.security-summary.summary-error { background: #dc2626; }
.security-summary .summary-label { display: flex; align-items: center; gap: 0.5rem; }
.security-summary .summary-count { font-size: 1.1rem; font-weight: 700; }

.security-actions {
   display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-bottom: 1.5rem;
}
.panic-btn {
   display: flex; align-items: center; justify-content: center; gap: 0.6rem;
   padding: 1rem 1.5rem; border-radius: var(--radius-sm);
   font-size: 0.95rem; font-weight: 700; cursor: pointer;
   border: 2px solid; transition: all 0.2s;
   text-align: center;
}
.panic-btn svg { flex-shrink: 0; }
.panic-btn--off {
   background: #fff; color: #059669; border-color: #059669;
}
.panic-btn--off:hover { background: #ecfdf5; }
.panic-btn--on {
   background: #dc2626; color: #fff; border-color: #dc2626;
   animation: panic-pulse 2s infinite;
}
.panic-btn--on:hover { background: #b91c1c; border-color: #b91c1c; }
.panic-btn-sub {
   display: block; font-size: 0.75rem; font-weight: 400; margin-top: 0.2rem; opacity: 0.85;
}
@keyframes panic-pulse {
   0%, 100% { box-shadow: 0 0 0 0 rgba(220,38,38,0.3); }
   50% { box-shadow: 0 0 0 8px rgba(220,38,38,0); }
}

.security-grid {
   display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem;
}
.security-card {
   background: var(--card-bg); border: 1px solid var(--border);
   border-radius: var(--radius-sm); padding: 1rem 1.25rem;
   display: flex; flex-direction: column; gap: 0.4rem;
}
.security-card-header {
   display: flex; align-items: center; justify-content: space-between;
}
.security-card-title {
   display: flex; align-items: center; gap: 0.5rem;
   font-weight: 600; font-size: 0.9rem; color: var(--text-primary);
}
.security-card-title svg { color: var(--text-muted); flex-shrink: 0; }
.security-status-dot {
   width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0;
}
.status-ok { background: #059669; box-shadow: 0 0 6px rgba(5,150,105,0.4); }
.status-warning { background: #d97706; box-shadow: 0 0 6px rgba(217,119,6,0.4); }
.status-error { background: #dc2626; box-shadow: 0 0 6px rgba(220,38,38,0.4); }
.security-card-message {
   font-size: 0.82rem; color: var(--text-secondary); line-height: 1.5;
}
.security-card-details {
   font-size: 0.78rem; line-height: 1.6; color: var(--text-muted);
   background: var(--bg-secondary); border-radius: var(--radius-sm);
   padding: 0.5rem 0.75rem; margin-top: 0.25rem;
   border-left: 3px solid var(--border);
   word-break: break-word;
}
.security-card-time {
   font-size: 0.75rem; color: var(--text-muted); margin-top: 0.25rem;
}

@media (max-width: 768px) {
   .security-grid { grid-template-columns: 1fr; }
   .security-actions { grid-template-columns: 1fr; }
}
