:root { --primary: #667eea; --primary-dark: #764ba2; --text: #1f1f1f; --text-secondary: #595959; --bg: #f5f7fa; --white: #ffffff; --border: #e8e8e8; --success: #52c41a; }
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', 'PingFang SC', sans-serif; line-height: 1.6; color: var(--text); background: var(--bg); }

/* Cookie consent (GDPR-style; essential-only still allows login & dashboard) */
.joy-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100000;
    background: #0a1628;
    color: rgba(255, 255, 255, 0.92);
    padding: 18px 22px;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px 22px;
    font-size: 0.88rem;
    line-height: 1.55;
}
.joy-cookie-banner__text {
    flex: 1 1 260px;
    max-width: 760px;
}
.joy-cookie-banner__text a {
    color: #a8b9ff;
    text-decoration: underline;
}
.joy-cookie-banner__text a:hover {
    color: #c5d0ff;
}
.joy-cookie-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.joy-cookie-banner .joy-cookie-btn {
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.86rem;
}
.joy-cookie-banner .joy-cookie-btn--primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}
.joy-cookie-banner .joy-cookie-btn--secondary {
    background: rgba(255, 255, 255, 0.14);
    color: white;
}
.joy-cookie-banner .joy-cookie-btn--secondary:hover {
    background: rgba(255, 255, 255, 0.22);
}

/* Header */
.header { background: rgba(255,255,255,0.95); backdrop-filter: blur(20px); position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid var(--border); }
.header-bar { max-width: 1400px; margin: 0 auto; padding: 0 40px; display: flex; justify-content: space-between; align-items: center; height: 72px; }
.logo { font-size: 1.5rem; font-weight: 700; color: var(--primary); cursor: pointer; text-decoration: none; display: flex; align-items: center; gap: 8px; }
.logo-icon { width: 32px; height: 32px; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: white; font-size: 1.2rem; }
.nav-links { display: flex; gap: 8px; }
.nav-links a { color: var(--text-secondary); text-decoration: none; padding: 8px 16px; border-radius: 8px; font-weight: 500; transition: all 0.3s; }
.nav-links a:hover { color: var(--primary); background: rgba(102,126,234,0.08); }
.header-right { display: flex; align-items: center; gap: 12px; }
.lang-switch { display: flex; background: var(--bg); border-radius: 8px; padding: 4px; }
.lang-btn { background: transparent; border: none; padding: 6px 12px; border-radius: 6px; cursor: pointer; font-size: 0.85rem; font-weight: 500; color: var(--text-secondary); transition: all 0.3s; }
.lang-btn:hover { color: var(--text); }
.lang-btn.active { background: var(--white); color: var(--primary); box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.auth-btns { display: flex; gap: 8px; }
.btn-text { background: transparent; border: none; color: var(--text-secondary); padding: 8px 16px; border-radius: 8px; cursor: pointer; font-weight: 500; transition: all 0.3s; }
.btn-text:hover { color: var(--primary); background: rgba(102,126,234,0.08); }
.btn-primary { background: var(--primary); color: white; padding: 8px 20px; border-radius: 8px; border: none; cursor: pointer; font-weight: 600; transition: all 0.3s; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(102,126,234,0.3); }
.dashboard-btn { background: rgba(102,126,234,0.1); color: var(--primary); padding: 8px 16px; border-radius: 8px; border: none; cursor: pointer; font-weight: 600; transition: all 0.3s; display: flex; align-items: center; gap: 6px; }
.dashboard-btn:hover { background: rgba(102,126,234,0.15); }
.user-avatar { width: 28px; height: 28px; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 0.85rem; font-weight: 600; }

/* Header/admin dropdown SVGs only (emoji cards use <span class="icon">; a global .icon size caused overlap) */
svg.icon {
    width: 18px;
    height: 18px;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

/* Hero */
.hero { padding: 100px 0 80px; background: linear-gradient(135deg, rgba(102,126,234,0.08) 0%, rgba(118,75,162,0.06) 100%); }
.hero-container { max-width: 1400px; margin: 0 auto; padding: 0 40px; text-align: center; }
.hero h1 { font-size: 3.5rem; font-weight: 800; margin-bottom: 24px; }
.hero h1 span { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: 1.25rem; color: var(--text-secondary); max-width: 800px; margin: 0 auto 40px; }

/* Sections */
section { padding: 80px 0; }
.container { max-width: 1400px; margin: 0 auto; padding: 0 40px; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-tag { display: inline-block; background: rgba(102,126,234,0.1); color: var(--primary); padding: 6px 16px; border-radius: 50px; font-size: 0.85rem; font-weight: 600; margin-bottom: 16px; }
.section-title { font-size: 2.5rem; font-weight: 800; margin-bottom: 16px; }
.section-desc { font-size: 1.1rem; color: var(--text-secondary); max-width: 600px; margin: 0 auto; }

/* Grid */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }

/* Cards */
.card { background: var(--white); border-radius: 20px; padding: 40px; border: 1px solid var(--border); transition: all 0.3s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.1); border-color: rgba(102,126,234,0.3); }
.card-icon { font-size: 3rem; margin-bottom: 20px; }
.card h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 12px; }
.card p { color: var(--text-secondary); line-height: 1.7; }

