/* ═══════════════════════════════════════════
   Cafenet — Header (Minimal · Clean · Modern)
   ═══════════════════════════════════════════ */

.cn-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid #EDE4D6;
    box-shadow: 0 1px 2px rgba(26, 19, 16, 0.03);
}

.cn-header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* ─── Brand ─── */
.cn-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #1A1310;
    flex-shrink: 0;
    transition: opacity 0.15s;
}
.cn-brand:hover { color: #1A1310; opacity: 0.9; }

.cn-brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #E8761D 0%, #D1640F 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 12px rgba(232, 118, 29, 0.25);
    transition: transform 0.2s;
    flex-shrink: 0;
}
.cn-brand:hover .cn-brand-mark {
    transform: scale(1.05) rotate(-3deg);
}
.cn-brand-mark svg {
    width: 20px;
    height: 20px;
}

.cn-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}
.cn-brand-name {
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    color: #1A1310;
    letter-spacing: -0.02em;
}
.cn-brand-tag {
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    color: #8A7E76;
    margin-top: 2px;
}

/* ─── Nav ─── */
.cn-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
    justify-content: center;
}
.cn-nav a {
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    color: #4A3E38;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.15s;
    white-space: nowrap;
    position: relative;
}
.cn-nav a:hover {
    color: #E8761D;
    background: #FDF0E1;
}
.cn-nav a.active {
    color: #E8761D;
    font-weight: 700;
}

/* ─── Actions ─── */
.cn-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.cn-btn-login {
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #4A3E38;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid #EDE4D6;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
}
.cn-btn-login:hover {
    color: #1A1310;
    border-color: #D6C8B5;
    background: #FAF6F0;
}
.cn-btn-login .cn-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #16A34A;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}

.cn-btn-signup {
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    padding: 9px 18px;
    border-radius: 8px;
    background: #E8761D;
    border: 1px solid #E8761D;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(232, 118, 29, 0.2);
}
.cn-btn-signup:hover {
    background: #D1640F;
    border-color: #D1640F;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(232, 118, 29, 0.3);
}

/* ─── Notification badge ─── */
.cn-notif {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #EF4444;
    color: #fff;
    border-radius: 100px;
    font-size: 0.65rem;
    font-weight: 800;
    font-family: 'Vazirmatn', sans-serif;
    margin-inline-start: 4px;
    line-height: 1;
}

/* ─── Mobile toggle ─── */
.cn-nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid #EDE4D6;
    border-radius: 8px;
    cursor: pointer;
    color: #4A3E38;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    flex-shrink: 0;
}
.cn-nav-toggle:hover {
    background: #FAF6F0;
    border-color: #D6C8B5;
    color: #1A1310;
}
.cn-nav-toggle svg {
    width: 20px;
    height: 20px;
}

/* ─── Mobile drawer ─── */
.cn-mobile-drawer {
    display: none;
    position: absolute;
    top: 68px;
    inset-inline: 0;
    background: #fff;
    border-bottom: 1px solid #EDE4D6;
    box-shadow: 0 8px 24px rgba(26, 19, 16, 0.06);
    padding: 12px 20px 20px;
    flex-direction: column;
    gap: 4px;
}
.cn-mobile-drawer.open { display: flex; }
.cn-mobile-drawer a {
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: #4A3E38;
    text-decoration: none;
    padding: 12px 14px;
    border-radius: 10px;
    transition: all 0.15s;
}
.cn-mobile-drawer a:hover {
    background: #FDF0E1;
    color: #E8761D;
}
.cn-mobile-drawer .cn-mob-divider {
    height: 1px;
    background: #EDE4D6;
    margin: 8px 0;
}
.cn-mobile-drawer .cn-mob-cta {
    background: #E8761D;
    color: #fff !important;
    text-align: center;
    font-weight: 700;
    margin-top: 4px;
}
.cn-mobile-drawer .cn-mob-cta:hover {
    background: #D1640F;
    color: #fff;
}

/* ─── Responsive ─── */
@media (max-width: 860px) {
    .cn-nav { display: none; }
    .cn-header-actions .cn-btn-login,
    .cn-header-actions .cn-btn-signup { display: none; }
    .cn-nav-toggle { display: inline-flex; }
    .cn-header-inner { padding: 0 20px; }
}

@media (max-width: 480px) {
    .cn-header-inner { height: 60px; padding: 0 16px; }
    .cn-brand-mark { width: 36px; height: 36px; border-radius: 9px; }
    .cn-brand-mark svg { width: 18px; height: 18px; }
    .cn-brand-name { font-size: 1rem; }
    .cn-mobile-drawer { top: 60px; }
}