/* Pricing */
.pricing-card { background: var(--white); border-radius: 20px; padding: 40px; border: 2px solid var(--border); position: relative; transition: all 0.3s; }
.pricing-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.1); }
.pricing-card.popular { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(102,126,234,0.1); }
.badge { position: absolute; top: 20px; right: 20px; background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%); color: white; padding: 6px 14px; border-radius: 50px; font-size: 0.8rem; font-weight: 600; }
.price { font-size: 3rem; font-weight: 800; color: var(--primary); margin: 24px 0; display: flex; align-items: baseline; gap: 8px; }
.price span { font-size: 1rem; color: var(--text-secondary); }
.discount { background: rgba(82,196,26,0.1); color: var(--success); padding: 4px 12px; border-radius: 50px; font-size: 0.85rem; font-weight: 600; }
.features { list-style: none; margin: 24px 0; }
.features li { padding: 12px 0; color: var(--text-secondary); display: flex; align-items: center; gap: 10px; }
.features li:before { content: '✓'; color: var(--primary); font-weight: 700; }

/* Tabs */
.tabs { display: flex; justify-content: center; gap: 16px; margin-bottom: 48px; }
.tab { padding: 12px 32px; border-radius: 12px; cursor: pointer; font-weight: 600; font-size: 1rem; transition: all 0.3s; border: 2px solid transparent; background: var(--white); color: var(--text-secondary); }
.tab:hover { background: rgba(102,126,234,0.08); color: var(--text); }
.tab.active { background: var(--primary); color: white; border-color: var(--primary); box-shadow: 0 4px 12px rgba(102,126,234,0.3); }

/* Footer */
.footer { background: #0a1628; color: white; padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand p { color: rgba(255,255,255,0.6); line-height: 1.8; margin-top: 16px; }
.footer h4 { font-size: 1rem; font-weight: 600; margin-bottom: 20px; color: white; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 12px; }
.footer a { color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.3s; }
.footer a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 32px; text-align: center; color: rgba(255,255,255,0.4); font-size: 0.9rem; }

/* Responsive */
@media (max-width: 768px) {
    .header-bar { padding: 0 20px; }
    .hero { padding: 60px 0 40px; }
    .hero h1 { font-size: 2.5rem; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .container, .hero-container { padding: 0 20px; }
}

/* Log Out Button - matches Dashboard style */
.btn-logout {
    background: transparent;
    color: #ff4d4f;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid #ff4d4f;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
}
.btn-logout:hover {
    background: rgba(255,77,79,0.1);
}

/* Language Switch Buttons */
.lang-btn.active {
    background: var(--white);
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Log Out Button */
.btn-logout {
    background: rgba(255,77,79,0.1);
    color: #ff4d4f;
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
}
.btn-logout:hover {
    background: rgba(255,77,79,0.2);
}

/* Navigation Active State */
.nav-links a.active {
    color: var(--primary);
    background: rgba(102,126,234,0.1);
}

/* Admin sidebar: keep submenu labels on one line */
.admin-sidebar .submenu li a {
    white-space: nowrap;
}

/* Staff-only sidebar blocks: default hidden; shown via html.jp-nav-* (set in head by admin-nav-role.js + common.js) */
.admin-sidebar li#nav-customer-service,
.admin-sidebar li#nav-technical,
.admin-sidebar li#nav-financial {
    display: none !important;
}
html.jp-nav-csc .admin-sidebar li#nav-customer-service {
    display: list-item !important;
}
html.jp-nav-tech .admin-sidebar li#nav-technical {
    display: list-item !important;
}
html.jp-nav-fin .admin-sidebar li#nav-financial {
    display: list-item !important;
}
